@globalart/platform-ui 0.1.0 → 0.1.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.
@@ -4135,8 +4135,12 @@ class UiModalComponent {
4135
4135
  closed = new EventEmitter();
4136
4136
  titleId = `ui-modal-title-${(nextModalId += 1)}`;
4137
4137
  cdr = inject(ChangeDetectorRef);
4138
- buttons = [];
4138
+ buttons = this.buildFooter();
4139
4139
  get footerButtons() {
4140
+ const next = this.buildFooter();
4141
+ if (!sameFooter(this.buttons, next)) {
4142
+ this.buttons = next;
4143
+ }
4140
4144
  return this.buttons;
4141
4145
  }
4142
4146
  get showHeaderClose() {
@@ -4165,6 +4169,9 @@ class UiModalComponent {
4165
4169
  this.cdr.markForCheck();
4166
4170
  }
4167
4171
  }
4172
+ ngOnChanges() {
4173
+ this.cdr.markForCheck();
4174
+ }
4168
4175
  press(id) {
4169
4176
  this.action.emit(id);
4170
4177
  if (id === UI_MODAL_CLOSE_ID) {
@@ -4211,7 +4218,7 @@ class UiModalComponent {
4211
4218
  });
4212
4219
  }
4213
4220
  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: `
4221
+ 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
4222
  <div
4216
4223
  *ngIf="open"
4217
4224
  class="fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-ink/45 p-4 pt-[8vh]"
@@ -5183,6 +5190,9 @@ class UiShellComponent {
5183
5190
  collapsed() ? 'w-sidebar-rail' : 'w-sidebar',
5184
5191
  drawerOpen() ? 'translate-x-0' : '-translate-x-full'
5185
5192
  ]">
5193
+ <div class="border-b border-line empty:hidden"><ng-content
5194
+ select="[shellSidebarHeader]"></ng-content></div>
5195
+
5186
5196
  <nav class="flex-1 overflow-y-auto overscroll-contain">
5187
5197
  <ui-sidebar-nav
5188
5198
  [sections]="sections"
@@ -5259,6 +5269,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
5259
5269
  collapsed() ? 'w-sidebar-rail' : 'w-sidebar',
5260
5270
  drawerOpen() ? 'translate-x-0' : '-translate-x-full'
5261
5271
  ]">
5272
+ <div class="border-b border-line empty:hidden"><ng-content
5273
+ select="[shellSidebarHeader]"></ng-content></div>
5274
+
5262
5275
  <nav class="flex-1 overflow-y-auto overscroll-contain">
5263
5276
  <ui-sidebar-nav
5264
5277
  [sections]="sections"