@sd-angular/core 0.0.1038 → 0.0.1042

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 (82) 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 +2 -2
  4. package/bundles/sd-angular-core-badge.umd.js.map +1 -1
  5. package/bundles/sd-angular-core-badge.umd.min.js +1 -1
  6. package/bundles/sd-angular-core-badge.umd.min.js.map +1 -1
  7. package/bundles/sd-angular-core-chip.umd.js +41 -10
  8. package/bundles/sd-angular-core-chip.umd.js.map +1 -1
  9. package/bundles/sd-angular-core-chip.umd.min.js +2 -2
  10. package/bundles/sd-angular-core-chip.umd.min.js.map +1 -1
  11. package/bundles/sd-angular-core-filter.umd.js +703 -0
  12. package/bundles/sd-angular-core-filter.umd.js.map +1 -0
  13. package/bundles/sd-angular-core-filter.umd.min.js +2 -0
  14. package/bundles/sd-angular-core-filter.umd.min.js.map +1 -0
  15. package/bundles/sd-angular-core-grid-material.umd.js +96 -48
  16. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  17. package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
  18. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  19. package/bundles/sd-angular-core-setting.umd.js +176 -117
  20. package/bundles/sd-angular-core-setting.umd.js.map +1 -1
  21. package/bundles/sd-angular-core-setting.umd.min.js +1 -1
  22. package/bundles/sd-angular-core-setting.umd.min.js.map +1 -1
  23. package/bundles/sd-angular-core.umd.js +4 -4
  24. package/bundles/sd-angular-core.umd.min.js +1 -1
  25. package/bundles/sd-angular-core.umd.min.js.map +1 -1
  26. package/chip/sd-angular-core-chip.metadata.json +1 -1
  27. package/chip/src/lib/chip.component.d.ts +8 -1
  28. package/esm2015/badge/src/lib/badge.component.js +3 -3
  29. package/esm2015/chip/src/lib/chip.component.js +34 -4
  30. package/esm2015/chip/src/lib/chip.module.js +6 -3
  31. package/esm2015/filter/index.js +2 -0
  32. package/esm2015/filter/sd-angular-core-filter.js +8 -0
  33. package/esm2015/filter/src/lib/directives/sd-filter-def.directive.js +22 -0
  34. package/esm2015/filter/src/lib/filter.component.js +161 -0
  35. package/esm2015/filter/src/lib/filter.model.js +2 -0
  36. package/esm2015/filter/src/lib/filter.module.js +47 -0
  37. package/esm2015/filter/src/lib/filter.service.js +60 -0
  38. package/esm2015/filter/src/lib/pipes/values-local.pipe.js +19 -0
  39. package/esm2015/filter/src/lib/pipes/values-server.pipe.js +18 -0
  40. package/esm2015/filter/src/public-api.js +8 -0
  41. package/esm2015/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.js +10 -7
  42. package/esm2015/grid-material/src/lib/components/quick-action/quick-action.component.js +1 -1
  43. package/esm2015/grid-material/src/lib/grid-material.component.js +1 -6
  44. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  45. package/esm2015/grid-material/src/lib/services/generated-column/generated-column.service.js +28 -12
  46. package/esm2015/grid-material/src/lib/services/grid-configuration.service.js +50 -21
  47. package/esm2015/public-api.js +2 -1
  48. package/esm2015/setting/src/lib/setting.model.js +1 -1
  49. package/esm2015/setting/src/lib/setting.service.js +119 -58
  50. package/fesm2015/sd-angular-core-badge.js +2 -2
  51. package/fesm2015/sd-angular-core-badge.js.map +1 -1
  52. package/fesm2015/sd-angular-core-chip.js +37 -5
  53. package/fesm2015/sd-angular-core-chip.js.map +1 -1
  54. package/fesm2015/sd-angular-core-filter.js +323 -0
  55. package/fesm2015/sd-angular-core-filter.js.map +1 -0
  56. package/fesm2015/sd-angular-core-grid-material.js +86 -43
  57. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  58. package/fesm2015/sd-angular-core-setting.js +119 -58
  59. package/fesm2015/sd-angular-core-setting.js.map +1 -1
  60. package/fesm2015/sd-angular-core.js +1 -0
  61. package/fesm2015/sd-angular-core.js.map +1 -1
  62. package/filter/index.d.ts +1 -0
  63. package/filter/package.json +12 -0
  64. package/filter/sd-angular-core-filter.d.ts +7 -0
  65. package/filter/sd-angular-core-filter.metadata.json +1 -0
  66. package/filter/src/lib/directives/sd-filter-def.directive.d.ts +8 -0
  67. package/filter/src/lib/filter.component.d.ts +31 -0
  68. package/filter/src/lib/filter.model.d.ts +105 -0
  69. package/filter/src/lib/filter.module.d.ts +2 -0
  70. package/filter/src/lib/filter.service.d.ts +9 -0
  71. package/filter/src/lib/pipes/values-local.pipe.d.ts +5 -0
  72. package/filter/src/lib/pipes/values-server.pipe.d.ts +5 -0
  73. package/filter/src/public-api.d.ts +4 -0
  74. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  75. package/grid-material/src/lib/models/grid-column.model.d.ts +1 -0
  76. package/grid-material/src/lib/services/generated-column/generated-column.service.d.ts +3 -2
  77. package/package.json +1 -1
  78. package/public-api.d.ts +1 -0
  79. package/{sd-angular-core-0.0.1038.tgz → sd-angular-core-0.0.1042.tgz} +0 -0
  80. package/setting/sd-angular-core-setting.metadata.json +1 -1
  81. package/setting/src/lib/setting.model.d.ts +20 -6
  82. package/setting/src/lib/setting.service.d.ts +2 -1
