@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
@@ -0,0 +1,288 @@
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
+ },
35
+ props: {
36
+ openWrapperClass: Object,
37
+ size: String,
38
+ dir: String,
39
+ popupWidth: Number,
40
+ popupHeight: Number,
41
+ showClear: Boolean,
42
+ strokeWidth: Number,
43
+ popupScale: Number,
44
+ scale: Number,
45
+ value: String,
46
+ tabIndex: Number,
47
+ disabled: Boolean,
48
+ readOnly: Boolean,
49
+ color: String,
50
+ backgroundColor: String,
51
+ elementSize: Function,
52
+ smooth: Boolean
53
+ },
54
+ inject: {
55
+ kendoLocalizationService: {
56
+ default: null
57
+ }
58
+ },
59
+ // @ts-ignore
60
+ setup: !isV3 ? undefined : function () {
61
+ var v3 = !!isV3;
62
+ return {
63
+ v3: v3
64
+ };
65
+ },
66
+ // @ts-ignore
67
+ render: function render(createElement) {
68
+ var _this = this;
69
+ var h = gh || createElement;
70
+ var _a = this.$props,
71
+ showClear = _a.showClear,
72
+ popupWidth = _a.popupWidth,
73
+ popupHeight = _a.popupHeight,
74
+ dir = _a.dir,
75
+ size = _a.size,
76
+ value = _a.value,
77
+ tabIndex = _a.tabIndex,
78
+ disabled = _a.disabled,
79
+ readOnly = _a.readOnly,
80
+ color = _a.color,
81
+ backgroundColor = _a.backgroundColor,
82
+ strokeWidth = _a.strokeWidth,
83
+ smooth = _a.smooth,
84
+ popupScale = _a.popupScale,
85
+ scale = _a.scale,
86
+ elementSize = _a.elementSize;
87
+ var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
88
+ var minimizeTitle = ls.toLanguageString(main_1.signatureMinimize, main_1.messages[main_1.signatureMinimize]);
89
+ var clearTitle = ls.toLanguageString(main_1.signatureClear, main_1.messages[main_1.signatureClear]);
90
+ var hideLine = !this.$props.hideLine && h(SignatureLine_1.SignatureLine);
91
+ var bottomActions = h(SignatureBottomActions_1.SignatureBottomActions, {
92
+ showClear: showClear,
93
+ attrs: this.v3 ? undefined : {
94
+ showClear: showClear,
95
+ size: size,
96
+ title: clearTitle
97
+ },
98
+ size: size,
99
+ onClear: this.onClear,
100
+ on: this.v3 ? undefined : {
101
+ "clear": this.onClear
102
+ },
103
+ title: clearTitle
104
+ });
105
+ var dialog =
106
+ // @ts-ignore function children
107
+ h(kendo_vue_dialogs_1.Dialog, {
108
+ ref: (0, kendo_vue_common_1.setRef)(this, 'dialog'),
109
+ onOverlayclick: this.onOverlayClick,
110
+ on: this.v3 ? undefined : {
111
+ "overlayclick": this.onOverlayClick
112
+ }
113
+ }, this.v3 ? function () {
114
+ return [h("div", {
115
+ style: {
116
+ width: popupWidth + 'px',
117
+ height: popupHeight + 'px'
118
+ },
119
+ dir: dir,
120
+ attrs: _this.v3 ? undefined : {
121
+ dir: dir
122
+ },
123
+ "class": _this.openWrapperClass,
124
+ onFocus: _this.onFocus,
125
+ on: _this.v3 ? undefined : {
126
+ "focus": _this.onFocus,
127
+ "blur": _this.onBlur
128
+ },
129
+ onBlur: _this.onBlur
130
+ }, [h(SignatureCanvas_1.SignatureCanvas, {
131
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'openCanvas'),
132
+ value: value,
133
+ attrs: _this.v3 ? undefined : {
134
+ value: value,
135
+ tabIndex: tabIndex,
136
+ disabled: disabled,
137
+ readOnly: readOnly,
138
+ color: color,
139
+ backgroundColor: backgroundColor,
140
+ strokeWidth: strokeWidth,
141
+ smooth: smooth,
142
+ popupScale: popupScale,
143
+ scale: scale,
144
+ elementSize: elementSize
145
+ },
146
+ tabIndex: tabIndex,
147
+ disabled: disabled,
148
+ readOnly: readOnly,
149
+ color: color,
150
+ backgroundColor: backgroundColor,
151
+ strokeWidth: strokeWidth,
152
+ smooth: smooth,
153
+ popupScale: popupScale,
154
+ scale: scale,
155
+ onChange: _this.onValueChange,
156
+ on: _this.v3 ? undefined : {
157
+ "change": _this.onValueChange
158
+ },
159
+ elementSize: elementSize
160
+ }), h("div", {
161
+ "class": 'k-signature-actions k-signature-actions-top'
162
+ }, [
163
+ // @ts-ignore
164
+ h(kendo_vue_buttons_1.Button, {
165
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
166
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'minimizeButton'),
167
+ icon: 'hyperlink-open',
168
+ attrs: _this.v3 ? undefined : {
169
+ icon: 'hyperlink-open',
170
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
171
+ shape: null,
172
+ fillMode: 'flat',
173
+ size: _this.$props.size,
174
+ "aria-label": minimizeTitle,
175
+ title: minimizeTitle
176
+ },
177
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
178
+ shape: null,
179
+ fillMode: 'flat',
180
+ size: _this.$props.size,
181
+ onClick: _this.onMinimizeClick,
182
+ on: _this.v3 ? undefined : {
183
+ "click": _this.onMinimizeClick
184
+ },
185
+ "aria-label": minimizeTitle,
186
+ title: minimizeTitle
187
+ })]), hideLine, bottomActions])];
188
+ } : [h("div", {
189
+ style: {
190
+ width: popupWidth + 'px',
191
+ height: popupHeight + 'px'
192
+ },
193
+ dir: dir,
194
+ attrs: _this.v3 ? undefined : {
195
+ dir: dir
196
+ },
197
+ "class": _this.openWrapperClass,
198
+ onFocus: _this.onFocus,
199
+ on: _this.v3 ? undefined : {
200
+ "focus": _this.onFocus,
201
+ "blur": _this.onBlur
202
+ },
203
+ onBlur: _this.onBlur
204
+ }, [h(SignatureCanvas_1.SignatureCanvas, {
205
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'openCanvas'),
206
+ value: value,
207
+ attrs: _this.v3 ? undefined : {
208
+ value: value,
209
+ tabIndex: tabIndex,
210
+ disabled: disabled,
211
+ readOnly: readOnly,
212
+ color: color,
213
+ backgroundColor: backgroundColor,
214
+ strokeWidth: strokeWidth,
215
+ smooth: smooth,
216
+ popupScale: popupScale,
217
+ scale: scale,
218
+ elementSize: elementSize
219
+ },
220
+ tabIndex: tabIndex,
221
+ disabled: disabled,
222
+ readOnly: readOnly,
223
+ color: color,
224
+ backgroundColor: backgroundColor,
225
+ strokeWidth: strokeWidth,
226
+ smooth: smooth,
227
+ popupScale: popupScale,
228
+ scale: scale,
229
+ onChange: _this.onValueChange,
230
+ on: _this.v3 ? undefined : {
231
+ "change": _this.onValueChange
232
+ },
233
+ elementSize: elementSize
234
+ }), h("div", {
235
+ "class": 'k-signature-actions k-signature-actions-top'
236
+ }, [h(kendo_vue_buttons_1.Button, {
237
+ "class": 'k-signature-action k-signature-minimize k-rotate-180',
238
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'minimizeButton'),
239
+ icon: 'hyperlink-open',
240
+ attrs: _this.v3 ? undefined : {
241
+ icon: 'hyperlink-open',
242
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
243
+ shape: null,
244
+ fillMode: 'flat',
245
+ size: _this.$props.size,
246
+ "aria-label": minimizeTitle,
247
+ title: minimizeTitle
248
+ },
249
+ svgIcon: kendo_svg_icons_1.hyperlinkOpenIcon,
250
+ shape: null,
251
+ fillMode: 'flat',
252
+ size: _this.$props.size,
253
+ onClick: _this.onMinimizeClick,
254
+ on: _this.v3 ? undefined : {
255
+ "click": _this.onMinimizeClick
256
+ },
257
+ "aria-label": minimizeTitle,
258
+ title: minimizeTitle
259
+ })]), hideLine, bottomActions])]);
260
+ return dialog;
261
+ },
262
+ methods: {
263
+ onValueChange: function onValueChange(nextValue) {
264
+ this.$emit('change', nextValue);
265
+ },
266
+ onClear: function onClear() {
267
+ this.$emit('clear');
268
+ },
269
+ onMinimizeClick: function onMinimizeClick() {
270
+ this.$emit('close');
271
+ },
272
+ onFocus: function onFocus(e) {
273
+ this.$emit('focus', e);
274
+ },
275
+ onBlur: function onBlur(e) {
276
+ this.$emit('blur', e);
277
+ },
278
+ onOverlayClick: function onOverlayClick(e) {
279
+ this.$emit('overlayclick', e);
280
+ }
281
+ }
282
+ };
283
+ exports.SignatureDialogVue2 = SignatureDialogVue2;
284
+ /**
285
+ * @hidden
286
+ */
287
+ var SignatureDialog = SignatureDialogVue2;
288
+ exports.SignatureDialog = SignatureDialog;
@@ -0,0 +1,39 @@
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
+ declare const SignatureLine: DefineComponent<{}, any, SignatureLineData, SignatureLineComputed, SignatureLineMethods, {}, {}, {}, string, {}, {}, {}>;
39
+ export { SignatureLine, SignatureLineVue2 };
@@ -0,0 +1,37 @@
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
+ var SignatureLine = SignatureLineVue2;
37
+ exports.SignatureLine = SignatureLine;
@@ -3,6 +3,7 @@ export interface SignatureCanvasProps {
3
3
  value?: string;
4
4
  tabIndex?: number;
5
5
  disabled?: boolean;
6
+ readOnly?: boolean;
6
7
  color?: string;
7
8
  backgroundColor?: string;
8
9
  strokeWidth?: number;
@@ -21,6 +21,16 @@ export interface TextAreaProps extends FormComponentProps {
21
21
  * Identifies the title of the TextArea component.
22
22
  */
23
23
  title?: string;
24
+ /**
25
+ * Defines the built-in [minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength) property of the text inputs.
26
+ * * 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.
27
+ */
28
+ minlength?: string;
29
+ /**
30
+ * Defines the built-in [maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength) property of the text inputs.
31
+ * * 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.
32
+ */
33
+ maxlength?: string;
24
34
  /**
25
35
  * Specifies if the textarea element will resize its height automatically ([see example]({% slug sizing_textarea %})).
26
36
  * Defaults to `false`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-inputs",
3
3
  "description": "Kendo UI for Vue Input package",
4
- "version": "3.7.4-dev.202301120847",
4
+ "version": "3.7.4-dev.202301131104",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@progress/kendo-inputs-common": "^3.1.0",
49
- "@progress/kendo-vue-buttons": "3.7.4-dev.202301120847",
50
- "@progress/kendo-vue-common": "3.7.4-dev.202301120847",
51
- "@progress/kendo-vue-dialogs": "3.7.4-dev.202301120847",
52
- "@progress/kendo-vue-labels": "3.7.4-dev.202301120847",
53
- "@progress/kendo-vue-popup": "3.7.4-dev.202301120847"
49
+ "@progress/kendo-vue-buttons": "3.7.4-dev.202301131104",
50
+ "@progress/kendo-vue-common": "3.7.4-dev.202301131104",
51
+ "@progress/kendo-vue-dialogs": "3.7.4-dev.202301131104",
52
+ "@progress/kendo-vue-labels": "3.7.4-dev.202301131104",
53
+ "@progress/kendo-vue-popup": "3.7.4-dev.202301131104"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@progress/kendo-data-query": "^1.5.5",
@@ -59,13 +59,13 @@
59
59
  "@progress/kendo-file-saver": "^1.1.1",
60
60
  "@progress/kendo-licensing": "^1.3.0",
61
61
  "@progress/kendo-svg-icons": "^1.0.0",
62
- "@progress/kendo-vue-buttons": "3.7.4-dev.202301120847",
63
- "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301120847",
64
- "@progress/kendo-vue-form": "3.7.4-dev.202301120847",
65
- "@progress/kendo-vue-intl": "3.7.4-dev.202301120847",
66
- "@progress/kendo-vue-labels": "3.7.4-dev.202301120847",
67
- "@progress/kendo-vue-tooltip": "3.7.4-dev.202301120847",
68
- "@progress/kendo-vue-upload": "3.7.4-dev.202301120847",
62
+ "@progress/kendo-vue-buttons": "3.7.4-dev.202301131104",
63
+ "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301131104",
64
+ "@progress/kendo-vue-form": "3.7.4-dev.202301131104",
65
+ "@progress/kendo-vue-intl": "3.7.4-dev.202301131104",
66
+ "@progress/kendo-vue-labels": "3.7.4-dev.202301131104",
67
+ "@progress/kendo-vue-tooltip": "3.7.4-dev.202301131104",
68
+ "@progress/kendo-vue-upload": "3.7.4-dev.202301131104",
69
69
  "cldr-core": "^41.0.0",
70
70
  "cldr-dates-full": "^41.0.0",
71
71
  "cldr-numbers-full": "^41.0.0"