@syncfusion/ej2-inputs 19.3.47 → 19.4.38

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.
Files changed (150) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +28 -0
  3. package/README.md +1 -1
  4. package/common.d.ts +4 -0
  5. package/common.js +4 -0
  6. package/dist/ej2-inputs.umd.min.js +2 -2
  7. package/dist/ej2-inputs.umd.min.js.map +1 -1
  8. package/dist/es6/ej2-inputs.es2015.js +1124 -12
  9. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  10. package/dist/es6/ej2-inputs.es5.js +1158 -11
  11. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  12. package/dist/global/ej2-inputs.min.js +2 -2
  13. package/dist/global/ej2-inputs.min.js.map +1 -1
  14. package/dist/global/index.d.ts +1 -1
  15. package/package.json +9 -9
  16. package/signature.d.ts +4 -0
  17. package/signature.js +4 -0
  18. package/src/color-picker/color-picker-model.d.ts +7 -0
  19. package/src/color-picker/color-picker.d.ts +6 -0
  20. package/src/color-picker/color-picker.js +10 -1
  21. package/src/common/index.d.ts +4 -0
  22. package/src/common/index.js +4 -0
  23. package/src/common/signature-base.d.ts +320 -0
  24. package/src/common/signature-base.js +946 -0
  25. package/src/index.d.ts +2 -0
  26. package/src/index.js +2 -0
  27. package/src/input/input.js +10 -6
  28. package/src/maskedtextbox/base/mask-base.js +1 -1
  29. package/src/numerictextbox/numerictextbox.js +6 -1
  30. package/src/signature/index.d.ts +5 -0
  31. package/src/signature/index.js +4 -0
  32. package/src/signature/signature-model.d.ts +131 -0
  33. package/src/signature/signature.d.ts +167 -0
  34. package/src/signature/signature.js +171 -0
  35. package/src/slider/slider.d.ts +1 -0
  36. package/src/slider/slider.js +9 -0
  37. package/src/textbox/textbox.js +1 -1
  38. package/styles/bootstrap-dark.css +23 -16
  39. package/styles/bootstrap-dark.scss +1 -0
  40. package/styles/bootstrap.css +23 -16
  41. package/styles/bootstrap.scss +1 -0
  42. package/styles/bootstrap4.css +23 -16
  43. package/styles/bootstrap4.scss +1 -0
  44. package/styles/bootstrap5-dark.css +27 -42
  45. package/styles/bootstrap5-dark.scss +1 -0
  46. package/styles/bootstrap5.css +27 -42
  47. package/styles/bootstrap5.scss +1 -0
  48. package/styles/color-picker/_fabric-dark-definition.scss +1 -1
  49. package/styles/color-picker/_fluent-definition.scss +134 -0
  50. package/styles/color-picker/_layout.scss +5 -5
  51. package/styles/color-picker/_theme.scss +1 -15
  52. package/styles/color-picker/bootstrap5-dark.css +3 -21
  53. package/styles/color-picker/bootstrap5.css +3 -21
  54. package/styles/color-picker/fabric-dark.css +3 -3
  55. package/styles/color-picker/icons/_fluent.scss +10 -0
  56. package/styles/fabric-dark.css +26 -19
  57. package/styles/fabric-dark.scss +1 -0
  58. package/styles/fabric.css +23 -16
  59. package/styles/fabric.scss +1 -0
  60. package/styles/highcontrast-light.css +23 -16
  61. package/styles/highcontrast-light.scss +1 -0
  62. package/styles/highcontrast.css +23 -16
  63. package/styles/highcontrast.scss +1 -0
  64. package/styles/input/_fluent-definition.scss +321 -0
  65. package/styles/input/_layout.scss +138 -37
  66. package/styles/input/_theme.scss +42 -24
  67. package/styles/input/bootstrap-dark.css +13 -16
  68. package/styles/input/bootstrap.css +13 -16
  69. package/styles/input/bootstrap4.css +13 -16
  70. package/styles/input/bootstrap5-dark.css +13 -16
  71. package/styles/input/bootstrap5.css +13 -16
  72. package/styles/input/fabric-dark.css +13 -16
  73. package/styles/input/fabric.css +13 -16
  74. package/styles/input/highcontrast-light.css +13 -16
  75. package/styles/input/highcontrast.css +13 -16
  76. package/styles/input/icons/_fluent.scss +17 -0
  77. package/styles/input/material-dark.css +13 -16
  78. package/styles/input/material.css +13 -16
  79. package/styles/input/tailwind-dark.css +13 -16
  80. package/styles/input/tailwind.css +13 -16
  81. package/styles/maskedtextbox/_fluent-definition.scss +7 -0
  82. package/styles/maskedtextbox/_theme.scss +2 -2
  83. package/styles/material-dark.css +23 -16
  84. package/styles/material-dark.scss +1 -0
  85. package/styles/material.css +23 -16
  86. package/styles/material.scss +1 -0
  87. package/styles/numerictextbox/_fluent-definition.scss +5 -0
  88. package/styles/numerictextbox/_theme.scss +18 -0
  89. package/styles/numerictextbox/icons/_fluent.scss +12 -0
  90. package/styles/signature/_all.scss +2 -0
  91. package/styles/signature/_bootstrap-dark-definition.scss +3 -0
  92. package/styles/signature/_bootstrap-definition.scss +3 -0
  93. package/styles/signature/_bootstrap4-definition.scss +3 -0
  94. package/styles/signature/_bootstrap5-dark-definition.scss +1 -0
  95. package/styles/signature/_bootstrap5-definition.scss +3 -0
  96. package/styles/signature/_fabric-dark-definition.scss +3 -0
  97. package/styles/signature/_fabric-definition.scss +3 -0
  98. package/styles/signature/_fluent-definition.scss +3 -0
  99. package/styles/signature/_highcontrast-definition.scss +3 -0
  100. package/styles/signature/_highcontrast-light-definition.scss +3 -0
  101. package/styles/signature/_layout.scss +5 -0
  102. package/styles/signature/_material-dark-definition.scss +3 -0
  103. package/styles/signature/_material-definition.scss +3 -0
  104. package/styles/signature/_tailwind-dark-definition.scss +1 -0
  105. package/styles/signature/_tailwind-definition.scss +3 -0
  106. package/styles/signature/_theme.scss +7 -0
  107. package/styles/signature/bootstrap-dark.css +9 -0
  108. package/styles/signature/bootstrap-dark.scss +3 -0
  109. package/styles/signature/bootstrap.css +9 -0
  110. package/styles/signature/bootstrap.scss +3 -0
  111. package/styles/signature/bootstrap4.css +9 -0
  112. package/styles/signature/bootstrap4.scss +3 -0
  113. package/styles/signature/bootstrap5-dark.css +9 -0
  114. package/styles/signature/bootstrap5-dark.scss +3 -0
  115. package/styles/signature/bootstrap5.css +9 -0
  116. package/styles/signature/bootstrap5.scss +3 -0
  117. package/styles/signature/fabric-dark.css +9 -0
  118. package/styles/signature/fabric-dark.scss +3 -0
  119. package/styles/signature/fabric.css +9 -0
  120. package/styles/signature/fabric.scss +3 -0
  121. package/styles/signature/highcontrast-light.css +9 -0
  122. package/styles/signature/highcontrast-light.scss +3 -0
  123. package/styles/signature/highcontrast.css +9 -0
  124. package/styles/signature/highcontrast.scss +3 -0
  125. package/styles/signature/material-dark.css +10 -0
  126. package/styles/signature/material-dark.scss +3 -0
  127. package/styles/signature/material.css +10 -0
  128. package/styles/signature/material.scss +3 -0
  129. package/styles/signature/tailwind-dark.css +10 -0
  130. package/styles/signature/tailwind-dark.scss +3 -0
  131. package/styles/signature/tailwind.css +10 -0
  132. package/styles/signature/tailwind.scss +3 -0
  133. package/styles/slider/_bootstrap5-definition.scss +2 -2
  134. package/styles/slider/_fluent-definition.scss +94 -0
  135. package/styles/slider/_layout.scss +7 -2
  136. package/styles/slider/_tailwind-definition.scss +2 -2
  137. package/styles/slider/bootstrap5-dark.css +1 -5
  138. package/styles/slider/bootstrap5.css +1 -5
  139. package/styles/slider/tailwind-dark.css +1 -5
  140. package/styles/slider/tailwind.css +1 -5
  141. package/styles/tailwind-dark.css +25 -21
  142. package/styles/tailwind-dark.scss +1 -0
  143. package/styles/tailwind.css +25 -21
  144. package/styles/tailwind.scss +1 -0
  145. package/styles/textbox/_fluent-definition.scss +0 -0
  146. package/styles/uploader/_fluent-definition.scss +234 -0
  147. package/styles/uploader/_layout.scss +99 -8
  148. package/styles/uploader/_theme.scss +5 -2
  149. package/styles/uploader/icons/_fluent.scss +34 -0
  150. package/tslint.json +111 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,244 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:jsdoc/recommended"
