@masterkeymaterial/ui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/fesm2022/masterkeymaterial-ui.mjs +6457 -0
  2. package/fesm2022/masterkeymaterial-ui.mjs.map +1 -0
  3. package/package.json +14 -5
  4. package/types/masterkeymaterial-ui.d.ts +928 -0
  5. package/ng-package.json +0 -10
  6. package/src/elements/ui-button/ui-button.css +0 -229
  7. package/src/elements/ui-button/ui-button.html +0 -12
  8. package/src/elements/ui-button/ui-button.ts +0 -133
  9. package/src/elements/ui-check-box/ui-check-box.css +0 -66
  10. package/src/elements/ui-check-box/ui-check-box.html +0 -5
  11. package/src/elements/ui-check-box/ui-check-box.ts +0 -65
  12. package/src/elements/ui-chip/ui-chip.css +0 -24
  13. package/src/elements/ui-chip/ui-chip.html +0 -3
  14. package/src/elements/ui-chip/ui-chip.ts +0 -25
  15. package/src/elements/ui-drop-zone/ui-drop-zone.css +0 -91
  16. package/src/elements/ui-drop-zone/ui-drop-zone.html +0 -8
  17. package/src/elements/ui-drop-zone/ui-drop-zone.ts +0 -153
  18. package/src/elements/ui-file-list/ui-file-list.css +0 -43
  19. package/src/elements/ui-file-list/ui-file-list.html +0 -17
  20. package/src/elements/ui-file-list/ui-file-list.ts +0 -22
  21. package/src/elements/ui-list-errors/ui-list-errors.css +0 -30
  22. package/src/elements/ui-list-errors/ui-list-errors.html +0 -10
  23. package/src/elements/ui-list-errors/ui-list-errors.ts +0 -14
  24. package/src/elements/ui-loading/ui-loading.css +0 -13
  25. package/src/elements/ui-loading/ui-loading.html +0 -1
  26. package/src/elements/ui-loading/ui-loading.ts +0 -10
  27. package/src/elements/ui-menu/ui-menu.css +0 -69
  28. package/src/elements/ui-menu/ui-menu.html +0 -20
  29. package/src/elements/ui-menu/ui-menu.ts +0 -267
  30. package/src/elements/ui-procurar/ui-procurar.css +0 -48
  31. package/src/elements/ui-procurar/ui-procurar.html +0 -14
  32. package/src/elements/ui-procurar/ui-procurar.ts +0 -82
  33. package/src/elements/ui-progress/ui-progress.css +0 -0
  34. package/src/elements/ui-progress/ui-progress.html +0 -1
  35. package/src/elements/ui-progress/ui-progress.ts +0 -15
  36. package/src/elements/ui-select/ui-select.css +0 -211
  37. package/src/elements/ui-select/ui-select.html +0 -46
  38. package/src/elements/ui-select/ui-select.ts +0 -482
  39. package/src/elements/ui-slide/ui-slide.css +0 -75
  40. package/src/elements/ui-slide/ui-slide.html +0 -7
  41. package/src/elements/ui-slide/ui-slide.ts +0 -61
  42. package/src/fields/Base/BaseFieldsForm/BaseFieldsForm.component.ts +0 -113
  43. package/src/fields/Base/BaseFieldsValues/BaseFieldsValues.ts +0 -112
  44. package/src/fields/Formulario/Formulario.ts +0 -1056
  45. package/src/fields/Formulario/form-action/form-action.css +0 -98
  46. package/src/fields/Formulario/form-action/form-action.html +0 -75
  47. package/src/fields/Formulario/form-action/form-action.ts +0 -187
  48. package/src/fields/Formulario/form-controls/form-controls.css +0 -108
  49. package/src/fields/Formulario/form-controls/form-controls.html +0 -105
  50. package/src/fields/Formulario/form-controls/form-controls.ts +0 -122
  51. package/src/fields/Formulario/form-fase/form-fase.css +0 -84
  52. package/src/fields/Formulario/form-fase/form-fase.html +0 -24
  53. package/src/fields/Formulario/form-fase/form-fase.ts +0 -157
  54. package/src/fields/Formulario/form-filter/form-filter.css +0 -50
  55. package/src/fields/Formulario/form-filter/form-filter.html +0 -25
  56. package/src/fields/Formulario/form-filter/form-filter.ts +0 -53
  57. package/src/fields/Formulario/form-no-action/form-no-action.css +0 -32
  58. package/src/fields/Formulario/form-no-action/form-no-action.html +0 -12
  59. package/src/fields/Formulario/form-no-action/form-no-action.ts +0 -21
  60. package/src/fields/Formulario/formated-values/formated-values.css +0 -104
  61. package/src/fields/Formulario/formated-values/formated-values.html +0 -15
  62. package/src/fields/Formulario/formated-values/formated-values.ts +0 -186
  63. package/src/fields/Formulario/single-values/single-values.css +0 -88
  64. package/src/fields/Formulario/single-values/single-values.html +0 -11
  65. package/src/fields/Formulario/single-values/single-values.ts +0 -65
  66. package/src/fields/autocomplete/autocomplete.css +0 -94
  67. package/src/fields/autocomplete/autocomplete.html +0 -38
  68. package/src/fields/autocomplete/autocomplete.ts +0 -294
  69. package/src/fields/button/button.css +0 -7
  70. package/src/fields/button/button.html +0 -19
  71. package/src/fields/button/button.ts +0 -38
  72. package/src/fields/checkbox/checkbox.css +0 -27
  73. package/src/fields/checkbox/checkbox.html +0 -20
  74. package/src/fields/checkbox/checkbox.ts +0 -44
  75. package/src/fields/color/CirculoColorido/circulocolorido.css +0 -50
  76. package/src/fields/color/CirculoColorido/circulocolorido.html +0 -8
  77. package/src/fields/color/CirculoColorido/circulocolorido.ts +0 -24
  78. package/src/fields/color/color.css +0 -15
  79. package/src/fields/color/color.html +0 -24
  80. package/src/fields/color/color.ts +0 -47
  81. package/src/fields/date/date.html +0 -19
  82. package/src/fields/date/date.ts +0 -29
  83. package/src/fields/datetime/datetime.html +0 -19
  84. package/src/fields/datetime/datetime.ts +0 -29
  85. package/src/fields/display/display.css +0 -7
  86. package/src/fields/display/display.html +0 -20
  87. package/src/fields/display/display.ts +0 -43
  88. package/src/fields/editor/editor.css +0 -51
  89. package/src/fields/editor/editor.html +0 -37
  90. package/src/fields/editor/editor.ts +0 -218
  91. package/src/fields/email/email.html +0 -19
  92. package/src/fields/email/email.ts +0 -29
  93. package/src/fields/fields.css +0 -180
  94. package/src/fields/generic/generic.html +0 -3
  95. package/src/fields/generic/generic.ts +0 -91
  96. package/src/fields/hidden/hidden.html +0 -3
  97. package/src/fields/hidden/hidden.ts +0 -20
  98. package/src/fields/icon/icon.css +0 -19
  99. package/src/fields/icon/icon.html +0 -27
  100. package/src/fields/icon/icon.ts +0 -31
  101. package/src/fields/multifactor/multifactor.css +0 -21
  102. package/src/fields/multifactor/multifactor.html +0 -39
  103. package/src/fields/multifactor/multifactor.ts +0 -106
  104. package/src/fields/multikv/multikv.css +0 -43
  105. package/src/fields/multikv/multikv.html +0 -47
  106. package/src/fields/multikv/multikv.ts +0 -88
  107. package/src/fields/multitext/multitext.css +0 -36
  108. package/src/fields/multitext/multitext.html +0 -38
  109. package/src/fields/multitext/multitext.ts +0 -75
  110. package/src/fields/number/number.html +0 -20
  111. package/src/fields/number/number.ts +0 -35
  112. package/src/fields/password/password.html +0 -23
  113. package/src/fields/password/password.ts +0 -37
  114. package/src/fields/search/search.css +0 -0
  115. package/src/fields/search/search.html +0 -19
  116. package/src/fields/search/search.ts +0 -54
  117. package/src/fields/select/select.css +0 -15
  118. package/src/fields/select/select.html +0 -18
  119. package/src/fields/select/select.ts +0 -52
  120. package/src/fields/slide/slide.css +0 -27
  121. package/src/fields/slide/slide.html +0 -20
  122. package/src/fields/slide/slide.ts +0 -45
  123. package/src/fields/text/text.html +0 -19
  124. package/src/fields/text/text.ts +0 -30
  125. package/src/fields/textarea/textarea.css +0 -4
  126. package/src/fields/textarea/textarea.html +0 -20
  127. package/src/fields/textarea/textarea.ts +0 -31
  128. package/src/fields/time/time.html +0 -19
  129. package/src/fields/time/time.ts +0 -29
  130. package/src/fields/upload/upload.css +0 -24
  131. package/src/fields/upload/upload.html +0 -41
  132. package/src/fields/upload/upload.ts +0 -137
  133. package/src/interfaces/interfaces.ts +0 -61
  134. package/src/public-api.ts +0 -38
  135. package/src/util/ClassOf.pipe.ts +0 -11
  136. package/src/util/JsonColorido.pipe.ts +0 -11
  137. package/src/util/util.ts +0 -2151
  138. package/tsconfig.lib.json +0 -16
  139. package/tsconfig.lib.prod.json +0 -9
  140. package/tsconfig.spec.json +0 -13
