@sd-angular/core 1.0.8 → 1.0.13

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.
Files changed (69) hide show
  1. package/assets/scss/core/color.scss +4 -0
  2. package/badge/sd-angular-core-badge.metadata.json +1 -1
  3. package/bundles/sd-angular-core-badge.umd.js +1 -1
  4. package/bundles/sd-angular-core-badge.umd.min.js +1 -1
  5. package/bundles/sd-angular-core-badge.umd.min.js.map +1 -1
  6. package/bundles/sd-angular-core-button.umd.js +1 -1
  7. package/bundles/sd-angular-core-button.umd.min.js +1 -1
  8. package/bundles/sd-angular-core-button.umd.min.js.map +1 -1
  9. package/bundles/sd-angular-core-comment.umd.js +1 -1
  10. package/bundles/sd-angular-core-comment.umd.min.js +1 -1
  11. package/bundles/sd-angular-core-comment.umd.min.js.map +1 -1
  12. package/bundles/sd-angular-core-common.umd.js +8 -5
  13. package/bundles/sd-angular-core-common.umd.js.map +1 -1
  14. package/bundles/sd-angular-core-common.umd.min.js +1 -1
  15. package/bundles/sd-angular-core-common.umd.min.js.map +1 -1
  16. package/bundles/sd-angular-core-grid-material.umd.js +42 -30
  17. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  18. package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
  19. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  20. package/bundles/sd-angular-core-grid.umd.js +3 -3
  21. package/bundles/sd-angular-core-grid.umd.min.js +1 -1
  22. package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
  23. package/bundles/sd-angular-core-modal-resizable.umd.js +1 -1
  24. package/bundles/sd-angular-core-modal-resizable.umd.min.js +2 -2
  25. package/bundles/sd-angular-core-modal-resizable.umd.min.js.map +1 -1
  26. package/bundles/sd-angular-core-side-drawer.umd.js +1 -1
  27. package/bundles/sd-angular-core-side-drawer.umd.min.js +1 -1
  28. package/bundles/sd-angular-core-side-drawer.umd.min.js.map +1 -1
  29. package/bundles/sd-angular-core-upload-file.umd.js +1 -1
  30. package/bundles/sd-angular-core-upload-file.umd.min.js +1 -1
  31. package/bundles/sd-angular-core-upload-file.umd.min.js.map +1 -1
  32. package/button/sd-angular-core-button.metadata.json +1 -1
  33. package/comment/sd-angular-core-comment.metadata.json +1 -1
  34. package/common/sd-angular-core-common.metadata.json +1 -1
  35. package/common/src/lib/directives/sd-let.directive.d.ts +1 -1
  36. package/esm2015/badge/src/lib/badge.component.js +1 -1
  37. package/esm2015/button/src/lib/button.component.js +1 -1
  38. package/esm2015/comment/src/lib/comment.component.js +1 -1
  39. package/esm2015/common/src/lib/directives/sd-let.directive.js +9 -6
  40. package/esm2015/grid/src/lib/components/grid-desktop-column-children-view/grid-desktop-column-children-view.component.js +1 -1
  41. package/esm2015/grid/src/lib/components/grid-desktop-column-view/grid-desktop-column-view.component.js +1 -1
  42. package/esm2015/grid/src/lib/grid.component.js +1 -1
  43. package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +3 -3
  44. package/esm2015/grid-material/src/lib/components/desktop-editor-validation/desktop-editor-validation.component.js +1 -1
  45. package/esm2015/grid-material/src/lib/grid-material.component.js +1 -1
  46. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  47. package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +20 -11
  48. package/esm2015/modal-resizable/src/lib/modal-resizable/modal-resizable.component.js +1 -1
  49. package/esm2015/side-drawer/src/lib/side-drawer/side-drawer.component.js +1 -1
  50. package/esm2015/upload-file/src/lib/upload-file.component.js +1 -1
  51. package/fesm2015/sd-angular-core-badge.js +1 -1
  52. package/fesm2015/sd-angular-core-button.js +1 -1
  53. package/fesm2015/sd-angular-core-comment.js +1 -1
  54. package/fesm2015/sd-angular-core-common.js +8 -6
  55. package/fesm2015/sd-angular-core-common.js.map +1 -1
  56. package/fesm2015/sd-angular-core-grid-material.js +23 -14
  57. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  58. package/fesm2015/sd-angular-core-grid.js +3 -3
  59. package/fesm2015/sd-angular-core-modal-resizable.js +1 -1
  60. package/fesm2015/sd-angular-core-side-drawer.js +1 -1
  61. package/fesm2015/sd-angular-core-upload-file.js +1 -1
  62. package/grid/sd-angular-core-grid.metadata.json +1 -1
  63. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  64. package/grid-material/src/lib/models/grid-column.model.d.ts +1 -1
  65. package/modal-resizable/sd-angular-core-modal-resizable.metadata.json +1 -1
  66. package/package.json +1 -1
  67. package/{sd-angular-core-1.0.8.tgz → sd-angular-core-1.0.13.tgz} +0 -0
  68. package/side-drawer/sd-angular-core-side-drawer.metadata.json +1 -1
  69. package/upload-file/sd-angular-core-upload-file.metadata.json +1 -1
