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

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 +88 -130
  5. package/dist/es/signature/SignatureBottomActions.d.ts +42 -0
  6. package/dist/es/signature/SignatureBottomActions.js +70 -0
  7. package/dist/es/signature/SignatureCanvas.js +1 -0
  8. package/dist/es/signature/SignatureDialog.d.ts +51 -0
  9. package/dist/es/signature/SignatureDialog.js +281 -0
  10. package/dist/es/signature/SignatureLine.d.ts +39 -0
  11. package/dist/es/signature/SignatureLine.js +30 -0
  12. package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +1 -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 +88 -130
  17. package/dist/esm/signature/SignatureBottomActions.d.ts +42 -0
  18. package/dist/esm/signature/SignatureBottomActions.js +70 -0
  19. package/dist/esm/signature/SignatureCanvas.js +1 -0
  20. package/dist/esm/signature/SignatureDialog.d.ts +51 -0
  21. package/dist/esm/signature/SignatureDialog.js +281 -0
  22. package/dist/esm/signature/SignatureLine.d.ts +39 -0
  23. package/dist/esm/signature/SignatureLine.js +30 -0
  24. package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +1 -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 +86 -128
  29. package/dist/npm/signature/SignatureBottomActions.d.ts +42 -0
  30. package/dist/npm/signature/SignatureBottomActions.js +77 -0
  31. package/dist/npm/signature/SignatureCanvas.js +1 -0
  32. package/dist/npm/signature/SignatureDialog.d.ts +51 -0
  33. package/dist/npm/signature/SignatureDialog.js +288 -0
  34. package/dist/npm/signature/SignatureLine.d.ts +39 -0
  35. package/dist/npm/signature/SignatureLine.js +37 -0
  36. package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +1 -0
  37. package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +10 -0
  38. package/package.json +13 -13
@@ -141,7 +141,9 @@ var isV3 = allVue.version && allVue.version[0] === '3';
141
141
  var ref = allVue.ref;
142
142
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
143
143
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
144
- var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
144
+ var SignatureDialog_1 = require("./SignatureDialog");
145
+ var SignatureBottomActions_1 = require("./SignatureBottomActions");
146
+ var SignatureLine_1 = require("./SignatureLine");
145
147
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
146
148
  var main_1 = require("../messages/main");
147
149
  var package_metadata_1 = require("../package-metadata");
@@ -310,48 +312,13 @@ var SignatureVue2 = {
310
312
  };
311
313
  },
312
314
  render: function render(createElement) {
313
- var _this = this;
314
315
  var h = gh || createElement;
315
316
  var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
316
317
  var showMaximize = !(this.computedOpen || this.isDrawing || !this.$props.maximizable || this.$props.disabled);
317
- var showMinimize = this.computedOpen && !this.isDrawing;
318
318
  var isEmpty = !this.computedValue;
319
319
  var showClear = !(isEmpty || this.isDrawing || this.$props.readOnly || this.$props.disabled);
320
320
  var maximizeTitle = ls.toLanguageString(main_1.signatureMaximize, main_1.messages[main_1.signatureMaximize]);
321
- var minimizeTitle = ls.toLanguageString(main_1.signatureMinimize, main_1.messages[main_1.signatureMinimize]);
322
321
  var clearTitle = ls.toLanguageString(main_1.signatureClear, main_1.messages[main_1.signatureClear]);
323
- var renderCanvas = function renderCanvas(refName) {
324
- return h(SignatureCanvas_1.SignatureCanvas, {
325
- ref: (0, kendo_vue_common_1.setRef)(this, refName),
326
- value: this.computedValue,
327
- attrs: this.v3 ? undefined : {
328
- value: this.computedValue,
329
- tabIndex: this.tabIndex,
330
- disabled: this.disabled,
331
- color: this.computedColor,
332
- backgroundColor: this.computedBgColor,
333
- strokeWidth: this.strokeWidth,
334
- smooth: this.smooth,
335
- popupScale: refName === 'openCanvas' ? this.$props.popupScale : 1,
336
- scale: refName === 'openCanvas' ? 1 / this.popupScale * this.exportScale : this.exportScale,
337
- elementSize: this.elementSize
338
- },
339
- tabIndex: this.tabIndex,
340
- disabled: this.disabled,
341
- color: this.computedColor,
342
- backgroundColor: this.computedBgColor,
343
- strokeWidth: this.strokeWidth,
344
- smooth: this.smooth,
345
- popupScale: refName === 'openCanvas' ? this.$props.popupScale : 1,
346
- scale: refName === 'openCanvas' ? 1 / this.popupScale * this.exportScale : this.exportScale,
347
- onChange: this.onValueChange,
348
- on: this.v3 ? undefined : {
349
- "change": this.onValueChange
350
- },
351
- elementSize: this.elementSize
352
- });
353
- };
354
- var canvasDiv = renderCanvas.call(this, 'canvas');
355
322
  var actions = h("div", {
356
323
  "class": 'k-signature-actions k-signature-actions-top'
357
324
  }, [showMaximize &&
@@ -379,66 +346,22 @@ var SignatureVue2 = {
379
346
  },
380
347
  "aria-label": maximizeTitle,
381
348
  title: maximizeTitle
382
- }), showMinimize &&
383
- // @ts-ignore
384
- h(kendo_vue_buttons_1.Button, {
385
- "class": 'k-signature-action k-signature-minimize k-rotate-180',
386
- ref: (0, kendo_vue_common_1.setRef)(this, 'minimizeButton'),
387
- icon: 'hyperlink-open',
388
- attrs: this.v3 ? undefined : {
389
- icon: 'hyperlink-open',
390
- svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
391
- shape: null,
392
- fillMode: 'flat',
393
- size: this.$props.size,
394
- "aria-label": minimizeTitle,
395
- title: minimizeTitle
396
- },
397
- svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
398
- shape: null,
399
- fillMode: 'flat',
400
- size: this.$props.size,
401
- onClick: this.onMinimizeClick,
402
- on: this.v3 ? undefined : {
403
- "click": this.onMinimizeClick
404
- },
405
- "aria-label": minimizeTitle,
406
- title: minimizeTitle
407
349
  })]);
