@sankhyalabs/ezui 1.1.73 → 1.1.76

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 (93) hide show
  1. package/dist/cjs/ez-action-chip.cjs.entry.js +2 -2
  2. package/dist/cjs/ez-button_16.cjs.entry.js +179 -165
  3. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-label-chip.cjs.entry.js +12 -12
  5. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-time-input.cjs.entry.js +21 -2
  11. package/dist/cjs/ez-toast.cjs.entry.js +5 -2
  12. package/dist/cjs/ezui.cjs.js +2 -2
  13. package/dist/cjs/{index-4d2896bb.js → index-9431aeeb.js} +2 -0
  14. package/dist/cjs/loader.cjs.js +2 -2
  15. package/dist/collection/components/ez-action-chip/ez-action-chip.css +21 -21
  16. package/dist/collection/components/ez-action-chip/ez-action-chip.js +1 -1
  17. package/dist/collection/components/ez-button/ez-button.css +62 -43
  18. package/dist/collection/components/ez-button/ez-button.js +9 -2
  19. package/dist/collection/components/ez-calendar/ez-calendar.css +64 -64
  20. package/dist/collection/components/ez-calendar/ez-calendar.js +12 -9
  21. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
  22. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
  23. package/dist/collection/components/ez-combo-box/ez-combo-box.css +2 -2
  24. package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
  25. package/dist/collection/components/ez-date-input/ez-date-input.js +2 -2
  26. package/dist/collection/components/ez-form/ez-form.js +37 -35
  27. package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
  28. package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
  29. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +8 -8
  30. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
  31. package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
  32. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +22 -22
  33. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +7 -7
  34. package/dist/collection/components/ez-label-chip/ez-label-chip.css +49 -49
  35. package/dist/collection/components/ez-label-chip/ez-label-chip.js +11 -11
  36. package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +4 -4
  37. package/dist/collection/components/ez-search/ez-search.js +9 -9
  38. package/dist/collection/components/ez-text-area/ez-text-area.css +48 -48
  39. package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
  40. package/dist/collection/components/ez-text-input/ez-text-input.js +16 -16
  41. package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
  42. package/dist/collection/components/ez-toast/ez-toast.css +9 -9
  43. package/dist/collection/components/ez-toast/ez-toast.js +4 -1
  44. package/dist/collection/components/ez-upload/ez-upload.css +41 -41
  45. package/dist/collection/components/ez-upload/ez-upload.js +53 -50
  46. package/dist/collection/utils/AssetsUtils.js +19 -0
  47. package/dist/custom-elements/index.js +219 -183
  48. package/dist/esm/ez-action-chip.entry.js +2 -2
  49. package/dist/esm/ez-button_16.entry.js +179 -165
  50. package/dist/esm/ez-dialog.entry.js +1 -1
  51. package/dist/esm/ez-label-chip.entry.js +12 -12
  52. package/dist/esm/ez-list.entry.js +1 -1
  53. package/dist/esm/ez-modal.entry.js +1 -1
  54. package/dist/esm/ez-number-input.entry.js +1 -1
  55. package/dist/esm/ez-popover.entry.js +1 -1
  56. package/dist/esm/ez-popup.entry.js +1 -1
  57. package/dist/esm/ez-time-input.entry.js +21 -2
  58. package/dist/esm/ez-toast.entry.js +5 -2
  59. package/dist/esm/ezui.js +2 -2
  60. package/dist/esm/{index-33153059.js → index-fd3c8023.js} +2 -1
  61. package/dist/esm/loader.js +2 -2
  62. package/dist/ezui/ezui.esm.js +1 -1
  63. package/dist/ezui/{p-67410dfa.entry.js → p-11ae4ae7.entry.js} +1 -1
  64. package/dist/ezui/{p-50464bdf.entry.js → p-47fa3d6c.entry.js} +1 -1
  65. package/dist/ezui/p-66954a04.entry.js +1 -0
  66. package/dist/ezui/p-823ff0a0.entry.js +1 -0
  67. package/dist/ezui/{p-7f3bc6d9.entry.js → p-8ab6168f.entry.js} +1 -1
  68. package/dist/ezui/{p-15743b09.entry.js → p-9c1fb51c.entry.js} +1 -1
  69. package/dist/ezui/{p-061d21ba.entry.js → p-9d85125b.entry.js} +1 -1
  70. package/dist/ezui/p-a0b6eee2.entry.js +1 -0
  71. package/dist/ezui/p-a7b546b2.entry.js +1 -0
  72. package/dist/ezui/p-c833c94f.entry.js +1 -0
  73. package/dist/ezui/{p-8818da66.entry.js → p-d443f020.entry.js} +1 -1
  74. package/dist/ezui/{p-4df6f855.js → p-e0ab3746.js} +1 -1
  75. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +2 -2
  76. package/dist/types/components/ez-calendar/ez-calendar.d.ts +4 -1
  77. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
  78. package/dist/types/components/ez-form/ez-form.d.ts +9 -9
  79. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
  80. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
  81. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +2 -2
  82. package/dist/types/components/ez-search/ez-search.d.ts +5 -5
  83. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
  84. package/dist/types/components/ez-toast/ez-toast.d.ts +3 -0
  85. package/dist/types/components/ez-upload/ez-upload.d.ts +10 -7
  86. package/dist/types/components.d.ts +47 -38
  87. package/dist/types/utils/AssetsUtils.d.ts +1 -0
  88. package/package.json +1 -1
  89. package/dist/ezui/p-0db8d49b.entry.js +0 -1
  90. package/dist/ezui/p-129b53df.entry.js +0 -1
  91. package/dist/ezui/p-25953d44.entry.js +0 -1
  92. package/dist/ezui/p-74809665.entry.js +0 -1
  93. package/dist/ezui/p-a99f8d42.entry.js +0 -1
