@coolon/angular-ui-powerups 1.10.0 → 1.11.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/CHANGELOG.md +14 -0
- package/assets/styles.scss +7 -67
- package/bundles/coolon-angular-ui-powerups.umd.js +2649 -1623
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +57 -44
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +55 -42
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +37 -6
- 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/forms/abstract-input-activity.js +47 -0
- package/esm2015/lib/components/forms/abstract-input-activity.js.map +1 -0
- package/esm2015/lib/components/forms/abstract-input-activity.metadata.json +1 -0
- package/esm2015/lib/components/forms/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/abstract-input.component.js +6 -1
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input-activity.js +22 -0
- package/esm2015/lib/components/forms/string-input/string-input-activity.js.map +1 -0
- package/esm2015/lib/components/forms/string-input/string-input-activity.metadata.json +1 -0
- package/esm2015/lib/components/forms/string-input/string-input-activity.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +13 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/cell-editor.component.js +1 -0
- package/esm2015/lib/components/table/cell-editor.component.js.map +1 -0
- package/esm2015/lib/components/table/cell-editor.component.metadata.json +1 -0
- package/esm2015/lib/components/table/cell-renderer.js +1 -0
- package/esm2015/lib/components/table/cell-renderer.js.map +1 -0
- package/esm2015/lib/components/table/cell-renderer.metadata.json +1 -0
- package/esm2015/lib/components/table/column-model.js +160 -0
- package/esm2015/lib/components/table/column-model.js.map +1 -0
- package/esm2015/lib/components/table/column-model.metadata.json +1 -0
- package/esm2015/lib/components/table/column-template/column-template.directive.js +24 -0
- package/esm2015/lib/components/table/column-template/column-template.directive.js.map +1 -0
- package/esm2015/lib/components/table/column-template/column-template.directive.metadata.json +1 -0
- package/esm2015/lib/components/table/column-template/column-template.directive.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/column-text-properties.js +1 -0
- package/esm2015/lib/components/table/column-text-properties.js.map +1 -0
- package/esm2015/lib/components/table/column-text-properties.metadata.json +1 -0
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +27 -0
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +21 -0
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js +50 -0
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -0
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -0
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +40 -0
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +32 -0
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +64 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/table-def.js +1 -0
- package/esm2015/lib/components/table/table-def.js.map +1 -0
- package/esm2015/lib/components/table/table-def.metadata.json +1 -0
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +32 -0
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -0
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/table/table-model.js +197 -0
- package/esm2015/lib/components/table/table-model.js.map +1 -0
- package/esm2015/lib/components/table/table-model.metadata.json +1 -0
- package/esm2015/lib/components/table/table.component.js +60 -0
- package/esm2015/lib/components/table/table.component.js.map +1 -0
- package/esm2015/lib/components/table/table.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/table.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/activity.js +7 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +87 -0
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -0
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js +86 -0
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -0
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.metadata.json +1 -0
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/index.js +2 -0
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/index.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +12 -3
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +55 -42
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/components/components.module.js +37 -6
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input-activity.js +50 -0
- package/esm5/lib/components/forms/abstract-input-activity.js.map +1 -0
- package/esm5/lib/components/forms/abstract-input-activity.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/abstract-input.component.js +6 -1
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm5/lib/components/forms/string-input/string-input-activity.js +18 -0
- package/esm5/lib/components/forms/string-input/string-input-activity.js.map +1 -0
- package/esm5/lib/components/forms/string-input/string-input-activity.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/string-input/string-input.component.js +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm5/lib/components/index.js +13 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/cell-editor.component.js +1 -0
- package/esm5/lib/components/table/cell-editor.component.js.map +1 -0
- package/esm5/lib/components/table/cell-renderer.js +1 -0
- package/esm5/lib/components/table/cell-renderer.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +196 -0
- package/esm5/lib/components/table/column-model.js.map +1 -0
- package/esm5/lib/components/table/column-template/column-template.directive.js +25 -0
- package/esm5/lib/components/table/column-template/column-template.directive.js.map +1 -0
- package/esm5/lib/components/table/column-template/column-template.directive.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/column-text-properties.js +1 -0
- package/esm5/lib/components/table/column-text-properties.js.map +1 -0
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +32 -0
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +22 -0
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js +57 -0
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -0
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js +47 -0
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/select-cell-renderer/select-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +35 -0
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +66 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/table-def.js +1 -0
- package/esm5/lib/components/table/table-def.js.map +1 -0
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +33 -0
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -0
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/table/table-model.js +213 -0
- package/esm5/lib/components/table/table-model.js.map +1 -0
- package/esm5/lib/components/table/table.component.js +62 -0
- package/esm5/lib/components/table/table.component.js.map +1 -0
- package/esm5/lib/components/table/table.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/table.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/activity.js +7 -2
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +95 -0
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -0
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js +90 -0
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -0
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/index.js +2 -0
- package/esm5/lib/interaction/index.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +12 -3
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +2280 -1372
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +2561 -1567
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input-activity.d.ts +18 -0
- package/lib/components/forms/abstract-input.component.d.ts +1 -0
- package/lib/components/forms/string-input/string-input-activity.d.ts +3 -0
- package/lib/components/index.d.ts +17 -0
- package/lib/components/table/cell-editor.component.d.ts +5 -0
- package/lib/components/table/cell-renderer.d.ts +3 -0
- package/lib/components/table/column-model.d.ts +84 -0
- package/lib/components/table/column-template/column-template.directive.d.ts +7 -0
- package/lib/components/table/column-text-properties.d.ts +3 -0
- package/lib/components/table/default-cell-renderer/default-cell-renderer.component.d.ts +6 -0
- package/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +5 -0
- package/lib/components/table/edit-row-controls/edit-row-controls.component.d.ts +14 -0
- package/lib/components/table/select-cell-renderer/select-cell-renderer.component.d.ts +11 -0
- package/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.d.ts +9 -0
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +18 -0
- package/lib/components/table/table-def.d.ts +7 -0
- package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +8 -0
- package/lib/components/table/table-model.d.ts +114 -0
- package/lib/components/table/table.component.d.ts +40 -0
- package/lib/interaction/activity.d.ts +1 -0
- package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +21 -0
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +17 -0
- package/lib/interaction/index.d.ts +2 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract-input-activity.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input-activity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAA6B,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAsB,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAehF;IAA8C,yCAAiC;IAQ7E,+BAA4C,IAA0B;QAAtE,YACE,iBAAO,SAmBR;QApB2C,UAAI,GAAJ,IAAI,CAAsB;QAFhD,WAAK,GAAG,oBAAoB,CAAC;QAKjD,IAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,KAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAI,KAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7D,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QAErD,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;YACnC,IAAI,KAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE;gBAC9B,IAAI,IAAI,CAAC,IAAI,EAAE;oBACb,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAI,CAAC,UAAU,EAAE,KAAI,CAAC,kBAAkB,CAAC,CAAC;yBACxE,IAAI,CAAC,cAAM,OAAA,KAAI,CAAC,IAAI,EAAE,EAAX,CAAW,CAAC,CAAA;iBAC3B;qBAAM;oBACL,KAAI,CAAC,IAAI,CAAC,KAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;iBAClC;aACF;QACH,CAAC,CAAC,CAAC;QACH,KAAI,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;YAClC,KAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;;IACL,CAAC;IAED,+CAAe,GAAf;QACE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IAC9C,CAAC;;gDAxBY,MAAM,SAAC,aAAa;;IAFX;QAArB,WAAW,CAAC,OAAO,CAAC;;wDAA8B;IANxC,qBAAqB;QAHjC,SAAS,CAAC;YACT,QAAQ,EAAE,EAAE;SACb,CAAC;QASa,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;;OARvB,qBAAqB,CAkCjC;IAAD,4BAAC;CAAA,AAlCD,CAA8C,QAAQ,GAkCrD;SAlCY,qBAAqB","sourcesContent":["import { Component, HostBinding, Inject } from '@angular/core';\nimport { Command, Form, FormValueModel, Validator } from '@coolon/pectin';\nimport { InteractionContext, Activity, ACTIVITY_DATA } from '../../interaction';\n\n\nexport interface InputActivityData<T> {\n label?: string;\n placeholder?: string;\n initialValue: T;\n validators?: Validator<T>[]\n\n save?(valueModel: FormValueModel<T>, interactionContext?: InteractionContext): void | Promise<unknown>\n}\n\n@Component({\n template: ``\n})\nexport class AbstractInputActivity<T> extends Activity<InputActivityData<T>, T> {\n\n readonly confirmCommand: Command<void>;\n readonly cancelCommand: Command<void>;\n readonly valueModel: FormValueModel<T>;\n\n @HostBinding('class') class = 'aup-input-activity';\n\n constructor(@Inject(ACTIVITY_DATA) readonly data: InputActivityData<T>) {\n super();\n\n const form = new Form();\n this.valueModel = form.valueModel<T>(this.data.initialValue);\n this.valueModel.validateUsing(data.validators || []);\n\n this.confirmCommand = Command.create(() => {\n if (this.valueModel.validate()) {\n if (data.save) {\n return Promise.resolve(data.save(this.valueModel, this.interactionContext))\n .then(() => this.done())\n } else {\n this.done(this.valueModel.value);\n }\n }\n });\n this.cancelCommand = Command.create(() => {\n this.cancel();\n });\n }\n\n onActivityReady() {\n this.valueModel.focusContext.requestFocus();\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract-input-activity.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input-activity.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
2
|
/* tslint:disable:no-input-rename */
|
|
3
|
-
import { Component, EventEmitter, HostListener, Input, Output } from '@angular/core';
|
|
3
|
+
import { Component, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core';
|
|
4
4
|
import { Command, DelegatingFormValueModel } from '@coolon/pectin';
|
|
5
5
|
import { DisposableComponent } from '../disposable-component';
|
|
6
6
|
var AbstractInputComponent = /** @class */ (function (_super) {
|
|
@@ -28,6 +28,7 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
28
28
|
_this.enterKey = new EventEmitter();
|
|
29
29
|
// tslint:disable-next-line:no-output-native
|
|
30
30
|
_this.escapeKey = new EventEmitter();
|
|
31
|
+
_this.baseClassName = 'aup-input-component';
|
|
31
32
|
var self = _this;
|
|
32
33
|
_this.errorStateMatcher = {
|
|
33
34
|
isErrorState: function (control, form) {
|
|
@@ -141,6 +142,10 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
141
142
|
Output(),
|
|
142
143
|
__metadata("design:type", Object)
|
|
143
144
|
], AbstractInputComponent.prototype, "escapeKey", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
HostBinding('class'),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], AbstractInputComponent.prototype, "baseClassName", void 0);
|
|
144
149
|
__decorate([
|
|
145
150
|
HostListener('click'),
|
|
146
151
|
__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input.component.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input.component.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAG1G,OAAO,EAAE,OAAO,EAAE,wBAAwB,EAAyB,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D;IAA+C,0CAAmB;IA2EhE;QAAA,YACE,iBAAO,SAOR;QAjFD;;;;;;;;;WASG;QACD,0FAA0F;QACnF,8BAAwB,GAAG,KAAI,CAAC,kBAAkB,CAAC,IAAI,wBAAwB,EAAK,CAAC,CAAC;QAc/F,kBAAkB;QAClB,4CAA4C;QAClC,WAAK,GAAG,IAAI,YAAY,EAAE,CAAC;QACrC,4CAA4C;QAClC,UAAI,GAAG,IAAI,Y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Y,CAAC,UAAU,CAAC;;;;gEAIxB;IAzDU,sBAAsB;QADlC,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;;OACf,sBAAsB,CA6GlC;IAAD,6BAAC;CAAA,AA7GD,CAA+C,mBAAmB,GA6GjE;SA7GY,sBAAsB","sourcesContent":["/* tslint:disable:no-input-rename */\nimport { Component, EventEmitter, HostBinding, HostListener, Input, OnInit, Output } from '@angular/core';\nimport { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { Command, DelegatingFormValueModel, ListModel, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n@Component({ template: '' })\nexport class AbstractInputComponent<T> extends DisposableComponent implements OnInit {\n\n /**\n * A backing model for all our @Input() valueModel properties which should be defined as follows.\n *\n * @Input() @TrackExternal({useExisting: \"delegatingFormValueModel\"})\n * valueModel: FormValueModel<string> | MutableValueModel<string>;\n *\n * This approach allows the input to accept plain or form models but all backed by a form\n * friendly delegate. We have to use an existing delegate for union types as pectin just\n * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).\n */\n // We have to register it as a disposable so it ditches any listeners when we're disposed.\n readonly delegatingFormValueModel = this.registerDisposable(new DelegatingFormValueModel<T>());\n\n @Input() label: string;\n @Input() floatLabel: 'auto' | 'always' | 'never';\n @Input() hint: string;\n @Input() placeholder: string;\n\n // Note: I don't need to use delegates here as I never subscribe to the commands models\n @Input('command.focus') focusCommand: Command<any>;\n @Input('command.blur') blurCommand: Command<any>;\n @Input('command.enter') enterCommand: Command<any>;\n @Input('command.escape') escapeCommand: Command<any>;\n @Input('command.click') clickCommand: Command<any>;\n\n // TODO: fix this.\n // tslint:disable-next-line:no-output-native\n @Output() focus = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() blur = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() enterKey = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() escapeKey = new EventEmitter();\n\n readonly errorStateMatcher: ErrorStateMatcher;\n\n @HostBinding('class')\n baseClassName = 'aup-input-component'\n\n @HostListener('click')\n notifyClick() {\n this.safelyInvoke(this.clickCommand);\n }\n\n @HostListener('focusin')\n notifyFocusIn() {\n this.safelyInvoke(this.focusCommand);\n this.focus.emit();\n }\n\n @HostListener('focusout')\n notifyFocusOut() {\n this.safelyInvoke(this.blurCommand);\n this.blur.emit();\n }\n\n notifyEnterKey() {\n this.safelyInvoke(this.enterCommand);\n this.enterKey.emit();\n }\n\n notifyEscapeKey() {\n this.safelyInvoke(this.escapeCommand);\n this.escapeKey.emit();\n }\n\n protected safelyInvoke(command: Command<any>) {\n if (command && command.enabled.value) {\n command.execute();\n }\n }\n\n constructor() {\n super();\n const self = this;\n this.errorStateMatcher = {\n isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n return self.hasErrors();\n }\n };\n }\n\n ngOnInit(): void {\n }\n\n isEnabled(): boolean {\n return this.enabled.value;\n }\n\n get enabled(): ValueModel<boolean> {\n return this.delegatingFormValueModel.enabled;\n }\n\n hasErrors(): boolean {\n return !this.errorList.query().isEmpty();\n }\n\n get errorList(): ListModel<string> {\n return this.delegatingFormValueModel.errorList;\n }\n\n get firstError() {\n return this.hasErrors() ? this.errorList.value[0] : null;\n }\n\n\n}\n"]}
|
|
@@ -28,7 +28,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
|
|
|
28
28
|
Component({
|
|
29
29
|
selector: 'aup-number-input',
|
|
30
30
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel?.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
31
|
-
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
31
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}:host-context(aup-table-cell-renderer) mat-form-field div.mat-form-field-infix{width:auto}"]
|
|
32
32
|
}),
|
|
33
33
|
__metadata("design:paramtypes", [])
|
|
34
34
|
], NumberInputComponent);
|
|
@@ -17,7 +17,7 @@ var PasswordInputComponent = /** @class */ (function (_super) {
|
|
|
17
17
|
Component({
|
|
18
18
|
selector: 'aup-password-input',
|
|
19
19
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
20
|
-
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
20
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}:host-context(aup-table-cell-renderer) mat-form-field div.mat-form-field-infix{width:auto}"]
|
|
21
21
|
}),
|
|
22
22
|
__metadata("design:paramtypes", [])
|
|
23
23
|
], PasswordInputComponent);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { AbstractInputActivity } from '../abstract-input-activity';
|
|
4
|
+
var StringInputActivity = /** @class */ (function (_super) {
|
|
5
|
+
__extends(StringInputActivity, _super);
|
|
6
|
+
function StringInputActivity() {
|
|
7
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
+
}
|
|
9
|
+
StringInputActivity = __decorate([
|
|
10
|
+
Component({
|
|
11
|
+
selector: 'aup-string-input-activity',
|
|
12
|
+
template: "\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions align=\"end\"\n [confirmCommand]=\"confirmCommand\"\n [cancelCommand]=\"cancelCommand\"></aup-activity-actions>\n "
|
|
13
|
+
})
|
|
14
|
+
], StringInputActivity);
|
|
15
|
+
return StringInputActivity;
|
|
16
|
+
}(AbstractInputActivity));
|
|
17
|
+
export { StringInputActivity };
|
|
18
|
+
//# sourceMappingURL=string-input-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-input-activity.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/string-input/string-input-activity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAgBnE;IAAyC,uCAA6B;IAAtE;;IACA,CAAC;IADY,mBAAmB;QAb/B,SAAS,CAAC;YACT,QAAQ,EAAE,2BAA2B;YACrC,QAAQ,EAAE,seAST;SACF,CAAC;OACW,mBAAmB,CAC/B;IAAD,0BAAC;CAAA,AADD,CAAyC,qBAAqB,GAC7D;SADY,mBAAmB","sourcesContent":["import { Component } from '@angular/core';\nimport { AbstractInputActivity } from '../abstract-input-activity';\n\n\n@Component({\n selector: 'aup-string-input-activity',\n template: `\n <aup-string-input [valueModel]=\"valueModel\"\n [label]=\"data.label\"\n [placeholder]=\"data.placeholder\"\n [command.enter]=\"confirmCommand\"\n [command.escape]=\"cancelCommand\"></aup-string-input>\n <aup-activity-actions align=\"end\"\n [confirmCommand]=\"confirmCommand\"\n [cancelCommand]=\"cancelCommand\"></aup-activity-actions>\n `\n})\nexport class StringInputActivity extends AbstractInputActivity<string> {\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-input-activity.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/string-input/string-input-activity.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -31,7 +31,7 @@ var StringInputComponent = /** @class */ (function (_super) {
|
|
|
31
31
|
Component({
|
|
32
32
|
selector: 'aup-string-input',
|
|
33
33
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
|
|
34
|
-
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}"]
|
|
34
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}:host-context(aup-table-cell-renderer) mat-form-field div.mat-form-field-infix{width:auto}button[disabled]{visibility:hidden}"]
|
|
35
35
|
}),
|
|
36
36
|
__metadata("design:paramtypes", [])
|
|
37
37
|
], StringInputComponent);
|
|
@@ -28,7 +28,7 @@ var TextInputComponent = /** @class */ (function (_super) {
|
|
|
28
28
|
Component({
|
|
29
29
|
selector: 'aup-text-input',
|
|
30
30
|
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
31
|
-
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
31
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}:host-context(aup-table-cell-renderer) mat-form-field div.mat-form-field-infix{width:auto}button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
32
32
|
}),
|
|
33
33
|
__metadata("design:paramtypes", [])
|
|
34
34
|
], TextInputComponent);
|
|
@@ -7,16 +7,29 @@ export * from "./focusable.component";
|
|
|
7
7
|
export * from "./resize-aware.component";
|
|
8
8
|
export * from "./card-container/card-container.component";
|
|
9
9
|
export * from "./focus-container/focus-container.component";
|
|
10
|
+
export * from "./forms/abstract-input-activity";
|
|
10
11
|
export * from "./forms/abstract-input.component";
|
|
11
12
|
export * from "./forms/checkbox-input/checkbox-input.component";
|
|
12
13
|
export * from "./forms/number-input/number-input.component";
|
|
13
14
|
export * from "./forms/password-input/password-input.component";
|
|
14
15
|
export * from "./forms/select-input/select-input.component";
|
|
16
|
+
export * from "./forms/string-input/string-input-activity";
|
|
15
17
|
export * from "./forms/string-input/string-input.component";
|
|
16
18
|
export * from "./forms/text-input/text-input.component";
|
|
17
19
|
export * from "./noop/noop.component";
|
|
18
20
|
export * from "./scroll-container/scroll-container.component";
|
|
19
21
|
export * from "./switch-case/switch-case.component";
|
|
22
|
+
export * from "./table/column-model";
|
|
23
|
+
export * from "./table/table-model";
|
|
24
|
+
export * from "./table/table.component";
|
|
25
|
+
export * from "./table/column-template/column-template.directive";
|
|
26
|
+
export * from "./table/default-cell-renderer/default-cell-renderer.component";
|
|
27
|
+
export * from "./table/default-header-cell-renderer/default-header-cell-renderer.component";
|
|
28
|
+
export * from "./table/edit-row-controls/edit-row-controls.component";
|
|
29
|
+
export * from "./table/select-cell-renderer/select-cell-renderer.component";
|
|
30
|
+
export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
31
|
+
export * from "./table/table-cell-renderer/table-cell-renderer.component";
|
|
32
|
+
export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
20
33
|
export * from "./types/bounds.class";
|
|
21
34
|
export * from "./types/dimension.class";
|
|
22
35
|
export * from "./types/point.class";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cA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C;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./focusable.component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./card-container/card-container.component\";\nexport * from \"./focus-container/focus-container.component\";\nexport * from \"./forms/abstract-input-activity\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/checkbox-input/checkbox-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input-activity\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./forms/text-input/text-input.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./table/cell-editor.component\";\nexport * from \"./table/cell-renderer\";\nexport * from \"./table/column-model\";\nexport * from \"./table/column-text-properties\";\nexport * from \"./table/table-def\";\nexport * from \"./table/table-model\";\nexport * from \"./table/table.component\";\nexport * from \"./table/column-template/column-template.directive\";\nexport * from \"./table/default-cell-renderer/default-cell-renderer.component\";\nexport * from \"./table/default-header-cell-renderer/default-header-cell-renderer.component\";\nexport * from \"./table/edit-row-controls/edit-row-controls.component\";\nexport * from \"./table/select-cell-renderer/select-cell-renderer.component\";\nexport * from \"./table/select-header-cell-renderer/select-header-cell-renderer.component\";\nexport * from \"./table/table-cell-renderer/table-cell-renderer.component\";\nexport * from \"./table/table-header-cell-renderer/table-header-cell-renderer.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\nexport * from \"./vertical-focus-container/vertical-focus-container.component\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=cell-editor.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-editor.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/cell-editor.component.ts"],"names":[],"mappings":"","sourcesContent":["import { FormValueModel, ValueModel } from '@coolon/pectin';\n\nexport interface CellEditorComponent<T> {\n valueModel: ValueModel<T> | FormValueModel<T>\n requestFocus?();\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=cell-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-renderer.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/cell-renderer.ts"],"names":[],"mappings":"","sourcesContent":["export interface CellRenderer<T> {\n value: T\n}\n\n"]}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { MultipleSelectionModel } from '@coolon/pectin';
|
|
4
|
+
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
5
|
+
import { DefaultCellRendererComponent } from './default-cell-renderer/default-cell-renderer.component';
|
|
6
|
+
import { DefaultHeaderCellRendererComponent } from './default-header-cell-renderer/default-header-cell-renderer.component';
|
|
7
|
+
import { EditRowControls } from './edit-row-controls/edit-row-controls.component';
|
|
8
|
+
import { SelectCellRendererComponent } from './select-cell-renderer/select-cell-renderer.component';
|
|
9
|
+
import { SelectHeaderCellRendererComponent } from './select-header-cell-renderer/select-header-cell-renderer.component';
|
|
10
|
+
var ColumnModel = /** @class */ (function () {
|
|
11
|
+
function ColumnModel(columnId, defaults) {
|
|
12
|
+
this.columnId = columnId;
|
|
13
|
+
this.defaults = defaults;
|
|
14
|
+
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, function (component, column) {
|
|
15
|
+
component.columnModel = column;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
ColumnModel.prototype.getHeaderText = function () {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = this.getColumnTextProperties()) === null || _a === void 0 ? void 0 : _a.headerText()) || this.getDefaultHeaderText();
|
|
21
|
+
};
|
|
22
|
+
ColumnModel.prototype.getDefaultHeaderText = function () {
|
|
23
|
+
return this.columnId;
|
|
24
|
+
};
|
|
25
|
+
ColumnModel.prototype.getColumnTextProperties = function () {
|
|
26
|
+
return this._columnTextProperties || this.defaults.getColumnTextProperties(this);
|
|
27
|
+
};
|
|
28
|
+
ColumnModel.prototype.textProperties = function (columnTextProperties) {
|
|
29
|
+
this._columnTextProperties = columnTextProperties;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
ColumnModel.prototype.setCellRenderer = function (cellRenderer, initialiser) {
|
|
33
|
+
this._cellRendererConfig = {
|
|
34
|
+
portal: new ComponentPortal(cellRenderer),
|
|
35
|
+
pushState: initialiser
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
ColumnModel.prototype.cellHeaderRenderer = function (cellRenderer, initialiser) {
|
|
39
|
+
this._columnHeaderConfig = {
|
|
40
|
+
portal: new ComponentPortal(cellRenderer),
|
|
41
|
+
initialiseComponent: initialiser
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
ColumnModel.prototype.setCellEditor = function (cellEditor) {
|
|
45
|
+
this._cellEditorConfig = cellEditor;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(ColumnModel.prototype, "cellRendererPortal", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._cellRendererConfig.portal;
|
|
50
|
+
},
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(ColumnModel.prototype, "columnHeaderCellRendererPortal", {
|
|
55
|
+
get: function () {
|
|
56
|
+
return this._columnHeaderConfig.portal;
|
|
57
|
+
},
|
|
58
|
+
enumerable: true,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(ColumnModel.prototype, "cellEditorPortal", {
|
|
62
|
+
get: function () {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = this._cellEditorConfig) === null || _a === void 0 ? void 0 : _a.portal;
|
|
65
|
+
},
|
|
66
|
+
enumerable: true,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
ColumnModel.prototype.hasEditor = function () {
|
|
70
|
+
return !!this._cellEditorConfig;
|
|
71
|
+
};
|
|
72
|
+
ColumnModel.prototype.updateCellRenderer = function (component, row, editRowCommand, editSession) {
|
|
73
|
+
this._cellRendererConfig.pushState(component, row, editRowCommand, editSession);
|
|
74
|
+
};
|
|
75
|
+
ColumnModel.prototype.initialiseHeader = function (component) {
|
|
76
|
+
this._columnHeaderConfig.initialiseComponent(component, this);
|
|
77
|
+
};
|
|
78
|
+
ColumnModel.prototype.initialiseEditor = function (component, editSession) {
|
|
79
|
+
this._cellEditorConfig.initialiseComponent(component, editSession);
|
|
80
|
+
};
|
|
81
|
+
__decorate([
|
|
82
|
+
Memoize(),
|
|
83
|
+
__metadata("design:type", Function),
|
|
84
|
+
__metadata("design:paramtypes", []),
|
|
85
|
+
__metadata("design:returntype", String)
|
|
86
|
+
], ColumnModel.prototype, "getHeaderText", null);
|
|
87
|
+
__decorate([
|
|
88
|
+
Memoize(),
|
|
89
|
+
__metadata("design:type", Function),
|
|
90
|
+
__metadata("design:paramtypes", []),
|
|
91
|
+
__metadata("design:returntype", Object)
|
|
92
|
+
], ColumnModel.prototype, "getColumnTextProperties", null);
|
|
93
|
+
return ColumnModel;
|
|
94
|
+
}());
|
|
95
|
+
export { ColumnModel };
|
|
96
|
+
var PropertyColumnModel = /** @class */ (function (_super) {
|
|
97
|
+
__extends(PropertyColumnModel, _super);
|
|
98
|
+
function PropertyColumnModel(property, defaults) {
|
|
99
|
+
var _this = _super.call(this, property.toString(), defaults) || this;
|
|
100
|
+
_this.property = property;
|
|
101
|
+
_this.cellRenderer(DefaultCellRendererComponent);
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
PropertyColumnModel.prototype.cellRenderer = function (componentType) {
|
|
105
|
+
var _this = this;
|
|
106
|
+
this.setCellRenderer(componentType, function (component, row) {
|
|
107
|
+
component.value = row[_this.property];
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
PropertyColumnModel.prototype.cellEditor = function (editor, options) {
|
|
111
|
+
var _this = this;
|
|
112
|
+
this.setCellEditor({
|
|
113
|
+
portal: new ComponentPortal(editor),
|
|
114
|
+
initialiseComponent: function (component, editSession) {
|
|
115
|
+
var formValueModel = editSession.form.pluck(_this.property);
|
|
116
|
+
if (options === null || options === void 0 ? void 0 : options.validators) {
|
|
117
|
+
formValueModel.validateUsing(options.validators);
|
|
118
|
+
}
|
|
119
|
+
component.valueModel = formValueModel;
|
|
120
|
+
if (options === null || options === void 0 ? void 0 : options.initialiseComponent) {
|
|
121
|
+
options.initialiseComponent(component);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
return PropertyColumnModel;
|
|
128
|
+
}(ColumnModel));
|
|
129
|
+
export { PropertyColumnModel };
|
|
130
|
+
var CustomValueColumnModel = /** @class */ (function (_super) {
|
|
131
|
+
__extends(CustomValueColumnModel, _super);
|
|
132
|
+
function CustomValueColumnModel(columnId, defaults, getValue) {
|
|
133
|
+
var _this = _super.call(this, columnId, defaults) || this;
|
|
134
|
+
_this.getValue = getValue;
|
|
135
|
+
_this.cellRenderer(DefaultCellRendererComponent);
|
|
136
|
+
return _this;
|
|
137
|
+
}
|
|
138
|
+
CustomValueColumnModel.prototype.cellRenderer = function (componentType) {
|
|
139
|
+
var _this = this;
|
|
140
|
+
this.setCellRenderer(componentType, function (component, row) {
|
|
141
|
+
component.value = _this.getValue(row);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
return CustomValueColumnModel;
|
|
145
|
+
}(ColumnModel));
|
|
146
|
+
export { CustomValueColumnModel };
|
|
147
|
+
var EditorControlColumnModel = /** @class */ (function (_super) {
|
|
148
|
+
__extends(EditorControlColumnModel, _super);
|
|
149
|
+
function EditorControlColumnModel(columnId, saveCommand, defaults) {
|
|
150
|
+
var _this = _super.call(this, columnId, defaults) || this;
|
|
151
|
+
_this.cellRenderer(EditRowControls);
|
|
152
|
+
return _this;
|
|
153
|
+
}
|
|
154
|
+
EditorControlColumnModel.prototype.cellRenderer = function (componentType) {
|
|
155
|
+
this.setCellRenderer(componentType, function (component, row, editRowCommand, editSession) {
|
|
156
|
+
component.row = row;
|
|
157
|
+
component.editSession = editSession;
|
|
158
|
+
component.editRowCommand = editRowCommand;
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
EditorControlColumnModel.prototype.getDefaultHeaderText = function () {
|
|
162
|
+
return '';
|
|
163
|
+
};
|
|
164
|
+
return EditorControlColumnModel;
|
|
165
|
+
}(ColumnModel));
|
|
166
|
+
export { EditorControlColumnModel };
|
|
167
|
+
var CustomTemplateColumnModel = /** @class */ (function (_super) {
|
|
168
|
+
__extends(CustomTemplateColumnModel, _super);
|
|
169
|
+
function CustomTemplateColumnModel(columnId, defaults, component) {
|
|
170
|
+
return _super.call(this, columnId, defaults) || this;
|
|
171
|
+
}
|
|
172
|
+
return CustomTemplateColumnModel;
|
|
173
|
+
}(ColumnModel));
|
|
174
|
+
export { CustomTemplateColumnModel };
|
|
175
|
+
var SelectionColumnModel = /** @class */ (function (_super) {
|
|
176
|
+
__extends(SelectionColumnModel, _super);
|
|
177
|
+
function SelectionColumnModel(columnId, defaults, selectionModel) {
|
|
178
|
+
var _this = _super.call(this, columnId, defaults) || this;
|
|
179
|
+
if (selectionModel instanceof MultipleSelectionModel) {
|
|
180
|
+
_this.cellHeaderRenderer(SelectHeaderCellRendererComponent, function (component) {
|
|
181
|
+
component.selectionModel = selectionModel;
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
_this.setCellRenderer(SelectCellRendererComponent, function (component, row, editRowCommand, editSession) {
|
|
185
|
+
component.row = row;
|
|
186
|
+
component.selectionModel = selectionModel;
|
|
187
|
+
});
|
|
188
|
+
return _this;
|
|
189
|
+
}
|
|
190
|
+
SelectionColumnModel.prototype.getDefaultHeaderText = function () {
|
|
191
|
+
return '';
|
|
192
|
+
};
|
|
193
|
+
return SelectionColumnModel;
|
|
194
|
+
}(ColumnModel));
|
|
195
|
+
export { SelectionColumnModel };
|
|
196
|
+
//# sourceMappingURL=column-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-model.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/column-model.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAU,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAiB,sBAAsB,EAAkD,MAAM,gBAAgB,CAAC;AACvH,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAI3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,uEAAuE,CAAC;AAC3H,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qEAAqE,CAAC;AAoBxH;IAQE,qBAAqB,QAAgB,EAAU,QAA8B;QAAxD,aAAQ,GAAR,QAAQ,CAAQ;QAAU,aAAQ,GAAR,QAAQ,CAAsB;QAC3E,IAAI,CAAC,kBAAkB,CAAC,kCAAkC,EAAE,UAAC,SAAS,EAAE,MAAM;YAC5E,SAAS,CAAC,WAAW,GAAG,MAAM,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAGD,mCAAa,GAAb;;QACE,OAAO,OAAA,IAAI,CAAC,uBAAuB,EAAE,0CAAE,UAAU,OAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACrF,CAAC;IAES,0C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AG,WAAW,CAAC;YACpC,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC;IAES,uDAAoB,GAA9B;QACE,OAAO,EAAE,CAAC;IACZ,CAAC;IACH,+BAAC;AAAD,CAAC,AAlBD,CAAmD,WAAW,GAkB7D;;AAED;IAAoD,6CAAgB;IAClE,mCAAY,QAAgB,EAAE,QAA8B,EAAE,SAAkH;eAC9K,kBAAM,QAAQ,EAAE,QAAQ,CAAC;IAC3B,CAAC;IACH,gCAAC;AAAD,CAAC,AAJD,CAAoD,WAAW,GAI9D;;AAED;IAA+C,wCAAgB;IAC7D,8BAAY,QAAgB,EAAE,QAA8B,EAAE,cAAmC;QAAjG,YACE,kBAAM,QAAQ,EAAE,QAAQ,CAAC,SAU1B;QATC,IAAI,cAAc,YAAY,sBAAsB,EAAE;YACpD,KAAI,CAAC,kBAAkB,CAAC,iCAAiC,EAAE,UAAC,SAAS;gBACnE,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC;YAC5C,CAAC,CAAC,CAAC;SACJ;QACD,KAAI,CAAC,eAAe,CAAC,2BAA2B,EAAE,UAAC,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,WAAW;YAC5F,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;YACpB,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC;QAC5C,CAAC,CAAC,CAAC;;IACL,CAAC;IAES,mDAAoB,GAA9B;QACE,OAAO,EAAE,CAAC;IACZ,CAAC;IACH,2BAAC;AAAD,CAAC,AAjBD,CAA+C,WAAW,GAiBzD","sourcesContent":["import { ComponentType } from '@angular/cdk/overlay';\nimport { ComponentPortal, Portal } from '@angular/cdk/portal';\nimport { Command, Form, MultipleSelectionModel, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport { AbstractInputComponent } from '../forms/abstract-input.component';\nimport { CellEditorComponent } from './cell-editor.component';\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 { SelectCellRendererComponent } from './select-cell-renderer/select-cell-renderer.component';\nimport { SelectHeaderCellRendererComponent } from './select-header-cell-renderer/select-header-cell-renderer.component';\nimport { TableModel } from './table-model';\n\n\nexport interface ColumnHeaderConfig<Row, C extends any> {\n portal: Portal<C>;\n initialiseComponent?: (component: C, column: ColumnModel<Row>) => void;\n}\n\nexport interface CellRendererConfig<Row, C extends any> {\n portal: Portal<C>;\n pushState?: (component: C, row: Row, editRowCommand: Command<void>, editSession: TableModel.EditSession<Row>) => void;\n}\n\nexport interface CellEditorConfig<Row, V, C extends AbstractInputComponent<V>> {\n portal: Portal<C>;\n initialiseComponent?: (component: C, editSession: TableModel.EditSession<Row>) => void;\n}\n\n\nexport class ColumnModel<Row> {\n\n private _columnTextProperties: ColumnTextProperties;\n\n private _columnHeaderConfig: ColumnHeaderConfig<Row, any>;\n private _cellRendererConfig: CellRendererConfig<any, any>;\n private _cellEditorConfig: CellEditorConfig<any, any, any>;\n\n constructor(readonly columnId: string, private defaults: ColumnModel.Defaults) {\n this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, (component, column) => {\n component.columnModel = column;\n });\n }\n\n @Memoize()\n getHeaderText(): string {\n return this.getColumnTextProperties()?.headerText() || this.getDefaultHeaderText();\n }\n\n protected getDefaultHeaderText() {\n return this.columnId;\n }\n\n @Memoize()\n getColumnTextProperties(): ColumnTextProperties {\n return this._columnTextProperties || this.defaults.getColumnTextProperties(this);\n }\n\n textProperties(columnTextProperties: ColumnTextProperties): this {\n this._columnTextProperties = columnTextProperties;\n return this;\n }\n\n protected setCellRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, row: Row, editRowCommand: Command<void>, editSession: TableModel.EditSession<Row>) => void): void {\n this._cellRendererConfig = {\n portal: new ComponentPortal<C>(cellRenderer),\n pushState: initialiser\n };\n }\n\n cellHeaderRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): void {\n this._columnHeaderConfig = {\n portal: new ComponentPortal<C>(cellRenderer),\n initialiseComponent: initialiser\n };\n }\n\n protected setCellEditor<E extends AbstractInputComponent<any>>(cellEditor: CellEditorConfig<any, any, any>): void {\n this._cellEditorConfig = cellEditor;\n }\n\n get cellRendererPortal() {\n return this._cellRendererConfig.portal;\n }\n\n get columnHeaderCellRendererPortal() {\n return this._columnHeaderConfig.portal;\n }\n\n get cellEditorPortal() {\n return this._cellEditorConfig?.portal;\n }\n\n hasEditor() {\n return !!this._cellEditorConfig;\n }\n\n updateCellRenderer(component: any, row: Row, editRowCommand: Command<void>, editSession: TableModel.EditSession<Row>) {\n this._cellRendererConfig.pushState(component, row, editRowCommand, editSession);\n }\n\n initialiseHeader(component: any) {\n this._columnHeaderConfig.initialiseComponent(component, this);\n }\n\n initialiseEditor(component: any, editSession: TableModel.EditSession<Row>) {\n this._cellEditorConfig.initialiseComponent(component, editSession);\n }\n}\n\nexport namespace ColumnModel {\n export type Defaults = Pick<TableModel<any>, 'getColumnTextProperties'>\n}\n\nexport interface CellEditorOptions<V, E extends CellEditorComponent<V>> { //extends CellRendererOptions<E> {\n validators?: Validator<V>[];\n\n initialiseComponent?(component: E);\n}\n\nexport class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {\n\n constructor(readonly property: P, defaults: ColumnModel.Defaults) {\n super(property.toString(), defaults);\n this.cellRenderer(DefaultCellRendererComponent);\n }\n\n cellRenderer(componentType: ComponentType<{ value: Row[P] }>) {\n this.setCellRenderer(componentType, (component, row) => {\n component.value = row[this.property];\n });\n }\n\n cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, options?: CellEditorOptions<Row[P], E>): this {\n this.setCellEditor({\n portal: new ComponentPortal<E>(editor),\n initialiseComponent: (component: E, editSession: TableModel.EditSession<Row>) => {\n const formValueModel = editSession.form.pluck(this.property);\n if (options?.validators) {\n formValueModel.validateUsing(options.validators);\n }\n component.valueModel = formValueModel;\n if (options?.initialiseComponent) {\n options.initialiseComponent(component);\n }\n }\n });\n return this;\n }\n}\n\nexport class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {\n constructor(columnId: string, defaults: ColumnModel.Defaults, private getValue: (row: Row) => V) {\n super(columnId, defaults);\n this.cellRenderer(DefaultCellRendererComponent);\n }\n\n cellRenderer(componentType: ComponentType<{ value: V }>) {\n this.setCellRenderer(componentType, (component, row) => {\n component.value = this.getValue(row);\n });\n }\n}\n\nexport class EditorControlColumnModel<Row> extends ColumnModel<Row> {\n\n constructor(columnId: string, saveCommand: UnaryCommand<Form<Row>, boolean>, defaults: ColumnModel.Defaults) {\n super(columnId, defaults);\n this.cellRenderer(EditRowControls);\n }\n\n cellRenderer(componentType: ComponentType<{ row: Row, editSession: TableModel.EditSession<Row>, editRowCommand: Command<void> }>) {\n this.setCellRenderer(componentType, (component, row, editRowCommand, editSession) => {\n component.row = row;\n component.editSession = editSession;\n component.editRowCommand = editRowCommand;\n });\n }\n\n protected getDefaultHeaderText(): string {\n return '';\n }\n}\n\nexport class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {\n constructor(columnId: string, defaults: ColumnModel.Defaults, component: ComponentType<{ editCommand: Command<void>, saveCommand: Command<void>, cancelCommand: Command<void> }>) {\n super(columnId, defaults);\n }\n}\n\nexport class SelectionColumnModel<Row> extends ColumnModel<Row> {\n constructor(columnId: string, defaults: ColumnModel.Defaults, selectionModel: SelectionModel<Row>) {\n super(columnId, defaults);\n if (selectionModel instanceof MultipleSelectionModel) {\n this.cellHeaderRenderer(SelectHeaderCellRendererComponent, (component) => {\n component.selectionModel = selectionModel;\n });\n }\n this.setCellRenderer(SelectCellRendererComponent, (component, row, editRowCommand, editSession) => {\n component.row = row;\n component.selectionModel = selectionModel;\n });\n }\n\n protected getDefaultHeaderText(): string {\n return '';\n }\n}\n\n\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Directive, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { TableComponent } from '../table.component';
|
|
4
|
+
var ColumnTemplateDirective = /** @class */ (function () {
|
|
5
|
+
function ColumnTemplateDirective(host, templateRef, viewContainer) {
|
|
6
|
+
this.templateRef = templateRef;
|
|
7
|
+
this.viewContainer = viewContainer;
|
|
8
|
+
}
|
|
9
|
+
ColumnTemplateDirective.ctorParameters = function () { return [
|
|
10
|
+
{ type: TableComponent },
|
|
11
|
+
{ type: TemplateRef },
|
|
12
|
+
{ type: ViewContainerRef }
|
|
13
|
+
]; };
|
|
14
|
+
ColumnTemplateDirective = __decorate([
|
|
15
|
+
Directive({
|
|
16
|
+
selector: '[aupColumnTemplate]'
|
|
17
|
+
}),
|
|
18
|
+
__metadata("design:paramtypes", [TableComponent,
|
|
19
|
+
TemplateRef,
|
|
20
|
+
ViewContainerRef])
|
|
21
|
+
], ColumnTemplateDirective);
|
|
22
|
+
return ColumnTemplateDirective;
|
|
23
|
+
}());
|
|
24
|
+
export { ColumnTemplateDirective };
|
|
25
|
+
//# sourceMappingURL=column-template.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-template.directive.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/column-template/column-template.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;IAEE,iCAAY,IAAyB,EACjB,WAA6B,EAC7B,aAA+B;QAD/B,gBAAW,GAAX,WAAW,CAAkB;QAC7B,kBAAa,GAAb,aAAa,CAAkB;IAEnD,CAAC;;gBAJiB,cAAc;gBACC,WAAW;gBACT,gBAAgB;;IAJxC,uBAAuB;QAHnC,SAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;SAChC,CAAC;yCAGkB,cAAc;YACC,WAAW;YACT,gBAAgB;OAJxC,uBAAuB,CAQnC;IAAD,8BAAC;CAAA,AARD,IAQC;SARY,uBAAuB","sourcesContent":["import { Directive, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { TableComponent } from '../table.component';\n\n@Directive({\n selector: '[aupColumnTemplate]'\n})\nexport class ColumnTemplateDirective {\n\n constructor(host: TableComponent<any>,\n private templateRef: TemplateRef<any>,\n private viewContainer: ViewContainerRef) {\n\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-template.directive.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/column-template/column-template.directive.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=column-text-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-text-properties.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/column-text-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface ColumnTextProperties {\n headerText?(): string;\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
var DefaultCellRendererComponent = /** @class */ (function () {
|
|
4
|
+
function DefaultCellRendererComponent() {
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(DefaultCellRendererComponent.prototype, "value", {
|
|
7
|
+
get: function () {
|
|
8
|
+
return this._value;
|
|
9
|
+
},
|
|
10
|
+
set: function (value) {
|
|
11
|
+
this._value = value;
|
|
12
|
+
},
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
__decorate([
|
|
17
|
+
Input(),
|
|
18
|
+
__metadata("design:type", Object),
|
|
19
|
+
__metadata("design:paramtypes", [Object])
|
|
20
|
+
], DefaultCellRendererComponent.prototype, "value", null);
|
|
21
|
+
DefaultCellRendererComponent = __decorate([
|
|
22
|
+
Component({
|
|
23
|
+
selector: 'aup-default-cell-renderer',
|
|
24
|
+
template: "{{value}}\n",
|
|
25
|
+
styles: [""]
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:paramtypes", [])
|
|
28
|
+
], DefaultCellRendererComponent);
|
|
29
|
+
return DefaultCellRendererComponent;
|
|
30
|
+
}());
|
|
31
|
+
export { DefaultCellRendererComponent };
|
|
32
|
+
//# sourceMappingURL=default-cell-renderer.component.js.map
|
package/esm5/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-cell-renderer.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/default-cell-renderer/default-cell-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOjD;IAYE;IACA,CAAC;IATD,sBAAI,+CAAK;aAIT;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAND,UAAU,KAAQ;YAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAFD;QADC,KAAK,EAAE;;;6DAGP;IANU,4BAA4B;QALxC,SAAS,CAAC;YACT,QAAQ,EAAE,2BAA2B;YACrC,uBAAqD;;SAEtD,CAAC;;OACW,4BAA4B,CAcxC;IAAD,mCAAC;CAAA,AAdD,IAcC;SAdY,4BAA4B","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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-cell-renderer.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/default-cell-renderer/default-cell-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-cell-renderer.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["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"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { ColumnModel } from '../column-model';
|
|
4
|
+
var DefaultHeaderCellRendererComponent = /** @class */ (function () {
|
|
5
|
+
function DefaultHeaderCellRendererComponent() {
|
|
6
|
+
}
|
|
7
|
+
__decorate([
|
|
8
|
+
Input(),
|
|
9
|
+
__metadata("design:type", ColumnModel)
|
|
10
|
+
], DefaultHeaderCellRendererComponent.prototype, "columnModel", void 0);
|
|
11
|
+
DefaultHeaderCellRendererComponent = __decorate([
|
|
12
|
+
Component({
|
|
13
|
+
selector: 'aup-default-header-renderer',
|
|
14
|
+
template: "{{columnModel.getHeaderText()}}\n",
|
|
15
|
+
styles: [""]
|
|
16
|
+
}),
|
|
17
|
+
__metadata("design:paramtypes", [])
|
|
18
|
+
], DefaultHeaderCellRendererComponent);
|
|
19
|
+
return DefaultHeaderCellRendererComponent;
|
|
20
|
+
}());
|
|
21
|
+
export { DefaultHeaderCellRendererComponent };
|
|
22
|
+
//# sourceMappingURL=default-header-cell-renderer.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-header-cell-renderer.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["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;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAO9C;IAKE;IACA,CAAC;IAHD;QADC,KAAK,EAAE;kCACK,WAAW;2EAAM;IAHnB,kCAAkC;QAL9C,SAAS,CAAC;YACT,QAAQ,EAAE,6BAA6B;YACvC,6CAA4D;;SAE7D,CAAC;;OACW,kCAAkC,CAO9C;IAAD,yCAAC;CAAA,AAPD,IAOC;SAPY,kCAAkC","sourcesContent":["import { Component, Input } from '@angular/core';\nimport { ColumnModel } from '../column-model';\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 columnModel: ColumnModel<any>;\n\n constructor() {\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-header-cell-renderer.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-header-cell-renderer.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["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"]}
|