408
- var hideLine = !this.$props.hideLine && h("div", {
409
- "class": 'k-signature-line',
410
- style: {
411
- zIndex: 2,
412
- pointerEvents: 'none'
413
- }
414
- });
415
- var bottomActions = h("div", {
416
- "class": 'k-signature-actions k-signature-actions-bottom'
417
- }, [showClear &&
418
- // @ts-ignore
419
- h(kendo_vue_buttons_1.Button, {
420
- "class": 'k-signature-action k-signature-clear',
421
- icon: 'x',
350
+ var hideLine = !this.$props.hideLine && h(SignatureLine_1.SignatureLine);
351
+ var bottomActions = h(SignatureBottomActions_1.SignatureBottomActions, {
352
+ showClear: showClear,
422
353
  attrs: this.v3 ? undefined : {
423
- icon: 'x',
424
- svgIcon: kendo_svg_icons_1.xIcon,
425
- shape: null,
426
- fillMode: 'flat',
427
- size: this.$props.size,
428
- "aria-label": clearTitle,
354
+ showClear: showClear,
355
+ size: this.size,
429
356
  title: clearTitle
430
357
  },
431
- svgIcon: kendo_svg_icons_1.xIcon,
432
- shape: null,
433
- fillMode: 'flat',
434
- size: this.$props.size,
435
- onClick: this.onClear,
358
+ size: this.size,
359
+ onClear: this.onClear,
436
360
  on: this.v3 ? undefined : {
437
- "click": this.onClear
361
+ "clear": this.onClear
438
362
  },
439
- "aria-label": clearTitle,
440
363
  title: clearTitle
441
- })]);
364
+ });
442
365
  return h("div", {
443
366
  dir: this.$props.dir,
444
367
  attrs: this.v3 ? undefined : {
@@ -451,49 +374,84 @@ var SignatureVue2 = {
451
374
  "blur": this.onBlur
452
375
  },
453
376
  onBlur: this.onBlur
454
- }, [canvasDiv, actions, hideLine, bottomActions, this.computedOpen &&
455
- // @ts-ignore function children
456
- h(kendo_vue_dialogs_1.Dialog, {
457
- ref: (0, kendo_vue_common_1.setRef)(this, 'dialog'),
458
- onOverlayclick: this.onOverlayClick,
377
+ }, [h(SignatureCanvas_1.SignatureCanvas, {
378
+ ref: (0, kendo_vue_common_1.setRef)(this, 'canvas'),
379
+ value: this.computedValue,
380
+ attrs: this.v3 ? undefined : {
381
+ value: this.computedValue,
382
+ tabIndex: this.tabIndex,
383
+ disabled: this.disabled,
384
+ readOnly: this.readOnly,
385
+ color: this.computedColor,
386
+ backgroundColor: this.computedBgColor,
387
+ strokeWidth: this.strokeWidth,
388
+ smooth: this.smooth,
389
+ popupScale: 1,
390
+ scale: this.exportScale,
391
+ elementSize: this.elementSize
392
+ },
393
+ tabIndex: this.tabIndex,
394
+ disabled: this.disabled,
395
+ readOnly: this.readOnly,
396
+ color: this.computedColor,
397
+ backgroundColor: this.computedBgColor,
398
+ strokeWidth: this.strokeWidth,
399
+ smooth: this.smooth,
400
+ popupScale: 1,
401
+ scale: this.exportScale,
402
+ onChange: this.onValueChange,
459
403
  on: this.v3 ? undefined : {
460
- "overlayclick": this.onOverlayClick
461
- }
462
- }, this.v3 ? function () {
463
- return [h("div", {
464
- style: {
465
- width: _this.popupWidth + 'px',
466
- height: _this.popupHeight + 'px'
467
- },
468
- dir: _this.$props.dir,
469
- attrs: _this.v3 ? undefined : {
470
- dir: _this.$props.dir
471
- },
472
- "class": _this.openWrapperClass,
473
- onFocus: _this.onFocus,
474
- on: _this.v3 ? undefined : {
475
- "focus": _this.onFocus,
476
- "blur": _this.onBlur
477
- },
478
- onBlur: _this.onBlur
479
- }, [renderCanvas.call(_this, 'openCanvas'), actions, hideLine, bottomActions])];
480
- } : [h("div", {
481
- style: {
482
- width: _this.popupWidth + 'px',
483
- height: _this.popupHeight + 'px'
404
+ "change": this.onValueChange
484
405
  },
485
- dir: _this.$props.dir,
486
- attrs: _this.v3 ? undefined : {
487
- dir: _this.$props.dir
406
+ elementSize: this.elementSize
407
+ }), actions, hideLine, bottomActions, this.computedOpen && h(SignatureDialog_1.SignatureDialog, {
408
+ openWrapperClass: this.openWrapperClass,
409
+ attrs: this.v3 ? undefined : {
410
+ openWrapperClass: this.openWrapperClass,
411
+ popupWidth: this.popupWidth,
412
+ popupHeight: this.popupHeight,
413
+ showClear: showClear,
414
+ value: this.computedValue,
415
+ tabIndex: this.tabIndex,
416
+ disabled: this.disabled,
417
+ readOnly: this.readOnly,
418
+ color: this.computedColor,
419
+ backgroundColor: this.computedBgColor,
420
+ strokeWidth: this.strokeWidth,
421
+ smooth: this.smooth,
422
+ popupScale: this.$props.popupScale,
423
+ scale: 1 / this.popupScale * this.exportScale,
424
+ elementSize: this.elementSize
488
425
  },
489
- "class": _this.openWrapperClass,
490
- onFocus: _this.onFocus,
491
- on: _this.v3 ? undefined : {
492
- "focus": _this.onFocus,
493
- "blur": _this.onBlur
426
+ popupWidth: this.popupWidth,
427
+ popupHeight: this.popupHeight,
428
+ showClear: showClear,
429
+ onClose: this.onMinimizeClick,
430
+ on: this.v3 ? undefined : {
431
+ "close": this.onMinimizeClick,
432
+ "clear": this.onClear,
433
+ "overlayclick": this.onOverlayClick,
434
+ "focus": this.onFocus,
435
+ "blur": this.onBlur,
436
+ "change": this.onValueChange
494
437
  },
495
- onBlur: _this.onBlur
496
- }, [renderCanvas.call(_this, 'openCanvas'), actions, hideLine, bottomActions])])]);
438
+ onClear: this.onClear,
439
+ onOverlayclick: this.onOverlayClick,
440
+ onFocus: this.onFocus,
441
+ onBlur: this.onBlur,
442
+ value: this.computedValue,
443
+ tabIndex: this.tabIndex,
444
+ disabled: this.disabled,
445
+ readOnly: this.readOnly,
446
+ color: this.computedColor,
447
+ backgroundColor: this.computedBgColor,
448
+ strokeWidth: this.strokeWidth,
449
+ smooth: this.smooth,
450
+ popupScale: this.$props.popupScale,
451
+ scale: 1 / this.popupScale * this.exportScale,
452
+ onChange: this.onValueChange,
453
+ elementSize: this.elementSize
454
+ })]);
497
455
  },
