@coolon/angular-ui-powerups 3.4.1 → 3.4.2
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 +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +29 -0
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +29 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +29 -0
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +29 -0
- package/package.json +1 -1
|
@@ -3,7 +3,36 @@ import { Component, HostBinding, Input } from '@angular/core';
|
|
|
3
3
|
import { Command, DelegatingCommand, TrackExternal } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
/**
|
|
6
|
+
* @example
|
|
7
|
+
* <aup-activity-actions
|
|
8
|
+
* [confirmCommand]="confirm"
|
|
9
|
+
* [cancelCommand]="cancel"
|
|
10
|
+
* [style]="{confirm: saveFace, cancel: cancelFace}">
|
|
11
|
+
* </aup-activity-actions>
|
|
6
12
|
*
|
|
13
|
+
* // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
|
|
14
|
+
* // style definitions
|
|
15
|
+
* <aup-activity-actions
|
|
16
|
+
* [confirmCommand]="confirm"
|
|
17
|
+
* [cancelCommand]="cancel"
|
|
18
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
19
|
+
* </aup-activity-actions>
|
|
20
|
+
*
|
|
21
|
+
* // both commands are optional
|
|
22
|
+
* <aup-activity-actions
|
|
23
|
+
* [confirmCommand]="confirm"
|
|
24
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
25
|
+
* </aup-activity-actions>
|
|
26
|
+
*
|
|
27
|
+
* // you can also add additional content that will be displayed along with the buttons.
|
|
28
|
+
* // The location of the content depends on the alignment attribute.
|
|
29
|
+
* <aup-activity-actions
|
|
30
|
+
* [confirmCommand]="confirm"
|
|
31
|
+
* [cancelCommand]="cancel"
|
|
32
|
+
* align="stretch"
|
|
33
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
34
|
+
* <span>This content will be between the two commands</span>
|
|
35
|
+
* </aup-activity-actions>
|
|
7
36
|
*/
|
|
8
37
|
export class ActivityActionsComponent extends DisposableComponent {
|
|
9
38
|
constructor() {
|
package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-actions.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/interaction/components/activity-actions/activity-actions.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"activity-actions.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/interaction/components/activity-actions/activity-actions.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAMH,MAAM,OAAO,wBAAyB,SAAQ,mBAAmB;IALjE;;QAmBE,UAAK,GAAgC,OAAO,CAAC;IAuB/C,CAAC;IArBC,IACI,QAAQ;QACV,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAA;IAC7B,CAAC;IAED,IACI,YAAY;QACd,OAAO,IAAI,CAAC,KAAK,KAAK,SAAS,CAAA;IACjC,CAAC;IAED,QAAQ;IACR,CAAC;IAED,iBAAiB;QACf,OAAO,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAC3D,CAAC;IAED,gBAAgB;QACd,OAAO,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC1D,CAAC;;;YAxCF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,kZAAgD;;aAEjD;;;6BAGE,KAAK;4BAIL,KAAK;oBAIL,KAAK;oBAGL,KAAK;uBAGL,WAAW,SAAC,iBAAiB;2BAK7B,WAAW,SAAC,qBAAqB;;AAjBlC;IADC,aAAa,EAAE;8BACA,OAAO;gEAAM;AAI7B;IADC,aAAa,EAAE;8BACD,OAAO;+DAAM","sourcesContent":["import { Component, HostBinding, Input, OnInit } from '@angular/core';\nimport { Command, DelegatingCommand, TrackExternal } from '@coolon/pectin';\nimport _ from 'lodash';\nimport { CommandFace } from '../../../components/commands/command-face';\nimport { DisposableComponent } from '../../../components/disposable-component';\n\n/**\n * @example\n * <aup-activity-actions\n * [confirmCommand]=\"confirm\"\n * [cancelCommand]=\"cancel\"\n * [style]=\"{confirm: saveFace, cancel: cancelFace}\">\n * </aup-activity-actions>\n *\n * // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default\n * // style definitions\n * <aup-activity-actions\n * [confirmCommand]=\"confirm\"\n * [cancelCommand]=\"cancel\"\n * [style]=\"I18n.aup.components.activityActions.styles.okCancelIcons\">\n * </aup-activity-actions>\n *\n * // both commands are optional\n * <aup-activity-actions\n * [confirmCommand]=\"confirm\"\n * [style]=\"I18n.aup.components.activityActions.styles.okCancelIcons\">\n * </aup-activity-actions>\n *\n * // you can also add additional content that will be displayed along with the buttons.\n * // The location of the content depends on the alignment attribute.\n * <aup-activity-actions\n * [confirmCommand]=\"confirm\"\n * [cancelCommand]=\"cancel\"\n * align=\"stretch\"\n * [style]=\"I18n.aup.components.activityActions.styles.okCancelIcons\">\n * <span>This content will be between the two commands</span>\n * </aup-activity-actions>\n */\n@Component({\n selector: 'aup-activity-actions',\n templateUrl: './activity-actions.component.html',\n styleUrls: ['./activity-actions.component.scss']\n})\nexport class ActivityActionsComponent extends DisposableComponent implements OnInit {\n\n @Input()\n @TrackExternal()\n confirmCommand: Command<any>;\n\n @Input()\n @TrackExternal()\n cancelCommand: Command<any>;\n\n @Input()\n style: ActivityActionsComponent.Style;\n\n @Input()\n align: 'start' | 'end' | 'stretch' = 'start';\n\n @HostBinding('class.align-end')\n get alignEnd():boolean {\n return this.align === 'end'\n }\n\n @HostBinding('class.align-stretch')\n get alignStretch():boolean {\n return this.align === 'stretch'\n }\n\n ngOnInit() {\n }\n\n hasConfirmCommand() {\n return DelegatingCommand.hasDelegate(this.confirmCommand)\n }\n\n hasCancelCommand() {\n return DelegatingCommand.hasDelegate(this.cancelCommand)\n }\n\n}\n\nexport namespace ActivityActionsComponent {\n export interface Style {\n confirm: CommandFace;\n cancel: CommandFace;\n }\n}\n"]}
|
package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ActivityActionsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../components/disposable-component","name":"DisposableComponent","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ActivityActionsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../components/disposable-component","name":"DisposableComponent","line":43,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":38,"character":1},"arguments":[{"selector":"aup-activity-actions","template":"<ng-container *ngIf=\"hasCancelCommand()\">\n <aup-command class=\"cancel\" [command]=\"cancelCommand\" [face]=\"style.cancel\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmCommand()\">\n <aup-command class=\"confirm\" [command]=\"confirmCommand\" [face]=\"style.confirm\"></aup-command>\n</ng-container>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n","styles":[":host{-ms-grid-columns:auto auto 1fr;-ms-grid-rows:auto;align-items:center;display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr;grid-template-rows:auto;justify-content:end}:host.align-end{-ms-grid-columns:1fr auto auto;grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host.align-stretch{-ms-grid-columns:auto 1fr auto;grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}.cancel{-ms-grid-column:1;-ms-grid-row:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-column:2;-ms-grid-row:1}:host.align-stretch>.cancel{-ms-grid-column:1;-ms-grid-row:1}.confirm{-ms-grid-column:2;-ms-grid-row:1;grid-area:confirm}.column,:host.align-end>.confirm,:host.align-stretch>.confirm{-ms-grid-column:3;-ms-grid-row:1}.column{grid-area:content;text-align:left}:host.align-end>.column{-ms-grid-column:1;-ms-grid-row:1}:host.align-stretch>.column{-ms-grid-column:2;-ms-grid-row:1}"]}]}],"members":{"confirmCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":46,"character":3}}]}],"cancelCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":50,"character":3}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"align":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"alignEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":59,"character":3},"arguments":["class.align-end"]}]}],"alignStretch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":64,"character":3},"arguments":["class.align-stretch"]}]}],"ngOnInit":[{"__symbolic":"method"}],"hasConfirmCommand":[{"__symbolic":"method"}],"hasCancelCommand":[{"__symbolic":"method"}]}}}}]
|
|
@@ -3167,7 +3167,36 @@ Activity.propDecorators = {
|
|
|
3167
3167
|
};
|
|
3168
3168
|
|
|
3169
3169
|
/**
|
|
3170
|
+
* @example
|
|
3171
|
+
* <aup-activity-actions
|
|
3172
|
+
* [confirmCommand]="confirm"
|
|
3173
|
+
* [cancelCommand]="cancel"
|
|
3174
|
+
* [style]="{confirm: saveFace, cancel: cancelFace}">
|
|
3175
|
+
* </aup-activity-actions>
|
|
3176
|
+
*
|
|
3177
|
+
* // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
|
|
3178
|
+
* // style definitions
|
|
3179
|
+
* <aup-activity-actions
|
|
3180
|
+
* [confirmCommand]="confirm"
|
|
3181
|
+
* [cancelCommand]="cancel"
|
|
3182
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
3183
|
+
* </aup-activity-actions>
|
|
3184
|
+
*
|
|
3185
|
+
* // both commands are optional
|
|
3186
|
+
* <aup-activity-actions
|
|
3187
|
+
* [confirmCommand]="confirm"
|
|
3188
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
3189
|
+
* </aup-activity-actions>
|
|
3170
3190
|
*
|
|
3191
|
+
* // you can also add additional content that will be displayed along with the buttons.
|
|
3192
|
+
* // The location of the content depends on the alignment attribute.
|
|
3193
|
+
* <aup-activity-actions
|
|
3194
|
+
* [confirmCommand]="confirm"
|
|
3195
|
+
* [cancelCommand]="cancel"
|
|
3196
|
+
* align="stretch"
|
|
3197
|
+
* [style]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
3198
|
+
* <span>This content will be between the two commands</span>
|
|
3199
|
+
* </aup-activity-actions>
|
|
3171
3200
|
*/
|
|
3172
3201
|
class ActivityActionsComponent extends DisposableComponent {
|
|
3173
3202
|
constructor() {
|