@@ -2748,7 +2748,7 @@
2748
2748
  animations.transition('expanded <=> collapsed', animations.animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
2749
2749
  ]),
2750
2750
  ],
2751
- styles: [":host{display:flex;flex-direction:column;height:100%;overflow:auto}:host .c-container{display:flex;flex:1;flex-direction:column;min-height:200px;position:relative}:host .c-container .c-table{flex:1;min-height:300px;position:relative}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-header-row,:host .c-container .c-table table tr.c-second-header.mat-header-row{height:40px}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:#e5ecff}:host .c-container .c-table table tr.c-row.selected{background-color:#eef2ff}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:#f5f5f5}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:#f5f5f5}:host .c-container .c-table table th.mat-header-cell{background-color:#f2f3f4;border-bottom:0!important}:host .c-container .c-table table td.mat-cell,:host .c-container .c-table table td.mat-footer-cell,:host .c-container .c-table table th.mat-header-cell{border-bottom-color:#f2f2f2!important}:host .c-container .c-table .c-th{color:#212121;font-size:14px;font-weight:500;line-height:20px;vertical-align:middle}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-loading{align-items:center;background:rgba(0,0,0,.15);bottom:56px;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:2}:host .c-container .c-paginator{align-items:center;background-color:#fff;display:flex;flex-direction:row;justify-content:space-between}:host .c-container .c-paginator .c-action{padding:5px}:host .c-container .c-empty{background-color:#fff;border:none!important;text-align:center}:host .c-container .c-empty mat-icon{font-size:150px;height:auto;margin-bottom:30px;margin-top:30px;opacity:.2;width:auto}:host button.c-btn-add{background-color:#fff;box-shadow:0 2px 4px rgba(47,49,54,.16)}:host mat-icon.c-icon{color:rgba(0,0,0,.54)!important}:host mat-icon.c-icon-add{color:#2962ff!important}:host .lds-ring{display:inline-block;height:40px;position:relative;width:40px}:host .lds-ring div{-webkit-animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border:4px solid transparent;border-radius:50%;border-top-color:#cef;box-sizing:border-box;display:block;height:32px;margin:4px;position:absolute;width:32px}:host .lds-ring div:first-child{-webkit-animation-delay:-.45s;animation-delay:-.45s}:host .lds-ring div:nth-child(2){-webkit-animation-delay:-.3s;animation-delay:-.3s}:host .lds-ring div:nth-child(3){-webkit-animation-delay:-.15s;animation-delay:-.15s}:host .style1 .mat-table{border:1px solid #dde0e5}:host .style1 .mat-table tr.mat-header-row{background:#f2f3f4}:host .style1 .mat-table th.mat-header-cell{padding:10px 0}:host .style1 .c-paginator{border:1px solid #dde0e5;border-top:none!important}:host .style1 .mat-form-field-wrapper{background:#fff;padding:0}@-webkit-keyframes lds-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes lds-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}:host ::ng-deep .mat-sort-header-content{display:block;text-align:left;width:100%}:host ::ng-deep .mat-select-arrow{color:#a6a6a6}:host ::ng-deep .mat-sort-header-disabled{background-image:none!important;cursor:default!important;padding-right:12px!important}:host ::ng-deep .mat-sort-header-container{align-items:start!important}:host ::ng-deep .mat-sort-header-arrow{margin-top:4px!important}:host ::ng-deep .mat-sort-header{cursor:pointer}:host ::ng-deep .mat-sort-header[aria-sort]{background-position:center right 0;background-repeat:no-repeat;background-size:16px 16px;cursor:pointer;padding-right:24px}:host ::ng-deep .mat-sort-header[aria-sort=none]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep .mat-sort-header[aria-sort=ascending]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep .mat-sort-header[aria-sort=descending]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}"]
2751
+ styles: [".text-black400{color:#757575}:host{display:flex;flex-direction:column;height:100%;overflow:auto}:host .c-container{display:flex;flex:1;flex-direction:column;min-height:200px;position:relative}:host .c-container .c-table{flex:1;min-height:300px;position:relative}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-header-row,:host .c-container .c-table table tr.c-second-header.mat-header-row{height:40px}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:#e5ecff}:host .c-container .c-table table tr.c-row.selected{background-color:#eef2ff}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:#f5f5f5}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:#f5f5f5}:host .c-container .c-table table th.mat-header-cell{background-color:#f2f3f4;border-bottom:0!important}:host .c-container .c-table table td.mat-cell,:host .c-container .c-table table td.mat-footer-cell,:host .c-container .c-table table th.mat-header-cell{border-bottom-color:#f2f2f2!important}:host .c-container .c-table .c-th{color:#212121;font-size:14px;font-weight:500;line-height:20px;vertical-align:middle}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-loading{align-items:center;background:rgba(0,0,0,.15);bottom:56px;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:2}:host .c-container .c-paginator{align-items:center;background-color:#fff;display:flex;flex-direction:row;justify-content:space-between}:host .c-container .c-paginator .c-action{padding:5px}:host .c-container .c-empty{background-color:#fff;border:none!important;text-align:center}:host .c-container .c-empty mat-icon{font-size:150px;height:auto;margin-bottom:30px;margin-top:30px;opacity:.2;width:auto}:host button.c-btn-add{background-color:#fff;box-shadow:0 2px 4px rgba(47,49,54,.16)}:host mat-icon.c-icon{color:rgba(0,0,0,.54)!important}:host mat-icon.c-icon-add{color:#2962ff!important}:host .lds-ring{display:inline-block;height:40px;position:relative;width:40px}:host .lds-ring div{-webkit-animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border:4px solid transparent;border-radius:50%;border-top-color:#cef;box-sizing:border-box;display:block;height:32px;margin:4px;position:absolute;width:32px}:host .lds-ring div:first-child{-webkit-animation-delay:-.45s;animation-delay:-.45s}:host .lds-ring div:nth-child(2){-webkit-animation-delay:-.3s;animation-delay:-.3s}:host .lds-ring div:nth-child(3){-webkit-animation-delay:-.15s;animation-delay:-.15s}:host .style1 .mat-table{border:1px solid #dde0e5}:host .style1 .mat-table tr.mat-header-row{background:#f2f3f4}:host .style1 .mat-table th.mat-header-cell{padding:10px 0}:host .style1 .c-paginator{border:1px solid #dde0e5;border-top:none!important}:host .style1 .mat-form-field-wrapper{background:#fff;padding:0}@-webkit-keyframes lds-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes lds-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}:host ::ng-deep .mat-sort-header-content{display:block;text-align:left;width:100%}:host ::ng-deep .mat-select-arrow{color:#a6a6a6}:host ::ng-deep .mat-sort-header-disabled{background-image:none!important;cursor:default!important;padding-right:12px!important}:host ::ng-deep .mat-sort-header-container{align-items:start!important}:host ::ng-deep .mat-sort-header-arrow{margin-top:4px!important}:host ::ng-deep .mat-sort-header{cursor:pointer}:host ::ng-deep .mat-sort-header[aria-sort]{background-position:center right 0;background-repeat:no-repeat;background-size:16px 16px;cursor:pointer;padding-right:24px}:host ::ng-deep .mat-sort-header[aria-sort=none]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep .mat-sort-header[aria-sort=ascending]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep .mat-sort-header[aria-sort=descending]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}"]
2752
2752
  },] }