498
456
  methods: {
499
457
  onOverlayClick: function onOverlayClick() {
@@ -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 SignatureBottomActionsProps {
10
+ showClear: boolean;
11
+ size: string;
12
+ title: string;
13
+ }
14
+ /**
15
+ * @hidden
16
+ */
17
+ export interface SignatureBottomActionsComputed {
18
+ [key: string]: any;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface SignatureBottomActionsMethods {
24
+ [key: string]: any;
25
+ element: () => HTMLSpanElement | null;
26
+ }
27
+ /**
28
+ * @hidden
29
+ */
30
+ export interface SignatureBottomActionsData {
31
+ }
32
+ /**
33
+ * @hidden
34
+ */
35
+ export interface SignatureBottomActionsAll extends Vue2type, SignatureBottomActionsMethods, SignatureBottomActionsData, SignatureBottomActionsComputed, SignatureBottomActionsProps {
36
+ }
37
+ /**
38
+ * @hidden
39
+ */
40
+ declare let SignatureBottomActionsVue2: ComponentOptions<SignatureBottomActionsAll, DefaultData<SignatureBottomActionsData>, DefaultMethods<SignatureBottomActionsAll>, SignatureBottomActionsComputed, RecordPropsDefinition<SignatureBottomActionsProps>>;
41
+ declare const SignatureBottomActions: DefineComponent<{}, any, SignatureBottomActionsData, SignatureBottomActionsComputed, SignatureBottomActionsMethods, {}, {}, {}, string, {}, {}, {}>;
42
+ export { SignatureBottomActions, SignatureBottomActionsVue2 };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SignatureBottomActionsVue2 = exports.SignatureBottomActions = 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_buttons_1 = require("@progress/kendo-vue-buttons");
13
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
14
+ /**
15
+ * @hidden
16
+ */
17
+ var SignatureBottomActionsVue2 = {
18
+ name: 'KendoSignatureBottomActions',
19
+ // @ts-ignore
20
+ emits: {
21
+ clear: null
22
+ },
23
+ props: {
24
+ showClear: Boolean,
25
+ size: String,
26
+ title: String
27
+ },
28
+ methods: {
29
+ onClear: function onClear(e) {
30
+ this.$emit('clear', e);
31
+ }
32
+ },
33
+ // @ts-ignore
34
+ setup: !isV3 ? undefined : function () {
35
+ var v3 = !!isV3;
36
+ return {
37
+ v3: v3
38
+ };
39
+ },
40
+ render: function render(createElement) {
41
+ var h = gh || createElement;
42
+ var _a = this.$props,
43
+ showClear = _a.showClear,
44
+ title = _a.title,
45
+ size = _a.size;
46
+ return h("div", {
47
+ "class": 'k-signature-actions k-signature-actions-bottom'
48
+ }, [showClear &&
49
+ // @ts-ignore
50
+ h(kendo_vue_buttons_1.Button, {
51
+ "class": 'k-signature-action k-signature-clear',
52
+ icon: 'x',
53
+ attrs: this.v3 ? undefined : {
54
+ icon: 'x',
55
+ svgIcon: kendo_svg_icons_1.xIcon,
56
+ shape: null,
57
+ fillMode: 'flat',
58
+ size: size,
59
+ "aria-label": title,
60
+ title: title
61
+ },
62
+ svgIcon: kendo_svg_icons_1.xIcon,
63
+ shape: null,
64
+ fillMode: 'flat',
65
+ size: size,
66
+ onClick: this.onClear,
67
+ on: this.v3 ? undefined : {
68
+ "click": this.onClear
69
+ },
70
+ "aria-label": title,
71
+ title: title
72
+ })]);
73
+ }
74
+ };
75
+ exports.SignatureBottomActionsVue2 = SignatureBottomActionsVue2;
76
+ var SignatureBottomActions = SignatureBottomActionsVue2;
77
+ exports.SignatureBottomActions = SignatureBottomActions;
@@ -158,6 +158,7 @@ var SignatureCanvasVue2 = {
158
158
  value: String,
159
159
  tabIndex: Number,
160
160
  disabled: Boolean,
161
+ readOnly: Boolean,
161
162
  color: String,
162
163
  backgroundColor: String,
163
164
  elementSize: Function,
@@ -0,0 +1,51 @@
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
+ export interface SignatureDialogProps extends SignatureCanvasProps {
8
+ openWrapperClass?: object;
9
+ size?: string;
10
+ dir?: string;
11
+ popupWidth: Number;
12
+ popupHeight: Number;
13
+ showClear: boolean;
14
+ }
15
+ /**
16
+ * @hidden
17
+ */
18
+ export interface SignatureDialogState {
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface SignatureDialogComputed {
24
+ [key: string]: any;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface SignatureDialogMethods {
30
+ [key: string]: any;
31
+ }
32
+ /**
33
+ * @hidden
34
+ */
35
+ export interface SignatureDialogData {
36
+ currentActive: boolean;
37
+ }
38
+ /**
39
+ * @hidden
40
+ */
41
+ export interface SignatureDialogAll extends Vue2type, SignatureDialogMethods, SignatureDialogData, SignatureDialogComputed, SignatureDialogState {
42
+ }
43
+ /**
44
+ * @hidden
45
+ */
46
+ declare let SignatureDialogVue2: ComponentOptions<SignatureDialogAll, DefaultData<SignatureDialogData>, DefaultMethods<SignatureDialogAll>, SignatureDialogComputed, RecordPropsDefinition<SignatureDialogProps>>;
47
+ /**
48
+ * @hidden
49
+ */
50
+ declare const SignatureDialog: DefineComponent<SignatureDialogProps, any, SignatureDialogData, SignatureDialogComputed, SignatureDialogMethods, {}, {}, {}, string, SignatureDialogProps, SignatureDialogProps, {}>;
51
+ export { SignatureDialog, SignatureDialogVue2 };