@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
|
@@ -2647,10 +2647,17 @@ CollapsibleComponent.decorators = [
|
|
|
2647
2647
|
<co-icon class="expand-icon" [iconData]="iconData"></co-icon>
|
|
2648
2648
|
</div>
|
|
2649
2649
|
</div>
|
|
2650
|
-
<div class="collapsible-content" *ngIf="expanded">
|
|
2650
|
+
<div class="collapsible-content" *ngIf="expanded" @showHideContent>
|
|
2651
2651
|
<ng-content></ng-content>
|
|
2652
2652
|
</div>
|
|
2653
2653
|
`,
|
|
2654
|
+
animations: [
|
|
2655
|
+
trigger('showHideContent', [
|
|
2656
|
+
state('*', style({ height: '*' })),
|
|
2657
|
+
state('void', style({ height: 0 })),
|
|
2658
|
+
transition('void <=> *', animate(200))
|
|
2659
|
+
]),
|
|
2660
|
+
],
|
|
2654
2661
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2655
2662
|
encapsulation: ViewEncapsulation.None
|
|
2656
2663
|
},] }
|
|
@@ -2811,10 +2818,13 @@ class BaseInputComponent {
|
|
|
2811
2818
|
this.formUserChangeListener = formUserChangeListener;
|
|
2812
2819
|
this.ngZoneWrapper = ngZoneWrapper;
|
|
2813
2820
|
this.elementRef = elementRef;
|
|
2821
|
+
this.showSaveCancel = false;
|
|
2814
2822
|
this.noValidation = false;
|
|
2815
2823
|
this.forceRequired = false; // a force outside of [cfgName]'s influence
|
|
2816
2824
|
// Goal: ability to emulate the red background of input fields (form-submitted invalid state)
|
|
2817
2825
|
this.redErrorBackground = false;
|
|
2826
|
+
// @Output()
|
|
2827
|
+
// public commit: EventEmitter<any> = new EventEmitter<any>();
|
|
2818
2828
|
this.nativeBlur = new EventEmitter();
|
|
2819
2829
|
this.blur = new EventEmitter();
|
|
2820
2830
|
// emits when the enter button on keyboard was pressed while this form input had focussed
|
|
@@ -2833,12 +2843,19 @@ class BaseInputComponent {
|
|
|
2833
2843
|
this.fullWidth = false;
|
|
2834
2844
|
this.excludeUserModelChange = false;
|
|
2835
2845
|
this.noFormGroupControl = false;
|
|
2846
|
+
this.keepFocus = false;
|
|
2847
|
+
this.canSaveOrCancel = false;
|
|
2836
2848
|
this._markedAsUserTouched = false;
|
|
2837
2849
|
this._destroyed = false;
|
|
2838
2850
|
this._hasOnPushCdStrategy = false;
|
|
2851
|
+
this._initialModelSet = false;
|
|
2839
2852
|
this._forceReadonly = undefined;
|
|
2840
2853
|
this._validators = [];
|
|
2841
2854
|
this._asyncValidators = [];
|
|
2855
|
+
// descendents should override this
|
|
2856
|
+
this.commit = (model) => __awaiter(this, void 0, void 0, function* () {
|
|
2857
|
+
return Promise.resolve(true);
|
|
2858
|
+
});
|
|
2842
2859
|
BaseInputComponent.BaseFormInputComponentIndex++;
|
|
2843
2860
|
this.name = BaseInputComponent.BaseFormInputComponentIndex.toString();
|
|
2844
2861
|
if (this.formUserChangeListener) {
|
|
@@ -2856,7 +2873,12 @@ class BaseInputComponent {
|
|
|
2856
2873
|
}
|
|
2857
2874
|
}
|
|
2858
2875
|
set model(value) {
|
|
2876
|
+
if (!this._initialModelSet) {
|
|
2877
|
+
this._initialModel = this._model;
|
|
2878
|
+
this._initialModelSet = true;
|
|
2879
|
+
}
|
|
2859
2880
|
this._model = value;
|
|
2881
|
+
this.canSaveOrCancel = this._model !== this._initialModel;
|
|
2860
2882
|
this._clearErrorComponent();
|
|
2861
2883
|
}
|
|
2862
2884
|
get model() {
|
|
@@ -2997,6 +3019,30 @@ class BaseInputComponent {
|
|
|
2997
3019
|
get validationDisabled() {
|
|
2998
3020
|
return this.readonly || this.disabled || this.noValidation;
|
|
2999
3021
|
}
|
|
3022
|
+
onClick(event) {
|
|
3023
|
+
if (this.canChange && !this.noClickFocus) {
|
|
3024
|
+
this.requestFocus();
|
|
3025
|
+
if (!this.excludeUserModelChange) {
|
|
3026
|
+
this.markAsUserTouched();
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
onFocusIn() {
|
|
3031
|
+
if (!this.excludeUserModelChange) {
|
|
3032
|
+
this.markAsUserTouched();
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
handleDocumentScroll() {
|
|
3036
|
+
this._positionValidationError();
|
|
3037
|
+
}
|
|
3038
|
+
handleWindowResize() {
|
|
3039
|
+
this._positionValidationError();
|
|
3040
|
+
}
|
|
3041
|
+
handleKeyDown(event) {
|
|
3042
|
+
if (this.showSaveCancel && this.canSaveOrCancel) {
|
|
3043
|
+
this._handleKeyDown(event);
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3000
3046
|
get canChange() {
|
|
3001
3047
|
return !this.readonly && !this.disabled;
|
|
3002
3048
|
}
|
|
@@ -3013,18 +3059,6 @@ class BaseInputComponent {
|
|
|
3013
3059
|
this._modelChangeSub = this.modelChange.subscribe((val) => {
|
|
3014
3060
|
this.model = val;
|
|
3015
3061
|
});
|
|
3016
|
-
const iOptions = {
|
|
3017
|
-
trackVisibility: true,
|
|
3018
|
-
// 🆕 Set a minimum delay between notifications
|
|
3019
|
-
delay: 100,
|
|
3020
|
-
// root: document,
|
|
3021
|
-
// rootMargin: "1px",
|
|
3022
|
-
threshold: 1
|
|
3023
|
-
};
|
|
3024
|
-
this.intersectionObserver = new IntersectionObserver((entries, observer) => this._handleElementPositionChange(entries, observer), iOptions);
|
|
3025
|
-
// if (this.speechInput) {
|
|
3026
|
-
// this._subscribeToSpeechInput();
|
|
3027
|
-
// }
|
|
3028
3062
|
}
|
|
3029
3063
|
ngAfterViewInit() {
|
|
3030
3064
|
this._prepareInput();
|
|
@@ -3042,8 +3076,8 @@ class BaseInputComponent {
|
|
|
3042
3076
|
}
|
|
3043
3077
|
ngOnDestroy() {
|
|
3044
3078
|
if (this.input) {
|
|
3045
|
-
this.input.removeEventListener('blur', () => this.doBlur());
|
|
3046
|
-
this.input.removeEventListener('focus', () => this.doFocus());
|
|
3079
|
+
this.input.removeEventListener('blur', (event) => this.doBlur(event));
|
|
3080
|
+
this.input.removeEventListener('focus', (event) => this.doFocus(event));
|
|
3047
3081
|
}
|
|
3048
3082
|
this._destroyed = true;
|
|
3049
3083
|
this._clearErrorComponent();
|
|
@@ -3070,18 +3104,30 @@ class BaseInputComponent {
|
|
|
3070
3104
|
this.changeDetector = undefined;
|
|
3071
3105
|
this.input = undefined;
|
|
3072
3106
|
}
|
|
3107
|
+
commitClick(event) {
|
|
3108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3109
|
+
this.keepFocus = true;
|
|
3110
|
+
yield this.commit(this.model);
|
|
3111
|
+
this.keepFocus = false;
|
|
3112
|
+
this.doBlur(event);
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
cancelClick(event) {
|
|
3116
|
+
this.keepFocus = true;
|
|
3117
|
+
if (this._initialModelSet) {
|
|
3118
|
+
this.model = this._initialModel;
|
|
3119
|
+
}
|
|
3120
|
+
this.keepFocus = false;
|
|
3121
|
+
}
|
|
3073
3122
|
showValidationError(error) {
|
|
3074
3123
|
if (this.validationErrorContainer) {
|
|
3075
3124
|
if (this._errorValidationComponent) {
|
|
3076
3125
|
this._clearErrorComponent();
|
|
3077
3126
|
}
|
|
3078
|
-
const clientRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
3079
3127
|
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(ValidationErrorComponent);
|
|
3080
3128
|
this._errorValidationComponent = this.validationErrorContainer.createComponent(componentFactory);
|
|
3081
|
-
this._errorValidationComponent.instance.top = clientRect.bottom;
|
|
3082
|
-
this._errorValidationComponent.instance.left = clientRect.left;
|
|
3083
3129
|
this._errorValidationComponent.instance.error = error;
|
|
3084
|
-
this.
|
|
3130
|
+
this._positionValidationError();
|
|
3085
3131
|
}
|
|
3086
3132
|
}
|
|
3087
3133
|
/**
|
|
@@ -3099,32 +3145,33 @@ class BaseInputComponent {
|
|
|
3099
3145
|
this.detectChanges();
|
|
3100
3146
|
}
|
|
3101
3147
|
}
|
|
3102
|
-
onClick(event) {
|
|
3103
|
-
if (this.canChange && !this.noClickFocus) {
|
|
3104
|
-
this.requestFocus();
|
|
3105
|
-
if (!this.excludeUserModelChange) {
|
|
3106
|
-
this.markAsUserTouched();
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
onFocusIn() {
|
|
3111
|
-
if (!this.excludeUserModelChange) {
|
|
3112
|
-
this.markAsUserTouched();
|
|
3113
|
-
}
|
|
3114
|
-
}
|
|
3115
3148
|
requestFocus() {
|
|
3116
3149
|
if (this.canChange && this.input) {
|
|
3117
3150
|
this.input.focus();
|
|
3118
3151
|
this.focused = true;
|
|
3119
3152
|
}
|
|
3120
3153
|
}
|
|
3121
|
-
doFocus() {
|
|
3154
|
+
doFocus(event) {
|
|
3155
|
+
if (this.disabled) {
|
|
3156
|
+
return;
|
|
3157
|
+
}
|
|
3158
|
+
this._initialModelSet = false;
|
|
3122
3159
|
this.focused = true;
|
|
3160
|
+
this.canSaveOrCancel = false;
|
|
3123
3161
|
this.focus.next();
|
|
3124
3162
|
}
|
|
3125
|
-
doBlur() {
|
|
3126
|
-
|
|
3127
|
-
|
|
3163
|
+
doBlur(event) {
|
|
3164
|
+
setTimeout(() => {
|
|
3165
|
+
if (this.keepFocus) {
|
|
3166
|
+
if (event) {
|
|
3167
|
+
event.preventDefault;
|
|
3168
|
+
}
|
|
3169
|
+
return false;
|
|
3170
|
+
}
|
|
3171
|
+
this.focused = false;
|
|
3172
|
+
this.input.blur();
|
|
3173
|
+
this.blur.next();
|
|
3174
|
+
}, 200);
|
|
3128
3175
|
}
|
|
3129
3176
|
detectChanges() {
|
|
3130
3177
|
if (!this._destroyed) {
|
|
@@ -3240,9 +3287,6 @@ class BaseInputComponent {
|
|
|
3240
3287
|
this._errorValidationComponent.destroy();
|
|
3241
3288
|
this._errorValidationComponent = undefined;
|
|
3242
3289
|
}
|
|
3243
|
-
if (this.elementRef && this.elementRef.nativeElement) {
|
|
3244
|
-
this.intersectionObserver.unobserve(this.elementRef.nativeElement);
|
|
3245
|
-
}
|
|
3246
3290
|
}
|
|
3247
3291
|
}
|
|
3248
3292
|
// whether this.ngModel.control has safe access
|
|
@@ -3309,8 +3353,8 @@ class BaseInputComponent {
|
|
|
3309
3353
|
//try to find input element
|
|
3310
3354
|
this.input = this._findInputNode(this.elementRef.nativeElement.children);
|
|
3311
3355
|
if (this.input) {
|
|
3312
|
-
this.input.addEventListener('blur', () => this.doBlur());
|
|
3313
|
-
this.input.addEventListener('focus', () => this.doFocus());
|
|
3356
|
+
this.input.addEventListener('blur', (event) => this.doBlur(event));
|
|
3357
|
+
this.input.addEventListener('focus', (event) => this.doFocus(event));
|
|
3314
3358
|
}
|
|
3315
3359
|
}
|
|
3316
3360
|
}
|
|
@@ -3325,10 +3369,62 @@ class BaseInputComponent {
|
|
|
3325
3369
|
}
|
|
3326
3370
|
}
|
|
3327
3371
|
}
|
|
3328
|
-
|
|
3329
|
-
if (this.
|
|
3330
|
-
|
|
3331
|
-
this._errorValidationComponent.instance.
|
|
3372
|
+
_positionValidationError() {
|
|
3373
|
+
if (this.elementRef && this.elementRef.nativeElement && this._errorValidationComponent) {
|
|
3374
|
+
const clientRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
3375
|
+
this._errorValidationComponent.instance.top = clientRect.bottom;
|
|
3376
|
+
this._errorValidationComponent.instance.left = clientRect.left;
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
_handleKeyDown(event) {
|
|
3380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3381
|
+
switch (event.code) {
|
|
3382
|
+
case 'Enter':
|
|
3383
|
+
event.preventDefault();
|
|
3384
|
+
yield this.commitClick();
|
|
3385
|
+
return false;
|
|
3386
|
+
case 'Tab':
|
|
3387
|
+
const nextSiblingToFocus = event.shiftKey ? event.currentTarget.previousSibling : event.currentTarget.nextSibling;
|
|
3388
|
+
event.preventDefault();
|
|
3389
|
+
yield this.commitClick();
|
|
3390
|
+
if (nextSiblingToFocus) {
|
|
3391
|
+
try {
|
|
3392
|
+
this._setFocusOnNextPossibleInput(nextSiblingToFocus, event.shiftKey);
|
|
3393
|
+
}
|
|
3394
|
+
catch (e) {
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
return false;
|
|
3398
|
+
case 'Escape':
|
|
3399
|
+
this.cancelClick();
|
|
3400
|
+
event.preventDefault();
|
|
3401
|
+
return false;
|
|
3402
|
+
}
|
|
3403
|
+
});
|
|
3404
|
+
}
|
|
3405
|
+
_createNewFocusEvent(element) {
|
|
3406
|
+
let eventType = "onfocusin" in element ? "focusin" : "focus", bubbles = "onfocusin" in element, focusEvent;
|
|
3407
|
+
if ("createEvent" in document) {
|
|
3408
|
+
focusEvent = document.createEvent("Event");
|
|
3409
|
+
focusEvent.initEvent(eventType, bubbles, true);
|
|
3410
|
+
}
|
|
3411
|
+
else if ("Event" in window) {
|
|
3412
|
+
focusEvent = new Event(eventType, { bubbles: bubbles, cancelable: true });
|
|
3413
|
+
}
|
|
3414
|
+
return focusEvent;
|
|
3415
|
+
}
|
|
3416
|
+
_setFocusOnNextPossibleInput(element, previous) {
|
|
3417
|
+
const elementColl = element.getElementsByTagName('input');
|
|
3418
|
+
if (elementColl && elementColl.length > 0) {
|
|
3419
|
+
const inputElement = elementColl[0];
|
|
3420
|
+
if (inputElement.disabled || inputElement.readOnly) {
|
|
3421
|
+
this._setFocusOnNextPossibleInput(previous ? element.previousSibling : element.nextSibling, previous);
|
|
3422
|
+
}
|
|
3423
|
+
else {
|
|
3424
|
+
const focusEvent = this._createNewFocusEvent(element);
|
|
3425
|
+
inputElement.focus();
|
|
3426
|
+
inputElement.dispatchEvent(focusEvent);
|
|
3427
|
+
}
|
|
3332
3428
|
}
|
|
3333
3429
|
}
|
|
3334
3430
|
}
|
|
@@ -3348,6 +3444,7 @@ BaseInputComponent.ctorParameters = () => [
|
|
|
3348
3444
|
BaseInputComponent.propDecorators = {
|
|
3349
3445
|
validationErrorContainer: [{ type: ViewChild, args: ["validationError", { read: ViewContainerRef },] }],
|
|
3350
3446
|
_ngModel: [{ type: ViewChild, args: [NgModel, { static: true },] }],
|
|
3447
|
+
showSaveCancel: [{ type: Input }],
|
|
3351
3448
|
model: [{ type: Input }],
|
|
3352
3449
|
label: [{ type: Input }],
|
|
3353
3450
|
noValidation: [{ type: Input }],
|
|
@@ -3396,7 +3493,10 @@ BaseInputComponent.propDecorators = {
|
|
|
3396
3493
|
valid: [{ type: HostBinding, args: ["class.valid",] }],
|
|
3397
3494
|
validationDisabled: [{ type: HostBinding, args: ["class.no-validation",] }],
|
|
3398
3495
|
onClick: [{ type: HostListener, args: ["click", ["$event"],] }],
|
|
3399
|
-
onFocusIn: [{ type: HostListener, args: ["focusin",] }]
|
|
3496
|
+
onFocusIn: [{ type: HostListener, args: ["focusin",] }],
|
|
3497
|
+
handleDocumentScroll: [{ type: HostListener, args: ["document:scroll",] }],
|
|
3498
|
+
handleWindowResize: [{ type: HostListener, args: ["window:resize",] }],
|
|
3499
|
+
handleKeyDown: [{ type: HostListener, args: ["keydown", ["$event"],] }]
|
|
3400
3500
|
};
|
|
3401
3501
|
__decorate([
|
|
3402
3502
|
InputBoolean()
|
|
@@ -3627,19 +3727,20 @@ class FormComponent {
|
|
|
3627
3727
|
isValid() {
|
|
3628
3728
|
return this._init && this.formGroup.valid;
|
|
3629
3729
|
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3730
|
+
// @HostListener('keyup.enter', ['$event'])
|
|
3731
|
+
// onEnterKey(event: KeyboardEvent): void {
|
|
3732
|
+
// const target: HTMLElement = <HTMLElement>event.target;
|
|
3733
|
+
// if (['TEXTAREA', 'SELECT'].indexOf(target.tagName) !== -1) {
|
|
3734
|
+
// return;
|
|
3735
|
+
// }
|
|
3736
|
+
// if (target.isContentEditable) {
|
|
3737
|
+
// return;
|
|
3738
|
+
// }
|
|
3739
|
+
// if (target.tagName === 'BUTTON-COLIJN' && target.getAttribute('type') === 'submit') {
|
|
3740
|
+
// return;
|
|
3741
|
+
// }
|
|
3742
|
+
// this.submit();
|
|
3743
|
+
// }
|
|
3643
3744
|
reset() {
|
|
3644
3745
|
this.submitted = false;
|
|
3645
3746
|
this.formGroup.markAsUntouched();
|
|
@@ -3708,8 +3809,7 @@ FormComponent.propDecorators = {
|
|
|
3708
3809
|
anySubmit: [{ type: Output }],
|
|
3709
3810
|
validityChange: [{ type: Output }],
|
|
3710
3811
|
readonlyChange: [{ type: Output }],
|
|
3711
|
-
invalidSubmit: [{ type: Output }]
|
|
3712
|
-
onEnterKey: [{ type: HostListener, args: ['keyup.enter', ['$event'],] }]
|
|
3812
|
+
invalidSubmit: [{ type: Output }]
|
|
3713
3813
|
};
|
|
3714
3814
|
|
|
3715
3815
|
class DropDownListComponent extends BaseInputComponent {
|
|
@@ -4869,6 +4969,10 @@ InputTextComponent.decorators = [
|
|
|
4869
4969
|
[required]="required"
|
|
4870
4970
|
(ngModelChange)="modelChange.emit($event)"
|
|
4871
4971
|
>
|
|
4972
|
+
<div *ngIf="showSaveCancel && focused && canSaveOrCancel" class="input-save-cancel-button-wrapper" @showHideSaveCancel>
|
|
4973
|
+
<div class="input-save-cancel-button save" (click)="commitClick($event)"></div>
|
|
4974
|
+
<div class="input-save-cancel-button cancel" (click)="cancelClick($event)"></div>
|
|
4975
|
+
</div>
|
|
4872
4976
|
<div class="required-indicator"></div>
|
|
4873
4977
|
<ng-template #validationError></ng-template>
|
|
4874
4978
|
`,
|
|
@@ -4876,6 +4980,13 @@ InputTextComponent.decorators = [
|
|
|
4876
4980
|
provide: COMPONENT_INTERFACE_NAME,
|
|
4877
4981
|
useExisting: forwardRef(() => InputTextComponent)
|
|
4878
4982
|
}],
|
|
4983
|
+
animations: [
|
|
4984
|
+
trigger('showHideSaveCancel', [
|
|
4985
|
+
state('*', style({ transform: 'scaleY(1)', opacity: 1 })),
|
|
4986
|
+
state('void', style({ transform: 'scaleY(0)', opacity: 0 })),
|
|
4987
|
+
transition('void <=> *', animate(200))
|
|
4988
|
+
]),
|
|
4989
|
+
],
|
|
4879
4990
|
encapsulation: ViewEncapsulation.None
|
|
4880
4991
|
},] }
|
|
4881
4992
|
];
|
|
@@ -7260,6 +7371,7 @@ class Carousel3dComponent {
|
|
|
7260
7371
|
this._createTiles();
|
|
7261
7372
|
}
|
|
7262
7373
|
this._checkNavigationButtons();
|
|
7374
|
+
this._resizeCanvasToDisplaySize();
|
|
7263
7375
|
}
|
|
7264
7376
|
_init() {
|
|
7265
7377
|
if (!this.canvasContainer || !this.canvasContainer.nativeElement) {
|
|
@@ -7460,11 +7572,16 @@ class Carousel3dComponent {
|
|
|
7460
7572
|
this._rotate(800);
|
|
7461
7573
|
}
|
|
7462
7574
|
_resizeCanvasToDisplaySize() {
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7575
|
+
setTimeout(() => {
|
|
7576
|
+
if (!this.canvasContainer || !this.canvasContainer.nativeElement) {
|
|
7577
|
+
return;
|
|
7578
|
+
}
|
|
7579
|
+
this._camera.aspect = this.canvasContainer.nativeElement.clientWidth / this.canvasContainer.nativeElement.clientHeight;
|
|
7580
|
+
this._camera.updateProjectionMatrix();
|
|
7581
|
+
this._rendererCss.setSize(this.canvasContainer.nativeElement.clientWidth, this.canvasContainer.nativeElement.clientHeight);
|
|
7582
|
+
this._renderer.setSize(this.canvasContainer.nativeElement.clientWidth, this.canvasContainer.nativeElement.clientHeight);
|
|
7583
|
+
this._render();
|
|
7584
|
+
});
|
|
7468
7585
|
}
|
|
7469
7586
|
_render() {
|
|
7470
7587
|
this._rendererCss.render(this._sceneCss, this._camera);
|
|
@@ -7536,5 +7653,5 @@ Carousel3dModule.decorators = [
|
|
|
7536
7653
|
* Generated bundle index. Do not edit.
|
|
7537
7654
|
*/
|
|
7538
7655
|
|
|
7539
|
-
export { ArticleTileComponent, ArticleTileModule, ButtonComponent, ButtonDropDownComponent, ButtonDropDownModule, ButtonModule, COMPONENT_INTERFACE_NAME, Carousel3dComponent, Carousel3dModule, CoDialogComponent, CoDialogModule, CoDialogPromptComponent, CoDialogPromptModule, CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoRichTextEditorComponent, CoRichTextEditorModule, CoScheduleComponent, CoScheduleModule, CoSidebarComponent, CoSidebarModule, CoToggleComponent, CoToggleModule, CollapsibleComponent, CollapsibleModule, ColumnAlign, CoreComponentsIcon, DropDownListComponent, DropDownModule, FormComponent, FormMasterService, FormModule, IconCacheService, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputCheckboxMultiSelectComponent, InputCheckboxMultiSelectModule, InputComboBoxComponent, InputComboBoxModule, InputDatePickerComponent, InputDatePickerModule, InputListboxComponent, InputListboxModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, MultiSelectListComponent, MultiSelectListModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PromptService, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, RippleModule as ɵa, MD_RIPPLE_GLOBAL_OPTIONS as ɵb, CoRippleDirective as ɵc, CoViewportRulerService as ɵd, CoScrollDispatcherService as ɵe, CoScrollableDirective as ɵf, StopClickModule as ɵg, StopClickDirective as ɵh,
|
|
7656
|
+
export { ArticleTileComponent, ArticleTileModule, ButtonComponent, ButtonDropDownComponent, ButtonDropDownModule, ButtonModule, COMPONENT_INTERFACE_NAME, Carousel3dComponent, Carousel3dModule, CoDialogComponent, CoDialogModule, CoDialogPromptComponent, CoDialogPromptModule, CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoRichTextEditorComponent, CoRichTextEditorModule, CoScheduleComponent, CoScheduleModule, CoSidebarComponent, CoSidebarModule, CoToggleComponent, CoToggleModule, CollapsibleComponent, CollapsibleModule, ColumnAlign, CoreComponentsIcon, DropDownListComponent, DropDownModule, FormComponent, FormMasterService, FormModule, IconCacheService, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputCheckboxMultiSelectComponent, InputCheckboxMultiSelectModule, InputComboBoxComponent, InputComboBoxModule, InputDatePickerComponent, InputDatePickerModule, InputListboxComponent, InputListboxModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, MultiSelectListComponent, MultiSelectListModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, RippleModule as ɵa, MD_RIPPLE_GLOBAL_OPTIONS as ɵb, CoRippleDirective as ɵc, CoViewportRulerService as ɵd, CoScrollDispatcherService as ɵe, CoScrollableDirective as ɵf, StopClickModule as ɵg, StopClickDirective as ɵh, InputBoolean as ɵi, BaseModule as ɵj, FormInputUserModelChangeListenerService as ɵk, NgZoneWrapperService as ɵl, BaseInputComponent as ɵm, BaseSelectionGridComponent as ɵn, BaseInlineEditGridComponent as ɵo, BaseToolbarGridComponent as ɵp, BaseGridComponent as ɵq, AppendPipeModule as ɵr, AppendPipe as ɵs, ValidationErrorModule as ɵt, ValidationErrorComponent as ɵu, PopupShowerService as ɵv };
|
|
7540
7657
|
//# sourceMappingURL=colijnit-corecomponents_v12.js.map
|