2753
2753
  ];
2754
2754
  SdGridMaterial.ctorParameters = function () { return [
@@ -3023,9 +3023,9 @@
3023
3023
  SdDesktopCellView.decorators = [
3024
3024
  { type: core.Component, args: [{
3025
3025
  selector: 'sd-desktop-cell-view',
3026
- template: "<ng-container *sdLet=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <div *ngIf=\"!!view.display.html;else useValue\" (click)=\"!!view.click && view.click()\" class=\"text-break\"\r\n [class.cursor-pointer]=\"!!view.click\" [matTooltip]=\"view.tooltip\" [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n <ng-template #useValue>\r\n <ng-container *ngIf=\"!!view.badge; else noBadge\">\r\n <sd-badge [type]=\"view.badge.type\" [title]=\"view.display.value\" [color]=\"view.badge.color\"\r\n [icon]=\"view.badge.icon\" [tooltip]=\"view.tooltip\" (sdClick)=\"column.click(item[column.field], item)\"></sd-badge>\r\n </ng-container>\r\n <ng-template #noBadge>\r\n <ng-container *ngIf=\"column.type !== 'children'; else childrenView\">\r\n <div *ngIf=\"column.type !== 'image'\" class=\"text-break\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [matTooltip]=\"view.tooltip\">\r\n <a *ngIf=\"!!view.click\" href=\"javascript:;\" (click)=\"view.click()\">{{view.display.value}}</a>\r\n <ng-container *ngIf=\"!view.click\">{{view.display.value}}\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"column.type === 'image'\" class=\"align-middle text-center\">\r\n <img *ngIf=\"view.display.value\" [src]=\"view.display.value\" [width]=\"column.option?.width\"\r\n [height]=\"column.option?.height\" class=\"c-image\" (click)=\"!!view.click && view.click()\"\r\n [class.cursor-pointer]=\"!!view.click\">\r\n <mat-icon *ngIf=\"!view.display.value\" class=\"c-img\" [class.cursor-pointer]=\"!!view.click\"\r\n (click)=\"!!view.click && view.click()\">\r\n image</mat-icon>\r\n </div>\r\n </ng-container>\r\n <ng-template #childrenView>\r\n <sd-desktop-cell-children-view [key]=\"key\" [item]=\"item\" [column]=\"column\">\r\n </sd-desktop-cell-children-view>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-container>",
3026
+ template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <div *ngIf=\"!!view.display.html;else useValue\" (click)=\"!!view.click && view.click()\" class=\"text-break\"\r\n [class.cursor-pointer]=\"!!view.click\" [matTooltip]=\"view.tooltip\" [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n <ng-template #useValue>\r\n <ng-container *ngIf=\"!!view.badge; else noBadge\">\r\n <sd-badge [type]=\"view.badge.type\" [title]=\"view.display.value\" [color]=\"view.badge.color\"\r\n [icon]=\"view.badge.icon\" [tooltip]=\"view.tooltip\" (sdClick)=\"column.click(item[column.field], item)\"></sd-badge>\r\n </ng-container>\r\n <ng-template #noBadge>\r\n <ng-container *ngIf=\"column.type !== 'children'; else childrenView\">\r\n <div *ngIf=\"column.type !== 'image'\" class=\"text-break\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [matTooltip]=\"view.tooltip\">\r\n <a *ngIf=\"!!view.click\" href=\"javascript:;\" (click)=\"view.click()\">{{view.display.value}}</a>\r\n <ng-container *ngIf=\"!view.click\">{{view.display.value}}\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"column.type === 'image'\" class=\"align-middle text-center\">\r\n <img *ngIf=\"view.display.value\" [src]=\"view.display.value\" [width]=\"column.option?.width\"\r\n [height]=\"column.option?.height\" class=\"c-image\" (click)=\"!!view.click && view.click()\"\r\n [class.cursor-pointer]=\"!!view.click\">\r\n <mat-icon *ngIf=\"!view.display.value\" class=\"c-img\" [class.cursor-pointer]=\"!!view.click\"\r\n (click)=\"!!view.click && view.click()\">\r\n image</mat-icon>\r\n </div>\r\n </ng-container>\r\n <ng-template #childrenView>\r\n <sd-desktop-cell-children-view [key]=\"key\" [item]=\"item\" [column]=\"column\">\r\n </sd-desktop-cell-children-view>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-container>",
3027
3027
  changeDetection: core.ChangeDetectionStrategy.OnPush,
3028
- styles: [".c-color-success{color:#4caf50}.c-color-danger{color:#f82c13}.c-image{-o-object-fit:contain;margin:5px 0;object-fit:contain}.c-img{font-size:30px;opacity:.5}.c-img.pointer:hover{opacity:.9}"]
3028
+ styles: [".text-black400{color:#757575}.c-color-success{color:#4caf50}.c-color-danger{color:#f82c13}.c-image{-o-object-fit:contain;margin:5px 0;object-fit:contain}.c-img{font-size:30px;opacity:.5}.c-img.pointer:hover{opacity:.9}"]
3029
3029
  },] }
3030
3030
  ];
3031
3031
  SdDesktopCellView.ctorParameters = function () { return []; };
@@ -4095,7 +4095,7 @@
4095
4095
  selector: 'sd-desktop-editor-validation',
4096
4096
  template: "<ng-container *sdLet=\"item.sdId | sdEditorValidate:item:items:gridOption | async\">\r\n <div class=\"c-editor-validation\" [class.c-danger]=\"!!item.editorErrorMessage\" matTooltipPosition=\"after\"\r\n [matTooltip]=\"item.editorErrorMessage\">\r\n </div>\r\n</ng-container>",
4097
4097
  changeDetection: core.ChangeDetectionStrategy.OnPush,
4098
- styles: [":host{height:100%;left:0;padding:12px 0;position:absolute;top:0}:host .c-editor-validation{border-bottom-right-radius:2px;border-top-right-radius:2px;height:100%;max-width:4px;min-width:4px;width:4px}:host .c-danger{background-color:#f82c13}"]
4098
+ styles: [".text-black400{color:#757575}:host{height:100%;left:0;padding:12px 0;position:absolute;top:0}:host .c-editor-validation{border-bottom-right-radius:2px;border-top-right-radius:2px;height:100%;max-width:4px;min-width:4px;width:4px}:host .c-danger{background-color:#f82c13}"]
4099
4099
  },] }
