@progress/kendo-vue-inputs 3.7.4-dev.202212020747 → 3.7.4-dev.202212300853

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 (126) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  3. package/dist/es/colors/ColorContrastLabels.js +26 -10
  4. package/dist/es/colors/ColorGradient.js +14 -4
  5. package/dist/es/colors/ColorPicker.js +23 -7
  6. package/dist/es/colors/FlatColorPicker.js +51 -21
  7. package/dist/es/input/Input.d.ts +9 -0
  8. package/dist/es/input/Input.js +33 -11
  9. package/dist/es/main.d.ts +2 -0
  10. package/dist/es/main.js +2 -0
  11. package/dist/es/maskedtextbox/MaskedTextBox.js +30 -9
  12. package/dist/es/messages/main.d.ts +40 -0
  13. package/dist/es/messages/main.js +41 -2
  14. package/dist/es/numerictextbox/NumericTextBox.js +29 -12
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/range-slider/RangeSlider.js +9 -3
  17. package/dist/es/signature/Signature.d.ts +39 -0
  18. package/dist/es/signature/Signature.js +626 -0
  19. package/dist/es/signature/SignatureCanvas.d.ts +39 -0
  20. package/dist/es/signature/SignatureCanvas.js +282 -0
  21. package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  22. package/dist/es/signature/interfaces/SignatureBlurEvent.js +1 -0
  23. package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  24. package/dist/es/signature/interfaces/SignatureCanvasProps.js +1 -0
  25. package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  26. package/dist/es/signature/interfaces/SignatureChangeEvent.js +1 -0
  27. package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  28. package/dist/es/signature/interfaces/SignatureCloseEvent.js +1 -0
  29. package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  30. package/dist/es/signature/interfaces/SignatureFocusEvent.js +1 -0
  31. package/dist/es/signature/interfaces/SignatureHandle.d.ts +42 -0
  32. package/dist/es/signature/interfaces/SignatureHandle.js +1 -0
  33. package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  34. package/dist/es/signature/interfaces/SignatureOpenEvent.js +1 -0
  35. package/dist/es/signature/interfaces/SignatureProps.d.ts +192 -0
  36. package/dist/es/signature/interfaces/SignatureProps.js +1 -0
  37. package/dist/es/signature/interfaces/index.d.ts +7 -0
  38. package/dist/es/signature/interfaces/index.js +1 -0
  39. package/dist/es/signature/utils/index.d.ts +4 -0
  40. package/dist/es/signature/utils/index.js +10 -0
  41. package/dist/es/slider/Slider.js +37 -25
  42. package/dist/es/switch/Switch.js +7 -7
  43. package/dist/es/textarea/TextArea.js +24 -9
  44. package/dist/esm/colors/ColorContrastLabels.js +26 -10
  45. package/dist/esm/colors/ColorGradient.js +14 -4
  46. package/dist/esm/colors/ColorPicker.js +23 -7
  47. package/dist/esm/colors/FlatColorPicker.js +51 -21
  48. package/dist/esm/input/Input.d.ts +9 -0
  49. package/dist/esm/input/Input.js +33 -11
  50. package/dist/esm/main.d.ts +2 -0
  51. package/dist/esm/main.js +2 -0
  52. package/dist/esm/maskedtextbox/MaskedTextBox.js +30 -9
  53. package/dist/esm/messages/main.d.ts +40 -0
  54. package/dist/esm/messages/main.js +41 -2
  55. package/dist/esm/numerictextbox/NumericTextBox.js +29 -12
  56. package/dist/esm/package-metadata.js +1 -1
  57. package/dist/esm/range-slider/RangeSlider.js +9 -3
  58. package/dist/esm/signature/Signature.d.ts +39 -0
  59. package/dist/esm/signature/Signature.js +626 -0
  60. package/dist/esm/signature/SignatureCanvas.d.ts +39 -0
  61. package/dist/esm/signature/SignatureCanvas.js +282 -0
  62. package/dist/esm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  63. package/dist/esm/signature/interfaces/SignatureBlurEvent.js +1 -0
  64. package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  65. package/dist/esm/signature/interfaces/SignatureCanvasProps.js +1 -0
  66. package/dist/esm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  67. package/dist/esm/signature/interfaces/SignatureChangeEvent.js +1 -0
  68. package/dist/esm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  69. package/dist/esm/signature/interfaces/SignatureCloseEvent.js +1 -0
  70. package/dist/esm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  71. package/dist/esm/signature/interfaces/SignatureFocusEvent.js +1 -0
  72. package/dist/esm/signature/interfaces/SignatureHandle.d.ts +42 -0
  73. package/dist/esm/signature/interfaces/SignatureHandle.js +1 -0
  74. package/dist/esm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  75. package/dist/esm/signature/interfaces/SignatureOpenEvent.js +1 -0
  76. package/dist/esm/signature/interfaces/SignatureProps.d.ts +192 -0
  77. package/dist/esm/signature/interfaces/SignatureProps.js +1 -0
  78. package/dist/esm/signature/interfaces/index.d.ts +7 -0
  79. package/dist/esm/signature/interfaces/index.js +1 -0
  80. package/dist/esm/signature/utils/index.d.ts +4 -0
  81. package/dist/esm/signature/utils/index.js +10 -0
  82. package/dist/esm/slider/Slider.js +37 -25
  83. package/dist/esm/switch/Switch.js +7 -7
  84. package/dist/esm/textarea/TextArea.js +24 -9
  85. package/dist/npm/colors/ColorContrastLabels.js +26 -10
  86. package/dist/npm/colors/ColorGradient.js +13 -3
  87. package/dist/npm/colors/ColorPicker.js +23 -7
  88. package/dist/npm/colors/FlatColorPicker.js +50 -20
  89. package/dist/npm/input/Input.d.ts +9 -0
  90. package/dist/npm/input/Input.js +32 -10
  91. package/dist/npm/main.d.ts +2 -0
  92. package/dist/npm/main.js +2 -0
  93. package/dist/npm/maskedtextbox/MaskedTextBox.js +29 -8
  94. package/dist/npm/messages/main.d.ts +40 -0
  95. package/dist/npm/messages/main.js +42 -3
  96. package/dist/npm/numerictextbox/NumericTextBox.js +28 -11
  97. package/dist/npm/package-metadata.js +1 -1
  98. package/dist/npm/range-slider/RangeSlider.js +9 -3
  99. package/dist/npm/signature/Signature.d.ts +39 -0
  100. package/dist/npm/signature/Signature.js +633 -0
  101. package/dist/npm/signature/SignatureCanvas.d.ts +39 -0
  102. package/dist/npm/signature/SignatureCanvas.js +289 -0
  103. package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  104. package/dist/npm/signature/interfaces/SignatureBlurEvent.js +5 -0
  105. package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  106. package/dist/npm/signature/interfaces/SignatureCanvasProps.js +5 -0
  107. package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  108. package/dist/npm/signature/interfaces/SignatureChangeEvent.js +5 -0
  109. package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  110. package/dist/npm/signature/interfaces/SignatureCloseEvent.js +5 -0
  111. package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  112. package/dist/npm/signature/interfaces/SignatureFocusEvent.js +5 -0
  113. package/dist/npm/signature/interfaces/SignatureHandle.d.ts +42 -0
  114. package/dist/npm/signature/interfaces/SignatureHandle.js +5 -0
  115. package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  116. package/dist/npm/signature/interfaces/SignatureOpenEvent.js +5 -0
  117. package/dist/npm/signature/interfaces/SignatureProps.d.ts +192 -0
  118. package/dist/npm/signature/interfaces/SignatureProps.js +5 -0
  119. package/dist/npm/signature/interfaces/index.d.ts +7 -0
  120. package/dist/npm/signature/interfaces/index.js +2 -0
  121. package/dist/npm/signature/utils/index.d.ts +4 -0
  122. package/dist/npm/signature/utils/index.js +14 -0
  123. package/dist/npm/slider/Slider.js +36 -24
  124. package/dist/npm/switch/Switch.js +7 -7
  125. package/dist/npm/textarea/TextArea.js +23 -8
  126. package/package.json +15 -11
