@coolon/angular-ui-powerups 12.0.0 → 12.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/assets/table.scss +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +531 -429
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.js +16 -14
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/exports.js +32 -31
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/{table → tables}/abstract-table-model.js +2 -2
- package/esm2015/lib/components/tables/abstract-table-model.js.map +1 -0
- package/esm2015/lib/components/{table/table.component.js → tables/abstract-table.component.js} +22 -25
- package/esm2015/lib/components/tables/abstract-table.component.js.map +1 -0
- package/esm2015/lib/components/tables/abstract-table.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/abstract-table.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/cell-editors.js.map +1 -0
- package/esm2015/lib/components/tables/table/cell-portal-ref.js.map +1 -0
- package/esm2015/lib/components/tables/table/cell-renderer.js.map +1 -0
- package/esm2015/lib/components/tables/table/column-model.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/column-template/column-template.directive.js +2 -2
- package/esm2015/lib/components/tables/table/column-template/column-template.directive.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/column-template/column-template.directive.metadata.json +1 -1
- package/esm2015/lib/components/tables/table/column-template/column-template.directive.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/column-text-properties.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/edit-row-controls/edit-row-controls.component.js +1 -1
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/table/edit-session.js.map +1 -0
- package/esm2015/lib/components/tables/table/mutable-cell-renderer.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/paginator/paginator.component.js +1 -1
- package/esm2015/lib/components/tables/table/paginator/paginator.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/paginator/paginator.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/paginator/paginator.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/paginator/paginator.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/select-cell-renderer/select-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/select-header-cell-renderer/select-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/table-cell-renderer/table-cell-renderer.component.js +2 -2
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-def.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{table → tables/table}/table-model.js +1 -1
- package/esm2015/lib/components/tables/table/table-model.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-model.metadata.json +1 -0
- package/esm2015/lib/components/{table → tables/table}/table-row-menu/table-row-menu.component.js +1 -1
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table/table.component.js +94 -0
- package/esm2015/lib/components/tables/table/table.component.js.map +1 -0
- package/esm2015/lib/components/tables/table/table.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/table/table.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/table.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/decorated-tree-node.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-expansion-model.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-cell-renderer/tree-label-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-label-column-model.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js +95 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-component.metadata.json +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-table-model.js +24 -20
- package/esm2015/lib/components/tables/tree-table/tree-table-model.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table-model.metadata.json +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-table.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/tree-to-list-model.js.map +1 -0
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +399 -291
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/exports.d.ts +32 -31
- package/lib/components/{table → tables}/abstract-table-model.d.ts +4 -4
- package/lib/components/{table/table.component.d.ts → tables/abstract-table.component.d.ts} +4 -3
- package/lib/components/{table → tables/table}/column-template/column-template.directive.d.ts +3 -3
- package/lib/components/{table → tables/table}/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/{table → tables/table}/paginator/paginator.component.d.ts +1 -1
- package/lib/components/{table → tables/table}/select-cell-renderer/select-cell-renderer.component.d.ts +1 -1
- package/lib/components/{table → tables/table}/select-header-cell-renderer/select-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/{table → tables/table}/table-cell-renderer/table-cell-renderer.component.d.ts +2 -2
- package/lib/components/{table → tables/table}/table-model.d.ts +1 -1
- package/lib/components/{table → tables/table}/table-row-menu/table-row-menu.component.d.ts +2 -2
- package/lib/components/tables/table/table.component.d.ts +67 -0
- package/lib/components/{tree-table → tables/tree-table}/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-component.d.ts +71 -0
- package/lib/components/{tree-table → tables/tree-table}/tree-table-model.d.ts +1 -11
- package/package.json +1 -1
- package/esm2015/lib/components/table/abstract-table-model.js.map +0 -1
- package/esm2015/lib/components/table/cell-editors.js.map +0 -1
- package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm2015/lib/components/table/cell-renderer.js.map +0 -1
- package/esm2015/lib/components/table/column-model.js.map +0 -1
- package/esm2015/lib/components/table/column-template/column-template.directive.js.map +0 -1
- package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/column-text-properties.js.map +0 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +0 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.metadata.json +0 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/edit-session.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm2015/lib/components/table/paginator/paginator.component.js.map +0 -1
- package/esm2015/lib/components/table/paginator/paginator.component.metadata.json +0 -1
- package/esm2015/lib/components/table/paginator/paginator.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/paginator/paginator.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/table-def.js.map +0 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/table-model.js.map +0 -1
- package/esm2015/lib/components/table/table-model.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/table.component.js.map +0 -1
- package/esm2015/lib/components/table/table.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tree-table/decorated-tree-node.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-expansion-model.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-label-column-model.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-node.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-table-component.js +0 -80
- package/esm2015/lib/components/tree-table/tree-table-component.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-table-component.metadata.json +0 -1
- package/esm2015/lib/components/tree-table/tree-table-component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-table-model.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-table-model.metadata.json +0 -1
- package/esm2015/lib/components/tree-table/tree-table.component.scss.ngstyle.js.map +0 -1
- package/esm2015/lib/components/tree-table/tree-to-list-model.js.map +0 -1
- package/esm2015/lib/components/tree-table/visitable.class.js.map +0 -1
- package/lib/components/tree-table/tree-table-component.d.ts +0 -16
- /package/esm2015/lib/components/{table → tables}/abstract-table-model.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-editors.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-editors.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-portal-ref.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-portal-ref.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-renderer.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/cell-renderer.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/column-model.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/column-model.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/column-text-properties.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/column-text-properties.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/edit-session.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/edit-session.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/mutable-cell-renderer.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/mutable-cell-renderer.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/table-def.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/table-def.metadata.json +0 -0
- /package/esm2015/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.js +0 -0
- /package/esm2015/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-node.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-node.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.metadata.json +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/visitable.class.js +0 -0
- /package/esm2015/lib/components/{tree-table → tables/tree-table}/visitable.class.metadata.json +0 -0
- /package/lib/components/{table → tables/table}/cell-editors.d.ts +0 -0
- /package/lib/components/{table → tables/table}/cell-portal-ref.d.ts +0 -0
- /package/lib/components/{table → tables/table}/cell-renderer.d.ts +0 -0
- /package/lib/components/{table → tables/table}/column-model.d.ts +0 -0
- /package/lib/components/{table → tables/table}/column-text-properties.d.ts +0 -0
- /package/lib/components/{table → tables/table}/default-cell-renderer/default-cell-renderer.component.d.ts +0 -0
- /package/lib/components/{table → tables/table}/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +0 -0
- /package/lib/components/{table → tables/table}/edit-session.d.ts +0 -0
- /package/lib/components/{table → tables/table}/mutable-cell-renderer.d.ts +0 -0
- /package/lib/components/{table → tables/table}/table-def.d.ts +0 -0
- /package/lib/components/{table → tables/table}/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/decorated-tree-node.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/tree-expansion-model.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/tree-label-column-model.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/tree-node.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/tree-to-list-model.d.ts +0 -0
- /package/lib/components/{tree-table → tables/tree-table}/visitable.class.d.ts +0 -0
|
@@ -40,37 +40,38 @@ export * from "./noop/noop.component";
|
|
|
40
40
|
export * from "./scroll-container/scroll-container.component";
|
|
41
41
|
export * from "./section-header/section-header.component";
|
|
42
42
|
export * from "./switch-case/switch-case.component";
|
|
43
|
-
export * from "./
|
|
44
|
-
export * from "./
|
|
45
|
-
export * from "./table/cell-
|
|
46
|
-
export * from "./table/cell-
|
|
47
|
-
export * from "./table/
|
|
48
|
-
export * from "./table/column-
|
|
49
|
-
export * from "./table/
|
|
50
|
-
export * from "./table/
|
|
51
|
-
export * from "./table/
|
|
52
|
-
export * from "./table/table-
|
|
53
|
-
export * from "./table/table
|
|
54
|
-
export * from "./table/
|
|
55
|
-
export * from "./table/
|
|
56
|
-
export * from "./table/default-
|
|
57
|
-
export * from "./table/
|
|
58
|
-
export * from "./table/
|
|
59
|
-
export * from "./table/
|
|
60
|
-
export * from "./table/select-
|
|
61
|
-
export * from "./table/
|
|
62
|
-
export * from "./table/table-
|
|
63
|
-
export * from "./table/table-
|
|
64
|
-
export * from "./
|
|
65
|
-
export * from "./tree-table/tree-
|
|
66
|
-
export * from "./tree-table/tree-
|
|
67
|
-
export * from "./tree-table/tree-
|
|
68
|
-
export * from "./tree-table/tree-
|
|
69
|
-
export * from "./tree-table/tree-table-
|
|
70
|
-
export * from "./tree-table/tree-
|
|
71
|
-
export * from "./tree-table/
|
|
72
|
-
export * from "./tree-table/
|
|
73
|
-
export * from "./tree-table/tree-
|
|
43
|
+
export * from "./tables/abstract-table-model";
|
|
44
|
+
export * from "./tables/abstract-table.component";
|
|
45
|
+
export * from "./tables/table/cell-editors";
|
|
46
|
+
export * from "./tables/table/cell-portal-ref";
|
|
47
|
+
export * from "./tables/table/cell-renderer";
|
|
48
|
+
export * from "./tables/table/column-model";
|
|
49
|
+
export * from "./tables/table/column-text-properties";
|
|
50
|
+
export * from "./tables/table/edit-session";
|
|
51
|
+
export * from "./tables/table/mutable-cell-renderer";
|
|
52
|
+
export * from "./tables/table/table-def";
|
|
53
|
+
export * from "./tables/table/table-model";
|
|
54
|
+
export * from "./tables/table/table.component";
|
|
55
|
+
export * from "./tables/table/column-template/column-template.directive";
|
|
56
|
+
export * from "./tables/table/default-cell-renderer/default-cell-renderer.component";
|
|
57
|
+
export * from "./tables/table/default-header-cell-renderer/default-header-cell-renderer.component";
|
|
58
|
+
export * from "./tables/table/edit-row-controls/edit-row-controls.component";
|
|
59
|
+
export * from "./tables/table/paginator/paginator.component";
|
|
60
|
+
export * from "./tables/table/select-cell-renderer/select-cell-renderer.component";
|
|
61
|
+
export * from "./tables/table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
62
|
+
export * from "./tables/table/table-cell-renderer/table-cell-renderer.component";
|
|
63
|
+
export * from "./tables/table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
64
|
+
export * from "./tables/table/table-row-menu/table-row-menu.component";
|
|
65
|
+
export * from "./tables/tree-table/decorated-tree-node";
|
|
66
|
+
export * from "./tables/tree-table/tree-expansion-model";
|
|
67
|
+
export * from "./tables/tree-table/tree-label-column-model";
|
|
68
|
+
export * from "./tables/tree-table/tree-node";
|
|
69
|
+
export * from "./tables/tree-table/tree-table-component";
|
|
70
|
+
export * from "./tables/tree-table/tree-table-model";
|
|
71
|
+
export * from "./tables/tree-table/tree-to-list-model";
|
|
72
|
+
export * from "./tables/tree-table/visitable.class";
|
|
73
|
+
export * from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
|
|
74
|
+
export * from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
|
|
74
75
|
export * from "./types/bounds.class";
|
|
75
76
|
export * from "./types/dimension.class";
|
|
76
77
|
export * from "./types/point.class";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import { CellRenderer } from './cell-renderer';
|
|
4
|
-
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
5
|
-
import { ColumnTextProperties } from './column-text-properties';
|
|
6
|
-
import { EditSession } from './edit-session';
|
|
3
|
+
import { CellRenderer } from './table/cell-renderer';
|
|
4
|
+
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './table/column-model';
|
|
5
|
+
import { ColumnTextProperties } from './table/column-text-properties';
|
|
6
|
+
import { EditSession } from './table/edit-session';
|
|
7
7
|
export declare class AbstractTableModel<Row> extends GarbageCollector {
|
|
8
8
|
private sourceOfTruth;
|
|
9
9
|
private readonly _columns;
|
|
@@ -2,7 +2,7 @@ import { ElementRef, NgZone, OnInit, TemplateRef, ViewContainerRef } from '@angu
|
|
|
2
2
|
import { ListModelChain, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { ResizeAwareComponent } from '../resize-aware.component';
|
|
4
4
|
import { AbstractTableModel } from './abstract-table-model';
|
|
5
|
-
import { ColumnModel } from './column-model';
|
|
5
|
+
import { ColumnModel } from './table/column-model';
|
|
6
6
|
/**
|
|
7
7
|
* Create your model:
|
|
8
8
|
* @example
|
|
@@ -62,8 +62,7 @@ import { ColumnModel } from './column-model';
|
|
|
62
62
|
* }
|
|
63
63
|
* }
|
|
64
64
|
*/
|
|
65
|
-
export declare class
|
|
66
|
-
tableModel: AbstractTableModel<Row>;
|
|
65
|
+
export declare class AbstractTableComponent<Row> extends ResizeAwareComponent implements OnInit {
|
|
67
66
|
showHeaderModel: ValueModel<boolean>;
|
|
68
67
|
showHeader: boolean;
|
|
69
68
|
/**
|
|
@@ -78,8 +77,10 @@ export declare class TableComponent<Row> extends ResizeAwareComponent implements
|
|
|
78
77
|
readonly visibleRowCount: ValueModel<number>;
|
|
79
78
|
private readonly headerHeight;
|
|
80
79
|
private readonly rowHeight;
|
|
80
|
+
baseCssClass: string;
|
|
81
81
|
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
82
82
|
get hideHeader(): boolean;
|
|
83
|
+
getModel(): AbstractTableModel<Row>;
|
|
83
84
|
ngOnInit(): void;
|
|
84
85
|
isEditing(row: Row): boolean;
|
|
85
86
|
registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
package/lib/components/{table → tables/table}/column-template/column-template.directive.d.ts
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { AbstractTableComponent } from '../../abstract-table.component';
|
|
3
3
|
export declare class ColumnTemplateDirective implements OnInit {
|
|
4
|
-
readonly host:
|
|
4
|
+
readonly host: AbstractTableComponent<any>;
|
|
5
5
|
private templateRef;
|
|
6
6
|
private viewContainer;
|
|
7
7
|
aupColumnTemplate: string;
|
|
8
8
|
aupColumnTemplateColumnId: string;
|
|
9
9
|
aupColumnTemplateFillCell: boolean;
|
|
10
10
|
aupColumnTemplateAutoPadChild: any;
|
|
11
|
-
constructor(host:
|
|
11
|
+
constructor(host: AbstractTableComponent<any>, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
}
|
package/lib/components/{table → tables/table}/edit-row-controls/edit-row-controls.component.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Command, DirtyTrackingForm } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '
|
|
3
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
import { EditSession } from '../edit-session';
|
|
5
5
|
export declare class EditRowControls<Row> extends DisposableComponent implements OnInit {
|
|
6
6
|
row: Row;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { PageController } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '
|
|
3
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
export declare class PaginatorComponent extends DisposableComponent implements OnInit {
|
|
5
5
|
pageController: PageController;
|
|
6
6
|
constructor();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, DelegatingSelectionModel } from '@coolon/pectin';
|
|
2
|
-
import { DisposableComponent } from '
|
|
2
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
3
3
|
export declare class SelectCellRendererComponent<Row> extends DisposableComponent {
|
|
4
4
|
readonly selectCommand: Command<void>;
|
|
5
5
|
row: Row;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, DelegatingSelectionModel } from '@coolon/pectin';
|
|
2
|
-
import { DisposableComponent } from '
|
|
2
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
3
3
|
export declare class SelectHeaderCellRendererComponent<Row> extends DisposableComponent {
|
|
4
4
|
readonly selectCommand: Command<void>;
|
|
5
5
|
selectionModel: DelegatingSelectionModel<Row, any>;
|
package/lib/components/{table → tables/table}/table-cell-renderer/table-cell-renderer.component.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Portal } from '@angular/cdk/portal';
|
|
2
2
|
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { DisposableComponent } from '
|
|
4
|
-
import { AbstractTableModel } from '
|
|
3
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
4
|
+
import { AbstractTableModel } from '../../abstract-table-model';
|
|
5
5
|
import { CellEditorComponent, CellListEditorComponent } from '../cell-editors';
|
|
6
6
|
import { ColumnModel, RowData } from '../column-model';
|
|
7
7
|
import { EditSession } from '../edit-session';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListModel, SelectionModel, ValueModel } from '@coolon/pectin';
|
|
2
|
-
import { AbstractTableModel } from '
|
|
2
|
+
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
3
|
import { SelectionColumnModel } from './column-model';
|
|
4
4
|
/**
|
|
5
5
|
* Example:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
3
|
import { Command } from '@coolon/pectin';
|
|
4
|
-
import { CommandFace } from '
|
|
5
|
-
import { DisposableComponent } from '
|
|
4
|
+
import { CommandFace } from '../../../commands/command-face';
|
|
5
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
6
6
|
declare class MenuItemData<T> {
|
|
7
7
|
readonly factory: Command.Factory<T, void>;
|
|
8
8
|
readonly face: CommandFace;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
|
+
import { AbstractTableComponent } from '../abstract-table.component';
|
|
4
|
+
/**
|
|
5
|
+
* Create your model:
|
|
6
|
+
* @example
|
|
7
|
+
* this.heroTableModel = TableModel.fromList(heroList, table => {
|
|
8
|
+
* table.pluck("firstName");
|
|
9
|
+
* table.pluck("lastName");
|
|
10
|
+
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
11
|
+
* });
|
|
12
|
+
*
|
|
13
|
+
* Create your table
|
|
14
|
+
* @example
|
|
15
|
+
* <aup-table [tableModel]="heroTableModel"></aup-table>
|
|
16
|
+
*
|
|
17
|
+
* Column templates
|
|
18
|
+
* @example
|
|
19
|
+
* this.heroTableModel = TableModel.fromList(heroList, table => {
|
|
20
|
+
* table.pluck("firstName");
|
|
21
|
+
* table.pluck("lastName");
|
|
22
|
+
* table.addTemplateColumn("specialColumn");
|
|
23
|
+
* });
|
|
24
|
+
* <aup-table [tableModel]="heroTableModel">
|
|
25
|
+
* <div *aupColumnTemplate="let hero; columnId: 'specialColumn'; fillCell: true; padChild:false">
|
|
26
|
+
* {{hero.name}}
|
|
27
|
+
* </div>
|
|
28
|
+
* </aup-table>
|
|
29
|
+
*
|
|
30
|
+
* Styling
|
|
31
|
+
* @example
|
|
32
|
+
* // global settings
|
|
33
|
+
* :root {
|
|
34
|
+
* --aup-table-column-gap: 10px; // defaults to 24px
|
|
35
|
+
* --aup-table-row-hover-background-color, rgba(0, 0, 0, 0.05)
|
|
36
|
+
* --aup-table-row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
37
|
+
* --aup-table-first-column-padding-left: 18px // defaults to --column-gap
|
|
38
|
+
* --aup-table-last-column-padding-right: 18px // defaults to --column-gap
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* // per table settings.
|
|
42
|
+
* aup-table {
|
|
43
|
+
* --column-gap: 10px; // defaults to 24px
|
|
44
|
+
* --row-hover-background-color, rgba(0, 0, 0, 0.05)
|
|
45
|
+
* --row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
46
|
+
* --first-column-padding-left: 18px // defaults to --column-gap
|
|
47
|
+
* --last-column-padding-right: 18px // defaults to --column-gap
|
|
48
|
+
*
|
|
49
|
+
* aup-table-header-cell-renderer,
|
|
50
|
+
* aup-table-cell-renderer {
|
|
51
|
+
* &.aup-col-my-dasherised-column-id {
|
|
52
|
+
* // do stuff
|
|
53
|
+
* }
|
|
54
|
+
* &.first-visible-column {
|
|
55
|
+
* // do stuff
|
|
56
|
+
* }
|
|
57
|
+
* &.last-visible-column {
|
|
58
|
+
* // do stuff
|
|
59
|
+
* }
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
*/
|
|
63
|
+
export declare class TableComponent<Row> extends AbstractTableComponent<Row> {
|
|
64
|
+
tableModel: AbstractTableModel<Row>;
|
|
65
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
66
|
+
getModel(): AbstractTableModel<Row>;
|
|
67
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ListModelChain, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '
|
|
3
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
import { DecoratedTreeNode } from '../decorated-tree-node';
|
|
5
5
|
import { TreeExpansionModel } from '../tree-expansion-model';
|
|
6
6
|
import { TreeLabelColumnModel } from '../tree-label-column-model';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
|
+
import { AbstractTableComponent } from '../abstract-table.component';
|
|
4
|
+
import { DecoratedTreeNode } from './decorated-tree-node';
|
|
5
|
+
import { TreeNode } from './tree-node';
|
|
6
|
+
import { TreeTableModel } from './tree-table-model';
|
|
7
|
+
/**
|
|
8
|
+
* Create your model:
|
|
9
|
+
* @example
|
|
10
|
+
* this.heroTableModel = TableTreeModel.fromList(heroList, table => {
|
|
11
|
+
* table.pluck("firstName");
|
|
12
|
+
* table.pluck("lastName");
|
|
13
|
+
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
14
|
+
* table.addTemplateColumn("specialColumn");
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* Create your table
|
|
18
|
+
* @example
|
|
19
|
+
* <aup-tree-table [treeTableModel]="heroTableModel"></aup-table>
|
|
20
|
+
*
|
|
21
|
+
* Column templates
|
|
22
|
+
* @example
|
|
23
|
+
* this.heroTableModel = TableModel.fromList(heroList, table => {
|
|
24
|
+
* table.pluck("firstName");
|
|
25
|
+
* table.pluck("lastName");
|
|
26
|
+
* table.addTemplateColumn("specialColumn");
|
|
27
|
+
* });
|
|
28
|
+
* <aup-table [tableModel]="heroTableModel">
|
|
29
|
+
* <div *aupColumnTemplate="let hero; columnId: 'specialColumn'; fillCell: true; padChild:false">
|
|
30
|
+
* {{hero.name}}
|
|
31
|
+
* </div>
|
|
32
|
+
* </aup-table>
|
|
33
|
+
*
|
|
34
|
+
* Styling
|
|
35
|
+
* @example
|
|
36
|
+
* // global settings
|
|
37
|
+
* :root {
|
|
38
|
+
* --aup-table-column-gap: 10px; // defaults to 24px
|
|
39
|
+
* --aup-table-row-hover-background-color, rgba(0, 0, 0, 0.05)
|
|
40
|
+
* --aup-table-row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
41
|
+
* --aup-table-first-column-padding-left: 18px // defaults to --column-gap
|
|
42
|
+
* --aup-table-last-column-padding-right: 18px // defaults to --column-gap
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* // per table settings.
|
|
46
|
+
* aup-table {
|
|
47
|
+
* --column-gap: 10px; // defaults to 24px
|
|
48
|
+
* --row-hover-background-color, rgba(0, 0, 0, 0.05)
|
|
49
|
+
* --row-selected-background-color: rebeccapurple; // defaults to transparent
|
|
50
|
+
* --first-column-padding-left: 18px // defaults to --column-gap
|
|
51
|
+
* --last-column-padding-right: 18px // defaults to --column-gap
|
|
52
|
+
*
|
|
53
|
+
* aup-table-header-cell-renderer,
|
|
54
|
+
* aup-table-cell-renderer {
|
|
55
|
+
* &.aup-col-my-dasherised-column-id {
|
|
56
|
+
* // do stuff
|
|
57
|
+
* }
|
|
58
|
+
* &.first-visible-column {
|
|
59
|
+
* // do stuff
|
|
60
|
+
* }
|
|
61
|
+
* &.last-visible-column {
|
|
62
|
+
* // do stuff
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
*/
|
|
67
|
+
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<DecoratedTreeNode<T>> {
|
|
68
|
+
treeTableModel: TreeTableModel<T>;
|
|
69
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
70
|
+
getModel(): AbstractTableModel<DecoratedTreeNode<T>>;
|
|
71
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
|
|
2
|
-
import { AbstractTableModel } from '../
|
|
2
|
+
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
3
|
import { SelectionColumnModel } from '../table/column-model';
|
|
4
4
|
import { DecoratedTreeNode } from './decorated-tree-node';
|
|
5
5
|
import { TreeExpansionModel } from './tree-expansion-model';
|
|
6
6
|
import { TreeLabelColumnModel } from './tree-label-column-model';
|
|
7
7
|
import { TreeNode } from './tree-node';
|
|
8
|
-
import { SelfAndDescendantsVisitor, VisitableTree } from './visitable.class';
|
|
9
8
|
export declare class TreeTableModel<Row extends TreeNode<Row>> extends AbstractTableModel<DecoratedTreeNode<Row>> {
|
|
10
9
|
readonly treeExpansionModel: TreeExpansionModel<DecoratedTreeNode<Row>>;
|
|
11
10
|
constructor(source: ListModel<DecoratedTreeNode<Row>>, treeExpansionModel: TreeExpansionModel<DecoratedTreeNode<Row>>);
|
|
@@ -24,12 +23,3 @@ export declare namespace TreeTableModel {
|
|
|
24
23
|
storeIdIn: MutableValueModel<K>;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
export declare class FlattenStrategy<T extends VisitableTree<any>> extends SelfAndDescendantsVisitor<T> {
|
|
28
|
-
private collapsedIds;
|
|
29
|
-
private _areas;
|
|
30
|
-
private _collapsed;
|
|
31
|
-
constructor(collapsedIds: T[]);
|
|
32
|
-
protected onVisit(it: T): void;
|
|
33
|
-
protected shouldVisitChildrenOf(it: T): boolean;
|
|
34
|
-
get flattenedAreas(): T[];
|
|
35
|
-
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-table-model.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/table/abstract-table-model.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,MAAM,EAGN,iBAAiB,EAEjB,GAAG,EACH,iBAAiB,EACjB,gBAAgB,EAChB,IAAI,EAIJ,gBAAgB,EAEhB,aAAa,EAGb,UAAU,EAEX,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAGL,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EAEvB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,oGAAoG;AACpG,oGAAoG;AAEpG,MAAM,QAAQ;IACZ,YAAqB,SAAiB,EACjB,OAA8B;QAD9B,cAAS,GAAT,SAAS,CAAQ;QACjB,YAAO,GAAP,OAAO,CAAuB;IACnD,CAAC;CACF;AAGD,MAAM,sBAA4B,SAAQ,yBAAoD;IAA9F;;QACU,YAAO,GAAuB,EAAE,CAAC;IAY3C,CAAC;IAVC,SAAS,CAAC,MAAwB;QAChC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;CACF;AAED,MAAM,OAAO,kBAAwB,SAAQ,gBAAgB;IA0B3D,YAA8B,aAA6B;QACzD,KA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IAED,iBAAiB;;QACf,OAAO,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,oBAAoB,0CAAE,cAAc,CAAC,WAAW,EAAE,CAAA,CAAA;IAClE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,qBAAqB,EAAE,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,GAAG,CAAC,CAAC;IAClF,CAAC;IAED,eAAe,CAAC,MAAwB;QACtC,OAAO,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,GAAG,CAAC,CAAC;IAC3F,CAAC;IAED,SAAS,CAAC,GAAQ;;QAChB,MAAA,IAAI,CAAC,oBAAoB,0CAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,YAAY,CAAC,QAA4B;QACvC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,kBAAkB,CAAC,WAA6B,EAAE,GAAQ;QACxD,IAAI,IAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE;YAC9C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;SACrB;QACD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF;AAGD,aAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport {\n AbstractComputedListModel,\n assert,\n BooleanValueModelChain,\n CanIdentify,\n DirtyTrackingForm,\n Disposable,\n Dsl,\n EventListenerList,\n GarbageCollector,\n lang,\n ListModel,\n ListModelChain,\n MapModelChain, MultipleSelectionModel,\n MutableListModel,\n SelectionModel, Trace,\n TrackExternal,\n Types,\n UnaryCommand,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { CellRenderer } from './cell-renderer';\nimport {\n CellRendererOptions,\n ColumnModel,\n CustomTemplateColumnModel,\n CustomValueColumnModel,\n EditorControlColumnModel,\n ListPropertyColumnModel,\n OnComponentInit,\n PropertyColumnModel,\n SelectionColumnModel\n} from './column-model';\nimport { ColumnTextProperties } from './column-text-properties';\nimport { EditSession } from './edit-session';\nimport * as _ from 'lodash';\n\n// export type StringPropertiesOf<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];\n// export type NumberPropertiesOf<T> = { [K in keyof T]: T[K] extends number ? K : never }[keyof T];\n\nclass RowClass<Row> {\n constructor(readonly className: string,\n readonly matches: (row: Row) => boolean) {\n }\n}\n\n\nclass VisibleColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {\n private columns: ColumnModel<Row>[] = [];\n\n addColumn(column: ColumnModel<Row>) {\n this.runInTransaction(() => {\n this.columns.push(column);\n this.trackSource(column.visible);\n })\n }\n\n doComputeValue(): ColumnModel<Row>[] {\n return this.columns.filter(c => c.visible.value);\n }\n}\n\nexport class AbstractTableModel<Row> extends GarbageCollector {\n\n private readonly _columns = new MutableListModel<ColumnModel<Row>>();\n private readonly _visibleColumnTracker = new VisibleColumnListModel<Row>();\n private _columnsById: MapModelChain<string, ColumnModel<Row>>;\n private _editorSessions = new MutableListModel<EditSession<Row>>();\n private readonly _rowsBeingEdited: MutableListModel<Row>;\n private readonly rowClassNamePredicates: RowClass<Row>[] = [];\n\n private _columnTextPropertiesLookup: { [columnName: string]: ColumnTextProperties };\n\n readonly identityOf: CanIdentify<Row>['identityOf'];\n private saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>;\n private _editorSessionByRowId: MapModelChain<any, EditSession<Row>>;\n\n readonly editing: BooleanValueModelChain;\n readonly dataSource: ListModelChain<Row>;\n readonly firstEditableColumn: ValueModelChain<ColumnModel<Row>>;\n private selectionColumnModel: SelectionColumnModel<Row>;\n private rowSelectionDisabledOnAllColumns: BooleanValueModelChain;\n private readonly rowClickListeners = new EventListenerList<(row: Row) => void>();\n readonly firstVisibleColumn: ValueModel<ColumnModel<Row>>;\n readonly lastVisibleColumn: ValueModel<ColumnModel<Row>>;\n\n private _createForm: (row: Row) => DirtyTrackingForm<Row> = (row) => new DirtyTrackingForm<Row>();\n\n protected constructor(private sourceOfTruth: ListModel<Row>) {\n super();\n this.identityOf = sourceOfTruth.identityOf;\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this._columnsById = chain(this._columns).indexBy('columnId');\n this._rowsBeingEdited = new MutableListModel<Row>([], {\n identifiedWith: this.identityOf\n });\n this._editorSessionByRowId = chain(this._editorSessions).indexBy('rowId');\n this.editing = chain(this._editorSessions).count().isGreaterThan(0);\n this.dataSource = chain(this.sourceOfTruth).replaceAll(this.rowsBeingEdited);\n this.firstEditableColumn = chain(this.columns).select(c => c.hasEditorPortal()).first();\n this.firstVisibleColumn = chain(this._visibleColumnTracker).first();\n this.lastVisibleColumn = chain(this._visibleColumnTracker).last();\n\n this.rowSelectionDisabledOnAllColumns = chain(this._visibleColumnTracker).select(column => column.isRowSelectionEnabled()).count().equals(0);\n }\n\n get rowsBeingEdited(): ListModel<Row> {\n return this._rowsBeingEdited.readonly;\n }\n\n readonly trackBy = (index: number, item: Row) => {\n return this.identityOf ? this.identityOf(item) : index;\n };\n\n get columns(): ListModel<ColumnModel<Row>> {\n return this._columns.readonly;\n }\n\n get visibleColumns(): ListModel<ColumnModel<Row>> {\n return this._visibleColumnTracker.readonly;\n }\n\n pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: { columnId: string }): PropertyColumnModel<Row, P> {\n const columnId = options?.columnId || property.toString();\n return this.addColumn(new PropertyColumnModel<Row, P>(columnId, property, () => this.getColumnTextProperties(columnId)));\n }\n\n pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P, options?: { columnId: string }): ListPropertyColumnModel<Row, P> {\n const columnId = options?.columnId || property.toString();\n return this.addColumn(new ListPropertyColumnModel<Row, P>(columnId, property, () => this.getColumnTextProperties(columnId)));\n }\n\n protected _addSelectionColumn(selectionModel?: SelectionModel<Row>, visible?: ValueModel<boolean> | boolean): SelectionColumnModel<Row> {\n assert.isNil(this.selectionColumnModel);\n const columnId = 'selection-column';\n this.selectionColumnModel = new SelectionColumnModel<Row>(columnId, () => this.getColumnTextProperties(columnId), selectionModel);\n this.addRowClass('aup-row-selected', row => this.selectionColumnModel.isSelected(row));\n const selectionColumnModel = this.addColumn(this.selectionColumnModel);\n if (!_.isNil(visible)) {\n selectionColumnModel.visibleWhile(visible instanceof ValueModel ? visible : ValueModel.constant(visible));\n }\n return selectionColumnModel;\n }\n\n addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row> {\n this.saveCommand = saveCommand;\n const columnId = 'editControls';\n return this.addColumn(new EditorControlColumnModel<Row>(columnId, saveCommand, () => this.getColumnTextProperties(columnId)));\n }\n\n addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V> {\n return this.addColumn(new CustomValueColumnModel<Row, V>(columnId, () => this.getColumnTextProperties(columnId), dataAccessor));\n }\n\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>\n addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onComponentInitOrOptions?: OnComponentInit<C> | CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row> {\n return this.addColumn(new CustomValueColumnModel<Row, Row>(columnId, () => this.getColumnTextProperties(columnId), row => row)).cellRenderer(component, onComponentInitOrOptions);\n }\n\n addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row> {\n return this.addColumn(new CustomTemplateColumnModel<Row>(columnId, () => this.getColumnTextProperties(columnId)));\n }\n\n addRowClass(className: string, predicate: (row: Row) => boolean) {\n this.rowClassNamePredicates.push(new RowClass<Row>(className, predicate));\n }\n\n getRowClasses(row: Row): string[] {\n const classNames: string[] = [];\n this.rowClassNamePredicates.forEach(i => {\n if (i.matches(row)) {\n classNames.push(i.className);\n }\n });\n return classNames;\n }\n\n useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this {\n this._createForm = factory;\n return this;\n }\n\n protected addColumn<C extends ColumnModel<Row>>(column: C): C {\n if (this._columnsById.get(column.columnId)) {\n lang.illegalState(`Column with id=${column.columnId} already exists`);\n } else {\n this._columns.push(column);\n this._visibleColumnTracker.addColumn(column);\n }\n return column;\n }\n\n // removeColumn(column: ColumnModel<Row>) {\n //\n // }\n\n columnTextProperties(columnTextProperties: { [columnName: string]: ColumnTextProperties }) {\n this._columnTextPropertiesLookup = columnTextProperties;\n }\n\n getColumnTextProperties(columnId: string): ColumnTextProperties {\n return this._columnTextPropertiesLookup ? this._columnTextPropertiesLookup[columnId] : undefined;\n }\n\n startEditSession(row: Row): EditSession<Row> {\n const rowId = this.identityOf(row);\n if (this._rowsBeingEdited.query().indexOf(row) > -1) {\n return lang.illegalState(`Row with id=${rowId} already being edited`);\n } else {\n const editSession = new EditSession<Row>(rowId, row, this._createForm(row), this.saveCommand);\n const { when } = Dsl.disposeWith(editSession);\n when(editSession.liveRowValue).changes((editedValue) => {\n this._rowsBeingEdited.replaceOrPush(editedValue);\n }, { initialValue: 'triggerChangeUnlessNil' });\n\n this._editorSessions.push(editSession);\n editSession.onDispose(() => {\n this._rowsBeingEdited.remove(editSession.liveRowValue.value);\n this._editorSessions.remove(editSession);\n });\n return editSession;\n }\n }\n\n getEditSessionFor(row: Row): EditSession<Row> {\n return this._editorSessionByRowId.get(this.identityOf(row));\n }\n\n cancelAllEditorSessions() {\n this._editorSessions.runInTransaction((draft) => {\n this._rowsBeingEdited.runInTransaction(() => {\n draft.value.forEach(session => session.dispose());\n });\n });\n }\n\n isRowSelectionEnabledFor(column: ColumnModel<Row>): boolean {\n return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();\n }\n\n isRowSelectionEnabled() {\n return this.hasSelectionModel() && !this.rowSelectionDisabledOnAllColumns.value;\n }\n\n hasSelectionModel() {\n return !!this.selectionColumnModel?.selectionModel.getDelegate()\n }\n\n isHoverEnabled(): boolean {\n return this.isRowSelectionEnabled() || this.rowClickListeners.listenerCount > 0;\n }\n\n isCursorEnabled(column: ColumnModel<Row>) {\n return this.isRowSelectionEnabledFor(column) || this.rowClickListeners.listenerCount > 0;\n }\n\n selectRow(row: Row) {\n this.selectionColumnModel?.selectRow(row);\n }\n\n onRowClicked(callback: (row: Row) => void): Disposable {\n return this.rowClickListeners.add(callback);\n }\n\n _notifyCellClicked(columnModel: ColumnModel<Row>, row: Row) {\n if (this.isRowSelectionEnabledFor(columnModel)) {\n this.selectRow(row);\n }\n this.rowClickListeners.fire(l => l(row));\n }\n}\n\n\nTrackExternal.oneTimeBinding(AbstractTableModel);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editors.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/table/cell-editors.ts"],"names":[],"mappings":"","sourcesContent":["import { Form, MutableListModel, MutableValueModel } from '@coolon/pectin';\n\nexport interface CellEditorComponent<T> {\n valueModel: MutableValueModel<T> | Form.ValueModelBase<T>\n\n requestFocus?();\n}\n\nexport interface CellListEditorComponent<T> {\n listModel: MutableListModel<T> | Form.ListModelBase<T>\n\n requestFocus?();\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-portal-ref.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/table/cell-portal-ref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAMtD,MAAM,CAAC,MAAM,2BAA2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;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,cAAc,CAAC,IAAqC,EAAE,WAA6B;QACjF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,WAAW;IACX,gBAAgB,CAAC,IAAqC,EAAE,eAA0B;QAChF,cAAc;IAChB,CAAC;IAED,WAAW;IACX,SAAS,CAAC,IAAqC;QAC7C,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;IAEO,YAAY,CAAC,IAAkB;QACrC,OAAO,IAAI,cAAc,CAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,aAAa,kCAAO,CAAC,IAAI,CAAC,KAAE,SAAS,EAAE,IAAI,CAAC,GAAG,IAAG,CAAC;IAC3G,CAAC;CACF","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { TemplateRef, ViewContainerRef } from '@angular/core';\nimport { Trace } from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { ColumnModel, RowData } from './column-model';\nimport { EditSession } from './edit-session';\nimport { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';\n\nexport const HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');\nexport const CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');\nexport const CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');\nexport const PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');\nexport const PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');\n\n\nexport abstract class CellPortalRef<Row, Host, Portal> {\n constructor() {\n }\n\n abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>)\n\n abstract onPortalAttached(host: Host, portalComponent: Portal);\n}\n\nexport class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellRendererComponent, C> {\n constructor(readonly componentType: ComponentType<C>, readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableHeaderCellRendererComponent, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableHeaderCellRendererComponent, portalComponent: C) {\n this.initialiseHeader(portalComponent, host.column);\n }\n\n}\n\nexport abstract class CellRendererPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n abstract pushState(host: TableCellRendererComponent<Row>): void;\n}\n\nexport class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {\n\n\n constructor(readonly componentType: ComponentType<Portal>, readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_RENDERER_COMPONENT] = portalComponent;\n this.updateComponent(portalComponent, host.getRowData(), true);\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n if (host[PORTAL_RENDERER_COMPONENT]) {\n this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData(), false);\n }\n }\n\n}\n\nexport class CellEditorPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellRendererComponent<Row>, Portal> {\n\n constructor(readonly componentType: ComponentType<Portal>, readonly initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void) {\n super();\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal) {\n host[PORTAL_EDITOR_COMPONENT] = portalComponent;\n this.initialiseEditorSession(portalComponent, host.editSession);\n }\n\n}\n\nexport class TemplateCellRendererPortalRef<Row> extends CellRendererPortalRef<Row, undefined> {\n\n private templateRef: TemplateRef<any>;\n private viewContainer: ViewContainerRef;\n private fillCell: boolean;\n private padChild: boolean;\n\n constructor() {\n super();\n }\n\n public registerPortal(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n this.templateRef = templateRef;\n this.viewContainer = viewContainer;\n this.fillCell = fillCell;\n this.padChild = padChild;\n }\n\n initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>) {\n assert.isTruthy(host);\n }\n\n // @Trace()\n onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: undefined) {\n // don't care\n }\n\n // @Trace()\n pushState(host: TableCellRendererComponent<Row>): void {\n host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());\n host.fillCell = this.fillCell;\n host.padChild = this.padChild;\n }\n\n private createPortal(data: RowData<Row>) {\n return new TemplatePortal<any>(this.templateRef, this.viewContainer, { ...(data), $implicit: data.row });\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/table/cell-renderer.ts"],"names":[],"mappings":"","sourcesContent":["export interface CellRenderer<T> {\n value: T\n}\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version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,CAAC;YAC5B,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACjD,CAAC,CAAC,CAAC,CAAC;QACJ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IACzC,CAAC;IAED,iBAAiB,CAAC,cAAmC;QACnD,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QAChD,IAAI,CAAC,oBAAoB,CAAC,cAAc,YAAY,sBAAsB,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACnH,CAAC;IAES,oBAAoB;QAC5B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,oBAAoB,CAAC,MAAe;QAClC,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAQ;QAChB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjD,CAAC;IAED,UAAU,CAAC,GAAQ;QACjB,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport { TemplateRef, ViewContainerRef } from '@angular/core';\nimport {\n Command,\n DelegatingSelectionModel,\n DelegatingValueModel,\n DirtyTrackingForm, MultipleSelectionModel,\n MutableValueModel,\n SelectionModel,\n Types,\n UnaryCommand,\n Validator,\n ValueModel\n} from '@coolon/pectin';\nimport { assert, Stringy } from '@coolon/typescript-utilities';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport _ from 'lodash';\nimport { CellEditorComponent, CellListEditorComponent } from './cell-editors';\nimport {\n CellEditorPortalRef,\n CellHeaderPortalRef,\n CellRendererPortalRef,\n ComponentCellRendererPortalRef,\n TemplateCellRendererPortalRef\n} from './cell-portal-ref';\nimport { CellRenderer } from './cell-renderer';\nimport { ColumnTextProperties } from './column-text-properties';\nimport { DefaultCellRendererComponent } from './default-cell-renderer/default-cell-renderer.component';\nimport { DefaultHeaderCellRendererComponent } from './default-header-cell-renderer/default-header-cell-renderer.component';\nimport { EditRowControls } from './edit-row-controls/edit-row-controls.component';\nimport { EditSession } from './edit-session';\nimport { MutableCellRenderer } from './mutable-cell-renderer';\nimport { SelectCellRendererComponent } from './select-cell-renderer/select-cell-renderer.component';\nimport { SelectHeaderCellRendererComponent } from './select-header-cell-renderer/select-header-cell-renderer.component';\nimport { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';\n\n\nconst noop = () => {\n};\n\nexport interface RowData<Row> {\n row: Row;\n editSession?: EditSession<Row>;\n editRowCommand: Command<void>;\n}\n\nconst CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');\n\nexport type OnComponentInit<C> = (component: C) => void;\n\nexport interface CellRendererOptions<Row, E> {\n onComponentInit?: (component: E) => void;\n onRowUpdate?: (component: E, row: Row) => void;\n}\n\n\nexport interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {\n onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;\n}\n\nexport class ColumnModel<Row> {\n\n private _columnTextProperties: ColumnTextProperties;\n\n private _columnHeaderPortalRef: CellHeaderPortalRef<Row, any>;\n private _cellRendererPortalRef: CellRendererPortalRef<Row, any>;\n private _cellEditorPortalRef: CellEditorPortalRef<Row, any>;\n\n private _enableRowSelection = true;\n private _flex = false;\n\n private _defaultVisibility = new DelegatingValueModel<boolean>().withDefault(true);\n private _visible = new DelegatingValueModel<boolean>().withDefault(this._defaultVisibility);\n readonly dasherisedColumnId: string;\n\n constructor(readonly columnId: string, private textPropertiesProvider: ColumnModel.TextPropertiesProvider) {\n this.installHeaderRenderer();\n this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();\n }\n\n protected installHeaderRenderer() {\n this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, (component, column) => {\n component.headerText = column.getHeaderText();\n });\n }\n\n @Memoize()\n getHeaderText(): string {\n return this.getColumnTextProperties()?.headerText() || this.getDefaultHeaderText();\n }\n\n isVisible() {\n return this.visible.value;\n }\n\n get visible() {\n return this._visible.readonly;\n }\n\n visibleWhile(visible: ValueModel<boolean>): this {\n this._visible.setDelegate(visible);\n return this;\n }\n\n protected setDefaultVisibility(visible: ValueModel<boolean>) {\n this._defaultVisibility.setDelegate(visible)\n }\n\n protected getDefaultHeaderText() {\n return this.columnId;\n }\n\n @Memoize()\n getColumnTextProperties(): ColumnTextProperties {\n return this._columnTextProperties || this.textPropertiesProvider();\n }\n\n /**\n * @deprecated use #columnTextProperties instead\n * @param columnTextProperties\n */\n textProperties(columnTextProperties: ColumnTextProperties): this {\n return this.columnTextProperties(columnTextProperties)\n }\n\n columnTextProperties(columnTextProperties: ColumnTextProperties): this {\n this._columnTextProperties = columnTextProperties;\n return this;\n }\n\n protected configureHeaderRenderer<C>(config: CellHeaderPortalRef<Row, any>): void {\n this._columnHeaderPortalRef = config;\n }\n\n protected configureCellRenderer<C>(config: CellRendererPortalRef<Row, any>): void {\n this._cellRendererPortalRef = config;\n }\n\n protected configureCellEditor<E>(cellEditor: CellEditorPortalRef<Row, E>): void {\n this._cellEditorPortalRef = cellEditor;\n }\n\n cellHeaderRenderer<C>(componentType: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): this {\n this.configureHeaderRenderer(new CellHeaderPortalRef<Row, C>(componentType, initialiser));\n return this;\n }\n\n flex(flex = true) {\n this._flex = flex;\n }\n\n isFlex() {\n return this._flex;\n }\n\n hasEditorPortal() {\n return !!this._cellEditorPortalRef;\n }\n\n attachHeaderCell(host: any) {\n this._columnHeaderPortalRef.initialiseHost(host, this);\n }\n\n attachCell(host: any) {\n this._cellRendererPortalRef.initialiseHost(host, this);\n if (this.hasEditorPortal()) {\n this._cellEditorPortalRef.initialiseHost(host, this);\n }\n }\n\n onHeaderAttached(host: TableHeaderCellRendererComponent, component: any) {\n this._columnHeaderPortalRef.onPortalAttached(host, component);\n }\n\n onRendererAttached(host: TableCellRendererComponent<Row>, component: any) {\n this._cellRendererPortalRef.onPortalAttached(host, component);\n }\n\n // @Trace()\n onEditorAttached(host: TableCellRendererComponent<Row>, component: any) {\n this._cellEditorPortalRef.onPortalAttached(host, component);\n }\n\n updatePortalContent(host: TableCellRendererComponent<Row>) {\n this._cellRendererPortalRef.pushState(host);\n }\n\n protected _selectRowOnClick(selectRowOnClick: boolean): this {\n this._enableRowSelection = selectRowOnClick;\n return this;\n }\n\n isRowSelectionEnabled(): boolean {\n return this._enableRowSelection;\n }\n}\n\nexport namespace ColumnModel {\n export type TextPropertiesProvider = () => ColumnTextProperties\n}\n\n\nexport class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {\n\n\n private _format: (value: Row[P]) => any = (value) => value;\n\n constructor(id: string, readonly property: P, defaults: ColumnModel.TextPropertiesProvider) {\n super(id, defaults);\n this.cellRenderer(DefaultCellRendererComponent);\n }\n\n cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): this\n cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): this\n cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInitOrOptions?: CellRendererOptions<Row, E> | OnComponentInit<E>): this {\n this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {\n if (firstTime) {\n if (_.isFunction(onComponentInitOrOptions)) {\n onComponentInitOrOptions(component);\n } else {\n if (_.isFunction(onComponentInitOrOptions?.onComponentInit)) {\n onComponentInitOrOptions.onComponentInit(component);\n }\n }\n }\n component.value = this._format(rowData.row[this.property]);\n\n if (!_.isFunction(onComponentInitOrOptions) && _.isFunction(onComponentInitOrOptions?.onRowUpdate)) {\n onComponentInitOrOptions.onRowUpdate(component, rowData.row);\n }\n }));\n return this;\n }\n\n liveEditCellRenderer<E extends MutableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this {\n return this.mutableCellRenderer(componentType, options);\n }\n\n /**\n * Deprecated. Use #liveEditCellRenderer instead.\n * @param componentType\n * @param options\n */\n mutableCellRenderer<E extends MutableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this {\n\n this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {\n\n // keep a local copy most recent row value so it's available to teh\n // edit callback without having to add/remove subscribers all the time.\n component[CELL_RENDERER_COMPONENT_ROW_CACHE] = rowData.row;\n let disableEditCallback = false;\n\n if (firstTime) {\n if (_.isFunction(options?.onComponentInit)) {\n options.onComponentInit(component);\n }\n // install our edit callback\n component.onValueEdited((is, was) => {\n if (!disableEditCallback) {\n options.onValueEdit(component[CELL_RENDERER_COMPONENT_ROW_CACHE], is, was);\n }\n });\n\n }\n\n // now push the value the component and disable the callback just incase the component misbehaves\n // and fires a value change during the operation.\n disableEditCallback = true;\n component.value = rowData.row[this.property];\n disableEditCallback = false;\n\n if (!_.isFunction(options) && _.isFunction(options?.onRowUpdate)) {\n options.onRowUpdate(component, rowData.row);\n }\n\n }));\n return this;\n }\n\n cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this\n cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this\n cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validatorsOrInitialiser?: Validator<Row[P]>[] | ((component: E) => void), onComponentInit?: (component: E) => void): this {\n const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;\n const initialiser = _.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : onComponentInit;\n this.configureCellEditor(new CellEditorPortalRef(editor, (component: E, editSession: EditSession<Row>) => {\n const formValueModel = editSession.form.pluck(this.property);\n if (validators) {\n formValueModel.validateUsing(validators);\n }\n component.valueModel = formValueModel;\n if (initialiser) {\n initialiser(component);\n }\n }));\n return this;\n }\n\n format(formatter: (value: Row[P]) => any): this {\n assert.isFunction(formatter);\n this._format = formatter;\n return this;\n }\n\n public selectRowOnClick(selectOnRowClick: boolean): this {\n return this._selectRowOnClick(selectOnRowClick);\n }\n\n}\n\nexport class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {\n\n private _format: (value: Types.ArrayElementType<Row, P>[]) => any = (value) => value.map(v => v?.toString()).join(', ');\n\n constructor(id: string, readonly property: P, defaults: ColumnModel.TextPropertiesProvider) {\n super(id, defaults);\n this.cellRenderer(DefaultCellRendererComponent);\n }\n\n cellRenderer(componentType: ComponentType<{ value: Types.ArrayElementType<Row, P>[] }>): this {\n this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {\n component.value = this._format(rowData.row[this.property]);\n }));\n return this;\n }\n\n cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, validators?: Validator<Types.ArrayElementType<Row, P>[]>[], initialiseComponent?: (component: C) => void): this\n cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, initialiseComponent?: (component: C) => void): this\n cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, validatorsOrInitialiser?: Validator<Types.ArrayElementType<Row, P>[]>[] | ((component: C) => void), initialiseComponent?: (component: C) => void): this {\n const validators = Array.isArray(validatorsOrInitialiser) ? validatorsOrInitialiser : undefined;\n const initialiser = _.isFunction(validatorsOrInitialiser) ? validatorsOrInitialiser : initialiseComponent;\n\n this.configureCellEditor(new CellEditorPortalRef(editor, (component: C, editSession: EditSession<Row>) => {\n const formListModel = editSession.form.pluckList(this.property);\n if (validators) {\n formListModel.validateUsing(validators);\n }\n component.listModel = formListModel;\n if (initialiser) {\n initialiser(component);\n }\n }));\n return this;\n }\n\n format(formatter: (value: Types.ArrayElementType<Row, P>[]) => any): this {\n assert.isFunction(formatter);\n this._format = formatter;\n return this;\n }\n\n public selectRowOnClick(selectRowOnClick: boolean): this {\n return this._selectRowOnClick(selectRowOnClick);\n }\n\n}\n\nexport class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {\n constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, private getValue: (row: Row) => V) {\n super(columnId, defaults);\n this.cellRenderer(DefaultCellRendererComponent);\n }\n\n cellRenderer<C extends { value: V }>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this {\n this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {\n if (firstTime) {\n if (_.isFunction(onComponentInitOrOptions)) {\n onComponentInitOrOptions(component);\n } else {\n if (_.isFunction(onComponentInitOrOptions?.onComponentInit)) {\n onComponentInitOrOptions.onComponentInit(component);\n }\n }\n }\n component.value = this.getValue(rowData.row);\n\n if (!_.isFunction(onComponentInitOrOptions) && _.isFunction(onComponentInitOrOptions?.onRowUpdate)) {\n onComponentInitOrOptions.onRowUpdate(component, rowData.row);\n }\n }));\n return this;\n }\n\n public selectRowOnClick(selectOnRowClick: boolean): this {\n return this._selectRowOnClick(selectOnRowClick);\n }\n\n}\n\nexport class EditorControlColumnModel<Row> extends ColumnModel<Row> {\n\n constructor(columnId: string, saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>, defaults: ColumnModel.TextPropertiesProvider) {\n super(columnId, defaults);\n this.cellRenderer(EditRowControls);\n }\n\n cellRenderer(componentType: ComponentType<{ row: Row, editSession: EditSession<Row>, editRowCommand: Command<void> }>): this {\n this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData: RowData<Row>) => {\n component.row = rowData.row;\n component.editSession = rowData.editSession;\n component.editRowCommand = rowData.editRowCommand;\n }));\n return this;\n }\n\n protected getDefaultHeaderText(): string {\n return '';\n }\n}\n\nexport class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {\n private readonly config = new TemplateCellRendererPortalRef<Row>();\n\n constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider) {\n super(columnId, defaults);\n this.configureCellRenderer(this.config);\n }\n\n setTemplate(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n this.config.registerPortal(templateRef, viewContainer, fillCell, padChild);\n }\n\n public selectRowOnClick(selectOnRowClick: boolean): this {\n return this._selectRowOnClick(selectOnRowClick);\n }\n\n}\n\nexport class SelectionColumnModel<Row> extends ColumnModel<Row> {\n\n private _enableHeaderControls = true;\n readonly selectionModel = DelegatingSelectionModel.createDelegate<Row, unknown>();\n\n constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: SelectionModel<Row>) {\n super(columnId, defaults);\n this._selectRowOnClick(false);\n this.cellHeaderRenderer(SelectHeaderCellRendererComponent, (component) => {\n component.selectionModel = this.selectionModel;\n component.enableHeaderControls = this._enableHeaderControls;\n });\n this.configureCellRenderer(new ComponentCellRendererPortalRef(SelectCellRendererComponent, (component, rowData: RowData<Row>) => {\n component.row = rowData.row;\n component.selectionModel = this.selectionModel;\n }));\n this.setSelectionModel(selectionModel);\n }\n\n setSelectionModel(selectionModel: SelectionModel<Row>) {\n this.selectionModel.setDelegate(selectionModel);\n this.setDefaultVisibility(selectionModel instanceof MultipleSelectionModel ? ValueModel.TRUE : ValueModel.FALSE);\n }\n\n protected getDefaultHeaderText(): string {\n return '';\n }\n\n enableHeaderControls(enable: boolean): this {\n this._enableHeaderControls = enable;\n return this;\n }\n\n selectRow(row: Row) {\n this.selectionModel.selectCommand.execute(row);\n }\n\n isSelected(row: Row) {\n return this.selectionModel.isSelected(row);\n }\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-template.directive.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/column-template/column-template.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,MAAM,OAAO,uBAAuB;IAclC,YAAqB,IAAyB,EAC1B,WAA6B,EAC7B,aAA+B;QAF9B,SAAI,GAAJ,IAAI,CAAqB;QAC1B,gBAAW,GAAX,WAAW,CAAkB;QAC7B,kBAAa,GAAb,aAAa,CAAkB;QAPnD,8BAAyB,GAAG,KAAK,CAAC;QAGlC,kCAA6B,GAAG,SAAS,CAAC;IAK1C,CAAC;IAED,QAAQ;;QACN,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAChD,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,yBAAyB,EAC7D,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,yBAAyB,EAC9B,MAAA,IAAI,CAAC,6BAA6B,mCAAI,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC1E,CAAC;;;YA7BF,SAAS,SAAC;gBACT,QAAQ,EAAE,qBAAqB;aAChC;;;YAJQ,cAAc;YAFY,WAAW;YAAE,gBAAgB;;;gCAS7D,KAAK;wCAGL,KAAK;wCAGL,KAAK;4CAGL,KAAK","sourcesContent":["import { Directive, Input, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { assert } from '@coolon/pectin';\nimport { TableComponent } from '../table.component';\n\n@Directive({\n selector: '[aupColumnTemplate]'\n})\nexport class ColumnTemplateDirective implements OnInit {\n\n @Input()\n aupColumnTemplate: string;\n\n @Input()\n aupColumnTemplateColumnId: string;\n\n @Input()\n aupColumnTemplateFillCell = false;\n\n @Input()\n aupColumnTemplateAutoPadChild = undefined;\n\n constructor(readonly host: TableComponent<any>,\n private templateRef: TemplateRef<any>,\n private viewContainer: ViewContainerRef) {\n }\n\n ngOnInit() {\n assert.isTruthy(this.aupColumnTemplateColumnId);\n this.host.registerColumnTemplate(this.aupColumnTemplateColumnId,\n this.templateRef,\n this.viewContainer,\n this.aupColumnTemplateFillCell,\n this.aupColumnTemplateAutoPadChild ?? this.aupColumnTemplateFillCell);\n }\n\n}\n"]}
|
package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-template.directive.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/column-template/column-template.directive.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-text-properties.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/table/column-text-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface ColumnTextProperties {\n headerText?(): string;\n}\n"]}
|
package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-cell-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-cell-renderer/default-cell-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOjD,MAAM,OAAO,4BAA4B;IAYvC;IACA,CAAC;IAVD,IACI,KAAK,CAAC,KAAQ;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;;;YAfF,SAAS,SAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,+DAAqD;;aAEtD;;;;oBAIE,KAAK","sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'aup-default-cell-renderer',\n templateUrl: './default-cell-renderer.component.html',\n styleUrls: ['./default-cell-renderer.component.scss']\n})\nexport class DefaultCellRendererComponent<T> {\n private _value: T;\n\n @Input()\n set value(value: T) {\n this._value = value;\n }\n\n get value(): T {\n return this._value;\n }\n\n constructor() {\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-cell-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-cell-renderer.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-header-cell-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOjD,MAAM,OAAO,kCAAkC;IAK7C;IACA,CAAC;;;YAXF,SAAS,SAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,4BAA4D;;aAE7D;;;;yBAGE,KAAK","sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'aup-default-header-renderer',\n templateUrl: './default-header-cell-renderer.component.html',\n styleUrls: ['./default-header-cell-renderer.component.scss']\n})\nexport class DefaultHeaderCellRendererComponent {\n\n @Input()\n headerText: string;\n\n constructor() {\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-header-cell-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-header-cell-renderer.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-row-controls.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/edit-row-controls/edit-row-controls.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAoC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,OAAO,EAAkC,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAQ9C,MAAM,OAAO,eAAqB,SAAQ,mBAAmB;IAe3D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE;YACrC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;iBACxD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjB,IAAI,QAAQ,EAAE;oBACZ,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;iBAC5B;YACH,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE;YACvC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;IACR,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,CAAC;IAChC,CAAC;;;YAxCF,SAAS,SAAC;gBACT,QAAQ,EAAE,yBAAyB;gBACnC,yaAAiD;;aAElD;;;;kBAGE,KAAK;6BAGL,KAAK;0BAIL,KAAK;;AAFN;IADC,aAAa,EAAE;8BACA,OAAO;uDAAM","sourcesContent":["import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';\nimport { Command, DirtyTrackingForm, Form, Trace, TrackExternal } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { EditSession } from '../edit-session';\nimport { TableModel } from '../table-model';\n\n@Component({\n selector: 'aup-row-editor-controls',\n templateUrl: './edit-row-controls.component.html',\n styleUrls: ['./edit-row-controls.component.scss']\n})\nexport class EditRowControls<Row> extends DisposableComponent implements OnInit {\n\n @Input()\n row: Row\n\n @Input()\n @TrackExternal()\n editRowCommand: Command<void>\n\n @Input()\n editSession: EditSession<Row>;\n\n readonly saveCommand: Command<void>;\n readonly cancelCommand: Command<void>;\n\n constructor() {\n super();\n this.saveCommand = Command.create(() => {\n this.editSession.saveCommand.execute(this.editSession.form)\n .then((finished) => {\n if (finished) {\n this.editSession.dispose();\n }\n });\n });\n this.cancelCommand = Command.create(() => {\n this.editSession.dispose();\n });\n }\n\n ngOnInit(): void {\n }\n\n get form(): DirtyTrackingForm<Row> {\n return this.editSession?.form;\n }\n\n}\n"]}
|
package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"EditRowControls":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":11,"character":42},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"aup-row-editor-controls","template":"<button *ngIf=\"!editSession\" mat-icon-button [pectinCommand]=\"editRowCommand\" class=\"edit-button\"><aup-icon icon=\"mat:edit\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"saveCommand\"><aup-icon icon=\"mat:done\"></aup-icon></button>\n<button *ngIf=\"editSession\" mat-icon-button [pectinCommand]=\"cancelCommand\"><aup-icon icon=\"mat:clear\"></aup-icon></button>\n","styles":[":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"editRowCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":17,"character":3}}]}],"editSession":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-row-controls.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|