@firestitch/list 18.0.40 → 18.0.41
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.
- package/app/classes/data-controller.d.ts +1 -1
- package/app/components/body/row/cell/cell.component.d.ts +6 -5
- package/app/components/body/row/row.component.d.ts +9 -10
- package/app/components/head/head.component.d.ts +2 -1
- package/app/models/row/_base-row.d.ts +30 -0
- package/app/models/row/child-row.d.ts +18 -7
- package/app/models/row/group-footer-row.d.ts +14 -7
- package/app/models/row/group-row.d.ts +21 -11
- package/app/models/row/simple-row.d.ts +8 -3
- package/app/models/row.d.ts +13 -33
- package/esm2022/app/classes/data-controller.mjs +25 -31
- package/esm2022/app/classes/index.mjs +1 -1
- package/esm2022/app/classes/selection-controller.mjs +8 -7
- package/esm2022/app/components/body/row/actions/actions.component.mjs +1 -2
- package/esm2022/app/components/body/row/cell/cell.component.mjs +45 -39
- package/esm2022/app/components/body/row/inline-action/inline-action.component.mjs +1 -2
- package/esm2022/app/components/body/row/menu-action/menu-action.component.mjs +1 -2
- package/esm2022/app/components/body/row/row.component.mjs +54 -59
- package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +3 -3
- package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +3 -3
- package/esm2022/app/components/head/head-cell/head-cell.component.mjs +1 -1
- package/esm2022/app/components/head/head.component.mjs +4 -3
- package/esm2022/app/components/list/list.component.mjs +3 -3
- package/esm2022/app/components/loader/loader.component.mjs +3 -3
- package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +5 -4
- package/esm2022/app/directives/draggable-row/draggable-row.directive.mjs +4 -4
- package/esm2022/app/directives/empty-state/empty-state.directive.mjs +1 -1
- package/esm2022/app/directives/footer/footer.directive.mjs +1 -1
- package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +1 -1
- package/esm2022/app/directives/header/header.directive.mjs +1 -1
- package/esm2022/app/directives/heading/heading.directive.mjs +1 -1
- package/esm2022/app/directives/heading-container/heading-container.directive.mjs +1 -1
- package/esm2022/app/directives/index.mjs +1 -1
- package/esm2022/app/directives/subheading/subheading.directive.mjs +1 -1
- package/esm2022/app/enums/page-change-type.enum.mjs +1 -1
- package/esm2022/app/enums/pagination-strategy.enum.mjs +1 -1
- package/esm2022/app/enums/state.enum.mjs +1 -1
- package/esm2022/app/interfaces/cellconfig.interface.mjs +1 -1
- package/esm2022/app/interfaces/draggable-list.interface.mjs +1 -1
- package/esm2022/app/interfaces/external-params.interface.mjs +1 -1
- package/esm2022/app/interfaces/sorting-change-event.interface.mjs +1 -1
- package/esm2022/app/models/row/_base-row.mjs +43 -0
- package/esm2022/app/models/row/child-row.mjs +14 -10
- package/esm2022/app/models/row/group-footer-row.mjs +11 -7
- package/esm2022/app/models/row/group-row.mjs +16 -20
- package/esm2022/app/models/row/simple-row.mjs +5 -5
- package/esm2022/app/models/row.mjs +26 -82
- package/fesm2022/firestitch-list.mjs +527 -554
- package/fesm2022/firestitch-list.mjs.map +1 -1
- package/package.json +1 -1
- package/app/models/row/base-row.d.ts +0 -13
- package/esm2022/app/models/row/base-row.mjs +0 -25
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RowType } from '../../enums/row-type.enum';
|
|
2
|
-
import { FsListReorderData } from '../../interfaces';
|
|
3
|
-
export declare abstract class BaseRow {
|
|
4
|
-
index: number;
|
|
5
|
-
readyToSwap: boolean;
|
|
6
|
-
protected readonly _rowType: RowType;
|
|
7
|
-
private readonly _data;
|
|
8
|
-
constructor(data?: any, rowType?: RowType);
|
|
9
|
-
get data(): any;
|
|
10
|
-
get type(): RowType;
|
|
11
|
-
getReorderData(): FsListReorderData;
|
|
12
|
-
abstract destroy(): any;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { RowType } from '../../enums/row-type.enum';
|
|
2
|
-
export class BaseRow {
|
|
3
|
-
index;
|
|
4
|
-
readyToSwap = true;
|
|
5
|
-
_rowType;
|
|
6
|
-
_data = {};
|
|
7
|
-
constructor(data = {}, rowType = RowType.Simple) {
|
|
8
|
-
this._data = data;
|
|
9
|
-
this._rowType = rowType;
|
|
10
|
-
}
|
|
11
|
-
get data() {
|
|
12
|
-
return this._data;
|
|
13
|
-
}
|
|
14
|
-
get type() {
|
|
15
|
-
return this._rowType;
|
|
16
|
-
}
|
|
17
|
-
getReorderData() {
|
|
18
|
-
return {
|
|
19
|
-
type: this._rowType,
|
|
20
|
-
data: this.data,
|
|
21
|
-
parent: null,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1yb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZGVscy9yb3cvYmFzZS1yb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBR3BELE1BQU0sT0FBZ0IsT0FBTztJQUVwQixLQUFLLENBQVM7SUFDZCxXQUFXLEdBQUcsSUFBSSxDQUFDO0lBRVAsUUFBUSxDQUFVO0lBRXBCLEtBQUssR0FBUSxFQUFFLENBQUM7SUFFakMsWUFDRSxPQUFZLEVBQUUsRUFDZCxPQUFPLEdBQUcsT0FBTyxDQUFDLE1BQU07UUFFeEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUM7UUFDbEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFDMUIsQ0FBQztJQUVELElBQVcsSUFBSTtRQUNiLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQztJQUNwQixDQUFDO0lBRUQsSUFBVyxJQUFJO1FBQ2IsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ3ZCLENBQUM7SUFFTSxj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