@@ -1,48 +0,0 @@
1
- :host {
2
- display: flex;
3
- align-items: center;
4
- width: 100%;
5
- height: 100%;
6
- padding: 0px;
7
- }
8
-
9
- .e-procurar-input-container {
10
- width: 200px;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- transition: width 1s cubic-bezier(0.075, 0.82, 0.165, 1);
15
- }
16
-
17
- .e-procurar-input-container.colapsed {
18
- width: 1px;
19
- padding: 0px;
20
- transition: width 1s cubic-bezier(0.075, 0.82, 0.165, 1);
21
- }
22
-
23
- .e-procurar-input {
24
- width: 100%;
25
- height: auto;
26
- cursor: text;
27
- border: none;
28
- outline: none;
29
- background: transparent;
30
- caret-color: var(--sys-primary);
31
- }
32
-
33
- .e-procurar-icone-search {
34
- color: color-mix(in srgb, var(--sys-primary) 60%, var(--sys-background) 40%);
35
- --ui-font-size: 14px;
36
- }
37
-
38
- .e-procurar-botao-clear {
39
- color: color-mix(in srgb, var(--sys-primary) 80%, var(--sys-background) 20%);
40
- margin-left: 7px;
41
- --ui-font-size: 14px;
42
- }
43
-
44
- .e-procurar-input-container.colapsed .e-procurar-icone-search,
45
- .e-procurar-input-container.colapsed .e-procurar-botao-clear {
46
- margin-left: 0px;
47
- --ui-font-size: 12px;
48
- }
@@ -1,14 +0,0 @@
1
- <ui-button tipo="icon" tema="primary" class="e-procurar-icone-search" (clicked)="onClickSearchIcon()" tabindex="-1"
2
- icone="fa fa-search">
3
- </ui-button>
4
- <div class="e-procurar-input-container" [class.colapsed]="computedColapsed()">
5
- <input #searchInput type="text" class="e-procurar-input" [value]="value()" (input)="onInput($event.target.value)"
6
- [name]="'procurar_'+(name() ?? '')" (change)="onChange()" [placeholder]="placeholder() ?? 'Procurar...'"
7
- [disabled]="disabled()" (keyup.Enter)="onSearch()" (keyup.Escape)="onClearSearch()" (focus)="onFocus($event)"
8
- (blur)="onBlur($event)" />
9
- </div>
10
- @if(value().length > 0) {
11
- <ui-button tipo="icon" tema="error" class="e-procurar-botao-clear" (clicked)="onClearSearch()" title="Limpar"
12
- icone="fa fa-times">
13
- </ui-button>
14
- }
@@ -1,82 +0,0 @@
1
- import { Component, computed, ElementRef, input, model, output, signal, viewChild } from '@angular/core';
2
- import { UiButton } from "../ui-button/ui-button";
3
-
4
- @Component({
5
- selector: 'ui-procurar',
6
- templateUrl: './ui-procurar.html',
7
- styleUrl: './ui-procurar.css',
8
- host: { '[class.focused]': 'focused()' },
9
- imports: [UiButton],
10
- })
11
- export class UiProcurar {
12
-
13
- readonly searchInput = viewChild<ElementRef>('searchInput');
14
-
15
- inputed = output<string>();
16
- changed = output<string>();
17
- value = model<string>('');
18
- colapsed = model<boolean | undefined>(false);
19
- autoColapse = model<boolean | undefined>(false);
20
-
21
- computedColapsed = computed(() => {
22
- if (this.focused() || this.value().length > 0) {
23
- return false;
24
- }
25
- if (this.autoColapse()) {
26
- return this.value().length === 0;
27
- }
28
- return this.colapsed() ?? false;
29
- });
30
-
31
- name = input<string | number | undefined>();
32
- placeholder = input<string>();
33
- disabled = input<boolean>();
34
-
35
- focused = signal<boolean | undefined>(false);
36
-
37
- onInput(value: string) {
38
- this.value.set(value);
39
- this.inputed.emit(value);
40
- }
41
-
42
- // Limpa o filtro de opções
43
- onClearSearch() {
44
- this.value.set('');
45
- this.focusSearchInput();
46
- this.onInputed();
47
- this.onChange();
48
- }
49
-
50
- focusSearchInput() {
51
- this.searchInput()?.nativeElement?.focus();
52
- }
53
-
54
- onClickSearchIcon() {
55
- this.focusSearchInput();
56
- this.onInputed();
57
- this.onChange();
58
- }
59
-
60
- onSearch() {
61
- this.onInputed();
62
- this.onChange();
63
- }
64
-
65
- onInputed() {
66
- this.inputed.emit(this.value());
67
- }
68
-
69
- onChange() {
70
- this.changed.emit(this.value());
71
- }
72
-
73
-
74
- onFocus(ev: FocusEvent) {
75
- this.focused.set(true);
76
- }
77
-
78
- onBlur(ev: FocusEvent) {
79
- this.focused.set(false);
80
- }
81
-
82
- }
File without changes
@@ -1 +0,0 @@
1
- <progress [value]="value()"></progress>
@@ -1,15 +0,0 @@
1
- import { Component, input } from '@angular/core';
2
- import { UiProgressMode } from '../../interfaces/interfaces';
3
-
4
- @Component({
5
- selector: 'ui-progress',
6
- templateUrl: './ui-progress.html',
7
- styleUrl: './ui-progress.css',
8
- })
9
- export class UiProgress {
10
-
11
- value = input<number>(0);
12
- bufferValue = input<number>(0);
13
- mode = input<UiProgressMode>('determinate');
14
-
15
- }
@@ -1,211 +0,0 @@
1
- /* triggerElement */
2
- .e-select-container {
3
- position: relative;
4
- display: flex;
5
- flex: 1;
6
- align-items: center;
7
- justify-content: space-between;
8
- padding: var(--ui-padding, none);
9
- }
10
-
11
- .e-select-container,
12
- .e-select-arrow-area,
13
- .e-select,
14
- .e-select input {
15
- cursor: pointer;
16
- }
17
-
18
- .e-select {
19
- flex: 1;
20
- height: var(--ui-height, auto);
21
- width: var(--ui-width, auto);
22
- }
23
-
24
- .e-select input {
25
- border: none;
26
- background: transparent;
27
- caret-color: var(--sys-primary);
28
- outline: none;
29
- width: 100%;
30
- height: 100%;
31
- display: flex;
32
- justify-content: flex-start;
33
- align-items: center;
34
- text-align: left;
35
- }
36
-
37
-
38
- .e-select-arrow-area {
39
- display: flex;
40
- align-items: center;
41
- justify-content: center;
42
- width: 30px;
43
- }
44
-
45
- .e-select-arrow {
46
- width: 0;
47
- height: 0;
48
- border-left: 6px solid transparent;
49
- border-right: 6px solid transparent;
50
- border-top: 6px solid var(--sys-primary);
51
- margin: 0 5px;
52
- transition: transform 0.2s ease-in-out;
53
- }
54
-
55
- .e-select-arrow.open {
56
- transform: rotate(180deg);
57
- }
58
-
59
- .e-select-overlay {
60
- position: fixed;
61
- top: 0;
62
- left: 0;
63
- width: 100%;
64
- height: 100vh;
65
- z-index: 2001;
66
- background-color: transparent;
67
- pointer-events: none;
68
- transition: background-color 0.2s ease-in-out;
69
- }
70
-
71
- .e-select-overlay.open {
72
- background-color: rgba(0, 0, 0, 0.25);
73
- pointer-events: auto;
74
- }
75
-
76
- .e-select-options-container {
77
- width: max-content;
78
- position: fixed;
79
- z-index: 2002;
80
- display: flex;
81
- flex-direction: column;
82
- overflow: hidden;
83
- border-radius: 10px;
84
- transform: translateZ(0);
85
- will-change: transform;
86
- }
87
-
88
- .e-select-options-container.open {
89
- color: var(--sys-on-background);
90
- background: var(--sys-background);
91
- outline: 1px solid var(--sys-outline);
92
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
93
- }
94
-
95
- .e-select-options-container.open.smallScreen {
96
- width: 90vw;
97
- left: 5vw !important;
98
- /* 170 == 300 List + 40 Search / 2 */
99
- top: calc(50vh - 170px) !important;
100
- }
101
-
102
- .e-select-search-area {
103
- display: flex;
104
- background-color: var(--sys-background);
105
- border: 0;
106
- border-bottom: 1px inset var(--sys-outline);
107
- border-radius: 10px;
108
- height: 40px;
109
- max-height: 40px;
110
- }
111
-
112
- .e-select-search {
113
- flex: 1;
114
- width: 100%;
115
- border: none;
116
- background: var(--sys-surface-container-low);
117
- color: var(--sys-on-surface);
118
- caret-color: var(--sys-primary);
119
- padding: 8px 12px 8px 4px;
120
- outline: none;
121
- }
122
-
123
- .e-select-search-clearicon {
124
- color: color-mix(in srgb, var(--sys-primary) 80%, var(--sys-background) 20%);
125
- font-size: 1rem;
126
- display: flex;
127
- align-items: center;
128
- justify-content: center;
129
- cursor: pointer;
130
- }
131
-
132
- .e-select-search-icon {
133
- color: color-mix(in srgb, var(--sys-primary) 60%, var(--sys-background) 40%);
134
- font-size: 0.8rem;
135
- display: flex;
136
- align-items: center;
137
- justify-content: center;
138
- cursor: pointer;
139
- }
140
-
141
- .e-select-options-list {
142
- padding: 0;
143
- max-height: 300px;
144
- overflow-y: auto;
145
- }
146
-
147
- .e-select-option {
148
- display: flex;
149
- align-items: center;
150
- justify-content: space-between;
151
- padding: 15px 0px;
152
- margin-top: 2px;
153
- cursor: pointer;
154
- transition: background-color 0.2s;
155
- }
156
-
157
- .e-select-option.selected {
158
- background: color-mix(in srgb, var(--sys-primary) 50%, var(--sys-background) 50%);
159
- color: var(--sys-on-background);
160
- font-weight: 500;
161
- }
162
-
163
- .e-select-option.choosing {
164
- outline: none;
165
- background: color-mix(in srgb, var(--sys-primary) 20%, var(--sys-background) 80%);
166
- color: var(--sys-on-background);
167
- }
168
-
169
- .e-select-option.empty {
170
- cursor: default;
171
- color: var(--sys-on-surface-variant);
172
- justify-content: center;
173
- font-style: italic;
174
- }
175
-
176
- .e-select-option:hover {
177
- background: color-mix(in srgb, var(--sys-primary) 20%, var(--sys-background) 80%);
178
- color: var(--sys-on-background);
179
- }
180
-
181
- .e-select-option-text {
182
- flex: 1;
183
- overflow: hidden;
184
- text-overflow: ellipsis;
185
- white-space: nowrap;
186
- user-select: none;
187
- }
188
-
189
- .e-select-option-check {
190
- width: 16px;
191
- height: 16px;
192
- margin: auto 5px;
193
- flex-shrink: 0;
194
- visibility: hidden;
195
-
196
- /* SVG como máscara */
197
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
198
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
199
-
200
- -webkit-mask-size: contain;
201
- mask-size: contain;
202
- -webkit-mask-repeat: no-repeat;
203
- mask-repeat: no-repeat;
204
- -webkit-mask-position: center;
205
- mask-position: center;
206
- background-color: var(--sys-on-background);
207
- }
208
-
209
- .e-select-option.selected .e-select-option-check {
210
- visibility: visible;
211
- }
@@ -1,46 +0,0 @@
1
- <div #triggerElement class="e-select-container" (click)="onOpenOrCloseOptions()" (keyup.Enter)="onOpenOrCloseOptions()"
2
- (keyup.ArrowDown)="onOpenOrCloseOptions()" (keyup.ArrowUp)="onOpenOrCloseOptions()">
3
- <div class="e-select">
4
- <input #displayText type="text" [name]="'select_'+(name() ?? '')" [value]="textoExibindo()" readonly
5
- [placeholder]="placeholder() ?? ''" [disabled]="disabled()" [class.outlined]="true" [class.input]="true" />
6
- </div>
7
- <div class="e-select-arrow-area">
8
- <div class="e-select-arrow" [class.open]="isOpenedOptions()"></div>
9
- </div>
10
- </div>
11
-
12
-
13
- <div #optionsOverlay class="e-select-overlay" [class.open]="isOpenedOptions()" (click)="closeOverlay()">
14
-
15
- <div #optionsContainer class="e-select-options-container" [class.open]="isOpenedOptions()"
16
- [class.smallScreen]="isSmallScreen()" [style.left]="menuPosition().left" [style.top]="menuPosition().top">
17
- @if(isOpenedOptions()) {
18
- <div class="e-select-search-area" [style.minWidth.px]="optionMinWidth()">
19
- <input #optionSearchInput type="text" name="e-select-search-input" class="e-select-search"
20
- (keyup)="markKey($event)" placeholder="Procurar..." [value]="textoFiltrado()" (keydown.Escape)="closeOverlay()"
21
- size="8" (keydown.Tab)="closeOverlay()" (input)="onInputSearch($event.target.value)" />
22
- @if(textoFiltrado().length > 0) {
23
- <ui-button tipo="icon" tema="error" class="e-select-search-clearicon" (click)="onClearSearch()"
24
- icone="fa fa-times"></ui-button>
25
- }
26
- <ui-button tipo="icon" tema="primary" class="e-select-search-icon" (click)="focusToSearchInput()"
27
- icone="fa fa-search"></ui-button>
28
- </div>
29
- <div class="e-select-options-list">
30
- @for(option of optionsFiltered(); track $index) {
31
- <div class="e-select-option" [class.selected]="option.selected" [style.minWidth.px]="optionMinWidth()"
32
- [title]="option.v" (click)="onSelectOption(option)" (keyup.Enter)="onSelectOption(option)" tabindex="-1"
33
- [class.choosing]="option.choosing">
34
- <div class="e-select-option-check"></div>
35
- <div class="e-select-option-text" [innerHTML]="option.html"></div>
36
- </div>
37
- }@empty {
38
- <div class="e-select-option empty">
39
- Nenhuma opção disponível
40
- </div>
41
- }
42
- </div>
43
- }
44
- </div>
45
-
46
- </div>