10
+ ],
11
+ "parser": "@typescript-eslint/parser",
12
+ "parserOptions": {
13
+ "ecmaFeatures": { "js": true },
14
+ "ecmaVersion": 2018,
15
+ "project": "./tsconfig.json",
16
+ "sourceType": "module"
17
+ },
18
+ "plugins": [
19
+ "@typescript-eslint",
20
+ "@typescript-eslint/tslint",
21
+ "jsdoc"
22
+ ],
23
+ "rules": {
24
+ "use-isnan": "error",
25
+ "@typescript-eslint/no-inferrable-types": "off",
26
+ "@typescript-eslint/ban-types": ["warn", {
27
+ "types": {
28
+ "Object": false,
29
+ "object": false,
30
+ "{}": false,
31
+ "Function": false
32
+ }
33
+ }],
34
+ "jsdoc/check-tag-names": 0,
35
+ "@typescript-eslint/tslint/config": [
36
+ "error",
37
+ {
38
+ "rules": {
39
+ "ban": true,
40
+ "chai-vague-errors": true,
41
+ "max-func-body-length": [
42
+ true,
43
+ 120,
44
+ {
45
+ "ignore-parameters-to-function-regex": "describe"
46
+ }
47
+ ],
48
+ "missing-jsdoc": true,
49
+ "no-backbone-get-set-outside-model": false,
50
+ "no-cookies": false,
51
+ "no-delete-expression": false,
52
+ "no-disable-auto-sanitization": true,
53
+ "no-duplicate-case": true,
54
+ "no-duplicate-parameter-names": true,
55
+ "no-empty-interfaces": false,
56
+ "no-exec-script": true,
57
+ "no-function-expression": false,
58
+ "no-multiple-var-decl": false,
59
+ "no-string-based-set-immediate": false,
60
+ "no-string-based-set-interval": false,
61
+ "no-unnecessary-bind": false,
62
+ "no-unused-imports": true,
63
+ "no-with-statement": false,
64
+ "prefer-array-literal": false,
65
+ "typedef": [
66
+ true,
67
+ "call-signature",
68
+ "parameter",
69
+ "property-declaration",
70
+ "variable-declaration",
71
+ "arrow-parameter",
72
+ "member-variable-declaration"
73
+ ],
74
+ "use-named-parameter": false,
75
+ "valid-typeof": true,
76
+ "whitespace": [
77
+ true,
78
+ "check-branch",
79
+ "check-decl",
80
+ "check-operator",
81
+ "check-separator",
82
+ "check-type"
83
+ ]
84
+ }
85
+ }
86
+ ],
87
+ "no-control-regex": "error",
88
+ "no-constant-condition": "error",
89
+ "no-invalid-regexp": "error",
90
+ "curly": "error",
91
+ "eol-last": [
92
+ "error",
93
+ "always"
94
+ ],
95
+ "guard-for-in": "error",
96
+ "no-labels": "error",
97
+ "max-len": [
98
+ "error",
99
+ {
100
+ "code": 140,
101
+ "tabWidth": 4,
102
+ "ignoreComments": true,
103
+ "ignoreStrings": true,
104
+ "ignoreTemplateLiterals": true,
105
+ "ignoreRegExpLiterals": true
106
+ }
107
+ ],
108
+ "no-console": [
109
+ "error",
110
+ {
111
+ "allow": [
112
+ "warn",
113
+ "dir",
114
+ "timeLog",
115
+ "assert",
116
+ "clear",
117
+ "count",
118
+ "countReset",
119
+ "group",
120
+ "groupEnd",
121
+ "table",
122
+ "dirxml",
123
+ "error",
124
+ "groupCollapsed",
125
+ "Console",
126
+ "profile",
127
+ "profileEnd",
128
+ "timeStamp",
129
+ "context"
130
+ ]
131
+ }
132
+ ],
133
+ "no-redeclare": [
134
+ "error",
135
+ {
136
+ "builtinGlobals": true
137
+ }
138
+ ],
139
+ "@typescript-eslint/no-parameter-properties": "error",
140
+ "@typescript-eslint/indent": [
141
+ "error",
142
+ 4,
143
+ {
144
+ "CallExpression": {
145
+ "arguments": "first"
146
+ },
147
+ "FunctionDeclaration": {
148
+ "parameters": "first"
149
+ },
150
+ "FunctionExpression": {
151
+ "parameters": "first"
152
+ }
153
+ }
154
+ ],
155
+ "no-debugger": "error",
156
+ "no-eval": "error",
157
+ "no-extra-semi": "error",
158
+ "no-throw-literal": "error",
159
+ "no-fallthrough": "error",
160
+ "comma-dangle": [
161
+ "error",
162
+ "never"
163
+ ],
164
+ "no-trailing-spaces": "error",
165
+ "@typescript-eslint/no-unused-expressions": "error",
166
+ "@typescript-eslint/no-var-requires": "error",
167
+ "one-var": [
168
+ "error",
169
+ "never"
170
+ ],
171
+ "@typescript-eslint/no-explicit-any": "error",
172
+ "no-cond-assign": [
173
+ "error",
174
+ "always"
175
+ ],
176
+ "@typescript-eslint/consistent-type-assertions": "off",
177
+ "jsdoc/check-alignment": "error",
178
+ "no-empty": "error",
179
+ "quotes": [
180
+ "error",
181
+ "single"
182
+ ],
183
+ "semi": [
184
+ "error",
185
+ "always"
186
+ ],
187
+ "eqeqeq": [
188
+ "error",
189
+ "smart"
190
+ ],
191
+ "valid-typeof": [
192
+ "error",
193
+ {
194
+ "requireStringLiterals": true
195
+ }
196
+ ],
197
+ "camelcase": [
198
+ "error",
199
+ {
200
+ "properties": "always",
201
+ "ignoreDestructuring": true,
202
+ "ignoreImports": true
203
+ }
204
+ ],
205
+ "no-irregular-whitespace": [
206
+ "error",
207
+ {
208
+ "skipStrings": true,
209
+ "skipComments": true,
210
+ "skipRegExps": true,
211
+ "skipTemplates": true
212
+ }
213
+ ],
214
+ "valid-jsdoc": [
215
+ "error",
216
+ {
217
+ "prefer": {
218
+ "arg": "param",
219
+ "argument": "param",
220
+ "class": "constructor",
221
+ "return": "returns",
222
+ "virtual": "abstract"
223
+ }
224
+ }
225
+ ],
226
+ "no-var": "error",
227
+ "radix": "error"
228
+ },
229
+ "reportUnusedDisableDirectives": true,
230
+ "overrides": [
231
+ {
232
+ "files": [
233
+ "node_modules",
234
+ "dist",
235
+ "public",
236
+ "coverage",
237
+ "test-report"
238
+ ],
239
+ "rules": {
240
+ "no-unused-expressions": "off"
241
+ }
242
+ }
243
+ ]
244
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ### Signature
6
+
7
+ The Signature control allows user to draw smooth signatures as vector outline of strokes using variable width Bézier curve interpolation. You can use your finger, pen, or mouse on a tablet, touchscreen, etc., to draw your own signature on this Signature control.
8
+
9
+ - **Customization** - Support various customization options like background color, background image, stroke color, stroke width, save with background, undo, redo, clear, readonly, and disabled.
10
+ - **Load** - Support to load the signature as base64.
11
+ - **Draw** - Support to draw the text with the different font family and font size.
12
+ - **Save** - Support to save the signature as image like PNG, JPEG, and SVG.
13
+
14
+ ## 19.3.53 (2021-11-12)
15
+
16
+ ### ColorPicker
17
+
18
+ #### Bug Fixes
19
+
20
+ - Overflow issue in ColorPicker has been resolved.
21
+
22
+ ## 19.3.48 (2021-11-02)
23
+
24
+ ### ColorPicker
25
+
26
+ #### Bug Fixes
27
+
28
+ - `createPopupOnClick` property scenario not handled properly in `ColorPicker` has been resolved.
29
+ - `I344127` - Issue with ColorPicker value not updated properly if opacity is set to false has been resolved.
30
+
31
+ ## 19.3.44 (2021-10-05)
32
+
5
33
  ### NumericTextBox
6
34
 
7
35
  #### Bug Fixes
package/README.md CHANGED
@@ -138,4 +138,4 @@ Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-
138
138
  Check the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/inputs/CHANGELOG.md/?utm_source=npm&utm_campaign=input)
139
139
 
140
140
 
141
- © Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
141
+ © Copyright 2021 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
package/common.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * common
3
+ */
4
+ export * from './src/common/index';
package/common.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * common
3
+ */
4
+ export * from './src/common/index';