@everymatrix/general-input 1.31.1 → 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 (136) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +0 -36077
  4. package/dist/cjs/general-input.cjs.entry.js +0 -75
  5. package/dist/cjs/general-input.cjs.js +0 -19
  6. package/dist/cjs/index-132a0774.js +0 -1327
  7. package/dist/cjs/index.cjs.js +0 -18
  8. package/dist/cjs/loader.cjs.js +0 -21
  9. package/dist/cjs/locale.utils-cef1d3b6.js +0 -128
  10. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +0 -85
  11. package/dist/cjs/tooltipIcon-092a795f.js +0 -5
  12. package/dist/collection/collection-manifest.json +0 -23
  13. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +0 -82
  14. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +0 -366
  15. package/dist/collection/components/checkbox-input/checkbox-input.css +0 -68
  16. package/dist/collection/components/checkbox-input/checkbox-input.js +0 -324
  17. package/dist/collection/components/date-input/date-input.css +0 -101
  18. package/dist/collection/components/date-input/date-input.js +0 -396
  19. package/dist/collection/components/email-input/email-input.css +0 -95
  20. package/dist/collection/components/email-input/email-input.js +0 -403
  21. package/dist/collection/components/general-input/general-input.css +0 -4
  22. package/dist/collection/components/general-input/general-input.js +0 -373
  23. package/dist/collection/components/number-input/number-input.css +0 -102
  24. package/dist/collection/components/number-input/number-input.js +0 -368
  25. package/dist/collection/components/password-input/password-input.css +0 -182
  26. package/dist/collection/components/password-input/password-input.js +0 -527
  27. package/dist/collection/components/radio-input/radio-input.css +0 -43
  28. package/dist/collection/components/radio-input/radio-input.js +0 -297
  29. package/dist/collection/components/select-input/select-input.css +0 -122
  30. package/dist/collection/components/select-input/select-input.js +0 -429
  31. package/dist/collection/components/tel-input/tel-input.css +0 -145
  32. package/dist/collection/components/tel-input/tel-input.js +0 -440
  33. package/dist/collection/components/text-input/text-input.css +0 -98
  34. package/dist/collection/components/text-input/text-input.js +0 -448
  35. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +0 -82
  36. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +0 -324
  37. package/dist/collection/index.js +0 -17
  38. package/dist/collection/utils/locale.utils.js +0 -123
  39. package/dist/collection/utils/tooltipIcon.svg +0 -5
  40. package/dist/collection/utils/types.js +0 -1
  41. package/dist/collection/utils/utils.js +0 -5
  42. package/dist/components/active-mixin.js +0 -975
  43. package/dist/components/checkbox-group-input.d.ts +0 -11
  44. package/dist/components/checkbox-group-input.js +0 -6
  45. package/dist/components/checkbox-group-input2.js +0 -1078
  46. package/dist/components/checkbox-input.d.ts +0 -11
  47. package/dist/components/checkbox-input.js +0 -6
  48. package/dist/components/checkbox-input2.js +0 -129
  49. package/dist/components/date-input.d.ts +0 -11
  50. package/dist/components/date-input.js +0 -6
  51. package/dist/components/date-input2.js +0 -11556
  52. package/dist/components/email-input.d.ts +0 -11
  53. package/dist/components/email-input.js +0 -6
  54. package/dist/components/email-input2.js +0 -171
  55. package/dist/components/field-mixin.js +0 -12426
  56. package/dist/components/general-input.d.ts +0 -11
  57. package/dist/components/general-input.js +0 -6
  58. package/dist/components/general-input2.js +0 -341
  59. package/dist/components/index.d.ts +0 -26
  60. package/dist/components/index.js +0 -18
  61. package/dist/components/input-field-shared-styles.js +0 -1211
  62. package/dist/components/number-input.d.ts +0 -11
  63. package/dist/components/number-input.js +0 -6
  64. package/dist/components/number-input2.js +0 -158
  65. package/dist/components/password-input.d.ts +0 -11
  66. package/dist/components/password-input.js +0 -6
  67. package/dist/components/password-input2.js +0 -1041
  68. package/dist/components/radio-input.d.ts +0 -11
  69. package/dist/components/radio-input.js +0 -6
  70. package/dist/components/radio-input2.js +0 -114
  71. package/dist/components/select-input.d.ts +0 -11
  72. package/dist/components/select-input.js +0 -6
  73. package/dist/components/select-input2.js +0 -183
  74. package/dist/components/tel-input.d.ts +0 -11
  75. package/dist/components/tel-input.js +0 -6
  76. package/dist/components/tel-input2.js +0 -197
  77. package/dist/components/text-input.d.ts +0 -11
  78. package/dist/components/text-input.js +0 -6
  79. package/dist/components/text-input2.js +0 -199
  80. package/dist/components/toggle-checkbox-input.d.ts +0 -11
  81. package/dist/components/toggle-checkbox-input.js +0 -6
  82. package/dist/components/tooltipIcon.js +0 -127
  83. package/dist/components/vaadin-button.js +0 -490
  84. package/dist/components/vaadin-combo-box.js +0 -4512
  85. package/dist/components/virtual-keyboard-controller.js +0 -2001
  86. package/dist/esm/checkbox-group-input_10.entry.js +0 -36064
  87. package/dist/esm/general-input.entry.js +0 -71
  88. package/dist/esm/general-input.js +0 -17
  89. package/dist/esm/index-db76d5b5.js +0 -1299
  90. package/dist/esm/index.js +0 -16
  91. package/dist/esm/loader.js +0 -17
  92. package/dist/esm/locale.utils-de759721.js +0 -125
  93. package/dist/esm/polyfills/core-js.js +0 -11
  94. package/dist/esm/polyfills/css-shim.js +0 -1
  95. package/dist/esm/polyfills/dom.js +0 -79
  96. package/dist/esm/polyfills/es5-html-element.js +0 -1
  97. package/dist/esm/polyfills/index.js +0 -34
  98. package/dist/esm/polyfills/system.js +0 -6
  99. package/dist/esm/toggle-checkbox-input.entry.js +0 -81
  100. package/dist/esm/tooltipIcon-99c1c7b7.js +0 -3
  101. package/dist/general-input/general-input.esm.js +0 -1
  102. package/dist/general-input/index.esm.js +0 -1
  103. package/dist/general-input/p-10efdf3f.js +0 -1
  104. package/dist/general-input/p-613c3e00.entry.js +0 -1
  105. package/dist/general-input/p-660bcdd1.entry.js +0 -1
  106. package/dist/general-input/p-9b6b0396.entry.js +0 -3646
  107. package/dist/general-input/p-b408093e.js +0 -1
  108. package/dist/general-input/p-f4f4ccda.js +0 -1
  109. package/dist/index.cjs.js +0 -1
  110. package/dist/index.js +0 -1
  111. package/dist/stencil.config.js +0 -22
  112. package/dist/types/Users/sebastian.strulea/Documents/work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
  113. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +0 -74
  114. package/dist/types/components/checkbox-input/checkbox-input.d.ts +0 -65
  115. package/dist/types/components/date-input/date-input.d.ts +0 -84
  116. package/dist/types/components/email-input/email-input.d.ts +0 -80
  117. package/dist/types/components/general-input/general-input.d.ts +0 -75
  118. package/dist/types/components/number-input/number-input.d.ts +0 -74
  119. package/dist/types/components/password-input/password-input.d.ts +0 -91
  120. package/dist/types/components/radio-input/radio-input.d.ts +0 -59
  121. package/dist/types/components/select-input/select-input.d.ts +0 -83
  122. package/dist/types/components/tel-input/tel-input.d.ts +0 -89
  123. package/dist/types/components/text-input/text-input.d.ts +0 -84
  124. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +0 -67
  125. package/dist/types/components.d.ts +0 -1268
  126. package/dist/types/index.d.ts +0 -1
  127. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  128. package/dist/types/utils/locale.utils.d.ts +0 -17
  129. package/dist/types/utils/types.d.ts +0 -87
  130. package/dist/types/utils/utils.d.ts +0 -1
  131. package/loader/cdn.js +0 -3
  132. package/loader/index.cjs.js +0 -3
  133. package/loader/index.d.ts +0 -12
  134. package/loader/index.es2017.js +0 -3
  135. package/loader/index.js +0 -4
  136. package/loader/package.json +0 -10
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface CheckboxInput extends Components.CheckboxInput, HTMLElement {}
4
- export const CheckboxInput: {
5
- prototype: CheckboxInput;
6
- new (): CheckboxInput;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -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,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface DateInput extends Components.DateInput, HTMLElement {}
4
- export const DateInput: {
5
- prototype: DateInput;
6
- new (): DateInput;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -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 };