@coolon/angular-ui-powerups 2.0.0-alpha.3 → 2.0.0-alpha.31
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 +191 -0
- package/assets/commands.scss +3 -0
- package/assets/form.scss +5 -4
- package/assets/icons.scss +30 -0
- package/assets/styles.scss +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +1170 -326
- 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 +64 -54
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +62 -52
- 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/commands/command-bar.component.js +51 -0
- package/esm2015/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.js +20 -0
- package/esm2015/lib/components/commands/command-container.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js +91 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.js +74 -0
- package/esm2015/lib/components/commands/command-face.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.metadata.json +1 -0
- package/esm2015/lib/components/commands/command.component.js +38 -0
- package/esm2015/lib/components/commands/command.component.js.map +1 -0
- package/esm2015/lib/components/commands/command.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +57 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +40 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +49 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +62 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/components.module.js +58 -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/forms/abstract-input.component.js +12 -4
- 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/abstract-list-input.component.js +51 -6
- package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js +47 -3
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +70 -0
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -0
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +1 -0
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js +3 -6
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +8 -13
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +3 -6
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +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 +4 -7
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -5
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +3 -7
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +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 +3 -6
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/components/icon/icon.component.js +17 -4
- package/esm2015/lib/components/icon/icon.component.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +12 -1
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/cell-editors.js.map +1 -1
- package/esm2015/lib/components/table/{cell-protal-ref.js → cell-portal-ref.js} +7 -3
- package/esm2015/lib/components/table/cell-portal-ref.js.map +1 -0
- package/esm2015/lib/components/table/{cell-protal-ref.metadata.json → cell-portal-ref.metadata.json} +1 -1
- package/esm2015/lib/components/table/column-model.js +66 -11
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js +1 -0
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +1 -0
- package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-model.js +11 -10
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +82 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/table.component.js +1 -1
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +16 -8
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +16 -2
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place-component.js +1 -1
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-router.js +2 -8
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +2 -3
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +62 -52
- 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/commands/command-bar.component.js +31 -0
- package/esm5/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-container.js +30 -0
- package/esm5/lib/components/commands/command-container.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js +122 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/command-face.js +103 -0
- package/esm5/lib/components/commands/command-face.js.map +1 -0
- package/esm5/lib/components/commands/command.component.js +41 -0
- package/esm5/lib/components/commands/command.component.js.map +1 -0
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +64 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +35 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +45 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +66 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/components.module.js +58 -14
- 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.component.js +12 -4
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +56 -6
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +52 -3
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +73 -0
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +1 -0
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +3 -6
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +8 -13
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +3 -6
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +4 -7
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +2 -5
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +3 -7
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +3 -6
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/components/icon/icon.component.js +15 -3
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +12 -1
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/cell-editors.js.map +1 -1
- package/esm5/lib/components/table/{cell-protal-ref.js → cell-portal-ref.js} +7 -3
- package/esm5/lib/components/table/cell-portal-ref.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +67 -11
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js +1 -0
- package/esm5/lib/components/table/mutable-cell-renderer.js.map +1 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +11 -11
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +66 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/table.component.js +1 -1
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +16 -8
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +20 -2
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place-component.js +1 -1
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-router.js +2 -8
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +2 -3
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1016 -241
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +1085 -257
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-bar.component.d.ts +10 -0
- package/lib/components/commands/command-container.d.ts +15 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +29 -0
- package/lib/components/commands/command-face.d.ts +24 -0
- package/lib/components/commands/command.component.d.ts +15 -0
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +18 -0
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +9 -0
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +14 -0
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +21 -0
- package/lib/components/forms/abstract-input.component.d.ts +8 -2
- package/lib/components/forms/abstract-list-input.component.d.ts +10 -3
- package/lib/components/forms/abstract-value-input.component.d.ts +9 -3
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +25 -0
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +8 -4
- package/lib/components/forms/number-input/number-input.component.d.ts +0 -2
- package/lib/components/forms/password-input/password-input.component.d.ts +0 -2
- package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -2
- package/lib/components/forms/text-input/text-input.component.d.ts +0 -2
- package/lib/components/icon/icon.component.d.ts +15 -0
- package/lib/components/index.d.ts +13 -1
- package/lib/components/table/cell-editors.d.ts +3 -3
- package/lib/components/table/{cell-protal-ref.d.ts → cell-portal-ref.d.ts} +4 -4
- package/lib/components/table/column-model.d.ts +18 -12
- package/lib/components/table/mutable-cell-renderer.d.ts +6 -0
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/table/table-model.d.ts +12 -4
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +25 -0
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -1
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -0
- package/package.json +4 -4
- package/esm2015/lib/components/table/cell-protal-ref.js.map +0 -1
- package/esm5/lib/components/table/cell-protal-ref.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CommandContainer } from './command-container';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export declare class CommandBarComponent extends CommandContainer implements OnInit {
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
getButtonColor(registration: CommandContainer.Registration): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command, Disposable, GarbageCollector, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { CommandFace } from './command-face';
|
|
3
|
+
export declare class CommandContainer extends GarbageCollector {
|
|
4
|
+
private readonly _commandRegistrations;
|
|
5
|
+
constructor();
|
|
6
|
+
get commandRegistrations(): ListModel<CommandContainer.Registration>;
|
|
7
|
+
registerCommand(command: Command<unknown>, face: CommandFace): Disposable;
|
|
8
|
+
getDefaultIconPosition(): CommandFace.Position;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace CommandContainer {
|
|
11
|
+
interface Registration {
|
|
12
|
+
readonly command: Command<unknown>;
|
|
13
|
+
readonly faceAdapter: CommandFace.Adapter;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ValueModelChain } from '@coolon/pectin';
|
|
3
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
4
|
+
import { CommandContainer } from '../command-container';
|
|
5
|
+
import { CommandFace } from '../command-face';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare class CommandFaceComponent<T> extends DisposableComponent implements OnInit {
|
|
10
|
+
readonly commandContainer: CommandContainer;
|
|
11
|
+
private readonly faceModel;
|
|
12
|
+
_rawFace: CommandFace;
|
|
13
|
+
ignoreIcon: boolean;
|
|
14
|
+
ignoreText: boolean;
|
|
15
|
+
includeMissingIconInLayout: boolean;
|
|
16
|
+
get requiresMissingIconInLayout(): boolean;
|
|
17
|
+
readonly iconModel: ValueModelChain<string>;
|
|
18
|
+
private textModel;
|
|
19
|
+
readonly positionModel: ValueModelChain<string>;
|
|
20
|
+
private destructiveModel;
|
|
21
|
+
constructor(commandContainer: CommandContainer);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
get iconPosition(): string;
|
|
24
|
+
get shouldIncludeIcon(): string | boolean;
|
|
25
|
+
get iconStart(): boolean;
|
|
26
|
+
get iconEnd(): boolean;
|
|
27
|
+
get text(): string;
|
|
28
|
+
get destructive(): boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CommandFace {
|
|
2
|
+
text?(): string;
|
|
3
|
+
icon?(): string;
|
|
4
|
+
iconPosition?(): string;
|
|
5
|
+
tooltip?(): string;
|
|
6
|
+
destructive?(): boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace CommandFace {
|
|
9
|
+
enum Position {
|
|
10
|
+
START = "start",
|
|
11
|
+
END = "end"
|
|
12
|
+
}
|
|
13
|
+
class Adapter {
|
|
14
|
+
readonly face: CommandFace;
|
|
15
|
+
constructor(face: CommandFace);
|
|
16
|
+
get text(): string;
|
|
17
|
+
get icon(): string;
|
|
18
|
+
get iconPosition(): string;
|
|
19
|
+
get tooltip(): string;
|
|
20
|
+
get iconPositionStart(): boolean;
|
|
21
|
+
get iconPositionEnd(): boolean;
|
|
22
|
+
get destructive(): boolean;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Command } from '@coolon/pectin';
|
|
3
|
+
import { CommandContainer } from './command-container';
|
|
4
|
+
import { CommandFace } from './command-face';
|
|
5
|
+
import { DisposableComponent } from '../disposable-component';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare class CommandComponent<T> extends DisposableComponent implements OnInit {
|
|
10
|
+
readonly commandContainer: CommandContainer;
|
|
11
|
+
command: Command;
|
|
12
|
+
face: CommandFace;
|
|
13
|
+
constructor(commandContainer: CommandContainer);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { CommandContainer } from '../command-container';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare class AbstractPopupMenuComponent extends CommandContainer implements AfterViewInit {
|
|
8
|
+
private readonly cdr;
|
|
9
|
+
xPosition: 'before' | 'after';
|
|
10
|
+
yPosition: 'above' | 'below';
|
|
11
|
+
private popupMenu;
|
|
12
|
+
menuTrigger: MatMenuTrigger;
|
|
13
|
+
constructor(cdr: ChangeDetectorRef);
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
get matMenuComponent(): MatMenu;
|
|
16
|
+
closeMenu(): void;
|
|
17
|
+
getButtonColor(registration: CommandContainer.Registration): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export declare class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
7
|
+
tooltip: string;
|
|
8
|
+
constructor(cdr: ChangeDetectorRef);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { CommandFace } from '../command-face';
|
|
3
|
+
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare class PopupMenuComponent extends AbstractPopupMenuComponent implements OnInit {
|
|
8
|
+
private readonly faceModel;
|
|
9
|
+
face: CommandFace;
|
|
10
|
+
private faceTooltipModel;
|
|
11
|
+
constructor(cdr: ChangeDetectorRef);
|
|
12
|
+
getTooltip(): string;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatMenu } from '@angular/material/menu';
|
|
3
|
+
import { BooleanValueModelChain, Command, ListModel, ValueModelChain } from '@coolon/pectin';
|
|
4
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
+
import { CommandContainer } from '../command-container';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare class PopupMenuRendererComponent extends DisposableComponent implements OnInit {
|
|
10
|
+
commandRegistrations: ListModel<CommandContainer.Registration>;
|
|
11
|
+
xPosition: 'before' | 'after';
|
|
12
|
+
yPosition: 'above' | 'below';
|
|
13
|
+
commandExecuted: EventEmitter<any>;
|
|
14
|
+
readonly tooltip: ValueModelChain<string>;
|
|
15
|
+
readonly hasMixedIcons: BooleanValueModelChain;
|
|
16
|
+
matMenu: MatMenu;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
getPopupMenuCommandFor(item: CommandContainer.Registration): Command<unknown>;
|
|
20
|
+
getButtonColor(registration: CommandContainer.Registration): string;
|
|
21
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
-
import { Command, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
|
|
3
|
+
import { Command, Disposable, EventListenerList, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../disposable-component';
|
|
5
5
|
interface InputModel<T> {
|
|
6
6
|
value: T;
|
|
@@ -9,7 +9,8 @@ interface InputModel<T> {
|
|
|
9
9
|
focusContext: FocusManager.Context;
|
|
10
10
|
}
|
|
11
11
|
export declare class AbstractInputComponent<T> extends DisposableComponent implements OnInit {
|
|
12
|
-
protected
|
|
12
|
+
protected onValueEditedListeners: EventListenerList<(is: T, was: T) => void>;
|
|
13
|
+
protected formValueModel: InputModel<T>;
|
|
13
14
|
label: string;
|
|
14
15
|
userFloatLabel: 'auto' | 'always' | 'never';
|
|
15
16
|
hint: string;
|
|
@@ -42,5 +43,10 @@ export declare class AbstractInputComponent<T> extends DisposableComponent imple
|
|
|
42
43
|
get focusContext(): FocusManager.Context;
|
|
43
44
|
get floatLabel(): 'auto' | 'always' | 'never';
|
|
44
45
|
get showHint(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Invokes the callback when this components value is changed by a user edit.
|
|
48
|
+
* @param callback
|
|
49
|
+
*/
|
|
50
|
+
onValueEdited(callback: (is: T, was: T) => void): Disposable;
|
|
45
51
|
}
|
|
46
52
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form } from '@coolon/pectin';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Form, IMutableListModel, MutableListModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractInputComponent } from './abstract-input.component';
|
|
4
4
|
export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
|
|
5
|
+
listModel: Form.ListModelBase<T> | IMutableListModel<T>;
|
|
5
6
|
/**
|
|
6
7
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
7
8
|
*
|
|
@@ -12,5 +13,11 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
|
|
|
12
13
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
13
14
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
14
15
|
*/
|
|
15
|
-
readonly
|
|
16
|
+
protected readonly formValueModel: Form.DelegatingListModel<T>;
|
|
17
|
+
readonly componentListModel: MutableListModel<T>;
|
|
18
|
+
private setValueIsInProgress;
|
|
19
|
+
private listHolder;
|
|
20
|
+
set value(value: T[]);
|
|
21
|
+
readonly valueChange: EventEmitter<T[]>;
|
|
22
|
+
constructor();
|
|
16
23
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form } from '@coolon/pectin';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Form, Guard, IMutableValueModel, MutableValueModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractInputComponent } from './abstract-input.component';
|
|
4
4
|
export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
|
|
5
|
+
valueModel: Form.ValueModelBase<T> | IMutableValueModel<T>;
|
|
5
6
|
/**
|
|
6
7
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
7
8
|
*
|
|
@@ -12,6 +13,11 @@ export declare class AbstractValueInputComponent<T> extends AbstractInputCompone
|
|
|
12
13
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
13
14
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
14
15
|
*/
|
|
15
|
-
readonly
|
|
16
|
+
protected readonly formValueModel: Form.DelegatingValueModel<T>;
|
|
17
|
+
protected setValueInProgress: Guard;
|
|
18
|
+
readonly componentValueModel: MutableValueModel<T>;
|
|
19
|
+
private plainValueHolder;
|
|
20
|
+
set value(value: T);
|
|
21
|
+
readonly valueChange: EventEmitter<T>;
|
|
16
22
|
constructor();
|
|
17
23
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
|
+
import { ListModel, ListModelChain } from '@coolon/pectin';
|
|
4
|
+
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
5
|
+
/**
|
|
6
|
+
* Using templates (not only supported for nil values:
|
|
7
|
+
* <aup-autocomplete-input [valueModel]="myModel" [options]="myOptions">
|
|
8
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
|
+
* </aup-autocomplete-input>
|
|
10
|
+
*/
|
|
11
|
+
export declare class AutocompleteInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
12
|
+
optionsModel: ListModel<T>;
|
|
13
|
+
options: T[];
|
|
14
|
+
optionLabel: keyof T;
|
|
15
|
+
allowNil: boolean;
|
|
16
|
+
nilOptionTemplateRef: TemplateRef<any>;
|
|
17
|
+
private filterValue;
|
|
18
|
+
readonly filteredOptions: ListModelChain<T>;
|
|
19
|
+
optionLabelFormat: (option: T) => any;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
formatOption(option: T): any;
|
|
23
|
+
updateFilter($event: string): void;
|
|
24
|
+
onSelect($event: MatAutocompleteSelectedEvent): void;
|
|
25
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
3
2
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
3
|
export declare class CheckboxInputComponent extends AbstractValueInputComponent<boolean> implements OnInit {
|
|
5
|
-
valueModel: Form.ValueModelBase<boolean> | IMutableValueModel<boolean>;
|
|
6
4
|
color: 'primary' | 'warn' | 'accent';
|
|
7
5
|
labelPosition: 'before' | 'after';
|
|
8
6
|
constructor();
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ListModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractListInputComponent } from '../abstract-list-input.component';
|
|
4
|
+
/**
|
|
5
|
+
* Using templates:
|
|
6
|
+
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
|
+
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
|
+
* </aup-multiple-select_input>
|
|
10
|
+
*/
|
|
4
11
|
export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
|
|
5
|
-
listModel: Form.ListModelBase<T> | IMutableListModel<T>;
|
|
6
12
|
optionsModel: ListModel<T>;
|
|
7
13
|
options: T[];
|
|
8
14
|
optionLabel: keyof T;
|
|
9
|
-
allowNil: boolean;
|
|
10
15
|
optionTemplateRef: TemplateRef<any>;
|
|
11
|
-
nilOptionTemplateRef: TemplateRef<any>;
|
|
12
16
|
optionLabelFormat: (option: T) => any;
|
|
13
17
|
constructor();
|
|
14
18
|
ngOnInit(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
3
2
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
3
|
export declare class NumberInputComponent extends AbstractValueInputComponent<number> implements OnInit {
|
|
5
|
-
valueModel: Form.ValueModelBase<number> | IMutableValueModel<number>;
|
|
6
4
|
min: number;
|
|
7
5
|
max: number;
|
|
8
6
|
constructor();
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
3
2
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
3
|
export declare class PasswordInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
5
|
-
valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
6
4
|
constructor();
|
|
7
5
|
ngOnInit(): void;
|
|
8
6
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ListModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
4
|
/**
|
|
5
5
|
* Using templates:
|
|
6
6
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
7
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
9
|
* </aup-select_input>
|
|
9
10
|
*/
|
|
10
11
|
export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
11
|
-
valueModel: Form.ValueModelBase<T> | IMutableValueModel<T>;
|
|
12
12
|
optionsModel: ListModel<T>;
|
|
13
13
|
options: T[];
|
|
14
14
|
optionLabel: keyof T;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Command,
|
|
2
|
+
import { Command, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
4
|
export declare class StringInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
5
|
-
valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
6
5
|
enableClearModel: ValueModel<boolean>;
|
|
7
6
|
enableClear: boolean;
|
|
8
7
|
readonly clearCommand: Command<void>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
3
2
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
4
3
|
export declare class TextInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
5
|
-
valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
6
4
|
rows: number;
|
|
7
5
|
cols: number;
|
|
8
6
|
constructor();
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
import { Enum } from 'typescript-string-enums';
|
|
1
2
|
export declare class IconComponent {
|
|
2
3
|
_icon: string;
|
|
3
4
|
prefix: string;
|
|
4
5
|
suffix: string;
|
|
5
6
|
errorMessage: string;
|
|
7
|
+
allowedPrefixes: string[];
|
|
8
|
+
iconPrefix: {
|
|
9
|
+
SVG: "svg";
|
|
10
|
+
FONT_AWESOME: "fa";
|
|
11
|
+
MATERIAL: "mat";
|
|
12
|
+
};
|
|
6
13
|
set icon(iconName: string);
|
|
7
14
|
get icon(): string;
|
|
8
15
|
}
|
|
16
|
+
export declare namespace IconComponent {
|
|
17
|
+
const IconPrefix: {
|
|
18
|
+
SVG: "svg";
|
|
19
|
+
FONT_AWESOME: "fa";
|
|
20
|
+
MATERIAL: "mat";
|
|
21
|
+
};
|
|
22
|
+
type IconPrefix = Enum<typeof IconPrefix>;
|
|
23
|
+
}
|
|
@@ -6,10 +6,20 @@ export * from "./disposable-component";
|
|
|
6
6
|
export * from "./focusable.component";
|
|
7
7
|
export * from "./resize-aware.component";
|
|
8
8
|
export * from "./card-container/card-container.component";
|
|
9
|
+
export * from "./commands/command-bar.component";
|
|
10
|
+
export * from "./commands/command-container";
|
|
11
|
+
export * from "./commands/command-face";
|
|
12
|
+
export * from "./commands/command.component";
|
|
13
|
+
export * from "./commands/command-face/command-face.component";
|
|
14
|
+
export * from "./commands/popup-menu/abstract-popup-menu.component";
|
|
15
|
+
export * from "./commands/popup-menu/more-menu.component";
|
|
16
|
+
export * from "./commands/popup-menu/popup-menu.component";
|
|
17
|
+
export * from "./commands/popup-menu-renderer/popup-menu-renderer.component";
|
|
9
18
|
export * from "./focus-container/focus-container.component";
|
|
10
19
|
export * from "./forms/abstract-input.component";
|
|
11
20
|
export * from "./forms/abstract-list-input.component";
|
|
12
21
|
export * from "./forms/abstract-value-input.component";
|
|
22
|
+
export * from "./forms/autocomplete-input/autocomplete-input.component";
|
|
13
23
|
export * from "./forms/checkbox-input/checkbox-input.component";
|
|
14
24
|
export * from "./forms/multiple-select-input/multiple-select-input.component";
|
|
15
25
|
export * from "./forms/number-input/number-input.component";
|
|
@@ -23,11 +33,12 @@ export * from "./scroll-container/scroll-container.component";
|
|
|
23
33
|
export * from "./section-header/section-header.component";
|
|
24
34
|
export * from "./switch-case/switch-case.component";
|
|
25
35
|
export * from "./table/cell-editors";
|
|
26
|
-
export * from "./table/cell-
|
|
36
|
+
export * from "./table/cell-portal-ref";
|
|
27
37
|
export * from "./table/cell-renderer";
|
|
28
38
|
export * from "./table/column-model";
|
|
29
39
|
export * from "./table/column-text-properties";
|
|
30
40
|
export * from "./table/edit-session";
|
|
41
|
+
export * from "./table/mutable-cell-renderer";
|
|
31
42
|
export * from "./table/table-def";
|
|
32
43
|
export * from "./table/table-model";
|
|
33
44
|
export * from "./table/table.component";
|
|
@@ -39,6 +50,7 @@ export * from "./table/select-cell-renderer/select-cell-renderer.component";
|
|
|
39
50
|
export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
40
51
|
export * from "./table/table-cell-renderer/table-cell-renderer.component";
|
|
41
52
|
export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
53
|
+
export * from "./table/table-row-menu/table-row-menu.component";
|
|
42
54
|
export * from "./types/bounds.class";
|
|
43
55
|
export * from "./types/dimension.class";
|
|
44
56
|
export * from "./types/point.class";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Form,
|
|
1
|
+
import { Form, IMutableListModel, IMutableValueModel } from '@coolon/pectin';
|
|
2
2
|
export interface CellEditorComponent<T> {
|
|
3
|
-
valueModel:
|
|
3
|
+
valueModel: IMutableValueModel<T> | Form.ValueModelBase<T>;
|
|
4
4
|
requestFocus?(): any;
|
|
5
5
|
}
|
|
6
6
|
export interface CellListEditorComponent<T> {
|
|
7
|
-
listModel:
|
|
7
|
+
listModel: IMutableListModel<T> | Form.ListModelBase<T>;
|
|
8
8
|
requestFocus?(): any;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ColumnModel, RowData } from './column-model';
|
|
4
|
-
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
5
|
-
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
6
4
|
import { EditSession } from './edit-session';
|
|
5
|
+
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
6
|
+
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
7
7
|
export declare const HEADER_CELL_RENDERER_PORTAL: unique symbol;
|
|
8
8
|
export declare const CELL_RENDERER_PORTAL: unique symbol;
|
|
9
9
|
export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
@@ -26,8 +26,8 @@ export declare abstract class CellRendererPortalRef<Row, Portal> extends CellPor
|
|
|
26
26
|
}
|
|
27
27
|
export declare class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {
|
|
28
28
|
readonly componentType: ComponentType<Portal>;
|
|
29
|
-
readonly updateComponent: (component: Portal, rowData: RowData<Row
|
|
30
|
-
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row
|
|
29
|
+
readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void;
|
|
30
|
+
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void);
|
|
31
31
|
initialiseHost(host: TableCellRendererComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
32
32
|
onPortalAttached(host: TableCellRendererComponent<Row>, portalComponent: Portal): void;
|
|
33
33
|
pushState(host: TableCellRendererComponent<Row>): void;
|
|
@@ -2,9 +2,11 @@ import { ComponentType } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Command, DirtyTrackingForm, SelectionModel, Types, UnaryCommand, Validator } from '@coolon/pectin';
|
|
4
4
|
import { CellEditorComponent, CellListEditorComponent } from './cell-editors';
|
|
5
|
-
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-
|
|
5
|
+
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-portal-ref';
|
|
6
|
+
import { CellRenderer } from './cell-renderer';
|
|
6
7
|
import { ColumnTextProperties } from './column-text-properties';
|
|
7
8
|
import { EditSession } from './edit-session';
|
|
9
|
+
import { MutableCellRenderer } from './mutable-cell-renderer';
|
|
8
10
|
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
9
11
|
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
10
12
|
export interface RowData<Row> {
|
|
@@ -12,6 +14,14 @@ export interface RowData<Row> {
|
|
|
12
14
|
editSession?: EditSession<Row>;
|
|
13
15
|
editRowCommand: Command<void>;
|
|
14
16
|
}
|
|
17
|
+
export declare type OnComponentInit<C> = (component: C) => void;
|
|
18
|
+
export interface CellRendererOptions<Row, E> {
|
|
19
|
+
onComponentInit?: (component: E) => void;
|
|
20
|
+
onRowUpdate?: (component: E, row: Row) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {
|
|
23
|
+
onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;
|
|
24
|
+
}
|
|
15
25
|
export declare class ColumnModel<Row> {
|
|
16
26
|
readonly columnId: string;
|
|
17
27
|
private defaults;
|
|
@@ -46,17 +56,13 @@ export declare namespace ColumnModel {
|
|
|
46
56
|
getColumnTextProperties(columnModel: ColumnModel<any>): ColumnTextProperties;
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
|
-
export interface CellEditorOptions<V, C> {
|
|
50
|
-
validators?: Validator<V>[];
|
|
51
|
-
initialiseComponent?(component: C): any;
|
|
52
|
-
}
|
|
53
59
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
54
60
|
readonly property: P;
|
|
55
61
|
private _format;
|
|
56
|
-
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
57
|
-
cellRenderer(componentType: ComponentType<
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
constructor(id: string, property: P, defaults: ColumnModel.Defaults);
|
|
63
|
+
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): this;
|
|
64
|
+
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): this;
|
|
65
|
+
mutableCellRenderer<E extends MutableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
60
66
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
|
|
61
67
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
|
|
62
68
|
format(formatter: (value: Row[P]) => any): this;
|
|
@@ -65,7 +71,7 @@ export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<
|
|
|
65
71
|
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
66
72
|
readonly property: P;
|
|
67
73
|
private _format;
|
|
68
|
-
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
74
|
+
constructor(id: string, property: P, defaults: ColumnModel.Defaults);
|
|
69
75
|
cellRenderer(componentType: ComponentType<{
|
|
70
76
|
value: Types.ArrayElementType<Row, P>[];
|
|
71
77
|
}>): this;
|
|
@@ -77,9 +83,9 @@ export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertie
|
|
|
77
83
|
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
78
84
|
private getValue;
|
|
79
85
|
constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
|
|
80
|
-
cellRenderer
|
|
86
|
+
cellRenderer<C extends {
|
|
81
87
|
value: V;
|
|
82
|
-
}>): this;
|
|
88
|
+
}>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
|
|
83
89
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
84
90
|
}
|
|
85
91
|
export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
@@ -5,7 +5,7 @@ import { CellEditorComponent, CellListEditorComponent } from '../cell-editors';
|
|
|
5
5
|
import { ColumnModel, RowData } from '../column-model';
|
|
6
6
|
import { EditSession } from '../edit-session';
|
|
7
7
|
import { TableModel } from '../table-model';
|
|
8
|
-
import { CELL_RENDERER_PORTAL, CELL_EDITOR_PORTAL } from '../cell-
|
|
8
|
+
import { CELL_RENDERER_PORTAL, CELL_EDITOR_PORTAL } from '../cell-portal-ref';
|
|
9
9
|
export declare class TableCellRendererComponent<Row> extends DisposableComponent implements OnInit, OnChanges {
|
|
10
10
|
row: Row;
|
|
11
11
|
column: ColumnModel<Row>;
|
package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Portal } from '@angular/cdk/portal';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { ColumnModel } from '../column-model';
|
|
4
|
-
import { HEADER_CELL_RENDERER_PORTAL } from '../cell-
|
|
4
|
+
import { HEADER_CELL_RENDERER_PORTAL } from '../cell-portal-ref';
|
|
5
5
|
export declare class TableHeaderCellRendererComponent implements OnInit {
|
|
6
6
|
column: ColumnModel<any>;
|
|
7
7
|
defaultClassNames: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
1
2
|
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
|
|
2
|
-
import {
|
|
3
|
+
import { CellRenderer } from './cell-renderer';
|
|
4
|
+
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
3
5
|
import { ColumnTextProperties } from './column-text-properties';
|
|
4
6
|
import { EditSession } from './edit-session';
|
|
5
7
|
/**
|
|
@@ -93,13 +95,19 @@ export declare class TableModel<Row> {
|
|
|
93
95
|
private _createForm;
|
|
94
96
|
protected constructor(sourceOfTruth: ListModel<Row>);
|
|
95
97
|
get rowsBeingEdited(): ListModel<Row>;
|
|
96
|
-
|
|
98
|
+
readonly trackBy: (index: number, item: Row) => any;
|
|
97
99
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
98
|
-
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P
|
|
99
|
-
|
|
100
|
+
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
101
|
+
columnId: string;
|
|
102
|
+
}): PropertyColumnModel<Row, P>;
|
|
103
|
+
pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P, options?: {
|
|
104
|
+
columnId: string;
|
|
105
|
+
}): ListPropertyColumnModel<Row, P>;
|
|
100
106
|
addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
|
|
101
107
|
addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
|
|
102
108
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
109
|
+
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
110
|
+
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
103
111
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
104
112
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
105
113
|
getRowClasses(row: Row): string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { Command } from '@coolon/pectin';
|
|
4
|
+
import { CommandFace } from '../../commands/command-face';
|
|
5
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
6
|
+
declare class MenuItemData<T> extends CommandFace.Adapter {
|
|
7
|
+
readonly factory: Command.Factory<T, void>;
|
|
8
|
+
constructor(factory: Command.Factory<T, void>, face: CommandFace);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class TableRowMenuComponent<T> extends DisposableComponent implements OnInit {
|
|
14
|
+
value: T;
|
|
15
|
+
menu: MatMenuTrigger;
|
|
16
|
+
readonly actions: MenuItemData<T>[];
|
|
17
|
+
readonly moreActions: MenuItemData<T>[];
|
|
18
|
+
registerAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
|
|
19
|
+
registerMoreAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
createMoreMenuCommand(item: MenuItemData<T>, value: T): Command<void>;
|
|
23
|
+
private closeMoreMenu;
|
|
24
|
+
}
|
|
25
|
+
export {};
|