@fuentis/phoenix-ui 0.0.9-alpha.148 → 0.0.9-alpha.150

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.
@@ -305,14 +305,58 @@ class UserComponent {
305
305
  @if(user.bindImageUrl){
306
306
  <div
307
307
  [style.background-image]="user.bindImageUrl"
308
- class="profile-image"
308
+ class="cover-image"
309
309
  ></div>
310
310
  }@else {
311
311
  <p-avatar [label]="user.imageUrl" shape="circle" />
312
312
  }
313
313
  </a>
314
314
  <p-popover #op>
315
- <div class="flex gap-2 w-20rem">
315
+ @if(user){
316
+ <div class="surface-0">
317
+ <div class="flex align-items-center ml-3">
318
+ @if(user?.bindImageUrl){
319
+ <div
320
+ [style.background-image]="user.bindImageUrl"
321
+ class="profile-image"
322
+ ></div>
323
+ }@else {
324
+ <p-avatar [label]="user.imageUrl" shape="circle" />
325
+ }
326
+ <div class="p-3">
327
+ <div class="text-xl text-primary mb-2 cursor-pointer">
328
+ {{ user?.firstname }} {{ user?.lastname }}
329
+ </div>
330
+ <div>{{ user?.username }}</div>
331
+ <div>{{ user?.email }}</div>
332
+ </div>
333
+ <div
334
+ class="flex border-top-1 border-300 mt-2 pt-2 mx-3 surface-ground mb-2"
335
+ ></div>
336
+ <div class="flex flex-row justify-content-between mt-2 pt-1">
337
+ <a
338
+ class="flex flex-row align-items-center cursor-pointer ml-2"
339
+ (click)="editSettings.emit()"
340
+ pRipple
341
+ >
342
+ <i class="pi pi-user-edit p-2" style="font-size: 1.5rem"></i>
343
+ <span>{{ 'ACTION.EDIT_SETTINGS' | translate }}</span>
344
+ </a>
345
+
346
+ <a
347
+ style="color: red"
348
+ class="flex flex-row align-items-center cursor-pointer mr-3"
349
+ (click)="logout.emit()"
350
+ pRipple
351
+ >
352
+ <i class="pi pi-power-off p-2"></i>
353
+ <span>{{ 'ACTION.LOGOUT' | translate }}</span>
354
+ </a>
355
+ </div>
356
+ </div>
357
+ </div>
358
+ }
359
+ <!-- <div class="flex gap-2 w-20rem">
316
360
  @if(user.bindImageUrl){
317
361
  <div
318
362
  [style.background-image]="user.bindImageUrl"
@@ -323,32 +367,9 @@ class UserComponent {
323
367
  <div class="text-sm mt-auto">{{ user.username }}</div>
324
368
  <div class="text-sm">{{ user.email }}</div>
325
369
  </div>
326
- </div>
327
-
328
- <div
329
- class="border-top-1 border-300 flex flex-row justify-content-between mt-2 pt-2 mx-2"
330
- >
331
- <a
332
- class="flex flex-row align-items-center cursor-pointer"
333
- (click)="editSettings.emit()"
334
- pRipple
335
- >
336
- <i class="pi pi-user-edit p-2" style="font-size: 1.5rem"></i>
337
- <span>{{ 'ACTION.EDIT_SETTINGS' | translate }}</span>
338
- </a>
339
-
340
- <a
341
- style="color: red"
342
- class="flex flex-row align-items-center cursor-pointer"
343
- (click)="logout.emit()"
344
- pRipple
345
- >
346
- <i class="pi pi-power-off p-2"></i>
347
- <span>{{ 'ACTION.LOGOUT' | translate }}</span>
348
- </a>
349
- </div>
370
+ </div> -->
350
371
  </p-popover>
351
- `, isInline: true, styles: [".profile-image{width:50px;height:50px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}\n"], dependencies: [{ kind: "component", type: Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "style", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }] });
372
+ `, isInline: true, styles: [".profile-image{width:50px;height:50px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}.cover-image{width:35px;height:35px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}\n"], dependencies: [{ kind: "component", type: Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "style", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }] });
352
373
  }
