@colijnit/corecomponents_v12 12.0.98 → 12.0.100
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 +13 -49
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/filter-item/filter-item.component.js +6 -5
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +4 -3
- package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +2 -1
- package/esm2015/lib/core/model/bounds-constrained-number-value.js +3 -3
- package/esm2015/lib/directives/observe-visibility/observe-visibility.directive.js +8 -35
- package/fesm2015/colijnit-corecomponents_v12.js +14 -35
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/button/style/_layout.scss +1 -1
- package/lib/components/button/style/_theme.scss +3 -0
- package/lib/components/co-dialog/style/_material-definition.scss +2 -2
- package/lib/components/filter-item/filter-item.component.d.ts +4 -4
- package/lib/components/input-text/style/_layout.scss +1 -1
- package/lib/components/input-text/style/_material-definition.scss +0 -1
- package/lib/components/simple-grid/style/_layout.scss +6 -7
- package/lib/components/simple-grid/style/_material-definition.scss +3 -3
- package/lib/core/constant/default-upper-bound-for-range-components.d.ts +1 -0
- package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +3 -5
- package/lib/style/_input.mixins.scss +6 -1
- package/lib/style/_variables.scss +11 -5
- package/package.json +1 -1
|
@@ -6970,6 +6970,7 @@
|
|
|
6970
6970
|
|
|
6971
6971
|
var JAVA_MAX_INT = 2147483647;
|
|
6972
6972
|
|
|
6973
|
+
var DEFAULT_LOWER_BOUND_FOR_RANGE_COMPONENTS = -JAVA_MAX_INT;
|
|
6973
6974
|
var DEFAULT_UPPER_BOUND_FOR_RANGE_COMPONENTS = JAVA_MAX_INT;
|
|
6974
6975
|
|
|
6975
6976
|
// A data type class that represents a stepped-bounds numerical value, with min max and step size. Value is always within these bounds and is auto corrected for incoming manipulation requests.
|
|
@@ -6980,7 +6981,7 @@
|
|
|
6980
6981
|
// the actual numeric current value, which we ensure always complies to our current min, max and step
|
|
6981
6982
|
this._value = 0;
|
|
6982
6983
|
this._valueAsString = "0";
|
|
6983
|
-
this._min =
|
|
6984
|
+
this._min = DEFAULT_LOWER_BOUND_FOR_RANGE_COMPONENTS;
|
|
6984
6985
|
this._max = DEFAULT_UPPER_BOUND_FOR_RANGE_COMPONENTS;
|
|
6985
6986
|
this._step = 1; // stepsize before the decimal.
|
|
6986
6987
|
this._stepDecimals = 0; // derived from step
|
|
@@ -7358,7 +7359,7 @@
|
|
|
7358
7359
|
},
|
|
7359
7360
|
// @override
|
|
7360
7361
|
set: function (model) {
|
|
7361
|
-
this.setValue(model, true);
|
|
7362
|
+
// this.setValue(model, true);
|
|
7362
7363
|
_super.prototype.model = model;
|
|
7363
7364
|
},
|
|
7364
7365
|
enumerable: false,
|
|
@@ -7410,7 +7411,8 @@
|
|
|
7410
7411
|
return true;
|
|
7411
7412
|
};
|
|
7412
7413
|
InputNumberPickerComponent.prototype.ngOnInit = function () {
|
|
7413
|
-
this.numberLogic.
|
|
7414
|
+
this.numberLogic.setValue(this.model, true);
|
|
7415
|
+
// this.numberLogic.init(true);
|
|
7414
7416
|
this._updateButtonsShowState();
|
|
7415
7417
|
};
|
|
7416
7418
|
InputNumberPickerComponent.prototype.ngOnDestroy = function () {
|
|
@@ -10784,10 +10786,9 @@
|
|
|
10784
10786
|
var ObserveVisibilityDirective = /** @class */ (function () {
|
|
10785
10787
|
function ObserveVisibilityDirective(_element) {
|
|
10786
10788
|
this._element = _element;
|
|
10787
|
-
this.debounceTime = 0;
|
|
10788
10789
|
this.threshold = 0;
|
|
10789
|
-
this.
|
|
10790
|
-
this.
|
|
10790
|
+
this.visibilityChange = new i0.EventEmitter();
|
|
10791
|
+
this.visible = false;
|
|
10791
10792
|
}
|
|
10792
10793
|
ObserveVisibilityDirective.prototype.ngOnInit = function () {
|
|
10793
10794
|
this._createObserver();
|
|
@@ -10800,19 +10801,6 @@
|
|
|
10800
10801
|
this._observer.disconnect();
|
|
10801
10802
|
this._observer = undefined;
|
|
10802
10803
|
}
|
|
10803
|
-
this._subject.next();
|
|
10804
|
-
this._subject.complete();
|
|
10805
|
-
};
|
|
10806
|
-
ObserveVisibilityDirective.prototype._isVisible = function (element) {
|
|
10807
|
-
var _this = this;
|
|
10808
|
-
return new Promise(function (resolve) {
|
|
10809
|
-
var observer = new IntersectionObserver(function (_a) {
|
|
10810
|
-
var _b = __read(_a, 1), entry = _b[0];
|
|
10811
|
-
resolve(entry.isIntersecting && entry.intersectionRatio >= _this.threshold);
|
|
10812
|
-
observer.disconnect();
|
|
10813
|
-
});
|
|
10814
|
-
observer.observe(element);
|
|
10815
|
-
});
|
|
10816
10804
|
};
|
|
10817
10805
|
ObserveVisibilityDirective.prototype._createObserver = function () {
|
|
10818
10806
|
var _this = this;
|
|
@@ -10820,58 +10808,33 @@
|
|
|
10820
10808
|
rootMargin: '0px',
|
|
10821
10809
|
threshold: this.threshold,
|
|
10822
10810
|
};
|
|
10823
|
-
var isIntersecting = function (entry) { return entry.isIntersecting || entry.intersectionRatio > 0; };
|
|
10824
10811
|
this._observer = new IntersectionObserver(function (entries, observer) {
|
|
10825
10812
|
entries.forEach(function (entry) {
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
}
|
|
10813
|
+
_this.visible = entry.isIntersecting || entry.intersectionRatio > 0;
|
|
10814
|
+
_this.visibilityChange.emit(_this.visible);
|
|
10829
10815
|
});
|
|
10830
10816
|
}, options);
|
|
10831
10817
|
};
|
|
10832
10818
|
ObserveVisibilityDirective.prototype._startObservingElements = function () {
|
|
10833
|
-
var _this = this;
|
|
10834
10819
|
if (!this._observer) {
|
|
10835
10820
|
return;
|
|
10836
10821
|
}
|
|
10837
10822
|
this._observer.observe(this._element.nativeElement);
|
|
10838
|
-
this._subject
|
|
10839
|
-
.pipe(operators.delay(this.debounceTime), operators.filter(Boolean))
|
|
10840
|
-
.subscribe(function (_a) {
|
|
10841
|
-
var entry = _a.entry, observer = _a.observer;
|
|
10842
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
10843
|
-
var target, isStillVisible;
|
|
10844
|
-
return __generator(this, function (_a) {
|
|
10845
|
-
switch (_a.label) {
|
|
10846
|
-
case 0:
|
|
10847
|
-
target = entry.target;
|
|
10848
|
-
return [4 /*yield*/, this._isVisible(target)];
|
|
10849
|
-
case 1:
|
|
10850
|
-
isStillVisible = _a.sent();
|
|
10851
|
-
if (isStillVisible) {
|
|
10852
|
-
this.visible.emit(target);
|
|
10853
|
-
observer.unobserve(target);
|
|
10854
|
-
}
|
|
10855
|
-
return [2 /*return*/];
|
|
10856
|
-
}
|
|
10857
|
-
});
|
|
10858
|
-
});
|
|
10859
|
-
});
|
|
10860
10823
|
};
|
|
10861
10824
|
return ObserveVisibilityDirective;
|
|
10862
10825
|
}());
|
|
10863
10826
|
ObserveVisibilityDirective.decorators = [
|
|
10864
10827
|
{ type: i0.Directive, args: [{
|
|
10865
10828
|
selector: '[observeVisibility]',
|
|
10829
|
+
exportAs: 'visibilityObserve'
|
|
10866
10830
|
},] }
|
|
10867
10831
|
];
|
|
10868
10832
|
ObserveVisibilityDirective.ctorParameters = function () { return [
|
|
10869
10833
|
{ type: i0.ElementRef }
|
|
10870
10834
|
]; };
|
|
10871
10835
|
ObserveVisibilityDirective.propDecorators = {
|
|
10872
|
-
debounceTime: [{ type: i0.Input }],
|
|
10873
10836
|
threshold: [{ type: i0.Input }],
|
|
10874
|
-
|
|
10837
|
+
visibilityChange: [{ type: i0.Output }]
|
|
10875
10838
|
};
|
|
10876
10839
|
|
|
10877
10840
|
var ObserveVisibilityModule = /** @class */ (function () {
|
|
@@ -11162,7 +11125,8 @@
|
|
|
11162
11125
|
{ type: i0.Component, args: [{
|
|
11163
11126
|
selector: "co-filter-item",
|
|
11164
11127
|
template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (mousedown)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"!singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
|
|
11165
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
11128
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
11129
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
11166
11130
|
},] }
|
|
11167
11131
|
];
|
|
11168
11132
|
FilterItemComponent.ctorParameters = function () { return [
|