@@ -0,0 +1,282 @@
1
+ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) {
3
+ return value instanceof P ? value : new P(function (resolve) {
4
+ resolve(value);
5
+ });
6
+ }
7
+ return new (P || (P = Promise))(function (resolve, reject) {
8
+ function fulfilled(value) {
9
+ try {
10
+ step(generator.next(value));
11
+ } catch (e) {
12
+ reject(e);
13
+ }
14
+ }
15
+ function rejected(value) {
16
+ try {
17
+ step(generator["throw"](value));
18
+ } catch (e) {
19
+ reject(e);
20
+ }
21
+ }
22
+ function step(result) {
23
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
24
+ }
25
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
26
+ });
27
+ };
28
+ var __generator = this && this.__generator || function (thisArg, body) {
29
+ var _ = {
30
+ label: 0,
31
+ sent: function sent() {
32
+ if (t[0] & 1) throw t[1];
33
+ return t[1];
34
+ },
35
+ trys: [],
36
+ ops: []
37
+ },
38
+ f,
39
+ y,
40
+ t,
41
+ g;
42
+ return g = {
43
+ next: verb(0),
44
+ "throw": verb(1),
45
+ "return": verb(2)
46
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
47
+ return this;
48
+ }), g;
49
+ function verb(n) {
50
+ return function (v) {
51
+ return step([n, v]);
52
+ };
53
+ }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (_) {
57
+ try {
58
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
+ if (y = 0, t) op = [op[0] & 2, t.value];
60
+ switch (op[0]) {
61
+ case 0:
62
+ case 1:
63
+ t = op;
64
+ break;
65
+ case 4:
66
+ _.label++;
67
+ return {
68
+ value: op[1],
69
+ done: false
70
+ };
71
+ case 5:
72
+ _.label++;
73
+ y = op[1];
74
+ op = [0];
75
+ continue;
76
+ case 7:
77
+ op = _.ops.pop();
78
+ _.trys.pop();
79
+ continue;
80
+ default:
81
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
82
+ _ = 0;
83
+ continue;
84
+ }
85
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
86
+ _.label = op[1];
87
+ break;
88
+ }
89
+ if (op[0] === 6 && _.label < t[1]) {
90
+ _.label = t[1];
91
+ t = op;
92
+ break;
93
+ }
94
+ if (t && _.label < t[2]) {
95
+ _.label = t[2];
96
+ _.ops.push(op);
97
+ break;
98
+ }
99
+ if (t[2]) _.ops.pop();
100
+ _.trys.pop();
101
+ continue;
102
+ }
103
+ op = body.call(thisArg, _);
104
+ } catch (e) {
105
+ op = [6, e];
106
+ y = 0;
107
+ } finally {
108
+ f = t = 0;
109
+ }
110
+ }
111
+ if (op[0] & 5) throw op[1];
112
+ return {
113
+ value: op[0] ? op[1] : void 0,
114
+ done: true
115
+ };
116
+ }
117
+ };
118
+ // @ts-ignore
119
+ import * as Vue from 'vue';
120
+ var allVue = Vue;
121
+ var gh = allVue.h;
122
+ var isV3 = allVue.version && allVue.version[0] === '3';
123
+ var ref = allVue.ref;
124
+ import { SignaturePad } from '@progress/kendo-inputs-common';
125
+ import { getTabIndex } from '@progress/kendo-vue-common';
126
+ var setOptions = function setOptions() {
127
+ if (this.instance) {
128
+ this.instance.setOptions(this.getOptions());
129
+ }
130
+ };
131
+ /**
132
+ * @hidden
133
+ */
134
+ var SignatureCanvasVue2 = {
135
+ name: 'KendoSignatureCanvas',
136
+ model: {
137
+ event: 'changemodel'
138
+ },
139
+ // @ts-ignore
140
+ emits: {
141
+ change: null
142
+ },
143
+ inject: {
144
+ kendoIntlService: {
145
+ default: null
146
+ }
147
+ },
148
+ props: {
149
+ strokeWidth: Number,
150
+ popupScale: Number,
151
+ scale: Number,
152
+ value: String,
153
+ tabIndex: Number,
154
+ disabled: Boolean,
155
+ color: String,
156
+ backgroundColor: String,
157
+ elementSize: Function,
158
+ smooth: Boolean
159
+ },
160
+ watch: {
161
+ value: function value(newLocale) {
162
+ if (this.instance) {
163
+ if (newLocale) {
164
+ this.instance.loadImage(newLocale);
165
+ } else {
166
+ this.instance.clear();
167
+ }
168
+ }
169
+ },
170
+ color: setOptions,
171
+ backgroundColor: setOptions,
172
+ smooth: setOptions,
173
+ strokeWidth: setOptions,
174
+ readOnly: setOptions
175
+ },
176
+ mounted: function mounted() {
177
+ var _this = this;
178
+ this.canvas = this.$el;
179
+ var pad = new SignaturePad(this.canvas, this.getOptions());
180
+ if (this.value) {
181
+ pad.loadImage(this.value);
182
+ }
183
+ this.instance = pad;
184
+ this.instance.setOptions({
185
+ onChange: this.onValueChange,
186
+ onDraw: function onDraw() {
187
+ return _this.isDrawing = true;
188
+ },
189
+ onDrawEnd: function onDrawEnd() {
190
+ return _this.isDrawing = false;
191
+ }
192
+ });
193
+ },
194
+ destroyed: !!isV3 ? undefined : function () {
195
+ if (this.instance) {
196
+ this.instance.destroy();
197
+ }
198
+ },
199
+ // @ts-ignore
200
+ unmounted: function unmounted() {
201
+ if (this.instance) {
202
+ this.instance.destroy();
203
+ }
204
+ },
205
+ // @ts-ignore
206
+ setup: !isV3 ? undefined : function () {
207
+ var v3 = !!isV3;
208
+ return {
209
+ v3: v3
210
+ };
211
+ },
212
+ render: function render(createElement) {
213
+ var h = gh || createElement;
214
+ return h("div", {
215
+ "class": 'k-signature-canvas',
216
+ tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
217
+ attrs: this.v3 ? undefined : {
218
+ tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
219
+ role: "img",
220
+ id: this.$props.id,
221
+ "aria-label": this.$props.ariaLabel,
222
+ "aria-labelledby": this.$props.ariaLabelledBy,
223
+ "aria-describedby": this.$props.ariaDescribedBy,
224
+ "aria-disabled": this.$props.disabled ? 'true' : undefined
225
+ },
226
+ role: "img",
227
+ id: this.$props.id,
228
+ "aria-label": this.$props.ariaLabel,
229
+ "aria-labelledby": this.$props.ariaLabelledBy,
230
+ "aria-describedby": this.$props.ariaDescribedBy,
231
+ "aria-disabled": this.$props.disabled ? 'true' : undefined
232
+ });
233
+ },
234
+ methods: {
235
+ onValueChange: function onValueChange() {
236
+ return __awaiter(this, void 0, void 0, function () {
237
+ var nextValue;
238
+ return __generator(this, function (_a) {
239
+ switch (_a.label) {
240
+ case 0:
241
+ return [4 /*yield*/, this.exportImage(this.elementSize())];
242
+ case 1:
243
+ nextValue = _a.sent();
244
+ this.$emit('change', nextValue);
245
+ return [2 /*return*/];
246
+ }
247
+ });
248
+ });
249
+ },
250
+
251
+ getOptions: function getOptions() {
252
+ return {
253
+ scale: this.popupScale,
254
+ color: this.color,
255
+ backgroundColor: this.backgroundColor,
256
+ strokeWidth: this.$props.strokeWidth,
257
+ smooth: this.$props.smooth,
258
+ readonly: this.$props.readOnly
259
+ };
260
+ },
261
+ exportImage: function exportImage(exportSize) {
262
+ var _a;
263
+ return __awaiter(this, void 0, void 0, function () {
264
+ var width, height;
265
+ return __generator(this, function (_b) {
266
+ switch (_b.label) {
267
+ case 0:
268
+ width = exportSize.width, height = exportSize.height;
269
+ return [4 /*yield*/, (_a = this.instance) === null || _a === void 0 ? void 0 : _a.exportImage({
270
+ width: width * this.scale,
271
+ height: height * this.scale
272
+ })];
273
+ case 1:
274
+ return [2 /*return*/, _b.sent()];
275
+ }
276
+ });
277
+ });
278
+ }
279
+ }
280
+ };
281
+ var SignatureCanvas = SignatureCanvasVue2;
282
+ export { SignatureCanvas, SignatureCanvasVue2 };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onBlur` Signature event.
3
+ */
4
+ export interface SignatureBlurEvent {
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ /** @hidden */
2
+ export interface SignatureCanvasProps {
3
+ value?: string;
4
+ tabIndex?: number;
5
+ disabled?: boolean;
6
+ color?: string;
7
+ backgroundColor?: string;
8
+ strokeWidth?: number;
9
+ smooth?: boolean;
10
+ popupScale?: number;
11
+ scale?: number;
12
+ onChange?: (event: any) => void;
13
+ elementSize?: () => any;
14
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The arguments for the `change` event of the Signature.
3
+ */
4
+ export interface SignatureChangeEvent {
5
+ /**
6
+ * The current value of the Signature.
7
+ */
8
+ value: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onClose` Signature event.
3
+ */
4
+ export interface SignatureCloseEvent {
5
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onFocus` Signature event.
3
+ */
4
+ export interface SignatureFocusEvent {
5
+ }
@@ -0,0 +1,42 @@
1
+ import { SignatureProps } from './SignatureProps';
2
+ /**
3
+ * The Signature ref.
4
+ */
5
+ export interface SignatureHandle {
6
+ /**
7
+ * The Signature element.
8
+ */
9
+ element: HTMLInputElement | null;
10
+ /**
11
+ * Focus the Signature.
12
+ */
13
+ focus: () => void;
14
+ /**
15
+ * Gets the `name` property of the Signature.
16
+ */
17
+ name: string | undefined;
18
+ /**
19
+ * Gets the value of the Signature.
20
+ */
21
+ value: number | null;
22
+ /**
23
+ * @hidden
24
+ */
25
+ props: SignatureProps;
26
+ /**
27
+ * @hidden
28
+ */
29
+ validityStyles: boolean;
30
+ /**
31
+ * @hidden
32
+ */
33
+ required: boolean;
34
+ /**
35
+ * @hidden
36
+ */
37
+ color: string;
38
+ /**
39
+ * @hidden
40
+ */
41
+ backgroundColor: string;
42
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The arguments for the `onOpen` Signature event.
3
+ */
4
+ export interface SignatureOpenEvent {
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,192 @@
1
+ import { FormComponentProps } from '@progress/kendo-vue-common';
2
+ import { SignatureChangeEvent } from './SignatureChangeEvent';
3
+ import { SignatureFocusEvent } from './SignatureFocusEvent';
4
+ import { SignatureBlurEvent } from './SignatureBlurEvent';
5
+ import { SignatureOpenEvent } from './SignatureOpenEvent';
6
+ import { SignatureCloseEvent } from './SignatureCloseEvent';
7
+ /**
8
+ * Represents the props of the [Kendo UI for Vue Signature component]({% slug overview_signature %}).
9
+ */
10
+ export interface SignatureProps extends FormComponentProps {
11
+ /**
12
+ * Specifies the value of the Signature.
13
+ *
14
+ * The value is an image encoded as a [Data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs).
15
+ */
16
+ value?: string;
17
+ /**
18
+ * Specifies the v-model.
19
+ */
20
+ modelValue?: string;
21
+ /**
22
+ * Sets the `tabIndex` property of the Signature.
23
+ */
24
+ tabIndex?: number;
25
+ /**
26
+ * Sets the `id` of the Signature DOM element.
27
+ */
28
+ id?: string;
29
+ /**
30
+ * Represents the `dir` HTML attribute.
31
+ */
32
+ dir?: string;
33
+ /**
34
+ * Specifies the name of the Signature input.
35
+ */
36
+ name?: string;
37
+ /**
38
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
39
+ * For example these elements could contain error or hint message.
40
+ */
41
+ ariaDescribedBy?: string;
42
+ /**
43
+ * Identifies the element(s) which will label the component.
44
+ */
45
+ ariaLabelledBy?: string;
46
+ /**
47
+ * The accessible label of the component.
48
+ */
49
+ ariaLabel?: string;
50
+ /**
51
+ * Determines whether the Signature is in its read-only state.
52
+ */
53
+ readOnly?: boolean;
54
+ /**
55
+ * Determines whether the Signature is in its disabled state.
56
+ */
57
+ disabled?: boolean;
58
+ /**
59
+ * Configures the `size` of the Signature.
60
+ *
61
+ * The available options are:
62
+ * - small
63
+ * - medium
64
+ * - large
65
+ * - null&mdash;Does not set a size `className`.
66
+ *
67
+ * @default `medium`
68
+ */
69
+ size?: null | 'small' | 'medium' | 'large' | string;
70
+ /**
71
+ * Configures the `roundness` of the Signature.
72
+ *
73
+ * The available options are:
74
+ * - small
75
+ * - medium
76
+ * - large
77
+ * - null&mdash;Does not set a rounded `className`.
78
+ *
79
+ * @default `medium`
80
+ */
81
+ rounded?: null | 'small' | 'medium' | 'large' | string;
82
+ /**
83
+ * Configures the `fillMode` of the Signature.
84
+ *
85
+ * The available options are:
86
+ * - solid
87
+ * - outline
88
+ * - flat
89
+ * - null&mdash;Does not set a fillMode `className`.
90
+ *
91
+ * @default `solid`
92
+ */
93
+ fillMode?: null | 'solid' | 'flat' | 'outline' | string;
94
+ /**
95
+ * The stroke color of the signature.
96
+ *
97
+ * Accepts CSS color names and hex values.
98
+ *
99
+ * The default value is determined by the theme `$kendo-input-text` variable.
100
+ */
101
+ color?: string;
102
+ /**
103
+ * The background color of the signature.
104
+ *
105
+ * Accepts CSS color names and hex values.
106
+ *
107
+ * The default value is determined by the theme `$kendo-input-bg` variable.
108
+ */
109
+ backgroundColor?: string;
110
+ /**
111
+ * The stroke width of the signature.
112
+ *
113
+ * @default 1
114
+ */
115
+ strokeWidth?: number;
116
+ /**
117
+ * A flag indicating whether to smooth out signature lines.
118
+ *
119
+ * @default false
120
+ */
121
+ smooth?: boolean;
122
+ /**
123
+ * A flag indicating if the signature can be maximized.
124
+ *
125
+ * @default true
126
+ */
127
+ maximizable?: boolean;
128
+ /**
129
+ * Sets the open and close state of the Signature.
130
+ */
131
+ open?: boolean;
132
+ /**
133
+ * The scale factor for the popup.
134
+ *
135
+ * The Signature width and height will be multiplied by the scale when showing the popup.
136
+ *
137
+ * @default 3
138
+ */
139
+ popupScale?: number;
140
+ /**
141
+ * The scale factor for the exported image.
142
+ *
143
+ * The Signature width and height will be multiplied by the scale when converting the signature to an image.
144
+ *
145
+ * @default 2
146
+ */
147
+ exportScale?: number;
148
+ /**
149
+ * A flag indicating whether the dotted line should be displayed in the background.
150
+ *
151
+ * @default false
152
+ */
153
+ hideLine?: boolean;
154
+ /**
155
+ * Represents the input element `style` HTML attribute.
156
+ */
157
+ inputStyle?: object;
158
+ /**
159
+ * Determines the event handler that will be fired when the user edits the value.
160
+ */
161
+ onChange?: (event: SignatureChangeEvent) => void;
162
+ /**
163
+ * The event handler that will be fired when Signature is focused.
164
+ */
165
+ onFocus?: (event: SignatureFocusEvent) => void;
166
+ /**
167
+ * The event handler that will be fired when Signature is blurred.
168
+ */
169
+ onBlur?: (event: SignatureBlurEvent) => void;
170
+ /**
171
+ * The event handler that will be fired when Signature popup is open.
172
+ */
173
+ onOpen?: (event: SignatureOpenEvent) => void;
174
+ /**
175
+ * The event handler that will be fired when Signature popup is closed.
176
+ */
177
+ onClose?: (event: SignatureCloseEvent) => void;
178
+ /** @hidden */
179
+ maximized?: boolean;
180
+ /**
181
+ * The validation message of the component.
182
+ */
183
+ validationMessage?: string;
184
+ /**
185
+ * The validity styles. Defaults to 'true'.
186
+ */
187
+ validityStyles?: boolean;
188
+ /**
189
+ * The required state of the component.
190
+ */
191
+ required?: boolean;
192
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export { SignatureBlurEvent } from './SignatureBlurEvent';
2
+ export { SignatureChangeEvent } from './SignatureChangeEvent';
3
+ export { SignatureCloseEvent } from './SignatureCloseEvent';
4
+ export { SignatureFocusEvent } from './SignatureFocusEvent';
5
+ export { SignatureHandle } from './SignatureHandle';
6
+ export { SignatureOpenEvent } from './SignatureOpenEvent';
7
+ export { SignatureProps } from './SignatureProps';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare function hasParent(element: any, parent: any): boolean;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export function hasParent(element, parent) {
5
+ var current = element;
6
+ while (current && current !== parent) {
7
+ current = current.parentNode;
8
+ }
9
+ return current ? true : false;
10
+ }