@angular-generic-table/core 5.0.0-alpha.2 → 5.0.0-rc.11

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 (260) hide show
  1. package/README.md +13 -134
  2. package/angular-generic-table-core.d.ts +2 -19
  3. package/esm2020/angular-generic-table-core.mjs +5 -0
  4. package/esm2020/lib/core.component.mjs +143 -0
  5. package/esm2020/lib/core.module.mjs +23 -0
  6. package/esm2020/lib/core.service.mjs +14 -0
  7. package/esm2020/lib/enums/order.enum.mjs +6 -0
  8. package/esm2020/lib/models/table-column.interface.mjs +2 -0
  9. package/esm2020/lib/models/table-config.interface.mjs +2 -0
  10. package/esm2020/lib/models/table-info.interface.mjs +2 -0
  11. package/esm2020/lib/models/table-meta.interface.mjs +2 -0
  12. package/esm2020/lib/models/table-row.interface.mjs +2 -0
  13. package/esm2020/lib/models/table-sort.interface.mjs +2 -0
  14. package/esm2020/lib/pagination/pagination.component.mjs +63 -0
  15. package/esm2020/lib/pagination/pagination.module.mjs +18 -0
  16. package/esm2020/lib/pipes/capital-case.pipe.mjs +17 -0
  17. package/esm2020/lib/pipes/dash-case.pipe.mjs +17 -0
  18. package/esm2020/lib/pipes/dynamic.pipe.mjs +25 -0
  19. package/esm2020/lib/pipes/highlight.pipe.mjs +48 -0
  20. package/esm2020/lib/pipes/sort-class.pipe.mjs +22 -0
  21. package/esm2020/lib/utilities/utilities.mjs +39 -0
  22. package/esm2020/public-api.mjs +15 -0
  23. package/fesm2015/angular-generic-table-core.mjs +412 -0
  24. package/fesm2015/angular-generic-table-core.mjs.map +1 -0
  25. package/fesm2020/angular-generic-table-core.mjs +408 -0
  26. package/fesm2020/angular-generic-table-core.mjs.map +1 -0
  27. package/lib/core.component.d.ts +34 -0
  28. package/lib/core.module.d.ts +12 -1
  29. package/lib/core.service.d.ts +6 -0
  30. package/lib/enums/order.enum.d.ts +4 -0
  31. package/lib/models/table-column.interface.d.ts +19 -0
  32. package/lib/models/table-config.interface.d.ts +15 -0
  33. package/lib/models/table-info.interface.d.ts +4 -0
  34. package/lib/models/table-meta.interface.d.ts +8 -0
  35. package/lib/models/table-row.interface.d.ts +4 -0
  36. package/lib/models/table-sort.interface.d.ts +5 -0
  37. package/lib/pagination/pagination.component.d.ts +14 -0
  38. package/lib/pagination/pagination.module.d.ts +8 -0
  39. package/lib/pipes/capital-case.pipe.d.ts +7 -0
  40. package/lib/pipes/dash-case.pipe.d.ts +4 -1
  41. package/lib/pipes/dynamic.pipe.d.ts +9 -0
  42. package/lib/pipes/highlight.pipe.d.ts +7 -0
  43. package/lib/pipes/sort-class.pipe.d.ts +11 -0
  44. package/lib/utilities/utilities.d.ts +6 -0
  45. package/package.json +26 -24
  46. package/public-api.d.ts +11 -0
  47. package/scss/index.scss +102 -0
  48. package/CHANGELOG.md +0 -461
  49. package/LICENSE.md +0 -201
  50. package/angular-generic-table-core.metadata.json +0 -1
  51. package/bundles/angular-generic-table-core.umd.js +0 -3679
  52. package/bundles/angular-generic-table-core.umd.js.map +0 -1
  53. package/bundles/angular-generic-table-core.umd.min.js +0 -2
  54. package/bundles/angular-generic-table-core.umd.min.js.map +0 -1
  55. package/css/generic-table.css +0 -168
  56. package/css/generic-table.css.map +0 -9
  57. package/css/generic-table.min.css +0 -2
  58. package/css/generic-table.min.css.map +0 -1
  59. package/esm2015/angular-generic-table-core.js +0 -28
  60. package/esm2015/angular-generic-table-core.metadata.json +0 -1
  61. package/esm2015/lib/components/generic-table/generic-table.component.js +0 -1738
  62. package/esm2015/lib/components/generic-table/generic-table.component.metadata.json +0 -1
  63. package/esm2015/lib/components/gt-checkbox/gt-checkbox.component.js +0 -88
  64. package/esm2015/lib/components/gt-checkbox/gt-checkbox.component.metadata.json +0 -1
  65. package/esm2015/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.js +0 -112
  66. package/esm2015/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.metadata.json +0 -1
  67. package/esm2015/lib/components/gt-drilldown/gt-drilldown.component.js +0 -53
  68. package/esm2015/lib/components/gt-drilldown/gt-drilldown.component.metadata.json +0 -1
  69. package/esm2015/lib/components/gt-dropdown/gt-dropdown.component.js +0 -176
  70. package/esm2015/lib/components/gt-dropdown/gt-dropdown.component.metadata.json +0 -1
  71. package/esm2015/lib/components/gt-expanding-row/gt-expanding-row.component.js +0 -147
  72. package/esm2015/lib/components/gt-expanding-row/gt-expanding-row.component.metadata.json +0 -1
  73. package/esm2015/lib/components/gt-pagination/gt-pagination.component.js +0 -141
  74. package/esm2015/lib/components/gt-pagination/gt-pagination.component.metadata.json +0 -1
  75. package/esm2015/lib/components/gt-table-info/gt-table-info.component.js +0 -103
  76. package/esm2015/lib/components/gt-table-info/gt-table-info.component.metadata.json +0 -1
  77. package/esm2015/lib/core.module.js +0 -100
  78. package/esm2015/lib/core.module.metadata.json +0 -1
  79. package/esm2015/lib/directives/component-anchor.directive.js +0 -65
  80. package/esm2015/lib/directives/component-anchor.directive.metadata.json +0 -1
  81. package/esm2015/lib/directives/gt-column-width.directive.js +0 -73
  82. package/esm2015/lib/directives/gt-column-width.directive.metadata.json +0 -1
  83. package/esm2015/lib/interfaces/gt-config-field.js +0 -96
  84. package/esm2015/lib/interfaces/gt-config-field.metadata.json +0 -1
  85. package/esm2015/lib/interfaces/gt-config-setting.js +0 -41
  86. package/esm2015/lib/interfaces/gt-config-setting.metadata.json +0 -1
  87. package/esm2015/lib/interfaces/gt-config-total.js +0 -20
  88. package/esm2015/lib/interfaces/gt-config-total.metadata.json +0 -1
  89. package/esm2015/lib/interfaces/gt-config.js +0 -24
  90. package/esm2015/lib/interfaces/gt-config.metadata.json +0 -1
  91. package/esm2015/lib/interfaces/gt-event.js +0 -16
  92. package/esm2015/lib/interfaces/gt-event.metadata.json +0 -1
  93. package/esm2015/lib/interfaces/gt-information.js +0 -38
  94. package/esm2015/lib/interfaces/gt-information.metadata.json +0 -1
  95. package/esm2015/lib/interfaces/gt-options.js +0 -55
  96. package/esm2015/lib/interfaces/gt-options.metadata.json +0 -1
  97. package/esm2015/lib/interfaces/gt-render-field.js +0 -29
  98. package/esm2015/lib/interfaces/gt-render-field.metadata.json +0 -1
  99. package/esm2015/lib/interfaces/gt-row-meta.js +0 -18
  100. package/esm2015/lib/interfaces/gt-row-meta.metadata.json +0 -1
  101. package/esm2015/lib/interfaces/gt-row.js +0 -20
  102. package/esm2015/lib/interfaces/gt-row.metadata.json +0 -1
  103. package/esm2015/lib/interfaces/gt-texts.js +0 -36
  104. package/esm2015/lib/interfaces/gt-texts.metadata.json +0 -1
  105. package/esm2015/lib/pipes/dash-case.pipe.js +0 -30
  106. package/esm2015/lib/pipes/dash-case.pipe.metadata.json +0 -1
  107. package/esm2015/lib/pipes/gt-chunk.pipe.js +0 -52
  108. package/esm2015/lib/pipes/gt-chunk.pipe.metadata.json +0 -1
  109. package/esm2015/lib/pipes/gt-column-class.pipe.js +0 -51
  110. package/esm2015/lib/pipes/gt-column-class.pipe.metadata.json +0 -1
  111. package/esm2015/lib/pipes/gt-filter.pipe.js +0 -60
  112. package/esm2015/lib/pipes/gt-filter.pipe.metadata.json +0 -1
  113. package/esm2015/lib/pipes/gt-highlight.pipe.js +0 -72
  114. package/esm2015/lib/pipes/gt-highlight.pipe.metadata.json +0 -1
  115. package/esm2015/lib/pipes/gt-is-editable.pipe.js +0 -37
  116. package/esm2015/lib/pipes/gt-is-editable.pipe.metadata.json +0 -1
  117. package/esm2015/lib/pipes/gt-is-observable.pipe.js +0 -31
  118. package/esm2015/lib/pipes/gt-is-observable.pipe.metadata.json +0 -1
  119. package/esm2015/lib/pipes/gt-meta.pipe.js +0 -54
  120. package/esm2015/lib/pipes/gt-meta.pipe.metadata.json +0 -1
  121. package/esm2015/lib/pipes/gt-order-by.pipe.js +0 -202
  122. package/esm2015/lib/pipes/gt-order-by.pipe.metadata.json +0 -1
  123. package/esm2015/lib/pipes/gt-property.pipe.js +0 -52
  124. package/esm2015/lib/pipes/gt-property.pipe.metadata.json +0 -1
  125. package/esm2015/lib/pipes/gt-render.pipe.js +0 -173
  126. package/esm2015/lib/pipes/gt-render.pipe.metadata.json +0 -1
  127. package/esm2015/lib/pipes/gt-row-class.pipe.js +0 -66
  128. package/esm2015/lib/pipes/gt-row-class.pipe.metadata.json +0 -1
  129. package/esm2015/lib/pipes/gt-search.pipe.js +0 -114
  130. package/esm2015/lib/pipes/gt-search.pipe.metadata.json +0 -1
  131. package/esm2015/lib/pipes/gt-totals-position.pipe.js +0 -35
  132. package/esm2015/lib/pipes/gt-totals-position.pipe.metadata.json +0 -1
  133. package/esm2015/lib/pipes/gt-totals.pipe.js +0 -46
  134. package/esm2015/lib/pipes/gt-totals.pipe.metadata.json +0 -1
  135. package/esm2015/lib/pipes/gt-visible.pipe.js +0 -71
  136. package/esm2015/lib/pipes/gt-visible.pipe.metadata.json +0 -1
  137. package/esm2015/public_api.js +0 -18
  138. package/esm2015/public_api.metadata.json +0 -1
  139. package/esm5/angular-generic-table-core.js +0 -28
  140. package/esm5/angular-generic-table-core.metadata.json +0 -1
  141. package/esm5/lib/components/generic-table/generic-table.component.js +0 -1813
  142. package/esm5/lib/components/generic-table/generic-table.component.metadata.json +0 -1
  143. package/esm5/lib/components/gt-checkbox/gt-checkbox.component.js +0 -100
  144. package/esm5/lib/components/gt-checkbox/gt-checkbox.component.metadata.json +0 -1
  145. package/esm5/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.js +0 -136
  146. package/esm5/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.metadata.json +0 -1
  147. package/esm5/lib/components/gt-drilldown/gt-drilldown.component.js +0 -41
  148. package/esm5/lib/components/gt-drilldown/gt-drilldown.component.metadata.json +0 -1
  149. package/esm5/lib/components/gt-dropdown/gt-dropdown.component.js +0 -179
  150. package/esm5/lib/components/gt-dropdown/gt-dropdown.component.metadata.json +0 -1
  151. package/esm5/lib/components/gt-expanding-row/gt-expanding-row.component.js +0 -173
  152. package/esm5/lib/components/gt-expanding-row/gt-expanding-row.component.metadata.json +0 -1
  153. package/esm5/lib/components/gt-pagination/gt-pagination.component.js +0 -149
  154. package/esm5/lib/components/gt-pagination/gt-pagination.component.metadata.json +0 -1
  155. package/esm5/lib/components/gt-table-info/gt-table-info.component.js +0 -111
  156. package/esm5/lib/components/gt-table-info/gt-table-info.component.metadata.json +0 -1
  157. package/esm5/lib/core.module.js +0 -104
  158. package/esm5/lib/core.module.metadata.json +0 -1
  159. package/esm5/lib/directives/component-anchor.directive.js +0 -66
  160. package/esm5/lib/directives/component-anchor.directive.metadata.json +0 -1
  161. package/esm5/lib/directives/gt-column-width.directive.js +0 -81
  162. package/esm5/lib/directives/gt-column-width.directive.metadata.json +0 -1
  163. package/esm5/lib/interfaces/gt-config-field.js +0 -96
  164. package/esm5/lib/interfaces/gt-config-field.metadata.json +0 -1
  165. package/esm5/lib/interfaces/gt-config-setting.js +0 -41
  166. package/esm5/lib/interfaces/gt-config-setting.metadata.json +0 -1
  167. package/esm5/lib/interfaces/gt-config-total.js +0 -20
  168. package/esm5/lib/interfaces/gt-config-total.metadata.json +0 -1
  169. package/esm5/lib/interfaces/gt-config.js +0 -24
  170. package/esm5/lib/interfaces/gt-config.metadata.json +0 -1
  171. package/esm5/lib/interfaces/gt-event.js +0 -16
  172. package/esm5/lib/interfaces/gt-event.metadata.json +0 -1
  173. package/esm5/lib/interfaces/gt-information.js +0 -38
  174. package/esm5/lib/interfaces/gt-information.metadata.json +0 -1
  175. package/esm5/lib/interfaces/gt-options.js +0 -55
  176. package/esm5/lib/interfaces/gt-options.metadata.json +0 -1
  177. package/esm5/lib/interfaces/gt-render-field.js +0 -29
  178. package/esm5/lib/interfaces/gt-render-field.metadata.json +0 -1
  179. package/esm5/lib/interfaces/gt-row-meta.js +0 -18
  180. package/esm5/lib/interfaces/gt-row-meta.metadata.json +0 -1
  181. package/esm5/lib/interfaces/gt-row.js +0 -20
  182. package/esm5/lib/interfaces/gt-row.metadata.json +0 -1
  183. package/esm5/lib/interfaces/gt-texts.js +0 -36
  184. package/esm5/lib/interfaces/gt-texts.metadata.json +0 -1
  185. package/esm5/lib/pipes/dash-case.pipe.js +0 -38
  186. package/esm5/lib/pipes/dash-case.pipe.metadata.json +0 -1
  187. package/esm5/lib/pipes/gt-chunk.pipe.js +0 -70
  188. package/esm5/lib/pipes/gt-chunk.pipe.metadata.json +0 -1
  189. package/esm5/lib/pipes/gt-column-class.pipe.js +0 -61
  190. package/esm5/lib/pipes/gt-column-class.pipe.metadata.json +0 -1
  191. package/esm5/lib/pipes/gt-filter.pipe.js +0 -73
  192. package/esm5/lib/pipes/gt-filter.pipe.metadata.json +0 -1
  193. package/esm5/lib/pipes/gt-highlight.pipe.js +0 -77
  194. package/esm5/lib/pipes/gt-highlight.pipe.metadata.json +0 -1
  195. package/esm5/lib/pipes/gt-is-editable.pipe.js +0 -47
  196. package/esm5/lib/pipes/gt-is-editable.pipe.metadata.json +0 -1
  197. package/esm5/lib/pipes/gt-is-observable.pipe.js +0 -39
  198. package/esm5/lib/pipes/gt-is-observable.pipe.metadata.json +0 -1
  199. package/esm5/lib/pipes/gt-meta.pipe.js +0 -65
  200. package/esm5/lib/pipes/gt-meta.pipe.metadata.json +0 -1
  201. package/esm5/lib/pipes/gt-order-by.pipe.js +0 -223
  202. package/esm5/lib/pipes/gt-order-by.pipe.metadata.json +0 -1
  203. package/esm5/lib/pipes/gt-property.pipe.js +0 -63
  204. package/esm5/lib/pipes/gt-property.pipe.metadata.json +0 -1
  205. package/esm5/lib/pipes/gt-render.pipe.js +0 -182
  206. package/esm5/lib/pipes/gt-render.pipe.metadata.json +0 -1
  207. package/esm5/lib/pipes/gt-row-class.pipe.js +0 -75
  208. package/esm5/lib/pipes/gt-row-class.pipe.metadata.json +0 -1
  209. package/esm5/lib/pipes/gt-search.pipe.js +0 -125
  210. package/esm5/lib/pipes/gt-search.pipe.metadata.json +0 -1
  211. package/esm5/lib/pipes/gt-totals-position.pipe.js +0 -45
  212. package/esm5/lib/pipes/gt-totals-position.pipe.metadata.json +0 -1
  213. package/esm5/lib/pipes/gt-totals.pipe.js +0 -57
  214. package/esm5/lib/pipes/gt-totals.pipe.metadata.json +0 -1
  215. package/esm5/lib/pipes/gt-visible.pipe.js +0 -79
  216. package/esm5/lib/pipes/gt-visible.pipe.metadata.json +0 -1
  217. package/esm5/public_api.js +0 -18
  218. package/esm5/public_api.metadata.json +0 -1
  219. package/fesm2015/angular-generic-table-core.js +0 -3289
  220. package/fesm2015/angular-generic-table-core.js.map +0 -1
  221. package/fesm5/angular-generic-table-core.js +0 -3578
  222. package/fesm5/angular-generic-table-core.js.map +0 -1
  223. package/lib/components/generic-table/generic-table.component.d.ts +0 -282
  224. package/lib/components/gt-checkbox/gt-checkbox.component.d.ts +0 -12
  225. package/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.d.ts +0 -27
  226. package/lib/components/gt-drilldown/gt-drilldown.component.d.ts +0 -6
  227. package/lib/components/gt-dropdown/gt-dropdown.component.d.ts +0 -21
  228. package/lib/components/gt-expanding-row/gt-expanding-row.component.d.ts +0 -34
  229. package/lib/components/gt-pagination/gt-pagination.component.d.ts +0 -11
  230. package/lib/components/gt-table-info/gt-table-info.component.d.ts +0 -15
  231. package/lib/directives/component-anchor.directive.d.ts +0 -10
  232. package/lib/directives/gt-column-width.directive.d.ts +0 -11
  233. package/lib/interfaces/gt-config-field.d.ts +0 -87
  234. package/lib/interfaces/gt-config-setting.d.ts +0 -21
  235. package/lib/interfaces/gt-config-total.d.ts +0 -8
  236. package/lib/interfaces/gt-config.d.ts +0 -12
  237. package/lib/interfaces/gt-event.d.ts +0 -4
  238. package/lib/interfaces/gt-information.d.ts +0 -15
  239. package/lib/interfaces/gt-options.d.ts +0 -27
  240. package/lib/interfaces/gt-render-field.d.ts +0 -19
  241. package/lib/interfaces/gt-row-meta.d.ts +0 -5
  242. package/lib/interfaces/gt-row.d.ts +0 -6
  243. package/lib/interfaces/gt-texts.d.ts +0 -14
  244. package/lib/pipes/gt-chunk.pipe.d.ts +0 -8
  245. package/lib/pipes/gt-column-class.pipe.d.ts +0 -6
  246. package/lib/pipes/gt-filter.pipe.d.ts +0 -5
  247. package/lib/pipes/gt-highlight.pipe.d.ts +0 -7
  248. package/lib/pipes/gt-is-editable.pipe.d.ts +0 -4
  249. package/lib/pipes/gt-is-observable.pipe.d.ts +0 -4
  250. package/lib/pipes/gt-meta.pipe.d.ts +0 -5
  251. package/lib/pipes/gt-order-by.pipe.d.ts +0 -11
  252. package/lib/pipes/gt-property.pipe.d.ts +0 -7
  253. package/lib/pipes/gt-render.pipe.d.ts +0 -19
  254. package/lib/pipes/gt-row-class.pipe.d.ts +0 -5
  255. package/lib/pipes/gt-search.pipe.d.ts +0 -10
  256. package/lib/pipes/gt-totals-position.pipe.d.ts +0 -5
  257. package/lib/pipes/gt-totals.pipe.d.ts +0 -4
  258. package/lib/pipes/gt-visible.pipe.d.ts +0 -9
  259. package/public_api.d.ts +0 -18
  260. package/scss/generic-table.scss +0 -246
