@progress/kendo-vue-inputs 3.7.4-dev.202301120847 → 3.7.4-dev.202301151601

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 (38) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/input/Input.d.ts +12 -3
  3. package/dist/es/package-metadata.js +1 -1
  4. package/dist/es/signature/Signature.js +189 -179
  5. package/dist/es/signature/SignatureBottomActions.d.ts +45 -0
  6. package/dist/es/signature/SignatureBottomActions.js +73 -0
  7. package/dist/es/signature/SignatureCanvas.js +29 -164
  8. package/dist/es/signature/SignatureDialog.d.ts +54 -0
  9. package/dist/es/signature/SignatureDialog.js +306 -0
  10. package/dist/es/signature/SignatureLine.d.ts +42 -0
  11. package/dist/es/signature/SignatureLine.js +33 -0
  12. package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +2 -0
  13. package/dist/es/textarea/interfaces/TextAreaProps.d.ts +10 -0
  14. package/dist/esm/input/Input.d.ts +12 -3
  15. package/dist/esm/package-metadata.js +1 -1
  16. package/dist/esm/signature/Signature.js +189 -179
  17. package/dist/esm/signature/SignatureBottomActions.d.ts +45 -0
  18. package/dist/esm/signature/SignatureBottomActions.js +73 -0
  19. package/dist/esm/signature/SignatureCanvas.js +29 -164
  20. package/dist/esm/signature/SignatureDialog.d.ts +54 -0
  21. package/dist/esm/signature/SignatureDialog.js +306 -0
  22. package/dist/esm/signature/SignatureLine.d.ts +42 -0
  23. package/dist/esm/signature/SignatureLine.js +33 -0
  24. package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +2 -0
  25. package/dist/esm/textarea/interfaces/TextAreaProps.d.ts +10 -0
  26. package/dist/npm/input/Input.d.ts +12 -3
  27. package/dist/npm/package-metadata.js +1 -1
  28. package/dist/npm/signature/Signature.js +187 -177
  29. package/dist/npm/signature/SignatureBottomActions.d.ts +45 -0
  30. package/dist/npm/signature/SignatureBottomActions.js +80 -0
  31. package/dist/npm/signature/SignatureCanvas.js +29 -164
  32. package/dist/npm/signature/SignatureDialog.d.ts +54 -0
  33. package/dist/npm/signature/SignatureDialog.js +313 -0
  34. package/dist/npm/signature/SignatureLine.d.ts +42 -0
  35. package/dist/npm/signature/SignatureLine.js +40 -0
  36. package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +2 -0
  37. package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +10 -0
  38. package/package.json +13 -13
@@ -1,120 +1,3 @@
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
1
  // @ts-ignore
119
2
  import * as Vue from 'vue';
120
3
  var allVue = Vue;
