@everymatrix/general-input 0.0.1

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 (121) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +34870 -0
  2. package/dist/cjs/general-input.cjs.entry.js +51 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-1768513d.js +1286 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/collection/collection-manifest.json +22 -0
  8. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +62 -0
  9. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +344 -0
  10. package/dist/collection/components/checkbox-input/checkbox-input.css +62 -0
  11. package/dist/collection/components/checkbox-input/checkbox-input.js +322 -0
  12. package/dist/collection/components/date-input/date-input.css +85 -0
  13. package/dist/collection/components/date-input/date-input.js +341 -0
  14. package/dist/collection/components/email-input/email-input.css +83 -0
  15. package/dist/collection/components/email-input/email-input.js +382 -0
  16. package/dist/collection/components/general-input/general-input.css +3 -0
  17. package/dist/collection/components/general-input/general-input.js +296 -0
  18. package/dist/collection/components/number-input/number-input.css +90 -0
  19. package/dist/collection/components/number-input/number-input.js +349 -0
  20. package/dist/collection/components/password-input/password-input.css +86 -0
  21. package/dist/collection/components/password-input/password-input.js +395 -0
  22. package/dist/collection/components/radio-input/radio-input.css +43 -0
  23. package/dist/collection/components/radio-input/radio-input.js +298 -0
  24. package/dist/collection/components/select-input/select-input.css +93 -0
  25. package/dist/collection/components/select-input/select-input.js +412 -0
  26. package/dist/collection/components/tel-input/tel-input.css +116 -0
  27. package/dist/collection/components/tel-input/tel-input.js +421 -0
  28. package/dist/collection/components/text-input/text-input.css +83 -0
  29. package/dist/collection/components/text-input/text-input.js +406 -0
  30. package/dist/collection/index.js +1 -0
  31. package/dist/collection/utils/locale.utils.js +26 -0
  32. package/dist/collection/utils/tooltipIcon.svg +5 -0
  33. package/dist/collection/utils/types.js +1 -0
  34. package/dist/collection/utils/utils.js +5 -0
  35. package/dist/components/active-mixin.js +975 -0
  36. package/dist/components/checkbox-group-input.d.ts +11 -0
  37. package/dist/components/checkbox-group-input.js +6 -0
  38. package/dist/components/checkbox-group-input2.js +5793 -0
  39. package/dist/components/checkbox-input.d.ts +11 -0
  40. package/dist/components/checkbox-input.js +6 -0
  41. package/dist/components/checkbox-input2.js +127 -0
  42. package/dist/components/date-input.d.ts +11 -0
  43. package/dist/components/date-input.js +6 -0
  44. package/dist/components/date-input2.js +5182 -0
  45. package/dist/components/email-input.d.ts +11 -0
  46. package/dist/components/email-input.js +6 -0
  47. package/dist/components/email-input2.js +150 -0
  48. package/dist/components/field-mixin.js +12712 -0
  49. package/dist/components/general-input.d.ts +11 -0
  50. package/dist/components/general-input.js +140 -0
  51. package/dist/components/index.d.ts +26 -0
  52. package/dist/components/index.js +1 -0
  53. package/dist/components/input-field-shared-styles.js +1067 -0
  54. package/dist/components/number-input.d.ts +11 -0
  55. package/dist/components/number-input.js +6 -0
  56. package/dist/components/number-input2.js +139 -0
  57. package/dist/components/password-input.d.ts +11 -0
  58. package/dist/components/password-input.js +6 -0
  59. package/dist/components/password-input2.js +879 -0
  60. package/dist/components/pattern-mixin.js +85 -0
  61. package/dist/components/radio-input.d.ts +11 -0
  62. package/dist/components/radio-input.js +6 -0
  63. package/dist/components/radio-input2.js +115 -0
  64. package/dist/components/select-input.d.ts +11 -0
  65. package/dist/components/select-input.js +6 -0
  66. package/dist/components/select-input2.js +166 -0
  67. package/dist/components/tel-input.d.ts +11 -0
  68. package/dist/components/tel-input.js +6 -0
  69. package/dist/components/tel-input2.js +178 -0
  70. package/dist/components/text-input.d.ts +11 -0
  71. package/dist/components/text-input.js +6 -0
  72. package/dist/components/text-input2.js +157 -0
  73. package/dist/components/tooltipIcon.js +30 -0
  74. package/dist/components/vaadin-button.js +461 -0
  75. package/dist/components/vaadin-combo-box.js +4329 -0
  76. package/dist/components/virtual-keyboard-controller.js +2693 -0
  77. package/dist/esm/checkbox-group-input_10.entry.js +34857 -0
  78. package/dist/esm/general-input.entry.js +47 -0
  79. package/dist/esm/general-input.js +17 -0
  80. package/dist/esm/index-7e24a6f1.js +1259 -0
  81. package/dist/esm/index.js +1 -0
  82. package/dist/esm/loader.js +17 -0
  83. package/dist/esm/polyfills/core-js.js +11 -0
  84. package/dist/esm/polyfills/css-shim.js +1 -0
  85. package/dist/esm/polyfills/dom.js +79 -0
  86. package/dist/esm/polyfills/es5-html-element.js +1 -0
  87. package/dist/esm/polyfills/index.js +34 -0
  88. package/dist/esm/polyfills/system.js +6 -0
  89. package/dist/general-input/general-input.esm.js +1 -0
  90. package/dist/general-input/index.esm.js +0 -0
  91. package/dist/general-input/p-61d76ec3.entry.js +1 -0
  92. package/dist/general-input/p-a79eb0a3.entry.js +4413 -0
  93. package/dist/general-input/p-fb647820.js +1 -0
  94. package/dist/index.cjs.js +1 -0
  95. package/dist/index.js +1 -0
  96. package/dist/stencil.config.js +22 -0
  97. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  98. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +72 -0
  99. package/dist/types/components/checkbox-input/checkbox-input.d.ts +64 -0
  100. package/dist/types/components/date-input/date-input.d.ts +70 -0
  101. package/dist/types/components/email-input/email-input.d.ts +77 -0
  102. package/dist/types/components/general-input/general-input.d.ts +60 -0
  103. package/dist/types/components/number-input/number-input.d.ts +70 -0
  104. package/dist/types/components/password-input/password-input.d.ts +79 -0
  105. package/dist/types/components/radio-input/radio-input.d.ts +59 -0
  106. package/dist/types/components/select-input/select-input.d.ts +82 -0
  107. package/dist/types/components/tel-input/tel-input.d.ts +85 -0
  108. package/dist/types/components/text-input/text-input.d.ts +81 -0
  109. package/dist/types/components.d.ts +1140 -0
  110. package/dist/types/index.d.ts +1 -0
  111. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  112. package/dist/types/utils/locale.utils.d.ts +5 -0
  113. package/dist/types/utils/types.d.ts +76 -0
  114. package/dist/types/utils/utils.d.ts +1 -0
  115. package/loader/cdn.js +3 -0
  116. package/loader/index.cjs.js +3 -0
  117. package/loader/index.d.ts +12 -0
  118. package/loader/index.es2017.js +3 -0
  119. package/loader/index.js +4 -0
  120. package/loader/package.json +10 -0
  121. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-1768513d.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
