@syncfusion/ej2-inputs 19.3.44 → 19.3.57

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.44
3
+ * version : 19.3.57
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inputs@*",
3
- "_id": "@syncfusion/ej2-inputs@18.34.1",
3
+ "_id": "@syncfusion/ej2-inputs@19.3.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-72KXUXehXC0ACJqSqMOh8K03wptUhx3011va7AfvwvewI5pM77XUOPAJtFiiCgArWWf/C0PmzaaAGVJykupjMw==",
5
+ "_integrity": "sha512-X2tzMF4ty8VcVx/5tbIRlBmCKNoiRppLhSLLwS6OlTxgYk/2RFftmSAG3ueAR9rCMeXfjR+ENinMIg/MsN0LPQ==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -38,8 +38,8 @@
38
38
  "/@syncfusion/ej2-schedule",
39
39
  "/@syncfusion/ej2-vue-inputs"
40
40
  ],
41
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-inputs/-/ej2-inputs-18.34.1.tgz",
42
- "_shasum": "cc6eb09d4b8391708b125590dd03174294312117",
41
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-19.3.53.tgz",
42
+ "_shasum": "89d9dcc91daef696c370042770506c72e27880a3",
43
43
  "_spec": "@syncfusion/ej2-inputs@*",
44
44
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
45
45
  "author": {
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "bundleDependencies": false,
49
49
  "dependencies": {
50
- "@syncfusion/ej2-base": "~19.3.43",
51
- "@syncfusion/ej2-buttons": "~19.3.44",
52
- "@syncfusion/ej2-popups": "~19.3.43",
53
- "@syncfusion/ej2-splitbuttons": "~19.3.44"
50
+ "@syncfusion/ej2-base": "~19.3.56",
51
+ "@syncfusion/ej2-buttons": "~19.3.53",
52
+ "@syncfusion/ej2-popups": "~19.3.57",
53
+ "@syncfusion/ej2-splitbuttons": "~19.3.53"
54
54
  },
55
55
  "deprecated": false,
56
56
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
@@ -118,6 +118,6 @@
118
118
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
119
119
  },
120
120
  "typings": "index.d.ts",
121
- "version": "19.3.44",
121
+ "version": "19.3.57",
122
122
  "sideEffects": false
123
123
  }
