@one-grid-core/angular 0.2.1 → 0.4.0

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 (102) hide show
  1. package/README.md +55 -9
  2. package/esm2022/lib/components/one-grid/one-grid.component.mjs +244 -11
  3. package/esm2022/lib/components/one-grid-body/one-grid-body.component.mjs +446 -34
  4. package/esm2022/lib/components/one-grid-cell-currency/one-grid-cell-currency.component.mjs +6 -5
  5. package/esm2022/lib/components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component.mjs +3 -3
  6. package/esm2022/lib/components/one-grid-cell-option-menu/one-grid-cell-option-menu.component.mjs +3 -3
  7. package/esm2022/lib/components/one-grid-checkbox/one-grid-checkbox.component.mjs +7 -18
  8. package/esm2022/lib/components/one-grid-checkbox-header/one-grid-checkbox-header.component.mjs +6 -6
  9. package/esm2022/lib/components/one-grid-header/one-grid-header.component.mjs +221 -17
  10. package/esm2022/lib/components/one-grid-header-menu/one-grid-header-menu.component.mjs +137 -0
  11. package/esm2022/lib/components/one-grid-pagination/one-grid-pagination.component.mjs +6 -5
  12. package/esm2022/lib/components/one-grid-row-action/one-grid-row-action.component.mjs +4 -4
  13. package/esm2022/lib/components/one-grid-row-drag-handle/one-grid-row-drag-handle.component.mjs +5 -3
  14. package/esm2022/lib/components/one-grid-status/one-grid-status.component.mjs +4 -4
  15. package/esm2022/lib/core/directives/one-cell-input-validator.directive.mjs +3 -3
  16. package/esm2022/lib/core/directives/one-cell-renderer-component.directive.mjs +3 -3
  17. package/esm2022/lib/core/directives/one-cell-text-expand.directive.mjs +3 -3
  18. package/esm2022/lib/core/icons/one-grid-icons.mjs +38 -0
  19. package/esm2022/lib/core/instants/one-grid-api.class.mjs +296 -3
  20. package/esm2022/lib/core/models/one-column-def-types.model.mjs +1 -1
  21. package/esm2022/lib/core/models/one-event-types.model.mjs +1 -1
  22. package/esm2022/lib/core/models/one-filter.model.mjs +1 -1
  23. package/esm2022/lib/core/pipes/aria-sort.pipe.mjs +31 -0
  24. package/esm2022/lib/core/pipes/cell-action-button-enable.pipe.mjs +3 -3
  25. package/esm2022/lib/core/pipes/cell-editable.pipe.mjs +3 -3
  26. package/esm2022/lib/core/pipes/cell-invalid.pipe.mjs +3 -3
  27. package/esm2022/lib/core/pipes/cell-key.pipe.mjs +3 -3
  28. package/esm2022/lib/core/pipes/cell-level-padding.pipe.mjs +3 -3
  29. package/esm2022/lib/core/pipes/cell-selected.pipe.mjs +3 -3
  30. package/esm2022/lib/core/pipes/cell-state-renderer.pipe.mjs +3 -3
  31. package/esm2022/lib/core/pipes/column-sort-state.pipe.mjs +3 -3
  32. package/esm2022/lib/core/pipes/header-checkbox-checked.pipe.mjs +3 -3
  33. package/esm2022/lib/core/pipes/header-checkbox-disabled.pipe.mjs +3 -3
  34. package/esm2022/lib/core/pipes/header-checkbox-indeterminate.pipe.mjs +3 -3
  35. package/esm2022/lib/core/services/og-column.service.mjs +153 -30
  36. package/esm2022/lib/core/services/one-grid-cell.service.mjs +16 -14
  37. package/esm2022/lib/helpers/one-cell.helper.mjs +30 -1
  38. package/esm2022/lib/helpers/one-column-def.helper.mjs +16 -1
  39. package/esm2022/lib/helpers/one-csv.helper.mjs +58 -0
  40. package/esm2022/lib/helpers/one-filter.helper.mjs +11 -1
  41. package/esm2022/lib/helpers/one-row-grouping.helper.mjs +103 -0
  42. package/esm2022/lib/index.mjs +3 -1
  43. package/esm2022/lib/one-grid.module.mjs +24 -114
  44. package/fesm2022/one-grid-core-angular.mjs +2328 -851
  45. package/fesm2022/one-grid-core-angular.mjs.map +1 -1
  46. package/lib/components/one-grid/one-grid.component.d.ts +101 -4
  47. package/lib/components/one-grid-body/one-grid-body.component.d.ts +83 -2
  48. package/lib/components/one-grid-cell-currency/one-grid-cell-currency.component.d.ts +1 -1
  49. package/lib/components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component.d.ts +1 -1
  50. package/lib/components/one-grid-cell-option-menu/one-grid-cell-option-menu.component.d.ts +1 -1
  51. package/lib/components/one-grid-checkbox/one-grid-checkbox.component.d.ts +1 -1
  52. package/lib/components/one-grid-checkbox-header/one-grid-checkbox-header.component.d.ts +1 -1
  53. package/lib/components/one-grid-header/one-grid-header.component.d.ts +69 -4
  54. package/lib/components/one-grid-header-menu/one-grid-header-menu.component.d.ts +52 -0
  55. package/lib/components/one-grid-pagination/one-grid-pagination.component.d.ts +1 -1
  56. package/lib/components/one-grid-row-action/one-grid-row-action.component.d.ts +1 -1
  57. package/lib/components/one-grid-row-drag-handle/one-grid-row-drag-handle.component.d.ts +1 -1
  58. package/lib/components/one-grid-status/one-grid-status.component.d.ts +1 -1
  59. package/lib/core/directives/one-cell-input-validator.directive.d.ts +1 -1
  60. package/lib/core/directives/one-cell-renderer-component.directive.d.ts +1 -1
  61. package/lib/core/directives/one-cell-text-expand.directive.d.ts +1 -1
  62. package/lib/core/icons/one-grid-icons.d.ts +35 -0
  63. package/lib/core/instants/one-grid-api.class.d.ts +115 -1
  64. package/lib/core/models/one-column-def-types.model.d.ts +77 -2
  65. package/lib/core/models/one-event-types.model.d.ts +19 -0
  66. package/lib/core/models/one-filter.model.d.ts +8 -1
  67. package/lib/core/pipes/aria-sort.pipe.d.ts +15 -0
  68. package/lib/core/pipes/cell-action-button-enable.pipe.d.ts +1 -1
  69. package/lib/core/pipes/cell-editable.pipe.d.ts +1 -1
  70. package/lib/core/pipes/cell-invalid.pipe.d.ts +1 -1
  71. package/lib/core/pipes/cell-key.pipe.d.ts +1 -1
  72. package/lib/core/pipes/cell-level-padding.pipe.d.ts +1 -1
  73. package/lib/core/pipes/cell-selected.pipe.d.ts +1 -1
  74. package/lib/core/pipes/cell-state-renderer.pipe.d.ts +1 -1
  75. package/lib/core/pipes/column-sort-state.pipe.d.ts +1 -1
  76. package/lib/core/pipes/header-checkbox-checked.pipe.d.ts +1 -1
  77. package/lib/core/pipes/header-checkbox-disabled.pipe.d.ts +1 -1
  78. package/lib/core/pipes/header-checkbox-indeterminate.pipe.d.ts +1 -1
  79. package/lib/core/services/og-column.service.d.ts +46 -2
  80. package/lib/core/services/one-grid-cell.service.d.ts +0 -3
  81. package/lib/helpers/one-cell.helper.d.ts +17 -0
  82. package/lib/helpers/one-column-def.helper.d.ts +9 -0
  83. package/lib/helpers/one-csv.helper.d.ts +29 -0
  84. package/lib/helpers/one-row-grouping.helper.d.ts +35 -0
  85. package/lib/index.d.ts +2 -0
  86. package/lib/one-grid.module.d.ts +15 -37
  87. package/package.json +1 -1
  88. package/scss/_one-grid.scss +127 -0
  89. package/esm2022/lib/core/pipes/cell-action-button-visible.pipe.mjs +0 -17
  90. package/esm2022/lib/core/pipes/cell-field-value-empty.pipe.mjs +0 -26
  91. package/esm2022/lib/core/pipes/cell-field-value.pipe.mjs +0 -25
  92. package/esm2022/lib/core/pipes/cell-field.pipe.mjs +0 -20
  93. package/esm2022/lib/core/pipes/cell-number-value.pipe.mjs +0 -19
  94. package/esm2022/lib/core/pipes/cell-state-group-renderer.pipe.mjs +0 -21
  95. package/esm2022/lib/core/pipes/cell-value-getter.pipe.mjs +0 -23
  96. package/lib/core/pipes/cell-action-button-visible.pipe.d.ts +0 -9
  97. package/lib/core/pipes/cell-field-value-empty.pipe.d.ts +0 -7
  98. package/lib/core/pipes/cell-field-value.pipe.d.ts +0 -7
  99. package/lib/core/pipes/cell-field.pipe.d.ts +0 -7
  100. package/lib/core/pipes/cell-number-value.pipe.d.ts +0 -7
  101. package/lib/core/pipes/cell-state-group-renderer.pipe.d.ts +0 -9
  102. package/lib/core/pipes/cell-value-getter.pipe.d.ts +0 -9
