@everymatrix/general-registration 1.10.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 (68) hide show
  1. package/dist/cjs/checkbox-input_11.cjs.entry.js +1165 -0
  2. package/dist/cjs/general-registration.cjs.js +19 -0
  3. package/dist/cjs/index-c04f4a2a.js +1264 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +21 -0
  6. package/dist/collection/collection-manifest.json +28 -0
  7. package/dist/collection/components/general-registration/general-registration.css +45 -0
  8. package/dist/collection/components/general-registration/general-registration.js +529 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/utils/utils.js +3 -0
  11. package/dist/components/checkbox-input.js +6 -0
  12. package/dist/components/checkbox-input2.js +78 -0
  13. package/dist/components/date-input.js +6 -0
  14. package/dist/components/date-input2.js +90 -0
  15. package/dist/components/email-input.js +6 -0
  16. package/dist/components/email-input2.js +108 -0
  17. package/dist/components/general-input.js +6 -0
  18. package/dist/components/general-input2.js +120 -0
  19. package/dist/components/general-registration.d.ts +11 -0
  20. package/dist/components/general-registration.js +530 -0
  21. package/dist/components/index.d.ts +26 -0
  22. package/dist/components/index.js +1 -0
  23. package/dist/components/locale.utils.js +29 -0
  24. package/dist/components/number-input.js +6 -0
  25. package/dist/components/number-input2.js +96 -0
  26. package/dist/components/password-input.js +6 -0
  27. package/dist/components/password-input2.js +93 -0
  28. package/dist/components/radio-input.js +6 -0
  29. package/dist/components/radio-input2.js +89 -0
  30. package/dist/components/select-input.js +6 -0
  31. package/dist/components/select-input2.js +127 -0
  32. package/dist/components/tel-input.js +6 -0
  33. package/dist/components/tel-input2.js +111 -0
  34. package/dist/components/text-input.js +6 -0
  35. package/dist/components/text-input2.js +112 -0
  36. package/dist/esm/checkbox-input_11.entry.js +1151 -0
  37. package/dist/esm/general-registration.js +17 -0
  38. package/dist/esm/index-79f297c1.js +1238 -0
  39. package/dist/esm/index.js +1 -0
  40. package/dist/esm/loader.js +17 -0
  41. package/dist/esm/polyfills/core-js.js +11 -0
  42. package/dist/esm/polyfills/css-shim.js +1 -0
  43. package/dist/esm/polyfills/dom.js +79 -0
  44. package/dist/esm/polyfills/es5-html-element.js +1 -0
  45. package/dist/esm/polyfills/index.js +34 -0
  46. package/dist/esm/polyfills/system.js +6 -0
  47. package/dist/general-registration/general-registration.esm.js +1 -0
  48. package/dist/general-registration/index.esm.js +0 -0
  49. package/dist/general-registration/p-0e7175cd.js +1 -0
  50. package/dist/general-registration/p-cadaffbe.entry.js +1 -0
  51. package/dist/index.cjs.js +1 -0
  52. package/dist/index.js +1 -0
  53. package/dist/stencil.config.js +22 -0
  54. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/locale.utils.d.ts +5 -0
  55. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +55 -0
  56. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +2 -0
  57. package/dist/types/components/general-registration/general-registration.d.ts +67 -0
  58. package/dist/types/components.d.ts +77 -0
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  61. package/dist/types/utils/utils.d.ts +1 -0
  62. package/loader/cdn.js +3 -0
  63. package/loader/index.cjs.js +3 -0
  64. package/loader/index.d.ts +12 -0
  65. package/loader/index.es2017.js +3 -0
  66. package/loader/index.js +4 -0
  67. package/loader/package.json +10 -0
  68. package/package.json +22 -0
