@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,122 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) {
5
- return value instanceof P ? value : new P(function (resolve) {
6
- resolve(value);
7
- });
8
- }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) {
11
- try {
12
- step(generator.next(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- }
17
- function rejected(value) {
18
- try {
19
- step(generator["throw"](value));
20
- } catch (e) {
21
- reject(e);
22
- }
23
- }
24
- function step(result) {
25
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
26
- }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- var __generator = undefined && undefined.__generator || function (thisArg, body) {
31
- var _ = {
32
- label: 0,
33
- sent: function sent() {
34
- if (t[0] & 1) throw t[1];
35
- return t[1];
36
- },
37
- trys: [],
38
- ops: []
39
- },
40
- f,
41
- y,
42
- t,
43
- g;
44
- return g = {
45
- next: verb(0),
46
- "throw": verb(1),
47
- "return": verb(2)
48
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
49
- return this;
50
- }), g;
51
- function verb(n) {
52
- return function (v) {
53
- return step([n, v]);
54
- };
55
- }
56
- function step(op) {
57
- if (f) throw new TypeError("Generator is already executing.");
58
- while (_) {
59
- try {
60
- 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;
61
- if (y = 0, t) op = [op[0] & 2, t.value];
62
- switch (op[0]) {
63
- case 0:
64
- case 1:
65
- t = op;
66
- break;
67
- case 4:
68
- _.label++;
69
- return {
70
- value: op[1],
71
- done: false
72
- };
73
- case 5:
74
- _.label++;
75
- y = op[1];
76
- op = [0];
77
- continue;
78
- case 7:
79
- op = _.ops.pop();
80
- _.trys.pop();
81
- continue;
82
- default:
83
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
84
- _ = 0;
85
- continue;
86
- }
87
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
88
- _.label = op[1];
89
- break;
90
- }
91
- if (op[0] === 6 && _.label < t[1]) {
92
- _.label = t[1];
93
- t = op;
94
- break;
95
- }
96
- if (t && _.label < t[2]) {
97
- _.label = t[2];
98
- _.ops.push(op);
99
- break;
100
- }
101
- if (t[2]) _.ops.pop();
102
- _.trys.pop();
103
- continue;
104
- }
105
- op = body.call(thisArg, _);
106
- } catch (e) {
107
- op = [6, e];
108
- y = 0;
109
- } finally {
110
- f = t = 0;
111
- }
112
- }
113
- if (op[0] & 5) throw op[1];
114
- return {
115
- value: op[0] ? op[1] : void 0,
116
- done: true
117
- };
118
- }
119
- };
120
3
  Object.defineProperty(exports, "__esModule", {
121
4
  value: true
122
5
  });
