@wcardinal/wcardinal-ui 0.298.0 → 0.299.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.
@@ -6,6 +6,7 @@ export interface DTableDataListMappedParent<ROW> extends DTableData<ROW> {
6
6
  export declare class DTableDataListMapped<ROW> implements DTableDataMapped<ROW> {
7
7
  protected _parent: DTableDataListMappedParent<ROW>;
8
8
  constructor(parent: DTableDataListMappedParent<ROW>);
9
+ get rows(): ROW[];
9
10
  map(unmappedIndex: number): number | null;
10
11
  unmap(index: number): number;
11
12
  size(): number;
@@ -5,6 +5,10 @@ import { DTableDataSelection, DTableDataSelectionCreator, DTableDataSelectionOpt
5
5
  import { DTableDataComparator, DTableDataSorter } from "./d-table-data-sorter";
6
6
  export declare type DTableDataMappedEachIteratee<ROW> = (row: ROW, supplimental: unknown, index: number, unmappedIndex: number) => void | boolean;
7
7
  export interface DTableDataMapped<ROW> {
8
+ /**
9
+ * Mapped rows.
10
+ */
11
+ readonly rows: ROW[];
8
12
  /**
9
13
  * Returns an mapped index of the specified unmapped index.
10
14
  * A mapped index is an index on rows filters and sorters are applied.
@@ -2,6 +2,17 @@ var DTableDataListMapped = /** @class */ (function () {
2
2
  function DTableDataListMapped(parent) {
3
3
  this._parent = parent;
4
4
  }
5
+ Object.defineProperty(DTableDataListMapped.prototype, "rows", {
6
+ get: function () {
7
+ var result = [];
8
+ this.each(function (row) {
9
+ result.push(row);
10
+ });
11
+ return result;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
5
16
  DTableDataListMapped.prototype.map = function (unmappedIndex) {
6
17
  var parent = this._parent;
7
18
  var sortedIndex = parent.sorter.map(unmappedIndex);
@@ -1 +1 @@
1
- {"version":3,"file":"d-table-data-list-mapped.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-data-list-mapped.ts"],"names":[],"mappings":"AAOA;IAGC,8BAAY,MAAuC;QAClD,IAAI,CAAC,OAAO,GAA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CAAC,KAAK,KAAK,EAAE;wBAC5D,MAAM;qBACN;iBACD;aACD;SACD;aAAM;YACN,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/C,IAAI,aAAa,EAAE;gBAClB,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;oBACjC,IAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;oBACvC,IAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;oBAChC,IAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBACzE,IAAI,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,CAAC,KAAK,KAAK,EAAE;wBAC5D,MAAM;qBACN;iBACD;aACD;iBAAM;gBACN,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;oBACjC,IAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;oBACpB,IAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBAC7D,IAAI,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE;wBAChD,MAAM;qBACN;iBACD;aACD;SACD;IACF,CAAC;IACF,2BAAC;AAAD,CAAC,AApFD,IAoFC","sourcesContent":["import { DTableData, DTableDataMapped, DTableDataMappedEachIteratee } from \"./d-table-data\";\n\nexport interface DTableDataListMappedParent<ROW> extends DTableData<ROW> {\n\treadonly rows: ROW[];\n\treadonly supplimentals?: unknown[];\n}\n\nexport class DTableDataListMapped<ROW> implements DTableDataMapped<ROW> {\n\tprotected _parent: DTableDataListMappedParent<ROW>;\n\n\tconstructor(parent: DTableDataListMappedParent<ROW>) {\n\t\tthis._parent = parent;\n\t}\n\n\tmap(unmappedIndex: number): number | null {\n\t\tconst parent = this._parent;\n\t\tconst sortedIndex = parent.sorter.map(unmappedIndex);\n\t\tif (sortedIndex != null) {\n\t\t\treturn parent.filter.map(sortedIndex);\n\t\t}\n\t\treturn null;\n\t}\n\n\tunmap(index: number): number {\n\t\tconst parent = this._parent;\n\t\treturn parent.sorter.unmap(parent.filter.unmap(index));\n\t}\n\n\tsize(): number {\n\t\tconst parent = this._parent;\n\t\tconst indicesFiltered = parent.filter.indices;\n\t\treturn indicesFiltered != null ? indicesFiltered.length : parent.size();\n\t}\n\n\tget(index: number): ROW | null {\n\t\tconst parent = this._parent;\n\t\treturn parent.get(this.unmap(index));\n\t}\n\n\teach(iteratee: DTableDataMappedEachIteratee<ROW>, ifrom?: number, ito?: number): void {\n\t\tconst parent = this._parent;\n\t\tconst rows = parent.rows;\n\t\tconst supplimentals = parent.supplimentals;\n\t\tconst indicesFiltered = parent.filter.indices;\n\t\tconst indicesSorted = parent.sorter.indices;\n\t\tifrom = ifrom != null ? Math.max(0, ifrom) : 0;\n\t\tif (indicesFiltered) {\n\t\t\tconst size = indicesFiltered.length;\n\t\t\tito = ito != null ? Math.min(size, ito) : size;\n\t\t\tif (indicesSorted) {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesSorted[indicesFiltered[i]];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesFiltered[i];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tconst size = rows.length;\n\t\t\tito = ito != null ? Math.min(size, ito) : size;\n\t\t\tif (indicesSorted) {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesSorted[i];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst row = rows[i];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[i] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, i) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-table-data-list-mapped.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-data-list-mapped.ts"],"names":[],"mappings":"AAOA;IAGC,8BAAY,MAAuC;QAClD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,sBAAI,sCAAI;aAAR;YACC,IAAM,MAAM,GAAU,EAAE,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,UAAC,GAAQ;gBAClB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CA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C,KAAK,KAAK,EAAE;wBAC5D,MAAM;qBACN;iBACD;aACD;SACD;aAAM;YACN,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/C,IAAI,aAAa,EAAE;gBAClB,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;oBACjC,IAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;oBACvC,IAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;oBAChC,IAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBACzE,IAAI,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,CAAC,KAAK,KAAK,EAAE;wBAC5D,MAAM;qBACN;iBACD;aACD;iBAAM;gBACN,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;oBACjC,IAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;oBACpB,IAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBAC7D,IAAI,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE;wBAChD,MAAM;qBACN;iBACD;aACD;SACD;IACF,CAAC;IACF,2BAAC;AAAD,CAAC,AA5FD,IA4FC","sourcesContent":["import { DTableData, DTableDataMapped, DTableDataMappedEachIteratee } from \"./d-table-data\";\n\nexport interface DTableDataListMappedParent<ROW> extends DTableData<ROW> {\n\treadonly rows: ROW[];\n\treadonly supplimentals?: unknown[];\n}\n\nexport class DTableDataListMapped<ROW> implements DTableDataMapped<ROW> {\n\tprotected _parent: DTableDataListMappedParent<ROW>;\n\n\tconstructor(parent: DTableDataListMappedParent<ROW>) {\n\t\tthis._parent = parent;\n\t}\n\n\tget rows(): ROW[] {\n\t\tconst result: ROW[] = [];\n\t\tthis.each((row: ROW): void => {\n\t\t\tresult.push(row);\n\t\t});\n\t\treturn result;\n\t}\n\n\tmap(unmappedIndex: number): number | null {\n\t\tconst parent = this._parent;\n\t\tconst sortedIndex = parent.sorter.map(unmappedIndex);\n\t\tif (sortedIndex != null) {\n\t\t\treturn parent.filter.map(sortedIndex);\n\t\t}\n\t\treturn null;\n\t}\n\n\tunmap(index: number): number {\n\t\tconst parent = this._parent;\n\t\treturn parent.sorter.unmap(parent.filter.unmap(index));\n\t}\n\n\tsize(): number {\n\t\tconst parent = this._parent;\n\t\tconst indicesFiltered = parent.filter.indices;\n\t\treturn indicesFiltered != null ? indicesFiltered.length : parent.size();\n\t}\n\n\tget(index: number): ROW | null {\n\t\tconst parent = this._parent;\n\t\treturn parent.get(this.unmap(index));\n\t}\n\n\teach(iteratee: DTableDataMappedEachIteratee<ROW>, ifrom?: number, ito?: number): void {\n\t\tconst parent = this._parent;\n\t\tconst rows = parent.rows;\n\t\tconst supplimentals = parent.supplimentals;\n\t\tconst indicesFiltered = parent.filter.indices;\n\t\tconst indicesSorted = parent.sorter.indices;\n\t\tifrom = ifrom != null ? Math.max(0, ifrom) : 0;\n\t\tif (indicesFiltered) {\n\t\t\tconst size = indicesFiltered.length;\n\t\t\tito = ito != null ? Math.min(size, ito) : size;\n\t\t\tif (indicesSorted) {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesSorted[indicesFiltered[i]];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesFiltered[i];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tconst size = rows.length;\n\t\t\tito = ito != null ? Math.min(size, ito) : size;\n\t\t\tif (indicesSorted) {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst unmappedIndex = indicesSorted[i];\n\t\t\t\t\tconst row = rows[unmappedIndex];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[unmappedIndex] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, unmappedIndex) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = ifrom; i < ito; ++i) {\n\t\t\t\t\tconst row = rows[i];\n\t\t\t\t\tconst supplimental = supplimentals ? supplimentals[i] : null;\n\t\t\t\t\tif (iteratee(row, supplimental, i, i) === false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-table-data.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-data.ts"],"names":[],"mappings":"","sourcesContent":["import { utils } from \"pixi.js\";\nimport { DBaseOnOptions } from \"./d-base\";\nimport { DTableDataFilter, DTableDataFilterer } from \"./d-table-data-filter\";\nimport {\n\tDTableDataSelection,\n\tDTableDataSelectionCreator,\n\tDTableDataSelectionOptions\n} from \"./d-table-data-selection\";\nimport { DTableDataComparator, DTableDataSorter } from \"./d-table-data-sorter\";\n\nexport type DTableDataMappedEachIteratee<ROW> = (\n\trow: ROW,\n\tsupplimental: unknown,\n\tindex: number,\n\tunmappedIndex: number\n) => void | boolean;\n\nexport interface DTableDataMapped<ROW> {\n\t/**\n\t * Returns an mapped index of the specified unmapped index.\n\t * A mapped index is an index on rows filters and sorters are applied.\n\t *\n\t * @param unmappedIndex a unmapped index\n\t */\n\tmap(unmappedIndex: number): number | null;\n\n\t/**\n\t * Returns an unmapped index of the specified mapped index.\n\t * A mapped index is an index on rows filters and sorters are applied.\n\t *\n\t * @param index a mapped index\n\t */\n\tunmap(index: number): number;\n\n\t/**\n\t * Returns a size of rows.\n\t */\n\tsize(): number;\n\n\t/**\n\t * Returns a row data at the specified index.\n\t * The index is an index on rows filters and sorters are applied.\n\t *\n\t * @param index a mapped index\n\t */\n\tget(index: number): ROW | null;\n\n\t/**\n\t * Calls the specified iteratee on each mapped datum of the specified index range.\n\t * If called iteratee explicitly returns false, stops an iteration.\n\t *\n\t * @param iteratee an function called on each mapped datum\n\t * @param ifrom an index to start an iteration\n\t * @param ito an index before which an interation stops\n\t */\n\teach(iteratee: DTableDataMappedEachIteratee<ROW>, ifrom?: number, iend?: number): void;\n}\n\nexport type DTableDataEachIteratee<ROW> = (row: ROW, index: number) => void | boolean;\n\nexport interface DTableDataOptions<ROW, EMITTER = any> {\n\t/**\n\t * Selection options.\n\t */\n\tselection?:\n\t\t| DTableDataSelection<ROW>\n\t\t| DTableDataSelectionCreator<ROW>\n\t\t| DTableDataSelectionOptions;\n\n\t/**\n\t * A filter.\n\t */\n\tfilter?: DTableDataFilterer<ROW>;\n\n\t/**\n\t * A comparator.\n\t */\n\tcomparator?: DTableDataComparator<ROW>;\n\n\t/**\n\t * Mappings of event names and event handlers.\n\t */\n\ton?: DBaseOnOptions<EMITTER>;\n}\n\nexport interface DTableDataParent {\n\tlock(): void;\n\tunlock(callIfNeeded: boolean): void;\n\tupdate(forcibly?: boolean): void;\n}\n\nexport interface DTableData<ROW> extends utils.EventEmitter {\n\t/**\n\t * A data selection.\n\t */\n\treadonly selection: DTableDataSelection<ROW>;\n\n\t/**\n\t * A data filter.\n\t */\n\treadonly filter: DTableDataFilter<ROW>;\n\n\t/**\n\t * A data sorter.\n\t */\n\treadonly sorter: DTableDataSorter<ROW>;\n\n\t/**\n\t * Sorted and filtered data.\n\t */\n\treadonly mapped: DTableDataMapped<ROW>;\n\n\tbind(parent: DTableDataParent): void;\n\n\t/**\n\t * Returns a size of rows.\n\t */\n\tsize(): number;\n\n\t/**\n\t * Returns a row data at the specified index.\n\t * The index is an index on rows filters and sorters are not applied.\n\t *\n\t * @param index an index on rows filters and sorters are not applied\n\t */\n\tget(index: number): ROW | null;\n\n\t/**\n\t * Calls the specified iteratee on each datum of the specified index range.\n\t * If called iteratee explicitly returns false, stops an iteration.\n\t *\n\t * @param iteratee an function called on each datum\n\t * @param ifrom an index to start an iteration\n\t * @param ito an index before which an interation stops\n\t */\n\teach(iteratee: DTableDataEachIteratee<ROW>, ifrom?: number, ito?: number): void;\n}\n"]}
1
+ {"version":3,"file":"d-table-data.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-data.ts"],"names":[],"mappings":"","sourcesContent":["import { utils } from \"pixi.js\";\nimport { DBaseOnOptions } from \"./d-base\";\nimport { DTableDataFilter, DTableDataFilterer } from \"./d-table-data-filter\";\nimport {\n\tDTableDataSelection,\n\tDTableDataSelectionCreator,\n\tDTableDataSelectionOptions\n} from \"./d-table-data-selection\";\nimport { DTableDataComparator, DTableDataSorter } from \"./d-table-data-sorter\";\n\nexport type DTableDataMappedEachIteratee<ROW> = (\n\trow: ROW,\n\tsupplimental: unknown,\n\tindex: number,\n\tunmappedIndex: number\n) => void | boolean;\n\nexport interface DTableDataMapped<ROW> {\n\t/**\n\t * Mapped rows.\n\t */\n\treadonly rows: ROW[];\n\n\t/**\n\t * Returns an mapped index of the specified unmapped index.\n\t * A mapped index is an index on rows filters and sorters are applied.\n\t *\n\t * @param unmappedIndex a unmapped index\n\t */\n\tmap(unmappedIndex: number): number | null;\n\n\t/**\n\t * Returns an unmapped index of the specified mapped index.\n\t * A mapped index is an index on rows filters and sorters are applied.\n\t *\n\t * @param index a mapped index\n\t */\n\tunmap(index: number): number;\n\n\t/**\n\t * Returns a size of rows.\n\t */\n\tsize(): number;\n\n\t/**\n\t * Returns a row data at the specified index.\n\t * The index is an index on rows filters and sorters are applied.\n\t *\n\t * @param index a mapped index\n\t */\n\tget(index: number): ROW | null;\n\n\t/**\n\t * Calls the specified iteratee on each mapped datum of the specified index range.\n\t * If called iteratee explicitly returns false, stops an iteration.\n\t *\n\t * @param iteratee an function called on each mapped datum\n\t * @param ifrom an index to start an iteration\n\t * @param ito an index before which an interation stops\n\t */\n\teach(iteratee: DTableDataMappedEachIteratee<ROW>, ifrom?: number, iend?: number): void;\n}\n\nexport type DTableDataEachIteratee<ROW> = (row: ROW, index: number) => void | boolean;\n\nexport interface DTableDataOptions<ROW, EMITTER = any> {\n\t/**\n\t * Selection options.\n\t */\n\tselection?:\n\t\t| DTableDataSelection<ROW>\n\t\t| DTableDataSelectionCreator<ROW>\n\t\t| DTableDataSelectionOptions;\n\n\t/**\n\t * A filter.\n\t */\n\tfilter?: DTableDataFilterer<ROW>;\n\n\t/**\n\t * A comparator.\n\t */\n\tcomparator?: DTableDataComparator<ROW>;\n\n\t/**\n\t * Mappings of event names and event handlers.\n\t */\n\ton?: DBaseOnOptions<EMITTER>;\n}\n\nexport interface DTableDataParent {\n\tlock(): void;\n\tunlock(callIfNeeded: boolean): void;\n\tupdate(forcibly?: boolean): void;\n}\n\nexport interface DTableData<ROW> extends utils.EventEmitter {\n\t/**\n\t * A data selection.\n\t */\n\treadonly selection: DTableDataSelection<ROW>;\n\n\t/**\n\t * A data filter.\n\t */\n\treadonly filter: DTableDataFilter<ROW>;\n\n\t/**\n\t * A data sorter.\n\t */\n\treadonly sorter: DTableDataSorter<ROW>;\n\n\t/**\n\t * Sorted and filtered data.\n\t */\n\treadonly mapped: DTableDataMapped<ROW>;\n\n\tbind(parent: DTableDataParent): void;\n\n\t/**\n\t * Returns a size of rows.\n\t */\n\tsize(): number;\n\n\t/**\n\t * Returns a row data at the specified index.\n\t * The index is an index on rows filters and sorters are not applied.\n\t *\n\t * @param index an index on rows filters and sorters are not applied\n\t */\n\tget(index: number): ROW | null;\n\n\t/**\n\t * Calls the specified iteratee on each datum of the specified index range.\n\t * If called iteratee explicitly returns false, stops an iteration.\n\t *\n\t * @param iteratee an function called on each datum\n\t * @param ifrom an index to start an iteration\n\t * @param ito an index before which an interation stops\n\t */\n\teach(iteratee: DTableDataEachIteratee<ROW>, ifrom?: number, ito?: number): void;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -86626,6 +86626,17 @@ var DTableDataListMapped = /** @class */ (function () {
86626
86626
  function DTableDataListMapped(parent) {
86627
86627
  this._parent = parent;
86628
86628
  }
86629
+ Object.defineProperty(DTableDataListMapped.prototype, "rows", {
86630
+ get: function () {
86631
+ var result = [];
86632
+ this.each(function (row) {
86633
+ result.push(row);
86634
+ });
86635
+ return result;
86636
+ },
86637
+ enumerable: false,
86638
+ configurable: true
86639
+ });
86629
86640
  DTableDataListMapped.prototype.map = function (unmappedIndex) {
86630
86641
  var parent = this._parent;
86631
86642
  var sortedIndex = parent.sorter.map(unmappedIndex);
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.298.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -68403,6 +68403,17 @@
68403
68403
  function DTableDataListMapped(parent) {
68404
68404
  this._parent = parent;
68405
68405
  }
68406
+ Object.defineProperty(DTableDataListMapped.prototype, "rows", {
68407
+ get: function () {
68408
+ var result = [];
68409
+ this.each(function (row) {
68410
+ result.push(row);
68411
+ });
68412
+ return result;
68413
+ },
68414
+ enumerable: false,
68415
+ configurable: true
68416
+ });
68406
68417
  DTableDataListMapped.prototype.map = function (unmappedIndex) {
68407
68418
  var parent = this._parent;
68408
68419
  var sortedIndex = parent.sorter.map(unmappedIndex);