@coolon/angular-ui-powerups 2.0.0-alpha.28 → 2.0.0-alpha.3
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 +0 -170
- package/assets/form.scss +4 -5
- package/assets/styles.scss +0 -2
- package/bundles/coolon-angular-ui-powerups.umd.js +339 -1137
- 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 +54 -64
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +52 -62
- 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 +14 -58
- 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 +4 -12
- 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 +6 -51
- 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 +3 -47
- 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/checkbox-input/checkbox-input.component.js +6 -3
- 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 +13 -8
- 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 +6 -3
- 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 +7 -4
- 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 +5 -2
- 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 +7 -3
- 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 +6 -3
- 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 +4 -17
- 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 +1 -12
- 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-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm2015/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm2015/lib/components/table/{cell-portal-ref.metadata.json → cell-protal-ref.metadata.json} +1 -1
- package/esm2015/lib/components/table/column-model.js +11 -66
- 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/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 +10 -11
- 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.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 +7 -2
- 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/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 +8 -2
- 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 +3 -2
- 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 +52 -62
- 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 +14 -58
- 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 +4 -12
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +6 -56
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +3 -52
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js +6 -3
- 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 +13 -8
- 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 +6 -3
- 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 +7 -4
- 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 +5 -2
- 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 +7 -3
- 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 +6 -3
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/components/icon/icon.component.js +3 -15
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -12
- 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-portal-ref.js → cell-protal-ref.js} +3 -7
- package/esm5/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +11 -67
- package/esm5/lib/components/table/column-model.js.map +1 -1
- 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.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 +7 -2
- package/esm5/lib/interaction/components/activity-container/activity-container.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 +8 -2
- 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 +3 -2
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +240 -973
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +269 -1051
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +2 -8
- package/lib/components/forms/abstract-list-input.component.d.ts +3 -10
- package/lib/components/forms/abstract-value-input.component.d.ts +3 -9
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +4 -8
- package/lib/components/forms/number-input/number-input.component.d.ts +2 -0
- package/lib/components/forms/password-input/password-input.component.d.ts +2 -0
- package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -1
- package/lib/components/forms/text-input/text-input.component.d.ts +2 -0
- package/lib/components/icon/icon.component.d.ts +0 -15
- package/lib/components/index.d.ts +1 -13
- package/lib/components/table/cell-editors.d.ts +3 -3
- package/lib/components/table/{cell-portal-ref.d.ts → cell-protal-ref.d.ts} +4 -4
- package/lib/components/table/column-model.d.ts +12 -18
- 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 +4 -12
- package/package.json +4 -4
- package/assets/commands.scss +0 -3
- package/assets/icons.scss +0 -30
- package/esm2015/lib/components/commands/command-bar.component.js +0 -51
- package/esm2015/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.js +0 -20
- package/esm2015/lib/components/commands/command-container.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.js +0 -91
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.js +0 -74
- package/esm2015/lib/components/commands/command-face.js.map +0 -1
- package/esm2015/lib/components/commands/command-face.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.js +0 -38
- package/esm2015/lib/components/commands/command.component.js.map +0 -1
- package/esm2015/lib/components/commands/command.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -50
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +0 -35
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +0 -46
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -62
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -70
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.metadata.json +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm2015/lib/components/table/mutable-cell-renderer.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +0 -82
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.js +0 -31
- package/esm5/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-container.js +0 -30
- package/esm5/lib/components/commands/command-container.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.js +0 -122
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-face.js +0 -103
- package/esm5/lib/components/commands/command-face.js.map +0 -1
- package/esm5/lib/components/commands/command.component.js +0 -41
- package/esm5/lib/components/commands/command.component.js.map +0 -1
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -57
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +0 -30
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +0 -42
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -66
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js +0 -73
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/forms/autocomplete-input/autocomplete-input.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/table/cell-portal-ref.js.map +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js +0 -1
- package/esm5/lib/components/table/mutable-cell-renderer.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +0 -66
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +0 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +0 -1
- package/lib/components/commands/command-bar.component.d.ts +0 -10
- package/lib/components/commands/command-container.d.ts +0 -15
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -29
- package/lib/components/commands/command-face.d.ts +0 -24
- package/lib/components/commands/command.component.d.ts +0 -15
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +0 -15
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +0 -8
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +0 -14
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -21
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +0 -25
- package/lib/components/table/mutable-cell-renderer.d.ts +0 -6
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
-
import { Command,
|
|
3
|
+
import { Command, FocusManager, ListModel, ValueModel } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../disposable-component';
|
|
5
5
|
interface InputModel<T> {
|
|
6
6
|
value: T;
|
|
@@ -9,8 +9,7 @@ interface InputModel<T> {
|
|
|
9
9
|
focusContext: FocusManager.Context;
|
|
10
10
|
}
|
|
11
11
|
export declare class AbstractInputComponent<T> extends DisposableComponent implements OnInit {
|
|
12
|
-
protected
|
|
13
|
-
protected formValueModel: InputModel<T>;
|
|
12
|
+
protected inputModel: InputModel<T>;
|
|
14
13
|
label: string;
|
|
15
14
|
userFloatLabel: 'auto' | 'always' | 'never';
|
|
16
15
|
hint: string;
|
|
@@ -43,10 +42,5 @@ export declare class AbstractInputComponent<T> extends DisposableComponent imple
|
|
|
43
42
|
get focusContext(): FocusManager.Context;
|
|
44
43
|
get floatLabel(): 'auto' | 'always' | 'never';
|
|
45
44
|
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;
|
|
51
45
|
}
|
|
52
46
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Form
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form } 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>;
|
|
6
5
|
/**
|
|
7
6
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
8
7
|
*
|
|
@@ -13,11 +12,5 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
|
|
|
13
12
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
14
13
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
readonly componentListModel: MutableListModel<T>;
|
|
18
|
-
private setValueIsInProgress;
|
|
19
|
-
private listHolder;
|
|
20
|
-
set value(value: T[]);
|
|
21
|
-
readonly valueChange: EventEmitter<T[]>;
|
|
22
|
-
constructor();
|
|
15
|
+
readonly inputModel: Form.DelegatingListModel<T>;
|
|
23
16
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Form
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form } 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>;
|
|
6
5
|
/**
|
|
7
6
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
8
7
|
*
|
|
@@ -13,11 +12,6 @@ export declare class AbstractValueInputComponent<T> extends AbstractInputCompone
|
|
|
13
12
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
14
13
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
protected setValueInProgress: Guard;
|
|
18
|
-
readonly componentValueModel: MutableValueModel<T>;
|
|
19
|
-
private plainValueHolder;
|
|
20
|
-
set value(value: T);
|
|
21
|
-
readonly valueChange: EventEmitter<T>;
|
|
15
|
+
readonly inputModel: Form.DelegatingValueModel<T>;
|
|
22
16
|
constructor();
|
|
23
17
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
2
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
4
|
export declare class CheckboxInputComponent extends AbstractValueInputComponent<boolean> implements OnInit {
|
|
5
|
+
valueModel: Form.ValueModelBase<boolean> | IMutableValueModel<boolean>;
|
|
4
6
|
color: 'primary' | 'warn' | 'accent';
|
|
5
7
|
labelPosition: 'before' | 'after';
|
|
6
8
|
constructor();
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ListModel } from '@coolon/pectin';
|
|
2
|
+
import { Form, IMutableListModel, 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
|
-
*/
|
|
11
4
|
export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
|
|
5
|
+
listModel: Form.ListModelBase<T> | IMutableListModel<T>;
|
|
12
6
|
optionsModel: ListModel<T>;
|
|
13
7
|
options: T[];
|
|
14
8
|
optionLabel: keyof T;
|
|
9
|
+
allowNil: boolean;
|
|
15
10
|
optionTemplateRef: TemplateRef<any>;
|
|
11
|
+
nilOptionTemplateRef: TemplateRef<any>;
|
|
16
12
|
optionLabelFormat: (option: T) => any;
|
|
17
13
|
constructor();
|
|
18
14
|
ngOnInit(): void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
2
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
4
|
export declare class NumberInputComponent extends AbstractValueInputComponent<number> implements OnInit {
|
|
5
|
+
valueModel: Form.ValueModelBase<number> | IMutableValueModel<number>;
|
|
4
6
|
min: number;
|
|
5
7
|
max: number;
|
|
6
8
|
constructor();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
2
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
4
|
export declare class PasswordInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
5
|
+
valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
4
6
|
constructor();
|
|
5
7
|
ngOnInit(): void;
|
|
6
8
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ListModel } from '@coolon/pectin';
|
|
2
|
+
import { IMutableValueModel, ListModel, Form } 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>
|
|
9
8
|
* </aup-select_input>
|
|
10
9
|
*/
|
|
11
10
|
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,7 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Command, ValueModel } from '@coolon/pectin';
|
|
2
|
+
import { Command, Form, IMutableValueModel, 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>;
|
|
5
6
|
enableClearModel: ValueModel<boolean>;
|
|
6
7
|
enableClear: boolean;
|
|
7
8
|
readonly clearCommand: Command<void>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form, IMutableValueModel } from '@coolon/pectin';
|
|
2
3
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
4
|
export declare class TextInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
5
|
+
valueModel: Form.ValueModelBase<string> | IMutableValueModel<string>;
|
|
4
6
|
rows: number;
|
|
5
7
|
cols: number;
|
|
6
8
|
constructor();
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import { Enum } from 'typescript-string-enums';
|
|
2
1
|
export declare class IconComponent {
|
|
3
2
|
_icon: string;
|
|
4
3
|
prefix: string;
|
|
5
4
|
suffix: string;
|
|
6
5
|
errorMessage: string;
|
|
7
|
-
allowedPrefixes: string[];
|
|
8
|
-
iconPrefix: {
|
|
9
|
-
SVG: "svg";
|
|
10
|
-
FONT_AWESOME: "fa";
|
|
11
|
-
MATERIAL: "mat";
|
|
12
|
-
};
|
|
13
6
|
set icon(iconName: string);
|
|
14
7
|
get icon(): string;
|
|
15
8
|
}
|
|
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,20 +6,10 @@ 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";
|
|
18
9
|
export * from "./focus-container/focus-container.component";
|
|
19
10
|
export * from "./forms/abstract-input.component";
|
|
20
11
|
export * from "./forms/abstract-list-input.component";
|
|
21
12
|
export * from "./forms/abstract-value-input.component";
|
|
22
|
-
export * from "./forms/autocomplete-input/autocomplete-input.component";
|
|
23
13
|
export * from "./forms/checkbox-input/checkbox-input.component";
|
|
24
14
|
export * from "./forms/multiple-select-input/multiple-select-input.component";
|
|
25
15
|
export * from "./forms/number-input/number-input.component";
|
|
@@ -33,12 +23,11 @@ export * from "./scroll-container/scroll-container.component";
|
|
|
33
23
|
export * from "./section-header/section-header.component";
|
|
34
24
|
export * from "./switch-case/switch-case.component";
|
|
35
25
|
export * from "./table/cell-editors";
|
|
36
|
-
export * from "./table/cell-
|
|
26
|
+
export * from "./table/cell-protal-ref";
|
|
37
27
|
export * from "./table/cell-renderer";
|
|
38
28
|
export * from "./table/column-model";
|
|
39
29
|
export * from "./table/column-text-properties";
|
|
40
30
|
export * from "./table/edit-session";
|
|
41
|
-
export * from "./table/mutable-cell-renderer";
|
|
42
31
|
export * from "./table/table-def";
|
|
43
32
|
export * from "./table/table-model";
|
|
44
33
|
export * from "./table/table.component";
|
|
@@ -50,7 +39,6 @@ export * from "./table/select-cell-renderer/select-cell-renderer.component";
|
|
|
50
39
|
export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
51
40
|
export * from "./table/table-cell-renderer/table-cell-renderer.component";
|
|
52
41
|
export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
53
|
-
export * from "./table/table-row-menu/table-row-menu.component";
|
|
54
42
|
export * from "./types/bounds.class";
|
|
55
43
|
export * from "./types/dimension.class";
|
|
56
44
|
export * from "./types/point.class";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Form,
|
|
1
|
+
import { Form, ListModel, ValueModel } from '@coolon/pectin';
|
|
2
2
|
export interface CellEditorComponent<T> {
|
|
3
|
-
valueModel:
|
|
3
|
+
valueModel: ValueModel<T> | Form.ValueModelBase<T>;
|
|
4
4
|
requestFocus?(): any;
|
|
5
5
|
}
|
|
6
6
|
export interface CellListEditorComponent<T> {
|
|
7
|
-
listModel:
|
|
7
|
+
listModel: ListModel<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 { EditSession } from './edit-session';
|
|
5
|
-
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
6
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
|
+
import { EditSession } from './edit-session';
|
|
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>) => void;
|
|
30
|
+
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row>) => 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,11 +2,9 @@ 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-
|
|
6
|
-
import { CellRenderer } from './cell-renderer';
|
|
5
|
+
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from './cell-protal-ref';
|
|
7
6
|
import { ColumnTextProperties } from './column-text-properties';
|
|
8
7
|
import { EditSession } from './edit-session';
|
|
9
|
-
import { MutableCellRenderer } from './mutable-cell-renderer';
|
|
10
8
|
import { TableCellRendererComponent } from './table-cell-renderer/table-cell-renderer.component';
|
|
11
9
|
import { TableHeaderCellRendererComponent } from './table-header-cell-renderer/table-header-cell-renderer.component';
|
|
12
10
|
export interface RowData<Row> {
|
|
@@ -14,14 +12,6 @@ export interface RowData<Row> {
|
|
|
14
12
|
editSession?: EditSession<Row>;
|
|
15
13
|
editRowCommand: Command<void>;
|
|
16
14
|
}
|
|
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
|
-
}
|
|
25
15
|
export declare class ColumnModel<Row> {
|
|
26
16
|
readonly columnId: string;
|
|
27
17
|
private defaults;
|
|
@@ -56,13 +46,17 @@ export declare namespace ColumnModel {
|
|
|
56
46
|
getColumnTextProperties(columnModel: ColumnModel<any>): ColumnTextProperties;
|
|
57
47
|
}
|
|
58
48
|
}
|
|
49
|
+
export interface CellEditorOptions<V, C> {
|
|
50
|
+
validators?: Validator<V>[];
|
|
51
|
+
initialiseComponent?(component: C): any;
|
|
52
|
+
}
|
|
59
53
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
60
54
|
readonly property: P;
|
|
61
55
|
private _format;
|
|
62
|
-
constructor(
|
|
63
|
-
cellRenderer
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
57
|
+
cellRenderer(componentType: ComponentType<{
|
|
58
|
+
value: Row[P];
|
|
59
|
+
}>): this;
|
|
66
60
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
|
|
67
61
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
|
|
68
62
|
format(formatter: (value: Row[P]) => any): this;
|
|
@@ -71,7 +65,7 @@ export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<
|
|
|
71
65
|
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
72
66
|
readonly property: P;
|
|
73
67
|
private _format;
|
|
74
|
-
constructor(
|
|
68
|
+
constructor(property: P, defaults: ColumnModel.Defaults);
|
|
75
69
|
cellRenderer(componentType: ComponentType<{
|
|
76
70
|
value: Types.ArrayElementType<Row, P>[];
|
|
77
71
|
}>): this;
|
|
@@ -83,9 +77,9 @@ export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertie
|
|
|
83
77
|
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
84
78
|
private getValue;
|
|
85
79
|
constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
|
|
86
|
-
cellRenderer<
|
|
80
|
+
cellRenderer(componentType: ComponentType<{
|
|
87
81
|
value: V;
|
|
88
|
-
}>
|
|
82
|
+
}>): this;
|
|
89
83
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
90
84
|
}
|
|
91
85
|
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-protal-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-protal-ref';
|
|
5
5
|
export declare class TableHeaderCellRendererComponent implements OnInit {
|
|
6
6
|
column: ColumnModel<any>;
|
|
7
7
|
defaultClassNames: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
1
|
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import {
|
|
4
|
-
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
2
|
+
import { ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
5
3
|
import { ColumnTextProperties } from './column-text-properties';
|
|
6
4
|
import { EditSession } from './edit-session';
|
|
7
5
|
/**
|
|
@@ -95,19 +93,13 @@ export declare class TableModel<Row> {
|
|
|
95
93
|
private _createForm;
|
|
96
94
|
protected constructor(sourceOfTruth: ListModel<Row>);
|
|
97
95
|
get rowsBeingEdited(): ListModel<Row>;
|
|
98
|
-
|
|
96
|
+
getTrackByFunction(): (index: number, item: Row) => any;
|
|
99
97
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
100
|
-
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P,
|
|
101
|
-
|
|
102
|
-
}): PropertyColumnModel<Row, P>;
|
|
103
|
-
pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P, options?: {
|
|
104
|
-
columnId: string;
|
|
105
|
-
}): ListPropertyColumnModel<Row, P>;
|
|
98
|
+
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P): PropertyColumnModel<Row, P>;
|
|
99
|
+
pluckList<P extends Types.ArrayPropertiesOf<Row>>(property: P): ListPropertyColumnModel<Row, P>;
|
|
106
100
|
addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
|
|
107
101
|
addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
|
|
108
102
|
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>;
|
|
111
103
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
112
104
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
113
105
|
getRowClasses(row: Row): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@coolon/typescript-utilities": "^2.0.0",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@angular/platform-browser": "^9.1.9",
|
|
12
12
|
"factory.ts": "^0.5.1",
|
|
13
13
|
"faker": "^4.1.0",
|
|
14
|
+
"immer": "^6.0.5",
|
|
14
15
|
"@angular/platform-browser-dynamic": "^9.1.9",
|
|
15
16
|
"@angular/flex-layout": "^9.0.0-beta.31",
|
|
16
17
|
"@angular/router": "^9.1.9",
|
|
17
18
|
"rxjs": "~6.5.5",
|
|
18
|
-
"reflect-metadata": "^0.1.13"
|
|
19
|
-
"zone.js": "~0.10.2"
|
|
19
|
+
"reflect-metadata": "^0.1.13"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@angular/common": "^9.1.9",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@angular/material": "^9.2.4",
|
|
25
25
|
"@angular/animations": "^9.1.9",
|
|
26
26
|
"@angular/cdk": "^9.2.4",
|
|
27
|
-
"@coolon/pectin": ">=
|
|
27
|
+
"@coolon/pectin": ">=2.9.0",
|
|
28
28
|
"resize-observer-polyfill": "^1.5.1",
|
|
29
29
|
"@fortawesome/angular-fontawesome": "^0.6.1",
|
|
30
30
|
"@fortawesome/fontawesome-svg-core": "^1.2.28",
|
package/assets/commands.scss
DELETED
package/assets/icons.scss
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--aup-icon-width: 24px;
|
|
3
|
-
--aup-fa-icon-width: 18px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
aup-icon {
|
|
8
|
-
// egregious hackery to get the font awesome icons positioning correctly
|
|
9
|
-
--fa-icon-offset: calc((var(--aup-icon-width) - var(--aup-fa-icon-width)) / 2);
|
|
10
|
-
|
|
11
|
-
position: relative;
|
|
12
|
-
fa-icon {
|
|
13
|
-
.svg-inline--fa {
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: var(--fa-icon-offset);
|
|
16
|
-
left: var(--fa-icon-offset);
|
|
17
|
-
width: var(--aup-fa-icon-width) !important;
|
|
18
|
-
height: var(--aup-fa-icon-width) !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// egregious hackery to get the icon to display the same as a mat-icon inside a mat-menu
|
|
24
|
-
.mat-menu-panel {
|
|
25
|
-
aup-icon {
|
|
26
|
-
.svg-inline--fa {
|
|
27
|
-
opacity: 0.54;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var CommandBarComponent_1;
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
3
|
-
import { Component, forwardRef } from '@angular/core';
|
|
4
|
-
import { CommandContainer } from './command-container';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
let CommandBarComponent = CommandBarComponent_1 = class CommandBarComponent extends CommandContainer {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
}
|
|
12
|
-
ngOnInit() {
|
|
13
|
-
}
|
|
14
|
-
getButtonColor(registration) {
|
|
15
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
CommandBarComponent = CommandBarComponent_1 = __decorate([
|
|
19
|
-
Component({
|
|
20
|
-
selector: 'aup-command-bar',
|
|
21
|
-
template: `
|
|
22
|
-
<ng-container *ngFor="let registration of commandRegistrations.value">
|
|
23
|
-
<button *ngIf="registration.faceAdapter.icon && !registration.faceAdapter.text"
|
|
24
|
-
mat-icon-button
|
|
25
|
-
[color]="getButtonColor(registration)"
|
|
26
|
-
[pectinCommand]="registration.command"
|
|
27
|
-
[matTooltip]="registration.faceAdapter.tooltip"
|
|
28
|
-
>
|
|
29
|
-
<aup-command-face [face]="registration.faceAdapter.face"></aup-command-face>
|
|
30
|
-
</button>
|
|
31
|
-
<button *ngIf="registration.faceAdapter.text"
|
|
32
|
-
[color]="getButtonColor(registration)"
|
|
33
|
-
mat-button
|
|
34
|
-
[pectinCommand]="registration.command"
|
|
35
|
-
[matTooltip]="registration.tooltip"
|
|
36
|
-
>
|
|
37
|
-
<aup-command-face [face]="registration.faceAdapter.face"></aup-command-face>
|
|
38
|
-
</button>
|
|
39
|
-
</ng-container>
|
|
40
|
-
`,
|
|
41
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandBarComponent_1) }],
|
|
42
|
-
styles: [`:host {
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
align-items: center;
|
|
46
|
-
}`]
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:paramtypes", [])
|
|
49
|
-
], CommandBarComponent);
|
|
50
|
-
export { CommandBarComponent };
|
|
51
|
-
//# sourceMappingURL=command-bar.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-bar.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-bar.component.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;GAEG;AA8BH,IAAa,mBAAmB,2BAAhC,MAAa,mBAAoB,SAAQ,gBAAgB;IAEvD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,QAAQ;IACR,CAAC;IAED,cAAc,CAAC,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;CAEF,CAAA;AAbY,mBAAmB;IA7B/B,SAAS,CAAC;QACT,QAAQ,EAAE,iBAAiB;QAC3B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;GAmBT;QAMD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,qBAAmB,CAAC,EAAE,CAAC;iBALrF;;;;IAIP;KAEH,CAAC;;GACW,mBAAmB,CAa/B;SAbY,mBAAmB","sourcesContent":["import { Component, forwardRef, OnInit } from '@angular/core';\nimport { CommandContainer } from './command-container';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-command-bar',\n template: `\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n `,\n styles: [`:host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }`],\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandBarComponent) }]\n})\nexport class CommandBarComponent extends CommandContainer implements OnInit {\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.faceAdapter.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandBarComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./command-container","name":"CommandContainer","line":36,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"aup-command-bar","template":"\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n ","styles":[":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"],"providers":[{"provide":{"__symbolic":"reference","module":"./command-container","name":"CommandContainer","line":34,"character":25},"useExisting":{"__symbolic":"reference","name":"CommandBarComponent"}}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"getButtonColor":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-bar.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-bar.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Disposable, GarbageCollector, MutableListModel } from '@coolon/pectin';
|
|
2
|
-
import { CommandFace } from './command-face';
|
|
3
|
-
export class CommandContainer extends GarbageCollector {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
this._commandRegistrations = new MutableListModel();
|
|
7
|
-
}
|
|
8
|
-
get commandRegistrations() {
|
|
9
|
-
return this._commandRegistrations.readonly;
|
|
10
|
-
}
|
|
11
|
-
registerCommand(command, face) {
|
|
12
|
-
const registration = { command, faceAdapter: new CommandFace.Adapter(face) };
|
|
13
|
-
this._commandRegistrations.push(registration);
|
|
14
|
-
return Disposable.disposableThatRuns(() => this._commandRegistrations.remove(registration));
|
|
15
|
-
}
|
|
16
|
-
getDefaultIconPosition() {
|
|
17
|
-
return CommandFace.Position.START;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=command-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-container.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,UAAU,EAAE,gBAAgB,EAAa,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IAIpD;QACE,KAAK,EAAE,CAAC;QAHO,0BAAqB,GAAG,IAAI,gBAAgB,EAAiC,CAAC;IAI/F,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;IAC7C,CAAC;IAED,eAAe,CAAC,OAAyB,EAAE,IAAiB;QAC1D,MAAM,YAAY,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7E,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,OAAO,UAAU,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9F,CAAC;IAED,sBAAsB;QACpB,OAAO,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;IACpC,CAAC;CACF","sourcesContent":["import { Command, Disposable, GarbageCollector, ListModel, MutableListModel } from '@coolon/pectin';\nimport { CommandFace } from './command-face';\n\n\nexport class CommandContainer extends GarbageCollector {\n\n private readonly _commandRegistrations = new MutableListModel<CommandContainer.Registration>();\n\n constructor() {\n super();\n }\n\n get commandRegistrations(): ListModel<CommandContainer.Registration> {\n return this._commandRegistrations.readonly;\n }\n\n registerCommand(command: Command<unknown>, face: CommandFace): Disposable {\n const registration = { command, faceAdapter: new CommandFace.Adapter(face) };\n this._commandRegistrations.push(registration);\n return Disposable.disposableThatRuns(() => this._commandRegistrations.remove(registration));\n }\n\n getDefaultIconPosition(): CommandFace.Position {\n return CommandFace.Position.START;\n }\n}\n\nexport namespace CommandContainer {\n\n export interface Registration {\n readonly command: Command<unknown>;\n readonly faceAdapter: CommandFace.Adapter;\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandContainer":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@coolon/pectin","name":"GarbageCollector","line":4,"character":38},"members":{"__ctor__":[{"__symbolic":"constructor"}],"registerCommand":[{"__symbolic":"method"}],"getDefaultIconPosition":[{"__symbolic":"method"}]}}}}]
|