@@ -1,8 +0,0 @@
1
- import { PipeTransform, EventEmitter } from '@angular/core';
2
- import { GtInformation } from '../interfaces/gt-information';
3
- import { GtEvent } from '../interfaces/gt-event';
4
- export declare class GtChunkPipe implements PipeTransform {
5
- transform(array: any[], gtInfo: GtInformation, chunkSize: number, page: number, refreshPageArray: boolean, refreshData: number, gtEvent: EventEmitter<GtEvent>, data: {
6
- exportData: Array<any>;
7
- }): any[];
8
- }
@@ -1,6 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- import { GtRow } from '../interfaces/gt-row';
4
- export declare class GtColumnClassPipe implements PipeTransform {
5
- transform(gtFields: Array<GtConfigField<any, any>>, column: GtConfigField<GtRow, any>, row?: GtRow): any;
6
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtInformation } from '../interfaces/gt-information';
3
- export declare class GtFilterPipe implements PipeTransform {
4
- transform(allRows: any[], filterBy: Object, gtInfo: GtInformation, refreshFilter: boolean, refreshData: number): any[];
5
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- export declare class GtHighlightPipe implements PipeTransform {
4
- private sanitizer;
5
- constructor(sanitizer: DomSanitizer);
6
- transform(text: string, searchTerm: string): SafeHtml;
7
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class GtIsEditablePipe implements PipeTransform {
3
- transform(property: any, row: any, refreshPipe: boolean): boolean;
4
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class GtIsObservablePipe implements PipeTransform {
3
- transform(input: any): boolean;
4
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtRow } from '../interfaces/gt-row';
3
- export declare class GtMetaPipe implements PipeTransform {
4
- transform(allRows: Array<GtRow>, rowIndex?: string, page?: number, recordLength?: number): Array<GtRow>;
5
- }
@@ -1,11 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- import { GtRow } from '../interfaces/gt-row';
4
- export declare class GtOrderByPipe<R extends GtRow> implements PipeTransform {
5
- static _orderByComparator(a: any, b: any): number;
6
- /** Return property */
7
- private getProperty;
8
- /** Return sort function */
9
- private getSortFunction;
10
- transform(input: any, sortByProperties: Array<string>, fields: GtConfigField<R, any>[], refreshSorting: boolean, refreshData: number): any;
11
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- import { GtConfigSetting } from '../interfaces/gt-config-setting';
4
- import { GtRow } from '../interfaces/gt-row';
5
- export declare class GtPropertyPipe<R extends GtRow> implements PipeTransform {
6
- transform(config: GtConfigField<R, any>[] | GtConfigSetting[], objectKey: string, property: string, refresh?: boolean): any;
7
- }
@@ -1,19 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigSetting } from '../interfaces/gt-config-setting';
3
- import { GtConfigField } from '../interfaces/gt-config-field';
4
- import { DomSanitizer } from '@angular/platform-browser';
5
- import { GtRow } from '../interfaces/gt-row';
6
- import { GtRenderField } from '../interfaces/gt-render-field';
7
- import { GtHighlightPipe } from './gt-highlight.pipe';
8
- export declare class GtRenderPipe<R extends GtRow> implements PipeTransform {
9
- private sanitizer;
10
- private gtHighlightPipe;
11
- constructor(sanitizer: DomSanitizer, gtHighlightPipe: GtHighlightPipe);
12
- /** Sort by column order */
13
- private getColumnOrder;
14
- /** Sort by length */
15
- private getOrderByLength;
16
- /** Return property */
17
- private getProperty;
18
- transform(row: any, settings: Array<GtConfigSetting>, fields: Array<GtConfigField<R, any>>, updated: boolean, loading: boolean, highlight?: boolean, searchString?: string): Array<GtRenderField<R, any>>;
19
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- export declare class GtRowClassPipe implements PipeTransform {
4
- transform(array: Array<any>, gtFields: Array<GtConfigField<any, any>>): any;
5
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- import { GtRow } from '../interfaces/gt-row';
4
- import { GtConfigSetting } from '../interfaces/gt-config-setting';
5
- import { GtInformation } from '../interfaces/gt-information';
6
- export declare class GtSearchPipe<R extends GtRow> implements PipeTransform {
7
- /** Return property */
8
- private getProperty;
9
- transform(allRows: any, searchTerms: string, gtInfo: GtInformation, settings: Array<GtConfigSetting>, fields: Array<GtConfigField<R, any>>, refreshData: number): any;
10
- }
@@ -1,5 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigTotal } from '../interfaces/gt-config-total';
3
- export declare class GtTotalsPositionPipe implements PipeTransform {
4
- transform(array: Array<GtConfigTotal>, position?: 'header' | 'footer'): Array<any>;
5
- }
@@ -1,4 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- export declare class GtTotalsPipe implements PipeTransform {
3
- transform(value: string | number | Function, data: Array<any>, objectKey: string, refresh: boolean): any;
4
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { GtConfigField } from '../interfaces/gt-config-field';
3
- import { GtConfigSetting } from '../interfaces/gt-config-setting';
4
- import { GtRow } from '../interfaces/gt-row';
5
- export declare class GtVisiblePipe<R extends GtRow> implements PipeTransform {
6
- /** Sort by column order */
7
- private getColumnOrder;
8
- transform(array: Array<any>, settings: Array<GtConfigSetting>, refreshPipe?: boolean): Array<GtConfigField<R, any>> | Array<GtConfigSetting>;
9
- }
package/public_api.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export * from './lib/components/gt-table-info/gt-table-info.component';
2
- export * from './lib/components/gt-pagination/gt-pagination.component';
3
- export * from './lib/components/gt-expanding-row/gt-expanding-row.component';
4
- export * from './lib/components/gt-dropdown/gt-dropdown.component';
5
- export * from './lib/components/gt-drilldown/gt-drilldown.component';
6
- export * from './lib/components/gt-custom-component-factory/gt-custom-component-factory.component';
7
- export * from './lib/components/gt-checkbox/gt-checkbox.component';
8
- export * from './lib/components/generic-table/generic-table.component';
9
- export * from './lib/interfaces/gt-config';
10
- export * from './lib/interfaces/gt-config-field';
11
- export * from './lib/interfaces/gt-config-setting';
12
- export * from './lib/interfaces/gt-config-total';
13
- export * from './lib/interfaces/gt-row';
14
- export * from './lib/interfaces/gt-event';
15
- export * from './lib/interfaces/gt-options';
16
- export * from './lib/interfaces/gt-texts';
17
- export * from './lib/interfaces/gt-information';
18
- export * from './lib/core.module';
@@ -1,246 +0,0 @@
1
- // import variables from bootstrap or change to your own bootstrap theme variables
2
-
3
- // default values for bootstrap 4 beta for backwards compatibility,
4
- // override by importing bootstrap variables before this file or by setting your own variables
5
- $gray-100: #f8f9fa !default;
6
- $gray-700: #495057 !default;
7
- $gray-200: #e9ecef !default;
8
- $blue: #007bff !default;
9
-
10
- $table-cell-padding: 0.75rem !default;
11
- $table-cell-padding-sm: 0.3rem !default;
12
- $table-border-color: $gray-200 !default;
13
-
14
- $font-weight-bold: bold !default;
15
- $font-size-sm: 0.875rem !default;
16
-
17
- $grid-breakpoints: (
18
- xs: 0,
19
- sm: 576px,
20
- md: 768px,
21
- lg: 992px,
22
- xl: 1200px
23
- ) !default;
24
-
25
- // variables used by generic table
26
- $gt-inline-edit-color: $blue !default;
27
- $gt-totals-font-weight: $font-weight-bold !default;
28
- $gt-totals-color: $gray-700 !default;
29
- $gt-totals-bg: $gray-100 !default;
30
- $gt-totals-font-size: $font-size-sm !default;
31
- $gt-table-border-color: $table-border-color !default;
32
- $gt-table-cell-padding: $table-cell-padding !default;
33
- $gt-table-cell-padding-sm: $table-cell-padding-sm !default;
34
- $gt-table-cell-padding-expanded: 0 !default;
35
- $gt-medium-width: map-get($grid-breakpoints, md) !default;
36
-
37
- // basic table styles for sorting and for stacked table layout
38
- generic-table {
39
- table {
40
- thead tr {
41
- th {
42
- &.sort-enable {
43
- cursor: pointer;
44
- &:hover {
45
- text-decoration: underline;
46
- }
47
- }
48
- &.sort-asc {
49
- cursor: pointer;
50
- &:hover {
51
- text-decoration: underline;
52
- }
53
- &::after {
54
- content: '';
55
- display: inline-block;
56
- width: 0;
57
- height: 0;
58
- border-left: 5px solid transparent;
59
- border-right: 5px solid transparent;
60
- border-bottom: 5px solid #000;
61
- border-radius: 2px;
62
- margin-left: 4px;
63
- position: absolute;
64
- margin-top: 9px;
65
- }
66
- }
67
- &.sort-desc {
68
- cursor: pointer;
69
- &:hover {
70
- text-decoration: underline;
71
- }
72
- &::after {
73
- content: '';
74
- display: inline-block;
75
- width: 0;
76
- height: 0;
77
- border-left: 5px solid transparent;
78
- border-right: 5px solid transparent;
79
- border-top: 5px solid #000;
80
- border-radius: 2px;
81
- margin-left: 4px;
82
- position: absolute;
83
- margin-top: 9px;
84
- }
85
- }
86
- &.checkbox-column {
87
- min-width: 30px;
88
- }
89
- }
90
- }
91
-
92
- span.gt-row-label,
93
- th.gt-sort-label {
94
- display: none;
95
- }
96
- tr td.gt-button {
97
- vertical-align: middle;
98
- padding-top: 0;
99
- padding-bottom: 0;
100
- width: 1px;
101
- }
102
-
103
- tr.row-expanded > td {
104
- padding: $gt-table-cell-padding-expanded;
105
- }
106
- input.inline-edit {
107
- border: none;
108
- outline: none;
109
- line-height: initial;
110
- width: 100%;
111
- background: none;
112
- position: relative;
113
- text-align: inherit;
114
- }
115
- .gt-inline-edit {
116
- position: relative;
117
- &::before {
118
- opacity: 0;
119
- position: absolute;
120
- content: '';
121
- margin-left: -$gt-table-cell-padding;
122
- background: $gt-inline-edit-color;
123
- height: 1px;
124
- width: 100%;
125
- top: auto;
126
- bottom: -1px;
127
- transform: scaleX(0);
128
- transition: all 0.2s ease-in-out;
129
- }
130
- &.gt-edited::before {
131
- transform: scaleX(1);
132
- opacity: 1;
133
- }
134
- .gt-dropdown .dropdown-menu {
135
- animation: fade-in 0.2s ease-in-out;
136
- .dropdown-item {
137
- cursor: pointer;
138
- }
139
- }
140
- .gt-inline-edit-notice {
141
- opacity: 0;
142
- transition: opacity 0.5s ease-in-out;
143
- position: absolute;
144
- bottom: 0;
145
- left: 0;
146
- display: inline-block;
147
- width: 100%;
148
- font-size: 7px;
149
- text-transform: uppercase;
150
- color: $gt-inline-edit-color;
151
- text-align: center;
152
- }
153
- &.gt-edited .gt-inline-edit-notice {
154
- opacity: 1;
155
- }
156
- }
157
-
158
- thead.gt-totals {
159
- border-bottom: 2px solid $gt-table-border-color;
160
- }
161
-
162
- tfoot.gt-totals {
163
- border-top: 2px solid $gt-table-border-color;
164
- }
165
- .gt-totals tr td {
166
- font-weight: $gt-totals-font-weight;
167
- color: $gt-totals-color;
168
- background: $gt-totals-bg;
169
- font-size: $gt-totals-font-size;
170
- }
171
- }
172
- table.table-sm {
173
- .gt-inline-edit {
174
- &::before {
175
- margin-left: -$gt-table-cell-padding-sm;
176
- }
177
- }
178
- }
179
- gt-checkbox label {
180
- margin: 0;
181
- vertical-align: middle;
182
- }
183
- }
184
-
185
- .gt-dropdown-menu.show {
186
- max-height: 320px;
187
- overflow: auto;
188
- }
189
-
190
- // get break point for medium devices from bootstrap
191
- @media (max-width: $gt-medium-width) {
192
- generic-table {
193
- table.table-stacked {
194
- thead tr {
195
- display: table;
196
- width: 100%;
197
- th {
198
- text-align: right;
199
- &:first-child {
200
- text-align: left;
201
- }
202
- &.sort-disable {
203
- display: none;
204
- }
205
- &.gt-sort-label {
206
- display: table-cell;
207
- }
208
- }
209
- }
210
- tr {
211
- & + tr {
212
- border-top: 1px solid #ddd;
213
- }
214
-
215
- td {
216
- display: block;
217
- border: none;
218
- > span {
219
- display: table-cell;
220
- }
221
- > span.gt-row-label {
222
- white-space: nowrap;
223
- font-weight: bold;
224
- }
225
- > span.gt-row-content {
226
- text-align: right;
227
- width: 100%;
228
- }
229
- &.hidden-stacked {
230
- display: none;
231
- }
232
- }
233
- }
234
- }
235
- }
236
- }
237
-
238
- @keyframes fade-in {
239
- 0% {
240
- opacity: 0;
241
- }
242
-
243
- 100% {
244
- opacity: 1;
245
- }
246
- }