@globalart/platform-ui 0.1.0 → 0.1.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/globalart-platform-ui.mjs +25 -3
- package/fesm2022/globalart-platform-ui.mjs.map +1 -1
- package/lib/menu/ui-menu.component.d.ts +3 -1
- package/lib/menu/ui-menu.component.d.ts.map +1 -1
- package/lib/modal/ui-modal.component.d.ts +2 -1
- package/lib/modal/ui-modal.component.d.ts.map +1 -1
- package/lib/shell/ui-shell.component.d.ts +1 -1
- package/lib/shell/ui-shell.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4001,6 +4001,10 @@ class UiMenuComponent {
|
|
|
4001
4001
|
host;
|
|
4002
4002
|
align = 'end';
|
|
4003
4003
|
width = 'w-64';
|
|
4004
|
+
full = false;
|
|
4005
|
+
get stretched() {
|
|
4006
|
+
return this.full;
|
|
4007
|
+
}
|
|
4004
4008
|
open = signal(false);
|
|
4005
4009
|
constructor(host) {
|
|
4006
4010
|
this.host = host;
|
|
@@ -4024,7 +4028,7 @@ class UiMenuComponent {
|
|
|
4024
4028
|
this.close();
|
|
4025
4029
|
}
|
|
4026
4030
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UiMenuComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4027
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UiMenuComponent, isStandalone: true, selector: "ui-menu", inputs: { align: "align", width: "width" }, host: { listeners: { "document:click": "onDocumentClick($event.target)", "document:keydown.escape": "onEscape()" }, classAttribute: "relative inline-flex" }, ngImport: i0, template: `
|
|
4031
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UiMenuComponent, isStandalone: true, selector: "ui-menu", inputs: { align: "align", width: "width", full: "full" }, host: { listeners: { "document:click": "onDocumentClick($event.target)", "document:keydown.escape": "onEscape()" }, properties: { "class.w-full": "this.stretched" }, classAttribute: "relative inline-flex" }, ngImport: i0, template: `
|
|
4028
4032
|
<div (click)="toggle()" class="contents">
|
|
4029
4033
|
<ng-content select="[menuTrigger]"></ng-content>
|
|
4030
4034
|
</div>
|
|
@@ -4062,6 +4066,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
4062
4066
|
type: Input
|
|
4063
4067
|
}], width: [{
|
|
4064
4068
|
type: Input
|
|
4069
|
+
}], full: [{
|
|
4070
|
+
type: Input
|
|
4071
|
+
}], stretched: [{
|
|
4072
|
+
type: HostBinding,
|
|
4073
|
+
args: ['class.w-full']
|
|
4065
4074
|
}], onDocumentClick: [{
|
|
4066
4075
|
type: HostListener,
|
|
4067
4076
|
args: ['document:click', ['$event.target']]
|
|
@@ -4135,8 +4144,12 @@ class UiModalComponent {
|
|
|
4135
4144
|
closed = new EventEmitter();
|
|
4136
4145
|
titleId = `ui-modal-title-${(nextModalId += 1)}`;
|
|
4137
4146
|
cdr = inject(ChangeDetectorRef);
|
|
4138
|
-
buttons =
|
|
4147
|
+
buttons = this.buildFooter();
|
|
4139
4148
|
get footerButtons() {
|
|
4149
|
+
const next = this.buildFooter();
|
|
4150
|
+
if (!sameFooter(this.buttons, next)) {
|
|
4151
|
+
this.buttons = next;
|
|
4152
|
+
}
|
|
4140
4153
|
return this.buttons;
|
|
4141
4154
|
}
|
|
4142
4155
|
get showHeaderClose() {
|
|
@@ -4165,6 +4178,9 @@ class UiModalComponent {
|
|
|
4165
4178
|
this.cdr.markForCheck();
|
|
4166
4179
|
}
|
|
4167
4180
|
}
|
|
4181
|
+
ngOnChanges() {
|
|
4182
|
+
this.cdr.markForCheck();
|
|
4183
|
+
}
|
|
4168
4184
|
press(id) {
|
|
4169
4185
|
this.action.emit(id);
|
|
4170
4186
|
if (id === UI_MODAL_CLOSE_ID) {
|
|
@@ -4211,7 +4227,7 @@ class UiModalComponent {
|
|
|
4211
4227
|
});
|
|
4212
4228
|
}
|
|
4213
4229
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UiModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4214
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UiModalComponent, isStandalone: true, selector: "ui-modal", inputs: { open: "open", config: "config", loading: "loading", closeLabel: "closeLabel" }, outputs: { action: "action", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, ngImport: i0, template: `
|
|
4230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UiModalComponent, isStandalone: true, selector: "ui-modal", inputs: { open: "open", config: "config", loading: "loading", closeLabel: "closeLabel" }, outputs: { action: "action", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
4215
4231
|
<div
|
|
4216
4232
|
*ngIf="open"
|
|
4217
4233
|
class="fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-ink/45 p-4 pt-[8vh]"
|
|
@@ -5183,6 +5199,9 @@ class UiShellComponent {
|
|
|
5183
5199
|
collapsed() ? 'w-sidebar-rail' : 'w-sidebar',
|
|
5184
5200
|
drawerOpen() ? 'translate-x-0' : '-translate-x-full'
|
|
5185
5201
|
]">
|
|
5202
|
+
<div class="border-b border-line empty:hidden"><ng-content
|
|
5203
|
+
select="[shellSidebarHeader]"></ng-content></div>
|
|
5204
|
+
|
|
5186
5205
|
<nav class="flex-1 overflow-y-auto overscroll-contain">
|
|
5187
5206
|
<ui-sidebar-nav
|
|
5188
5207
|
[sections]="sections"
|
|
@@ -5259,6 +5278,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
5259
5278
|
collapsed() ? 'w-sidebar-rail' : 'w-sidebar',
|
|
5260
5279
|
drawerOpen() ? 'translate-x-0' : '-translate-x-full'
|
|
5261
5280
|
]">
|
|
5281
|
+
<div class="border-b border-line empty:hidden"><ng-content
|
|
5282
|
+
select="[shellSidebarHeader]"></ng-content></div>
|
|
5283
|
+
|
|
5262
5284
|
<nav class="flex-1 overflow-y-auto overscroll-contain">
|
|
5263
5285
|
<ui-sidebar-nav
|
|
5264
5286
|
[sections]="sections"
|