@@ -133,12 +16,11 @@ var setOptions = function setOptions() {
133
16
  */
134
17
  var SignatureCanvasVue2 = {
135
18
  name: 'KendoSignatureCanvas',
136
- model: {
137
- event: 'changemodel'
138
- },
139
19
  // @ts-ignore
140
20
  emits: {
141
- change: null
21
+ change: null,
22
+ draw: null,
23
+ drawend: null
142
24
  },
143
25
  inject: {
144
26
  kendoIntlService: {
@@ -149,24 +31,17 @@ var SignatureCanvasVue2 = {
149
31
  strokeWidth: Number,
150
32
  popupScale: Number,
151
33
  scale: Number,
34
+ name: String,
152
35
  value: String,
153
36
  tabIndex: Number,
154
37
  disabled: Boolean,
38
+ readOnly: Boolean,
155
39
  color: String,
156
40
  backgroundColor: String,
157
41
  elementSize: Function,
158
42
  smooth: Boolean
159
43
  },
160
44
  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
45
  color: setOptions,
171
46
  backgroundColor: setOptions,
172
47
  smooth: setOptions,
@@ -174,7 +49,6 @@ var SignatureCanvasVue2 = {
174
49
  readOnly: setOptions
175
50
  },
176
51
  mounted: function mounted() {
177
- var _this = this;
178
52
  this.canvas = this.$el;
179
53
  var pad = new SignaturePad(this.canvas, this.getOptions());
180
54
  if (this.value) {
@@ -183,12 +57,8 @@ var SignatureCanvasVue2 = {
183
57
  this.instance = pad;
184
58
  this.instance.setOptions({
185
59
  onChange: this.onValueChange,
186
- onDraw: function onDraw() {
187
- return _this.isDrawing = true;
188
- },
189
- onDrawEnd: function onDrawEnd() {
190
- return _this.isDrawing = false;
191
- }
60
+ onDraw: this.onDraw,
61
+ onDrawEnd: this.onDrawEnd
192
62
  });
193
63
  },
194
64
  destroyed: !!isV3 ? undefined : function () {
@@ -218,6 +88,7 @@ var SignatureCanvasVue2 = {
218
88
  tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
219
89
  role: "img",
220
90
  id: this.$props.id,
91
+ name: this.$props.name,
221
92
  "aria-label": this.$props.ariaLabel,
222
93
  "aria-labelledby": this.$props.ariaLabelledBy,
223
94
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -225,6 +96,7 @@ var SignatureCanvasVue2 = {
225
96
  },
226
97
  role: "img",
227
98
  id: this.$props.id,
99
+ name: this.$props.name,
228
100
  "aria-label": this.$props.ariaLabel,
229
101
  "aria-labelledby": this.$props.ariaLabelledBy,
230
102
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -233,21 +105,23 @@ var SignatureCanvasVue2 = {
233
105
  },
234
106
  methods: {
235
107
  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
- });
108
+ var that = this;
109
+ this.exportImage(this.elementSize()).then(function (nextValue) {
110
+ that.$emit('change', nextValue);
248
111
  });
249
112
  },
250
-
113
+ onDraw: function onDraw() {
114
+ this.$emit('draw');
115
+ },
116
+ onDrawEnd: function onDrawEnd() {
117
+ this.$emit('drawend');
118
+ },
119
+ loadImage: function loadImage(newLocale) {
120
+ this.instance.loadImage(newLocale);
121
+ },
122
+ clear: function clear() {
123
+ this.instance.clear();
124
+ },
251
125
  getOptions: function getOptions() {
252
126
  return {
253
127
  scale: this.popupScale,
@@ -260,20 +134,11 @@ var SignatureCanvasVue2 = {
260
134
  },
261
135
  exportImage: function exportImage(exportSize) {
262
136
  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
- });
137
+ var width = exportSize.width,
138
+ height = exportSize.height;
139
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.exportImage({
140
+ width: width * this.scale,
141
+ height: height * this.scale
277
142
  });
278
143
  }
279
144
  }
@@ -0,0 +1,54 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { SignatureCanvasProps } from './interfaces/SignatureCanvasProps';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface SignatureDialogProps extends SignatureCanvasProps {
11
+ openWrapperClass?: object;
12
+ size?: string;
13
+ dir?: string;
14
+ popupWidth: Number;
15
+ popupHeight: Number;
16
+ showClear: boolean;
17
+ }
18
+ /**
19
+ * @hidden
20
+ */
21
+ export interface SignatureDialogState {
22
+ }
23
+ /**
24
+ * @hidden
25
+ */
26
+ export interface SignatureDialogComputed {
27
+ [key: string]: any;
28
+ }
29
+ /**
30
+ * @hidden
31
+ */
32
+ export interface SignatureDialogMethods {
33
+ [key: string]: any;
34
+ }
35
+ /**
36
+ * @hidden
37
+ */
38
+ export interface SignatureDialogData {
39
+ currentActive: boolean;
40
+ }
41
+ /**
42
+ * @hidden
43
+ */
44
+ export interface SignatureDialogAll extends Vue2type, SignatureDialogMethods, SignatureDialogData, SignatureDialogComputed, SignatureDialogState {
45
+ }
46
+ /**
47
+ * @hidden
48
+ */
49
+ declare let SignatureDialogVue2: ComponentOptions<SignatureDialogAll, DefaultData<SignatureDialogData>, DefaultMethods<SignatureDialogAll>, SignatureDialogComputed, RecordPropsDefinition<SignatureDialogProps>>;
50
+ /**
51
+ * @hidden
52
+ */
53
+ declare const SignatureDialog: DefineComponent<SignatureDialogProps, any, SignatureDialogData, SignatureDialogComputed, SignatureDialogMethods, {}, {}, {}, string, SignatureDialogProps, SignatureDialogProps, {}>;
54
+ export { SignatureDialog, SignatureDialogVue2 };
@@ -0,0 +1,306 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { Dialog } from '@progress/kendo-vue-dialogs';
7
+ import { SignatureBottomActions } from './SignatureBottomActions';
8
+ import { SignatureLine } from './SignatureLine';
9
+ import { Button } from '@progress/kendo-vue-buttons';
10
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
11
+ import { getRef, setRef } from '@progress/kendo-vue-common';
12
+ import { hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
13
+ import { SignatureCanvas } from './SignatureCanvas';
14
+ import { messages, signatureClear, signatureMinimize } from '../messages/main';
15
+ /**
16
+ * @hidden
17
+ */
18
+ var SignatureDialogVue2 = {
19
+ name: 'KendoSignatureDialog',
20
+ // @ts-ignore
21
+ emits: {
22
+ change: null,
23
+ clear: null,
24
+ close: null,
25
+ focus: null,
26
+ blur: null,
27
+ overlayclick: null,
28
+ draw: null,
29
+ drawend: null
30
+ },
31
+ props: {
32
+ openWrapperClass: Object,
33
+ size: String,
34
+ dir: String,
35
+ popupWidth: Number,
36
+ popupHeight: Number,
37
+ showClear: Boolean,
38
+ strokeWidth: Number,
39
+ popupScale: Number,
40
+ scale: Number,
41
+ value: String,
42
+ tabIndex: Number,
43
+ disabled: Boolean,
44
+ readOnly: Boolean,
45
+ color: String,
46
+ backgroundColor: String,
47
+ elementSize: Function,
48
+ smooth: Boolean
49
+ },
50
+ inject: {
51
+ kendoLocalizationService: {
52
+ default: null
53
+ }
54
+ },
55
+ data: function data() {
56
+ return {
57
+ isDrawing: false
58
+ };
59
+ },
60
+ mounted: function mounted() {
61
+ this.openCanvas = getRef(this, 'openCanvas');
62
+ },
63
+ // @ts-ignore
64
+ setup: !isV3 ? undefined : function () {
65
+ var v3 = !!isV3;
66
+ return {
67
+ v3: v3
68
+ };
69
+ },
70
+ render: function render(createElement) {
71
+ var _this = this;
72
+ var h = gh || createElement;
73
+ var _a = this.$props,
74
+ showClear = _a.showClear,
75
+ popupWidth = _a.popupWidth,
76
+ popupHeight = _a.popupHeight,
77
+ dir = _a.dir,
78
+ size = _a.size,
79
+ value = _a.value,
80
+ tabIndex = _a.tabIndex,
81
+ disabled = _a.disabled,
82
+ readOnly = _a.readOnly,
83
+ color = _a.color,
84
+ backgroundColor = _a.backgroundColor,
85
+ strokeWidth = _a.strokeWidth,
86
+ smooth = _a.smooth,
87
+ popupScale = _a.popupScale,
88
+ scale = _a.scale,
89
+ elementSize = _a.elementSize;
90
+ var ls = provideLocalizationService(this);
91
+ var minimizeTitle = ls.toLanguageString(signatureMinimize, messages[signatureMinimize]);
92
+ var clearTitle = ls.toLanguageString(signatureClear, messages[signatureClear]);
93
+ var hideLine = !this.$props.hideLine && h(SignatureLine);
94
+ var bottomActions = h(SignatureBottomActions, {
95
+ showClear: showClear,
96
+ attrs: this.v3 ? undefined : {
97
+ showClear: showClear,
98
+ size: size,
99
+ title: clearTitle
100
+ },
101
+ size: size,
102
+ onClear: this.onClear,
103
+ on: this.v3 ? undefined : {
104
+ "clear": this.onClear
105
+ },
106
+ title: clearTitle
107
+ });
108
+ var dialog =
109
+ // @ts-ignore function children
110
+ h(Dialog, {
111
+ ref: setRef(this, 'dialog'),
112
+ onOverlayclick: this.onOverlayClick,
113
+ on: this.v3 ? undefined : {
114
+ "overlayclick": this.onOverlayClick
115
+ }
116
+ }, this.v3 ? function () {
117
+ return [h("div", {
118
+ style: {
119
+ width: popupWidth + 'px',
120
+ height: popupHeight + 'px'
121
+ },
122
+ dir: dir,
123
+ attrs: _this.v3 ? undefined : {
124
+ dir: dir
125
+ },
126
+ "class": _this.openWrapperClass,
127
+ onFocus: _this.onFocus,
128
+ on: _this.v3 ? undefined : {
129
+ "focus": _this.onFocus,
130
+ "blur": _this.onBlur
131
+ },
132
+ onBlur: _this.onBlur
133
+ }, [h(SignatureCanvas, {
134
+ ref: setRef(_this, 'openCanvas'),
135
+ value: value,
136
+ attrs: _this.v3 ? undefined : {
137
+ value: value,
138
+ tabIndex: tabIndex,
139
+ disabled: disabled,
140
+ readOnly: readOnly,
141
+ color: color,
142
+ backgroundColor: backgroundColor,
143
+ strokeWidth: strokeWidth,
144
+ smooth: smooth,
145
+ popupScale: popupScale,
146
+ scale: scale,
147
+ elementSize: elementSize
148
+ },
149
+ tabIndex: tabIndex,
150
+ disabled: disabled,
151
+ readOnly: readOnly,
152
+ color: color,
153
+ backgroundColor: backgroundColor,
154
+ strokeWidth: strokeWidth,
155
+ smooth: smooth,
156
+ popupScale: popupScale,
157
+ scale: scale,
158
+ onChange: _this.onValueChange,
159
+ on: _this.v3 ? undefined : {
160
+ "change": _this.onValueChange,
161
+ "draw": _this.onDraw,
162
+ "drawend": _this.onDrawEnd
163
+ },
164
+ elementSize: elementSize,
165
+ onDraw: _this.onDraw,
166
+ onDrawend: _this.onDrawEnd
167
+ }), h("div", {
168
+ "class": 'k-signature-actions k-signature-actions-top'
169
+ }, [!_this.isDrawing &&
170
+ // @ts-ignore
171
+ h(Button, {
172
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
173
+ ref: setRef(_this, 'minimizeButton'),
174
+ icon: 'hyperlink-open',
175
+ attrs: _this.v3 ? undefined : {
176
+ icon: 'hyperlink-open',
177
+ svgIcon: hyperlinkOpenIcon,
178
+ shape: null,
179
+ fillMode: 'flat',
180
+ size: _this.$props.size,
181
+ "aria-label": minimizeTitle,
182
+ title: minimizeTitle
183
+ },
184
+ svgIcon: hyperlinkOpenIcon,
185
+ shape: null,
186
+ fillMode: 'flat',
187
+ size: _this.$props.size,
188
+ onClick: _this.onMinimizeClick,
189
+ on: _this.v3 ? undefined : {
190
+ "click": _this.onMinimizeClick
191
+ },
192
+ "aria-label": minimizeTitle,
193
+ title: minimizeTitle
194
+ })]), hideLine, bottomActions])];
195
+ } : [h("div", {
196
+ style: {
197
+ width: popupWidth + 'px',
198
+ height: popupHeight + 'px'
199
+ },
200
+ dir: dir,
201
+ attrs: _this.v3 ? undefined : {
202
+ dir: dir
203
+ },
204
+ "class": _this.openWrapperClass,
205
+ onFocus: _this.onFocus,
206
+ on: _this.v3 ? undefined : {
207
+ "focus": _this.onFocus,
208
+ "blur": _this.onBlur
209
+ },
210
+ onBlur: _this.onBlur
211
+ }, [h(SignatureCanvas, {
212
+ ref: setRef(_this, 'openCanvas'),
213
+ value: value,
214
+ attrs: _this.v3 ? undefined : {
215
+ value: value,
216
+ tabIndex: tabIndex,
217
+ disabled: disabled,
218
+ readOnly: readOnly,
219
+ color: color,
220
+ backgroundColor: backgroundColor,
221
+ strokeWidth: strokeWidth,
222
+ smooth: smooth,
223
+ popupScale: popupScale,
224
+ scale: scale,
225
+ elementSize: elementSize
226
+ },
227
+ tabIndex: tabIndex,
228
+ disabled: disabled,
229
+ readOnly: readOnly,
230
+ color: color,
231
+ backgroundColor: backgroundColor,
232
+ strokeWidth: strokeWidth,
233
+ smooth: smooth,
234
+ popupScale: popupScale,
235
+ scale: scale,
236
+ onChange: _this.onValueChange,
237
+ on: _this.v3 ? undefined : {
238
+ "change": _this.onValueChange,
239
+ "draw": _this.onDraw,
240
+ "drawend": _this.onDrawEnd
241
+ },
242
+ elementSize: elementSize,
243
+ onDraw: _this.onDraw,
244
+ onDrawend: _this.onDrawEnd
245
+ }), h("div", {
246
+ "class": 'k-signature-actions k-signature-actions-top'
247
+ }, [!_this.isDrawing && h(Button, {
248
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
249
+ ref: setRef(_this, 'minimizeButton'),
250
+ icon: 'hyperlink-open',
251
+ attrs: _this.v3 ? undefined : {
252
+ icon: 'hyperlink-open',
253
+ svgIcon: hyperlinkOpenIcon,
254
+ shape: null,
255
+ fillMode: 'flat',
256
+ size: _this.$props.size,
257
+ "aria-label": minimizeTitle,
258
+ title: minimizeTitle
259
+ },
260
+ svgIcon: hyperlinkOpenIcon,
261
+ shape: null,
262
+ fillMode: 'flat',
263
+ size: _this.$props.size,
264
+ onClick: _this.onMinimizeClick,
265
+ on: _this.v3 ? undefined : {
266
+ "click": _this.onMinimizeClick
267
+ },
268
+ "aria-label": minimizeTitle,
269
+ title: minimizeTitle
270
+ })]), hideLine, bottomActions])]);
271
+ return dialog;
272
+ },
273
+ methods: {
274
+ onDraw: function onDraw() {
275
+ this.isDrawing = true;
276
+ this.$emit('draw');
277
+ },
278
+ onDrawEnd: function onDrawEnd() {
279
+ this.isDrawing = false;
280
+ this.$emit('drawend');
281
+ },
282
+ onValueChange: function onValueChange(nextValue) {
283
+ this.$emit('change', nextValue);
284
+ },
285
+ onClear: function onClear() {
286
+ this.$emit('clear');
287
+ },
288
+ onMinimizeClick: function onMinimizeClick() {
289
+ this.$emit('close');
290
+ },
291
+ onFocus: function onFocus(e) {
292
+ this.$emit('focus', e);
293
+ },
294
+ onBlur: function onBlur(e) {
295
+ this.$emit('blur', e);
296
+ },
297
+ onOverlayClick: function onOverlayClick(e) {
298
+ this.$emit('overlayclick', e);
299
+ }
300
+ }
301
+ };
302
+ /**
303
+ * @hidden
304
+ */
305
+ var SignatureDialog = SignatureDialogVue2;
306
+ export { SignatureDialog, SignatureDialogVue2 };
@@ -0,0 +1,42 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ /**
7
+ * @hidden
8
+ */
9
+ export interface SignatureLineState {
10
+ }
11
+ /**
12
+ * @hidden
13
+ */
14
+ export interface SignatureLineComputed {
15
+ [key: string]: any;
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export interface SignatureLineMethods {
21
+ [key: string]: any;
22
+ element: () => HTMLSpanElement | null;
23
+ }
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface SignatureLineData {
28
+ }
29
+ /**
30
+ * @hidden
31
+ */
32
+ export interface SignatureLineAll extends Vue2type, SignatureLineMethods, SignatureLineData, SignatureLineComputed, SignatureLineState {
33
+ }
34
+ /**
35
+ * @hidden
36
+ */
37
+ declare let SignatureLineVue2: ComponentOptions<SignatureLineAll, DefaultData<SignatureLineData>, DefaultMethods<SignatureLineAll>, SignatureLineComputed, RecordPropsDefinition<{}>>;
38
+ /**
39
+ * @hidden
40
+ */
41
+ declare const SignatureLine: DefineComponent<{}, any, SignatureLineData, SignatureLineComputed, SignatureLineMethods, {}, {}, {}, string, {}, {}, {}>;
42
+ export { SignatureLine, SignatureLineVue2 };
@@ -0,0 +1,33 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ /**
7
+ * @hidden
8
+ */
9
+ var SignatureLineVue2 = {
10
+ name: 'KendoSignatureLine',
11
+ // @ts-ignore
12
+ setup: !isV3 ? undefined : function () {
13
+ var v3 = !!isV3;
14
+ return {
15
+ v3: v3
16
+ };
17
+ },
18
+ render: function render(createElement) {
19
+ var h = gh || createElement;
20
+ return h("div", {
21
+ "class": 'k-signature-line',
22
+ style: {
23
+ zIndex: 2,
24
+ pointerEvents: 'none'
25
+ }
26
+ });
27
+ }
28
+ };
29
+ /**
30
+ * @hidden
31
+ */
32
+ var SignatureLine = SignatureLineVue2;
33
+ export { SignatureLine, SignatureLineVue2 };
@@ -1,8 +1,10 @@
1
1
  /** @hidden */
2
2
  export interface SignatureCanvasProps {
3
+ name?: string;
3
4
  value?: string;
4
5
  tabIndex?: number;
5
6
  disabled?: boolean;
7
+ readOnly?: boolean;
6
8
  color?: string;
7
9
  backgroundColor?: string;
8
10
  strokeWidth?: number;