@inspark/inspark-components 1.0.22 → 1.0.24
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/full/bundles/inspark-inspark-components.umd.js +41 -3
- package/full/bundles/inspark-inspark-components.umd.js.map +1 -1
- package/full/bundles/inspark-inspark-components.umd.min.js +1 -1
- package/full/bundles/inspark-inspark-components.umd.min.js.map +1 -1
- package/full/components/input-text/input-text.component.d.ts +8 -0
- package/full/esm2015/components/input-text/input-text.component.js +42 -4
- package/full/esm5/components/input-text/input-text.component.js +42 -4
- package/full/fesm2015/inspark-inspark-components.js +41 -3
- package/full/fesm2015/inspark-inspark-components.js.map +1 -1
- package/full/fesm5/inspark-inspark-components.js +41 -3
- package/full/fesm5/inspark-inspark-components.js.map +1 -1
- package/full/inspark-inspark-components.metadata.json +1 -1
- package/full/package.json +1 -1
- package/interface/package.json +1 -1
- package/package.json +1 -1
|
@@ -891,14 +891,21 @@
|
|
|
891
891
|
this.error = null;
|
|
892
892
|
this.size = 100000;
|
|
893
893
|
this.maxlength = 100000;
|
|
894
|
-
this.width = '
|
|
894
|
+
this.width = '';
|
|
895
|
+
this.display = false;
|
|
896
|
+
this.large = true;
|
|
897
|
+
this.small = false;
|
|
898
|
+
this.widget = false;
|
|
899
|
+
this.forms = true;
|
|
895
900
|
this.placeholder = '';
|
|
896
901
|
this.id = null;
|
|
897
902
|
this.testId = null;
|
|
898
903
|
this.opacity = true;
|
|
899
904
|
this.shadow = false;
|
|
905
|
+
this.right = false;
|
|
900
906
|
this.focus = new core.EventEmitter();
|
|
901
907
|
this.blur = new core.EventEmitter();
|
|
908
|
+
this.onClick = new core.EventEmitter();
|
|
902
909
|
this.propagateChange = function (_) {
|
|
903
910
|
};
|
|
904
911
|
}
|
|
@@ -929,6 +936,9 @@
|
|
|
929
936
|
// Store the provided function as an internal method.
|
|
930
937
|
this.onTouched = fn;
|
|
931
938
|
};
|
|
939
|
+
InputTextComponent.prototype.clear = function () {
|
|
940
|
+
this.onClick.emit('');
|
|
941
|
+
};
|
|
932
942
|
InputTextComponent.prototype.onChange = function (_) {
|
|
933
943
|
if (this.type === 'number') {
|
|
934
944
|
this.propagateChange(+this.value);
|
|
@@ -972,6 +982,26 @@
|
|
|
972
982
|
core.Input(),
|
|
973
983
|
__metadata("design:type", Object)
|
|
974
984
|
], InputTextComponent.prototype, "width", void 0);
|
|
985
|
+
__decorate([
|
|
986
|
+
core.Input(),
|
|
987
|
+
__metadata("design:type", Object)
|
|
988
|
+
], InputTextComponent.prototype, "display", void 0);
|
|
989
|
+
__decorate([
|
|
990
|
+
core.Input(),
|
|
991
|
+
__metadata("design:type", Object)
|
|
992
|
+
], InputTextComponent.prototype, "large", void 0);
|
|
993
|
+
__decorate([
|
|
994
|
+
core.Input(),
|
|
995
|
+
__metadata("design:type", Object)
|
|
996
|
+
], InputTextComponent.prototype, "small", void 0);
|
|
997
|
+
__decorate([
|
|
998
|
+
core.Input(),
|
|
999
|
+
__metadata("design:type", Object)
|
|
1000
|
+
], InputTextComponent.prototype, "widget", void 0);
|
|
1001
|
+
__decorate([
|
|
1002
|
+
core.Input(),
|
|
1003
|
+
__metadata("design:type", Object)
|
|
1004
|
+
], InputTextComponent.prototype, "forms", void 0);
|
|
975
1005
|
__decorate([
|
|
976
1006
|
core.Input(),
|
|
977
1007
|
__metadata("design:type", Object)
|
|
@@ -996,6 +1026,10 @@
|
|
|
996
1026
|
core.Input(),
|
|
997
1027
|
__metadata("design:type", Object)
|
|
998
1028
|
], InputTextComponent.prototype, "shadow", void 0);
|
|
1029
|
+
__decorate([
|
|
1030
|
+
core.Input(),
|
|
1031
|
+
__metadata("design:type", Object)
|
|
1032
|
+
], InputTextComponent.prototype, "right", void 0);
|
|
999
1033
|
__decorate([
|
|
1000
1034
|
core.Input(),
|
|
1001
1035
|
__metadata("design:type", String)
|
|
@@ -1020,10 +1054,14 @@
|
|
|
1020
1054
|
core.Output(),
|
|
1021
1055
|
__metadata("design:type", core.EventEmitter)
|
|
1022
1056
|
], InputTextComponent.prototype, "blur", void 0);
|
|
1057
|
+
__decorate([
|
|
1058
|
+
core.Output(),
|
|
1059
|
+
__metadata("design:type", core.EventEmitter)
|
|
1060
|
+
], InputTextComponent.prototype, "onClick", void 0);
|
|
1023
1061
|
InputTextComponent = InputTextComponent_1 = __decorate([
|
|
1024
1062
|
core.Component({
|
|
1025
1063
|
selector: 'in-input-text',
|
|
1026
|
-
template: "<label [ngStyle]=\"{width: width}\" class=\"label type_varchars\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n <span\n *ngIf=\"maxlength && value && value.length && value.length >= maxlength\"\n class=\"constraints-message__warning u-text_uppercase\">\n {{'maxlength: ' | translate}} {{maxlength}}</span>\n </span>\n <input (blur)=\"this.blur.emit($event)\"\n
|
|
1064
|
+
template: "<label [ngStyle]=\"{width: width}\" class=\"label type_varchars\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n <span\n *ngIf=\"maxlength && value && value.length && value.length >= maxlength\"\n class=\"constraints-message__warning u-text_uppercase\">\n {{'maxlength: ' | translate}} {{maxlength}}</span>\n </span>\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\" [ngClass]=\"{'u-margin-right-tiny': right}\">\n <input (blur)=\"this.blur.emit($event)\"\n (change)=\"onChange($event)\"\n (focus)=\"this.focus.emit($event)\"\n (input)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [autocomplete]=\"autocomplete? 'on':'off'\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [maxlength]=\"maxlength\"\n [name]=\"name\"\n [ngClass]=\"{'c-input_opaque' : opacity === false,\n 'c-input_shadowed' : shadow,\n 'c-input_large' : large,\n 'c-input_small' : small,\n 'c-input_margin_padding': widget,\n 'c-input_padding_right': forms}\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [size]=\"size\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n class=\"search-box c-input c-input_large c-input_small field_{{id}}\"\n type=\"search\"\n autofocus=\"\"\n tabindex=\"1\">\n <button (click)=\"clear()\"\n class=\"button-reset empty\"\n [ngClass]=\"{empty: display}\"\n type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n</label>\n",
|
|
1027
1065
|
providers: [
|
|
1028
1066
|
{
|
|
1029
1067
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -1031,7 +1069,7 @@
|
|
|
1031
1069
|
multi: true,
|
|
1032
1070
|
}
|
|
1033
1071
|
],
|
|
1034
|
-
styles: ["@charset \"UTF-8\";.label{display:inline-block;margin-bottom:0}.c-input{height:36px}.c-input_opaque{background:var(--colorBgLevel3)}.c-input_shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.constraints-message__warning{color:red}"]
|
|
1072
|
+
styles: ["@charset \"UTF-8\";.label{display:inline-block;margin-bottom:0}.c-input{height:36px}.c-input_opaque{background:var(--colorBgLevel3)}.c-input_shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.constraints-message__warning{color:red}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color,#fff)}.empty{display:none}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}.c-input_margin_padding{margin-left:56px;padding-right:10px;max-width:1200px}.c-input_padding_right{padding-right:28px}"]
|
|
1035
1073
|
})
|
|
1036
1074
|
], InputTextComponent);
|
|
1037
1075
|
return InputTextComponent;
|