cloud-ide-element 0.0.1 → 1.0.2
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.
- package/README.md +271 -24
- package/esm2022/lib/components/confirmation-modal/confirmation-modal.component.mjs +182 -0
- package/esm2022/lib/components/data-grid/data-grid.component.mjs +1363 -0
- package/esm2022/lib/components/data-grid/data-grid.types.mjs +37 -0
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +396 -0
- package/esm2022/lib/components/global-notifications/global-notifications.component.mjs +30 -0
- package/esm2022/lib/components/json-editor/json-editor.component.mjs +521 -0
- package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +33 -0
- package/esm2022/lib/components/toast-notification/toast-notification.component.mjs +152 -0
- package/esm2022/lib/elements/button/cide-ele-button.component.mjs +249 -0
- package/esm2022/lib/elements/file-input/file-input.component.mjs +83 -0
- package/esm2022/lib/elements/icon/icon.component.mjs +5 -3
- package/esm2022/lib/elements/input/input.component.mjs +34 -20
- package/esm2022/lib/elements/select/select.component.mjs +471 -0
- package/esm2022/lib/elements/tab/cide-ele-tab.component.mjs +74 -0
- package/esm2022/lib/elements/textarea/textarea.component.mjs +157 -0
- package/esm2022/lib/services/confirmation.service.mjs +151 -0
- package/esm2022/lib/services/dropdown-manager.service.mjs +93 -0
- package/esm2022/lib/services/notification.service.mjs +196 -0
- package/esm2022/lib/utils/directives/resizer/resizer.directive.mjs +231 -0
- package/esm2022/lib/utils/directives/tooltip/tooltip.directive.mjs +294 -0
- package/esm2022/lib/utils/services/elements/elements.service.mjs +9 -7
- package/esm2022/public-api.mjs +23 -2
- package/fesm2022/cloud-ide-element.mjs +4646 -47
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/lib/components/confirmation-modal/confirmation-modal.component.d.ts +16 -0
- package/lib/components/data-grid/data-grid.component.d.ts +244 -0
- package/lib/components/data-grid/data-grid.types.d.ts +146 -0
- package/lib/components/dropdown/dropdown.component.d.ts +75 -0
- package/lib/components/global-notifications/global-notifications.component.d.ts +5 -0
- package/lib/components/json-editor/json-editor.component.d.ts +116 -0
- package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +11 -0
- package/lib/components/toast-notification/toast-notification.component.d.ts +13 -0
- package/lib/elements/button/cide-ele-button.component.d.ts +85 -0
- package/lib/elements/file-input/file-input.component.d.ts +25 -0
- package/lib/elements/input/input.component.d.ts +7 -4
- package/lib/elements/select/select.component.d.ts +91 -0
- package/lib/elements/tab/cide-ele-tab.component.d.ts +26 -0
- package/lib/elements/textarea/textarea.component.d.ts +47 -0
- package/lib/services/confirmation.service.d.ts +65 -0
- package/lib/services/dropdown-manager.service.d.ts +22 -0
- package/lib/services/notification.service.d.ts +81 -0
- package/lib/utils/directives/resizer/resizer.directive.d.ts +44 -0
- package/lib/utils/directives/tooltip/tooltip.directive.d.ts +43 -0
- package/package.json +30 -4
- package/public-api.d.ts +18 -1
- package/src/lib/assets/css/cide-ele-style.scss +85 -0
- package/src/lib/assets/css/cide-ele-variable.scss +336 -0
- package/esm2022/lib/elements/button/button.component.mjs +0 -60
- package/lib/elements/button/button.component.d.ts +0 -27
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
export * from './lib/elements/input/input.component';
|
|
2
|
-
export * from './lib/elements/button/button.component';
|
|
2
|
+
export * from './lib/elements/button/cide-ele-button.component';
|
|
3
3
|
export * from './lib/elements/spinner/spinner.component';
|
|
4
4
|
export * from './lib/elements/icon/icon.component';
|
|
5
|
+
export * from './lib/elements/select/select.component';
|
|
6
|
+
export * from './lib/elements/tab/cide-ele-tab.component';
|
|
7
|
+
export * from './lib/elements/file-input/file-input.component';
|
|
8
|
+
export * from './lib/elements/textarea/textarea.component';
|
|
5
9
|
export * from './lib/utils/services/elements/elements.service';
|
|
10
|
+
export * from './lib/utils/directives/resizer/resizer.directive';
|
|
11
|
+
export * from './lib/utils/directives/tooltip/tooltip.directive';
|
|
12
|
+
export * from './lib/components/skeleton-loader/skeleton-loader.component';
|
|
13
|
+
export * from './lib/components/data-grid/data-grid.component';
|
|
14
|
+
export * from './lib/components/data-grid/data-grid.types';
|
|
15
|
+
export * from './lib/components/dropdown/dropdown.component';
|
|
16
|
+
export * from './lib/services/dropdown-manager.service';
|
|
17
|
+
export * from './lib/services/confirmation.service';
|
|
18
|
+
export * from './lib/services/notification.service';
|
|
19
|
+
export * from './lib/components/confirmation-modal/confirmation-modal.component';
|
|
20
|
+
export * from './lib/components/toast-notification/toast-notification.component';
|
|
21
|
+
export * from './lib/components/global-notifications/global-notifications.component';
|
|
22
|
+
export * from './lib/components/json-editor/json-editor.component';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Apply Variables
|
|
2
|
+
@import './cide-ele-variable.scss';
|
|
3
|
+
@import '../../utils/directives/tooltip/tooltip.directive.scss';
|
|
4
|
+
/*----------------------------------------
|
|
5
|
+
* ELEMENT CSS STARTS HERE
|
|
6
|
+
* HERE WE WILL STORE THE CLASSES
|
|
7
|
+
*------------------------------------------*/
|
|
8
|
+
|
|
9
|
+
// Sidebar Devider Starts Here
|
|
10
|
+
.cide-lyt-devider-horizontal {
|
|
11
|
+
width: 2px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
right: -5px;
|
|
16
|
+
padding: 0px 7px;
|
|
17
|
+
cursor: ew-resize;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
height: 100%;
|
|
20
|
+
|
|
21
|
+
.cide-lyt-devider-track {
|
|
22
|
+
width: 2px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cide-lyt-devider-horizontal-right-to-left {
|
|
28
|
+
left: -9px !important;
|
|
29
|
+
right: none;
|
|
30
|
+
|
|
31
|
+
.cide-lyt-sidedrawer-wrapper {
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cide-lyt-devider-vertical {
|
|
37
|
+
height: 2px;
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
top: -5px;
|
|
42
|
+
padding: 7px 0px;
|
|
43
|
+
cursor: ns-resize;
|
|
44
|
+
z-index: 10;
|
|
45
|
+
width: 100%;
|
|
46
|
+
|
|
47
|
+
.cide-lyt-devider-track {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 2px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// .cide-lyt-devider-track {
|
|
54
|
+
// background-color: var(--cide-ele-devider-border-color);
|
|
55
|
+
// }
|
|
56
|
+
|
|
57
|
+
.panel-resizer:hover {
|
|
58
|
+
.cide-lyt-devider-track {
|
|
59
|
+
background-color: var(--cide-ele-devider-border-color);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cide-lyt-devider-track {
|
|
64
|
+
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cide-lyt-devider-track:hover::after {
|
|
68
|
+
content: '';
|
|
69
|
+
position: absolute;
|
|
70
|
+
left: 50%;
|
|
71
|
+
top: 50%;
|
|
72
|
+
transform: translate(-50%, -50%);
|
|
73
|
+
width: 8px;
|
|
74
|
+
height: 50px;
|
|
75
|
+
background-color: var(--cide-ele-devider-border-color);
|
|
76
|
+
border-radius: 2px;
|
|
77
|
+
box-shadow: 0 0 6px var(--cide-ele-devider-border-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cide-lyt-devider-vertical {
|
|
81
|
+
.cide-lyt-devider-track:hover::after {
|
|
82
|
+
height: 8px !important;
|
|
83
|
+
width: 50px !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/*-------------------------------------------------
|
|
2
|
+
* CIDE-ELE Variable
|
|
3
|
+
*--------------------------------------------------*/
|
|
4
|
+
:root {
|
|
5
|
+
// Devider Starts Here
|
|
6
|
+
--cide-ele-devider-border-color: #74AEF6;
|
|
7
|
+
// Devider Ends Here
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Size
|
|
11
|
+
$sizes: xxs, xs, sm, md, lg, xl;
|
|
12
|
+
|
|
13
|
+
@each $size in $sizes {
|
|
14
|
+
.cide-element-size-#{$size} {
|
|
15
|
+
.cide-input-input,
|
|
16
|
+
.cide-select-button {
|
|
17
|
+
height: var(--cide-element-size-#{$size});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cide-input-input,
|
|
21
|
+
.cide-textarea-input,
|
|
22
|
+
.cide-select-button {
|
|
23
|
+
font-size: var(--cide-input-size-#{$size});
|
|
24
|
+
border-width: var(--cide-input-border-size-#{$size});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cide-input-label,
|
|
28
|
+
.cide-textarea-label,
|
|
29
|
+
.cide-select-label {
|
|
30
|
+
font-size: var(--cide-input-label-size-#{$size});
|
|
31
|
+
line-height: var(--cide-input-label-size-#{$size});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cide-input-help-error-text,
|
|
35
|
+
.cide-textarea-help-error-text,
|
|
36
|
+
.cide-select-help-error-text {
|
|
37
|
+
font-size: var(--cide-input-error-helper-size-#{$size});
|
|
38
|
+
height: calc(var(--cide-input-error-helper-size-#{$size}) + 2px);
|
|
39
|
+
line-height: var(--cide-input-error-helper-size-#{$size});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cide-input-clear,
|
|
43
|
+
.cide-textarea-clear,
|
|
44
|
+
.cide-select-clear {
|
|
45
|
+
top: var(--cide-input-border-size-#{$size});
|
|
46
|
+
width: var(--cide-element-size-#{$size});
|
|
47
|
+
height: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}) * 2);
|
|
48
|
+
|
|
49
|
+
.cide-input-clear-icon,
|
|
50
|
+
.cide-textarea-clear-icon,
|
|
51
|
+
.cide-select-clear-icon {
|
|
52
|
+
font-size: calc(var(--cide-input-size-#{$size}) + calc(var(--cide-input-size-#{$size}) / 2));
|
|
53
|
+
line-height: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}) * 2);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cide-input-leading-icon-wrapper,
|
|
58
|
+
.cide-textarea-leading-icon-wrapper,
|
|
59
|
+
.cide-select-leading-icon-wrapper {
|
|
60
|
+
top: var(--cide-input-border-size-#{$size});
|
|
61
|
+
width: var(--cide-element-size-#{$size});
|
|
62
|
+
height: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}) * 2);
|
|
63
|
+
|
|
64
|
+
.cide-input-leading-icon,
|
|
65
|
+
.cide-textarea-leading-icon,
|
|
66
|
+
.cide-select-leading-icon {
|
|
67
|
+
font-size: calc(var(--cide-input-size-#{$size}) + calc(var(--cide-input-size-#{$size}) / 2));
|
|
68
|
+
line-height: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}) * 2);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cide-element-size-#{$size}.cide-element-input-label-floating:not(.cide-element-input-label-less),
|
|
74
|
+
.cide-element-size-#{$size}.cide-element-textarea-label-floating:not(.cide-element-textarea-label-less),
|
|
75
|
+
.cide-element-size-#{$size}.cide-element-select-label-floating:not(.cide-element-select-label-less) {
|
|
76
|
+
|
|
77
|
+
.cide-element-input-wrapper,
|
|
78
|
+
.cide-element-textarea-wrapper,
|
|
79
|
+
.cide-element-select-wrapper {
|
|
80
|
+
margin-top: calc(var(--cide-input-label-size-#{$size}) / 2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cide-input-label,
|
|
84
|
+
.cide-textarea-label,
|
|
85
|
+
.cide-select-label {
|
|
86
|
+
top: calc(var(--cide-input-label-size-#{$size}) / 2 - var(--cide-input-label-size-#{$size}));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cide-element-size-#{$size}.cide-element-leading-icon {
|
|
91
|
+
|
|
92
|
+
.cide-input-input,
|
|
93
|
+
.cide-textarea-input,
|
|
94
|
+
.cide-select-button {
|
|
95
|
+
padding-left: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cide-element-size-#{$size}.cide-element-clear-input {
|
|
100
|
+
|
|
101
|
+
.cide-input-input,
|
|
102
|
+
.cide-textarea-input,
|
|
103
|
+
.cide-select-button {
|
|
104
|
+
padding-right: calc(var(--cide-element-size-#{$size}) - var(--cide-input-border-size-#{$size}));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.cide-element-size-#{$size}.cide-element-trailing-icon {
|
|
109
|
+
|
|
110
|
+
.cide-input-clear,
|
|
111
|
+
.cide-textarea-clear,
|
|
112
|
+
.cide-select-clear {
|
|
113
|
+
right: var(--cide-element-size-#{$size});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// when fill is standard then no border
|
|
120
|
+
.cide-element-style-standard {
|
|
121
|
+
.cide-input-input,
|
|
122
|
+
.cide-textarea-input,
|
|
123
|
+
.cide-select-button {
|
|
124
|
+
border-color: transparent;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cide-element-input-number {
|
|
129
|
+
input {
|
|
130
|
+
text-align: right !important;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.cide-element-input-wrapper,
|
|
135
|
+
.cide-element-textarea-wrapper,
|
|
136
|
+
.cide-element-select-wrapper {
|
|
137
|
+
position: relative;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.cide-input-label,
|
|
141
|
+
.cide-textarea-label,
|
|
142
|
+
.cide-select-label {
|
|
143
|
+
color: var(--cide-input-label-color);
|
|
144
|
+
user-select: none;
|
|
145
|
+
display: block;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cide-input-help-error-text,
|
|
149
|
+
.cide-textarea-help-error-text,
|
|
150
|
+
.cide-select-help-error-text {
|
|
151
|
+
color: var(--cide-input-color-help-error-text);
|
|
152
|
+
width: 100%;
|
|
153
|
+
display: block;
|
|
154
|
+
margin-top: 4px;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
white-space: nowrap;
|
|
158
|
+
padding-left: 0.125rem;
|
|
159
|
+
padding-right: 0.125rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cide-input-leading-icon,
|
|
163
|
+
.cide-textarea-leading-icon,
|
|
164
|
+
.cide-select-leading-icon {
|
|
165
|
+
color: var(--cide-input-leading-icon-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cide-input-clear,
|
|
169
|
+
.cide-textarea-clear,
|
|
170
|
+
.cide-select-clear {
|
|
171
|
+
color: var(--cide-input-clear-color);
|
|
172
|
+
z-index: 10;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
position: absolute;
|
|
175
|
+
outline-width: 0px;
|
|
176
|
+
right: 0px;
|
|
177
|
+
top: 0px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cide-input-clear:hover,
|
|
181
|
+
.cide-textarea-clear:hover,
|
|
182
|
+
.cide-select-clear:hover {
|
|
183
|
+
color: var(--cide-input-clear-color-hover);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.cide-input-trailing-icon,
|
|
187
|
+
.cide-textarea-trailing-icon,
|
|
188
|
+
.cide-select-trailing-icon {
|
|
189
|
+
color: var(--cide-input-trailing-icon-color);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.cide-input-input,
|
|
193
|
+
.cide-textarea-input,
|
|
194
|
+
.cide-select-button {
|
|
195
|
+
color: var(--cide-input-text-color);
|
|
196
|
+
border-color: var(--cide-input-border);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cide-input-input:hover,
|
|
200
|
+
.cide-textarea-input:hover,
|
|
201
|
+
.cide-select-button:hover {
|
|
202
|
+
color: var(--cide-input-text-color-hover);
|
|
203
|
+
border-color: var(--cide-input-border-hover);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.cide-input-input:focus,
|
|
207
|
+
.cide-textarea-input:focus,
|
|
208
|
+
.cide-select-button:focus {
|
|
209
|
+
color: var(--cide-input-text-color-active);
|
|
210
|
+
border-color: var(--cide-input-border-active);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.cide-element-input-label-floating,
|
|
214
|
+
.cide-element-select-label-floating {
|
|
215
|
+
.cide-input-label,
|
|
216
|
+
.cide-textarea-label,
|
|
217
|
+
.cide-select-label {
|
|
218
|
+
position: absolute;
|
|
219
|
+
z-index: 1;
|
|
220
|
+
margin-left: 8px;
|
|
221
|
+
margin-right: 8px;
|
|
222
|
+
background-color: white;
|
|
223
|
+
padding-left: 2px;
|
|
224
|
+
padding-right: 2px;
|
|
225
|
+
padding-top: 0px;
|
|
226
|
+
padding-bottom: 0px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.cide-element-input-label-start,
|
|
230
|
+
.cide-element-textarea-label-start,
|
|
231
|
+
.cide-element-select-label-start {
|
|
232
|
+
left: 0px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cide-element-input-label-end,
|
|
236
|
+
.cide-element-textarea-label-end,
|
|
237
|
+
.cide-element-select-label-end {
|
|
238
|
+
right: 0px;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.cide-element-input-label-fixed,
|
|
243
|
+
.cide-element-textarea-label-fixed,
|
|
244
|
+
.cide-element-select-label-fixed {
|
|
245
|
+
margin-bottom: 0px;
|
|
246
|
+
|
|
247
|
+
.cide-input-label,
|
|
248
|
+
.cide-textarea-label,
|
|
249
|
+
.cide-select-label {
|
|
250
|
+
margin-bottom: 3px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.cide-element-input-label-start,
|
|
254
|
+
.cide-element-textarea-label-start,
|
|
255
|
+
.cide-element-select-label-start {
|
|
256
|
+
text-align: start;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.cide-element-input-label-end,
|
|
260
|
+
.cide-element-textarea-label-end,
|
|
261
|
+
.cide-element-select-label-end {
|
|
262
|
+
text-align: end;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// on Invalid
|
|
267
|
+
.ng-touched.ng-invalid>.cide-input,
|
|
268
|
+
.ng-touched.ng-invalid>.cide-textarea,
|
|
269
|
+
.ng-touched.ng-invalid>.cide-select {
|
|
270
|
+
.cide-input-clear,
|
|
271
|
+
.cide-textarea-clear,
|
|
272
|
+
.cide-select-clear {
|
|
273
|
+
color: var(--cide-input-clear-color-invalid);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.cide-input-clear:hover,
|
|
277
|
+
.cide-textarea-clear:hover,
|
|
278
|
+
.cide-select-clear:hover {
|
|
279
|
+
color: var(--cide-input-clear-color-hover-invalid);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.cide-input-leading-icon,
|
|
283
|
+
.cide-textarea-leading-icon,
|
|
284
|
+
.cide-select-leading-icon {
|
|
285
|
+
color: var(--cide-input-leading-icon-color-invalid);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.cide-input-help-error-text,
|
|
289
|
+
.cide-textarea-help-error-text,
|
|
290
|
+
.cide-select-help-error-text {
|
|
291
|
+
color: var(--cide-input-color-help-error-text-invalid);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.cide-input-trailing-icon,
|
|
295
|
+
.cide-textarea-trailing-icon,
|
|
296
|
+
.cide-select-trailing-icon {
|
|
297
|
+
color: var(--cide-input-trailing-icon-color-invalid);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.cide-input-label,
|
|
301
|
+
.cide-textarea-label,
|
|
302
|
+
.cide-select-label {
|
|
303
|
+
color: var(--cide-input-label-color-invalid);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.cide-input-input,
|
|
307
|
+
.cide-textarea-input,
|
|
308
|
+
.cide-select-button {
|
|
309
|
+
color: var(--cide-input-text-color-invalid);
|
|
310
|
+
border-color: var(--cide-input-border-invalid);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.cide-input-input:hover,
|
|
314
|
+
.cide-textarea-input:hover,
|
|
315
|
+
.cide-select-button:hover {
|
|
316
|
+
color: var(--cide-input-text-color-hover-invalid);
|
|
317
|
+
border-color: var(--cide-input-border-hover-invalid);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.cide-input-input:focus,
|
|
321
|
+
.cide-textarea-input:focus,
|
|
322
|
+
.cide-select-button:focus {
|
|
323
|
+
color: var(--cide-input-text-color-active-invalid);
|
|
324
|
+
border-color: var(--cide-input-border-active-invalid);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.cide-input-leading-icon-wrapper,
|
|
329
|
+
.cide-textarea-leading-icon-wrapper,
|
|
330
|
+
.cide-select-leading-icon-wrapper {
|
|
331
|
+
position: absolute;
|
|
332
|
+
bottom: 0px;
|
|
333
|
+
left: 0px;
|
|
334
|
+
z-index: 0;
|
|
335
|
+
text-align: center;
|
|
336
|
+
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
-
import { CideSpinnerComponent } from "../spinner/spinner.component";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../../public-api";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
export class CideButtonComponent {
|
|
8
|
-
constructor(elementService) {
|
|
9
|
-
this.elementService = elementService;
|
|
10
|
-
// INPUTS
|
|
11
|
-
/**
|
|
12
|
-
* @description Lable of button like Submit, Update, Add, etc.
|
|
13
|
-
* note it is only used in case you was not set lebel between tags like button (ng-content),
|
|
14
|
-
* if lable is set ng contenet is not visisble
|
|
15
|
-
*/
|
|
16
|
-
this.label = "";
|
|
17
|
-
/** @description button disabled or not use boolean type value */
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
/** @description uniq id of control, used to differenciat the value also prevent value should not effect another values */
|
|
20
|
-
this.id = '';
|
|
21
|
-
/** @description to give the loading effect, diable button and enable loader */
|
|
22
|
-
this.loading = false;
|
|
23
|
-
// OUTPUTS
|
|
24
|
-
/**
|
|
25
|
-
* @description click event of button similler to onClick (this is not possible beacuse no-output-no-prefix eslint) of angular or click of DOM
|
|
26
|
-
*/
|
|
27
|
-
this.onclick = new EventEmitter();
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
if (this.id) {
|
|
31
|
-
this.getControlData();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async getControlData() {
|
|
35
|
-
const cide_element_data = await this.elementService?.getElementData({ sype_key: this.id });
|
|
36
|
-
if (cide_element_data) {
|
|
37
|
-
this.label = cide_element_data?.sype_label;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CideButtonComponent, deps: [{ token: i1.CideElementsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: CideButtonComponent, isStandalone: true, selector: "cide-ele-button", inputs: { label: "label", disabled: "disabled", id: "id", loading: "loading" }, outputs: { onclick: "onclick" }, ngImport: i0, template: "<button class=\"cide-button tw-w-full tw-rounded-md tw-text-white tw-py-0.5 tw-select-none tw-justify-around tw-flex\"\r\n [ngClass]=\"{'cide-button-disabled': (disabled || loading)}\" [disabled]=\"(disabled || loading)\"\r\n (click)=\"onclick.emit()\" [id]=\"id\">\r\n <div class=\"tw-flex\">\r\n <cide-ele-spinner *ngIf=\"loading\" class=\"tw-inline-block tw-my-1 tw-mr-2\" size=\"xs\"\r\n [ngClass]=\"{'cide-pill-disabled': (disabled || loading)}\"></cide-ele-spinner>\r\n <span>{{label}}</span>\r\n <span *ngIf=\"!label\">\r\n <ng-content></ng-content>\r\n </span>\r\n <span *ngIf=\"loading\" class=\"tw-w-6 tw-p-1 tw-mr-2\"></span>\r\n </div>\r\n</button>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CideSpinnerComponent, selector: "cide-ele-spinner", inputs: ["size", "type"] }] }); }
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CideButtonComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ selector: 'cide-ele-button', standalone: true, imports: [
|
|
46
|
-
CommonModule,
|
|
47
|
-
CideSpinnerComponent
|
|
48
|
-
], template: "<button class=\"cide-button tw-w-full tw-rounded-md tw-text-white tw-py-0.5 tw-select-none tw-justify-around tw-flex\"\r\n [ngClass]=\"{'cide-button-disabled': (disabled || loading)}\" [disabled]=\"(disabled || loading)\"\r\n (click)=\"onclick.emit()\" [id]=\"id\">\r\n <div class=\"tw-flex\">\r\n <cide-ele-spinner *ngIf=\"loading\" class=\"tw-inline-block tw-my-1 tw-mr-2\" size=\"xs\"\r\n [ngClass]=\"{'cide-pill-disabled': (disabled || loading)}\"></cide-ele-spinner>\r\n <span>{{label}}</span>\r\n <span *ngIf=\"!label\">\r\n <ng-content></ng-content>\r\n </span>\r\n <span *ngIf=\"loading\" class=\"tw-w-6 tw-p-1 tw-mr-2\"></span>\r\n </div>\r\n</button>" }]
|
|
49
|
-
}], ctorParameters: () => [{ type: i1.CideElementsService }], propDecorators: { label: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], disabled: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], id: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], loading: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], onclick: [{
|
|
58
|
-
type: Output
|
|
59
|
-
}] } });
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nsb3VkLWlkZS1lbGVtZW50L3NyYy9saWIvZWxlbWVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jbG91ZC1pZGUtZWxlbWVudC9zcmMvbGliL2VsZW1lbnRzL2J1dHRvbi9idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0UsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sOEJBQThCLENBQUM7Ozs7QUFZcEUsTUFBTSxPQUFPLG1CQUFtQjtJQUM5QixZQUFvQixjQUFtQztRQUFuQyxtQkFBYyxHQUFkLGNBQWMsQ0FBcUI7UUFDdkQsU0FBUztRQUNUOzs7O1dBSUc7UUFDTSxVQUFLLEdBQVcsRUFBRSxDQ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8c3Bhbj57e2xhYmVsfX08L3NwYW4+XHJcbiAgICAgICAgPHNwYW4gKm5nSWY9XCIhbGFiZWxcIj5cclxuICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gICAgICAgIDwvc3Bhbj5cclxuICAgICAgICA8c3BhbiAqbmdJZj1cImxvYWRpbmdcIiBjbGFzcz1cInR3LXctNiB0dy1wLTEgdHctbXItMlwiPjwvc3Bhbj5cclxuICAgIDwvZGl2PlxyXG48L2J1dHRvbj4iXX0=
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { CideElementsService } from '../../../public-api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CideButtonComponent implements OnInit {
|
|
5
|
-
private elementService;
|
|
6
|
-
constructor(elementService: CideElementsService);
|
|
7
|
-
/**
|
|
8
|
-
* @description Lable of button like Submit, Update, Add, etc.
|
|
9
|
-
* note it is only used in case you was not set lebel between tags like button (ng-content),
|
|
10
|
-
* if lable is set ng contenet is not visisble
|
|
11
|
-
*/
|
|
12
|
-
label: string;
|
|
13
|
-
/** @description button disabled or not use boolean type value */
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
/** @description uniq id of control, used to differenciat the value also prevent value should not effect another values */
|
|
16
|
-
id: string;
|
|
17
|
-
/** @description to give the loading effect, diable button and enable loader */
|
|
18
|
-
loading: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @description click event of button similler to onClick (this is not possible beacuse no-output-no-prefix eslint) of angular or click of DOM
|
|
21
|
-
*/
|
|
22
|
-
onclick: EventEmitter<void>;
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
getControlData(): Promise<void>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CideButtonComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CideButtonComponent, "cide-ele-button", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "onclick": "onclick"; }, never, ["*"], true, never>;
|
|
27
|
-
}
|