@@ -139,12 +22,11 @@ var setOptions = function setOptions() {
139
22
  */
140
23
  var SignatureCanvasVue2 = {
141
24
  name: 'KendoSignatureCanvas',
142
- model: {
143
- event: 'changemodel'
144
- },
145
25
  // @ts-ignore
146
26
  emits: {
147
- change: null
27
+ change: null,
28
+ draw: null,
29
+ drawend: null
148
30
  },
149
31
  inject: {
150
32
  kendoIntlService: {
@@ -155,24 +37,17 @@ var SignatureCanvasVue2 = {
155
37
  strokeWidth: Number,
156
38
  popupScale: Number,
157
39
  scale: Number,
40
+ name: String,
158
41
  value: String,
159
42
  tabIndex: Number,
160
43
  disabled: Boolean,
44
+ readOnly: Boolean,
161
45
  color: String,
162
46
  backgroundColor: String,
163
47
  elementSize: Function,
164
48
  smooth: Boolean
165
49
  },
166
50
  watch: {
167
- value: function value(newLocale) {
168
- if (this.instance) {
169
- if (newLocale) {
170
- this.instance.loadImage(newLocale);
171
- } else {
172
- this.instance.clear();
173
- }
174
- }
175
- },
176
51
  color: setOptions,
177
52
  backgroundColor: setOptions,
178
53
  smooth: setOptions,
@@ -180,7 +55,6 @@ var SignatureCanvasVue2 = {
180
55
  readOnly: setOptions
181
56
  },
182
57
  mounted: function mounted() {
183
- var _this = this;
184
58
  this.canvas = this.$el;
185
59
  var pad = new kendo_inputs_common_1.SignaturePad(this.canvas, this.getOptions());
186
60
  if (this.value) {
@@ -189,12 +63,8 @@ var SignatureCanvasVue2 = {
189
63
  this.instance = pad;
190
64
  this.instance.setOptions({
191
65
  onChange: this.onValueChange,
192
- onDraw: function onDraw() {
193
- return _this.isDrawing = true;
194
- },
195
- onDrawEnd: function onDrawEnd() {
196
- return _this.isDrawing = false;
197
- }
66
+ onDraw: this.onDraw,
67
+ onDrawEnd: this.onDrawEnd
198
68
  });
199
69
  },
200
70
  destroyed: !!isV3 ? undefined : function () {
@@ -224,6 +94,7 @@ var SignatureCanvasVue2 = {
224
94
  tabIndex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled),
225
95
  role: "img",
226
96
  id: this.$props.id,
97
+ name: this.$props.name,
227
98
  "aria-label": this.$props.ariaLabel,
228
99
  "aria-labelledby": this.$props.ariaLabelledBy,
229
100
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -231,6 +102,7 @@ var SignatureCanvasVue2 = {
231
102
  },
232
103
  role: "img",
233
104
  id: this.$props.id,
105
+ name: this.$props.name,
234
106
  "aria-label": this.$props.ariaLabel,
235
107
  "aria-labelledby": this.$props.ariaLabelledBy,
236
108
  "aria-describedby": this.$props.ariaDescribedBy,
@@ -239,21 +111,23 @@ var SignatureCanvasVue2 = {
239
111
  },
240
112
  methods: {
241
113
  onValueChange: function onValueChange() {
242
- return __awaiter(this, void 0, void 0, function () {
243
- var nextValue;
244
- return __generator(this, function (_a) {
245
- switch (_a.label) {
246
- case 0:
247
- return [4 /*yield*/, this.exportImage(this.elementSize())];
248
- case 1:
249
- nextValue = _a.sent();
250
- this.$emit('change', nextValue);
251
- return [2 /*return*/];
252
- }
253
- });
114
+ var that = this;
115
+ this.exportImage(this.elementSize()).then(function (nextValue) {
116
+ that.$emit('change', nextValue);
254
117
  });
255
118
  },
256
-
119
+ onDraw: function onDraw() {
120
+ this.$emit('draw');
121
+ },
122
+ onDrawEnd: function onDrawEnd() {
123
+ this.$emit('drawend');
124
+ },
125
+ loadImage: function loadImage(newLocale) {
126
+ this.instance.loadImage(newLocale);
127
+ },
128
+ clear: function clear() {
129
+ this.instance.clear();
130
+ },
257
131
  getOptions: function getOptions() {
258
132
  return {
259
133
  scale: this.popupScale,
@@ -266,20 +140,11 @@ var SignatureCanvasVue2 = {
266
140
  },
267
141
  exportImage: function exportImage(exportSize) {
268
142
  var _a;
269
- return __awaiter(this, void 0, void 0, function () {
270
- var width, height;
271
- return __generator(this, function (_b) {
272
- switch (_b.label) {
273
- case 0:
274
- width = exportSize.width, height = exportSize.height;
275
- return [4 /*yield*/, (_a = this.instance) === null || _a === void 0 ? void 0 : _a.exportImage({
276
- width: width * this.scale,
277
- height: height * this.scale
278
- })];
279
- case 1:
280
- return [2 /*return*/, _b.sent()];
281
- }
282
- });
143
+ var width = exportSize.width,
144
+ height = exportSize.height;
145
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.exportImage({
146
+ width: width * this.scale,
147
+ height: height * this.scale
283
148
  });
284
149
  }
285
150
  }
@@ -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,313 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SignatureDialogVue2 = exports.SignatureDialog = void 0;
7
+ // @ts-ignore
8
+ var Vue = require("vue");
9
+ var allVue = Vue;
10
+ var gh = allVue.h;
11
+ var isV3 = allVue.version && allVue.version[0] === '3';
12
+ var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
13
+ var SignatureBottomActions_1 = require("./SignatureBottomActions");
14
+ var SignatureLine_1 = require("./SignatureLine");
15
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
16
+ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
17
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
19
+ var SignatureCanvas_1 = require("./SignatureCanvas");
20
+ var main_1 = require("../messages/main");
21
+ /**
22
+ * @hidden
23
+ */
24
+ var SignatureDialogVue2 = {
25
+ name: 'KendoSignatureDialog',
26
+ // @ts-ignore
27
+ emits: {
28
+ change: null,
29
+ clear: null,
30
+ close: null,
31
+ focus: null,
32
+ blur: null,
33
+ overlayclick: null,
34
+ draw: null,
35
+ drawend: null
36
+ },
37
+ props: {
38
+ openWrapperClass: Object,
39
+ size: String,
40
+ dir: String,
41
+ popupWidth: Number,
42
+ popupHeight: Number,
43
+ showClear: Boolean,
44
+ strokeWidth: Number,
45
+ popupScale: Number,
46
+ scale: Number,
47
+ value: String,
48
+ tabIndex: Number,
49
+ disabled: Boolean,
50
+ readOnly: Boolean,
51
+ color: String,
52
+ backgroundColor: String,
53
+ elementSize: Function,
54
+ smooth: Boolean
55
+ },
56
+ inject: {
57
+ kendoLocalizationService: {
58
+ default: null
59
+ }
60
+ },
61
+ data: function data() {
62
+ return {
63
+ isDrawing: false
64
+ };
65
+ },
66
+ mounted: function mounted() {
67
+ this.openCanvas = (0, kendo_vue_common_1.getRef)(this, 'openCanvas');
68
+ },
69
+ // @ts-ignore
70
+ setup: !isV3 ? undefined : function () {
71
+ var v3 = !!isV3;
72
+ return {
73
+ v3: v3
74
+ };
75
+ },
76
+ render: function render(createElement) {
77
+ var _this = this;
78
+ var h = gh || createElement;
79
+ var _a = this.$props,
80
+ showClear = _a.showClear,
81
+ popupWidth = _a.popupWidth,
82
+ popupHeight = _a.popupHeight,
83
+ dir = _a.dir,
84
+ size = _a.size,
85
+ value = _a.value,
86
+ tabIndex = _a.tabIndex,
87
+ disabled = _a.disabled,
88
+ readOnly = _a.readOnly,
89
+ color = _a.color,
90
+ backgroundColor = _a.backgroundColor,
91
+ strokeWidth = _a.strokeWidth,
92
+ smooth = _a.smooth,
93
+ popupScale = _a.popupScale,
94
+ scale = _a.scale,
95
+ elementSize = _a.elementSize;
96
+ var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
97
+ var minimizeTitle = ls.toLanguageString(main_1.signatureMinimize, main_1.messages[main_1.signatureMinimize]);
98
+ var clearTitle = ls.toLanguageString(main_1.signatureClear, main_1.messages[main_1.signatureClear]);
99
+ var hideLine = !this.$props.hideLine && h(SignatureLine_1.SignatureLine);
100
+ var bottomActions = h(SignatureBottomActions_1.SignatureBottomActions, {
101
+ showClear: showClear,
102
+ attrs: this.v3 ? undefined : {
103
+ showClear: showClear,
104
+ size: size,
105
+ title: clearTitle
106
+ },
107
+ size: size,
108
+ onClear: this.onClear,
109
+ on: this.v3 ? undefined : {
110
+ "clear": this.onClear
111
+ },
112
+ title: clearTitle
113
+ });
114
+ var dialog =
115
+ // @ts-ignore function children
116
+ h(kendo_vue_dialogs_1.Dialog, {
117
+ ref: (0, kendo_vue_common_1.setRef)(this, 'dialog'),
118
+ onOverlayclick: this.onOverlayClick,
119
+ on: this.v3 ? undefined : {
120
+ "overlayclick": this.onOverlayClick
121
+ }
122
+ }, this.v3 ? function () {
123
+ return [h("div", {
124
+ style: {
125
+ width: popupWidth + 'px',
126
+ height: popupHeight + 'px'
127
+ },
128
+ dir: dir,
129
+ attrs: _this.v3 ? undefined : {
130
+ dir: dir
131
+ },
132
+ "class": _this.openWrapperClass,
133
+ onFocus: _this.onFocus,
134
+ on: _this.v3 ? undefined : {
135
+ "focus": _this.onFocus,
136
+ "blur": _this.onBlur
137
+ },
138
+ onBlur: _this.onBlur
139
+ }, [h(SignatureCanvas_1.SignatureCanvas, {
140
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'openCanvas'),
141
+ value: value,
142
+ attrs: _this.v3 ? undefined : {
143
+ value: value,
144
+ tabIndex: tabIndex,
145
+ disabled: disabled,
146
+ readOnly: readOnly,
147
+ color: color,
148
+ backgroundColor: backgroundColor,
149
+ strokeWidth: strokeWidth,
150
+ smooth: smooth,
151
+ popupScale: popupScale,
152
+ scale: scale,
153
+ elementSize: elementSize
154
+ },
155
+ tabIndex: tabIndex,
156
+ disabled: disabled,
157
+ readOnly: readOnly,
158
+ color: color,
159
+ backgroundColor: backgroundColor,
160
+ strokeWidth: strokeWidth,
161
+ smooth: smooth,
162
+ popupScale: popupScale,
163
+ scale: scale,
164
+ onChange: _this.onValueChange,
165
+ on: _this.v3 ? undefined : {
166
+ "change": _this.onValueChange,
167
+ "draw": _this.onDraw,
168
+ "drawend": _this.onDrawEnd
169
+ },
170
+ elementSize: elementSize,
171
+ onDraw: _this.onDraw,
172
+ onDrawend: _this.onDrawEnd
173
+ }), h("div", {
174
+ "class": 'k-signature-actions k-signature-actions-top'
175
+ }, [!_this.isDrawing &&
176
+ // @ts-ignore
177
+ h(kendo_vue_buttons_1.Button, {
178
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
179
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'minimizeButton'),
180
+ icon: 'hyperlink-open',
181
+ attrs: _this.v3 ? undefined : {
182
+ icon: 'hyperlink-open',
183
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
184
+ shape: null,
185
+ fillMode: 'flat',
186
+ size: _this.$props.size,
187
+ "aria-label": minimizeTitle,
188
+ title: minimizeTitle
189
+ },
190
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
191
+ shape: null,
192
+ fillMode: 'flat',
193
+ size: _this.$props.size,
194
+ onClick: _this.onMinimizeClick,
195
+ on: _this.v3 ? undefined : {
196
+ "click": _this.onMinimizeClick
197
+ },
198
+ "aria-label": minimizeTitle,
199
+ title: minimizeTitle
200
+ })]), hideLine, bottomActions])];
201
+ } : [h("div", {
202
+ style: {
203
+ width: popupWidth + 'px',
204
+ height: popupHeight + 'px'
205
+ },
206
+ dir: dir,
207
+ attrs: _this.v3 ? undefined : {
208
+ dir: dir
209
+ },
210
+ "class": _this.openWrapperClass,
211
+ onFocus: _this.onFocus,
212
+ on: _this.v3 ? undefined : {
213
+ "focus": _this.onFocus,
214
+ "blur": _this.onBlur
215
+ },
216
+ onBlur: _this.onBlur
217
+ }, [h(SignatureCanvas_1.SignatureCanvas, {
218
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'openCanvas'),
219
+ value: value,
220
+ attrs: _this.v3 ? undefined : {
221
+ value: value,
222
+ tabIndex: tabIndex,
223
+ disabled: disabled,
224
+ readOnly: readOnly,
225
+ color: color,
226
+ backgroundColor: backgroundColor,
227
+ strokeWidth: strokeWidth,
228
+ smooth: smooth,
229
+ popupScale: popupScale,
230
+ scale: scale,
231
+ elementSize: elementSize
232
+ },
233
+ tabIndex: tabIndex,
234
+ disabled: disabled,
235
+ readOnly: readOnly,
236
+ color: color,
237
+ backgroundColor: backgroundColor,
238
+ strokeWidth: strokeWidth,
239
+ smooth: smooth,
240
+ popupScale: popupScale,
241
+ scale: scale,
242
+ onChange: _this.onValueChange,
243
+ on: _this.v3 ? undefined : {
244
+ "change": _this.onValueChange,
245
+ "draw": _this.onDraw,
246
+ "drawend": _this.onDrawEnd
247
+ },
248
+ elementSize: elementSize,
249
+ onDraw: _this.onDraw,
250
+ onDrawend: _this.onDrawEnd
251
+ }), h("div", {
252
+ "class": 'k-signature-actions k-signature-actions-top'
253
+ }, [!_this.isDrawing && h(kendo_vue_buttons_1.Button, {
254
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
255
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'minimizeButton'),
256
+ icon: 'hyperlink-open',
257
+ attrs: _this.v3 ? undefined : {
258
+ icon: 'hyperlink-open',
259
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
260
+ shape: null,
261
+ fillMode: 'flat',
262
+ size: _this.$props.size,
263
+ "aria-label": minimizeTitle,
264
+ title: minimizeTitle
265
+ },
266
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
267
+ shape: null,
268
+ fillMode: 'flat',
269
+ size: _this.$props.size,
270
+ onClick: _this.onMinimizeClick,
271
+ on: _this.v3 ? undefined : {
272
+ "click": _this.onMinimizeClick
273
+ },
274
+ "aria-label": minimizeTitle,
275
+ title: minimizeTitle
276
+ })]), hideLine, bottomActions])]);
277
+ return dialog;
278
+ },
279
+ methods: {
280
+ onDraw: function onDraw() {
281
+ this.isDrawing = true;
282
+ this.$emit('draw');
283
+ },
284
+ onDrawEnd: function onDrawEnd() {
285
+ this.isDrawing = false;
286
+ this.$emit('drawend');
287
+ },
288
+ onValueChange: function onValueChange(nextValue) {
289
+ this.$emit('change', nextValue);
290
+ },
291
+ onClear: function onClear() {
292
+ this.$emit('clear');
293
+ },
294
+ onMinimizeClick: function onMinimizeClick() {
295
+ this.$emit('close');
296
+ },
297
+ onFocus: function onFocus(e) {
298
+ this.$emit('focus', e);
299
+ },
300
+ onBlur: function onBlur(e) {
301
+ this.$emit('blur', e);
302
+ },
303
+ onOverlayClick: function onOverlayClick(e) {
304
+ this.$emit('overlayclick', e);
305
+ }
306
+ }
307
+ };
308
+ exports.SignatureDialogVue2 = SignatureDialogVue2;
309
+ /**
310
+ * @hidden
311
+ */
312
+ var SignatureDialog = SignatureDialogVue2;
313
+ exports.SignatureDialog = SignatureDialog;
@@ -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,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SignatureLineVue2 = exports.SignatureLine = void 0;
7
+ // @ts-ignore
8
+ var Vue = require("vue");
9
+ var allVue = Vue;
10
+ var gh = allVue.h;
11
+ var isV3 = allVue.version && allVue.version[0] === '3';
12
+ /**
13
+ * @hidden
14
+ */
15
+ var SignatureLineVue2 = {
16
+ name: 'KendoSignatureLine',
17
+ // @ts-ignore
18
+ setup: !isV3 ? undefined : function () {
19
+ var v3 = !!isV3;
20
+ return {
21
+ v3: v3
22
+ };
23
+ },
24
+ render: function render(createElement) {
25
+ var h = gh || createElement;
26
+ return h("div", {
27
+ "class": 'k-signature-line',
28
+ style: {
29
+ zIndex: 2,
30
+ pointerEvents: 'none'
31
+ }
32
+ });
33
+ }
34
+ };
35
+ exports.SignatureLineVue2 = SignatureLineVue2;
36
+ /**
37
+ * @hidden
38
+ */
39
+ var SignatureLine = SignatureLineVue2;
40
+ exports.SignatureLine = SignatureLine;