@colijnit/corecomponents_v12 12.0.20 → 12.0.21
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 +224 -83
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +14 -16
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +15 -17
- package/esm2015/lib/components/base/base-input.component.js +140 -47
- package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +12 -6
- package/esm2015/lib/components/collapsible/collapsible.component.js +10 -2
- package/esm2015/lib/components/form/form.component.js +17 -17
- package/esm2015/lib/components/input-text/input-text.component.js +13 -1
- package/esm2015/lib/components/validation-error/validation-error.module.js +1 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +184 -67
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +19 -6
- package/lib/components/form/form.component.d.ts +0 -1
- package/lib/components/input-checkbox/style/_material-definition.scss +1 -2
- package/lib/components/input-checkbox/style/material.scss +2 -0
- package/lib/components/input-text/style/_layout.scss +32 -0
- package/lib/components/input-text/style/_material-definition.scss +3 -0
- package/lib/components/input-text/style/_theme.scss +16 -0
- package/lib/style/_input.mixins.scss +1 -1
- package/lib/style/_variables.scss +27 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -2972,7 +2972,14 @@
|
|
|
2972
2972
|
CollapsibleComponent.decorators = [
|
|
2973
2973
|
{ type: core.Component, args: [{
|
|
2974
2974
|
selector: "co-collapsible",
|
|
2975
|
-
template: "\n <div class=\"collapsible-header\" [class.end]=\"expandButtonLast\" (click)=\"changeExpanded()\">\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"!expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n <div class=\"collapsible-title\" [textContent]=\"headerTitle\"></div>\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n </div>\n <div class=\"collapsible-content\" *ngIf=\"expanded\">\n <ng-content></ng-content>\n </div>\n ",
|
|
2975
|
+
template: "\n <div class=\"collapsible-header\" [class.end]=\"expandButtonLast\" (click)=\"changeExpanded()\">\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"!expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n <div class=\"collapsible-title\" [textContent]=\"headerTitle\"></div>\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n </div>\n <div class=\"collapsible-content\" *ngIf=\"expanded\" @showHideContent>\n <ng-content></ng-content>\n </div>\n ",
|
|
2976
|
+
animations: [
|
|
2977
|
+
animations.trigger('showHideContent', [
|
|
2978
|
+
animations.state('*', animations.style({ height: '*' })),
|
|
2979
|
+
animations.state('void', animations.style({ height: 0 })),
|
|
2980
|
+
animations.transition('void <=> *', animations.animate(200))
|
|
2981
|
+
]),
|
|
2982
|
+
],
|
|
2976
2983
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2977
2984
|
encapsulation: core.ViewEncapsulation.None
|
|
2978
2985
|
},] }
|
|
@@ -3140,10 +3147,13 @@
|
|
|
3140
3147
|
this.formUserChangeListener = formUserChangeListener;
|
|
3141
3148
|
this.ngZoneWrapper = ngZoneWrapper;
|
|
3142
3149
|
this.elementRef = elementRef;
|
|
3150
|
+
this.showSaveCancel = false;
|
|
3143
3151
|
this.noValidation = false;
|
|
3144
3152
|
this.forceRequired = false; // a force outside of [cfgName]'s influence
|
|
3145
3153
|
// Goal: ability to emulate the red background of input fields (form-submitted invalid state)
|
|
3146
3154
|
this.redErrorBackground = false;
|
|
3155
|
+
// @Output()
|
|
3156
|
+
// public commit: EventEmitter<any> = new EventEmitter<any>();
|
|
3147
3157
|
this.nativeBlur = new core.EventEmitter();
|
|
3148
3158
|
this.blur = new core.EventEmitter();
|
|
3149
3159
|
// emits when the enter button on keyboard was pressed while this form input had focussed
|
|
@@ -3162,12 +3172,21 @@
|
|
|
3162
3172
|
this.fullWidth = false;
|
|
3163
3173
|
this.excludeUserModelChange = false;
|
|
3164
3174
|
this.noFormGroupControl = false;
|
|
3175
|
+
this.keepFocus = false;
|
|
3176
|
+
this.canSaveOrCancel = false;
|
|
3165
3177
|
this._markedAsUserTouched = false;
|
|
3166
3178
|
this._destroyed = false;
|
|
3167
3179
|
this._hasOnPushCdStrategy = false;
|
|
3180
|
+
this._initialModelSet = false;
|
|
3168
3181
|
this._forceReadonly = undefined;
|
|
3169
3182
|
this._validators = [];
|
|
3170
3183
|
this._asyncValidators = [];
|
|
3184
|
+
// descendents should override this
|
|
3185
|
+
this.commit = function (model) { return __awaiter(_this, void 0, void 0, function () {
|
|
3186
|
+
return __generator(this, function (_a) {
|
|
3187
|
+
return [2 /*return*/, Promise.resolve(true)];
|
|
3188
|
+
});
|
|
3189
|
+
}); };
|
|
3171
3190
|
BaseInputComponent.BaseFormInputComponentIndex++;
|
|
3172
3191
|
this.name = BaseInputComponent.BaseFormInputComponentIndex.toString();
|
|
3173
3192
|
if (this.formUserChangeListener) {
|
|
@@ -3193,7 +3212,12 @@
|
|
|
3193
3212
|
return this._model;
|
|
3194
3213
|
},
|
|
3195
3214
|
set: function (value) {
|
|
3215
|
+
if (!this._initialModelSet) {
|
|
3216
|
+
this._initialModel = this._model;
|
|
3217
|
+
this._initialModelSet = true;
|
|
3218
|
+
}
|
|
3196
3219
|
this._model = value;
|
|
3220
|
+
this.canSaveOrCancel = this._model !== this._initialModel;
|
|
3197
3221
|
this._clearErrorComponent();
|
|
3198
3222
|
},
|
|
3199
3223
|
enumerable: false,
|
|
@@ -3414,6 +3438,30 @@
|
|
|
3414
3438
|
enumerable: false,
|
|
3415
3439
|
configurable: true
|
|
3416
3440
|
});
|
|
3441
|
+
BaseInputComponent.prototype.onClick = function (event) {
|
|
3442
|
+
if (this.canChange && !this.noClickFocus) {
|
|
3443
|
+
this.requestFocus();
|
|
3444
|
+
if (!this.excludeUserModelChange) {
|
|
3445
|
+
this.markAsUserTouched();
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
};
|
|
3449
|
+
BaseInputComponent.prototype.onFocusIn = function () {
|
|
3450
|
+
if (!this.excludeUserModelChange) {
|
|
3451
|
+
this.markAsUserTouched();
|
|
3452
|
+
}
|
|
3453
|
+
};
|
|
3454
|
+
BaseInputComponent.prototype.handleDocumentScroll = function () {
|
|
3455
|
+
this._positionValidationError();
|
|
3456
|
+
};
|
|
3457
|
+
BaseInputComponent.prototype.handleWindowResize = function () {
|
|
3458
|
+
this._positionValidationError();
|
|
3459
|
+
};
|
|
3460
|
+
BaseInputComponent.prototype.handleKeyDown = function (event) {
|
|
3461
|
+
if (this.showSaveCancel && this.canSaveOrCancel) {
|
|
3462
|
+
this._handleKeyDown(event);
|
|
3463
|
+
}
|
|
3464
|
+
};
|
|
3417
3465
|
Object.defineProperty(BaseInputComponent.prototype, "canChange", {
|
|
3418
3466
|
get: function () {
|
|
3419
3467
|
return !this.readonly && !this.disabled;
|
|
@@ -3447,18 +3495,6 @@
|
|
|
3447
3495
|
this._modelChangeSub = this.modelChange.subscribe(function (val) {
|
|
3448
3496
|
_this.model = val;
|
|
3449
3497
|
});
|
|
3450
|
-
var iOptions = {
|
|
3451
|
-
trackVisibility: true,
|
|
3452
|
-
// 🆕 Set a minimum delay between notifications
|
|
3453
|
-
delay: 100,
|
|
3454
|
-
// root: document,
|
|
3455
|
-
// rootMargin: "1px",
|
|
3456
|
-
threshold: 1
|
|
3457
|
-
};
|
|
3458
|
-
this.intersectionObserver = new IntersectionObserver(function (entries, observer) { return _this._handleElementPositionChange(entries, observer); }, iOptions);
|
|
3459
|
-
// if (this.speechInput) {
|
|
3460
|
-
// this._subscribeToSpeechInput();
|
|
3461
|
-
// }
|
|
3462
3498
|
};
|
|
3463
3499
|
BaseInputComponent.prototype.ngAfterViewInit = function () {
|
|
3464
3500
|
var _this = this;
|
|
@@ -3478,8 +3514,8 @@
|
|
|
3478
3514
|
BaseInputComponent.prototype.ngOnDestroy = function () {
|
|
3479
3515
|
var _this = this;
|
|
3480
3516
|
if (this.input) {
|
|
3481
|
-
this.input.removeEventListener('blur', function () { return _this.doBlur(); });
|
|
3482
|
-
this.input.removeEventListener('focus', function () { return _this.doFocus(); });
|
|
3517
|
+
this.input.removeEventListener('blur', function (event) { return _this.doBlur(event); });
|
|
3518
|
+
this.input.removeEventListener('focus', function (event) { return _this.doFocus(event); });
|
|
3483
3519
|
}
|
|
3484
3520
|
this._destroyed = true;
|
|
3485
3521
|
this._clearErrorComponent();
|
|
@@ -3506,18 +3542,38 @@
|
|
|
3506
3542
|
this.changeDetector = undefined;
|
|
3507
3543
|
this.input = undefined;
|
|
3508
3544
|
};
|
|
3545
|
+
BaseInputComponent.prototype.commitClick = function (event) {
|
|
3546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3547
|
+
return __generator(this, function (_a) {
|
|
3548
|
+
switch (_a.label) {
|
|
3549
|
+
case 0:
|
|
3550
|
+
this.keepFocus = true;
|
|
3551
|
+
return [4 /*yield*/, this.commit(this.model)];
|
|
3552
|
+
case 1:
|
|
3553
|
+
_a.sent();
|
|
3554
|
+
this.keepFocus = false;
|
|
3555
|
+
this.doBlur(event);
|
|
3556
|
+
return [2 /*return*/];
|
|
3557
|
+
}
|
|
3558
|
+
});
|
|
3559
|
+
});
|
|
3560
|
+
};
|
|
3561
|
+
BaseInputComponent.prototype.cancelClick = function (event) {
|
|
3562
|
+
this.keepFocus = true;
|
|
3563
|
+
if (this._initialModelSet) {
|
|
3564
|
+
this.model = this._initialModel;
|
|
3565
|
+
}
|
|
3566
|
+
this.keepFocus = false;
|
|
3567
|
+
};
|
|
3509
3568
|
BaseInputComponent.prototype.showValidationError = function (error) {
|
|
3510
3569
|
if (this.validationErrorContainer) {
|
|
3511
3570
|
if (this._errorValidationComponent) {
|
|
3512
3571
|
this._clearErrorComponent();
|
|
3513
3572
|
}
|
|
3514
|
-
var clientRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
3515
3573
|
var componentFactory = this.componentFactoryResolver.resolveComponentFactory(ValidationErrorComponent);
|
|
3516
3574
|
this._errorValidationComponent = this.validationErrorContainer.createComponent(componentFactory);
|
|
3517
|
-
this._errorValidationComponent.instance.top = clientRect.bottom;
|
|
3518
|
-
this._errorValidationComponent.instance.left = clientRect.left;
|
|
3519
3575
|
this._errorValidationComponent.instance.error = error;
|
|
3520
|
-
this.
|
|
3576
|
+
this._positionValidationError();
|
|
3521
3577
|
}
|
|
3522
3578
|
};
|
|
3523
3579
|
/**
|
|
@@ -3535,32 +3591,34 @@
|
|
|
3535
3591
|
this.detectChanges();
|
|
3536
3592
|
}
|
|
3537
3593
|
};
|
|
3538
|
-
BaseInputComponent.prototype.onClick = function (event) {
|
|
3539
|
-
if (this.canChange && !this.noClickFocus) {
|
|
3540
|
-
this.requestFocus();
|
|
3541
|
-
if (!this.excludeUserModelChange) {
|
|
3542
|
-
this.markAsUserTouched();
|
|
3543
|
-
}
|
|
3544
|
-
}
|
|
3545
|
-
};
|
|
3546
|
-
BaseInputComponent.prototype.onFocusIn = function () {
|
|
3547
|
-
if (!this.excludeUserModelChange) {
|
|
3548
|
-
this.markAsUserTouched();
|
|
3549
|
-
}
|
|
3550
|
-
};
|
|
3551
3594
|
BaseInputComponent.prototype.requestFocus = function () {
|
|
3552
3595
|
if (this.canChange && this.input) {
|
|
3553
3596
|
this.input.focus();
|
|
3554
3597
|
this.focused = true;
|
|
3555
3598
|
}
|
|
3556
3599
|
};
|
|
3557
|
-
BaseInputComponent.prototype.doFocus = function () {
|
|
3600
|
+
BaseInputComponent.prototype.doFocus = function (event) {
|
|
3601
|
+
if (this.disabled) {
|
|
3602
|
+
return;
|
|
3603
|
+
}
|
|
3604
|
+
this._initialModelSet = false;
|
|
3558
3605
|
this.focused = true;
|
|
3606
|
+
this.canSaveOrCancel = false;
|
|
3559
3607
|
this.focus.next();
|
|
3560
3608
|
};
|
|
3561
|
-
BaseInputComponent.prototype.doBlur = function () {
|
|
3562
|
-
|
|
3563
|
-
|
|
3609
|
+
BaseInputComponent.prototype.doBlur = function (event) {
|
|
3610
|
+
var _this = this;
|
|
3611
|
+
setTimeout(function () {
|
|
3612
|
+
if (_this.keepFocus) {
|
|
3613
|
+
if (event) {
|
|
3614
|
+
event.preventDefault;
|
|
3615
|
+
}
|
|
3616
|
+
return false;
|
|
3617
|
+
}
|
|
3618
|
+
_this.focused = false;
|
|
3619
|
+
_this.input.blur();
|
|
3620
|
+
_this.blur.next();
|
|
3621
|
+
}, 200);
|
|
3564
3622
|
};
|
|
3565
3623
|
BaseInputComponent.prototype.detectChanges = function () {
|
|
3566
3624
|
if (!this._destroyed) {
|
|
@@ -3678,9 +3736,6 @@
|
|
|
3678
3736
|
this._errorValidationComponent.destroy();
|
|
3679
3737
|
this._errorValidationComponent = undefined;
|
|
3680
3738
|
}
|
|
3681
|
-
if (this.elementRef && this.elementRef.nativeElement) {
|
|
3682
|
-
this.intersectionObserver.unobserve(this.elementRef.nativeElement);
|
|
3683
|
-
}
|
|
3684
3739
|
}
|
|
3685
3740
|
};
|
|
3686
3741
|
// whether this.ngModel.control has safe access
|
|
@@ -3748,8 +3803,8 @@
|
|
|
3748
3803
|
//try to find input element
|
|
3749
3804
|
this.input = this._findInputNode(this.elementRef.nativeElement.children);
|
|
3750
3805
|
if (this.input) {
|
|
3751
|
-
this.input.addEventListener('blur', function () { return _this.doBlur(); });
|
|
3752
|
-
this.input.addEventListener('focus', function () { return _this.doFocus(); });
|
|
3806
|
+
this.input.addEventListener('blur', function (event) { return _this.doBlur(event); });
|
|
3807
|
+
this.input.addEventListener('focus', function (event) { return _this.doFocus(event); });
|
|
3753
3808
|
}
|
|
3754
3809
|
}
|
|
3755
3810
|
};
|
|
@@ -3764,10 +3819,78 @@
|
|
|
3764
3819
|
}
|
|
3765
3820
|
}
|
|
3766
3821
|
};
|
|
3767
|
-
BaseInputComponent.prototype.
|
|
3768
|
-
if (this.
|
|
3769
|
-
|
|
3770
|
-
this._errorValidationComponent.instance.
|
|
3822
|
+
BaseInputComponent.prototype._positionValidationError = function () {
|
|
3823
|
+
if (this.elementRef && this.elementRef.nativeElement && this._errorValidationComponent) {
|
|
3824
|
+
var clientRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
3825
|
+
this._errorValidationComponent.instance.top = clientRect.bottom;
|
|
3826
|
+
this._errorValidationComponent.instance.left = clientRect.left;
|
|
3827
|
+
}
|
|
3828
|
+
};
|
|
3829
|
+
BaseInputComponent.prototype._handleKeyDown = function (event) {
|
|
3830
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3831
|
+
var _a, nextSiblingToFocus;
|
|
3832
|
+
return __generator(this, function (_b) {
|
|
3833
|
+
switch (_b.label) {
|
|
3834
|
+
case 0:
|
|
3835
|
+
_a = event.code;
|
|
3836
|
+
switch (_a) {
|
|
3837
|
+
case 'Enter': return [3 /*break*/, 1];
|
|
3838
|
+
case 'Tab': return [3 /*break*/, 3];
|
|
3839
|
+
case 'Escape': return [3 /*break*/, 5];
|
|
3840
|
+
}
|
|
3841
|
+
return [3 /*break*/, 6];
|
|
3842
|
+
case 1:
|
|
3843
|
+
event.preventDefault();
|
|
3844
|
+
return [4 /*yield*/, this.commitClick()];
|
|
3845
|
+
case 2:
|
|
3846
|
+
_b.sent();
|
|
3847
|
+
return [2 /*return*/, false];
|
|
3848
|
+
case 3:
|
|
3849
|
+
nextSiblingToFocus = event.shiftKey ? event.currentTarget.previousSibling : event.currentTarget.nextSibling;
|
|
3850
|
+
event.preventDefault();
|
|
3851
|
+
return [4 /*yield*/, this.commitClick()];
|
|
3852
|
+
case 4:
|
|
3853
|
+
_b.sent();
|
|
3854
|
+
if (nextSiblingToFocus) {
|
|
3855
|
+
try {
|
|
3856
|
+
this._setFocusOnNextPossibleInput(nextSiblingToFocus, event.shiftKey);
|
|
3857
|
+
}
|
|
3858
|
+
catch (e) {
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
return [2 /*return*/, false];
|
|
3862
|
+
case 5:
|
|
3863
|
+
this.cancelClick();
|
|
3864
|
+
event.preventDefault();
|
|
3865
|
+
return [2 /*return*/, false];
|
|
3866
|
+
case 6: return [2 /*return*/];
|
|
3867
|
+
}
|
|
3868
|
+
});
|
|
3869
|
+
});
|
|
3870
|
+
};
|
|
3871
|
+
BaseInputComponent.prototype._createNewFocusEvent = function (element) {
|
|
3872
|
+
var eventType = "onfocusin" in element ? "focusin" : "focus", bubbles = "onfocusin" in element, focusEvent;
|
|
3873
|
+
if ("createEvent" in document) {
|
|
3874
|
+
focusEvent = document.createEvent("Event");
|
|
3875
|
+
focusEvent.initEvent(eventType, bubbles, true);
|
|
3876
|
+
}
|
|
3877
|
+
else if ("Event" in window) {
|
|
3878
|
+
focusEvent = new Event(eventType, { bubbles: bubbles, cancelable: true });
|
|
3879
|
+
}
|
|
3880
|
+
return focusEvent;
|
|
3881
|
+
};
|
|
3882
|
+
BaseInputComponent.prototype._setFocusOnNextPossibleInput = function (element, previous) {
|
|
3883
|
+
var elementColl = element.getElementsByTagName('input');
|
|
3884
|
+
if (elementColl && elementColl.length > 0) {
|
|
3885
|
+
var inputElement = elementColl[0];
|
|
3886
|
+
if (inputElement.disabled || inputElement.readOnly) {
|
|
3887
|
+
this._setFocusOnNextPossibleInput(previous ? element.previousSibling : element.nextSibling, previous);
|
|
3888
|
+
}
|
|
3889
|
+
else {
|
|
3890
|
+
var focusEvent = this._createNewFocusEvent(element);
|
|
3891
|
+
inputElement.focus();
|
|
3892
|
+
inputElement.dispatchEvent(focusEvent);
|
|
3893
|
+
}
|
|
3771
3894
|
}
|
|
3772
3895
|
};
|
|
3773
3896
|
return BaseInputComponent;
|
|
@@ -3788,6 +3911,7 @@
|
|
|
3788
3911
|
BaseInputComponent.propDecorators = {
|
|
3789
3912
|
validationErrorContainer: [{ type: core.ViewChild, args: ["validationError", { read: core.ViewContainerRef },] }],
|
|
3790
3913
|
_ngModel: [{ type: core.ViewChild, args: [forms.NgModel, { static: true },] }],
|
|
3914
|
+
showSaveCancel: [{ type: core.Input }],
|
|
3791
3915
|
model: [{ type: core.Input }],
|
|
3792
3916
|
label: [{ type: core.Input }],
|
|
3793
3917
|
noValidation: [{ type: core.Input }],
|
|
@@ -3836,7 +3960,10 @@
|
|
|
3836
3960
|
valid: [{ type: core.HostBinding, args: ["class.valid",] }],
|
|
3837
3961
|
validationDisabled: [{ type: core.HostBinding, args: ["class.no-validation",] }],
|
|
3838
3962
|
onClick: [{ type: core.HostListener, args: ["click", ["$event"],] }],
|
|
3839
|
-
onFocusIn: [{ type: core.HostListener, args: ["focusin",] }]
|
|
3963
|
+
onFocusIn: [{ type: core.HostListener, args: ["focusin",] }],
|
|
3964
|
+
handleDocumentScroll: [{ type: core.HostListener, args: ["document:scroll",] }],
|
|
3965
|
+
handleWindowResize: [{ type: core.HostListener, args: ["window:resize",] }],
|
|
3966
|
+
handleKeyDown: [{ type: core.HostListener, args: ["keydown", ["$event"],] }]
|
|
3840
3967
|
};
|
|
3841
3968
|
__decorate([
|
|
3842
3969
|
InputBoolean()
|
|
@@ -4075,19 +4202,20 @@
|
|
|
4075
4202
|
FormComponent.prototype.isValid = function () {
|
|
4076
4203
|
return this._init && this.formGroup.valid;
|
|
4077
4204
|
};
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4205
|
+
// @HostListener('keyup.enter', ['$event'])
|
|
4206
|
+
// onEnterKey(event: KeyboardEvent): void {
|
|
4207
|
+
// const target: HTMLElement = <HTMLElement>event.target;
|
|
4208
|
+
// if (['TEXTAREA', 'SELECT'].indexOf(target.tagName) !== -1) {
|
|
4209
|
+
// return;
|
|
4210
|
+
// }
|
|
4211
|
+
// if (target.isContentEditable) {
|
|
4212
|
+
// return;
|
|
4213
|
+
// }
|
|
4214
|
+
// if (target.tagName === 'BUTTON-COLIJN' && target.getAttribute('type') === 'submit') {
|
|
4215
|
+
// return;
|
|
4216
|
+
// }
|
|
4217
|
+
// this.submit();
|
|
4218
|
+
// }
|
|
4091
4219
|
FormComponent.prototype.reset = function () {
|
|
4092
4220
|
this.submitted = false;
|
|
4093
4221
|
this.formGroup.markAsUntouched();
|
|
@@ -4158,8 +4286,7 @@
|
|
|
4158
4286
|
anySubmit: [{ type: core.Output }],
|
|
4159
4287
|
validityChange: [{ type: core.Output }],
|
|
4160
4288
|
readonlyChange: [{ type: core.Output }],
|
|
4161
|
-
invalidSubmit: [{ type: core.Output }]
|
|
4162
|
-
onEnterKey: [{ type: core.HostListener, args: ['keyup.enter', ['$event'],] }]
|
|
4289
|
+
invalidSubmit: [{ type: core.Output }]
|
|
4163
4290
|
};
|
|
4164
4291
|
|
|
4165
4292
|
var DropDownListComponent = /** @class */ (function (_super) {
|
|
@@ -5348,11 +5475,18 @@
|
|
|
5348
5475
|
InputTextComponent.decorators = [
|
|
5349
5476
|
{ type: core.Component, args: [{
|
|
5350
5477
|
selector: "co-input-text",
|
|
5351
|
-
template: "\n <label [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"type\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n >\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
5478
|
+
template: "\n <label [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"type\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n >\n <div *ngIf=\"showSaveCancel && focused && canSaveOrCancel\" class=\"input-save-cancel-button-wrapper\" @showHideSaveCancel>\n <div class=\"input-save-cancel-button save\" (click)=\"commitClick($event)\"></div>\n <div class=\"input-save-cancel-button cancel\" (click)=\"cancelClick($event)\"></div>\n </div>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
5352
5479
|
providers: [{
|
|
5353
5480
|
provide: COMPONENT_INTERFACE_NAME,
|
|
5354
5481
|
useExisting: core.forwardRef(function () { return InputTextComponent; })
|
|
5355
5482
|
}],
|
|
5483
|
+
animations: [
|
|
5484
|
+
animations.trigger('showHideSaveCancel', [
|
|
5485
|
+
animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
5486
|
+
animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
5487
|
+
animations.transition('void <=> *', animations.animate(200))
|
|
5488
|
+
]),
|
|
5489
|
+
],
|
|
5356
5490
|
encapsulation: core.ViewEncapsulation.None
|
|
5357
5491
|
},] }
|
|
5358
5492
|
];
|
|
@@ -7807,6 +7941,7 @@
|
|
|
7807
7941
|
this._createTiles();
|
|
7808
7942
|
}
|
|
7809
7943
|
this._checkNavigationButtons();
|
|
7944
|
+
this._resizeCanvasToDisplaySize();
|
|
7810
7945
|
};
|
|
7811
7946
|
Carousel3dComponent.prototype._init = function () {
|
|
7812
7947
|
var _this = this;
|
|
@@ -8013,11 +8148,17 @@
|
|
|
8013
8148
|
this._rotate(800);
|
|
8014
8149
|
};
|
|
8015
8150
|
Carousel3dComponent.prototype._resizeCanvasToDisplaySize = function () {
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8151
|
+
var _this = this;
|
|
8152
|
+
setTimeout(function () {
|
|
8153
|
+
if (!_this.canvasContainer || !_this.canvasContainer.nativeElement) {
|
|
8154
|
+
return;
|
|
8155
|
+
}
|
|
8156
|
+
_this._camera.aspect = _this.canvasContainer.nativeElement.clientWidth / _this.canvasContainer.nativeElement.clientHeight;
|
|
8157
|
+
_this._camera.updateProjectionMatrix();
|
|
8158
|
+
_this._rendererCss.setSize(_this.canvasContainer.nativeElement.clientWidth, _this.canvasContainer.nativeElement.clientHeight);
|
|
8159
|
+
_this._renderer.setSize(_this.canvasContainer.nativeElement.clientWidth, _this.canvasContainer.nativeElement.clientHeight);
|
|
8160
|
+
_this._render();
|
|
8161
|
+
});
|
|
8021
8162
|
};
|
|
8022
8163
|
Carousel3dComponent.prototype._render = function () {
|
|
8023
8164
|
this._rendererCss.render(this._sceneCss, this._camera);
|
|
@@ -8137,6 +8278,8 @@
|
|
|
8137
8278
|
exports.PopupMessageDisplayComponent = PopupMessageDisplayComponent;
|
|
8138
8279
|
exports.PopupModule = PopupModule;
|
|
8139
8280
|
exports.PopupWindowShellComponent = PopupWindowShellComponent;
|
|
8281
|
+
exports.PriceDisplayPipe = PriceDisplayPipe;
|
|
8282
|
+
exports.PriceDisplayPipeModule = PriceDisplayPipeModule;
|
|
8140
8283
|
exports.PromptService = PromptService;
|
|
8141
8284
|
exports.SimpleGridColumnDirective = SimpleGridColumnDirective;
|
|
8142
8285
|
exports.SimpleGridComponent = SimpleGridComponent;
|
|
@@ -8152,22 +8295,20 @@
|
|
|
8152
8295
|
exports["ɵf"] = CoScrollableDirective;
|
|
8153
8296
|
exports["ɵg"] = StopClickModule;
|
|
8154
8297
|
exports["ɵh"] = StopClickDirective;
|
|
8155
|
-
exports["ɵi"] =
|
|
8156
|
-
exports["ɵj"] =
|
|
8157
|
-
exports["ɵk"] =
|
|
8158
|
-
exports["ɵl"] =
|
|
8159
|
-
exports["ɵm"] =
|
|
8160
|
-
exports["ɵn"] =
|
|
8161
|
-
exports["ɵo"] =
|
|
8162
|
-
exports["ɵp"] =
|
|
8163
|
-
exports["ɵq"] =
|
|
8164
|
-
exports["ɵr"] =
|
|
8165
|
-
exports["ɵs"] =
|
|
8166
|
-
exports["ɵt"] =
|
|
8167
|
-
exports["ɵu"] =
|
|
8168
|
-
exports["ɵv"] =
|
|
8169
|
-
exports["ɵw"] = ValidationErrorComponent;
|
|
8170
|
-
exports["ɵx"] = PopupShowerService;
|
|
8298
|
+
exports["ɵi"] = InputBoolean;
|
|
8299
|
+
exports["ɵj"] = BaseModule;
|
|
8300
|
+
exports["ɵk"] = FormInputUserModelChangeListenerService;
|
|
8301
|
+
exports["ɵl"] = NgZoneWrapperService;
|
|
8302
|
+
exports["ɵm"] = BaseInputComponent;
|
|
8303
|
+
exports["ɵn"] = BaseSelectionGridComponent;
|
|
8304
|
+
exports["ɵo"] = BaseInlineEditGridComponent;
|
|
8305
|
+
exports["ɵp"] = BaseToolbarGridComponent;
|
|
8306
|
+
exports["ɵq"] = BaseGridComponent;
|
|
8307
|
+
exports["ɵr"] = AppendPipeModule;
|
|
8308
|
+
exports["ɵs"] = AppendPipe;
|
|
8309
|
+
exports["ɵt"] = ValidationErrorModule;
|
|
8310
|
+
exports["ɵu"] = ValidationErrorComponent;
|
|
8311
|
+
exports["ɵv"] = PopupShowerService;
|
|
8171
8312
|
|
|
8172
8313
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8173
8314
|
|