16
+ return patchEsm().then(() => {
17
+ return index.bootstrapLazy([["checkbox-group-input_10.cjs",[[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[520],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]],["general-input.cjs",[[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"]}]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,22 @@
1
+ {
2
+ "entries": [
3
+ "./components/checkbox-group-input/checkbox-group-input.js",
4
+ "./components/checkbox-input/checkbox-input.js",
5
+ "./components/date-input/date-input.js",
6
+ "./components/email-input/email-input.js",
7
+ "./components/general-input/general-input.js",
8
+ "./components/number-input/number-input.js",
9
+ "./components/password-input/password-input.js",
10
+ "./components/radio-input/radio-input.js",
11
+ "./components/select-input/select-input.js",
12
+ "./components/tel-input/tel-input.js",
13
+ "./components/text-input/text-input.js"
14
+ ],
15
+ "compiler": {
16
+ "name": "@stencil/core",
17
+ "version": "2.15.2",
18
+ "typescriptVersion": "4.5.4"
19
+ },
20
+ "collections": [],
21
+ "bundles": []
22
+ }
@@ -0,0 +1,62 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .checkboxgroup {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ font-size: 15px;
13
+ }
14
+ .checkboxgroup__wrapper {
15
+ position: relative;
16
+ }
17
+ .checkboxgroup__wrapper--flex {
18
+ display: flex;
19
+ gap: 5px;
20
+ align-content: flex-start;
21
+ }
22
+ .checkboxgroup__wrapper--relative {
23
+ position: relative;
24
+ display: inline;
25
+ }
26
+ .checkboxgroup__label {
27
+ font-style: inherit;
28
+ font-family: inherit;
29
+ font-weight: 400;
30
+ font-size: 16px;
31
+ color: #2B2D3F;
32
+ line-height: 14px;
33
+ }
34
+ .checkboxgroup__label-text {
35
+ font-size: 16px;
36
+ }
37
+ .checkboxgroup__error-message {
38
+ position: absolute;
39
+ top: calc(100% + 5px);
40
+ left: 0;
41
+ color: #cc0000b3;
42
+ }
43
+ .checkboxgroup__tooltip-icon {
44
+ width: 16px;
45
+ height: auto;
46
+ }
47
+ .checkboxgroup__tooltip {
48
+ position: absolute;
49
+ top: 0;
50
+ right: 0;
51
+ background-color: #FFFFFF;
52
+ border: 1px solid #B0B0B0;
53
+ color: #2B2D3F;
54
+ padding: 10px;
55
+ border-radius: 5px;
56
+ opacity: 0;
57
+ transition: opacity 0.3s ease-in-out;
58
+ z-index: 10;
59
+ }
60
+ .checkboxgroup__tooltip.visible {
61
+ opacity: 1;
62
+ }
@@ -0,0 +1,344 @@
1
+ import { Component, h, Prop, State, Event, Listen, Element } from '@stencil/core';
2
+ import { translate } from '../../utils/locale.utils';
3
+ import tooltipIcon from '../../utils/tooltipIcon.svg';
4
+ import '@vaadin/checkbox';
5
+ import '@vaadin/checkbox-group';
6
+ export class CheckboxGroupInput {
7
+ constructor() {
8
+ /**
9
+ * Default value for the input.
10
+ */
11
+ this.defaultValue = '';
12
+ /**
13
+ * Options of the input.
14
+ */
15
+ this.options = [];
16
+ /**
17
+ * Client custom styling via inline style
18
+ */
19
+ this.clientStyling = '';
20
+ this.limitStylingAppends = false;
21
+ this.showTooltip = false;
22
+ this.selectedValues = [];
23
+ this.values = [];
24
+ this.setClientStyling = () => {
25
+ let sheet = document.createElement('style');
26
+ sheet.innerHTML = this.clientStyling;
27
+ this.stylingContainer.prepend(sheet);
28
+ };
29
+ }
30
+ validityStateHandler(inputStateEvent) {
31
+ this.sendValidityState.emit(inputStateEvent);
32
+ }
33
+ valueHandler(inputValueEvent) {
34
+ this.sendInputValue.emit(inputValueEvent);
35
+ }
36
+ handleClickOutside(event) {
37
+ if (event.composedPath()[0] === this.tooltipIconReference)
38
+ return;
39
+ if (event.composedPath()[0] !== this.tooltipReference)
40
+ this.showTooltip = false;
41
+ }
42
+ connectedCallback() {
43
+ console.log(this.validation);
44
+ }
45
+ componentDidRender() {
46
+ // start custom styling area
47
+ if (!this.limitStylingAppends && this.stylingContainer) {
48
+ if (this.clientStyling)
49
+ this.setClientStyling();
50
+ this.limitStylingAppends = true;
51
+ }
52
+ // end custom styling area
53
+ // if(this.defaultValue) {
54
+ // this.value = this.defaultValue;
55
+ // this.valueHandler({name: this.name, value: this.value});
56
+ // }
57
+ }
58
+ componentDidLoad() {
59
+ this.inputReference = this.element.shadowRoot.querySelector('input');
60
+ console.log(this.inputReference.required = this.validation.mandatory);
61
+ }
62
+ handleClick() {
63
+ // this.value = this.inputReference.checked.toString();
64
+ // this.errorMessage = this.setErrorMessage();
65
+ // this.isValid = this.setValidity();
66
+ // this.validityStateHandler({valid: this.isValid, name: this.name});
67
+ // this.emitValueHandler(true);
68
+ }
69
+ setValidity() {
70
+ return this.inputReference.validity.valid;
71
+ }
72
+ setErrorMessage() {
73
+ if (this.inputReference.validity.valueMissing) {
74
+ return translate('requiredError', this.language);
75
+ }
76
+ }
77
+ renderTooltip() {
78
+ if (this.showTooltip) {
79
+ return (h("div", { class: `checkboxgroup__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
80
+ }
81
+ return null;
82
+ }
83
+ handleParentCheckbox(e) {
84
+ // Logic for toggling the children checkboxes.
85
+ this.selectedValues = e.target.checked
86
+ ? this.options.map((checkbox) => String(checkbox.name))
87
+ : [];
88
+ console.log(this.inputReference.required);
89
+ }
90
+ render() {
91
+ return h("div", { class: 'checkboxgroup__wrapper', ref: el => this.stylingContainer = el },
92
+ h("div", { class: 'checkboxgroup__wrapper--flex' },
93
+ h("vaadin-checkbox", { label: `${this.displayName} ${this.validation.mandatory ? '*' : ''}`, checked: this.selectedValues.length === this.options.length, indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, required: this.validation.mandatory, onChange: (e) => this.handleParentCheckbox(e) }),
94
+ this.tooltip &&
95
+ h("img", { class: 'checkboxgroup__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
96
+ this.renderTooltip()),
97
+ h("small", { class: 'checkboxgroup__error-message' }, this.errorMessage),
98
+ h("vaadin-checkbox-group", { theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
99
+ this.selectedValues = event.detail.value;
100
+ } }, this.options.map((checkbox) => h("vaadin-checkbox", { name: checkbox.name, value: checkbox.name, label: checkbox.displayName }))));
101
+ }
102
+ static get is() { return "checkbox-group-input"; }
103
+ static get encapsulation() { return "shadow"; }
104
+ static get originalStyleUrls() { return {
105
+ "$": ["checkbox-group-input.scss"]
106
+ }; }
107
+ static get styleUrls() { return {
108
+ "$": ["checkbox-group-input.css"]
109
+ }; }
110
+ static get properties() { return {
111
+ "name": {
112
+ "type": "string",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "string",
116
+ "resolved": "string",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": false,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": "Name of the input."
124
+ },
125
+ "attribute": "name",
126
+ "reflect": true
127
+ },
128
+ "displayName": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Name of input to be shown to the user."
141
+ },
142
+ "attribute": "display-name",
143
+ "reflect": true
144
+ },
145
+ "defaultValue": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": false,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Default value for the input."
158
+ },
159
+ "attribute": "default-value",
160
+ "reflect": true,
161
+ "defaultValue": "''"
162
+ },
163
+ "autofilled": {
164
+ "type": "boolean",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": "Boolean. Determines if input should be readonly."
176
+ },
177
+ "attribute": "autofilled",
178
+ "reflect": true
179
+ },
180
+ "tooltip": {
181
+ "type": "string",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "string",
185
+ "resolved": "string",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "Tooltip text."
193
+ },
194
+ "attribute": "tooltip",
195
+ "reflect": true
196
+ },
197
+ "options": {
198
+ "type": "any",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "any",
202
+ "resolved": "any",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Options of the input."
210
+ },
211
+ "attribute": "options",
212
+ "reflect": true,
213
+ "defaultValue": "[]"
214
+ },
215
+ "validation": {
216
+ "type": "unknown",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "ValidationSchema",
220
+ "resolved": "ValidationSchema",
221
+ "references": {
222
+ "ValidationSchema": {
223
+ "location": "import",
224
+ "path": "../../utils/types"
225
+ }
226
+ }
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": "Object of validation rules for the input."
233
+ }
234
+ },
235
+ "language": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": "Currently selected language."
248
+ },
249
+ "attribute": "language",
250
+ "reflect": true
251
+ },
252
+ "emitValue": {
253
+ "type": "boolean",
254
+ "mutable": false,
255
+ "complexType": {
256
+ "original": "boolean",
257
+ "resolved": "boolean",
258
+ "references": {}
259
+ },
260
+ "required": false,
261
+ "optional": false,
262
+ "docs": {
263
+ "tags": [],
264
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
265
+ },
266
+ "attribute": "emit-value",
267
+ "reflect": true
268
+ },
269
+ "clientStyling": {
270
+ "type": "string",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "string",
274
+ "resolved": "string",
275
+ "references": {}
276
+ },
277
+ "required": false,
278
+ "optional": false,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": "Client custom styling via inline style"
282
+ },
283
+ "attribute": "client-styling",
284
+ "reflect": true,
285
+ "defaultValue": "''"
286
+ }
287
+ }; }
288
+ static get states() { return {
289
+ "errorMessage": {},
290
+ "isValid": {},
291
+ "limitStylingAppends": {},
292
+ "showTooltip": {},
293
+ "selectedValues": {}
294
+ }; }
295
+ static get events() { return [{
296
+ "method": "sendValidityState",
297
+ "name": "sendValidityState",
298
+ "bubbles": true,
299
+ "cancelable": true,
300
+ "composed": true,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": ""
304
+ },
305
+ "complexType": {
306
+ "original": "InputStateEvent",
307
+ "resolved": "InputStateEvent",
308
+ "references": {
309
+ "InputStateEvent": {
310
+ "location": "import",
311
+ "path": "../../utils/types"
312
+ }
313
+ }
314
+ }
315
+ }, {
316
+ "method": "sendInputValue",
317
+ "name": "sendInputValue",
318
+ "bubbles": true,
319
+ "cancelable": true,
320
+ "composed": true,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": ""
324
+ },
325
+ "complexType": {
326
+ "original": "InputValueEvent",
327
+ "resolved": "InputValueEvent",
328
+ "references": {
329
+ "InputValueEvent": {
330
+ "location": "import",
331
+ "path": "../../utils/types"
332
+ }
333
+ }
334
+ }
335
+ }]; }
336
+ static get elementRef() { return "element"; }
337
+ static get listeners() { return [{
338
+ "name": "click",
339
+ "method": "handleClickOutside",
340
+ "target": "document",
341
+ "capture": false,
342
+ "passive": false
343
+ }]; }
344
+ }
@@ -0,0 +1,62 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .checkbox {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ }
13
+ .checkbox__wrapper {
14
+ display: flex;
15
+ gap: 10px;
16
+ position: relative;
17
+ align-items: baseline;
18
+ }
19
+ .checkbox__wrapper--flex {
20
+ display: flex;
21
+ gap: 5px;
22
+ }
23
+ .checkbox__wrapper--relative {
24
+ position: relative;
25
+ }
26
+ .checkbox__label {
27
+ font-style: inherit;
28
+ font-family: inherit;
29
+ font-weight: 400;
30
+ font-size: 16px;
31
+ color: #2B2D3F;
32
+ line-height: 14px;
33
+ }
34
+ .checkbox__label-text {
35
+ font-size: 16px;
36
+ }
37
+ .checkbox__error-message {
38
+ position: absolute;
39
+ top: calc(100% + 5px);
40
+ left: 0;
41
+ color: #cc0000b3;
42
+ }
43
+ .checkbox__tooltip-icon {
44
+ width: 16px;
45
+ height: auto;
46
+ }
47
+ .checkbox__tooltip {
48
+ position: absolute;
49
+ top: 0;
50
+ right: 20px;
51
+ background-color: #FFFFFF;
52
+ border: 1px solid #B0B0B0;
53
+ color: #2B2D3F;
54
+ padding: 10px;
55
+ border-radius: 5px;
56
+ opacity: 0;
57
+ transition: opacity 0.3s ease-in-out;
58
+ z-index: 10;
59
+ }
60
+ .checkbox__tooltip.visible {
61
+ opacity: 1;
62
+ }