@colijnit/corecomponents_v12 12.0.76 → 12.0.77
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/colijnit-corecomponents_v12.umd.js +105 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +1 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +2 -1
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.component.js +87 -0
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.module.js +19 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-corecomponents_v12.js +102 -1
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/checkmark-overlay/checkmark-overlay.component.d.ts +17 -0
- package/lib/components/checkmark-overlay/checkmark-overlay.module.d.ts +2 -0
- package/lib/components/checkmark-overlay/style/_layout.scss +118 -0
- package/lib/components/checkmark-overlay/style/_material-definition.scss +2 -0
- package/lib/components/checkmark-overlay/style/_theme.scss +20 -0
- package/lib/components/checkmark-overlay/style/material.scss +4 -0
- package/lib/components/simple-grid/style/_layout.scss +1 -0
- package/lib/components/simple-grid/style/_material-definition.scss +2 -0
- package/lib/components/simple-grid/style/_theme.scss +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -11427,6 +11427,109 @@
|
|
|
11427
11427
|
},] }
|
|
11428
11428
|
];
|
|
11429
11429
|
|
|
11430
|
+
var CheckmarkOverlayComponent = /** @class */ (function () {
|
|
11431
|
+
function CheckmarkOverlayComponent(_renderer) {
|
|
11432
|
+
var _this = this;
|
|
11433
|
+
this._renderer = _renderer;
|
|
11434
|
+
this.showOverlay = false;
|
|
11435
|
+
this.showWrapper = false;
|
|
11436
|
+
this._visible = false;
|
|
11437
|
+
this._handleAnimationIteration = function (event) {
|
|
11438
|
+
_this.animateDivs.forEach(function (a) { return _this._renderer.removeClass(a.nativeElement, 'animate'); });
|
|
11439
|
+
event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
|
|
11440
|
+
};
|
|
11441
|
+
}
|
|
11442
|
+
Object.defineProperty(CheckmarkOverlayComponent.prototype, "content", {
|
|
11443
|
+
set: function (children) {
|
|
11444
|
+
this.animateDivs = children.toArray();
|
|
11445
|
+
this._checkAnimation();
|
|
11446
|
+
},
|
|
11447
|
+
enumerable: false,
|
|
11448
|
+
configurable: true
|
|
11449
|
+
});
|
|
11450
|
+
Object.defineProperty(CheckmarkOverlayComponent.prototype, "visible", {
|
|
11451
|
+
get: function () {
|
|
11452
|
+
return this._visible;
|
|
11453
|
+
},
|
|
11454
|
+
set: function (value) {
|
|
11455
|
+
var _this = this;
|
|
11456
|
+
if (value) {
|
|
11457
|
+
this.showOverlay = true;
|
|
11458
|
+
this.showWrapper = true;
|
|
11459
|
+
}
|
|
11460
|
+
else {
|
|
11461
|
+
setTimeout(function () { return _this.showOverlay = false; }, 800);
|
|
11462
|
+
setTimeout(function () { return _this.showWrapper = false; }, 600);
|
|
11463
|
+
}
|
|
11464
|
+
this._visible = value;
|
|
11465
|
+
this._checkAnimation();
|
|
11466
|
+
this._checkAnimationFinished();
|
|
11467
|
+
},
|
|
11468
|
+
enumerable: false,
|
|
11469
|
+
configurable: true
|
|
11470
|
+
});
|
|
11471
|
+
CheckmarkOverlayComponent.prototype.showClass = function () {
|
|
11472
|
+
return true;
|
|
11473
|
+
};
|
|
11474
|
+
CheckmarkOverlayComponent.prototype._checkAnimation = function () {
|
|
11475
|
+
var _this = this;
|
|
11476
|
+
if (this.visible && this.animateDivs) {
|
|
11477
|
+
this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
|
|
11478
|
+
}
|
|
11479
|
+
};
|
|
11480
|
+
CheckmarkOverlayComponent.prototype._checkAnimationFinished = function () {
|
|
11481
|
+
var _this = this;
|
|
11482
|
+
if (!this.visible && this.animateDivs) {
|
|
11483
|
+
this.animateDivs.forEach(function (a) {
|
|
11484
|
+
a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
|
|
11485
|
+
});
|
|
11486
|
+
}
|
|
11487
|
+
};
|
|
11488
|
+
return CheckmarkOverlayComponent;
|
|
11489
|
+
}());
|
|
11490
|
+
CheckmarkOverlayComponent.decorators = [
|
|
11491
|
+
{ type: i0.Component, args: [{
|
|
11492
|
+
selector: "co-checkmark-overlay",
|
|
11493
|
+
template: "\n <div *ngIf=\"showOverlay\">\n <div class=\"checkmark-overlay-wrapper\" *ngIf=\"showWrapper\" @showHideSaveCancel>\n <div class=\"checkmark-buttons-button save\" [class.finished]=\"!visible\">\n <div class=\"save-button-spinner\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!visible && successful\"></div>\n </div>\n </div>\n </div>\n ",
|
|
11494
|
+
animations: [
|
|
11495
|
+
animations.trigger('showHideSaveCancel', [
|
|
11496
|
+
animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
11497
|
+
animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
11498
|
+
animations.transition('void <=> *', animations.animate(200))
|
|
11499
|
+
]),
|
|
11500
|
+
],
|
|
11501
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11502
|
+
},] }
|
|
11503
|
+
];
|
|
11504
|
+
CheckmarkOverlayComponent.ctorParameters = function () { return [
|
|
11505
|
+
{ type: i0.Renderer2 }
|
|
11506
|
+
]; };
|
|
11507
|
+
CheckmarkOverlayComponent.propDecorators = {
|
|
11508
|
+
content: [{ type: i0.ViewChildren, args: ['animatediv', { read: i0.ElementRef },] }],
|
|
11509
|
+
visible: [{ type: i0.Input }],
|
|
11510
|
+
successful: [{ type: i0.Input }],
|
|
11511
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-checkmark-overlay",] }]
|
|
11512
|
+
};
|
|
11513
|
+
|
|
11514
|
+
var CheckmarkOverlayModule = /** @class */ (function () {
|
|
11515
|
+
function CheckmarkOverlayModule() {
|
|
11516
|
+
}
|
|
11517
|
+
return CheckmarkOverlayModule;
|
|
11518
|
+
}());
|
|
11519
|
+
CheckmarkOverlayModule.decorators = [
|
|
11520
|
+
{ type: i0.NgModule, args: [{
|
|
11521
|
+
imports: [
|
|
11522
|
+
common.CommonModule
|
|
11523
|
+
],
|
|
11524
|
+
declarations: [
|
|
11525
|
+
CheckmarkOverlayComponent
|
|
11526
|
+
],
|
|
11527
|
+
exports: [
|
|
11528
|
+
CheckmarkOverlayComponent
|
|
11529
|
+
]
|
|
11530
|
+
},] }
|
|
11531
|
+
];
|
|
11532
|
+
|
|
11430
11533
|
var ColorSequenceService = /** @class */ (function () {
|
|
11431
11534
|
function ColorSequenceService() {
|
|
11432
11535
|
this.colors = new Map();
|
|
@@ -11471,6 +11574,7 @@
|
|
|
11471
11574
|
exports.CarouselComponent = CarouselComponent;
|
|
11472
11575
|
exports.CarouselHammerConfig = CarouselHammerConfig;
|
|
11473
11576
|
exports.CarouselModule = CarouselModule;
|
|
11577
|
+
exports.CheckmarkOverlayModule = CheckmarkOverlayModule;
|
|
11474
11578
|
exports.ClickoutsideModule = ClickoutsideModule;
|
|
11475
11579
|
exports.CoDialogComponent = CoDialogComponent;
|
|
11476
11580
|
exports.CoDialogModule = CoDialogModule;
|
|
@@ -11568,6 +11672,7 @@
|
|
|
11568
11672
|
exports["ɵbe"] = PrependPipe;
|
|
11569
11673
|
exports["ɵbf"] = ClickOutsideDirective;
|
|
11570
11674
|
exports["ɵbg"] = ClickOutsideMasterService;
|
|
11675
|
+
exports["ɵbh"] = CheckmarkOverlayComponent;
|
|
11571
11676
|
exports["ɵc"] = CoRippleDirective;
|
|
11572
11677
|
exports["ɵd"] = CoViewportRulerService;
|
|
11573
11678
|
exports["ɵe"] = CoScrollDispatcherService;
|