@everymatrix/general-registration 1.31.2 → 1.32.4

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 (79) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +4 -3
  3. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +0 -36991
  4. package/dist/cjs/general-registration.cjs.js +0 -19
  5. package/dist/cjs/index-0b9241d1.js +0 -1360
  6. package/dist/cjs/index.cjs.js +0 -18
  7. package/dist/cjs/loader.cjs.js +0 -21
  8. package/dist/collection/collection-manifest.json +0 -30
  9. package/dist/collection/components/general-registration/general-registration.css +0 -122
  10. package/dist/collection/components/general-registration/general-registration.js +0 -774
  11. package/dist/collection/index.js +0 -17
  12. package/dist/collection/utils/locale.utils.js +0 -108
  13. package/dist/collection/utils/utils.js +0 -3
  14. package/dist/components/active-mixin.js +0 -975
  15. package/dist/components/checkbox-group-input.js +0 -6
  16. package/dist/components/checkbox-group-input2.js +0 -1078
  17. package/dist/components/checkbox-input.js +0 -6
  18. package/dist/components/checkbox-input2.js +0 -129
  19. package/dist/components/date-input.js +0 -6
  20. package/dist/components/date-input2.js +0 -11556
  21. package/dist/components/email-input.js +0 -6
  22. package/dist/components/email-input2.js +0 -171
  23. package/dist/components/field-mixin.js +0 -12426
  24. package/dist/components/general-input.js +0 -6
  25. package/dist/components/general-input2.js +0 -341
  26. package/dist/components/general-registration.d.ts +0 -11
  27. package/dist/components/general-registration.js +0 -754
  28. package/dist/components/index.d.ts +0 -26
  29. package/dist/components/index.js +0 -18
  30. package/dist/components/input-field-shared-styles.js +0 -1211
  31. package/dist/components/number-input.js +0 -6
  32. package/dist/components/number-input2.js +0 -158
  33. package/dist/components/password-input.js +0 -6
  34. package/dist/components/password-input2.js +0 -1041
  35. package/dist/components/radio-input.js +0 -6
  36. package/dist/components/radio-input2.js +0 -114
  37. package/dist/components/select-input.js +0 -6
  38. package/dist/components/select-input2.js +0 -183
  39. package/dist/components/tel-input.js +0 -6
  40. package/dist/components/tel-input2.js +0 -197
  41. package/dist/components/text-input.js +0 -6
  42. package/dist/components/text-input2.js +0 -199
  43. package/dist/components/toggle-checkbox-input.js +0 -6
  44. package/dist/components/tooltipIcon.js +0 -127
  45. package/dist/components/vaadin-button.js +0 -490
  46. package/dist/components/vaadin-combo-box.js +0 -4512
  47. package/dist/components/virtual-keyboard-controller.js +0 -2001
  48. package/dist/esm/checkbox-group-input_13.entry.js +0 -36975
  49. package/dist/esm/general-registration.js +0 -17
  50. package/dist/esm/index-a42c182c.js +0 -1332
  51. package/dist/esm/index.js +0 -16
  52. package/dist/esm/loader.js +0 -17
  53. package/dist/esm/polyfills/core-js.js +0 -11
  54. package/dist/esm/polyfills/css-shim.js +0 -1
  55. package/dist/esm/polyfills/dom.js +0 -79
  56. package/dist/esm/polyfills/es5-html-element.js +0 -1
  57. package/dist/esm/polyfills/index.js +0 -34
  58. package/dist/esm/polyfills/system.js +0 -6
  59. package/dist/general-registration/general-registration.esm.js +0 -1
  60. package/dist/general-registration/index.esm.js +0 -1
  61. package/dist/general-registration/p-4ff02444.js +0 -1
  62. package/dist/general-registration/p-8eaa2cfb.entry.js +0 -3647
  63. package/dist/index.cjs.js +0 -1
  64. package/dist/index.js +0 -1
  65. package/dist/stencil.config.js +0 -22
  66. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +0 -87
  67. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +0 -2
  68. package/dist/types/components/general-registration/general-registration.d.ts +0 -93
  69. package/dist/types/components.d.ts +0 -111
  70. package/dist/types/index.d.ts +0 -1
  71. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  72. package/dist/types/utils/locale.utils.d.ts +0 -17
  73. package/dist/types/utils/utils.d.ts +0 -1
  74. package/loader/cdn.js +0 -3
  75. package/loader/index.cjs.js +0 -3
  76. package/loader/index.d.ts +0 -12
  77. package/loader/index.es2017.js +0 -3
  78. package/loader/index.js +0 -4
  79. package/loader/package.json +0 -10