@@ -798,14 +798,27 @@ class SdGridConfigurationService {
798
798
  return __classPrivateFieldGet(this, _default).call(this, gridOption);
799
799
  }
800
800
  const { columns, config } = gridOption;
801
- const { get, remove } = this.settingService.create(key, {
802
- type: config === null || config === void 0 ? void 0 : config.storage,
803
- args: config === null || config === void 0 ? void 0 : config.args
804
- });
805
- const configuration = yield get().catch(() => undefined);
806
- if (!(configuration === null || configuration === void 0 ? void 0 : configuration.columns)) {
807
- remove().catch(console.error);
808
- return __classPrivateFieldGet(this, _default).call(this, gridOption);
801
+ let configuration;
802
+ if ((config === null || config === void 0 ? void 0 : config.storage) === 'server') {
803
+ const { get, remove } = this.settingService.createServer(key, {
804
+ args: config === null || config === void 0 ? void 0 : config.args
805
+ });
806
+ configuration = yield get().catch(() => undefined);
807
+ if (!(configuration === null || configuration === void 0 ? void 0 : configuration.columns)) {
808
+ remove().catch(console.error);
809
+ return __classPrivateFieldGet(this, _default).call(this, gridOption);
810
+ }
811
+ }
812
+ else {
813
+ const { get, remove } = this.settingService.create(key, {
814
+ type: config === null || config === void 0 ? void 0 : config.storage,
815
+ args: config === null || config === void 0 ? void 0 : config.args
816
+ });
817
+ configuration = get();
818
+ if (!(configuration === null || configuration === void 0 ? void 0 : configuration.columns)) {
819
+ remove();
820
+ return __classPrivateFieldGet(this, _default).call(this, gridOption);
821
+ }
809
822
  }
810
823
  configuration.columns = configuration.columns
811
824
  .filter(column => column.isGeneratedColumn || columns.some(e => !e.hidden && e.field === column.origin.field));
@@ -837,27 +850,43 @@ class SdGridConfigurationService {
837
850
  });
838
851
  });