@@ -0,0 +1,35 @@
1
+ import { OneAggFunc, OneColumnDef } from "../core/models/one-column-def-types.model";
2
+ /** Marks a synthetic group row, so anything can tell it from real data. */
3
+ export declare const ONE_GROUP_FLAG = "__oneGroup";
4
+ /** Stable id for a group row: its value path. Survives every rebuild. */
5
+ export declare const ONE_GROUP_ID_FIELD = "__oneGroupId";
6
+ /** The label the auto group column shows for a group row. */
7
+ export declare const ONE_GROUP_VALUE_FIELD = "__oneGroupValue";
8
+ /** Where a group row keeps its children, for the tree pipeline to recurse. */
9
+ export declare const ONE_GROUP_CHILDREN_FIELD = "__oneGroupChildren";
10
+ /** What a group of rows with no value in the grouped field is labelled. */
11
+ export declare const ONE_GROUP_BLANK_LABEL = "(Blank)";
12
+ /** One column's aggregation, captured from the column definitions. */
13
+ export interface OneAggColumn<T = any> {
14
+ field: string;
15
+ aggFunc: OneAggFunc<T>;
16
+ }
17
+ /** The `rowGroup` fields of a column set, in definition order. */
18
+ export declare function rowGroupFields<T>(columns: readonly OneColumnDef<T>[]): string[];
19
+ /** The `aggFunc` columns of a column set. */
20
+ export declare function aggColumns<T>(columns: readonly OneColumnDef<T>[]): OneAggColumn<T>[];
21
+ /**
22
+ * Fold flat rows into a tree of synthetic group rows, one level per group
23
+ * field, in first-appearance order. Each group row carries:
24
+ *
25
+ * - the marker, id and label fields above;
26
+ * - its own grouped field's value, so sorting and filtering read it naturally;
27
+ * - one aggregated value per `aggFunc` column, computed over the group's
28
+ * leaves (not its child groups), stored under the column's own field so the
29
+ * ordinary cell pipeline renders it.
30
+ *
31
+ * Pure: the input rows are referenced, never mutated.
32
+ */
33
+ export declare function buildGroupedRows<T>(rows: readonly T[], groupFields: readonly string[], aggregations?: readonly OneAggColumn<T>[]): any[];
34
+ /** Apply one aggregation over a set of leaf rows. */
35
+ export declare function aggregate<T>(rows: readonly T[], field: string, aggFunc: OneAggFunc<T>): any;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './helpers/one-column-def.helper';
2
+ export * from './helpers/one-csv.helper';
3
+ export * from './helpers/one-row-grouping.helper';
2
4
  export * from './helpers/one-validation.helper';
