@sankhyalabs/ezui 1.1.4 → 1.1.8

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 (186) hide show
  1. package/README.md +72 -72
  2. package/dist/{ezui/DataUnit-285bec19.js → cjs/DataUnit-28b290cb.js} +382 -369
  3. package/dist/{ezui/index-919090de.js → cjs/RequestMetadata-2cd01e8a.js} +4 -383
  4. package/dist/cjs/ez-action-chip.cjs.entry.js +52 -0
  5. package/dist/cjs/ez-button_14.cjs.entry.js +3341 -0
  6. package/dist/cjs/ez-label-chip.cjs.entry.js +131 -0
  7. package/dist/cjs/ez-modal.cjs.entry.js +115 -0
  8. package/dist/cjs/ez-number-input.cjs.entry.js +248 -0
  9. package/dist/cjs/ez-time-input.cjs.entry.js +180 -0
  10. package/dist/cjs/ezui.cjs.js +19 -0
  11. package/dist/cjs/form-metadata.cjs.entry.js +74 -0
  12. package/dist/cjs/index-9403fe8f.js +1322 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/loader.cjs.js +21 -0
  15. package/dist/collection/collection-manifest.json +31 -0
  16. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -0
  17. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -0
  18. package/dist/collection/components/ez-button/ez-button.css +94 -0
  19. package/dist/collection/components/ez-button/ez-button.js +125 -0
  20. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -0
  21. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -0
  22. package/dist/collection/components/ez-check/ez-check.css +266 -0
  23. package/dist/collection/components/ez-check/ez-check.js +168 -0
  24. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +68 -0
  25. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -0
  26. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -0
  27. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -0
  28. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -0
  29. package/dist/collection/components/ez-date-input/ez-date-input.css +39 -0
  30. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -0
  31. package/dist/collection/components/ez-form/ez-form.css +19 -0
  32. package/dist/collection/components/ez-form/ez-form.js +368 -0
  33. package/dist/collection/components/ez-form/store/Form.actions.js +132 -0
  34. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -0
  35. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -0
  36. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +207 -0
  37. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -0
  38. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +24 -0
  39. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -0
  40. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -0
  41. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -0
  42. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -0
  43. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -0
  44. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -0
  45. package/dist/collection/components/ez-icon/ez-icon.css +37 -0
  46. package/dist/collection/components/ez-icon/ez-icon.js +56 -0
  47. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -0
  48. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -0
  49. package/dist/collection/components/ez-modal/ez-modal.css +87 -0
  50. package/dist/collection/components/ez-modal/ez-modal.js +224 -0
  51. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -0
  52. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -0
  53. package/dist/collection/components/ez-popover/ez-popover.css +39 -0
  54. package/dist/collection/components/ez-popover/ez-popover.js +323 -0
  55. package/dist/collection/components/ez-search/ez-search.css +296 -0
  56. package/dist/{ezui/ez-search.entry.js → collection/components/ez-search/ez-search.js} +527 -334
  57. package/dist/collection/components/ez-tabselector/ez-tabselector.css +126 -0
  58. package/dist/{ezui/ez-tabselector.entry.js → collection/components/ez-tabselector/ez-tabselector.js} +283 -209
  59. package/dist/collection/components/ez-text-area/ez-text-area.css +140 -0
  60. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -0
  61. package/dist/collection/components/ez-text-input/ez-text-input.css +170 -0
  62. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -0
  63. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -0
  64. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -0
  65. package/dist/collection/index.js +1 -0
  66. package/dist/collection/servidor.js +101 -0
  67. package/dist/collection/utils/FloatingManager.js +16 -0
  68. package/dist/collection/utils/utils.js +6 -0
  69. package/dist/custom-elements/index.js +5071 -0
  70. package/dist/esm/DataUnit-69e518fa.js +378 -0
  71. package/dist/esm/RequestMetadata-c265c9d5.js +527 -0
  72. package/dist/{ezui → esm}/ez-action-chip.entry.js +42 -42
  73. package/dist/esm/ez-button_14.entry.js +3324 -0
  74. package/dist/{ezui → esm}/ez-label-chip.entry.js +121 -121
  75. package/dist/{ezui → esm}/ez-modal.entry.js +105 -96
  76. package/dist/{ezui → esm}/ez-number-input.entry.js +238 -238
  77. package/dist/{ezui → esm}/ez-time-input.entry.js +170 -170
  78. package/dist/esm/ezui.js +17 -0
  79. package/dist/{ezui → esm}/form-metadata.entry.js +66 -66
  80. package/dist/esm/index-95bb3fd9.js +1293 -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/ezui/ezui.esm.js +1 -122
  90. package/dist/ezui/index.esm.js +0 -1
  91. package/dist/ezui/p-10ef58b3.js +1 -0
  92. package/dist/ezui/p-185c57f4.js +1 -0
  93. package/dist/ezui/p-22b82efb.entry.js +1 -0
  94. package/dist/ezui/p-77fdb4fd.entry.js +1 -0
  95. package/dist/ezui/p-9dfccb16.js +1 -0
  96. package/dist/ezui/p-b0974f4f.entry.js +1 -0
  97. package/dist/ezui/p-db11c600.entry.js +1 -0
  98. package/dist/ezui/p-dd4331b7.entry.js +1 -0
  99. package/dist/ezui/p-f6fd31ab.entry.js +1 -0
  100. package/dist/ezui/p-fa260f22.entry.js +1 -0
  101. package/dist/index.cjs.js +1 -0
  102. package/dist/index.js +1 -0
  103. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  104. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  105. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  106. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  107. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  108. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  109. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  110. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  111. package/dist/types/components/ez-form/ez-form.d.ts +31 -27
  112. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
  113. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
  114. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
  115. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +55 -48
  116. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  117. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  118. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  119. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  120. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  121. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  122. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
  123. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  124. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  125. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
  126. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  127. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  128. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  129. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  130. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  131. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  132. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  133. package/dist/types/components.d.ts +8 -0
  134. package/dist/types/index.d.ts +1 -1
  135. package/dist/types/utils/utils.d.ts +2 -2
  136. package/loader/cdn.js +3 -0
  137. package/loader/index.cjs.js +3 -0
  138. package/loader/index.d.ts +13 -0
  139. package/loader/index.es2017.js +3 -0
  140. package/loader/index.js +4 -0
  141. package/loader/package.json +10 -0
  142. package/package.json +114 -114
  143. package/react/components.d.ts +22 -0
  144. package/react/components.js +25 -0
  145. package/react/components.js.map +1 -0
  146. package/react/react-component-lib/createComponent.d.ts +10 -0
  147. package/react/react-component-lib/createComponent.js +59 -0
  148. package/react/react-component-lib/createComponent.js.map +1 -0
  149. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  150. package/react/react-component-lib/createOverlayComponent.js +89 -0
  151. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  152. package/react/react-component-lib/index.d.ts +2 -0
  153. package/react/react-component-lib/index.js +3 -0
  154. package/react/react-component-lib/index.js.map +1 -0
  155. package/react/react-component-lib/interfaces.d.ts +29 -0
  156. package/react/react-component-lib/interfaces.js +1 -0
  157. package/react/react-component-lib/interfaces.js.map +1 -0
  158. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  159. package/react/react-component-lib/utils/attachProps.js +96 -0
  160. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  161. package/react/react-component-lib/utils/case.d.ts +2 -0
  162. package/react/react-component-lib/utils/case.js +7 -0
  163. package/react/react-component-lib/utils/case.js.map +1 -0
  164. package/react/react-component-lib/utils/dev.d.ts +2 -0
  165. package/react/react-component-lib/utils/dev.js +13 -0
  166. package/react/react-component-lib/utils/dev.js.map +1 -0
  167. package/react/react-component-lib/utils/index.d.ts +7 -0
  168. package/react/react-component-lib/utils/index.js +21 -0
  169. package/react/react-component-lib/utils/index.js.map +1 -0
  170. package/dist/ezui/app-globals-0f993ce5.js +0 -3
  171. package/dist/ezui/css-shim-003e9264.js +0 -4
  172. package/dist/ezui/dom-1b195079.js +0 -73
  173. package/dist/ezui/ez-button.entry.js +0 -47
  174. package/dist/ezui/ez-calendar.entry.js +0 -102
  175. package/dist/ezui/ez-check.entry.js +0 -62
  176. package/dist/ezui/ez-collapsable-box.entry.js +0 -32
  177. package/dist/ezui/ez-combo-box.entry.js +0 -181
  178. package/dist/ezui/ez-date-input.entry.js +0 -77
  179. package/dist/ezui/ez-form.entry.js +0 -1907
  180. package/dist/ezui/ez-icon.entry.js +0 -17
  181. package/dist/ezui/ez-popover.entry.js +0 -112
  182. package/dist/ezui/ez-text-area.entry.js +0 -105
  183. package/dist/ezui/ez-text-input.entry.js +0 -202
  184. package/dist/ezui/index-39044be2.js +0 -2832
  185. package/dist/ezui/place-holder.entry.js +0 -15
  186. package/dist/ezui/shadow-css-c1ad5fdc.js +0 -383
