@coolon/angular-ui-powerups 0.0.6 → 0.0.8
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/bundles/coolon-angular-ui-powerups.umd.js +19 -21
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +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/coolon-angular-ui-powerups.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/lib/animations/index.js +2 -2
- package/esm2015/lib/animations/slideDownAndUpAnimation.js +29 -0
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.js +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/lib/animations/index.js +2 -2
- package/esm5/lib/animations/slideDownAndUpAnimation.js +29 -0
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.js +1 -1
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +21 -22
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +21 -23
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/animations/index.d.ts +1 -1
- package/lib/animations/slideDownAndUpAnimation.d.ts +5 -0
- package/package.json +1 -1
- package/styles/styles.scss +15 -0
- package/esm2015/lib/animations/slideUpDownAnimation.js +0 -29
- package/esm5/lib/animations/slideUpDownAnimation.js +0 -30
- package/lib/animations/slideUpDownAnimation.d.ts +0 -1
|
@@ -1148,7 +1148,7 @@
|
|
|
1148
1148
|
{ type: core.Component, args: [{
|
|
1149
1149
|
selector: 'angular-ui-powerups-alert-dialog',
|
|
1150
1150
|
template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\">{{alert.ok()}}</button>\n</p>\n",
|
|
1151
|
-
styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1151
|
+
styles: [":host{display:block;padding:var(--angular-ui-powerups-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1152
1152
|
}] }
|
|
1153
1153
|
];
|
|
1154
1154
|
/** @nocollapse */
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
{ type: core.Component, args: [{
|
|
1197
1197
|
selector: 'angular-ui-powerups-confirmation-dialog',
|
|
1198
1198
|
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<p matDialogActions>\n <button mat-button (click)=\"cancel()\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\" (click)=\"done(true)\">{{confirm.ok()}}</button>\n</p>\n\n",
|
|
1199
|
-
styles: [":host{display:block;padding:var(--default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1199
|
+
styles: [":host{display:block;padding:var(--angular-ui-powerups-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1200
1200
|
}] }
|
|
1201
1201
|
];
|
|
1202
1202
|
/** @nocollapse */
|
|
@@ -1809,7 +1809,7 @@
|
|
|
1809
1809
|
{ type: core.Component, args: [{
|
|
1810
1810
|
selector: 'angular-ui-powerups-empty-state',
|
|
1811
1811
|
template: "\n <div class=\"container\">\n <ng-content></ng-content>\n </div>\n ",
|
|
1812
|
-
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
1812
|
+
styles: [":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--angular-ui-powerups-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]
|
|
1813
1813
|
}] }
|
|
1814
1814
|
];
|
|
1815
1815
|
/** @nocollapse */
|
|
@@ -2026,28 +2026,26 @@
|
|
|
2026
2026
|
* @fileoverview added by tsickle
|
|
2027
2027
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2028
2028
|
*/
|
|
2029
|
+
/** @type {?} */
|
|
2030
|
+
var defaultHiddenStyleDef = animations$1.style({
|
|
2031
|
+
opacity: 0,
|
|
2032
|
+
'height': '0',
|
|
2033
|
+
paddingTop: '0',
|
|
2034
|
+
paddingBottom: '0'
|
|
2035
|
+
});
|
|
2029
2036
|
/**
|
|
2030
2037
|
* @param {?} triggerName
|
|
2031
|
-
* @param {?=}
|
|
2038
|
+
* @param {?=} options
|
|
2032
2039
|
* @return {?}
|
|
2033
2040
|
*/
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2041
|
+
function slideDownAndUpAnimation(triggerName, options) {
|
|
2042
|
+
/** @type {?} */
|
|
2043
|
+
var duration = pectin.OptionsHelper.get(options).getOptional('duration', '100ms');
|
|
2044
|
+
/** @type {?} */
|
|
2045
|
+
var hiddenStyleDef = pectin.OptionsHelper.get(options).getOptional('hiddenStyleDef', defaultHiddenStyleDef);
|
|
2036
2046
|
return animations$1.trigger(triggerName, [
|
|
2037
|
-
animations$1.
|
|
2038
|
-
|
|
2039
|
-
'overflow': 'hidden',
|
|
2040
|
-
'opacity': '1'
|
|
2041
|
-
})),
|
|
2042
|
-
animations$1.state('false', animations$1.style({
|
|
2043
|
-
'height': '0px',
|
|
2044
|
-
'padding-top': '0px',
|
|
2045
|
-
'padding-bottom': '0px',
|
|
2046
|
-
'overflow': 'hidden',
|
|
2047
|
-
'opacity': '0'
|
|
2048
|
-
})),
|
|
2049
|
-
animations$1.transition('void => *', []),
|
|
2050
|
-
animations$1.transition('* => *', [animations$1.animate(duration)])
|
|
2047
|
+
animations$1.transition(':enter', [hiddenStyleDef, animations$1.animate('100ms')]),
|
|
2048
|
+
animations$1.transition(':leave', [animations$1.animate('100ms', hiddenStyleDef)])
|
|
2051
2049
|
]);
|
|
2052
2050
|
}
|
|
2053
2051
|
|
|
@@ -3398,7 +3396,7 @@
|
|
|
3398
3396
|
exports.RouteParameterSanitiser = RouteParameterSanitiser;
|
|
3399
3397
|
exports.SelectInputComponent = SelectInputComponent;
|
|
3400
3398
|
exports.StringInputComponent = StringInputComponent;
|
|
3401
|
-
exports.
|
|
3399
|
+
exports.slideDownAndUpAnimation = slideDownAndUpAnimation;
|
|
3402
3400
|
exports.ɵa = CommandDirective;
|
|
3403
3401
|
exports.ɵb = FocusBindingDirective;
|
|
3404
3402
|
exports.ɵc = DisposableComponent;
|