353
374
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: UserComponent, decorators: [{
354
375
  type: Component,
@@ -361,14 +382,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImpo
361
382
  @if(user.bindImageUrl){
362
383
  <div
363
384
  [style.background-image]="user.bindImageUrl"
364
- class="profile-image"
385
+ class="cover-image"
365
386
  ></div>
366
387
  }@else {
367
388
  <p-avatar [label]="user.imageUrl" shape="circle" />
368
389
  }
369
390
  </a>
370
391
  <p-popover #op>
371
- <div class="flex gap-2 w-20rem">
392
+ @if(user){
393
+ <div class="surface-0">
394
+ <div class="flex align-items-center ml-3">
395
+ @if(user?.bindImageUrl){
396
+ <div
397
+ [style.background-image]="user.bindImageUrl"
398
+ class="profile-image"
399
+ ></div>
400
+ }@else {
401
+ <p-avatar [label]="user.imageUrl" shape="circle" />
402
+ }
403
+ <div class="p-3">
404
+ <div class="text-xl text-primary mb-2 cursor-pointer">
405
+ {{ user?.firstname }} {{ user?.lastname }}
406
+ </div>
407
+ <div>{{ user?.username }}</div>
408
+ <div>{{ user?.email }}</div>
409
+ </div>
410
+ <div
411
+ class="flex border-top-1 border-300 mt-2 pt-2 mx-3 surface-ground mb-2"
412
+ ></div>
413
+ <div class="flex flex-row justify-content-between mt-2 pt-1">
414
+ <a
415
+ class="flex flex-row align-items-center cursor-pointer ml-2"
416
+ (click)="editSettings.emit()"
417
+ pRipple
418
+ >
419
+ <i class="pi pi-user-edit p-2" style="font-size: 1.5rem"></i>
420
+ <span>{{ 'ACTION.EDIT_SETTINGS' | translate }}</span>
421
+ </a>
422
+
423
+ <a
424
+ style="color: red"
425
+ class="flex flex-row align-items-center cursor-pointer mr-3"
426
+ (click)="logout.emit()"
427
+ pRipple
428
+ >
429
+ <i class="pi pi-power-off p-2"></i>
430
+ <span>{{ 'ACTION.LOGOUT' | translate }}</span>
431
+ </a>
432
+ </div>
433
+ </div>
434
+ </div>
435
+ }
436
+ <!-- <div class="flex gap-2 w-20rem">
372
437
  @if(user.bindImageUrl){
373
438
  <div
374
439
  [style.background-image]="user.bindImageUrl"
@@ -379,32 +444,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImpo
379
444
  <div class="text-sm mt-auto">{{ user.username }}</div>
380
445
  <div class="text-sm">{{ user.email }}</div>
381
446
  </div>
382
- </div>
383
-
384
- <div
385
- class="border-top-1 border-300 flex flex-row justify-content-between mt-2 pt-2 mx-2"
386
- >
387
- <a
388
- class="flex flex-row align-items-center cursor-pointer"
389
- (click)="editSettings.emit()"
390
- pRipple
391
- >
392
- <i class="pi pi-user-edit p-2" style="font-size: 1.5rem"></i>
393
- <span>{{ 'ACTION.EDIT_SETTINGS' | translate }}</span>
394
- </a>
395
-
396
- <a
397
- style="color: red"
398
- class="flex flex-row align-items-center cursor-pointer"
399
- (click)="logout.emit()"
400
- pRipple
401
- >
402
- <i class="pi pi-power-off p-2"></i>
403
- <span>{{ 'ACTION.LOGOUT' | translate }}</span>
404
- </a>
405
- </div>
447
+ </div> -->
406
448
  </p-popover>
407
- `, styles: [".profile-image{width:50px;height:50px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}\n"] }]
449
+ `, styles: [".profile-image{width:50px;height:50px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}.cover-image{width:35px;height:35px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer}\n"] }]
408
450
  }], propDecorators: { user: [{
409
451
  type: Input
410
452
  }], logout: [{
@@ -5344,14 +5386,18 @@ class QuickPickSidePanelComponent {
5344
5386
  onRowClick = new EventEmitter();
5345
5387
  lazyLoadData = new EventEmitter();
5346
5388
  handlePanelFullScreen = new EventEmitter();
5389
+ onClose = new EventEmitter();
5347
5390
  onDrawerShow() {
5348
5391
  this.lazyLoadData.emit();
5349
5392
  }
5393
+ onDrawerHide() {
5394
+ this.onClose.emit();
5395
+ }
5350
5396
  onTableRowClick(row) {
5351
5397
  this.onRowClick.emit(row);
5352
5398
  }
5353
5399
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: QuickPickSidePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5354
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: QuickPickSidePanelComponent, isStandalone: true, selector: "phoenix-quick-pick-sidepanel", inputs: { title: "title", data: "data", columns: "columns", tableConfiguration: "tableConfiguration", panelState: "panelState", modal: "modal", widthClass: "widthClass", isFullScreen: "isFullScreen" }, outputs: { onRowClick: "onRowClick", lazyLoadData: "lazyLoadData", handlePanelFullScreen: "handlePanelFullScreen" }, viewQueries: [{ propertyName: "drawer", first: true, predicate: ["drawer"], descendants: true }], ngImport: i0, template: "<p-drawer\n #drawer\n [styleClass]=\"widthClass\"\n [modal]=\"modal\"\n [(visible)]=\"panelState\"\n position=\"right\"\n [closable]=\"false\"\n (onShow)=\"onDrawerShow()\"\n>\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <div class=\"flex align-items-center justify-content-between w-full\">\n <p-button\n type=\"button\"\n (click)=\"handlePanelFullScreen.emit()\"\n [icon]=\"isFullScreen ? 'pi pi-arrow-down-right' : 'pi pi-arrow-up-left'\"\n rounded=\"true\"\n outlined=\"true\"\n styleClass=\"h-8 w-8\"\n ></p-button>\n\n <span class=\"font-bold text-xl flex-grow-1 text-center\">\n {{ title }}\n </span>\n\n <button\n (click)=\"panelState = false\"\n pButton\n type=\"button\"\n icon=\"pi pi-times\"\n class=\"p-button-rounded p-button-text mr-2\"\n ></button>\n </div>\n </ng-template>\n\n <!-- Content -->\n <ng-template pTemplate=\"content\">\n <div class=\"px-2\">\n <phoenix-table\n [data]=\"data\"\n [columns]=\"columns\"\n [tableConfiguration]=\"tableConfiguration\"\n (rowClick)=\"onTableRowClick($event)\"\n ></phoenix-table>\n </div>\n </ng-template>\n</p-drawer>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DrawerModule }, { kind: "component", type: i3$3.Drawer, selector: "p-drawer", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: TableComponent, selector: "phoenix-table", inputs: ["data", "columns", "selectedColumnsInput", "tableConfiguration"], outputs: ["actionClick", "rowSelection", "checkBoxSelection", "saveColumns"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i3.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
5400
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.11", type: QuickPickSidePanelComponent, isStandalone: true, selector: "phoenix-quick-pick-sidepanel", inputs: { title: "title", data: "data", columns: "columns", tableConfiguration: "tableConfiguration", panelState: "panelState", modal: "modal", widthClass: "widthClass", isFullScreen: "isFullScreen" }, outputs: { onRowClick: "onRowClick", lazyLoadData: "lazyLoadData", handlePanelFullScreen: "handlePanelFullScreen", onClose: "onClose" }, viewQueries: [{ propertyName: "drawer", first: true, predicate: ["drawer"], descendants: true }], ngImport: i0, template: "<p-drawer\n #drawer\n [styleClass]=\"widthClass\"\n [modal]=\"modal\"\n [(visible)]=\"panelState\"\n position=\"right\"\n [closable]=\"false\"\n (onShow)=\"onDrawerShow()\"\n (onHide)=\"onDrawerHide()\"\n>\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <div class=\"flex align-items-center justify-content-between w-full\">\n <p-button\n type=\"button\"\n (click)=\"handlePanelFullScreen.emit()\"\n [icon]=\"isFullScreen ? 'pi pi-arrow-down-right' : 'pi pi-arrow-up-left'\"\n rounded=\"true\"\n outlined=\"true\"\n styleClass=\"h-8 w-8\"\n ></p-button>\n\n <span class=\"font-bold text-xl flex-grow-1 text-center\">\n {{ title }}\n </span>\n\n <button\n (click)=\"panelState = false\"\n pButton\n type=\"button\"\n icon=\"pi pi-times\"\n class=\"p-button-rounded p-button-text mr-2\"\n ></button>\n </div>\n </ng-template>\n\n <!-- Content -->\n <ng-template pTemplate=\"content\">\n <div class=\"px-2\">\n <phoenix-table\n [data]=\"data\"\n [columns]=\"columns\"\n [tableConfiguration]=\"tableConfiguration\"\n (rowClick)=\"onTableRowClick($event)\"\n ></phoenix-table>\n </div>\n </ng-template>\n</p-drawer>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DrawerModule }, { kind: "component", type: i3$3.Drawer, selector: "p-drawer", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: TableComponent, selector: "phoenix-table", inputs: ["data", "columns", "selectedColumnsInput", "tableConfiguration"], outputs: ["actionClick", "rowSelection", "checkBoxSelection", "saveColumns"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i3.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
5355
5401
  }
5356
5402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: QuickPickSidePanelComponent, decorators: [{
5357
5403
  type: Component,
@@ -5361,7 +5407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImpo
5361
5407
  TableComponent,
5362
5408
  TranslateModule,
5363
5409
  ButtonModule,
5364
- ], template: "<p-drawer\n #drawer\n [styleClass]=\"widthClass\"\n [modal]=\"modal\"\n [(visible)]=\"panelState\"\n position=\"right\"\n [closable]=\"false\"\n (onShow)=\"onDrawerShow()\"\n>\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <div class=\"flex align-items-center justify-content-between w-full\">\n <p-button\n type=\"button\"\n (click)=\"handlePanelFullScreen.emit()\"\n [icon]=\"isFullScreen ? 'pi pi-arrow-down-right' : 'pi pi-arrow-up-left'\"\n rounded=\"true\"\n outlined=\"true\"\n styleClass=\"h-8 w-8\"\n ></p-button>\n\n <span class=\"font-bold text-xl flex-grow-1 text-center\">\n {{ title }}\n </span>\n\n <button\n (click)=\"panelState = false\"\n pButton\n type=\"button\"\n icon=\"pi pi-times\"\n class=\"p-button-rounded p-button-text mr-2\"\n ></button>\n </div>\n </ng-template>\n\n <!-- Content -->\n <ng-template pTemplate=\"content\">\n <div class=\"px-2\">\n <phoenix-table\n [data]=\"data\"\n [columns]=\"columns\"\n [tableConfiguration]=\"tableConfiguration\"\n (rowClick)=\"onTableRowClick($event)\"\n ></phoenix-table>\n </div>\n </ng-template>\n</p-drawer>" }]
5410
+ ], template: "<p-drawer\n #drawer\n [styleClass]=\"widthClass\"\n [modal]=\"modal\"\n [(visible)]=\"panelState\"\n position=\"right\"\n [closable]=\"false\"\n (onShow)=\"onDrawerShow()\"\n (onHide)=\"onDrawerHide()\"\n>\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <div class=\"flex align-items-center justify-content-between w-full\">\n <p-button\n type=\"button\"\n (click)=\"handlePanelFullScreen.emit()\"\n [icon]=\"isFullScreen ? 'pi pi-arrow-down-right' : 'pi pi-arrow-up-left'\"\n rounded=\"true\"\n outlined=\"true\"\n styleClass=\"h-8 w-8\"\n ></p-button>\n\n <span class=\"font-bold text-xl flex-grow-1 text-center\">\n {{ title }}\n </span>\n\n <button\n (click)=\"panelState = false\"\n pButton\n type=\"button\"\n icon=\"pi pi-times\"\n class=\"p-button-rounded p-button-text mr-2\"\n ></button>\n </div>\n </ng-template>\n\n <!-- Content -->\n <ng-template pTemplate=\"content\">\n <div class=\"px-2\">\n <phoenix-table\n [data]=\"data\"\n [columns]=\"columns\"\n [tableConfiguration]=\"tableConfiguration\"\n (rowClick)=\"onTableRowClick($event)\"\n ></phoenix-table>\n </div>\n </ng-template>\n</p-drawer>" }]
5365
5411
  }], propDecorators: { drawer: [{
5366
5412
  type: ViewChild,
5367
5413
  args: ['drawer']
@@ -5387,6 +5433,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImpo
5387
5433
  type: Output
5388
5434
  }], handlePanelFullScreen: [{
5389
5435
  type: Output
5436
+ }], onClose: [{
5437
+ type: Output
5390
5438
  }] } });
5391
5439
 
5392
5440
  var SimpleButtonType;