@@ -0,0 +1,140 @@
1
+ :host {
2
+ /* dimensions */
3
+ --ta--width: 100%;
4
+
5
+ /* general */
6
+ --ta--border-radius: var(--border--radius-medium, 12px);
7
+ --ta--font-size: var(--text--medium, 14px);
8
+ --ta--font-family: var(--font-pattern, Arial);
9
+ --ta--font-weight: var(--text-weight--large, 500);
10
+ --ta--color: var(--title--primary, #000);
11
+
12
+ /* input */
13
+ --ta__input--background-color: var(--background--medium, #e0e0e0);
14
+ --ta__input--border: var(--border--medium, 2px solid);
15
+ --ta__input--border-color: var(--ta__input--background-color);
16
+ /*no modo normal usamos a borda com a mesma cor do bg*/
17
+ --ta__input--focus--border-color: var(--color--primary, #008561);
18
+ --ta__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
19
+ --ta__input--disabled--color: var(--text--disable, #AFB6C0);
20
+ --ta__input--error--border-color: #CC2936;
21
+ --ta__input--floating--padding-top: 16px;
22
+
23
+ /* message box */
24
+ --ta__message_box--font-size: var(--text--small, 12px);
25
+ --ta__message_box--info--color: var(--color--success, #22085d);
26
+ --ta__message_box--error--color: var(--color--error, #FF0000);
27
+
28
+ /* label */
29
+ --ta__label--floating--top: 6px;
30
+ --ta__label--padding-top: 12px;
31
+ --ta__label--padding-left: 14px;
32
+ --ta__label--padding-right: 12px;
33
+
34
+ /***************
35
+ host style
36
+ ***************/
37
+ /*private*/
38
+ display: flex;
39
+ flex-wrap: wrap;
40
+ position: relative;
41
+ /*public*/
42
+ width: var(--ta--width);
43
+ }
44
+
45
+ textarea {
46
+ /*private*/
47
+ width: 100%;
48
+ box-sizing: border-box;
49
+ padding: var(--space--medium, 6px);
50
+ font-weight: var(--text-weight--large, 600);
51
+ resize: none;
52
+
53
+ /*public*/
54
+ border-radius: var(--ta--border-radius);
55
+ font-family: var(--ta--font-family);
56
+ font-size: var(--ta--font-size);
57
+ border: var(--ta__input--border);
58
+ border-color: var(--ta__input--border-color);
59
+ background-color: var(--ta__input--background-color);
60
+ color: var(--ta--color);
61
+ }
62
+
63
+ textarea:disabled {
64
+ /*public*/
65
+ background-color: var(--ta__input--disabled--background-color);
66
+ color: var(--ta__input--disabled--color);
67
+ }
68
+
69
+ textarea:focus {
70
+ /*private*/
71
+ outline: none;
72
+ /*public*/
73
+ border-color: var(--ta__input--focus--border-color);
74
+ }
75
+
76
+ textarea.hasError {
77
+ color: var(--ta--color);
78
+ border-color: var(--ta__input--error--border-color);
79
+ }
80
+
81
+ .message-box {
82
+ /*private*/
83
+ min-height: 16px;
84
+ min-width: 100%;
85
+ margin-top: 2px;
86
+ line-height: 12px;
87
+ overflow: hidden;
88
+ text-overflow: ellipsis;
89
+ white-space: nowrap;
90
+
91
+ /*public*/
92
+ font-family: var(--ta--font-family);
93
+ font-size: var(--ta__message_box--font-size);
94
+ color: var(--ta__message_box--info--color);
95
+ }
96
+
97
+ .hasError {
98
+ /*public*/
99
+ color: var(--ta__message_box--error--color);
100
+ }
101
+
102
+ .textarea__label {
103
+ /*private*/
104
+ box-sizing: border-box;
105
+ position: absolute;
106
+ z-index: var(--visible);
107
+ overflow: hidden;
108
+ text-overflow: ellipsis;
109
+ white-space: nowrap;
110
+ -webkit-transition: font-size .05s, top .05s;
111
+ transition: font-size .05s, top .05s;
112
+ width: calc(100% - var(--ta__label--padding-right));
113
+ left: var(--ta--space--medium);
114
+
115
+ /*public*/
116
+ font-family: var(--ta--font-family);
117
+ font-size: var(--ta--font-size);
118
+ font-weight: var(--ta--font-weight);
119
+ color: var(--ta--color);
120
+ top: var(--ta__label--padding-top);
121
+ left: var(--ta__label--padding-left);
122
+ padding-right: var(--ta__label--padding-right);
123
+ }
124
+
125
+ .textarea__label--floated {
126
+ font-family: var(--ta--font-family);
127
+ font-size: var(--text--extra-small);
128
+ color: var(--text--primary);
129
+ top: var(--ta__label--floating--top);
130
+ }
131
+
132
+ .textarea__label--disabled {
133
+ color: var(--ta__input--disabled--color);
134
+ }
135
+
136
+ .input--with--label {
137
+ /*public*/
138
+ padding-bottom: 0;
139
+ padding-top: var(--ta__input--floating--padding-top);
140
+ }
@@ -0,0 +1,267 @@
1
+ import { Component, Prop, h, Watch, Host, Method, Event, Element } from '@stencil/core';
2
+ export class EzTextArea {
3
+ constructor() {
4
+ /**
5
+ * Deixa o campo disponível ou não para digitação.
6
+ */
7
+ this.enabled = true;
8
+ /**
9
+ * Ajusta o numero de linhas e consequentemente o height do textarea. Valor default: 4
10
+ */
11
+ this.rows = 4;
12
+ }
13
+ showError() {
14
+ const hasError = typeof this.errormessage === 'string' && this.errormessage !== '';
15
+ if (hasError) {
16
+ this._inputElem.classList.add('hasError');
17
+ this._messageBoxElem.classList.add('hasError');
18
+ }
19
+ else {
20
+ this._inputElem.classList.remove('hasError');
21
+ this._messageBoxElem.classList.remove('hasError');
22
+ }
23
+ }
24
+ updateInputValue() {
25
+ this._inputElem.value = this.value;
26
+ this.handleChange();
27
+ this.adjustFloatingLabel();
28
+ }
29
+ adjustFloatingLabel() {
30
+ if (this.label) {
31
+ if (!this._inputElem.classList.contains("input--with--label")) {
32
+ this._inputElem.classList.add("input--with--label");
33
+ }
34
+ const hasValue = this.value && this.value.toString().length > 0;
35
+ const containsFloatedClass = this._labelElem.classList.contains("textarea__label--floated");
36
+ if (hasValue || this.isFocused()) {
37
+ if (!containsFloatedClass) {
38
+ this._labelElem.classList.add("textarea__label--floated");
39
+ }
40
+ }
41
+ else {
42
+ if (containsFloatedClass) {
43
+ this._labelElem.classList.remove("textarea__label--floated");
44
+ }
45
+ }
46
+ }
47
+ }
48
+ isFocused() {
49
+ return this._hostElement.shadowRoot.activeElement !== null;
50
+ }
51
+ //---------------------------------------------
52
+ // Public methods
53
+ //---------------------------------------------
54
+ /**
55
+ * Faz o foco no componente de input
56
+ */
57
+ async setFocus() {
58
+ this._inputElem.focus();
59
+ }
60
+ /**
61
+ * Remove o foco no componente de input
62
+ */
63
+ async setBlur() {
64
+ this._inputElem.blur();
65
+ }
66
+ //---------------------------------------------
67
+ // Event handlers
68
+ //---------------------------------------------
69
+ handleFocusout() {
70
+ this.adjustFloatingLabel();
71
+ }
72
+ handleChange() {
73
+ this.value = this._inputElem.value;
74
+ }
75
+ handleFocus() {
76
+ if (this.label && this._labelElem && !this._labelElem.classList.contains("textarea__label--floated")) {
77
+ this._labelElem.classList.add("textarea__label--floated");
78
+ }
79
+ }
80
+ //---------------------------------------------
81
+ // Lifecycle web component
82
+ //---------------------------------------------
83
+ componentDidLoad() {
84
+ this.showError();
85
+ this.adjustFloatingLabel();
86
+ }
87
+ render() {
88
+ return (h(Host, null,
89
+ this.label ?
90
+ h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
91
+ : null,
92
+ h("textarea", { onFocus: () => this.handleFocus(), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, onKeyDown: event => event.stopPropagation(), rows: this.rows }),
93
+ h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errormessage }, this.errormessage)));
94
+ }
95
+ static get is() { return "ez-text-area"; }
96
+ static get encapsulation() { return "shadow"; }
97
+ static get originalStyleUrls() { return {
98
+ "$": ["ez-text-area.css"]
99
+ }; }
100
+ static get styleUrls() { return {
101
+ "$": ["ez-text-area.css"]
102
+ }; }
103
+ static get properties() { return {
104
+ "label": {
105
+ "type": "string",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "string",
109
+ "resolved": "string",
110
+ "references": {}
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": "Label \u00E9 o t\u00EDtulo do campo"
117
+ },
118
+ "attribute": "label",
119
+ "reflect": true
120
+ },
121
+ "value": {
122
+ "type": "string",
123
+ "mutable": true,
124
+ "complexType": {
125
+ "original": "string",
126
+ "resolved": "string",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": "Valor digitado pelo usu\u00E1rio. Este valor \u00E9 o que fica vis\u00EDvel no campo."
134
+ },
135
+ "attribute": "value",
136
+ "reflect": true
137
+ },
138
+ "enabled": {
139
+ "type": "boolean",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "boolean",
143
+ "resolved": "boolean",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para digita\u00E7\u00E3o."
151
+ },
152
+ "attribute": "enabled",
153
+ "reflect": true,
154
+ "defaultValue": "true"
155
+ },
156
+ "loading": {
157
+ "type": "boolean",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "boolean",
161
+ "resolved": "boolean",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": "Deixa o componente em modo \"carregando\"."
169
+ },
170
+ "attribute": "loading",
171
+ "reflect": true
172
+ },
173
+ "errormessage": {
174
+ "type": "string",
175
+ "mutable": true,
176
+ "complexType": {
177
+ "original": "string",
178
+ "resolved": "string",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
186
+ },
187
+ "attribute": "errormessage",
188
+ "reflect": true
189
+ },
190
+ "rows": {
191
+ "type": "number",
192
+ "mutable": true,
193
+ "complexType": {
194
+ "original": "number",
195
+ "resolved": "number",
196
+ "references": {}
197
+ },
198
+ "required": false,
199
+ "optional": false,
200
+ "docs": {
201
+ "tags": [],
202
+ "text": "Ajusta o numero de linhas e consequentemente o height do textarea. Valor default: 4"
203
+ },
204
+ "attribute": "rows",
205
+ "reflect": true,
206
+ "defaultValue": "4"
207
+ }
208
+ }; }
209
+ static get events() { return [{
210
+ "method": "ezChange",
211
+ "name": "ezChange",
212
+ "bubbles": true,
213
+ "cancelable": true,
214
+ "composed": true,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": ""
218
+ },
219
+ "complexType": {
220
+ "original": "string",
221
+ "resolved": "string",
222
+ "references": {}
223
+ }
224
+ }]; }
225
+ static get methods() { return {
226
+ "setFocus": {
227
+ "complexType": {
228
+ "signature": "() => Promise<void>",
229
+ "parameters": [],
230
+ "references": {
231
+ "Promise": {
232
+ "location": "global"
233
+ }
234
+ },
235
+ "return": "Promise<void>"
236
+ },
237
+ "docs": {
238
+ "text": "Faz o foco no componente de input",
239
+ "tags": []
240
+ }
241
+ },
242
+ "setBlur": {
243
+ "complexType": {
244
+ "signature": "() => Promise<void>",
245
+ "parameters": [],
246
+ "references": {
247
+ "Promise": {
248
+ "location": "global"
249
+ }
250
+ },
251
+ "return": "Promise<void>"
252
+ },
253
+ "docs": {
254
+ "text": "Remove o foco no componente de input",
255
+ "tags": []
256
+ }
257
+ }
258
+ }; }
259
+ static get elementRef() { return "_hostElement"; }
260
+ static get watchers() { return [{
261
+ "propName": "errormessage",
262
+ "methodName": "showError"
263
+ }, {
264
+ "propName": "value",
265
+ "methodName": "updateInputValue"
266
+ }]; }
267
+ }
@@ -0,0 +1,170 @@
1
+ :host {
2
+ /* dimensions */
3
+ --it--height: 42px;
4
+ --it--width: 100%;
5
+ --it__icon--width: 48px;
6
+
7
+ /* general */
8
+ --it--border-radius: var(--border--radius-medium, 12px);
9
+ --it--font-size: var(--text--medium, 14px);
10
+ --it--font-family: var(--font-pattern, Arial);
11
+ --it--font-weight: var(--text-weight--large, 500);
12
+ --it--color: var(--title--primary, #000);
13
+
14
+ /* input */
15
+ --it__input--background-color: var(--background--medium, #e0e0e0);
16
+ --it__input--border: var(--border--medium, 2px solid);
17
+ --it__input--border-color: var(--it__input--background-color);
18
+ /*no modo normal usamos a borda com a mesma cor do bg*/
19
+ --it__input--focus--border-color: var(--color--primary, #008561);
20
+ --it__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
21
+ --it__input--disabled--color: var(--text--disable, #AFB6C0);
22
+ --it__input--error--border-color: #CC2936;
23
+
24
+ /* message box */
25
+ --it__message_box--font-size: var(--text--small, 12px);
26
+ --it__message_box--info--color: var(--color--success, #22085d);
27
+ --it__message_box--error--color: var(--color--error, #FF0000);
28
+
29
+ /* label */
30
+ --it__label--floating--top: 6px;
31
+ --it__label--padding-top: 12px;
32
+ --it__label--padding-left: 14px;
33
+ --it__label--padding-right: 12px;
34
+
35
+
36
+ /***************
37
+ host style
38
+ ***************/
39
+ /*private*/
40
+ display: flex;
41
+ flex-wrap: wrap;
42
+ position: relative;
43
+ /*public*/
44
+ width: var(--it--width);
45
+ }
46
+
47
+ input {
48
+ /*private*/
49
+ width: 100%;
50
+ box-sizing: border-box;
51
+ padding: var(--space--medium, 6px);
52
+ font-weight: var(--text-weight--large, 600);
53
+
54
+ /*public*/
55
+ height: var(--it--height);
56
+ border-radius: var(--it--border-radius);
57
+ font-family: var(--it--font-family);
58
+ font-size: var(--it--font-size);
59
+ border: var(--it__input--border);
60
+ border-color: var(--it__input--border-color);
61
+ background-color: var(--it__input--background-color);
62
+ color: var(--it--color);
63
+ }
64
+
65
+ input:disabled {
66
+ /*public*/
67
+ background-color: var(--it__input--disabled--background-color);
68
+ color: var(--it__input--disabled--color);
69
+ }
70
+
71
+ input:focus {
72
+ /*private*/
73
+ outline: none;
74
+ /*public*/
75
+ border-color: var(--it__input--focus--border-color);
76
+ }
77
+
78
+ input.icon--left {
79
+ padding-left: var(--it__icon--width);
80
+ }
81
+
82
+ input.icon--right {
83
+ padding-right: var(--it__icon--width);
84
+ }
85
+
86
+ input.hasError {
87
+ color: var(--it--color);
88
+ border-color: var(--it__input--error--border-color);
89
+ }
90
+
91
+ input.text--right {
92
+ text-align: right;
93
+ }
94
+
95
+ .message-box {
96
+ /*private*/
97
+ min-height: 16px;
98
+ min-width: 100%;
99
+ margin-top: 2px;
100
+ line-height: 12px;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ white-space: nowrap;
104
+
105
+ /*public*/
106
+ font-family: var(--it--font-family);
107
+ font-size: var(--it__message_box--font-size);
108
+ color: var(--it__message_box--info--color);
109
+ }
110
+
111
+ .hasError {
112
+ /*public*/
113
+ color: var(--it__message_box--error--color);
114
+ }
115
+
116
+ .input__label {
117
+ /*private*/
118
+ box-sizing: border-box;
119
+ position: absolute;
120
+ z-index: var(--visible);
121
+ overflow: hidden;
122
+ text-overflow: ellipsis;
123
+ white-space: nowrap;
124
+ -webkit-transition: font-size .05s, top .05s;
125
+ transition: font-size .05s, top .05s;
126
+ width: calc(100% - var(--it__label--padding-right));
127
+ left: var(--it--space--medium);
128
+
129
+ /*public*/
130
+ font-family: var(--it--font-family);
131
+ font-size: var(--it--font-size);
132
+ font-weight: var(--it--font-weight);
133
+ color: var(--it--color);
134
+ top: var(--it__label--padding-top);
135
+ left: var(--it__label--padding-left);
136
+ padding-right: var(--it__label--padding-right);
137
+ }
138
+
139
+ .input__label--floated {
140
+ font-family: var(--it--font-family);
141
+ font-size: var(--text--extra-small);
142
+ color: var(--text--primary);
143
+ top: var(--it__label--floating--top);
144
+ }
145
+
146
+ .input__label--disabled {
147
+ color: var(--it__input--disabled--color);
148
+ }
149
+
150
+ .input__label--left {
151
+ /*public*/
152
+ left: calc(var(--it__icon--width) + 2px); /*borda*/
153
+ width: calc(100% - var(--it__icon--width));
154
+ }
155
+
156
+ .input__label--right {
157
+ /*public*/
158
+ right: var(--it__icon--width);
159
+ width: calc(100% - var(--it__icon--width));
160
+ }
161
+
162
+ .input__label--left.input__label--right {
163
+ left: calc(var(--it__icon--width) + 2px); /*borda*/
164
+ width: calc(100% - var(--it__icon--width) * 2);
165
+ }
166
+
167
+ .input--with--label {
168
+ /*public*/
169
+ padding-bottom: 0;
170
+ }