@firestitch/list 12.20.1 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/classes/list-controller.d.ts +33 -28
- package/app/components/body/row/row.component.d.ts +2 -0
- package/app/components/list/list.component.d.ts +2 -0
- package/app/interfaces/listconfig.interface.d.ts +2 -1
- package/app/models/row.d.ts +7 -3
- package/esm2020/app/classes/data-controller.mjs +367 -0
- package/esm2020/app/classes/external-params-controller.mjs +147 -0
- package/esm2020/app/classes/list-controller.mjs +752 -0
- package/{esm2015/app/classes/pagination-controller.js → esm2020/app/classes/pagination-controller.mjs} +2 -3
- package/{esm2015/app/classes/persistance-controller.js → esm2020/app/classes/persistance-controller.mjs} +4 -4
- package/esm2020/app/classes/reorder-controller.mjs +182 -0
- package/esm2020/app/classes/selection-controller.mjs +468 -0
- package/esm2020/app/components/body/body.component.mjs +64 -0
- package/esm2020/app/components/body/row/actions/actions.component.mjs +97 -0
- package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -0
- package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +33 -0
- package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +46 -0
- package/esm2020/app/components/body/row/row.component.mjs +321 -0
- package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -0
- package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -0
- package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +28 -0
- package/esm2020/app/components/footer/footer.component.mjs +31 -0
- package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -0
- package/esm2020/app/components/head/head.component.mjs +103 -0
- package/esm2020/app/components/list/list.component.mjs +388 -0
- package/esm2020/app/components/loader/loader.component.mjs +40 -0
- package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -0
- package/esm2020/app/components/pagination/pagination.component.mjs +37 -0
- package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -0
- package/esm2020/app/components/status/status.component.mjs +66 -0
- package/{esm2015/app/directives/cell/cell.directive.js → esm2020/app/directives/cell/cell.directive.mjs} +4 -4
- package/{esm2015/app/directives/column/column.directive.js → esm2020/app/directives/column/column.directive.mjs} +4 -4
- package/{esm2015/app/directives/content/content.directive.js → esm2020/app/directives/content/content.directive.mjs} +4 -4
- package/{esm2015/app/directives/content-init/content-init.directive.js → esm2020/app/directives/content-init/content-init.directive.mjs} +4 -4
- package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +328 -0
- package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +78 -0
- package/{esm2015/app/directives/empty-state/empty-state.directive.js → esm2020/app/directives/empty-state/empty-state.directive.mjs} +4 -4
- package/{esm2015/app/directives/footer/footer.directive.js → esm2020/app/directives/footer/footer.directive.mjs} +4 -4
- package/{esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js → esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs} +4 -4
- package/{esm2015/app/directives/group-footer/group-footer.directive.js → esm2020/app/directives/group-footer/group-footer.directive.mjs} +4 -4
- package/{esm2015/app/directives/group-header/group-header.directive.js → esm2020/app/directives/group-header/group-header.directive.mjs} +4 -4
- package/{esm2015/app/directives/header/header.directive.js → esm2020/app/directives/header/header.directive.mjs} +4 -4
- package/{esm2015/app/directives/heading/heading.directive.js → esm2020/app/directives/heading/heading.directive.mjs} +4 -4
- package/{esm2015/app/directives/heading-container/heading-container.directive.js → esm2020/app/directives/heading-container/heading-container.directive.mjs} +4 -4
- package/{esm2015/app/directives/subheading/subheading.directive.js → esm2020/app/directives/subheading/subheading.directive.mjs} +4 -4
- package/{esm2015/app/fs-list.module.js → esm2020/app/fs-list.module.mjs} +5 -5
- package/esm2020/app/interfaces/listconfig.interface.mjs +2 -0
- package/{esm2015/app/interfaces/pagination.interface.js → esm2020/app/interfaces/pagination.interface.mjs} +1 -1
- package/esm2020/app/models/row-action.model.mjs +90 -0
- package/esm2020/app/models/row.mjs +89 -0
- package/{esm2015/app/pipes/action-label.js → esm2020/app/pipes/action-label.mjs} +4 -4
- package/{esm2015/app/services/group-expand-notifier.service.js → esm2020/app/services/group-expand-notifier.service.mjs} +4 -4
- package/fesm2015/{firestitch-list.js → firestitch-list.mjs} +2716 -2755
- package/fesm2015/firestitch-list.mjs.map +1 -0
- package/fesm2020/firestitch-list.mjs +5844 -0
- package/fesm2020/firestitch-list.mjs.map +1 -0
- package/package.json +20 -7
- package/bundles/firestitch-list.umd.js +0 -7147
- package/bundles/firestitch-list.umd.js.map +0 -1
- package/esm2015/app/classes/data-controller.js +0 -365
- package/esm2015/app/classes/external-params-controller.js +0 -147
- package/esm2015/app/classes/list-controller.js +0 -743
- package/esm2015/app/classes/reorder-controller.js +0 -183
- package/esm2015/app/classes/selection-controller.js +0 -468
- package/esm2015/app/components/body/body.component.js +0 -69
- package/esm2015/app/components/body/row/actions/actions.component.js +0 -99
- package/esm2015/app/components/body/row/cell/cell.component.js +0 -113
- package/esm2015/app/components/body/row/inline-action/inline-action.component.js +0 -37
- package/esm2015/app/components/body/row/menu-action/menu-action.component.js +0 -50
- package/esm2015/app/components/body/row/row.component.js +0 -315
- package/esm2015/app/components/customize-cols/customize-cols.component.js +0 -72
- package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +0 -20
- package/esm2015/app/components/footer/footer-row/footer-row.component.js +0 -33
- package/esm2015/app/components/footer/footer.component.js +0 -36
- package/esm2015/app/components/head/head-cell/head-cell.component.js +0 -34
- package/esm2015/app/components/head/head.component.js +0 -108
- package/esm2015/app/components/list/list.component.js +0 -388
- package/esm2015/app/components/loader/loader.component.js +0 -45
- package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +0 -79
- package/esm2015/app/components/pagination/pagination.component.js +0 -42
- package/esm2015/app/components/saved-filters/saved-filters.component.js +0 -32
- package/esm2015/app/components/status/status.component.js +0 -72
- package/esm2015/app/directives/draggable-list/draggable-list.directive.js +0 -330
- package/esm2015/app/directives/draggable-row/draggable-row.directive.js +0 -79
- package/esm2015/app/interfaces/listconfig.interface.js +0 -2
- package/esm2015/app/models/row-action.model.js +0 -90
- package/esm2015/app/models/row.js +0 -81
- package/fesm2015/firestitch-list.js.map +0 -1
- /package/{esm2015/app/classes/actions-controller.js → esm2020/app/classes/actions-controller.mjs} +0 -0
- /package/{esm2015/app/classes/columns-controller.js → esm2020/app/classes/columns-controller.mjs} +0 -0
- /package/{esm2015/app/classes/index.js → esm2020/app/classes/index.mjs} +0 -0
- /package/{esm2015/app/classes/sorting-controller.js → esm2020/app/classes/sorting-controller.mjs} +0 -0
- /package/{esm2015/app/directives/index.js → esm2020/app/directives/index.mjs} +0 -0
- /package/{esm2015/app/enums/button-type.enum.js → esm2020/app/enums/button-type.enum.mjs} +0 -0
- /package/{esm2015/app/enums/page-change-type.enum.js → esm2020/app/enums/page-change-type.enum.mjs} +0 -0
- /package/{esm2015/app/enums/pagination-strategy.enum.js → esm2020/app/enums/pagination-strategy.enum.mjs} +0 -0
- /package/{esm2015/app/enums/row-type.enum.js → esm2020/app/enums/row-type.enum.mjs} +0 -0
- /package/{esm2015/app/enums/state.enum.js → esm2020/app/enums/state.enum.mjs} +0 -0
- /package/{esm2015/app/fs-list.providers.js → esm2020/app/fs-list.providers.mjs} +0 -0
- /package/{esm2015/app/interfaces/cellconfig.interface.js → esm2020/app/interfaces/cellconfig.interface.mjs} +0 -0
- /package/{esm2015/app/interfaces/column-config.interface.js → esm2020/app/interfaces/column-config.interface.mjs} +0 -0
- /package/{esm2015/app/interfaces/draggable-list.interface.js → esm2020/app/interfaces/draggable-list.interface.mjs} +0 -0
- /package/{esm2015/app/interfaces/external-params.interface.js → esm2020/app/interfaces/external-params.interface.mjs} +0 -0
- /package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +0 -0
- /package/{esm2015/app/interfaces/sorting-change-event.interface.js → esm2020/app/interfaces/sorting-change-event.interface.mjs} +0 -0
- /package/{esm2015/app/models/column-async-attribute.js → esm2020/app/models/column-async-attribute.mjs} +0 -0
- /package/{esm2015/app/models/column-attributes.js → esm2020/app/models/column-attributes.mjs} +0 -0
- /package/{esm2015/app/models/column.model.js → esm2020/app/models/column.model.mjs} +0 -0
- /package/{esm2015/app/models/row/base-row.js → esm2020/app/models/row/base-row.mjs} +0 -0
- /package/{esm2015/app/models/row/child-row.js → esm2020/app/models/row/child-row.mjs} +0 -0
- /package/{esm2015/app/models/row/group-footer-row.js → esm2020/app/models/row/group-footer-row.mjs} +0 -0
- /package/{esm2015/app/models/row/group-row.js → esm2020/app/models/row/group-row.mjs} +0 -0
- /package/{esm2015/app/models/row/simple-row.js → esm2020/app/models/row/simple-row.mjs} +0 -0
- /package/{esm2015/app/models/styleConfig.model.js → esm2020/app/models/styleConfig.model.mjs} +0 -0
- /package/{esm2015/app/pipes/index.js → esm2020/app/pipes/index.mjs} +0 -0
- /package/{esm2015/firestitch-list.js → esm2020/firestitch-list.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { RowType } from '../enums/row-type.enum';
|
|
2
|
-
import { ChildRow } from './row/child-row';
|
|
3
|
-
import { GroupRow } from './row/group-row';
|
|
4
|
-
import { SimpleRow } from './row/simple-row';
|
|
5
|
-
import { GroupFooterRow } from './row/group-footer-row';
|
|
6
|
-
export class Row {
|
|
7
|
-
constructor(data = {}, rowType = RowType.Simple, { parent, initialExpand } = {}) {
|
|
8
|
-
switch (rowType) {
|
|
9
|
-
case RowType.Simple:
|
|
10
|
-
{
|
|
11
|
-
this._row = new SimpleRow(data);
|
|
12
|
-
}
|
|
13
|
-
break;
|
|
14
|
-
case RowType.Group:
|
|
15
|
-
{
|
|
16
|
-
this._row = new GroupRow(data, initialExpand);
|
|
17
|
-
}
|
|
18
|
-
break;
|
|
19
|
-
case RowType.GroupChild:
|
|
20
|
-
{
|
|
21
|
-
this._row = new ChildRow(data, parent);
|
|
22
|
-
}
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
get index() {
|
|
27
|
-
return this._row.index;
|
|
28
|
-
}
|
|
29
|
-
set index(value) {
|
|
30
|
-
this._row.index = value;
|
|
31
|
-
}
|
|
32
|
-
get readyToSwap() {
|
|
33
|
-
return this._row.readyToSwap;
|
|
34
|
-
}
|
|
35
|
-
get visible() {
|
|
36
|
-
return this._row.visible;
|
|
37
|
-
}
|
|
38
|
-
set readyToSwap(value) {
|
|
39
|
-
this._row.readyToSwap = value;
|
|
40
|
-
}
|
|
41
|
-
get data() {
|
|
42
|
-
return this._row.data;
|
|
43
|
-
}
|
|
44
|
-
get type() {
|
|
45
|
-
return this._row.type;
|
|
46
|
-
}
|
|
47
|
-
get isGroup() {
|
|
48
|
-
return this._row instanceof GroupRow;
|
|
49
|
-
}
|
|
50
|
-
get isGroupChild() {
|
|
51
|
-
return this._row instanceof ChildRow;
|
|
52
|
-
}
|
|
53
|
-
get isGroupFooter() {
|
|
54
|
-
return this._row instanceof GroupFooterRow;
|
|
55
|
-
}
|
|
56
|
-
get parent() {
|
|
57
|
-
return this._row.parent;
|
|
58
|
-
}
|
|
59
|
-
get children() {
|
|
60
|
-
return this._row.children;
|
|
61
|
-
}
|
|
62
|
-
get expanded() {
|
|
63
|
-
return this._row.expanded;
|
|
64
|
-
}
|
|
65
|
-
get expanded$() {
|
|
66
|
-
return this._row.expanded$;
|
|
67
|
-
}
|
|
68
|
-
updateChildrenIndexes() {
|
|
69
|
-
this._row.updateChildrenIndexes();
|
|
70
|
-
}
|
|
71
|
-
toggleRowExpandStatus() {
|
|
72
|
-
this._row.toggleRowExpandStatus();
|
|
73
|
-
}
|
|
74
|
-
getReorderData() {
|
|
75
|
-
return this._row.getReorderData();
|
|
76
|
-
}
|
|
77
|
-
destroy() {
|
|
78
|
-
this._row.destroy();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93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