@sankhyalabs/ezui 1.1.67 → 1.1.68

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 (43) hide show
  1. package/dist/cjs/ez-button_16.cjs.entry.js +42 -50
  2. package/dist/cjs/ez-number-input.cjs.entry.js +9 -9
  3. package/dist/cjs/ez-time-input.cjs.entry.js +6 -6
  4. package/dist/cjs/ezui.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/components/ez-button/ez-button.css +44 -43
  7. package/dist/collection/components/ez-button/ez-button.js +2 -2
  8. package/dist/collection/components/ez-check/ez-check.css +78 -78
  9. package/dist/collection/components/ez-check/ez-check.js +1 -1
  10. package/dist/collection/components/ez-combo-box/ez-combo-box.js +4 -4
  11. package/dist/collection/components/ez-date-input/ez-date-input.js +8 -8
  12. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +6 -6
  13. package/dist/collection/components/ez-icon/ez-icon.css +3 -1
  14. package/dist/collection/components/ez-icon/ez-icon.js +5 -3
  15. package/dist/collection/components/ez-number-input/ez-number-input.js +11 -11
  16. package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +7 -7
  17. package/dist/collection/components/ez-search/ez-search.js +3 -3
  18. package/dist/collection/components/ez-text-area/ez-text-area.js +5 -5
  19. package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
  20. package/dist/collection/components/ez-text-input/ez-text-input.js +11 -35
  21. package/dist/collection/components/ez-time-input/ez-time-input.js +8 -8
  22. package/dist/custom-elements/index.js +65 -73
  23. package/dist/esm/ez-button_16.entry.js +42 -50
  24. package/dist/esm/ez-number-input.entry.js +9 -9
  25. package/dist/esm/ez-time-input.entry.js +6 -6
  26. package/dist/esm/ezui.js +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/ezui/ezui.esm.js +1 -1
  29. package/dist/ezui/{p-d8a47f23.entry.js → p-74e4415e.entry.js} +1 -1
  30. package/dist/ezui/p-7d066b1c.entry.js +1 -0
  31. package/dist/ezui/{p-7f528c19.entry.js → p-f7d7fb7f.entry.js} +1 -1
  32. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -1
  33. package/dist/types/components/ez-date-input/ez-date-input.d.ts +1 -1
  34. package/dist/types/components/ez-icon/ez-icon.d.ts +6 -0
  35. package/dist/types/components/ez-number-input/ez-number-input.d.ts +1 -1
  36. package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +1 -1
  37. package/dist/types/components/ez-search/ez-search.d.ts +1 -1
  38. package/dist/types/components/ez-text-area/ez-text-area.d.ts +1 -1
  39. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -5
  40. package/dist/types/components/ez-time-input/ez-time-input.d.ts +1 -1
  41. package/dist/types/components.d.ts +28 -24
  42. package/package.json +2 -1
  43. package/dist/ezui/p-afc553a4.entry.js +0 -1
@@ -2,55 +2,56 @@
2
2
 
3
3
  /* dimensions */
4
4
  /*@doc Define a largura do componente.*/
5
- --bt--min-width: 100px;
5
+ --button--min-width: 100px;
6
6
 
7
7
  /* dimensions */
8
8
  /*@doc Define a altura do componente.*/
9
- --bt--height: 42px;
9
+ --button--height: 42px;
10
10
  /*@doc Define a largura do slot que contém o ícone.*/
11
- --bt__icon--width: 18px;
11
+ --button__icon--width: 18px;
12
12
  /*@doc Define o espaçamento entre o ícone e o label.*/
13
- --bt__inline__icon--padding: 12px;
13
+ --button__inline__icon--padding: 12px;
14
14
 
15
15
  /*@doc Define o espaçamento superior ao label.*/
16
- --bt--padding-top: var(--space--medium, 12px);
16
+ --button--padding-top: var(--space--medium, 12px);
17
17
  /*@doc Define o espaçamento inferior ao label.*/
18
- --bt--padding-bottom: var(--space--medium, 12px);
18
+ --button--padding-bottom: var(--space--medium, 12px);
19
19
  /*@doc Define o espaçamento a direita do label.*/
