@everymatrix/general-registration 1.10.2 → 1.10.3

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 (33) hide show
  1. package/dist/cjs/checkbox-input_11.cjs.entry.js +28191 -719
  2. package/dist/cjs/general-registration.cjs.js +2 -2
  3. package/dist/cjs/{index-c04f4a2a.js → index-9a07d1e9.js} +5 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/components/general-registration/general-registration.js +283 -214
  6. package/dist/components/checkbox-input2.js +9 -5
  7. package/dist/components/date-input2.js +6490 -7
  8. package/dist/components/email-input2.js +2 -1
  9. package/dist/components/general-input2.js +11 -9
  10. package/dist/components/general-registration.js +282 -214
  11. package/dist/components/locale.utils.js +2 -1
  12. package/dist/components/number-input2.js +2 -1
  13. package/dist/components/password-input2.js +8 -1
  14. package/dist/components/select-input2.js +13 -4
  15. package/dist/components/tel-input2.js +30 -2
  16. package/dist/components/text-input2.js +4 -4
  17. package/dist/components/vaadin-combo-box.js +4423 -0
  18. package/dist/components/virtual-keyboard-controller.js +16466 -0
  19. package/dist/esm/checkbox-input_11.entry.js +28191 -719
  20. package/dist/esm/general-registration.js +2 -2
  21. package/dist/esm/{index-79f297c1.js → index-0505440f.js} +5 -1
  22. package/dist/esm/loader.js +2 -2
  23. package/dist/general-registration/general-registration.esm.js +1 -1
  24. package/dist/general-registration/p-1a88a312.js +1 -0
  25. package/dist/general-registration/p-7c69629f.entry.js +3164 -0
  26. package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work/stencil}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +8 -0
  27. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +2 -0
  28. package/dist/types/components/general-registration/general-registration.d.ts +265 -7
  29. package/package.json +7 -5
  30. package/dist/general-registration/p-0e7175cd.js +0 -1
  31. package/dist/general-registration/p-d92411a2.entry.js +0 -1
  32. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +0 -2
  33. /package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work/stencil}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/locale.utils.d.ts +0 -0
@@ -60,7 +60,7 @@ const EmailInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
60
60
  }
61
61
  }
62
62
  render() {
63
- return h("div", { class: 'email__wrapper' }, h("input", { id: `${this.name}__input`, type: 'email', class: `email__input`, value: this.defaultValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: (e) => this.handleInput(e) }), h("label", { class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("small", { class: 'email__error-message' }, this.errorMessage));
63
+ return h("div", { class: 'email__wrapper' }, h("input", { id: `${this.name}__input`, type: 'email', class: `email__input`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onBlur: (e) => this.handleInput(e) }), h("label", { class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("small", { class: 'email__error-message' }, this.errorMessage));
64
64
  }
65
65
  static get watchers() { return {
66
66
  "isValid": ["validityChanged"],
@@ -72,6 +72,7 @@ const EmailInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
72
72
  "displayName": [1, "display-name"],
73
73
  "validation": [16],
74
74
  "defaultValue": [1, "default-value"],
75
+ "autofilled": [4],
75
76
  "language": [1],
76
77
  "emitValue": [4, "emit-value"],
77
78
  "errorMessage": [32],
@@ -1,6 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$9 } from './checkbox-input2.js';
2
+ import './virtual-keyboard-controller.js';
3
3
  import { d as defineCustomElement$8 } from './date-input2.js';
4
+ import { d as defineCustomElement$9 } from './checkbox-input2.js';
4
5
  import { d as defineCustomElement$7 } from './email-input2.js';
5
6
  import { d as defineCustomElement$6 } from './number-input2.js';
6
7
  import { d as defineCustomElement$5 } from './password-input2.js';
@@ -24,23 +25,23 @@ const GeneralInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
24
25
  render() {
25
26
  switch (this.type.toLowerCase()) {
26
27
  case 'text':
27
- return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language });
28
+ return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
28
29
  case 'email':
29
- return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language });
30
+ return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
30
31
  case 'number':
31
- return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language });
32
+ return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
32
33
  case 'checkbox':
33
- return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language });
34
+ return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language });
34
35
  case 'datetime':
35
- return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language });
36
+ return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
36
37
  case 'password':
37
- return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language });
38
+ return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language });
38
39
  case 'radio':
39
40
  return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language });
40
41
  case 'tel':
41
- return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language });
42
+ return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled });
42
43
  case 'dropdown':
43
- return h("select-input", { name: this.name, action: this.action, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language });
44
+ return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language });
44
45
  default:
45
46
  // Nothing here
46
47
  return h("p", null, "The ", this.type, " input type is not valid");
@@ -55,6 +56,7 @@ const GeneralInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
55
56
  "validation": [16],
56
57
  "options": [8],
57
58
  "language": [1],
59
+ "autofilled": [4],
58
60
  "defaultValue": [8, "default-value"],
59
61
  "emitValue": [4, "emit-value"]
60
62
  }]);