@@ -92,6 +92,13 @@ export interface ColorPickerModel extends ComponentModel{
92
92
  */
93
93
  enableOpacity?: boolean;
94
94
 
95
+ /**
96
+ * Specifies the popup element creation on open.
97
+ *
98
+ * @default false
99
+ */
100
+ createPopupOnClick?: boolean;
101
+
95
102
  /**
96
103
  * Triggers while selecting the color in picker / palette, when showButtons property is enabled.
97
104
  *
@@ -108,6 +108,12 @@ export declare class ColorPicker extends Component<HTMLInputElement> implements
108
108
  * @default true
109
109
  */
110
110
  enableOpacity: boolean;
111
+ /**
112
+ * Specifies the popup element creation on open.
113
+ *
114
+ * @default false
115
+ */
116
+ createPopupOnClick: boolean;
111
117
  /**
112
118
  * Triggers while selecting the color in picker / palette, when showButtons property is enabled.
113
119
  *
@@ -188,6 +188,7 @@ var ColorPicker = /** @class */ (function (_super) {
188
188
  target: this.container,
189
189
  disabled: this.disabled,
190
190
  enableRtl: this.enableRtl,
191
+ createPopupOnClick: this.createPopupOnClick,
191
192
  open: this.onOpen.bind(this),
192
193
  click: function () {
193
194
  _this.trigger('change', {
@@ -1335,7 +1336,12 @@ var ColorPicker = /** @class */ (function (_super) {
1335
1336
  if (!this.showButtons && !isKey) {
1336
1337
  this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
1337
1338
  previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
1338
- this.setProperties({ 'value': cValue }, true);
1339
+ if (this.enableOpacity) {
1340
+ this.setProperties({ 'value': cValue }, true);
1341
+ }
1342
+ else {
1343
+ this.setProperties({ 'value': hex }, true);
1344
+ }
1339
1345
  this.element.value = hex ? hex : '#000000';
1340
1346
  }
1341
1347
  else {
@@ -1857,6 +1863,9 @@ var ColorPicker = /** @class */ (function (_super) {
1857
1863
  __decorate([
1858
1864
  Property(true)
1859
1865
  ], ColorPicker.prototype, "enableOpacity", void 0);
1866
+ __decorate([
1867
+ Property(false)
1868
+ ], ColorPicker.prototype, "createPopupOnClick", void 0);
1860
1869
  __decorate([
1861
1870
  Event()
1862
1871
  ], ColorPicker.prototype, "select", void 0);
@@ -180,7 +180,7 @@ export function bindClearEvent() {
180
180
  }
181
181
  function resetHandler(e) {
182
182
  e.preventDefault();
183
- if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide')) {
183
+ if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || (this.inputObj.container.classList.contains('e-static-clear'))) {
184
184
  clear.call(this, e);
185
185
  this.value = '';
186
186
  }
@@ -416,7 +416,7 @@ var NumericTextBox = /** @class */ (function (_super) {
416
416
  };
417
417
  NumericTextBox.prototype.resetHandler = function (e) {
418
418
  e.preventDefault();
419
- if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
419
+ if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) || this.inputWrapper.container.classList.contains('e-static-clear')) {
420
420
  this.clear(e);
421
421
  }
422
422
  this.isInteract = true;
@@ -662,6 +662,11 @@ var NumericTextBox = /** @class */ (function (_super) {
662
662
  if (this.isVue) {
663
663
  var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
664
664
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
665
+ //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
666
+ var nonZeroRegex = new RegExp('[^1-9]+$');
667
+ if (nonZeroRegex.test(this.element.value)) {
668
+ current = this.value;
669
+ }
665
670
  var eventArgs = {
666
671
  event: event,
667
672
  value: (current === null || isNaN(current) ? null : current),
@@ -503,7 +503,7 @@ var TextBox = /** @class */ (function (_super) {
503
503
  };
504
504
  TextBox.prototype.resetInputHandler = function (event) {
505
505
  event.preventDefault();
506
- if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR))) {
506
+ if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR)) || this.textboxWrapper.container.classList.contains('e-static-clear')) {
507
507
  Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);
508
508
  if (this.isHiddenInput) {
509
509
  this.element.value = this.respectiveElement.value;
package/tslint.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "rules": {
3
+ "chai-vague-errors": true,
4
+ "use-isnan": true,
5
+ "missing-jsdoc": true,
6
+ "missing-optional-annotation": true,
7
+ "no-backbone-get-set-outside-model": true,
8
+ "no-banned-terms": true,
9
+ "no-constant-condition": true,
10
+ "no-control-regex": true,
11
+ "no-cookies": true,
12
+ "no-delete-expression": true,
13
+ "no-document-write": true,
14
+ "no-document-domain": true,
15
+ "no-disable-auto-sanitization": true,
16
+ "no-duplicate-case": true,
17
+ "no-duplicate-parameter-names": true,
18
+ "no-empty-interfaces": true,
19
+ "no-exec-script": true,
20
+ "no-function-constructor-with-string-args": true,
21
+ "no-function-expression": true,
22
+ "no-invalid-regexp": true,
23
+ "no-for-in": true,
24
+ "member-access": true,
25
+ "no-multiline-string": true,
26
+ "no-multiple-var-decl": true,
27
+ "no-unnecessary-bind": true,
28
+ "no-unnecessary-semicolons": true,
29
+ "no-octal-literal": true,
30
+ "no-regex-spaces": true,
31
+ "no-sparse-arrays": true,
32
+ "no-string-based-set-immediate": true,
33
+ "no-string-based-set-interval": true,
34
+ "no-unused-imports": true,
35
+ "no-with-statement": true,
36
+ "prefer-array-literal": true,
37
+ "promise-must-complete": false,
38
+ "react-no-dangerous-html": true,
39
+ "use-named-parameter": true,
40
+ "valid-typeof": true,
41
+ "max-func-body-length": [true, 100, {
42
+ "ignore-parameters-to-function-regex": "describe"
43
+ }],
44
+ "class-name": true,
45
+ "curly": true,
46
+ "eofline": false,
47
+ "forin": true,
48
+ "indent": [
49
+ true,
50
+ "spaces"
51
+ ],
52
+ "label-position": true,
53
+ "max-line-length": [true, 140],
54
+ "no-arg": true,
55
+ "no-console": [true,
56
+ "debug",
57
+ "info",
58
+ "log",
59
+ "time",
60
+ "timeEnd",
61
+ "trace"
62
+ ],
63
+ "no-construct": true,
64
+ "no-parameter-properties": true,
65
+ "no-debugger": true,
66
+ "no-duplicate-variable": true,
67
+ "no-empty": true,
68
+ "no-eval": true,
69
+ "no-string-literal": true,
70
+ "no-switch-case-fall-through": true,
71
+ "trailing-comma": true,
72
+ "no-trailing-whitespace": true,
73
+ "no-unused-expression": true,
74
+ "no-use-before-declare": false,
75
+ "no-var-requires": true,
76
+ "one-line": [true,
77
+ "check-open-brace",
78
+ "check-catch",
79
+ "check-else",
80
+ "check-whitespace"
81
+ ],
82
+ "no-any": true,
83
+ "no-conditional-assignment": true,
84
+ "no-angle-bracket-type-assertion": false,
85
+ "align": [true, "parameters", "arguments", "statements"],
86
+ "no-empty-line-after-opening-brace": false,
87
+ "typedef-whitespace": [false],
88
+ "ban": true,
89
+ "quotemark": [true, "single"],
90
+ "semicolon": true,
91
+ "triple-equals": [true, "allow-null-check"],
92
+ "typedef": [true,
93
+ "call-signature",
94
+ "parameter",
95
+ "property-declaration",
96
+ "variable-declaration",
97
+ "arrow-parameter",
98
+ "member-variable-declaration"],
99
+ "variable-name": true,
100
+ "whitespace": [true,
101
+ "check-branch",
102
+ "check-decl",
103
+ "check-operator",
104
+ "check-separator",
105
+ "check-type"
106
+ ],
107
+ "jsdoc-format": true,
108
+ "no-var-keyword": true,
109
+ "radix": true
110
+ }
111
+ }