20
- --bt--padding-right: var(--space--large, 24px);
20
+ --button--padding-right: var(--space--large, 24px);
21
21
  /*@doc Define o espaçamento a esquerda do label.*/
22
- --bt--padding-left: var(--space--large, 24px);
22
+ --button--padding-left: var(--space--large, 24px);
23
23
 
24
24
  /* general */
25
25
  /*@doc Define a cor do label.*/
26
- --bt--color: var(--text--inverted, #FFF);
26
+ --button--color: var(--text--inverted, #FFF);
27
27
  /*@doc Define o tamanho do label.*/
28
- --bt--font-size: var(--text--medium, 14px);
28
+ --button--font-size: var(--text--medium, 14px);
29
29
  /*@doc Define a família da fonte do label.*/
30
- --bt--font-family: var(--font-pattern, Arial);
30
+ --button--font-family: var(--font-pattern, Arial);
31
31
  /*@doc Define o peso da fonte do label.*/
32
- --bt--font-weight: var(--text-weight--large);
32
+ --button--font-weight: var(--text-weight--large);
33
33
  /*@doc Define a cor de fundo do botão.*/
34
- --bt--background-color: var(--color--primary, #c0c0c0);
34
+ --button--background-color: var(--color--primary, #c0c0c0);
35
35
  /*@doc Define o raio da borda do botão.*/
36
- --bt--border-radius: var(--border--radius-large, 12px);
36
+ --button--border-radius: var(--border--radius-large, 12px);
37
37
  /*@doc Define o estilo da borda do botão.*/
38
- --bt--border: none;
38
+ --button--border: none;
39
39
 
40
40
  /*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
41
- --bt--hover--background-color: var(--color--primary-700, var(--bt--background-color));
41
+ --button--hover--background-color: var(--color--primary-700, var(--button--background-color));
42
42
 
43
43
  /*@doc Define a cor do texto quando o botão está desabilitado.*/
44
- --bt--disabled-color: var(--text--disable);
44
+ --button--disabled-color: var(--text--disable);
45
45
  /*@doc Define a cor de fundo quando o botão está desabilitado.*/
46
- --bt--disabled--background-color: var(--color--disable-primary);
46
+ --button--disabled--background-color: var(--color--disable-primary);
47
47
 
48
48
  /*@doc Define o estido da borda quando o botão está selecionado.*/
49
- --bt--focus--border: var(--bt--border);
49
+ --button--focus--border: var(--button--border);
50
50
  /*@doc Define a sombra do botão quando selecionado.*/
51
- --bt--focus--box-shadow: none;
51
+ --button--focus--box-shadow: none;
52
52
 
53
- --bt--link-color: var(--title--primary, '#C0C0C0');
53
+ /*@doc Define a cor do texto do botão no modo link.*/
54
+ --button--link-color: var(--title--primary, '#C0C0C0');
54
55
  }
55
56
 
56
57
  button {
@@ -63,35 +64,35 @@ button {
63
64
  transition: background-color 0.2s linear;
64
65
 
65
66
  /*public*/
66
- min-width: var(--bt--min-width);
67
- height: var(--bt--height);
68
- font-family: var(--bt--font-family);
69
- font-size: var(--bt--font-size);
70
- font-weight: var(--bt--font-weight);
71
- padding: var(--bt--padding-top) var(--bt--padding-right) var(--bt--padding-bottom) var(--bt--padding-left);
72
- border-radius: var(--bt--border-radius);
73
-
74
- background-color: var(--bt--background-color);
75
- color: var(--bt--color);
76
- fill: var(--bt--color);
77
- border: var(--bt--border);
67
+ min-width: var(--button--min-width);
68
+ height: var(--button--height);
69
+ font-family: var(--button--font-family);
70
+ font-size: var(--button--font-size);
71
+ font-weight: var(--button--font-weight);
72
+ padding: var(--button--padding-top) var(--button--padding-right) var(--button--padding-bottom) var(--button--padding-left);
73
+ border-radius: var(--button--border-radius);
74
+
75
+ background-color: var(--button--background-color);
76
+ color: var(--button--color);
77
+ fill: var(--button--color);
78
+ border: var(--button--border);
78
79
  }
79
80
 
80
81
  button:hover {
81
- background-color: var(--bt--hover--background-color);
82
+ background-color: var(--button--hover--background-color);
82
83
  }
83
84
 
84
85
  button:focus {
85
86
  /*FIXME: Estranho o botão não dar nenhuma indicação de que recebeu foco*/
86
87
  outline: none;
87
- border: var(--bt--focus--border);
88
- box-shadow: var(--bt--focus--box-shadow);
88
+ border: var(--button--focus--border);
89
+ box-shadow: var(--button--focus--box-shadow);
89
90
  }
90
91
 
91
92
  button:disabled {
92
- background-color: var(--bt--disabled--background-color);
93
- color: var(--bt--disabled-color);
94
- fill: var(--bt--disabled-color);
93
+ background-color: var(--button--disabled--background-color);
94
+ color: var(--button--disabled-color);
95
+ fill: var(--button--disabled-color);
95
96
  border: none;
96
97
  cursor: no-drop;
97
98
  }
@@ -105,10 +106,10 @@ button.icon {
105
106
 
106
107
  a {
107
108
  /*private*/
108
- font-family: var(--bt--font-family);
109
- font-size: var(--bt--font-size);
110
- font-weight: var(--bt--font-weight);
111
- color: var(--bt--link-color);
109
+ font-family: var(--button--font-family);
110
+ font-size: var(--button--font-size);
111
+ font-weight: var(--button--font-weight);
112
+ color: var(--button--link-color);
112
113
  cursor: pointer;
113
114
  display: flex;
114
115
  align-items: center;
@@ -16,10 +16,10 @@ export class EzButton {
16
16
  if (this.mode == "link") {
17
17
  content.style.display = "inline";
18
18
  if (slot.name == "leftIcon") {
19
- content.style.paddingRight = "var(--bt__inline__icon--padding)";
19
+ content.style.paddingRight = "var(--button__inline__icon--padding)";
20
20
  }
21
21
  else if (slot.name == "rightIcon") {
22
- content.style.paddingLeft = "var(--bt__inline__icon--padding)";
22
+ content.style.paddingLeft = "var(--button__inline__icon--padding)";
23
23
  }
24
24
  }
25
25
  }
@@ -5,96 +5,96 @@
5
5
  ***************/
6
6
  /*dimensions */
7
7
  /*@doc Define a largura do box do checkbox.*/
8
- --chk--box--width: 18px;
8
+ --check--box--width: 18px;
9
9
  /*@doc Define a altura do box do checkbox.*/
10
- --chk--box--height: 18px;
10
+ --check--box--height: 18px;
11
11
  /*@doc Define a largura do input do checkbox.*/
12
- --chk--width: calc(var(--chk--box--width) + 14px);
12
+ --check--width: calc(var(--check--box--width) + 14px);
13
13
  /*@doc Define a altura do input do checkbox */
14
- --chk--height: calc(var(--chk--box--width) + 14px);
14
+ --check--height: calc(var(--check--box--width) + 14px);
15
15
 
16
16
  /*general*/
17
17
  /*@doc Define o raio da borda do input do checkbox.*/
18
- --chk--border-radius: var(--border--radius-small);
18
+ --check--border-radius: var(--border--radius-small);
19
19
 
20
20
  /*box*/
21
21
  /*@doc Define a cor de fundo do input do checkbox quando marcado.*/
22
- --chk--checked--background-color: var(--color--primary-200);
22
+ --check--checked--background-color: var(--color--primary-200);
23
23
  /*@doc Define a cor de fundo do input do checkbox quando focado.*/
24
- --chk--focus--background-color: var(--color--strokes, #FFFFFF);
24
+ --check--focus--background-color: var(--color--strokes, #FFFFFF);
25
25
  /*@doc Define a cor de fundo do input do checkbox quando o cursor está sobre ele.*/
26
- --chk--hover--background-color: var(--background--medium);
26
+ --check--hover--background-color: var(--background--medium);
27
27
  /*@doc Define a cor de fundo do input do checkbox quando marcado e desabilitado.*/
28
- --chk--checked--disabled--background-color: var(--color--disable-secondary);
28
+ --check--checked--disabled--background-color: var(--color--disable-secondary);
29
29
 
30
30
  /*@doc Define o estilo da borda do input do checkbox.*/
31
- --chk--border: var(--border--medium) var(--title--primary);
31
+ --check--border: var(--border--medium) var(--title--primary);
32
32
  /*@doc Define o estilo da borda do input do checkbox quando desabilitado.*/
33
- --chk--disabled--border: var(--border--medium) var(--color--strokes);
33
+ --check--disabled--border: var(--border--medium) var(--color--strokes);
34
34
  /*@doc Define o estilo da borda do input do checkbox quando marcado.*/
35
- --chk--checked--border: var(--border--medium) var(--color--primary);
35
+ --check--checked--border: var(--border--medium) var(--color--primary);
36
36
 
37
37
 
38
38
  /*@doc Define a cor de fundo do input do checkbox quando ativo e com o cursor sobre ele.*/
39
- --chk--checked--hover--background-color: var(--color--primary-200);
39
+ --check--checked--hover--background-color: var(--color--primary-200);
40
40
  /*@doc Define a cor de fundo do input do checkbox quando ativo e focado.*/
41
- --chk--checked--focus--background-color: var(--color--primary-300, #FFFFFF);
41
+ --check--checked--focus--background-color: var(--color--primary-300, #FFFFFF);
42
42
 
43
43
  /*check*/
44
44
  /*@doc Contém o ícone do input marcado.*/
45
- --chk--check--image: url('data:image/svg+xml;utf8,<svg width="8" height="7" viewBox="0 0 8 7" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z"/></svg>');
45
+ --check--check--image: url('data:image/svg+xml;utf8,<svg width="8" height="7" viewBox="0 0 8 7" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z"/></svg>');
46
46
  /*@doc Define a cor de fundo do slot do ícone quando marcado.*/
47
- --chk--check--background-color: var(--color--primary);
47
+ --check--check--background-color: var(--color--primary);
48
48
  /*@doc Define a cor de fundo do slot do ícone quando marcado e desabilitado.*/
49
- --chk--check--disabled--background-color: var(--color--strokes);
49
+ --check--check--disabled--background-color: var(--color--strokes);
50
50
 
51
51
  /***************
52
52
  Switch mode
53
53
  ***************/
54
54
  /*dimensions */
55
55
  /*@doc Define a largura do slider do checkbox.*/
56
- --swt--slider--width: 34px;
56
+ --switch--slider--width: 34px;
57
57
  /*@doc Define a altura do slider do checkbox.*/
58
- --swt--slider--height: 14px;
58
+ --switch--slider--height: 14px;
59
59
  /*@doc Define a largura do pino do slider do checkbox.*/
60
- --swt--pin--width: 20px;
60
+ --switch--pin--width: 20px;
61
61
  /*@doc Define a altura do pino do slider do checkbox.*/
62
- --swt--pin--height: 20px;
62
+ --switch--pin--height: 20px;
63
63
  /*@doc Define a largura do slider quando focado.*/
64
- --swt--focus--width: 32px;
64
+ --switch--focus--width: 32px;
65
65
  /*@doc Define a altura do slider quando focado.*/
66
- --swt--focus--height: 32px;
66
+ --switch--focus--height: 32px;
67
67
 
68
68
  /*background*/
69
69
  /*@doc Define a cor de fundo do checkbox no modo switch.*/
70
- --swt--background-color: var(--color--strokes);
70
+ --switch--background-color: var(--color--strokes);
71
71
  /*@doc Define a cor de fundo do checkbox desabilitado no modo switch.*/
72
- --swt--disabled--background-color: var(--color--disable-secondary);
72
+ --switch--disabled--background-color: var(--color--disable-secondary);
73
73
  /*@doc Define a cor de fundo do checkbox marcado no modo switch.*/
74
- --swt--checked--background-color: var(--color--primary-300);
74
+ --switch--checked--background-color: var(--color--primary-300);
75
75
 
76
76
  /*pin*/
77
77
  /*@doc Define a cor de fundo do pino do slider. */
78
- --swt--pin--background-color: var(--background--xlight);
78
+ --switch--pin--background-color: var(--background--xlight);
79
79
  /*@doc Define a cor de fundo do pino do slider quando desabilitado. */
80
- --swt--pin--disabled--background-color: var(--color--disable-secondary);
80
+ --switch--pin--disabled--background-color: var(--color--disable-secondary);
81
81
  /*@doc Define a cor de fundo do pino do slider quando marcado. */
82
- --swt--pin--checked--background-color: var(--color--primary);
82
+ --switch--pin--checked--background-color: var(--color--primary);
83
83
  /*@doc Define a cor de fundo do pino do slider quando marcado e desabilitado1. */
84
- --swt--pin--checked--disabled--background-color: #E8F7F4;
84
+ --switch--pin--checked--disabled--background-color: #E8F7F4;
85
85
  /*@doc Define a cor de fundo do pino do slider quando focado. */
86
- --swt--pin--focus--background-color: var(--text--disable);
86
+ --switch--pin--focus--background-color: var(--text--disable);
87
87
  /*@doc Define a cor de fundo do pino do slider quando marcado e focado. */
88
- --swt--pin--checked--focus--background-color: var(--color--primary);
88
+ --switch--pin--checked--focus--background-color: var(--color--primary);
89
89
 
90
90
  /*@doc Define o tamanho da fonte do label.*/
91
- --chk--label--font-size: var(--text--medium, 14px);
91
+ --check--label--font-size: var(--text--medium, 14px);
92
92
  /*@doc Define a família da fonte do label.*/
93
- --chk--label--font-family: var(--font-pattern, Arial);
93
+ --check--label--font-family: var(--font-pattern, Arial);
94
94
  /*@doc Define a cor da fonte do label.*/
95
- --chk--label--color: var(--title--primary, #000);
95
+ --check--label--color: var(--title--primary, #000);
96
96
  /*@doc Define a cor da fonte do label quando desabilitado.*/
97
- --chk--label--disabled--color: var(--text--disable, #AFB6C0);
97
+ --check--label--disabled--color: var(--text--disable, #AFB6C0);
98
98
 
99
99
  /***************
100
100
  host style
@@ -123,14 +123,14 @@ input.regularMode {
123
123
 
124
124
 
125
125
  /*public*/
126
- width: var(--chk--width);
127
- height: var(--chk--height);
126
+ width: var(--check--width);
127
+ height: var(--check--height);
128
128
  }
129
129
 
130
130
 
131
131
  input.regularMode:enabled:hover {
132
132
  /*public*/
133
- background-color: var(--chk--hover--background-color);
133
+ background-color: var(--check--hover--background-color);
134
134
  }
135
135
 
136
136
  input.regularMode:enabled:focus {
@@ -138,7 +138,7 @@ input.regularMode:enabled:focus {
138
138
  outline: none;
139
139
 
140
140
  /*public*/
141
- background-color: var(--chk--focus--background-color);
141
+ background-color: var(--check--focus--background-color);
142
142
  }
143
143
 
144
144
  input.regularMode:disabled {
@@ -154,38 +154,38 @@ input.regularMode::before {
154
154
  display: block;
155
155
 
156
156
  /*public*/
157
- width: var(--chk--box--width);
158
- height: var(--chk--box--height);
159
- border-radius: var(--chk--border-radius);
160
- border: var(--chk--border);
157
+ width: var(--check--box--width);
158
+ height: var(--check--box--height);
159
+ border-radius: var(--check--border-radius);
160
+ border: var(--check--border);
161
161
  }
162
162
 
163
163
  input.regularMode:disabled::before {
164
164
  /*public*/
165
- border: var(--chk--disabled--border);
165
+ border: var(--check--disabled--border);
166
166
  }
167
167
 
168
168
  /*-------------------------------checked---------------------------------*/
169
169
  input.regularMode:checked:enabled:hover {
170
170
  /*public*/
171
- background-color: var(--chk--checked--hover--background-color);
171
+ background-color: var(--check--checked--hover--background-color);
172
172
  }
173
173
 
174
174
  input.regularMode:checked:enabled:focus {
175
175
  /*public*/
176
- background-color: var(--chk--checked--focus--background-color);
176
+ background-color: var(--check--checked--focus--background-color);
177
177
  }
178
178
 
179
179
  input.regularMode:checked::before {
180
180
  /*public*/
181
- border: var(--chk--checked--border);
182
- background-color: var(--chk--checked--background-color);
181
+ border: var(--check--checked--border);
182
+ background-color: var(--check--checked--background-color);
183
183
  }
184
184
 
185
185
  input.regularMode:checked:disabled:before {
186
186
  /*public*/
187
- border: var(--chk--disabled--border);
188
- background-color: var(--chk--checked--disabled--background-color);
187
+ border: var(--check--disabled--border);
188
+ background-color: var(--check--checked--disabled--background-color);
189
189
  }
190
190
 
191
191
  input.regularMode:checked::after {
@@ -193,18 +193,18 @@ input.regularMode:checked::after {
193
193
  display: flex;
194
194
  position: absolute;
195
195
  content: "";
196
- background-color: var(--chk--check--background-color);
196
+ background-color: var(--check--check--background-color);
197
197
  width: 8px;
198
198
  height: 7px;
199
199
 
200
200
  /*public*/
201
- -webkit-mask-image: var(--chk--check--image);
202
- mask-image: var(--chk--check--image);
201
+ -webkit-mask-image: var(--check--check--image);
202
+ mask-image: var(--check--check--image);
203
203
  }
204
204
 
205
205
  input.regularMode:checked:disabled::after {
206
206
  /*public*/
207
- background-color: var(--chk--check--disabled--background-color);
207
+ background-color: var(--check--check--disabled--background-color);
208
208
  }
209
209
 
210
210
  /******** SWITCH MODE ********/
@@ -222,14 +222,14 @@ input.switchMode {
222
222
  transition: background-color var(--transition);
223
223
 
224
224
  /*public*/
225
- width: var(--swt--slider--width);
226
- height: var(--swt--slider--height);
227
- background-color: var(--swt--background-color);
225
+ width: var(--switch--slider--width);
226
+ height: var(--switch--slider--height);
227
+ background-color: var(--switch--background-color);
228
228
  }
229
229
 
230
230
  input.switchMode:disabled {
231
231
  /*public*/
232
- background-color: var(--swt--disabled--background-color);
232
+ background-color: var(--switch--disabled--background-color);
233
233
  }
234
234
 
235
235
  input.switchMode::after {
@@ -244,14 +244,14 @@ input.switchMode::after {
244
244
  border-radius: 50%;
245
245
 
246
246
  /*public*/
247
- width: var(--swt--pin--width);
248
- height: var(--swt--pin--height);
249
- background-color: var(--swt--pin--background-color);
247
+ width: var(--switch--pin--width);
248
+ height: var(--switch--pin--height);
249
+ background-color: var(--switch--pin--background-color);
250
250
  }
251
251
 
252
252
  input.switchMode:disabled::after {
253
253
  /*public*/
254
- background-color: var(--swt--pin--disabled--background-color);
254
+ background-color: var(--switch--pin--disabled--background-color);
255
255
  }
256
256
 
257
257
  /*-------------------------------ON---------------------------------*/
@@ -260,7 +260,7 @@ input.switchMode:checked {
260
260
  transition: background-color var(--transition);
261
261
 
262
262
  /*public*/
263
- background-color: var(--swt--checked--background-color);
263
+ background-color: var(--switch--checked--background-color);
264
264
  }
265
265
 
266
266
  input.switchMode::before {
@@ -273,11 +273,11 @@ input.switchMode::before {
273
273
  opacity: 0;
274
274
 
275
275
  /*public*/
276
- width: var(--swt--focus--width);
277
- height: var(--swt--focus--height);
278
- top: calc((var(--swt--slider--height) - var(--swt--focus--height)) / 2);
279
- left: calc((var(--swt--pin--width) - var(--swt--focus--width))/2);
280
- background-color: var(--swt--pin--focus--background-color);
276
+ width: var(--switch--focus--width);
277
+ height: var(--switch--focus--height);
278
+ top: calc((var(--switch--slider--height) - var(--switch--focus--height)) / 2);
279
+ left: calc((var(--switch--pin--width) - var(--switch--focus--width))/2);
280
+ background-color: var(--switch--pin--focus--background-color);
281
281
  }
282
282
 
283
283
  input.switchMode:focus::before {
@@ -288,24 +288,24 @@ input.switchMode:focus::before {
288
288
 
289
289
  input.switchMode:checked:focus::before {
290
290
  /*private*/
291
- background-color: var(--swt--pin--checked--focus--background-color);
292
- transform: translateX(calc(var(--swt--slider--width) - var(--swt--pin--width)));
291
+ background-color: var(--switch--pin--checked--focus--background-color);
292
+ transform: translateX(calc(var(--switch--slider--width) - var(--switch--pin--width)));
293
293
  }
294
294
 
295
295
  input.switchMode:checked::after {
296
296
  /*private*/
297
297
  transition: transform var(--transition);
298
298
  transition: background-color var(--transition);
299
- transform: translateX(calc(var(--swt--slider--width) - var(--swt--pin--width))) translateY(-3px);
299
+ transform: translateX(calc(var(--switch--slider--width) - var(--switch--pin--width))) translateY(-3px);
300
300
  box-shadow: var(--shadow);
301
301
 
302
302
  /*public*/
303
- background-color: var(--swt--pin--checked--background-color);
303
+ background-color: var(--switch--pin--checked--background-color);
304
304
  }
305
305
 
306
306
  input.switchMode:checked:disabled::after {
307
307
  /*public*/
308
- background-color: var(--swt--pin--checked--disabled--background-color);
308
+ background-color: var(--switch--pin--checked--disabled--background-color);
309
309
  }
310
310
 
311
311
  .label {
@@ -313,14 +313,14 @@ input.switchMode:checked:disabled::after {
313
313
  white-space: nowrap;
314
314
  overflow: hidden;
315
315
  text-overflow: ellipsis;
316
- color: var(--chk--label--color);
316
+ color: var(--check--label--color);
317
317
  text-shadow: var(--text-shadow);
318
- font-size: var(--chk--label--font-size);
319
- font-family: var(--chk--label--font-family);
318
+ font-size: var(--check--label--font-size);
319
+ font-family: var(--check--label--font-family);
320
320
  cursor: default;
321
321
  padding-left: var(--space--small);
322
322
  }
323
323
 
324
324
  .label--disabled {
325
- color: var(--chk--label--disabled--color);
325
+ color: var(--check--label--disabled--color);
326
326
  }
@@ -55,7 +55,7 @@ export class EzCheck {
55
55
  render() {
56
56
  return (h(Host, null,
57
57
  h("input", { type: "checkbox", class: "regularMode", checked: this.value === true, onChange: () => { this.changeValue(); }, disabled: !this.enabled, ref: (el) => this._inputElem = el }),
58
- this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : null));
58
+ this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
59
59
  }
60
60
  static get is() { return "ez-check"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -58,7 +58,7 @@ export class EzComboBox {
58
58
  //FIXME: Provavelmente isso fará com que o popup abra em uma
59
59
  //posição errada no futuro. Preferi fazer simples no começo,
60
60
  //porque não quis onerar o text input com essa funcionalidade...
61
- const top = this.errormessage ? '0px' : '-17px';
61
+ const top = this.errorMessage ? '0px' : '-17px';
62
62
  this._floatingID = FloatingManager.float(this._optionsList, this._listContainer, { autoClose: true, top });
63
63
  window.requestAnimationFrame(() => {
64
64
  this._optionsList.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
@@ -228,7 +228,7 @@ export class EzComboBox {
228
228
  }
229
229
  render() {
230
230
  return (h(Host, null,
231
- h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), errormessage: this.errormessage }, this.searchmode ?
231
+ h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), errorMessage: this.errorMessage }, this.searchmode ?
232
232
  h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions('ADVANCED'); }, slot: "leftIcon" })
233
233
  :
234
234
  h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })),
@@ -322,7 +322,7 @@ export class EzComboBox {
322
322
  "text": "Array no formato \"{value: string, label: string} que alimenta as op\u00E7\u00F5es do Combobox\""
323
323
  }
324
324
  },
325
- "errormessage": {
325
+ "errorMessage": {
326
326
  "type": "string",
327
327
  "mutable": true,
328
328
  "complexType": {
@@ -336,7 +336,7 @@ export class EzComboBox {
336
336
  "tags": [],
337
337
  "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
338
338
  },
339
- "attribute": "errormessage",
339
+ "attribute": "error-message",
340
340
  "reflect": true
341
341
  },
342
342
  "searchmode": {
@@ -11,7 +11,7 @@ export class EzDateInput {
11
11
  this._textInput.label = this.label;
12
12
  }
13
13
  setErrorMessage() {
14
- this._textInput.errormessage = this.errormessage;
14
+ this._textInput.errorMessage = this.errorMessage;
15
15
  }
16
16
  applyValueToInput() {
17
17
  if (this._textInput) {
@@ -20,7 +20,7 @@ export class EzDateInput {
20
20
  }
21
21
  changeValue(newValue) {
22
22
  newValue = newValue == null ? null : DateUtils.clearTime(newValue);
23
- this._textInput.errormessage = "";
23
+ this._textInput.errorMessage = "";
24
24
  if (this.getTextValue(newValue) !== this.getTextValue(this.value)) {
25
25
  this.value = newValue;
26
26
  this.ezChange.emit();
@@ -32,7 +32,7 @@ export class EzDateInput {
32
32
  //FIXME: Provavelmente isso fará com que o popup abra em uma
33
33
  //posição errada no futuro. Preferi fazer simples no começo,
34
34
  //porque não quis onerar o text input com essa funcionalidade...
35
- const top = this._textInput.errormessage ? 0 : -17;
35
+ const top = this._textInput.errorMessage ? 0 : -17;
36
36
  this._calendar.fitVertical(top, this._elem.clientHeight);
37
37
  }
38
38
  hideCalendar() {
@@ -51,7 +51,7 @@ export class EzDateInput {
51
51
  }
52
52
  }
53
53
  else {
54
- this._textInput.errormessage = "O valor digitado não é uma data válida";
54
+ this._textInput.errorMessage = "O valor digitado não é uma data válida";
55
55
  }
56
56
  }
57
57
  getTextValue(d) {
@@ -60,7 +60,7 @@ export class EzDateInput {
60
60
  render() {
61
61
  return (h(Host, null,
62
62
  h("ez-text-input", { class: "text-input", ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { if (event.key === 'H' || event.key === 'h')
63
- this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errormessage: this.errormessage },
63
+ this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage },
64
64
  h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
65
65
  h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
66
66
  }
@@ -127,7 +127,7 @@ export class EzDateInput {
127
127
  "reflect": true,
128
128
  "defaultValue": "true"
129
129
  },
130
- "errormessage": {
130
+ "errorMessage": {
131
131
  "type": "string",
132
132
  "mutable": true,
133
133
  "complexType": {
@@ -141,7 +141,7 @@ export class EzDateInput {
141
141
  "tags": [],
142
142
  "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
143
143
  },
144
- "attribute": "errormessage",
144
+ "attribute": "error-message",
145
145
  "reflect": true
146
146
  }
147
147
  }; }
@@ -166,7 +166,7 @@ export class EzDateInput {
166
166
  "propName": "label",
167
167
  "methodName": "setLabel"
168
168
  }, {
169
- "propName": "errormessage",
169
+ "propName": "errorMessage",
170
170
  "methodName": "setErrorMessage"
171
171
  }, {
172
172
  "propName": "value",