@@ -1,54 +1,54 @@
1
1
  :host {
2
2
  /* dimensions */
3
3
  /*@doc Define a largura do componente.*/
4
- --ta--width: 100%;
4
+ --text-area--width: 100%;
5
5
 
6
6
  /* general */
7
7
  /*@doc Define o raio da borda do input do componente.*/
8
- --ta--border-radius: var(--border--radius-medium, 12px);
8
+ --text-area--border-radius: var(--border--radius-medium, 12px);
9
9
  /*@doc Define o tamanho da fonte do input e label do componente.*/
10
- --ta--font-size: var(--text--medium, 14px);
10
+ --text-area--font-size: var(--text--medium, 14px);
11
11
  /*@doc Define a família da fonte do input, label e caixa de mensagem do componente.*/
12
- --ta--font-family: var(--font-pattern, Arial);
12
+ --text-area--font-family: var(--font-pattern, Arial);
13
13
  /*@doc Define o peso da fonte do label do componente.*/
14
- --ta--font-weight: var(--text-weight--large, 500);
14
+ --text-area--font-weight: var(--text-weight--large, 500);
15
15
  /*@doc Define a cor da fonte do input e label do componente.*/
16
- --ta--color: var(--title--primary, #000);
16
+ --text-area--color: var(--title--primary, #000);
17
17
 
18
18
  /* input */
19
19
  /*@doc Define a cor de fundo do input.*/
20
- --ta__input--background-color: var(--background--medium, #e0e0e0);
20
+ --text-area__input--background-color: var(--background--medium, #e0e0e0);
21
21
  /*@doc Define o estilo da borda do input.*/
22
- --ta__input--border: var(--border--medium, 2px solid);
22
+ --text-area__input--border: var(--border--medium, 2px solid);
23
23
  /*@doc Define a cor da borda do input.*/
24
- --ta__input--border-color: var(--ta__input--background-color);
24
+ --text-area__input--border-color: var(--text-area__input--background-color);
25
25
  /*no modo normal usamos a borda com a mesma cor do bg*/
26
26
  /*@doc Define a cor da borda do input quando focado.*/
27
- --ta__input--focus--border-color: var(--color--primary, #008561);
27
+ --text-area__input--focus--border-color: var(--color--primary, #008561);
28
28
  /*@doc Define a cor de fundo do input quando desabilitado.*/
29
- --ta__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
29
+ --text-area__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
30
30
  /*@doc Define a cor do texto do input.*/
31
- --ta__input--disabled--color: var(--text--disable, #AFB6C0);
31
+ --text-area__input--disabled--color: var(--text--disable, #AFB6C0);
32
32
  /*@doc Define a cor da borda do input quando com erro.*/
33
- --ta__input--error--border-color: #CC2936;
33
+ --text-area__input--error--border-color: #CC2936;
34
34
 
35
35
  /* message box */
36
36
  /*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
37
- --ta__message_box--font-size: var(--text--small, 12px);
37
+ --text-area__message_box--font-size: var(--text--small, 12px);
38
38
  /*@doc Define a cor da fonte da mensagem quando info.*/
39
- --ta__message_box--info--color: var(--color--success, #22085d);
39
+ --text-area__message_box--info--color: var(--color--success, #22085d);
40
40
  /*@doc Define a cor da fonte da mensagem quando erro.*/
41
- --ta__message_box--error--color: var(--color--error, #FF0000);
41
+ --text-area__message_box--error--color: var(--color--error, #FF0000);
42
42
 
43
43
  /* label */
44
44
  /*@doc Define o posicionamento do label.*/
45
- --ta__label--floating--top: 6px;
45
+ --text-area__label--floating--top: 6px;
46
46
  /*@doc Define o espaçamento superior do label.*/
47
- --ta__label--padding-top: 12px;
47
+ --text-area__label--padding-top: 12px;
48
48
  /*@doc Define o espaçamento esquerdo do label.*/
49
- --ta__label--padding-left: 14px;
49
+ --text-area__label--padding-left: 14px;
50
50
  /*@doc Define o espaçamento direito do label.*/
51
- --ta__label--padding-right: 12px;
51
+ --text-area__label--padding-right: 12px;
52
52
 
53
53
  /***************
54
54
  host style
@@ -58,7 +58,7 @@
58
58
  flex-wrap: wrap;
59
59
  position: relative;
60
60
  /*public*/
61
- width: var(--ta--width);
61
+ width: var(--text-area--width);
62
62
  }
63
63
 
64
64
  textarea {
@@ -68,9 +68,9 @@ textarea {
68
68
  margin-top: calc(var(--space--medium, 12px) + 4px);
69
69
  width: 100%;
70
70
  font-weight: var(--text-weight--large, 600);
71
- font-family: var(--ta--font-family);
72
- font-size: var(--ta--font-size);
73
- color: var(--ta--color);
71
+ font-family: var(--text-area--font-family);
72
+ font-size: var(--text-area--font-size);
73
+ color: var(--text-area--color);
74
74
  padding: 0;
75
75
  background: none;
76
76
  }
@@ -83,7 +83,7 @@ textarea:focus {
83
83
  textarea:disabled {
84
84
  /*public*/
85
85
  background-color: transparent;
86
- color: var(--ta__input--disabled--color);
86
+ color: var(--text-area__input--disabled--color);
87
87
  }
88
88
 
89
89
  .textarea {
@@ -94,19 +94,19 @@ textarea:disabled {
94
94
  padding-right: var(--space--extra-small);
95
95
 
96
96
  /*public*/
97
- border-radius: var(--ta--border-radius);
98
- border: var(--ta__input--border);
99
- border-color: var(--ta__input--border-color);
100
- background-color: var(--ta__input--background-color);
97
+ border-radius: var(--text-area--border-radius);
98
+ border: var(--text-area__input--border);
99
+ border-color: var(--text-area__input--border-color);
100
+ background-color: var(--text-area__input--background-color);
101
101
  }
102
102
 
103
103
  .textarea--focus {
104
- border-color: var(--ta__input--focus--border-color);
104
+ border-color: var(--text-area__input--focus--border-color);
105
105
  }
106
106
 
107
107
  .textarea.hasError {
108
- color: var(--ta--color);
109
- border-color: var(--ta__input--error--border-color);
108
+ color: var(--text-area--color);
109
+ border-color: var(--text-area__input--error--border-color);
110
110
  }
111
111
 
112
112
  .message-box {
@@ -120,14 +120,14 @@ textarea:disabled {
120
120
  white-space: nowrap;
121
121
 
122
122
  /*public*/
123
- font-family: var(--ta--font-family);
124
- font-size: var(--ta__message_box--font-size);
125
- color: var(--ta__message_box--info--color);
123
+ font-family: var(--text-area--font-family);
124
+ font-size: var(--text-area__message_box--font-size);
125
+ color: var(--text-area__message_box--info--color);
126
126
  }
127
127
 
128
128
  .hasError {
129
129
  /*public*/
130
- color: var(--ta__message_box--error--color);
130
+ color: var(--text-area__message_box--error--color);
131
131
  }
132
132
 
133
133
  .textarea__label {
@@ -140,26 +140,26 @@ textarea:disabled {
140
140
  white-space: nowrap;
141
141
  -webkit-transition: font-size .05s, top .05s;
142
142
  transition: font-size .05s, top .05s;
143
- width: calc(100% - var(--ta__label--padding-right));
144
- left: var(--ta--space--medium);
143
+ width: calc(100% - var(--text-area__label--padding-right));
144
+ left: var(--text-area--space--medium);
145
145
 
146
146
  /*public*/
147
- font-family: var(--ta--font-family);
148
- font-size: var(--ta--font-size);
149
- font-weight: var(--ta--font-weight);
150
- color: var(--ta--color);
151
- top: var(--ta__label--padding-top);
152
- left: var(--ta__label--padding-left);
153
- padding-right: var(--ta__label--padding-right);
147
+ font-family: var(--text-area--font-family);
148
+ font-size: var(--text-area--font-size);
149
+ font-weight: var(--text-area--font-weight);
150
+ color: var(--text-area--color);
151
+ top: var(--text-area__label--padding-top);
152
+ left: var(--text-area__label--padding-left);
153
+ padding-right: var(--text-area__label--padding-right);
154
154
  }
155
155
 
156
156
  .textarea__label--floated {
157
- font-family: var(--ta--font-family);
157
+ font-family: var(--text-area--font-family);
158
158
  font-size: var(--text--extra-small);
159
159
  color: var(--text--primary);
160
- top: var(--ta__label--floating--top);
160
+ top: var(--text-area__label--floating--top);
161
161
  }
162
162
 
163
163
  .textarea__label--disabled {
164
- color: var(--ta__input--disabled--color);
164
+ color: var(--text-area__input--disabled--color);
165
165
  }
@@ -1,58 +1,58 @@
1
1
  :host {
2
2
  /* dimensions */
3
3
  /*@doc Define a altura do componente.*/
4
- --text-input--height: 42px;
4
+ --ez-text-input--height: 42px;
5
5
  /*@doc Define a largura do componente.*/
6
- --text-input--width: 100%;
6
+ --ez-text-input--width: 100%;
7
7
  /*@doc Define a largura do slot que contém o ícone.*/
8
- --text-input__icon--width: 48px;
8
+ --ez-text-input__icon--width: 48px;
9
9
 
10
10
  /* general */
11
11
  /*@doc Define o raio da borda do input do componente.*/
12
- --text-input--border-radius: var(--border--radius-medium, 12px);
12
+ --ez-text-input--border-radius: var(--border--radius-medium, 12px);
13
13
  /*@doc Define o tamanho da fonte do input e label do componente.*/
14
- --text-input--font-size: var(--text--medium, 14px);
14
+ --ez-text-input--font-size: var(--text--medium, 14px);
15
15
  /*@doc Define a família da fonte do input, label e caixa de mensagem do componente.*/
16
- --text-input--font-family: var(--font-pattern, Arial);
16
+ --ez-text-input--font-family: var(--font-pattern, Arial);
17
17
  /*@doc Define o peso da fonte do label do componente.*/
18
- --text-input--font-weight: var(--text-weight--large, 500);
18
+ --ez-text-input--font-weight: var(--text-weight--large, 500);
19
19
  /*@doc Define a cor da fonte do input e label do componente.*/
20
- --text-input--color: var(--title--primary, #000);
20
+ --ez-text-input--color: var(--title--primary, #000);
21
21
 
22
22
  /* input */
23
23
  /*@doc Define a cor de fundo do input.*/
24
- --text-input__input--background-color: var(--background--medium, #e0e0e0);
24
+ --ez-text-input__input--background-color: var(--background--medium, #e0e0e0);
25
25
  /*@doc Define o estilo da borda do input.*/
26
- --text-input__input--border: var(--border--medium, 2px solid);
26
+ --ez-text-input__input--border: var(--border--medium, 2px solid);
27
27
  /*@doc Define a cor da borda do input.*/
28
- --text-input__input--border-color: var(--text-input__input--background-color);
28
+ --ez-text-input__input--border-color: var(--ez-text-input__input--background-color);
29
29
  /*no modo normal usamos a borda com a mesma cor do bg*/
30
30
  /*@doc Define a cor da borda do input quando focado.*/
31
- --text-input__input--focus--border-color: var(--color--alert-cold-800, #042EFF);
31
+ --ez-text-input__input--focus--border-color: var(--color--alert-cold-800, #042EFF);
32
32
  /*@doc Define a cor de fundo do input quando desabilitado.*/
33
- --text-input__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
33
+ --ez-text-input__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
34
34
  /*@doc Define a cor do texto do input.*/
35
- --text-input__input--disabled--color: var(--text--disable, #AFB6C0);
35
+ --ez-text-input__input--disabled--color: var(--text--disable, #AFB6C0);
36
36
  /*@doc Define a cor da borda do input quando com erro.*/
37
- --text-input__input--error--border-color: #CC2936;
37
+ --ez-text-input__input--error--border-color: #CC2936;
38
38
 
39
39
  /* message box */
40
40
  /*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
41
- --text-input__message_box--font-size: var(--text--small, 12px);
41
+ --ez-text-input__message_box--font-size: var(--text--small, 12px);
42
42
  /*@doc Define a cor da fonte da mensagem quando info.*/
43
- --text-input__message_box--info--color: var(--color--success, #22085d);
43
+ --ez-text-input__message_box--info--color: var(--color--success, #22085d);
44
44
  /*@doc Define a cor da fonte da mensagem quando erro.*/
45
- --text-input__message_box--error--color: var(--color--error, #FF0000);
45
+ --ez-text-input__message_box--error--color: var(--color--error, #FF0000);
46
46
 
47
47
  /* label */
48
48
  /*@doc Define o posicionamento do label.*/
49
- --text-input__label--floating--top: 6px;
49
+ --ez-text-input__label--floating--top: 6px;
50
50
  /*@doc Define o posicionamento do label.*/
51
- --text-input__label--padding-top: 12px;
51
+ --ez-text-input__label--padding-top: 12px;
52
52
  /*@doc Define o espaçamento esquerdo do label.*/
53
- --text-input__label--padding-left: 14px;
53
+ --ez-text-input__label--padding-left: 14px;
54
54
  /*@doc Define o espaçamento direito do label.*/
55
- --text-input__label--padding-right: 12px;
55
+ --ez-text-input__label--padding-right: 12px;
56
56
 
57
57
 
58
58
  /***************
@@ -63,7 +63,7 @@
63
63
  flex-wrap: wrap;
64
64
  position: relative;
65
65
  /*public*/
66
- width: var(--text-input--width);
66
+ width: var(--ez-text-input--width);
67
67
  }
68
68
 
69
69
  input {
@@ -74,40 +74,40 @@ input {
74
74
  font-weight: var(--text-weight--large, 600);
75
75
 
76
76
  /*public*/
77
- height: var(--text-input--height);
78
- border-radius: var(--text-input--border-radius);
79
- font-family: var(--text-input--font-family);
80
- font-size: var(--text-input--font-size);
81
- border: var(--text-input__input--border);
82
- border-color: var(--text-input__input--border-color);
83
- background-color: var(--text-input__input--background-color);
84
- color: var(--text-input--color);
77
+ height: var(--ez-text-input--height);
78
+ border-radius: var(--ez-text-input--border-radius);
79
+ font-family: var(--ez-text-input--font-family);
80
+ font-size: var(--ez-text-input--font-size);
81
+ border: var(--ez-text-input__input--border);
82
+ border-color: var(--ez-text-input__input--border-color);
83
+ background-color: var(--ez-text-input__input--background-color);
84
+ color: var(--ez-text-input--color);
85
85
  }
86
86
 
87
87
  input:disabled {
88
88
  /*public*/
89
- background-color: var(--text-input__input--disabled--background-color);
90
- color: var(--text-input__input--disabled--color);
89
+ background-color: var(--ez-text-input__input--disabled--background-color);
90
+ color: var(--ez-text-input__input--disabled--color);
91
91
  }
92
92
 
93
93
  input:focus {
94
94
  /*private*/
95
95
  outline: none;
96
96
  /*public*/
97
- border-color: var(--text-input__input--focus--border-color);
97
+ border-color: var(--ez-text-input__input--focus--border-color);
98
98
  }
99
99
 
100
100
  input.icon--left {
101
- padding-left: var(--text-input__icon--width);
101
+ padding-left: var(--ez-text-input__icon--width);
102
102
  }
103
103
 
104
104
  input.icon--right {
105
- padding-right: var(--text-input__icon--width);
105
+ padding-right: var(--ez-text-input__icon--width);
106
106
  }
107
107
 
108
108
  input.hasError {
109
- color: var(--text-input--color);
110
- border-color: var(--text-input__input--error--border-color);
109
+ color: var(--ez-text-input--color);
110
+ border-color: var(--ez-text-input__input--error--border-color);
111
111
  }
112
112
 
113
113
  input.text--right {
@@ -126,14 +126,14 @@ input.text--right {
126
126
  white-space: nowrap;
127
127
 
128
128
  /*public*/
129
- font-family: var(--text-input--font-family);
130
- font-size: var(--text-input__message_box--font-size);
131
- color: var(--text-input__message_box--info--color);
129
+ font-family: var(--ez-text-input--font-family);
130
+ font-size: var(--ez-text-input__message_box--font-size);
131
+ color: var(--ez-text-input__message_box--info--color);
132
132
  }
133
133
 
134
134
  .hasError {
135
135
  /*public*/
136
- color: var(--text-input__message_box--error--color);
136
+ color: var(--ez-text-input__message_box--error--color);
137
137
  }
138
138
 
139
139
  .input__label {
@@ -146,49 +146,49 @@ input.text--right {
146
146
  white-space: nowrap;
147
147
  -webkit-transition: font-size .05s, top .05s;
148
148
  transition: font-size .05s, top .05s;
149
- width: calc(100% - var(--text-input__label--padding-right));
150
- left: var(--text-input--space--medium);
149
+ width: calc(100% - var(--ez-text-input__label--padding-right));
150
+ left: var(--ez-text-input--space--medium);
151
151
 
152
152
  /*public*/
153
- font-family: var(--text-input--font-family);
154
- font-size: var(--text-input--font-size);
155
- font-weight: var(--text-input--font-weight);
156
- color: var(--text-input--color);
157
- top: var(--text-input__label--padding-top);
158
- left: var(--text-input__label--padding-left);
159
- padding-right: var(--text-input__label--padding-right);
153
+ font-family: var(--ez-text-input--font-family);
154
+ font-size: var(--ez-text-input--font-size);
155
+ font-weight: var(--ez-text-input--font-weight);
156
+ color: var(--ez-text-input--color);
157
+ top: var(--ez-text-input__label--padding-top);
158
+ left: var(--ez-text-input__label--padding-left);
159
+ padding-right: var(--ez-text-input__label--padding-right);
160
160
  }
161
161
 
162
162
  .input__label--floated {
163
- font-family: var(--text-input--font-family);
163
+ font-family: var(--ez-text-input--font-family);
164
164
  font-size: var(--text--extra-small);
165
165
  color: var(--text--primary);
166
- top: var(--text-input__label--floating--top);
166
+ top: var(--ez-text-input__label--floating--top);
167
167
  }
168
168
 
169
169
  .input__label--disabled {
170
- color: var(--text-input__input--disabled--color);
170
+ color: var(--ez-text-input__input--disabled--color);
171
171
  }
172
172
 
173
173
  .input__label--left {
174
174
  /*public*/
175
175
  text-align: left;
176
- left: calc(var(--text-input__icon--width) + 2px);
176
+ left: calc(var(--ez-text-input__icon--width) + 2px);
177
177
  /*borda*/
178
- width: calc(100% - var(--text-input__icon--width));
178
+ width: calc(100% - var(--ez-text-input__icon--width));
179
179
  }
180
180
 
181
181
  .input__label--right {
182
182
  /*public*/
183
- right: var(--text-input__icon--width);
184
- width: calc(100% - var(--text-input__icon--width));
183
+ right: var(--ez-text-input__icon--width);
184
+ width: calc(100% - var(--ez-text-input__icon--width));
185
185
  }
186
186
 
187
187
  /* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
188
188
  .input__label--left.input__label--right {
189
- left: calc(var(--text-input__icon--width) + 2px);
189
+ left: calc(var(--ez-text-input__icon--width) + 2px);
190
190
  /*borda*/
191
- width: calc(100% - var(--text-input__icon--width) * 2);
191
+ width: calc(100% - var(--ez-text-input__icon--width) * 2);
192
192
  }
193
193
 
194
194
  .input--with--label {
@@ -1,5 +1,5 @@
1
- import { Component, Prop, h, Watch, Host, Method, Event, Element } from '@stencil/core';
2
- import { MaskFormatter } from '@sankhyalabs/core';
1
+ import { Component, Prop, h, Watch, Host, Method, Event, Element } from "@stencil/core";
2
+ import { MaskFormatter } from "@sankhyalabs/core";
3
3
  export class EzTextInput {
4
4
  constructor() {
5
5
  /**
@@ -8,14 +8,14 @@ export class EzTextInput {
8
8
  this.enabled = true;
9
9
  }
10
10
  showError() {
11
- const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
11
+ const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
12
12
  if (hasError) {
13
- this._inputElem.classList.add('hasError');
14
- this._messageBoxElem.classList.add('hasError');
13
+ this._inputElem.classList.add("hasError");
14
+ this._messageBoxElem.classList.add("hasError");
15
15
  }
16
16
  else {
17
- this._inputElem.classList.remove('hasError');
18
- this._messageBoxElem.classList.remove('hasError');
17
+ this._inputElem.classList.remove("hasError");
18
+ this._messageBoxElem.classList.remove("hasError");
19
19
  }
20
20
  }
21
21
  prepareMask() {
@@ -33,7 +33,7 @@ export class EzTextInput {
33
33
  this._inputElem.value = this.value;
34
34
  }
35
35
  this.handleChange();
36
- this.ezChange.emit();
36
+ this.ezChange.emit(this.value);
37
37
  this.adjustFloatingLabel();
38
38
  }
39
39
  adjustFloatingLabel() {
@@ -118,22 +118,22 @@ export class EzTextInput {
118
118
  content.style.justifyContent = "center";
119
119
  content.style.overflow = "hidden";
120
120
  content.style.top = "0px";
121
- content.style.width = "var(--text-input__icon--width)";
122
- content.style.height = "var(--text-input--height)";
121
+ content.style.width = "var(--ez-text-input__icon--width)";
122
+ content.style.height = "var(--ez-text-input--height)";
123
123
  if (slot.name == "leftIcon") {
124
124
  content.style.left = "0px";
125
- content.style.borderRadius = "var(--text-input--border-radius) 0 0 var(--text-input--border-radius)";
126
- this._inputElem.classList.add('icon--left');
125
+ content.style.borderRadius = "var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)";
126
+ this._inputElem.classList.add("icon--left");
127
127
  if (this._labelElem) {
128
- this._labelElem.classList.add('input__label--left');
128
+ this._labelElem.classList.add("input__label--left");
129
129
  }
130
130
  }
131
131
  else if (slot.name == "rightIcon") {
132
132
  content.style.right = "0px";
133
- content.style.borderRadius = "0 var(--text-input--border-radius) var(--text-input--border-radius) 0";
134
- this._inputElem.classList.add('icon--right');
133
+ content.style.borderRadius = "0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0";
134
+ this._inputElem.classList.add("icon--right");
135
135
  if (this._labelElem) {
136
- this._labelElem.classList.add('input__label--right');
136
+ this._labelElem.classList.add("input__label--right");
137
137
  }
138
138
  }
139
139
  }
@@ -1,6 +1,7 @@
1
- import { Element, Component, Prop, h, Watch, Host, Method, getAssetPath } from "@stencil/core";
1
+ import { Element, Component, Prop, h, Watch, Host, Method } from "@stencil/core";
2
2
  import { TimeFormatter, MaskFormatter, NumberUtils } from "@sankhyalabs/core";
3
3
  import CSSVarsUtils from "../../utils/CSSVarsUtils";
4
+ import { getSpritePath } from "../../utils/AssetsUtils";
4
5
  export class EzTimeInput {
5
6
  constructor() {
6
7
  /**
@@ -97,7 +98,7 @@ export class EzTimeInput {
97
98
  render() {
98
99
  return (h(Host, null,
99
100
  h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage },
100
- h("ez-icon", { slot: "leftIcon", href: getAssetPath("./assets/actions-sprite.svg") + "#timer-outline" }))));
101
+ h("ez-icon", { slot: "leftIcon", href: getSpritePath("timer-outline") }))));
101
102
  }
102
103
  static get is() { return "ez-time-input"; }
103
104
  static get encapsulation() { return "shadow"; }
@@ -2,28 +2,28 @@
2
2
 
3
3
  /* Buttons */
4
4
  /*@doc Contém o ícone de fechamento do toast.*/
5
- --toast__btn__close__image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg%22%3E<path d="M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z"/></svg>');
5
+ --ez-toast__btn__close__image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg%22%3E<path d="M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z"/></svg>');
6
6
 
7
7
  /* Container */
8
8
  /*@doc Define a camada em que o container será exibido.*/
9
- --toast__container-z-index: var(--more-visible, 2);
9
+ --ez-toast__container-z-index: var(--more-visible, 2);
10
10
  /*@doc Define a cor de fundo do container.*/
11
- --toast__container--background-color: var(--color--secondary, #383c45);
11
+ --ez-toast__container--background-color: var(--color--secondary, #383c45);
12
12
 
13
13
  /* Icon */
14
14
  /*@doc Define o espaçamento à esquerda do ícone.*/
15
- --toast__icon--padding-left: var(--space--small, 6px);
15
+ --ez-toast__icon--padding-left: var(--space--small, 6px);
16
16
  }
17
17
 
18
18
  .toast__container {
19
19
  position: fixed;
20
20
  display: flex;
21
21
  bottom: 100px;
22
- z-index: var(--toast__container-z-index);
22
+ z-index: var(--ez-toast__container-z-index);
23
23
  left: 100px;
24
24
  width: 30%;
25
25
  box-sizing: border-box;
26
- background-color: var(--toast__container--background-color);
26
+ background-color: var(--ez-toast__container--background-color);
27
27
  border-radius: 6px;
28
28
  align-items: center;
29
29
  padding: 12px;
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  .message__conteiner--icon {
45
- padding-left: var(--toast__icon--padding-left);
45
+ padding-left: var(--ez-toast__icon--padding-left);
46
46
  width: 80%;
47
47
  }
48
48
 
@@ -63,8 +63,8 @@
63
63
  background-color: #FFFFFF;
64
64
  width: 12px;
65
65
  height: 12px;
66
- -webkit-mask-image: var(--toast__btn__close__image);
67
- mask-image: var(--toast__btn__close__image);
66
+ -webkit-mask-image: var(--ez-toast__btn__close__image);
67
+ mask-image: var(--ez-toast__btn__close__image);
68
68
  }
69
69
 
70
70
  .toast__container--oppened {
@@ -10,6 +10,9 @@ export class EzToast {
10
10
  */
11
11
  this.useIcon = false;
12
12
  }
13
+ /**
14
+ * Exibe o componente na tela.
15
+ */
13
16
  async show() {
14
17
  this.container.classList.add("toast__container--oppened");
15
18
  this.container.style.animation = `fadein 0.5s, fadeout 0.5s ${this.fadeTime / 1000}s`;
@@ -105,7 +108,7 @@ export class EzToast {
105
108
  "return": "Promise<void>"
106
109
  },
107
110
  "docs": {
108
- "text": "",
111
+ "text": "Exibe o componente na tela.",
109
112
  "tags": []
110
113
  }
111
114
  }