@colijnit/corecomponents_v12 12.0.77 → 12.0.79
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 +65 -6
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +13 -3
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +11 -7
- package/esm2015/lib/components/input-text/input-text.component.js +16 -7
- package/esm2015/lib/pipes/filter.pipe.js +16 -0
- package/esm2015/lib/pipes/filter.pipe.module.js +15 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +63 -13
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/carousel/style/_layout.scss +2 -0
- package/lib/components/carousel/style/_material-definition.scss +2 -0
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +2 -2
- package/lib/components/input-radio-button/input-radio-button.component.d.ts +3 -2
- package/lib/components/input-radio-button/style/_layout.scss +15 -14
- package/lib/components/input-radio-button/style/_material-definition.scss +13 -3
- package/lib/components/input-radio-button/style/_theme.scss +4 -0
- package/lib/components/input-text/input-text.component.d.ts +2 -0
- package/lib/pipes/filter.pipe.d.ts +4 -0
- package/lib/pipes/filter.pipe.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -6909,13 +6909,21 @@
|
|
|
6909
6909
|
if (this.startDate && this.endDate) {
|
|
6910
6910
|
this.dateRangeChange.emit([this.startDate, this.endDate]);
|
|
6911
6911
|
}
|
|
6912
|
+
this.model = [this.startDate, this.endDate];
|
|
6913
|
+
this.modelChange.emit(this.model);
|
|
6912
6914
|
};
|
|
6913
6915
|
return InputDateRangePickerComponent;
|
|
6914
6916
|
}(BaseInputComponent));
|
|
6915
6917
|
InputDateRangePickerComponent.decorators = [
|
|
6916
6918
|
{ type: i0.Component, args: [{
|
|
6917
6919
|
selector: "co-input-date-range",
|
|
6918
|
-
template: "\n <ejs-daterangepicker\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"rangeChange()\"\n (close)=\"close.next($event)\"\n (select)=\"select.next($event)\"\n (cleared)=\"cleared.next($event)\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
6920
|
+
template: "\n <ejs-daterangepicker #ejsDateRangePicker\n [format]=\"dateFormat\"\n floatLabelType=\"Auto\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"rangeChange()\"\n (close)=\"close.next($event)\"\n (select)=\"select.next($event)\"\n (cleared)=\"cleared.next($event)\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
6921
|
+
providers: [{
|
|
6922
|
+
provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDateRangePickerComponent; })
|
|
6923
|
+
}, {
|
|
6924
|
+
provide: BaseInputComponent,
|
|
6925
|
+
useExisting: InputDateRangePickerComponent
|
|
6926
|
+
}],
|
|
6919
6927
|
encapsulation: i0.ViewEncapsulation.None
|
|
6920
6928
|
},] }
|
|
6921
6929
|
];
|
|
@@ -7695,6 +7703,7 @@
|
|
|
7695
7703
|
_this.elementRef = elementRef;
|
|
7696
7704
|
_this.placeholder = "";
|
|
7697
7705
|
_this.type = "text";
|
|
7706
|
+
_this.digitsOnly = false;
|
|
7698
7707
|
_this.showClearButton = undefined;
|
|
7699
7708
|
_this.showPlaceholderOnFocus = true;
|
|
7700
7709
|
_this.hasOwnLabel = true;
|
|
@@ -7740,12 +7749,17 @@
|
|
|
7740
7749
|
enumerable: false,
|
|
7741
7750
|
configurable: true
|
|
7742
7751
|
});
|
|
7752
|
+
// exclude some non-digit characters, since input type 'number' still allows the characters -, + and e
|
|
7753
|
+
InputTextComponent.prototype.excludeNonDigitChars = function (event) {
|
|
7754
|
+
var excludedKeyCodes = [69, 107, 109, 187, 189];
|
|
7755
|
+
return !excludedKeyCodes.includes(event.keyCode);
|
|
7756
|
+
};
|
|
7743
7757
|
return InputTextComponent;
|
|
7744
7758
|
}(BaseInputComponent));
|
|
7745
7759
|
InputTextComponent.decorators = [
|
|
7746
7760
|
{ type: i0.Component, args: [{
|
|
7747
7761
|
selector: "co-input-text",
|
|
7748
|
-
template: "\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"
|
|
7762
|
+
template: "\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\"></co-icon>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\"></co-icon>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
7749
7763
|
providers: [{
|
|
7750
7764
|
provide: COMPONENT_INTERFACE_NAME,
|
|
7751
7765
|
useExisting: i0.forwardRef(function () { return InputTextComponent; })
|
|
@@ -7769,6 +7783,7 @@
|
|
|
7769
7783
|
type: [{ type: i0.Input }],
|
|
7770
7784
|
min: [{ type: i0.Input }],
|
|
7771
7785
|
max: [{ type: i0.Input }],
|
|
7786
|
+
digitsOnly: [{ type: i0.Input }],
|
|
7772
7787
|
showClearButton: [{ type: i0.Input }],
|
|
7773
7788
|
keyDownWhiteList: [{ type: i0.Input }],
|
|
7774
7789
|
showPlaceholderOnFocus: [{ type: i0.Input }],
|
|
@@ -7860,10 +7875,17 @@
|
|
|
7860
7875
|
_super.prototype._markAsOnPush.call(_this);
|
|
7861
7876
|
return _this;
|
|
7862
7877
|
}
|
|
7878
|
+
Object.defineProperty(InputRadioButtonComponent.prototype, "isModelSelected", {
|
|
7879
|
+
get: function () {
|
|
7880
|
+
return this.model;
|
|
7881
|
+
},
|
|
7882
|
+
enumerable: false,
|
|
7883
|
+
configurable: true
|
|
7884
|
+
});
|
|
7863
7885
|
InputRadioButtonComponent.prototype.showClass = function () {
|
|
7864
7886
|
return true;
|
|
7865
7887
|
};
|
|
7866
|
-
InputRadioButtonComponent.prototype.
|
|
7888
|
+
InputRadioButtonComponent.prototype.handleClick = function (event) {
|
|
7867
7889
|
event.preventDefault();
|
|
7868
7890
|
event.stopPropagation();
|
|
7869
7891
|
if (!this.readonly) {
|
|
@@ -7876,7 +7898,7 @@
|
|
|
7876
7898
|
InputRadioButtonComponent.decorators = [
|
|
7877
7899
|
{ type: i0.Component, args: [{
|
|
7878
7900
|
selector: "co-input-radio-button",
|
|
7879
|
-
template: "\n <div class=\"outer-circle\" [class.selected]=\"model\"
|
|
7901
|
+
template: "\n <div class=\"outer-circle\" [class.selected]=\"model\">\n <div class=\"inner-circle\" *ngIf=\"model\" @showSelected></div>\n </div>\n <div class=\"label\" *ngIf=\"label\" [textContent]=\"label\"></div>\n <input #input [ngModel]=\"model\" type=\"hidden\">\n ",
|
|
7880
7902
|
providers: [{
|
|
7881
7903
|
provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputRadioButtonComponent; })
|
|
7882
7904
|
}, {
|
|
@@ -7890,7 +7912,6 @@
|
|
|
7890
7912
|
animations.transition("void <=> *", animations.animate("200ms ease-in-out")),
|
|
7891
7913
|
])
|
|
7892
7914
|
],
|
|
7893
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7894
7915
|
encapsulation: i0.ViewEncapsulation.None
|
|
7895
7916
|
},] }
|
|
7896
7917
|
];
|
|
@@ -7903,7 +7924,9 @@
|
|
|
7903
7924
|
{ type: i0.ElementRef }
|
|
7904
7925
|
]; };
|
|
7905
7926
|
InputRadioButtonComponent.propDecorators = {
|
|
7906
|
-
|
|
7927
|
+
isModelSelected: [{ type: i0.HostBinding, args: ["class.selected",] }],
|
|
7928
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-radio-button",] }],
|
|
7929
|
+
handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
|
|
7907
7930
|
};
|
|
7908
7931
|
|
|
7909
7932
|
var InputRadioButtonModule = /** @class */ (function () {
|
|
@@ -10972,6 +10995,40 @@
|
|
|
10972
10995
|
},] }
|
|
10973
10996
|
];
|
|
10974
10997
|
|
|
10998
|
+
var FilterPipe = /** @class */ (function () {
|
|
10999
|
+
function FilterPipe() {
|
|
11000
|
+
}
|
|
11001
|
+
FilterPipe.prototype.transform = function (items, field, value) {
|
|
11002
|
+
if (!items || !field) {
|
|
11003
|
+
return items;
|
|
11004
|
+
}
|
|
11005
|
+
return items.filter(function (item) { return item[field] === value; });
|
|
11006
|
+
};
|
|
11007
|
+
return FilterPipe;
|
|
11008
|
+
}());
|
|
11009
|
+
FilterPipe.decorators = [
|
|
11010
|
+
{ type: i0.Pipe, args: [{
|
|
11011
|
+
name: "filter",
|
|
11012
|
+
pure: false
|
|
11013
|
+
},] }
|
|
11014
|
+
];
|
|
11015
|
+
|
|
11016
|
+
var FilterPipeModule = /** @class */ (function () {
|
|
11017
|
+
function FilterPipeModule() {
|
|
11018
|
+
}
|
|
11019
|
+
return FilterPipeModule;
|
|
11020
|
+
}());
|
|
11021
|
+
FilterPipeModule.decorators = [
|
|
11022
|
+
{ type: i0.NgModule, args: [{
|
|
11023
|
+
declarations: [
|
|
11024
|
+
FilterPipe
|
|
11025
|
+
],
|
|
11026
|
+
exports: [
|
|
11027
|
+
FilterPipe
|
|
11028
|
+
]
|
|
11029
|
+
},] }
|
|
11030
|
+
];
|
|
11031
|
+
|
|
10975
11032
|
var FilterItemComponent = /** @class */ (function () {
|
|
10976
11033
|
function FilterItemComponent(iconService) {
|
|
10977
11034
|
this.iconService = iconService;
|
|
@@ -11603,6 +11660,8 @@
|
|
|
11603
11660
|
exports.DropDownModule = DropDownModule;
|
|
11604
11661
|
exports.FilterItemComponent = FilterItemComponent;
|
|
11605
11662
|
exports.FilterItemModule = FilterItemModule;
|
|
11663
|
+
exports.FilterPipe = FilterPipe;
|
|
11664
|
+
exports.FilterPipeModule = FilterPipeModule;
|
|
11606
11665
|
exports.FormComponent = FormComponent;
|
|
11607
11666
|
exports.FormMasterService = FormMasterService;
|
|
11608
11667
|
exports.FormModule = FormModule;
|