839
852
  _set.set(this, (gridOption, configuration) => {
840
- var _a, _b;
853
+ var _a, _b, _c, _d;
841
854
  const key = __classPrivateFieldGet(this, _getKey).call(this, gridOption);
842
855
  if (key) {
843
- const { set } = this.settingService.create(key, {
844
- type: (_a = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _a === void 0 ? void 0 : _a.storage,
845
- args: (_b = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _b === void 0 ? void 0 : _b.args
846
- });
847
- set(configuration);
856
+ if (((_a = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _a === void 0 ? void 0 : _a.storage) === 'server') {
857
+ const { set } = this.settingService.createServer(key, {
858
+ args: (_b = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _b === void 0 ? void 0 : _b.args
859
+ });
860
+ set(configuration);
861
+ }
862
+ else {
863
+ const { set } = this.settingService.create(key, {
864
+ type: (_c = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _c === void 0 ? void 0 : _c.storage,
865
+ args: (_d = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _d === void 0 ? void 0 : _d.args
866
+ });
867
+ set(configuration);
868
+ }
848
869
  }
849
870
  return JSON.parse(JSON.stringify(configuration));
850
871
  });
851
872
  _remove.set(this, (gridOption) => {
852
873
  return () => {
853
- var _a, _b;
874
+ var _a, _b, _c, _d;
854
875
  const key = __classPrivateFieldGet(this, _getKey).call(this, gridOption);
855
876
  if (key) {
856
- const { remove } = this.settingService.create(key, {
857
- type: (_a = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _a === void 0 ? void 0 : _a.storage,
858
- args: (_b = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _b === void 0 ? void 0 : _b.args
859
- });
860
- remove();
877
+ if (((_a = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _a === void 0 ? void 0 : _a.storage) === 'server') {
878
+ const { remove } = this.settingService.createServer(key, {
879
+ args: (_b = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _b === void 0 ? void 0 : _b.args
880
+ });
881
+ remove();
882
+ }
883
+ else {
884
+ const { remove } = this.settingService.create(key, {
885
+ type: (_c = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _c === void 0 ? void 0 : _c.storage,
886
+ args: (_d = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _d === void 0 ? void 0 : _d.args
887
+ });
888
+ remove();
889
+ }
861
890
  }
862
891
  };
863
892
  }
@@ -1392,11 +1421,6 @@ class SdGridMaterial {
1392
1421
  result = result.toPromise();
1393
1422
  }
1394
1423
  return yield result;
1395
- // if (exportedItems instanceof Promise) {
1396
- // return await exportedItems;
1397
- // } else {
1398
- // return exportedItems;
1399
- // }
1400
1424
  }
1401
1425
  else {
1402
1426
  const filterInfo = __classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize);
@@ -2667,16 +2691,24 @@ class SdGeneratedColumnService {
2667
2691
  key: configuration.key
2668
2692
  });
2669
2693
  if (!__classPrivateFieldGet(this, _cache$3)[key]) {
2670
- __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.create(key, {
2671
- type: configuration === null || configuration === void 0 ? void 0 : configuration.storage,
2672
- args: configuration === null || configuration === void 0 ? void 0 : configuration.args,
2673
- default: []
2674
- });
2694
+ if ((configuration === null || configuration === void 0 ? void 0 : configuration.storage) === 'server') {
2695
+ __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.createServer(key, {
2696
+ args: configuration === null || configuration === void 0 ? void 0 : configuration.args,
2697
+ default: []
2698
+ });
2699
+ }
2700
+ else {
2701
+ __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.create(key, {
2702
+ type: configuration === null || configuration === void 0 ? void 0 : configuration.storage,
2703
+ args: configuration === null || configuration === void 0 ? void 0 : configuration.args,
2704
+ default: []
2705
+ });
2706
+ }
2675
2707
  }
2676
2708
  return __classPrivateFieldGet(this, _cache$3)[key];
2677
2709
  };
2678
2710
  this.loadSystem = (configuration) => {
2679
- var _a;
2711
+ var _a, _b;
2680
2712
  if (!(configuration === null || configuration === void 0 ? void 0 : configuration.key)) {
2681
2713
  return null;
2682
2714
  }
@@ -2688,11 +2720,19 @@ class SdGeneratedColumnService {
2688
2720
  key: configuration.key
2689
2721
  });
2690
2722
  if (!__classPrivateFieldGet(this, _cache$3)[key]) {
2691
- __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.create(key, {
2692
- type: 'server',
2693
- args: (_a = configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn) === null || _a === void 0 ? void 0 : _a.args,
2694
- default: []
2695
- });
2723
+ if ((configuration === null || configuration === void 0 ? void 0 : configuration.storage) === 'server') {
2724
+ __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.createServer(key, {
2725
+ args: (_a = configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn) === null || _a === void 0 ? void 0 : _a.args,
2726
+ default: []
2727
+ });
2728
+ }
2729
+ else {
2730
+ __classPrivateFieldGet(this, _cache$3)[key] = this.settingService.create(key, {
2731
+ type: configuration === null || configuration === void 0 ? void 0 : configuration.storage,
2732
+ args: (_b = configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn) === null || _b === void 0 ? void 0 : _b.args,
2733
+ default: []
2734
+ });
2735
+ }
2696
2736
  }
2697
2737
  return __classPrivateFieldGet(this, _cache$3)[key];
2698
2738
  };
@@ -3009,18 +3049,21 @@ class SdColumnInlineFilter {
3009
3049
  };
3010
3050
  }
3011
3051
  ngOnInit() {
3012
- if (['date', 'datetime', 'time'].includes(this.column.type)) {
3013
- this.columnFilter[this.column.field] = this.columnFilter[this.column.field] || {
3014
- from: null,
3015
- to: null
3016
- };
3052
+ var _a, _b;
3053
+ if (this.column.type === 'date' || this.column.type === 'time' || this.column.type === 'datetime') {
3054
+ if (!((_b = (_a = this.column) === null || _a === void 0 ? void 0 : _a.option) === null || _b === void 0 ? void 0 : _b.useFilterDate)) {
3055
+ this.columnFilter[this.column.field] = this.columnFilter[this.column.field] || {
3056
+ from: null,
3057
+ to: null
3058
+ };
3059
+ }
3017
3060
  }
3018
3061
  }
3019
3062
  }
3020
3063
  SdColumnInlineFilter.decorators = [
3021
3064
  { type: Component, args: [{
3022
3065
  selector: 'sd-column-inline-filter',
3023
- template: "<div class=\"c-inline-column\">\r\n <ng-container *ngIf=\"\r\n column.type === 'string' ||\r\n column.type === 'number' ||\r\n column.type === 'bool' ||\r\n column.type === 'values' ||\r\n column.type === 'date' ||\r\n column.type === 'datetime' ||\r\n column.type === 'time';\r\n else noFilter\">\r\n <sd-input *ngIf=\"column.type === 'string'\" size=\"sm\" type=\"text\" [(model)]=\"columnFilter[column.field]\"\r\n (keyupEnter)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-input>\r\n <sd-input *ngIf=\"column.type === 'number'\" size=\"sm\" type=\"number\" [(model)]=\"columnFilter[column.field]\"\r\n (keyupEnter)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-input>\r\n <sd-select *ngIf=\"column.type === 'bool'\" size=\"sm\" [items]=\"[\r\n { value: '1', display: column.option?.displayOnTrue || 'True' },\r\n { value: '0', display: column.option?.displayOnFalse || 'False' }\r\n ]\" valueField=\"value\" displayField=\"display\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\">\r\n <ng-template sdSelectDisplayDef let-item=\"item\">\r\n <sd-badge *ngIf=\"item.value === '1'\" color=\"success\"\r\n [title]=\"column.option?.displayOnTrue || 'True'\"></sd-badge>\r\n <sd-badge *ngIf=\"item.value === '0'\" color=\"danger\"\r\n [title]=\"column.option?.displayOnFalse || 'False'\"></sd-badge>\r\n </ng-template>\r\n </sd-select>\r\n <sd-select *ngIf=\"\r\n column.type === 'values' && column?.option?.selection !== 'AUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\" [multiple]=\"\r\n column?.option?.selection === 'MULTIPLE' ||\r\n column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\r\n \" [filtered]=\"column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\">\r\n </sd-select>\r\n <sd-autocomplete *ngIf=\"\r\n column.type === 'values' && column?.option?.selection === 'AUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\">\r\n </sd-autocomplete>\r\n <sd-date-range *ngIf=\"\r\n column.type === 'date' ||\r\n column.type === 'datetime' ||\r\n column.type === 'time'\r\n \" size=\"sm\" [(from)]=\"columnFilter[column.field].from\" [(to)]=\"columnFilter[column.field].to\"\r\n (sdChange)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-date-range>\r\n </ng-container>\r\n <ng-template #noFilter>\r\n <sd-input type=\"text\" size=\"sm\" disabled> </sd-input>\r\n </ng-template>\r\n</div>",
3066
+ template: "<div class=\"c-inline-column\">\r\n <ng-container *ngIf=\"\r\n column.type === 'string' ||\r\n column.type === 'number' ||\r\n column.type === 'bool' ||\r\n column.type === 'values' ||\r\n column.type === 'date' ||\r\n column.type === 'datetime' ||\r\n column.type === 'time';\r\n else noFilter\">\r\n <sd-input *ngIf=\"column.type === 'string'\" size=\"sm\" type=\"text\" [(model)]=\"columnFilter[column.field]\"\r\n (keyupEnter)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-input>\r\n <sd-input *ngIf=\"column.type === 'number'\" size=\"sm\" type=\"number\" [(model)]=\"columnFilter[column.field]\"\r\n (keyupEnter)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-input>\r\n <sd-select *ngIf=\"column.type === 'bool'\" size=\"sm\" [items]=\"[\r\n { value: '1', display: column.option?.displayOnTrue || 'True' },\r\n { value: '0', display: column.option?.displayOnFalse || 'False' }\r\n ]\" valueField=\"value\" displayField=\"display\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\">\r\n <ng-template sdSelectDisplayDef let-item=\"item\">\r\n <sd-badge *ngIf=\"item.value === '1'\" color=\"success\" [title]=\"column.option?.displayOnTrue || 'True'\">\r\n </sd-badge>\r\n <sd-badge *ngIf=\"item.value === '0'\" color=\"danger\" [title]=\"column.option?.displayOnFalse || 'False'\">\r\n </sd-badge>\r\n </ng-template>\r\n </sd-select>\r\n <sd-select *ngIf=\"\r\n column.type === 'values' && column?.option?.selection !== 'AUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\" [multiple]=\"\r\n column?.option?.selection === 'MULTIPLE' ||\r\n column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\r\n \" [filtered]=\"column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\">\r\n </sd-select>\r\n <sd-autocomplete *ngIf=\"\r\n column.type === 'values' && column?.option?.selection === 'AUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"columnFilter[column.field]\" (sdChange)=\"onFilterChange()\"\r\n [disabled]=\"column.filter?.disabled\">\r\n </sd-autocomplete>\r\n <ng-container *ngIf=\"column.type === 'date' || column.type === 'datetime' || column.type === 'time'\">\r\n <sd-date-range *ngIf=\"!column.option?.useFilterDate\" size=\"sm\" [(from)]=\"columnFilter[column.field].from\"\r\n [(to)]=\"columnFilter[column.field].to\" (sdChange)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-date-range>\r\n <sd-date-time *ngIf=\"column.option?.useFilterDate\" size=\"sm\" [(model)]=\"columnFilter[column.field]\"\r\n (sdChange)=\"onFilterChange()\" [disabled]=\"column.filter?.disabled\">\r\n </sd-date-time>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #noFilter>\r\n <sd-input type=\"text\" size=\"sm\" disabled> </sd-input>\r\n </ng-template>\r\n</div>",
3024
3067
  changeDetection: ChangeDetectionStrategy.OnPush,
3025
3068
  styles: [":host ::ng-deep .c-inline-column .mat-form-field-wrapper{background-color:#fff;border-radius:8px;margin:8px 0 0!important;padding:0!important}"]
3026
3069
  },] }
@@ -3115,7 +3158,7 @@ SdGridQuickAction.decorators = [
3115
3158
  selector: 'sd-grid-quick-action',
3116
3159
  template: "<sd-quick-action *ngIf=\"selectedItems | selectionActionFilter: gridOption?.selection?.actions as actions\"\r\n [isOpened]=\"actions?.length\">\r\n <div class=\"d-flex align-items-center\" sdMessage>\r\n <div class=\"c-bg-length\">\r\n <span class=\"c-length\">{{ selectedItems.length }}</span>\r\n </div>\r\n <div class=\"c-message\">{{ gridOption?.selection?.message || (\"selected items\" | sdTranslate) }}</div>\r\n </div>\r\n <div class=\"d-flex align-items-center mr-8\" sdAction>\r\n <ng-container *ngFor=\"let action of actions\">\r\n <sd-button *ngIf=\"action.click\" class=\"ml-5\" [tooltip]=\"action.tooltip\" [icon]=\"action.icon\"\r\n [color]=\"action.color || 'secondary'\" [type]=\"action.type || 'light'\" [fontSet]=\"action.fontSet\"\r\n [title]=\"action.title\" size=\"sm\" (action)=\"action.click(selectedItems)\"></sd-button>\r\n <ng-container *ngIf=\"action.children?.length\">\r\n <sd-button class=\"ml-5\" [tooltip]=\"action.tooltip\" [icon]=\"action.icon || 'more_vert'\"\r\n [color]=\"action.color || 'secondary'\" [type]=\"action.type || 'light'\" [fontSet]=\"action.fontSet\"\r\n [title]=\"action.title\" size=\"sm\" [matMenuTriggerFor]=\"menu\">\r\n </sd-button>\r\n <mat-menu #menu=\"matMenu\">\r\n <span>\r\n <button *ngFor=\"let childAction of action.children\" mat-menu-item (click)=\"childAction.click(selectedItems)\"\r\n [disabled]=\"childAction.disabled\">\r\n <mat-icon [fontSet]=\"childAction.fontSet\" class=\"c-icon\">{{ childAction.icon }}\r\n </mat-icon>\r\n <span> {{ childAction.title }}</span>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n </ng-container>\r\n </ng-container>\r\n <sd-button class=\"ml-5\" icon=\"close\" color=\"secondary\" type=\"outline\" size=\"sm\"\r\n (action)=\"onClear()\" width=\"35px\"></sd-button>\r\n </div>\r\n</sd-quick-action>",
3117
3160
  changeDetection: ChangeDetectionStrategy.OnPush,
3118
- styles: [".c-bg-length{align-items:flex-start;background:#2962ff;border-radius:4px 0 0 4px;display:flex;flex-direction:column;height:48px;left:0;padding:12px 8px;position:static;top:0;width:48px}.c-bg-length .c-length{color:#fff;font-size:16px;font-weight:500;height:24px;left:8px;line-height:24px;text-align:center;top:12px;width:32px}.c-bg-length .c-length,.c-message{font-family:Roboto;font-style:normal;position:static}.c-message{color:#000;font-size:14px;font-weight:400;height:20px;left:0;line-height:20px;margin:0 0 0 16px;min-width:200px;top:6px}"]
3161
+ styles: [".c-bg-length{align-items:flex-start;background:#2962ff;border-radius:4px 0 0 4px;display:flex;flex-direction:column;height:48px;left:0;min-width:48px;padding:12px 8px;position:static;top:0;width:auto}.c-bg-length .c-length{color:#fff;font-size:16px;font-weight:500;height:24px;left:8px;line-height:24px;min-width:32px;text-align:center;top:12px;width:auto}.c-bg-length .c-length,.c-message{font-family:Roboto;font-style:normal;position:static}.c-message{color:#000;font-size:14px;font-weight:400;height:20px;left:0;line-height:20px;margin:0 0 0 16px;min-width:200px;top:6px}"]
3119
3162
  },] }
3120
3163
  ];
3121
3164
  SdGridQuickAction.ctorParameters = () => [];