@@ -1,6 +0,0 @@
1
- import { C as CheckboxInput$1, d as defineCustomElement$1 } from './checkbox-input2.js';
2
-
3
- const CheckboxInput = CheckboxInput$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { CheckboxInput, defineCustomElement };
@@ -1,129 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { t as translate, a as tooltipIconSvg } from './tooltipIcon.js';
3
-
4
- const checkboxInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:\"Roboto\";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}";
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
- * Default value for the input.
15
- */
16
- this.defaultValue = '';
17
- /**
18
- * Client custom styling via inline style
19
- */
20
- this.clientStyling = '';
21
- this.limitStylingAppends = false;
22
- this.showTooltip = false;
23
- this.value = '';
24
- this.setClientStyling = () => {
25
- let sheet = document.createElement('style');
26
- sheet.innerHTML = this.clientStyling;
27
- this.stylingContainer.prepend(sheet);
28
- };
29
- }
30
- validityChanged() {
31
- this.validityStateHandler({ valid: this.isValid, name: this.name });
32
- if (this.emitValue == true) {
33
- this.valueHandler({ name: this.name, value: this.value });
34
- }
35
- }
36
- validityStateHandler(inputStateEvent) {
37
- this.sendValidityState.emit(inputStateEvent);
38
- }
39
- emitValueHandler(newValue) {
40
- if (newValue == true && this.isValid) {
41
- this.valueHandler({ name: this.name, value: this.value });
42
- }
43
- }
44
- valueHandler(inputValueEvent) {
45
- this.sendInputValue.emit(inputValueEvent);
46
- }
47
- handleClickOutside(event) {
48
- if (event.composedPath()[0] === this.tooltipIconReference)
49
- return;
50
- if (event.composedPath()[0] !== this.tooltipReference)
51
- this.showTooltip = false;
52
- }
53
- componentDidRender() {
54
- // start custom styling area
55
- if (!this.limitStylingAppends && this.stylingContainer) {
56
- if (this.clientStyling)
57
- this.setClientStyling();
58
- this.limitStylingAppends = true;
59
- }
60
- // end custom styling area
61
- }
62
- componentDidLoad() {
63
- if (this.defaultValue) {
64
- this.value = this.defaultValue;
65
- this.valueHandler({ name: this.name, value: this.value });
66
- }
67
- }
68
- handleClick() {
69
- this.value = this.inputReference.checked.toString();
70
- this.errorMessage = this.setErrorMessage();
71
- this.isValid = this.setValidity();
72
- this.emitValueHandler(true);
73
- }
74
- setValidity() {
75
- return this.inputReference.validity.valid;
76
- }
77
- setErrorMessage() {
78
- if (this.inputReference.validity.valueMissing) {
79
- return translate('requiredError', this.language);
80
- }
81
- }
82
- renderLabel() {
83
- return (h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
84
- }
85
- renderTooltip() {
86
- if (this.showTooltip) {
87
- return (h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
88
- }
89
- return null;
90
- }
91
- render() {
92
- return h("div", { class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("input", { class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), h("small", { class: 'checkbox__error-message' }, this.errorMessage), h("div", { class: 'checkbox__wrapper--relative' }, this.tooltip &&
93
- h("img", { class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
94
- }
95
- static get watchers() { return {
96
- "isValid": ["validityChanged"],
97
- "emitValue": ["emitValueHandler"]
98
- }; }
99
- static get style() { return checkboxInputCss; }
100
- }, [1, "checkbox-input", {
101
- "name": [513],
102
- "displayName": [513, "display-name"],
103
- "defaultValue": [513, "default-value"],
104
- "autofilled": [516],
105
- "tooltip": [513],
106
- "validation": [16],
107
- "language": [513],
108
- "emitValue": [516, "emit-value"],
109
- "clientStyling": [513, "client-styling"],
110
- "errorMessage": [32],
111
- "isValid": [32],
112
- "limitStylingAppends": [32],
113
- "showTooltip": [32]
114
- }, [[4, "click", "handleClickOutside"]]]);
115
- function defineCustomElement() {
116
- if (typeof customElements === "undefined") {
117
- return;
118
- }
119
- const components = ["checkbox-input"];
120
- components.forEach(tagName => { switch (tagName) {
121
- case "checkbox-input":
122
- if (!customElements.get(tagName)) {
123
- customElements.define(tagName, CheckboxInput);
124
- }
125
- break;
126
- } });
127
- }
128
-
129
- export { CheckboxInput as C, defineCustomElement as d };
@@ -1,6 +0,0 @@
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 };