3
5
  export * from './core/instants/one-grid-api.class';
4
6
  export * from './core/instants/one-row-node.class';
@@ -1,43 +1,21 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/one-grid/one-grid.component";
3
- import * as i2 from "./components/one-grid-header/one-grid-header.component";
4
- import * as i3 from "./components/one-grid-body/one-grid-body.component";
5
- import * as i4 from "./components/one-grid-checkbox/one-grid-checkbox.component";
6
- import * as i5 from "./components/one-grid-checkbox-header/one-grid-checkbox-header.component";
7
- import * as i6 from "./components/one-grid-row-action/one-grid-row-action.component";
8
- import * as i7 from "./components/one-grid-pagination/one-grid-pagination.component";
9
- import * as i8 from "./components/one-grid-status/one-grid-status.component";
10
- import * as i9 from "./components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component";
11
- import * as i10 from "./core/pipes/cell-field-value-empty.pipe";
12
- import * as i11 from "./core/pipes/cell-value-getter.pipe";
13
- import * as i12 from "./core/pipes/cell-field-value.pipe";
14
- import * as i13 from "./core/pipes/cell-action-button-visible.pipe";
15
- import * as i14 from "./core/pipes/cell-editable.pipe";
16
- import * as i15 from "./core/pipes/cell-invalid.pipe";
17
- import * as i16 from "./core/pipes/cell-selected.pipe";
18
- import * as i17 from "./core/pipes/cell-action-button-enable.pipe";
19
- import * as i18 from "./core/pipes/cell-number-value.pipe";
20
- import * as i19 from "./core/pipes/cell-field.pipe";
21
- import * as i20 from "./core/pipes/cell-key.pipe";
22
- import * as i21 from "./core/pipes/cell-level-padding.pipe";
23
- import * as i22 from "./core/pipes/column-sort-state.pipe";
24
- import * as i23 from "./core/pipes/header-checkbox-disabled.pipe";
25
- import * as i24 from "./core/pipes/header-checkbox-checked.pipe";
26
- import * as i25 from "./core/pipes/header-checkbox-indeterminate.pipe";
27
- import * as i26 from "./core/pipes/cell-state-renderer.pipe";
28
- import * as i27 from "./core/pipes/cell-state-group-renderer.pipe";
29
- import * as i28 from "./core/directives/one-cell-input-validator.directive";
30
- import * as i29 from "./core/directives/one-cell-renderer-component.directive";
31
- import * as i30 from "./core/directives/one-cell-text-expand.directive";
32
- import * as i31 from "./components/one-grid-cell-currency/one-grid-cell-currency.component";
33
- import * as i32 from "./components/one-grid-cell-option-menu/one-grid-cell-option-menu.component";
34
- import * as i33 from "./components/one-grid-row-drag-handle/one-grid-row-drag-handle.component";
35
- import * as i34 from "@angular/common";
36
- import * as i35 from "@angular/forms";
37
- import * as i36 from "@angular/cdk/scrolling";
38
- import * as i37 from "lucide-angular";
3
+ import * as i2 from "./components/one-grid-status/one-grid-status.component";
4
+ import * as i3 from "./components/one-grid-cell-currency/one-grid-cell-currency.component";
5
+ /**
6
+ * Compatibility shim.
7
+ *
8
+ * Every component, directive and pipe in the library is standalone, so this
9
+ * module declares nothing — it exists so `imports: [OneGridModule]` keeps
10
+ * working for anyone already on it. New code can import `OneGridComponent`
11
+ * directly instead.
12
+ *
13
+ * Icons no longer need registering here: each component that draws one
14
+ * provides the eight the grid uses, so they travel with the component whichever
15
+ * way it is imported.
16
+ */
39
17
  export declare class OneGridModule {
40
18
  static ɵfac: i0.ɵɵFactoryDeclaration<OneGridModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<OneGridModule, [typeof i1.OneGridComponent, typeof i2.OneGridHeaderComponent, typeof i3.OneGridBodyComponent, typeof i4.OneGridCheckboxComponent, typeof i5.OneGridCheckboxHeaderComponent, typeof i6.OneGridRowActionComponent, typeof i7.OneGridPaginationComponent, typeof i8.OneGridStatusComponent, typeof i9.OneGridCellGroupRendererComponent, typeof i10.CellFieldValueEmptyPipe, typeof i11.CellValueGetterPipe, typeof i12.CellFieldValuePipe, typeof i13.CellActionButtonVisiblePipe, typeof i14.CellEditablePipe, typeof i15.CellInvalidPipe, typeof i16.CellSelectedPipe, typeof i17.CellActionButtonEnablePipe, typeof i18.CellNumberValuePipe, typeof i19.CellFieldPipe, typeof i20.CellKeyPipe, typeof i21.CellLevelPaddingPipe, typeof i22.ColumnSortStatePipe, typeof i23.HeaderCheckboxDisabledPipe, typeof i24.HeaderCheckboxCheckedPipe, typeof i25.HeaderCheckboxIndeterminatePipe, typeof i26.CellStateRendererPipe, typeof i27.CellStateGroupRendererPipe, typeof i28.OneCellInputValidatorDirective, typeof i29.OneCellRendererComponentDirective, typeof i30.OneCellTextExpandDirective, typeof i31.OneGridCellCurrencyComponent, typeof i32.OneGridCellOptionMenuComponent, typeof i33.OneGridRowDragHandleComponent], [typeof i34.CommonModule, typeof i35.FormsModule, typeof i36.ScrollingModule, typeof i35.ReactiveFormsModule, typeof i37.LucideAngularModule], [typeof i1.OneGridComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OneGridModule, never, [typeof i1.OneGridComponent, typeof i2.OneGridStatusComponent, typeof i3.OneGridCellCurrencyComponent], [typeof i1.OneGridComponent, typeof i2.OneGridStatusComponent, typeof i3.OneGridCellCurrencyComponent]>;
42
20
  static ɵinj: i0.ɵɵInjectorDeclaration<OneGridModule>;
43
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-grid-core/angular",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "OneGrid — a feature-rich Angular data grid component with tree data, master/detail, editing, selection, pagination, and virtual scrolling.",
5
5
  "keywords": [
6
6
  "angular",
@@ -259,11 +259,64 @@ $_og-defaults: (
259
259
 
260
260
  .one-grid-header-viewport {
261
261
  display: flex;
262
+ // A column stack: the header row, and the filter row when the grid
263
+ // opts in. With one child this changes nothing.
264
+ flex-direction: column;
262
265
  position: relative;
263
266
  z-index: 1;
264
267
  overflow: hidden;
265
268
  }
266
269
 
270
+ // Filter Row UI (grid opt-in [filterRow])
271
+ .one-filter-row {
272
+ position: relative;
273
+ display: flex;
274
+ flex: 0 0 auto;
275
+ width: max-content;
276
+ border-top: 1px solid og-var(border-color);
277
+
278
+ .one-filter-cell {
279
+ flex: 0 0 auto;
280
+ display: flex;
281
+ align-items: center;
282
+ height: og-var(header-cell-height);
283
+ padding: 0 6px;
284
+ background-color: og-var(header-bg);
285
+
286
+ &.one-column-pinned-left,
287
+ &.one-column-pinned-right {
288
+ @include one-pinned-column;
289
+ z-index: 2;
290
+ background-color: og-var(header-bg);
291
+ }
292
+
293
+ &.one-column-pinned-left.one-column-pinned-edge {
294
+ @include one-pinned-edge(left);
295
+ }
296
+
297
+ &.one-column-pinned-right.one-column-pinned-edge {
298
+ @include one-pinned-edge(right);
299
+ }
300
+
301
+ .one-filter-input {
302
+ width: 100%;
303
+ height: calc(#{og-var(header-cell-height)} - 10px);
304
+ padding: 0 6px;
305
+ font: inherit;
306
+ font-size: og-var(font-size);
307
+ color: og-var(text-color);
308
+ background-color: og-var(input-bg);
309
+ border: 1px solid og-var(border-color);
310
+ border-radius: og-var(action-btn-radius);
311
+
312
+ &:focus-visible {
313
+ outline: 2px solid og-var(primary);
314
+ outline-offset: -1px;
315
+ }
316
+ }
317
+ }
318
+ }
319
+
267
320
  // One Grid Header Row UI
268
321
  .one-header-row {
269
322
  position: relative;
@@ -349,6 +402,15 @@ $_og-defaults: (
349
402
  }
350
403
  }
351
404
 
405
+ // The resizer is a focusable separator, so it needs a
406
+ // visible ring — it is invisible until hovered otherwise,
407
+ // and an invisible focus target is unusable.
408
+ .og-resize-handle:focus-visible {
409
+ outline: 2px solid og-var(primary);
410
+ outline-offset: -2px;
411
+ background: og-var(primary-subtle-bg);
412
+ }
413
+
352
414
  .og-resize-handle:hover {
353
415
 
354
416
  i {
@@ -369,6 +431,9 @@ $_og-defaults: (
369
431
  align-items: center;
370
432
  }
371
433
 
434
+ // Real <button>s now, so sorting and the column menu are
435
+ // reachable from the keyboard — the chrome has to be reset
436
+ // back to what the divs looked like.
372
437
  .one-grid-header-menu-button {
373
438
  width: og-var(action-btn-size);
374
439
  height: og-var(action-btn-size);
@@ -376,16 +441,67 @@ $_og-defaults: (
376
441
  justify-content: center;
377
442
  align-items: center;
378
443
  font-size: 16px;
444
+ padding: 0;
445
+ border: 0;
446
+ color: inherit;
447
+ background: none;
379
448
 
380
449
  &:hover {
381
450
  cursor: pointer;
382
451
  }
452
+
453
+ &:focus-visible {
454
+ outline: 2px solid og-var(primary);
455
+ outline-offset: -2px;
456
+ border-radius: og-var(action-btn-radius);
457
+ }
383
458
  }
384
459
  }
385
460
  }
386
461
  }
387
462
  }
388
463
 
464
+ // The default column menu (grid opt-in [headerMenu]). A sibling of the
465
+ // header — everything inside it clips — positioned by the header host.
466
+ // Same construction as the cell option menu, which set the pattern.
467
+ .one-header-menu {
468
+ min-width: 160px;
469
+ padding: 8px;
470
+ background: og-var(row-odd-bg);
471
+ border: 1px solid og-var(border-color);
472
+ border-radius: 8px;
473
+ box-shadow: og-var(menu-shadow);
474
+ transform-origin: top right;
475
+ animation: menuOpen 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
476
+
477
+ .one-header-menu-item {
478
+ display: flex;
479
+ align-items: center;
480
+ width: 100%;
481
+ padding: 6px 12px;
482
+ cursor: pointer;
483
+ text-align: left;
484
+ font: inherit;
485
+ color: inherit;
486
+ background: none;
487
+ border: 0;
488
+ border-bottom: 1px solid og-var(border-color);
489
+
490
+ &:focus-visible {
491
+ outline: 2px solid og-var(primary);
492
+ outline-offset: -2px;
493
+ }
494
+
495
+ &:last-child {
496
+ border-bottom: none;
497
+ }
498
+
499
+ &:hover {
500
+ background: og-var(row-even-bg);
501
+ }
502
+ }
503
+ }
504
+
389
505
  // One Grid Body UI
390
506
  .one-grid-body {
391
507
  height: 100%;
@@ -587,6 +703,17 @@ $_og-defaults: (
587
703
  margin: 0;
588
704
  padding: 0;
589
705
  height: og-var(cell-height);
706
+ // The focused cell. This is the grid's single tab stop and the
707
+ // thing the arrow keys move, so it has to be visible — an
708
+ // invisible cursor is the same as no cursor. Inset so the ring
709
+ // is not clipped by the neighbouring cell.
710
+ &:focus-visible,
711
+ &.one-cell-active:focus {
712
+ outline: 2px solid og-var(primary);
713
+ outline-offset: -2px;
714
+ z-index: 2;
715
+ }
716
+
590
717
  // The row separator lives on the cell, not the row.
591
718
  //
592
719
  // It used to be `border-bottom` on `.one-row`, which reserved a
@@ -1,17 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class CellActionButtonVisiblePipe {
4
- transform(column, node) {
5
- return (node?.leaf && !(node?.group && node?.leafGroup) && !column?.autoGroupField) || (!node?.leaf && (node?.group || node?.leafGroup) && column?.autoGroupField && column?.editableLevels?.includes(node.level));
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, name: "cellActionButtonVisible" }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, decorators: [{
11
- type: Pipe,
12
- args: [{
13
- standalone: false,
14
- name: 'cellActionButtonVisible'
15
- }]
16
- }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1hY3Rpb24tYnV0dG9uLXZpc2libGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29uZS1ncmlkL3NyYy9saWIvY29yZS9waXBlcy9jZWxsLWFjdGlvbi1idXR0b24tdmlzaWJsZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQVFwRCxNQUFNLE9BQU8sMkJBQTJCO0lBRXRDLFNBQVMsQ0FBQyxNQUFvQixFQUFFLElBQWdCO1FBRTlDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsSUFBSSxJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUUsS0FBSyxJQUFJLElBQUksRUFBRSxTQUFTLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxjQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxFQUFFLElBQUksSUFBSSx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mxlYWZHcm91cCkgJiYgY29sdW1uPy5hdXRvR3JvdXBGaWVsZCAmJiBjb2x1bW4/LmVkaXRhYmxlTGV2ZWxzPy5pbmNsdWRlcyhub2RlLmxldmVsKSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,26 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { getFieldValue } from '../../helpers/one-cell.helper';
3
- import * as i0 from "@angular/core";
4
- export class CellFieldValueEmptyPipe {
5
- transform(data, field) {
6
- // `field` is optional on OneColumnDef — an action-only column legitimately
7
- // has none. This used to call `field.split('.')` unguarded and throw a
8
- // TypeError while the grid was building cell state, taking the whole grid
9
- // down. No field means nothing to read, which is empty by definition.
10
- if (!data || !field) {
11
- return true;
12
- }
13
- const value = getFieldValue(data, field);
14
- return value === null || value === undefined || value === '';
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValueEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
17
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValueEmptyPipe, name: "cellFieldValueEmpty" }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValueEmptyPipe, decorators: [{
20
- type: Pipe,
21
- args: [{
22
- standalone: false,
23
- name: 'cellFieldValueEmpty'
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1maWVsZC12YWx1ZS1lbXB0eS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lLWdyaWQvc3JjL2xpYi9jb3JlL3BpcGVzL2NlbGwtZmllbGQtdmFsdWUtZW1wdHkucGlwZS50cyJdLCJuYW1lcyI6W10sI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c2Zvcm0ge1xuXG4gIHRyYW5zZm9ybShkYXRhOiBULCBmaWVsZDogc3RyaW5nKTogYm9vbGVhbiB7XG5cbiAgICAvLyBgZmllbGRgIGlzIG9wdGlvbmFsIG9uIE9uZUNvbHVtbkRlZiDigJQgYW4gYWN0aW9uLW9ubHkgY29sdW1uIGxlZ2l0aW1hdGVseVxuICAgIC8vIGhhcyBub25lLiBUaGlzIHVzZWQgdG8gY2FsbCBgZmllbGQuc3BsaXQoJy4nKWAgdW5ndWFyZGVkIGFuZCB0aHJvdyBhXG4gICAgLy8gVHlwZUVycm9yIHdoaWxlIHRoZSBncmlkIHdhcyBidWlsZGluZyBjZWxsIHN0YXRlLCB0YWtpbmcgdGhlIHdob2xlIGdyaWRcbiAgICAvLyBkb3duLiBObyBmaWVsZCBtZWFucyBub3RoaW5nIHRvIHJlYWQsIHdoaWNoIGlzIGVtcHR5IGJ5IGRlZmluaXRpb24uXG4gICAgaWYgKCFkYXRhIHx8ICFmaWVsZCkge1xuXG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG5cbiAgICBjb25zdCB2YWx1ZSA9IGdldEZpZWxkVmFsdWUoZGF0YSwgZmllbGQpO1xuXG4gICAgcmV0dXJuIHZhbHVlID09PSBudWxsIHx8IHZhbHVlID09PSB1bmRlZmluZWQgfHwgdmFsdWUgPT09ICcnO1xuICB9XG59XG4iXX0=
@@ -1,25 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { getFieldValue } from '../../helpers/one-cell.helper';
3
- import * as i0 from "@angular/core";
4
- export class CellFieldValuePipe {
5
- transform(data, field) {
6
- const value = getFieldValue(data, field);
7
- if (value === null || value === undefined) {
8
- return null;
9
- }
10
- if (typeof value === 'string' && value.trim() === '') {
11
- return null;
12
- }
13
- return value;
14
- }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValuePipe, name: "cellFieldValue" }); }
17
- }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldValuePipe, decorators: [{
19
- type: Pipe,
20
- args: [{
21
- standalone: false,
22
- name: 'cellFieldValue'
23
- }]
24
- }] });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1maWVsZC12YWx1ZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lLWdyaWQvc3JjL2xpYi9jb3JlL3BpcGVzL2NlbGwtZmllbGQtdmFsdWUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sK0JBQStCLENBQUM7O0FBTTlELE1BQU0sT0FBTyxrQkFBa0I7SUFFN0IsU0FBUyxDQUFDLElBQU8sRUFBRSxLQUFhO1FBRTlCLE1BQU0sS0FBSyxHQUFHLGFBQWEsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFekMsSUFBSSxLQUFLLEtBQUssSUFBSSxJQUFJLEtBQUssS0FBSyxTQUFTLEVBQUUsQ0FBQztZQUUxQyxPQUFPLElBQUksQ0FBQztRQUNkLENBQUM7UUFFRCxJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsSUFBSSxLQUFLLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxFQUFFLENBQUM7WUFFckQsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDO1FBRUQsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDOytHQWpCVSxrQkFBa0I7NkdBQWxCLGtCQUFrQjs7NEZBQWxCLGtCQUFrQjtrQkFKOUIsSUFBSTttQkFBQztvQkFDSixVQUFVLEVBQUUsS0FBSztvQkFDakIsSUFBSSxFQUFFLGdCQUFnQjtpQkFDdkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBnZXRGaWVsZFZhbHVlIH0gZnJvbSAnLi4vLi4vaGVscGVycy9vbmUtY2VsbC5oZWxwZXInO1xuXG5AUGlwZSh7XG4gIHN0YW5kYWxvbmU6IGZhbHNlLFxuICBuYW1lOiAnY2VsbEZpZWxkVmFsdWUnXG59KVxuZXhwb3J0IGNsYXNzIENlbGxGaWVsZFZhbHVlUGlwZTxUID0gYW55PiBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuXG4gIHRyYW5zZm9ybShkYXRhOiBULCBmaWVsZDogc3RyaW5nKTogc3RyaW5nIHtcblxuICAgIGNvbnN0IHZhbHVlID0gZ2V0RmllbGRWYWx1ZShkYXRhLCBmaWVsZCk7XG5cbiAgICBpZiAodmFsdWUgPT09IG51bGwgfHwgdmFsdWUgPT09IHVuZGVmaW5lZCkge1xuXG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgXG4gICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgJiYgdmFsdWUudHJpbSgpID09PSAnJykge1xuXG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXR1cm4gdmFsdWU7XG4gIH1cbn1cbiJdfQ==
@@ -1,20 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { getCellField } from '../../helpers/one-cell.helper';
3
- import * as i0 from "@angular/core";
4
- export class CellFieldPipe {
5
- transform(rowIndex, field) {
6
- if (rowIndex === null || rowIndex === undefined || !field)
7
- return '';
8
- return getCellField(rowIndex, field);
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
11
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, name: "cellField" }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, decorators: [{
14
- type: Pipe,
15
- args: [{
16
- standalone: false,
17
- name: 'cellField'
18
- }]
19
- }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1maWVsZC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lLWdyaWQvc3JjL2xpYi9jb3JlL3BpcGVzL2NlbGwtZmllbGQucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sK0JBQStCLENBQUM7O0FBTTdELE1BQU0sT0FBTyxhQUFhO0lBRXhCLFNBQVMsQ0FBQyxRQUFnQixFQUFFLEtBQWE7UUFFdkMsSUFBSSxRQUFRLEtBQUssSUFBSSxJQUFJLFFBQVEsS0FBSyxTQUFTLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxFQUFFLENBQUM7UUFFckUsT0FBTyxZQUFZLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBQ3ZDLENBQUM7K0dBUFUsYUFBYTs2R0FBYixhQUFhOzs0RkFBYixhQUFhO2tCQUp6QixJQUFJO21CQUFDO29CQUNKLFVBQVUsRUFBRSxLQUFLO29CQUNqQixJQUFJLEVBQUUsV0FBVztpQkFDbEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBnZXRDZWxsRmllbGQgfSBmcm9tICcuLi8uLi9oZWxwZXJzL29uZS1jZWxsLmhlbHBlcic7XG5cbkBQaXBlKHtcbiAgc3RhbmRhbG9uZTogZmFsc2UsXG4gIG5hbWU6ICdjZWxsRmllbGQnXG59KVxuZXhwb3J0IGNsYXNzIENlbGxGaWVsZFBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcblxuICB0cmFuc2Zvcm0ocm93SW5kZXg6IG51bWJlciwgZmllbGQ6IHN0cmluZyk6IHN0cmluZyB7XG5cbiAgICBpZiAocm93SW5kZXggPT09IG51bGwgfHwgcm93SW5kZXggPT09IHVuZGVmaW5lZCB8fCAhZmllbGQpIHJldHVybiAnJztcbiAgICBcbiAgICByZXR1cm4gZ2V0Q2VsbEZpZWxkKHJvd0luZGV4LCBmaWVsZCk7XG4gIH1cbn1cbiJdfQ==
@@ -1,19 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class CellNumberValuePipe {
4
- transform(value) {
5
- if (value === null || value === undefined)
6
- return undefined;
7
- return Number(value);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, name: "cellNumberValue" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- standalone: false,
16
- name: 'cell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WxsIHx8IHZhbHVlID09PSB1bmRlZmluZWQpIHJldHVybiB1bmRlZmluZWQ7XG4gICAgXG4gICAgcmV0dXJuIE51bWJlcih2YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,21 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { CellFieldValuePipe } from './cell-field-value.pipe';
3
- import * as i0 from "@angular/core";
4
- export class CellStateGroupRendererPipe {
5
- constructor() {
6
- this._cellFieldValue = new CellFieldValuePipe();
7
- }
8
- transform(value, data, column) {
9
- return value ? this._cellFieldValue.transform(data, column.field) : column?.cellRendererParams?.placeholder ?? '';
10
- }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
12
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, name: "cellStateGroupRenderer" }); }
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, decorators: [{
15
- type: Pipe,
16
- args: [{
17
- standalone: false,
18
- name: 'cellStateGroupRenderer'
19
- }]
20
- }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1zdGF0ZS1ncm91cC1yZW5kZXJlci5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lLWdyaWQvc3JjL2xpYi9jb3JlL3BpcGVzL2NlbGwtc3RhdGUtZ3JvdXAtcmVuZGVyZXIucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUVwRCxPQUFPLEVBQU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mFsdWUgPSBuZXcgQ2VsbEZpZWxkVmFsdWVQaXBlKCk7XG5cbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcsIGRhdGE6IFQsIGNvbHVtbjogT25lQ29sdW1uRGVmKTogc3RyaW5nIHtcblxuICAgIHJldHVybiB2YWx1ZSA/IHRoaXMuX2NlbGxGaWVsZFZhbHVlLnRyYW5zZm9ybShkYXRhLCBjb2x1bW4uZmllbGQpIDogY29sdW1uPy5jZWxsUmVuZGVyZXJQYXJhbXM/LnBsYWNlaG9sZGVyID8/ICcnO1xuICB9XG59XG4iXX0=
@@ -1,23 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { resolveOneValueGetterParams } from '../../helpers/one-column-def.helper';
3
- import * as i0 from "@angular/core";
4
- export class CellValueGetterPipe {
5
- transform(data, node, column, context) {
6
- return resolveOneValueGetterParams(column.valueGetter, {
7
- data,
8
- rowIndex: node.rowIndex,
9
- node: node,
10
- context: context
11
- });
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellValueGetterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellValueGetterPipe, name: "cellValueGetter" }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellValueGetterPipe, decorators: [{
17
- type: Pipe,
18
- args: [{
19
- standalone: false,
20
- name: 'cellValueGetter'
21
- }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC12YWx1ZS1nZXR0ZXIucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29uZS1ncmlkL3NyYy9saWIvY29yZS9waXB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HtcbiAgc3RhbmRhbG9uZTogZmFsc2UsXG4gIG5hbWU6ICdjZWxsVmFsdWVHZXR0ZXInXG59KVxuZXhwb3J0IGNsYXNzIENlbGxWYWx1ZUdldHRlclBpcGU8VCA9IGFueT4gaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcblxuICB0cmFuc2Zvcm0oZGF0YTogVCwgbm9kZTogT25lUm93Tm9kZSwgY29sdW1uOiBPbmVDb2x1bW5EZWYsIGNvbnRleHQ6IGFueSk6IHN0cmluZyB7XG5cbiAgICByZXR1cm4gcmVzb2x2ZU9uZVZhbHVlR2V0dGVyUGFyYW1zKGNvbHVtbi52YWx1ZUdldHRlciwge1xuICAgICAgZGF0YSxcbiAgICAgIHJvd0luZGV4OiBub2RlLnJvd0luZGV4LFxuICAgICAgbm9kZTogbm9kZSxcbiAgICAgIGNvbnRleHQ6IGNvbnRleHRcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { OneColumnDef } from '../models/one-column-def-types.model';
3
- import { OneRowNode } from '../instants/one-row-node.class';
4
- import * as i0 from "@angular/core";
5
- export declare class CellActionButtonVisiblePipe implements PipeTransform {
6
- transform(column: OneColumnDef, node: OneRowNode): boolean;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<CellActionButtonVisiblePipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<CellActionButtonVisiblePipe, "cellActionButtonVisible", false>;
9
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CellFieldValueEmptyPipe<T> implements PipeTransform {
4
- transform(data: T, field: string): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CellFieldValueEmptyPipe<any>, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CellFieldValueEmptyPipe<any>, "cellFieldValueEmpty", false>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CellFieldValuePipe<T = any> implements PipeTransform {
4
- transform(data: T, field: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CellFieldValuePipe<any>, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CellFieldValuePipe<any>, "cellFieldValue", false>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CellFieldPipe implements PipeTransform {
4
- transform(rowIndex: number, field: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CellFieldPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CellFieldPipe, "cellField", false>;
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CellNumberValuePipe implements PipeTransform {
4
- transform(value: any): number | undefined;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CellNumberValuePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CellNumberValuePipe, "cellNumberValue", false>;
7
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { OneColumnDef } from '../models/one-column-def-types.model';
3
- import * as i0 from "@angular/core";
4
- export declare class CellStateGroupRendererPipe<T> implements PipeTransform {
5
- private _cellFieldValue;
6
- transform(value: string, data: T, column: OneColumnDef): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<CellStateGroupRendererPipe<any>, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<CellStateGroupRendererPipe<any>, "cellStateGroupRenderer", false>;
9
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { OneColumnDef } from '../models/one-column-def-types.model';
3
- import { OneRowNode } from '../instants/one-row-node.class';
4
- import * as i0 from "@angular/core";
5
- export declare class CellValueGetterPipe<T = any> implements PipeTransform {
6
- transform(data: T, node: OneRowNode, column: OneColumnDef, context: any): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<CellValueGetterPipe<any>, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<CellValueGetterPipe<any>, "cellValueGetter", false>;
9
- }