@progress/kendo-vue-inputs 3.7.4-dev.202301091431 → 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
@@ -126,14 +126,23 @@ export interface InputProps extends FormComponentProps {
126
126
  */
127
127
  inputClass?: String;
128
128
  /**
129
- * 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).
130
- * For example these elements could contain error or hint message.
129
+ * Identifies the element(s) which will label the component.
131
130
  */
132
131
  ariaDescribedBy?: string;
133
132
  /**
134
- * Identifies the element(s) which will label the component.
133
+ * Defines a string value that labels an interactive element.
135
134
  */
136
135
  ariaLabelledBy?: string;
136
+ /**
137
+ * Defines the built-in [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength) property of the text inputs.
138
+ * * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `minlength`. Camel-case and kebap-case won't work in this scenario.
139
+ */
140
+ minlength?: string;
141
+ /**
142
+ * Defines the built-in [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength) property of the text inputs.
143
+ * * As the property is directly passed to the internal [input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) element, when defining it, it should be written as it is - `maxlength`. Camel-case and kebap-case won't work in this scenario.
144
+ */
145
+ maxlength?: string;
137
146
  }
138
147
  /**
139
148
  * @hidden
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-inputs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1673273516,
8
+ publishDate: 1673606827,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -135,13 +135,15 @@ var isV3 = allVue.version && allVue.version[0] === '3';
135
135
  var ref = allVue.ref;
136
136
  import { Button } from '@progress/kendo-vue-buttons';
137
137
  import { kendoThemeMaps, setRef, getRef, validatePackage } from '@progress/kendo-vue-common';
138
- import { Dialog } from '@progress/kendo-vue-dialogs';
138
+ import { SignatureDialog } from './SignatureDialog';
139
+ import { SignatureBottomActions } from './SignatureBottomActions';
140
+ import { SignatureLine } from './SignatureLine';
139
141
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
140
- import { messages, signatureClear, signatureMaximize, signatureMinimize } from '../messages/main';
142
+ import { messages, signatureClear, signatureMaximize } from '../messages/main';
141
143
  import { packageMetadata } from '../package-metadata';
142
144
  import { SignatureCanvas } from './SignatureCanvas';
143
145
  import { hasParent } from './utils';
144
- import { hyperlinkOpenIcon, xIcon } from '@progress/kendo-svg-icons';
146
+ import { hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
145
147
  var DEFAULT_WIDTH = 250;
146
148
  var DEFAULT_HEIGHT = 84;
147
149
  var DEFAULT_POPUP_SCALE = 3;
@@ -304,48 +306,13 @@ var SignatureVue2 = {
304
306
  };
305
307
  },
306
308
  render: function render(createElement) {
307
- var _this = this;
308
309
  var h = gh || createElement;
309
310
  var ls = provideLocalizationService(this);
310
311
  var showMaximize = !(this.computedOpen || this.isDrawing || !this.$props.maximizable || this.$props.disabled);
311
- var showMinimize = this.computedOpen && !this.isDrawing;
312
312
  var isEmpty = !this.computedValue;
313
313
  var showClear = !(isEmpty || this.isDrawing || this.$props.readOnly || this.$props.disabled);
314
314
  var maximizeTitle = ls.toLanguageString(signatureMaximize, messages[signatureMaximize]);
315
- var minimizeTitle = ls.toLanguageString(signatureMinimize, messages[signatureMinimize]);
316
315
  var clearTitle = ls.toLanguageString(signatureClear, messages[signatureClear]);
317
- var renderCanvas = function renderCanvas(refName) {
318
- return h(SignatureCanvas, {
319
- ref: setRef(this, refName),
320
- value: this.computedValue,
321
- attrs: this.v3 ? undefined : {
322
- value: this.computedValue,
323
- tabIndex: this.tabIndex,
324
- disabled: this.disabled,
325
- color: this.computedColor,
326
- backgroundColor: this.computedBgColor,
327
- strokeWidth: this.strokeWidth,
328
- smooth: this.smooth,
329
- popupScale: refName === 'openCanvas' ? this.$props.popupScale : 1,
330
- scale: refName === 'openCanvas' ? 1 / this.popupScale * this.exportScale : this.exportScale,
331
- elementSize: this.elementSize
332
- },
333
- tabIndex: this.tabIndex,
334
- disabled: this.disabled,
335
- color: this.computedColor,
336
- backgroundColor: this.computedBgColor,
337
- strokeWidth: this.strokeWidth,
338
- smooth: this.smooth,
339
- popupScale: refName === 'openCanvas' ? this.$props.popupScale : 1,
340
- scale: refName === 'openCanvas' ? 1 / this.popupScale * this.exportScale : this.exportScale,
341
- onChange: this.onValueChange,
342
- on: this.v3 ? undefined : {
343
- "change": this.onValueChange
344
- },
345
- elementSize: this.elementSize
346
- });
347
- };
348
- var canvasDiv = renderCanvas.call(this, 'canvas');
349
316
  var actions = h("div", {
350
317
  "class": 'k-signature-actions k-signature-actions-top'
351
318
  }, [showMaximize &&
@@ -373,66 +340,22 @@ var SignatureVue2 = {
373
340
  },
374
341
  "aria-label": maximizeTitle,
375
342
  title: maximizeTitle
376
- }), showMinimize &&
377
- // @ts-ignore
378
- h(Button, {
379
- "class": 'k-signature-action k-signature-minimize k-rotate-180',
380
- ref: setRef(this, 'minimizeButton'),
381
- icon: 'hyperlink-open',
382
- attrs: this.v3 ? undefined : {
383
- icon: 'hyperlink-open',
384
- svgIcon: hyperlinkOpenIcon,
385
- shape: null,
386
- fillMode: 'flat',
387
- size: this.$props.size,
388
- "aria-label": minimizeTitle,
389
- title: minimizeTitle
390
- },
391
- svgIcon: hyperlinkOpenIcon,
392
- shape: null,
393
- fillMode: 'flat',
394
- size: this.$props.size,
395
- onClick: this.onMinimizeClick,
396
- on: this.v3 ? undefined : {
397
- "click": this.onMinimizeClick
398
- },
399
- "aria-label": minimizeTitle,
400
- title: minimizeTitle
401
343
  })]);
402
- var hideLine = !this.$props.hideLine && h("div", {
403
- "class": 'k-signature-line',
404
- style: {
405
- zIndex: 2,
406
- pointerEvents: 'none'
407
- }
408
- });
409
- var bottomActions = h("div", {
410
- "class": 'k-signature-actions k-signature-actions-bottom'
411
- }, [showClear &&
412
- // @ts-ignore
413
- h(Button, {
414
- "class": 'k-signature-action k-signature-clear',
415
- icon: 'x',
344
+ var hideLine = !this.$props.hideLine && h(SignatureLine);
345
+ var bottomActions = h(SignatureBottomActions, {
346
+ showClear: showClear,
416
347
  attrs: this.v3 ? undefined : {
417
- icon: 'x',
418
- svgIcon: xIcon,
419
- shape: null,
420
- fillMode: 'flat',
421
- size: this.$props.size,
422
- "aria-label": clearTitle,
348
+ showClear: showClear,
349
+ size: this.size,
423
350
  title: clearTitle
424
351
  },
425
- svgIcon: xIcon,
426
- shape: null,
427
- fillMode: 'flat',
428
- size: this.$props.size,
429
- onClick: this.onClear,
352
+ size: this.size,
353
+ onClear: this.onClear,
430
354
  on: this.v3 ? undefined : {
431
- "click": this.onClear
355
+ "clear": this.onClear
432
356
  },
433
- "aria-label": clearTitle,
434
357
  title: clearTitle
435
- })]);
358
+ });
436
359
  return h("div", {
437
360
  dir: this.$props.dir,
438
361
  attrs: this.v3 ? undefined : {
@@ -445,49 +368,84 @@ var SignatureVue2 = {
445
368
  "blur": this.onBlur
446
369
  },
447
370
  onBlur: this.onBlur
448
- }, [canvasDiv, actions, hideLine, bottomActions, this.computedOpen &&
449
- // @ts-ignore function children
450
- h(Dialog, {
451
- ref: setRef(this, 'dialog'),
452
- onOverlayclick: this.onOverlayClick,
371
+ }, [h(SignatureCanvas, {
372
+ ref: setRef(this, 'canvas'),
373
+ value: this.computedValue,
374
+ attrs: this.v3 ? undefined : {
375
+ value: this.computedValue,
376
+ tabIndex: this.tabIndex,
377
+ disabled: this.disabled,
378
+ readOnly: this.readOnly,
379
+ color: this.computedColor,
380
+ backgroundColor: this.computedBgColor,
381
+ strokeWidth: this.strokeWidth,
382
+ smooth: this.smooth,
383
+ popupScale: 1,
384
+ scale: this.exportScale,
385
+ elementSize: this.elementSize
386
+ },
387
+ tabIndex: this.tabIndex,
388
+ disabled: this.disabled,
389
+ readOnly: this.readOnly,
390
+ color: this.computedColor,
391
+ backgroundColor: this.computedBgColor,
392
+ strokeWidth: this.strokeWidth,
393
+ smooth: this.smooth,
394
+ popupScale: 1,
395
+ scale: this.exportScale,
396
+ onChange: this.onValueChange,
453
397
  on: this.v3 ? undefined : {
454
- "overlayclick": this.onOverlayClick
455
- }
456
- }, this.v3 ? function () {
457
- return [h("div", {
458
- style: {
459
- width: _this.popupWidth + 'px',
460
- height: _this.popupHeight + 'px'
461
- },
462
- dir: _this.$props.dir,
463
- attrs: _this.v3 ? undefined : {
464
- dir: _this.$props.dir
465
- },
466
- "class": _this.openWrapperClass,
467
- onFocus: _this.onFocus,
468
- on: _this.v3 ? undefined : {
469
- "focus": _this.onFocus,
470
- "blur": _this.onBlur
471
- },
472
- onBlur: _this.onBlur
473
- }, [renderCanvas.call(_this, 'openCanvas'), actions, hideLine, bottomActions])];
474
- } : [h("div", {
475
- style: {
476
- width: _this.popupWidth + 'px',
477
- height: _this.popupHeight + 'px'
398
+ "change": this.onValueChange
478
399
  },
479
- dir: _this.$props.dir,
480
- attrs: _this.v3 ? undefined : {
481
- dir: _this.$props.dir
400
+ elementSize: this.elementSize
401
+ }), actions, hideLine, bottomActions, this.computedOpen && h(SignatureDialog, {
402
+ openWrapperClass: this.openWrapperClass,
403
+ attrs: this.v3 ? undefined : {
404
+ openWrapperClass: this.openWrapperClass,
405
+ popupWidth: this.popupWidth,
406
+ popupHeight: this.popupHeight,
407
+ showClear: showClear,
408
+ value: this.computedValue,
409
+ tabIndex: this.tabIndex,
410
+ disabled: this.disabled,
411
+ readOnly: this.readOnly,
412
+ color: this.computedColor,
413
+ backgroundColor: this.computedBgColor,
414
+ strokeWidth: this.strokeWidth,
415
+ smooth: this.smooth,
416
+ popupScale: this.$props.popupScale,
417
+ scale: 1 / this.popupScale * this.exportScale,
418
+ elementSize: this.elementSize
482
419
  },
483
- "class": _this.openWrapperClass,
484
- onFocus: _this.onFocus,
485
- on: _this.v3 ? undefined : {
486
- "focus": _this.onFocus,
487
- "blur": _this.onBlur
420
+ popupWidth: this.popupWidth,
421
+ popupHeight: this.popupHeight,
422
+ showClear: showClear,
423
+ onClose: this.onMinimizeClick,
424
+ on: this.v3 ? undefined : {
425
+ "close": this.onMinimizeClick,
426
+ "clear": this.onClear,
427
+ "overlayclick": this.onOverlayClick,
428
+ "focus": this.onFocus,
429
+ "blur": this.onBlur,
430
+ "change": this.onValueChange
488
431
  },
489
- onBlur: _this.onBlur
490
- }, [renderCanvas.call(_this, 'openCanvas'), actions, hideLine, bottomActions])])]);
432
+ onClear: this.onClear,
433
+ onOverlayclick: this.onOverlayClick,
434
+ onFocus: this.onFocus,
435
+ onBlur: this.onBlur,
436
+ value: this.computedValue,
437
+ tabIndex: this.tabIndex,
438
+ disabled: this.disabled,
439
+ readOnly: this.readOnly,
440
+ color: this.computedColor,
441
+ backgroundColor: this.computedBgColor,
442
+ strokeWidth: this.strokeWidth,
443
+ smooth: this.smooth,
444
+ popupScale: this.$props.popupScale,
445
+ scale: 1 / this.popupScale * this.exportScale,
446
+ onChange: this.onValueChange,
447
+ elementSize: this.elementSize
448
+ })]);
491
449
  },
492
450
  methods: {
493
451
  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,70 @@
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 { Button } from '@progress/kendo-vue-buttons';
7
+ import { xIcon } from '@progress/kendo-svg-icons';
8
+ /**
9
+ * @hidden
10
+ */
11
+ var SignatureBottomActionsVue2 = {
12
+ name: 'KendoSignatureBottomActions',
13
+ // @ts-ignore
14
+ emits: {
15
+ clear: null
16
+ },
17
+ props: {
18
+ showClear: Boolean,
19
+ size: String,
20
+ title: String
21
+ },
22
+ methods: {
23
+ onClear: function onClear(e) {
24
+ this.$emit('clear', e);
25
+ }
26
+ },
27
+ // @ts-ignore
28
+ setup: !isV3 ? undefined : function () {
29
+ var v3 = !!isV3;
30
+ return {
31
+ v3: v3
32
+ };
33
+ },
34
+ render: function render(createElement) {
35
+ var h = gh || createElement;
36
+ var _a = this.$props,
37
+ showClear = _a.showClear,
38
+ title = _a.title,
39
+ size = _a.size;
40
+ return h("div", {
41
+ "class": 'k-signature-actions k-signature-actions-bottom'
42
+ }, [showClear &&
43
+ // @ts-ignore
44
+ h(Button, {
45
+ "class": 'k-signature-action k-signature-clear',
46
+ icon: 'x',
47
+ attrs: this.v3 ? undefined : {
48
+ icon: 'x',
49
+ svgIcon: xIcon,
50
+ shape: null,
51
+ fillMode: 'flat',
52
+ size: size,
53
+ "aria-label": title,
54
+ title: title
55
+ },
56
+ svgIcon: xIcon,
57
+ shape: null,
58
+ fillMode: 'flat',
59
+ size: size,
60
+ onClick: this.onClear,
61
+ on: this.v3 ? undefined : {
62
+ "click": this.onClear
63
+ },
64
+ "aria-label": title,
65
+ title: title
66
+ })]);
67
+ }
68
+ };
69
+ var SignatureBottomActions = SignatureBottomActionsVue2;
70
+ export { SignatureBottomActions, SignatureBottomActionsVue2 };
@@ -152,6 +152,7 @@ var SignatureCanvasVue2 = {
152
152
  value: String,
153
153
  tabIndex: Number,
154
154
  disabled: Boolean,
155
+ readOnly: Boolean,
155
156
  color: String,
156
157
  backgroundColor: String,
157
158
  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 };