@firestitch/list 12.18.7 → 12.19.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.
Files changed (157) hide show
  1. package/app/classes/actions-controller.d.ts +20 -20
  2. package/app/classes/columns-controller.d.ts +71 -71
  3. package/app/classes/data-controller.d.ts +91 -91
  4. package/app/classes/external-params-controller.d.ts +32 -31
  5. package/app/classes/index.d.ts +2 -2
  6. package/app/classes/list-controller.d.ts +186 -186
  7. package/app/classes/pagination-controller.d.ts +196 -189
  8. package/app/classes/persistance-controller.d.ts +10 -10
  9. package/app/classes/reorder-controller.d.ts +68 -68
  10. package/app/classes/selection-controller.d.ts +155 -155
  11. package/app/classes/sorting-controller.d.ts +65 -64
  12. package/app/components/body/body.component.d.ts +28 -28
  13. package/app/components/body/row/actions/actions.component.d.ts +36 -36
  14. package/app/components/body/row/cell/cell.component.d.ts +22 -22
  15. package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
  16. package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
  17. package/app/components/body/row/row.component.d.ts +82 -82
  18. package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
  19. package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
  20. package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
  21. package/app/components/footer/footer.component.d.ts +15 -15
  22. package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
  23. package/app/components/head/head.component.d.ts +49 -49
  24. package/app/components/list/list.component.d.ts +124 -124
  25. package/app/components/loader/loader.component.d.ts +14 -14
  26. package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
  27. package/app/components/pagination/pagination.component.d.ts +14 -14
  28. package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
  29. package/app/components/status/status.component.d.ts +21 -21
  30. package/app/directives/cell/cell.directive.d.ts +8 -8
  31. package/app/directives/column/column.directive.d.ts +33 -33
  32. package/app/directives/content/content.directive.d.ts +5 -5
  33. package/app/directives/content-init/content-init.directive.d.ts +9 -9
  34. package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
  35. package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
  36. package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
  37. package/app/directives/footer/footer.directive.d.ts +8 -8
  38. package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
  39. package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
  40. package/app/directives/group-header/group-header.directive.d.ts +6 -6
  41. package/app/directives/header/header.directive.d.ts +8 -8
  42. package/app/directives/heading/heading.directive.d.ts +5 -5
  43. package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
  44. package/app/directives/index.d.ts +3 -3
  45. package/app/directives/subheading/subheading.directive.d.ts +5 -5
  46. package/app/enums/button-type.enum.d.ts +7 -7
  47. package/app/enums/page-change-type.enum.d.ts +4 -4
  48. package/app/enums/pagination-strategy.enum.d.ts +5 -5
  49. package/app/enums/row-type.enum.d.ts +6 -6
  50. package/app/enums/state.enum.d.ts +9 -9
  51. package/app/fs-list.module.d.ts +60 -60
  52. package/app/fs-list.providers.d.ts +3 -3
  53. package/app/interfaces/cellconfig.interface.d.ts +5 -5
  54. package/app/interfaces/column-config.interface.d.ts +2 -2
  55. package/app/interfaces/draggable-list.interface.d.ts +7 -7
  56. package/app/interfaces/external-params.interface.d.ts +13 -13
  57. package/app/interfaces/index.d.ts +4 -3
  58. package/app/interfaces/listconfig.interface.d.ts +246 -246
  59. package/app/interfaces/pagination.interface.d.ts +13 -13
  60. package/app/interfaces/sorting-change-event.interface.d.ts +4 -0
  61. package/app/models/column-async-attribute.d.ts +5 -5
  62. package/app/models/column-attributes.d.ts +39 -39
  63. package/app/models/column.model.d.ts +60 -60
  64. package/app/models/row/base-row.d.ts +13 -13
  65. package/app/models/row/child-row.d.ts +12 -12
  66. package/app/models/row/group-footer-row.d.ts +10 -10
  67. package/app/models/row/group-row.d.ts +16 -16
  68. package/app/models/row/simple-row.d.ts +5 -5
  69. package/app/models/row-action.model.d.ts +29 -29
  70. package/app/models/row.d.ts +30 -30
  71. package/app/models/styleConfig.model.d.ts +31 -31
  72. package/app/pipes/action-label.d.ts +8 -8
  73. package/app/pipes/index.d.ts +1 -1
  74. package/app/services/group-expand-notifier.service.d.ts +11 -11
  75. package/bundles/firestitch-list.umd.js +6929 -6927
  76. package/bundles/firestitch-list.umd.js.map +1 -1
  77. package/esm2015/app/classes/actions-controller.js +55 -55
  78. package/esm2015/app/classes/columns-controller.js +205 -205
  79. package/esm2015/app/classes/data-controller.js +364 -364
  80. package/esm2015/app/classes/external-params-controller.js +147 -153
  81. package/esm2015/app/classes/index.js +3 -3
  82. package/esm2015/app/classes/list-controller.js +742 -742
  83. package/esm2015/app/classes/pagination-controller.js +468 -461
  84. package/esm2015/app/classes/persistance-controller.js +19 -19
  85. package/esm2015/app/classes/reorder-controller.js +182 -182
  86. package/esm2015/app/classes/selection-controller.js +467 -467
  87. package/esm2015/app/classes/sorting-controller.js +184 -181
  88. package/esm2015/app/components/body/body.component.js +68 -68
  89. package/esm2015/app/components/body/row/actions/actions.component.js +98 -98
  90. package/esm2015/app/components/body/row/cell/cell.component.js +113 -113
  91. package/esm2015/app/components/body/row/inline-action/inline-action.component.js +36 -36
  92. package/esm2015/app/components/body/row/menu-action/menu-action.component.js +49 -49
  93. package/esm2015/app/components/body/row/row.component.js +304 -304
  94. package/esm2015/app/components/customize-cols/customize-cols.component.js +72 -72
  95. package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +20 -20
  96. package/esm2015/app/components/footer/footer-row/footer-row.component.js +32 -32
  97. package/esm2015/app/components/footer/footer.component.js +35 -35
  98. package/esm2015/app/components/head/head-cell/head-cell.component.js +34 -34
  99. package/esm2015/app/components/head/head.component.js +107 -107
  100. package/esm2015/app/components/list/list.component.js +387 -387
  101. package/esm2015/app/components/loader/loader.component.js +45 -45
  102. package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +79 -79
  103. package/esm2015/app/components/pagination/pagination.component.js +42 -42
  104. package/esm2015/app/components/saved-filters/saved-filters.component.js +32 -32
  105. package/esm2015/app/components/status/status.component.js +72 -72
  106. package/esm2015/app/directives/cell/cell.directive.js +18 -18
  107. package/esm2015/app/directives/column/column.directive.js +111 -111
  108. package/esm2015/app/directives/content/content.directive.js +12 -12
  109. package/esm2015/app/directives/content-init/content-init.directive.js +21 -21
  110. package/esm2015/app/directives/draggable-list/draggable-list.directive.js +329 -329
  111. package/esm2015/app/directives/draggable-row/draggable-row.directive.js +78 -78
  112. package/esm2015/app/directives/empty-state/empty-state.directive.js +13 -13
  113. package/esm2015/app/directives/footer/footer.directive.js +18 -18
  114. package/esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js +26 -26
  115. package/esm2015/app/directives/group-footer/group-footer.directive.js +13 -13
  116. package/esm2015/app/directives/group-header/group-header.directive.js +13 -13
  117. package/esm2015/app/directives/header/header.directive.js +18 -18
  118. package/esm2015/app/directives/heading/heading.directive.js +13 -13
  119. package/esm2015/app/directives/heading-container/heading-container.directive.js +13 -13
  120. package/esm2015/app/directives/index.js +4 -4
  121. package/esm2015/app/directives/subheading/subheading.directive.js +13 -13
  122. package/esm2015/app/enums/button-type.enum.js +9 -9
  123. package/esm2015/app/enums/page-change-type.enum.js +6 -6
  124. package/esm2015/app/enums/pagination-strategy.enum.js +7 -7
  125. package/esm2015/app/enums/row-type.enum.js +7 -7
  126. package/esm2015/app/enums/state.enum.js +11 -11
  127. package/esm2015/app/fs-list.module.js +245 -245
  128. package/esm2015/app/fs-list.providers.js +4 -4
  129. package/esm2015/app/interfaces/cellconfig.interface.js +2 -2
  130. package/esm2015/app/interfaces/column-config.interface.js +1 -1
  131. package/esm2015/app/interfaces/draggable-list.interface.js +2 -2
  132. package/esm2015/app/interfaces/external-params.interface.js +2 -2
  133. package/esm2015/app/interfaces/index.js +5 -4
  134. package/esm2015/app/interfaces/listconfig.interface.js +1 -1
  135. package/esm2015/app/interfaces/pagination.interface.js +2 -2
  136. package/esm2015/app/interfaces/sorting-change-event.interface.js +2 -0
  137. package/esm2015/app/models/column-async-attribute.js +13 -13
  138. package/esm2015/app/models/column-attributes.js +130 -130
  139. package/esm2015/app/models/column.model.js +162 -162
  140. package/esm2015/app/models/row/base-row.js +23 -23
  141. package/esm2015/app/models/row/child-row.js +28 -28
  142. package/esm2015/app/models/row/group-footer-row.js +20 -20
  143. package/esm2015/app/models/row/group-row.js +44 -44
  144. package/esm2015/app/models/row/simple-row.js +10 -10
  145. package/esm2015/app/models/row-action.model.js +89 -89
  146. package/esm2015/app/models/row.js +80 -80
  147. package/esm2015/app/models/styleConfig.model.js +75 -75
  148. package/esm2015/app/pipes/action-label.js +16 -16
  149. package/esm2015/app/pipes/index.js +1 -1
  150. package/esm2015/app/services/group-expand-notifier.service.js +26 -26
  151. package/esm2015/firestitch-list.js +4 -4
  152. package/esm2015/public_api.js +46 -46
  153. package/fesm2015/firestitch-list.js +5711 -5707
  154. package/fesm2015/firestitch-list.js.map +1 -1
  155. package/firestitch-list.d.ts +5 -5
  156. package/package.json +1 -1
  157. package/public_api.d.ts +40 -39