4100
4100
  ];
4101
4101
  SdDesktopEditorValidation.ctorParameters = function () { return []; };
@@ -4279,9 +4279,9 @@
4279
4279
  SdCellViewPipe.prototype.transform = function (value, rowData, column, gridOption, key) {
4280
4280
  var _a, _b, _c, _d;
4281
4281
  return __awaiter(this, void 0, void 0, function () {
4282
- var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, timeDifferent, seconds, data, option;
4283
- return __generator(this, function (_e) {
4284
- switch (_e.label) {
4282
+ var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, val, _e, option, seconds, data, option;
4283
+ return __generator(this, function (_f) {
4284
+ switch (_f.label) {
4285
4285
  case 0:
4286
4286
  displayOnEmpty = gridOption.displayOnEmpty;
4287
4287
  align = column.align, click = column.click, tooltip = column.tooltip, htmlTemplate = column.htmlTemplate, transform = column.transform;
@@ -4296,70 +4296,82 @@
4296
4296
  };
4297
4297
  if (!(typeof (htmlTemplate) === 'function')) return [3 /*break*/, 1];
4298
4298
  result.display.html = htmlTemplate(value, rowData, __classPrivateFieldGet(this, _isMobileOrTablet$1));
4299
- return [3 /*break*/, 7];
4299
+ return [3 /*break*/, 10];
4300
4300
  case 1:
4301
- if (!transform) return [3 /*break*/, 2];
4302
- result.display.value = transform(value, rowData);
4303
- return [3 /*break*/, 6];
4301
+ if (!(typeof (transform) === 'function')) return [3 /*break*/, 5];
4302
+ val = transform(value, rowData);
4303
+ if (!(val instanceof Promise)) return [3 /*break*/, 3];
4304
+ _e = result.display;
4305
+ return [4 /*yield*/, val];
4304
4306
  case 2:
4307
+ _e.value = _f.sent();
4308
+ return [3 /*break*/, 4];
4309
+ case 3:
4310
+ result.display.value = val;
4311
+ _f.label = 4;
4312
+ case 4: return [3 /*break*/, 9];
4313
+ case 5:
4305
4314
  if (column.type === 'date' || column.type === 'datetime') {
4306
- timeDifferent = column.option.timeDifferent;
4315
+ option = column.option;
4307
4316
  seconds = Math.round((new Date().getTime() - new Date(value).getTime()) / 1000);
4308
- if (timeDifferent === 'month' && seconds < __classPrivateFieldGet(this, _maxMonth)) {
4317
+ if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'month' && seconds < __classPrivateFieldGet(this, _maxMonth)) {
4309
4318
  result.display.value = this.utilityService.timeDifference(value);
4310
4319
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4311
4320
  }
4312
- else if (timeDifferent === 'day' && seconds < __classPrivateFieldGet(this, _maxDay)) {
4321
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'day' && seconds < __classPrivateFieldGet(this, _maxDay)) {
4313
4322
  result.display.value = this.utilityService.timeDifference(value);
4314
4323
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4315
4324
  }
4316
- else if (timeDifferent === 'hour' && seconds < __classPrivateFieldGet(this, _maxHour)) {
4325
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'hour' && seconds < __classPrivateFieldGet(this, _maxHour)) {
4317
4326
  result.display.value = this.utilityService.timeDifference(value);
4318
4327
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4319
4328
  }
4320
- else if (timeDifferent === 'minute' && seconds < __classPrivateFieldGet(this, _maxMinute)) {
4329
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'minute' && seconds < __classPrivateFieldGet(this, _maxMinute)) {
4321
4330
  result.display.value = this.utilityService.timeDifference(value);
4322
4331
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4323
4332
  }
4324
- else if (timeDifferent === 'second' && seconds < __classPrivateFieldGet(this, _maxSecond)) {
4333
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'second' && seconds < __classPrivateFieldGet(this, _maxSecond)) {
4325
4334
  result.display.value = this.utilityService.timeDifference(value);
4326
4335
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4327
4336
  }
4328
4337
  else {
4329
4338
  result.display.value = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4339
+ if (column.type === 'datetime' && result.display.value) {
4340
+ result.display.html = "<span class=\"d-block T14R text-black400\">" + Date.toFormat(value, 'HH:mm') + "</span><span class=\"d-block T14R\">" + Date.toFormat(value, 'dd/MM/yyyy') + "</span>";
4341
+ }
4330
4342
  }
4331
4343
  }
4332
4344
  if (column.type === 'time') {
4333
4345
  result.display.value = Date.toFormat(value, 'HH:mm');
4334
4346
  }
4335
- if (!(column.type === 'values')) return [3 /*break*/, 4];
4347
+ if (!(column.type === 'values')) return [3 /*break*/, 7];
4336
4348
  return [4 /*yield*/, this.gridService.loadValues(column, key)];
4337
- case 3:
4338
- data = _e.sent();
4349
+ case 6:
4350
+ data = _f.sent();
4339
4351
  result.display.value = (_c = (_a = data.obj[value]) === null || _a === void 0 ? void 0 : _a[(_b = column.option) === null || _b === void 0 ? void 0 : _b.displayField]) !== null && _c !== void 0 ? _c : value;
4340
- return [3 /*break*/, 5];
4341
- case 4:
4352
+ return [3 /*break*/, 8];
4353
+ case 7:
4342
4354
  if (column.type === 'number' && Number.isNumber(value)) {
4343
- result.display.value = Number.toVNCurrency(value); // this.decimalPipe.transform(value, '1.0-2');
4355
+ result.display.value = Number.toVNCurrency(value);
4344
4356
  }
4345
- _e.label = 5;
4346
- case 5:
4357
+ _f.label = 8;
4358
+ case 8:
4347
4359
  if (column.type === 'bool') {
4348
4360
  option = column.option;
4349
4361
  result.display.value = value === true ? ((option === null || option === void 0 ? void 0 : option.displayOnTrue) || 'True') : ((option === null || option === void 0 ? void 0 : option.displayOnFalse) || 'False');
4350
4362
  }
4351
- _e.label = 6;
4352
- case 6:
4363
+ _f.label = 9;
4364
+ case 9:
4353
4365
  if (displayOnEmpty && (result.display.value === null || result.display.value === undefined || result.display.value === '')) {
4354
4366
  if (typeof (displayOnEmpty) === 'function') {
4355
4367
  result.display.html = displayOnEmpty(rowData, column);
4356
4368
  }
4357
4369
  else {
4358
- result.display.html = "<div class=\"T16R\">--</div>";
4370
+ result.display.html = "<div class=\"T16R text-black400\">--</div>";
4359
4371
  }
4360
4372
  }
4361
- _e.label = 7;
4362
- case 7:
4373
+ _f.label = 10;
4374
+ case 10:
4363
4375
  // Badge
4364
4376
  if ((column.type === 'string' || column.type === 'number' || column.type === 'values') && column.badge) {
4365
4377
  result.badge = {