@everymatrix/general-input 1.24.7 → 1.26.0

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 (29) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +12153 -11623
  2. package/dist/cjs/general-input.cjs.entry.js +1 -1
  3. package/dist/cjs/{locale.utils-7665b010.js → locale.utils-c89b71df.js} +20 -1
  4. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +1 -1
  5. package/dist/collection/utils/locale.utils.js +20 -1
  6. package/dist/components/active-mixin.js +6 -6
  7. package/dist/components/checkbox-group-input2.js +260 -307
  8. package/dist/components/date-input2.js +3461 -2218
  9. package/dist/components/field-mixin.js +2188 -2474
  10. package/dist/components/input-field-shared-styles.js +308 -211
  11. package/dist/components/password-input2.js +119 -72
  12. package/dist/components/tooltipIcon.js +20 -1
  13. package/dist/components/vaadin-button.js +102 -73
  14. package/dist/components/vaadin-combo-box.js +988 -805
  15. package/dist/components/virtual-keyboard-controller.js +1114 -1771
  16. package/dist/esm/checkbox-group-input_10.entry.js +12153 -11623
  17. package/dist/esm/general-input.entry.js +1 -1
  18. package/dist/esm/{locale.utils-95ea2605.js → locale.utils-add66cb9.js} +20 -1
  19. package/dist/esm/toggle-checkbox-input.entry.js +1 -1
  20. package/dist/general-input/general-input.esm.js +1 -1
  21. package/dist/general-input/{p-f6132f1d.js → p-62964bc6.js} +1 -1
  22. package/dist/general-input/{p-451a192f.entry.js → p-d601d76d.entry.js} +1 -1
  23. package/dist/general-input/{p-9dc0b14f.entry.js → p-df6a6dfc.entry.js} +1 -1
  24. package/dist/general-input/p-e322bf39.entry.js +3646 -0
  25. package/dist/types/utils/locale.utils.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/dist/components/pattern-mixin.js +0 -85
  28. package/dist/general-input/p-a1b02a18.entry.js +0 -3581
  29. /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -0
@@ -7,6 +7,7 @@ interface TranslationValues {
7
7
  interface Translations {
8
8
  en: Translation;
9
9
  hu: Translation;
10
+ hr: Translation;
10
11
  }
11
12
  export declare const TRANSLATIONS: Translations;
12
13
  export declare const translate: (key: string, customLang?: any, values?: TranslationValues) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-input",
3
- "version": "1.24.7",
3
+ "version": "1.26.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,85 +0,0 @@
1
- import { y as Debouncer, z as timeOut } from './field-mixin.js';
2
- import { I as InputConstraintsMixin } from './input-field-shared-styles.js';
3
-
4
- /**
5
- * @license
6
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
7
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8
- */
9
-
10
- /**
11
- * A mixin to provide `pattern` and `preventInvalidInput` properties.
12
- *
13
- * @polymerMixin
14
- * @mixes InputConstraintsMixin
15
- */
16
- const PatternMixin = (superclass) =>
17
- class PatternMixinClass extends InputConstraintsMixin(superclass) {
18
- static get properties() {
19
- return {
20
- /**
21
- * A regular expression that the value is checked against.
22
- * The pattern must match the entire value, not just some subset.
23
- */
24
- pattern: {
25
- type: String,
26
- },
27
-
28
- /**
29
- * When set to true, user is prevented from typing a value that
30
- * conflicts with the given `pattern`.
31
- * @attr {boolean} prevent-invalid-input
32
- * @deprecated Please use `allowedCharPattern` instead.
33
- */
34
- preventInvalidInput: {
35
- type: Boolean,
36
- observer: '_preventInvalidInputChanged',
37
- },
38
- };
39
- }
40
-
41
- static get delegateAttrs() {
42
- return [...super.delegateAttrs, 'pattern'];
43
- }
44
-
45
- static get constraints() {
46
- return [...super.constraints, 'pattern'];
47
- }
48
-
49
- /** @private */
50
- _checkInputValue() {
51
- if (this.preventInvalidInput) {
52
- const input = this.inputElement;
53
- if (input && input.value.length > 0 && !this.checkValidity()) {
54
- input.value = this.value || '';
55
- // Add input-prevented attribute for 200ms
56
- this.setAttribute('input-prevented', '');
57
- this._inputDebouncer = Debouncer.debounce(this._inputDebouncer, timeOut.after(200), () => {
58
- this.removeAttribute('input-prevented');
59
- });
60
- }
61
- }
62
- }
63
-
64
- /**
65
- * @param {Event} event
66
- * @protected
67
- * @override
68
- */
69
- _onInput(event) {
70
- this._checkInputValue();
71
-
72
- super._onInput(event);
73
- }
74
-
75
- /** @private */
76
- _preventInvalidInputChanged(preventInvalidInput) {
77
- if (preventInvalidInput) {
78
- console.warn(
79
- `WARNING: Since Vaadin 23.2, "preventInvalidInput" is deprecated. Please use "allowedCharPattern" instead.`,
80
- );
81
- }
82
- }
83
- };
84
-
85
- export { PatternMixin as P };