@@ -1,37 +1,37 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { RowAction } from '../../../../models/row-action.model';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/material/button";
5
- import * as i2 from "@angular/material/icon";
6
- import * as i3 from "@firestitch/file";
7
- import * as i4 from "@angular/common";
8
- import * as i5 from "@angular/router";
9
- export class FsRowInlineActionComponent {
10
- constructor() {
11
- this.clicked = new EventEmitter();
12
- this.fileSelect = new EventEmitter();
13
- }
14
- actionClick(event) {
15
- this.clicked.emit(event);
16
- }
17
- fileSelected(event) {
18
- this.fileSelect.emit(event);
19
- }
20
- }
21
- FsRowInlineActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowInlineActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- FsRowInlineActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FsRowInlineActionComponent, selector: "fs-list-row-inline-action", inputs: { action: "action" }, outputs: { clicked: "clicked", fileSelect: "fileSelect" }, ngImport: i0, template: "<ng-container *ngIf=\"action.isShown\" [ngSwitch]=\"action.type\">\n <!-- Basic button -->\n <ng-container *ngSwitchCase=\"'basic'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Raised button -->\n <ng-container *ngSwitchCase=\"'raised'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-raised-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-raised-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Icon button -->\n <ng-container *ngSwitchCase=\"'icon'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-icon-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-icon-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Fab button -->\n <ng-container *ngSwitchCase=\"'fab'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-fab\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-fab\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Mini Fab button -->\n <ng-container *ngSwitchCase=\"'mini-fab'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-mini-fab\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-mini-fab\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.fileConfig else uploadFileBtn\">\n <mat-icon *ngIf=\"action.icon\">{{action.icon}}</mat-icon>\n {{action.label}}\n </ng-container>\n\n <ng-template #uploadFileBtn>\n <fs-file\n class=\"action-button\"\n [accept]=\"action.fileConfig.accept || '*'\"\n [multiple]=\"action.fileConfig.multiple\"\n [minWidth]=\"action.fileConfig.minWidth\"\n [minHeight]=\"action.fileConfig.minHeight\"\n [imageWidth]=\"action.fileConfig.maxWidth\"\n [imageHeight]=\"action.fileConfig.maxHeight\"\n (select)=\"fileSelected($event)\"\n (error)=\"action.fileConfig.error && action.fileConfig.error($event)\">\n <mat-icon *ngIf=\"action.icon\">{{action.icon}}</mat-icon>\n {{action.label}}\n </fs-file>\n </ng-template>\n </ng-template>\n</ng-container>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.FsFileComponent, selector: "fs-file", inputs: ["minHeight", "minWidth", "orientate", "multiple", "capture", "allowClick", "allowDrop", "accept", "disabled", "imageWidth", "imageHeight", "imageQuality"], outputs: ["select", "selectPreviews", "error", "clicked", "declined"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowInlineActionComponent, decorators: [{
24
- type: Component,
25
- args: [{
26
- selector: 'fs-list-row-inline-action',
27
- templateUrl: './inline-action.component.html',
28
- changeDetection: ChangeDetectionStrategy.OnPush,
29
- }]
30
- }], propDecorators: { action: [{
31
- type: Input
32
- }], clicked: [{
33
- type: Output
34
- }], fileSelect: [{
35
- type: Output
36
- }] } });
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
+ import { RowAction } from '../../../../models/row-action.model';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/material/button";
5
+ import * as i2 from "@angular/material/icon";
6
+ import * as i3 from "@firestitch/file";
7
+ import * as i4 from "@angular/common";
8
+ import * as i5 from "@angular/router";
9
+ export class FsRowInlineActionComponent {
10
+ constructor() {
11
+ this.clicked = new EventEmitter();
12
+ this.fileSelect = new EventEmitter();
13
+ }
14
+ actionClick(event) {
15
+ this.clicked.emit(event);
16
+ }
17
+ fileSelected(event) {
18
+ this.fileSelect.emit(event);
19
+ }
20
+ }
21
+ FsRowInlineActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowInlineActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ FsRowInlineActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FsRowInlineActionComponent, selector: "fs-list-row-inline-action", inputs: { action: "action" }, outputs: { clicked: "clicked", fileSelect: "fileSelect" }, ngImport: i0, template: "<ng-container *ngIf=\"action.isShown\" [ngSwitch]=\"action.type\">\n <!-- Basic button -->\n <ng-container *ngSwitchCase=\"'basic'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Raised button -->\n <ng-container *ngSwitchCase=\"'raised'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-raised-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-raised-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Icon button -->\n <ng-container *ngSwitchCase=\"'icon'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-icon-button\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-icon-button\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Fab button -->\n <ng-container *ngSwitchCase=\"'fab'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-fab\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-fab\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <!-- Mini Fab button -->\n <ng-container *ngSwitchCase=\"'mini-fab'\">\n <ng-container *ngIf=\"!action.routerLink; else link\">\n <button type=\"button\"\n mat-mini-fab\n (click)=\"actionClick($event)\"\n [ngClass]=\"action.classArray\"\n >\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-mini-fab\n [routerLink]=\"action.routerLink.link\"\n [queryParams]=\"action.routerLink.queryParams\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.fileConfig else uploadFileBtn\">\n <mat-icon *ngIf=\"action.icon\">{{action.icon}}</mat-icon>\n {{action.label}}\n </ng-container>\n\n <ng-template #uploadFileBtn>\n <fs-file\n class=\"action-button\"\n [accept]=\"action.fileConfig.accept || '*'\"\n [multiple]=\"action.fileConfig.multiple\"\n [minWidth]=\"action.fileConfig.minWidth\"\n [minHeight]=\"action.fileConfig.minHeight\"\n [imageWidth]=\"action.fileConfig.maxWidth\"\n [imageHeight]=\"action.fileConfig.maxHeight\"\n (select)=\"fileSelected($event)\"\n (error)=\"action.fileConfig.error && action.fileConfig.error($event)\">\n <mat-icon *ngIf=\"action.icon\">{{action.icon}}</mat-icon>\n {{action.label}}\n </fs-file>\n </ng-template>\n </ng-template>\n</ng-container>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.FsFileComponent, selector: "fs-file", inputs: ["minHeight", "minWidth", "orientate", "multiple", "capture", "allowClick", "allowDrop", "accept", "disabled", "imageWidth", "imageHeight", "imageQuality"], outputs: ["select", "selectPreviews", "error", "clicked", "declined"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowInlineActionComponent, decorators: [{
24
+ type: Component,
25
+ args: [{
26
+ selector: 'fs-list-row-inline-action',
27
+ templateUrl: './inline-action.component.html',
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ }]
30
+ }], propDecorators: { action: [{
31
+ type: Input
32
+ }], clicked: [{
33
+ type: Output
34
+ }], fileSelect: [{
35
+ type: Output
36
+ }] } });
37
37
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWFjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvYm9keS9yb3cvaW5saW5lLWFjdGlvbi9pbmxpbmUtYWN0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9ib2R5L3Jvdy9pbmxpbmUtYWN0aW9uL2lubGluZS1hY3Rpb24uY29tcG9uZW50Lmh0bWwiXSwib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AgIHt7YWN0aW9uLmxhYmVsfX1cbiAgICAgIDwvZnMtZmlsZT5cbiAgICA8L25nLXRlbXBsYXRlPlxuICA8L25nLXRlbXBsYXRlPlxuPC9uZy1jb250YWluZXI+XG4iXX0=
@@ -1,50 +1,50 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { FsMenuComponent } from '@firestitch/menu';
3
- import { Row } from '../../../../models/row';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@firestitch/menu";
6
- import * as i2 from "@angular/material/icon";
7
- import * as i3 from "@firestitch/file";
8
- import * as i4 from "@angular/common";
9
- import * as i5 from "../../../../pipes/action-label";
10
- export class FsRowMenuActionComponent {
11
- constructor(_menu) {
12
- this._menu = _menu;
13
- this.fileSelect = new EventEmitter();
14
- this.fileError = new EventEmitter();
15
- }
16
- selectFile(event) {
17
- this.fileSelect.emit(event);
18
- this.closeMenu();
19
- }
20
- errorFile(event) {
21
- this.fileError.emit(event);
22
- this.closeMenu();
23
- }
24
- closeMenu() {
25
- this._menu.closeMenu();
26
- }
27
- }
28
- FsRowMenuActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowMenuActionComponent, deps: [{ token: i1.FsMenuComponent }], target: i0.ɵɵFactoryTarget.Component });
29
- FsRowMenuActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FsRowMenuActionComponent, selector: "fs-list-row-menu-action", inputs: { row: "row", icon: "icon", label: "label", file: "file" }, outputs: { fileSelect: "fileSelect", fileError: "fileError" }, ngImport: i0, template: "<ng-container *ngIf=\"!file else withFile\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n {{label| actionLabel:row}}\n</ng-container>\n\n<ng-template #withFile>\n <fs-file\n class=\"action-button\"\n [accept]=\"file.accept || '*'\"\n [multiple]=\"file.multiple\"\n [minWidth]=\"file.minWidth\"\n [minHeight]=\"file.minHeight\"\n [imageWidth]=\"file.maxWidth\"\n [imageHeight]=\"file.maxHeight\"\n (click)=\"$event.stopPropagation();\"\n (select)=\"selectFile($event)\"\n (error)=\"errorFile($event)\"\n (cancel)=\"closeMenu()\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n {{label| actionLabel:row}}\n </fs-file>\n</ng-template>\n", components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.FsFileComponent, selector: "fs-file", inputs: ["minHeight", "minWidth", "orientate", "multiple", "capture", "allowClick", "allowDrop", "accept", "disabled", "imageWidth", "imageHeight", "imageQuality"], outputs: ["select", "selectPreviews", "error", "clicked", "declined"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "actionLabel": i5.ActionLabelPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowMenuActionComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'fs-list-row-menu-action',
34
- templateUrl: './menu-action.component.html',
35
- changeDetection: ChangeDetectionStrategy.OnPush,
36
- }]
37
- }], ctorParameters: function () { return [{ type: i1.FsMenuComponent }]; }, propDecorators: { row: [{
38
- type: Input
39
- }], icon: [{
40
- type: Input
41
- }], label: [{
42
- type: Input
43
- }], file: [{
44
- type: Input
45
- }], fileSelect: [{
46
- type: Output
47
- }], fileError: [{
48
- type: Output
49
- }] } });
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
2
+ import { FsMenuComponent } from '@firestitch/menu';
3
+ import { Row } from '../../../../models/row';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@firestitch/menu";
6
+ import * as i2 from "@angular/material/icon";
7
+ import * as i3 from "@firestitch/file";
8
+ import * as i4 from "@angular/common";
9
+ import * as i5 from "../../../../pipes/action-label";
10
+ export class FsRowMenuActionComponent {
11
+ constructor(_menu) {
12
+ this._menu = _menu;
13
+ this.fileSelect = new EventEmitter();
14
+ this.fileError = new EventEmitter();
15
+ }
16
+ selectFile(event) {
17
+ this.fileSelect.emit(event);
18
+ this.closeMenu();
19
+ }
20
+ errorFile(event) {
21
+ this.fileError.emit(event);
22
+ this.closeMenu();
23
+ }
24
+ closeMenu() {
25
+ this._menu.closeMenu();
26
+ }
27
+ }
28
+ FsRowMenuActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowMenuActionComponent, deps: [{ token: i1.FsMenuComponent }], target: i0.ɵɵFactoryTarget.Component });
29
+ FsRowMenuActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FsRowMenuActionComponent, selector: "fs-list-row-menu-action", inputs: { row: "row", icon: "icon", label: "label", file: "file" }, outputs: { fileSelect: "fileSelect", fileError: "fileError" }, ngImport: i0, template: "<ng-container *ngIf=\"!file else withFile\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n {{label| actionLabel:row}}\n</ng-container>\n\n<ng-template #withFile>\n <fs-file\n class=\"action-button\"\n [accept]=\"file.accept || '*'\"\n [multiple]=\"file.multiple\"\n [minWidth]=\"file.minWidth\"\n [minHeight]=\"file.minHeight\"\n [imageWidth]=\"file.maxWidth\"\n [imageHeight]=\"file.maxHeight\"\n (click)=\"$event.stopPropagation();\"\n (select)=\"selectFile($event)\"\n (error)=\"errorFile($event)\"\n (cancel)=\"closeMenu()\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n {{label| actionLabel:row}}\n </fs-file>\n</ng-template>\n", components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.FsFileComponent, selector: "fs-file", inputs: ["minHeight", "minWidth", "orientate", "multiple", "capture", "allowClick", "allowDrop", "accept", "disabled", "imageWidth", "imageHeight", "imageQuality"], outputs: ["select", "selectPreviews", "error", "clicked", "declined"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "actionLabel": i5.ActionLabelPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FsRowMenuActionComponent, decorators: [{
31
+ type: Component,
32
+ args: [{
33
+ selector: 'fs-list-row-menu-action',
34
+ templateUrl: './menu-action.component.html',
35
+ changeDetection: ChangeDetectionStrategy.OnPush,
36
+ }]
37
+ }], ctorParameters: function () { return [{ type: i1.FsMenuComponent }]; }, propDecorators: { row: [{
38
+ type: Input
39
+ }], icon: [{
40
+ type: Input
41
+ }], label: [{
42
+ type: Input
43
+ }], file: [{
44
+ type: Input
45
+ }], fileSelect: [{
46
+ type: Output
47
+ }], fileError: [{
48
+ type: Output
49
+ }] } });
50
50
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1hY3Rpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2JvZHkvcm93L21lbnUtYWN0aW9uL21lbnUtYWN0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9ib2R5L3Jvdy9tZW51LWFjdGlvbi9tZW51LWFjdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFBRSxZQUFZLEVBQ3ZCLEtBQUssRUFBRSxNQUFNLEdBQ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