@@ -0,0 +1,78 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { t as translate } from './locale.utils.js';
3
+
4
+ const checkboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:red}";
5
+
6
+ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.sendValidityState = createEvent(this, "sendValidityState", 7);
12
+ this.sendInputValue = createEvent(this, "sendInputValue", 7);
13
+ }
14
+ validityChanged() {
15
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
16
+ if (this.emitValue == true) {
17
+ this.valueHandler({ name: this.name, value: this.value });
18
+ }
19
+ }
20
+ validityStateHandler(inputStateEvent) {
21
+ this.sendValidityState.emit(inputStateEvent);
22
+ }
23
+ emitValueHandler(newValue) {
24
+ if (newValue == true && this.isValid) {
25
+ this.valueHandler({ name: this.name, value: this.value });
26
+ }
27
+ }
28
+ valueHandler(inputValueEvent) {
29
+ this.sendInputValue.emit(inputValueEvent);
30
+ }
31
+ connectedCallback() {
32
+ }
33
+ handleClick() {
34
+ this.value = this.inputReference.checked;
35
+ this.errorMessage = this.setErrorMessage();
36
+ this.isValid = this.setValidity();
37
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
38
+ }
39
+ setValidity() {
40
+ return this.inputReference.validity.valid;
41
+ }
42
+ setErrorMessage() {
43
+ if (this.inputReference.validity.valueMissing) {
44
+ return translate('requiredError', this.language);
45
+ }
46
+ }
47
+ render() {
48
+ return h("div", { class: 'checkbox__wrapper' }, h("input", { type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, required: this.validation.mandatory, value: 'jdjdj', onClick: () => this.handleClick() }), h("label", { htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h("small", { class: 'checkbox__error-message' }, this.errorMessage));
49
+ }
50
+ static get watchers() { return {
51
+ "isValid": ["validityChanged"],
52
+ "emitValue": ["emitValueHandler"]
53
+ }; }
54
+ static get style() { return checkboxInputCss; }
55
+ }, [1, "checkbox-input", {
56
+ "name": [1],
57
+ "displayName": [1, "display-name"],
58
+ "validation": [16],
59
+ "language": [1],
60
+ "emitValue": [4, "emit-value"],
61
+ "errorMessage": [32],
62
+ "isValid": [32]
63
+ }]);
64
+ function defineCustomElement() {
65
+ if (typeof customElements === "undefined") {
66
+ return;
67
+ }
68
+ const components = ["checkbox-input"];
69
+ components.forEach(tagName => { switch (tagName) {
70
+ case "checkbox-input":
71
+ if (!customElements.get(tagName)) {
72
+ customElements.define(tagName, CheckboxInput);
73
+ }
74
+ break;
75
+ } });
76
+ }
77
+
78
+ export { CheckboxInput as C, defineCustomElement as d };
@@ -0,0 +1,6 @@
1
+ import { D as DateInput$1, d as defineCustomElement$1 } from './date-input2.js';
2
+
3
+ const DateInput = DateInput$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { DateInput, defineCustomElement };
@@ -0,0 +1,90 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { t as translate } from './locale.utils.js';
3
+
4
+ const dateInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date__wrapper{position:relative;display:flex;flex-direction:column-reverse;padding-top:10px}.date__label{color:#474747;font-size:16px;position:absolute;bottom:15px;left:5px;transform:translateY(-25px);transition:all 0.3s cubic-bezier(0.5, 0, 0.5, 1)}.date__label--required::after{content:\"*\";margin-left:5px;color:#666666}.date__input{width:inherit;padding:15px 6px;position:relative;border:none;border-bottom:3px solid #666666;background-color:transparent;color:#666666;font-size:16px;font-family:inherit}.date__input:focus{outline:none;box-shadow:0 5px 5px rgba(16, 15, 15, 0.1)}.date__input::placeholder{color:#666666}.date__input--invalid{border-bottom:3px solid #cc0000}.date__input:placeholder-shown+.date__label{opacity:0;visibility:hidden;transform:translateY(0)}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000}";
5
+
6
+ const DateInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.sendValidityState = createEvent(this, "sendValidityState", 7);
12
+ this.sendInputValue = createEvent(this, "sendInputValue", 7);
13
+ }
14
+ checkValidityHandler(newValue) {
15
+ if (newValue == true) {
16
+ this.isValid = this.setValidity();
17
+ this.errorMessage = this.setErrorMessage();
18
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
19
+ }
20
+ }
21
+ validityChanged() {
22
+ if (this.checkValidity == true) {
23
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
24
+ }
25
+ if (this.emitValue == true) {
26
+ this.valueHandler({ name: this.name, value: this.value });
27
+ }
28
+ }
29
+ validityStateHandler(inputStateEvent) {
30
+ this.sendValidityState.emit(inputStateEvent);
31
+ }
32
+ emitValueHandler(newValue) {
33
+ if (newValue == true && this.isValid) {
34
+ this.valueHandler({ name: this.name, value: this.value });
35
+ }
36
+ }
37
+ valueHandler(inputValueEvent) {
38
+ this.sendInputValue.emit(inputValueEvent);
39
+ }
40
+ handleInput(event) {
41
+ this.value = event.target.value;
42
+ this.errorMessage = this.setErrorMessage();
43
+ this.isValid = this.setValidity();
44
+ }
45
+ setValidity() {
46
+ return this.inputReference.validity.valid;
47
+ }
48
+ setErrorMessage() {
49
+ if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
50
+ return translate('dateError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
51
+ }
52
+ if (this.inputReference.validity.valueMissing) {
53
+ return translate('requiredError', this.language);
54
+ }
55
+ }
56
+ render() {
57
+ return h("div", { class: 'date__wrapper' }, h("input", { id: `${this.name}__input`, type: 'date', class: `date__input`, value: this.defaultValue, placeholder: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, ref: (el) => this.inputReference = el, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: (e) => this.handleInput(e) }), h("label", { class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h("small", { class: 'date__error-message' }, this.errorMessage));
58
+ }
59
+ static get watchers() { return {
60
+ "checkValidity": ["checkValidityHandler"],
61
+ "isValid": ["validityChanged"],
62
+ "emitValue": ["emitValueHandler"]
63
+ }; }
64
+ static get style() { return dateInputCss; }
65
+ }, [1, "date-input", {
66
+ "name": [1],
67
+ "displayName": [1, "display-name"],
68
+ "validation": [16],
69
+ "defaultValue": [1, "default-value"],
70
+ "language": [1],
71
+ "checkValidity": [4, "check-validity"],
72
+ "emitValue": [4, "emit-value"],
73
+ "errorMessage": [32],
74
+ "isValid": [32]
75
+ }]);
76
+ function defineCustomElement() {
77
+ if (typeof customElements === "undefined") {
78
+ return;
79
+ }
80
+ const components = ["date-input"];
81
+ components.forEach(tagName => { switch (tagName) {
82
+ case "date-input":
83
+ if (!customElements.get(tagName)) {
84
+ customElements.define(tagName, DateInput);
85
+ }
86
+ break;
87
+ } });
88
+ }
89
+
90
+ export { DateInput as D, defineCustomElement as d };
@@ -0,0 +1,6 @@
1
+ import { E as EmailInput$1, d as defineCustomElement$1 } from './email-input2.js';
2
+
3
+ const EmailInput = EmailInput$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { EmailInput, defineCustomElement };
@@ -0,0 +1,108 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { t as translate } from './locale.utils.js';
3
+
4
+ const emailInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email__wrapper{position:relative;display:flex;flex-direction:column-reverse;padding-top:10px}.email__label{color:#474747;font-size:16px;position:absolute;bottom:15px;left:5px;transform:translateY(-25px);transition:all 0.3s cubic-bezier(0.5, 0, 0.5, 1)}.email__label--required::after{content:\"*\";margin-left:5px;color:#666666}.email__input{width:inherit;padding:15px 6px;position:relative;border:none;border-bottom:3px solid #666666;background-color:transparent;color:#666666;font-size:16px;font-family:inherit}.email__input:focus{outline:none;box-shadow:0 5px 5px rgba(16, 15, 15, 0.1)}.email__input::placeholder{color:#666666}.email__input--invalid{border-bottom:3px solid #cc0000}.email__input:placeholder-shown+.email__label{opacity:0;visibility:hidden;transform:translateY(0)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000}";
5
+
6
+ const EmailInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.sendValidityState = createEvent(this, "sendValidityState", 7);
12
+ this.sendInputValue = createEvent(this, "sendInputValue", 7);
13
+ this.validationPattern = '';
14
+ }
15
+ checkValidityHandler(newValue) {
16
+ if (newValue == true) {
17
+ this.isValid = this.setValidity();
18
+ this.errorMessage = this.setErrorMessage();
19
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
20
+ }
21
+ }
22
+ validityChanged() {
23
+ if (this.checkValidity == true) {
24
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
25
+ }
26
+ if (this.emitValue == true) {
27
+ this.valueHandler({ name: this.name, value: this.value });
28
+ }
29
+ }
30
+ validityStateHandler(inputStateEvent) {
31
+ this.sendValidityState.emit(inputStateEvent);
32
+ }
33
+ emitValueHandler(newValue) {
34
+ if (newValue == true && this.isValid) {
35
+ this.valueHandler({ name: this.name, value: this.value });
36
+ }
37
+ }
38
+ valueHandler(inputValueEvent) {
39
+ this.sendInputValue.emit(inputValueEvent);
40
+ }
41
+ connectedCallback() {
42
+ this.validationPattern = this.setPattern();
43
+ }
44
+ handleInput(event) {
45
+ this.value = event.target.value;
46
+ if (this.debounceTime) {
47
+ clearTimeout(this.debounceTime);
48
+ }
49
+ this.debounceTime = setTimeout(() => {
50
+ this.errorMessage = this.setErrorMessage();
51
+ this.isValid = this.setValidity();
52
+ }, 500);
53
+ }
54
+ setValidity() {
55
+ return this.inputReference.validity.valid;
56
+ }
57
+ setPattern() {
58
+ var _a;
59
+ if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
60
+ return this.validation.custom.find(customValidation => customValidation.rule === 'regex').pattern;
61
+ }
62
+ }
63
+ setErrorMessage() {
64
+ if (this.inputReference.validity.patternMismatch) {
65
+ return this.validation.custom.find(customValidation => customValidation.rule === 'regex').errorMessage;
66
+ }
67
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
68
+ return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
69
+ }
70
+ if (this.inputReference.validity.valueMissing) {
71
+ return translate('requiredError', this.language);
72
+ }
73
+ }
74
+ render() {
75
+ 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));
76
+ }
77
+ static get watchers() { return {
78
+ "checkValidity": ["checkValidityHandler"],
79
+ "isValid": ["validityChanged"],
80
+ "emitValue": ["emitValueHandler"]
81
+ }; }
82
+ static get style() { return emailInputCss; }
83
+ }, [1, "email-input", {
84
+ "name": [1],
85
+ "displayName": [1, "display-name"],
86
+ "validation": [16],
87
+ "defaultValue": [1, "default-value"],
88
+ "language": [1],
89
+ "emitValue": [4, "emit-value"],
90
+ "checkValidity": [4, "check-validity"],
91
+ "errorMessage": [32],
92
+ "isValid": [32]
93
+ }]);
94
+ function defineCustomElement() {
95
+ if (typeof customElements === "undefined") {
96
+ return;
97
+ }
98
+ const components = ["email-input"];
99
+ components.forEach(tagName => { switch (tagName) {
100
+ case "email-input":
101
+ if (!customElements.get(tagName)) {
102
+ customElements.define(tagName, EmailInput);
103
+ }
104
+ break;
105
+ } });
106
+ }
107
+
108
+ export { EmailInput as E, defineCustomElement as d };
@@ -0,0 +1,6 @@
1
+ import { G as GeneralInput$1, d as defineCustomElement$1 } from './general-input2.js';
2
+
3
+ const GeneralInput = GeneralInput$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { GeneralInput, defineCustomElement };
@@ -0,0 +1,120 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$9 } from './checkbox-input2.js';
3
+ import { d as defineCustomElement$8 } from './date-input2.js';
4
+ import { d as defineCustomElement$7 } from './email-input2.js';
5
+ import { d as defineCustomElement$6 } from './number-input2.js';
6
+ import { d as defineCustomElement$5 } from './password-input2.js';
7
+ import { d as defineCustomElement$4 } from './radio-input2.js';
8
+ import { d as defineCustomElement$3 } from './select-input2.js';
9
+ import { d as defineCustomElement$2 } from './tel-input2.js';
10
+ import { d as defineCustomElement$1 } from './text-input2.js';
11
+
12
+ const generalInputCss = ":host{display:block}";
13
+
14
+ const GeneralInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
+ constructor() {
16
+ super();
17
+ this.__registerHost();
18
+ this.__attachShadow();
19
+ /**
20
+ * Type the general-input should take. Can take the default HTML input values.
21
+ */
22
+ this.type = 'text';
23
+ }
24
+ render() {
25
+ switch (this.type.toLowerCase()) {
26
+ 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
+ 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
+ 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
+ case 'checkbox':
33
+ return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language });
34
+ 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
+ case 'password':
37
+ return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language });
38
+ case 'radio':
39
+ return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language });
40
+ 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
+ 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
+ default:
45
+ // Nothing here
46
+ return h("p", null, "The ", this.type, " input type is not valid");
47
+ }
48
+ }
49
+ static get style() { return generalInputCss; }
50
+ }, [1, "general-input", {
51
+ "type": [1],
52
+ "name": [1],
53
+ "displayName": [1, "display-name"],
54
+ "action": [1],
55
+ "validation": [16],
56
+ "options": [8],
57
+ "language": [1],
58
+ "defaultValue": [8, "default-value"],
59
+ "emitValue": [4, "emit-value"]
60
+ }]);
61
+ function defineCustomElement() {
62
+ if (typeof customElements === "undefined") {
63
+ return;
64
+ }
65
+ const components = ["general-input", "checkbox-input", "date-input", "email-input", "number-input", "password-input", "radio-input", "select-input", "tel-input", "text-input"];
66
+ components.forEach(tagName => { switch (tagName) {
67
+ case "general-input":
68
+ if (!customElements.get(tagName)) {
69
+ customElements.define(tagName, GeneralInput);
70
+ }
71
+ break;
72
+ case "checkbox-input":
73
+ if (!customElements.get(tagName)) {
74
+ defineCustomElement$9();
75
+ }
76
+ break;
77
+ case "date-input":
78
+ if (!customElements.get(tagName)) {
79
+ defineCustomElement$8();
80
+ }
81
+ break;
82
+ case "email-input":
83
+ if (!customElements.get(tagName)) {
84
+ defineCustomElement$7();
85
+ }
86
+ break;
87
+ case "number-input":
88
+ if (!customElements.get(tagName)) {
89
+ defineCustomElement$6();
90
+ }
91
+ break;
92
+ case "password-input":
93
+ if (!customElements.get(tagName)) {
94
+ defineCustomElement$5();
95
+ }
96
+ break;
97
+ case "radio-input":
98
+ if (!customElements.get(tagName)) {
99
+ defineCustomElement$4();
100
+ }
101
+ break;
102
+ case "select-input":
103
+ if (!customElements.get(tagName)) {
104
+ defineCustomElement$3();
105
+ }
106
+ break;
107
+ case "tel-input":
108
+ if (!customElements.get(tagName)) {
109
+ defineCustomElement$2();
110
+ }
111
+ break;
112
+ case "text-input":
113
+ if (!customElements.get(tagName)) {
114
+ defineCustomElement$1();
115
+ }
116
+ break;
117
+ } });
118
+ }
119
+
120
+ export { GeneralInput as G, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface GeneralRegistration extends Components.GeneralRegistration, HTMLElement {}
4
+ export const GeneralRegistration: {
5
+ prototype: GeneralRegistration;
6
+ new (): GeneralRegistration;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;