chuijs 3.6.2 → 3.6.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.
- package/LICENSE +21 -21
- package/README.md +1203 -162
- package/framework/appLayout/default/chui_app_layout.js +747 -747
- package/framework/appLayout/default/global_style.css +592 -568
- package/framework/appLayout/default/main_theme_style.css +118 -101
- package/framework/components/chui_accordion/accordion.js +63 -63
- package/framework/components/chui_accordion/styles.css +79 -75
- package/framework/components/chui_badge/badge.js +55 -55
- package/framework/components/chui_badge/styles.css +29 -29
- package/framework/components/chui_button/button.js +48 -48
- package/framework/components/chui_button/styles.css +75 -70
- package/framework/components/chui_calendar/calendar.js +97 -97
- package/framework/components/chui_card/card.js +87 -0
- package/framework/components/chui_card/styles.css +72 -0
- package/framework/components/chui_code/code.js +18 -18
- package/framework/components/chui_code/styles.css +9 -9
- package/framework/components/chui_console/console.js +27 -27
- package/framework/components/chui_console/styles.css +31 -31
- package/framework/components/chui_content_block/content_block.js +51 -51
- package/framework/components/chui_content_block/styles.css +2 -2
- package/framework/components/chui_context_menu/context_menu.js +230 -0
- package/framework/components/chui_context_menu/styles.css +136 -0
- package/framework/components/chui_custom_element/custom_element.js +24 -24
- package/framework/components/chui_details/details.js +85 -85
- package/framework/components/chui_details/styles.css +70 -66
- package/framework/components/chui_fieldset/fieldset.js +40 -40
- package/framework/components/chui_fieldset/styles.css +24 -24
- package/framework/components/chui_form/form.js +40 -40
- package/framework/components/chui_form/styles.css +21 -21
- package/framework/components/chui_graphs/graphs.js +234 -190
- package/framework/components/chui_graphs/styles.css +37 -32
- package/framework/components/chui_hero/hero.js +98 -0
- package/framework/components/chui_hero/styles.css +91 -0
- package/framework/components/chui_html_block/html_block.js +16 -16
- package/framework/components/chui_html_block/styles.css +5 -5
- package/framework/components/chui_hx/hx.js +15 -15
- package/framework/components/chui_hx/styles.css +38 -38
- package/framework/components/chui_icons/icons.js +2144 -2144
- package/framework/components/chui_icons/styles.css +13 -13
- package/framework/components/chui_inputs/chui_check_box/check_box.js +32 -32
- package/framework/components/chui_inputs/chui_check_box/styles.css +91 -86
- package/framework/components/chui_inputs/chui_combo_box/combo_box.js +166 -150
- package/framework/components/chui_inputs/chui_combo_box/styles.css +113 -107
- package/framework/components/chui_inputs/chui_date/date.js +177 -174
- package/framework/components/chui_inputs/chui_date/styles.css +163 -128
- package/framework/components/chui_inputs/chui_email/email.js +61 -61
- package/framework/components/chui_inputs/chui_email/styles.css +69 -71
- package/framework/components/chui_inputs/chui_file/file.js +76 -76
- package/framework/components/chui_inputs/chui_file/styles.css +99 -99
- package/framework/components/chui_inputs/chui_multi_combo_box/multi_combo_box.js +295 -295
- package/framework/components/chui_inputs/chui_multi_combo_box/styles.css +212 -235
- package/framework/components/chui_inputs/chui_number/number.js +108 -108
- package/framework/components/chui_inputs/chui_number/styles.css +84 -84
- package/framework/components/chui_inputs/chui_password/password.js +99 -99
- package/framework/components/chui_inputs/chui_password/styles.css +97 -97
- package/framework/components/chui_inputs/chui_radio_button/radio_button.js +45 -45
- package/framework/components/chui_inputs/chui_radio_button/styles.css +76 -73
- package/framework/components/chui_inputs/chui_select_box/select_box.js +187 -170
- package/framework/components/chui_inputs/chui_select_box/styles.css +123 -117
- package/framework/components/chui_inputs/chui_text/styles.css +83 -84
- package/framework/components/chui_inputs/chui_text/text.js +91 -91
- package/framework/components/chui_inputs/chui_text_area/styles.css +57 -57
- package/framework/components/chui_inputs/chui_text_area/text_area.js +61 -61
- package/framework/components/chui_inputs/chui_toggle/styles.css +66 -61
- package/framework/components/chui_inputs/chui_toggle/toggle.js +36 -36
- package/framework/components/chui_label/label.js +54 -54
- package/framework/components/chui_label/styles.css +11 -11
- package/framework/components/chui_media/audio.js +908 -908
- package/framework/components/chui_media/audio_styles.css +458 -458
- package/framework/components/chui_media/image.js +105 -105
- package/framework/components/chui_media/image_styles.css +61 -61
- package/framework/components/chui_media/video.js +248 -248
- package/framework/components/chui_media/video_styles.css +160 -160
- package/framework/components/chui_menu_bar/menu_bar.js +66 -74
- package/framework/components/chui_menu_bar/styles.css +114 -76
- package/framework/components/chui_modal/modal.js +142 -135
- package/framework/components/chui_modal/styles.css +36 -36
- package/framework/components/chui_notification/notification.js +72 -72
- package/framework/components/chui_notification/notification_download.js +78 -78
- package/framework/components/chui_notification/notification_download_progress.css +119 -123
- package/framework/components/chui_notification/notification_download_progress.js +105 -105
- package/framework/components/chui_notification/notification_update.js +54 -54
- package/framework/components/chui_notification/styles.css +91 -91
- package/framework/components/chui_notification/styles_download.css +85 -85
- package/framework/components/chui_notification/styles_update.css +73 -73
- package/framework/components/chui_paragraph/paragraph.js +14 -14
- package/framework/components/chui_paragraph/styles.css +6 -6
- package/framework/components/chui_popups/popups.js +250 -250
- package/framework/components/chui_popups/styles.css +129 -115
- package/framework/components/chui_progress_bar/progress_bar.js +28 -28
- package/framework/components/chui_progress_bar/styles.css +28 -28
- package/framework/components/chui_radio_group/radio_group.js +57 -57
- package/framework/components/chui_radio_group/styles.css +3 -3
- package/framework/components/chui_slideshow/slideshow.js +75 -75
- package/framework/components/chui_slideshow/styles.css +94 -85
- package/framework/components/chui_spinner/spinner.js +45 -45
- package/framework/components/chui_spinner/styles.css +23 -23
- package/framework/components/chui_table/styles.css +42 -42
- package/framework/components/chui_table/table.js +234 -234
- package/framework/components/chui_tabs/chui_tabs.js +77 -77
- package/framework/components/chui_tabs/styles.css +54 -48
- package/framework/components/chui_text_editor/styles.css +217 -217
- package/framework/components/chui_text_editor/text_editor.js +144 -144
- package/framework/components/chui_text_editor/text_editor_panel.js +568 -568
- package/framework/components/chui_tree_view/styles.css +81 -75
- package/framework/components/chui_tree_view/tree_view.js +90 -90
- package/framework/components/chui_webview/styles.css +27 -27
- package/framework/components/chui_webview/webview.js +103 -103
- package/framework/components/telegram_bot/chui_telegram_bot.js +183 -183
- package/framework/modules/chui_animations/animations.js +121 -121
- package/framework/modules/chui_animations/styles.css +79 -79
- package/framework/modules/chui_fonts.js +7129 -6974
- package/framework/modules/chui_functions.js +106 -78
- package/framework/modules/chui_logger/chui_logger.js +53 -53
- package/framework/modules/chui_page/page.js +86 -86
- package/framework/modules/chui_page/styles.css +9 -9
- package/framework/tray_bar/chui_menu_items.js +48 -48
- package/index.js +570 -555
- package/package.json +51 -46
|
@@ -1,129 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
background: var(--blue_prime_background);
|
|
54
|
-
color: var(--text_color_hover);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
display:
|
|
76
|
-
|
|
77
|
-
border:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
1
|
+
chui_date_input {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: max-content;
|
|
5
|
+
height: max-content;
|
|
6
|
+
margin: var(--margin);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
::-webkit-calendar-picker-indicator {
|
|
10
|
+
display: none
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::-webkit-datetime-edit-text {
|
|
14
|
+
padding: 0;
|
|
15
|
+
width: 100%
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
date_select_dropdown {
|
|
19
|
+
display: none;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
color: var(--text_color);
|
|
22
|
+
padding: var(--test_padding);
|
|
23
|
+
background: var(--header_background);
|
|
24
|
+
backdrop-filter: var(--global_blur);
|
|
25
|
+
-webkit-backdrop-filter: var(--global_blur);
|
|
26
|
+
border: 1px solid var(--border_color);
|
|
27
|
+
border-radius: var(--border_radius);
|
|
28
|
+
position:absolute;
|
|
29
|
+
top: -2px;
|
|
30
|
+
left: -2px;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
box-shadow: var(--box_shadow_main);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
date_calendar_header {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
align-items: center;
|
|
39
|
+
margin-bottom: var(--test_padding);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
date_calendar_nav {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
padding: 4px;
|
|
48
|
+
border-radius: var(--radius_sm);
|
|
49
|
+
color: var(--text_color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
date_calendar_nav:hover {
|
|
53
|
+
background: var(--blue_prime_background);
|
|
54
|
+
color: var(--text_color_hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
date_calendar_nav:active {
|
|
58
|
+
background: var(--element_background_prime);
|
|
59
|
+
color: var(--text_color_hover);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
date_calendar_title {
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
color: var(--text_color);
|
|
65
|
+
user-select: none;
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
date_week {
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
date_day {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
display: block;
|
|
76
|
+
width: 20px;
|
|
77
|
+
border-radius: var(--border_radius);
|
|
78
|
+
padding: var(--test_padding);
|
|
79
|
+
text-align: center
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.date_day:hover {
|
|
83
|
+
background: var(--blue_prime_background);
|
|
84
|
+
color: var(--text_color_hover);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.date_day:active {
|
|
88
|
+
background: var(--element_background_prime);
|
|
89
|
+
color: var(--text_color_hover);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
date_dropdown_open {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
padding: var(--test_padding) 10px var(--test_padding) 0;
|
|
95
|
+
height: auto;
|
|
96
|
+
margin: 0;
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
color: var(--badge_cancel_text)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
date_main_block {
|
|
104
|
+
height: max-content;
|
|
105
|
+
width: max-content;
|
|
106
|
+
border-radius: var(--border_radius);
|
|
107
|
+
font-size: var(--font_default_size);
|
|
108
|
+
color: var(--text_color);
|
|
109
|
+
position: relative;
|
|
110
|
+
display: flex;
|
|
111
|
+
background: var(--element_background);
|
|
112
|
+
border: 1px solid var(--border_color);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.date_input {
|
|
116
|
+
width:100%;
|
|
117
|
+
display: block;
|
|
118
|
+
text-align: center;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: var(--test_padding) 0;
|
|
121
|
+
background: transparent;
|
|
122
|
+
color: var(--text_color);
|
|
123
|
+
border: none;
|
|
124
|
+
font-size: var(--font_default_size);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.date_input_label {
|
|
128
|
+
height: max-content;
|
|
129
|
+
width: max-content;
|
|
130
|
+
margin: var(--margin);
|
|
131
|
+
font-size: var(--font_labels_size);
|
|
132
|
+
font-weight:500;
|
|
133
|
+
color: var(--text_color)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* DISABLED STYLES */
|
|
137
|
+
.date_main_block_disabled {
|
|
138
|
+
cursor: not-allowed;
|
|
139
|
+
background: var(--element_background_disabled);
|
|
140
|
+
border: 1px solid var(--border_color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.date_input_label_disabled {
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
color: var(--text_color_disabled);
|
|
146
|
+
height: max-content;
|
|
147
|
+
width: max-content;
|
|
148
|
+
margin: var(--margin);
|
|
149
|
+
font-size: var(--font_labels_size);
|
|
150
|
+
font-weight:500
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.date_input_disabled {
|
|
154
|
+
cursor: not-allowed;
|
|
155
|
+
color: var(--text_color_disabled);
|
|
156
|
+
width:100%;
|
|
157
|
+
display: block;
|
|
158
|
+
text-align: center;
|
|
159
|
+
margin: 0;
|
|
160
|
+
padding: var(--test_padding) 0;
|
|
161
|
+
background: transparent;
|
|
162
|
+
border: none;
|
|
163
|
+
font-size: var(--font_default_size);
|
|
129
164
|
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
class EmailInput {
|
|
2
|
-
#id = require("randomstring").generate();
|
|
3
|
-
#chui_email_input = document.createElement('chui_email_input');
|
|
4
|
-
#chui_email_main = document.createElement('chui_email_main');
|
|
5
|
-
#label = document.createElement('label');
|
|
6
|
-
#input = document.createElement('input');
|
|
7
|
-
#title = undefined;
|
|
8
|
-
constructor(options = {
|
|
9
|
-
name: String(),
|
|
10
|
-
title: String(),
|
|
11
|
-
placeholder: String(),
|
|
12
|
-
width: String(),
|
|
13
|
-
required: Boolean()
|
|
14
|
-
}) {
|
|
15
|
-
require('../../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_EmailInput');
|
|
16
|
-
this.#title = options.title;
|
|
17
|
-
this.#input.type = 'email';
|
|
18
|
-
this.#input.className = 'email_input'
|
|
19
|
-
this.#input.id = this.#id;
|
|
20
|
-
if (options.name !== undefined) this.#input.name = options.name;
|
|
21
|
-
this.#input.pattern = '^([a-zA-Z0-9_\.\-+])+@[a-zA-Z0-9-.]+\.[a-zA-Z0-9-]{2,}$'
|
|
22
|
-
if (options.required !== undefined) this.#input.required = options.required;
|
|
23
|
-
if (options.title !== undefined) {
|
|
24
|
-
this.#label.innerText = options.title;
|
|
25
|
-
this.#label.classList.add('email_label')
|
|
26
|
-
this.#label.setAttribute('for', this.#id);
|
|
27
|
-
this.#chui_email_input.appendChild(this.#label);
|
|
28
|
-
}
|
|
29
|
-
if (options.placeholder !== undefined) this.#input.placeholder = options.placeholder;
|
|
30
|
-
if (options.width !== undefined) this.#chui_email_input.style.width = options.width;
|
|
31
|
-
this.#input.addEventListener('focus', () => {
|
|
32
|
-
this.#chui_email_main.style.border = '1px solid var(--blue_prime_background)';
|
|
33
|
-
this.#label.style.color = 'var(--blue_prime_background)';
|
|
34
|
-
})
|
|
35
|
-
this.#input.addEventListener('blur', () => {
|
|
36
|
-
this.#chui_email_main.removeAttribute("style");
|
|
37
|
-
this.#label.removeAttribute("style");
|
|
38
|
-
})
|
|
39
|
-
this.#chui_email_main.appendChild(this.#input);
|
|
40
|
-
this.#chui_email_input.appendChild(this.#chui_email_main);
|
|
41
|
-
}
|
|
42
|
-
getName() { return this.#input.name; }
|
|
43
|
-
getTitle() { return this.#title; }
|
|
44
|
-
getValue() { return this.#input.value; }
|
|
45
|
-
setValue(text = String()) { this.#input.value = text; }
|
|
46
|
-
setDisabled(boolean = Boolean()) {
|
|
47
|
-
this.#input.disabled = boolean
|
|
48
|
-
if (boolean) {
|
|
49
|
-
this.#chui_email_main.classList.add("chui_email_main_disabled")
|
|
50
|
-
this.#input.className = "email_input_disabled"
|
|
51
|
-
this.#label.className = "email_label_disabled"
|
|
52
|
-
} else {
|
|
53
|
-
this.#chui_email_main.classList.remove("chui_email_main_disabled")
|
|
54
|
-
this.#input.className = "email_input"
|
|
55
|
-
this.#label.className = "email_label"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
set() { return this.#chui_email_input; }
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
exports.EmailInput = EmailInput
|
|
1
|
+
class EmailInput {
|
|
2
|
+
#id = require("randomstring").generate();
|
|
3
|
+
#chui_email_input = document.createElement('chui_email_input');
|
|
4
|
+
#chui_email_main = document.createElement('chui_email_main');
|
|
5
|
+
#label = document.createElement('label');
|
|
6
|
+
#input = document.createElement('input');
|
|
7
|
+
#title = undefined;
|
|
8
|
+
constructor(options = {
|
|
9
|
+
name: String(),
|
|
10
|
+
title: String(),
|
|
11
|
+
placeholder: String(),
|
|
12
|
+
width: String(),
|
|
13
|
+
required: Boolean()
|
|
14
|
+
}) {
|
|
15
|
+
require('../../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_EmailInput');
|
|
16
|
+
this.#title = options.title;
|
|
17
|
+
this.#input.type = 'email';
|
|
18
|
+
this.#input.className = 'email_input'
|
|
19
|
+
this.#input.id = this.#id;
|
|
20
|
+
if (options.name !== undefined) this.#input.name = options.name;
|
|
21
|
+
this.#input.pattern = '^([a-zA-Z0-9_\.\-+])+@[a-zA-Z0-9-.]+\.[a-zA-Z0-9-]{2,}$'
|
|
22
|
+
if (options.required !== undefined) this.#input.required = options.required;
|
|
23
|
+
if (options.title !== undefined) {
|
|
24
|
+
this.#label.innerText = options.title;
|
|
25
|
+
this.#label.classList.add('email_label')
|
|
26
|
+
this.#label.setAttribute('for', this.#id);
|
|
27
|
+
this.#chui_email_input.appendChild(this.#label);
|
|
28
|
+
}
|
|
29
|
+
if (options.placeholder !== undefined) this.#input.placeholder = options.placeholder;
|
|
30
|
+
if (options.width !== undefined) this.#chui_email_input.style.width = options.width;
|
|
31
|
+
this.#input.addEventListener('focus', () => {
|
|
32
|
+
this.#chui_email_main.style.border = '1px solid var(--blue_prime_background)';
|
|
33
|
+
this.#label.style.color = 'var(--blue_prime_background)';
|
|
34
|
+
})
|
|
35
|
+
this.#input.addEventListener('blur', () => {
|
|
36
|
+
this.#chui_email_main.removeAttribute("style");
|
|
37
|
+
this.#label.removeAttribute("style");
|
|
38
|
+
})
|
|
39
|
+
this.#chui_email_main.appendChild(this.#input);
|
|
40
|
+
this.#chui_email_input.appendChild(this.#chui_email_main);
|
|
41
|
+
}
|
|
42
|
+
getName() { return this.#input.name; }
|
|
43
|
+
getTitle() { return this.#title; }
|
|
44
|
+
getValue() { return this.#input.value; }
|
|
45
|
+
setValue(text = String()) { this.#input.value = text; }
|
|
46
|
+
setDisabled(boolean = Boolean()) {
|
|
47
|
+
this.#input.disabled = boolean
|
|
48
|
+
if (boolean) {
|
|
49
|
+
this.#chui_email_main.classList.add("chui_email_main_disabled")
|
|
50
|
+
this.#input.className = "email_input_disabled"
|
|
51
|
+
this.#label.className = "email_label_disabled"
|
|
52
|
+
} else {
|
|
53
|
+
this.#chui_email_main.classList.remove("chui_email_main_disabled")
|
|
54
|
+
this.#input.className = "email_input"
|
|
55
|
+
this.#label.className = "email_label"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
set() { return this.#chui_email_input; }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
exports.EmailInput = EmailInput
|
|
@@ -1,72 +1,70 @@
|
|
|
1
|
-
chui_email_input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width:
|
|
5
|
-
height: max-content;
|
|
6
|
-
margin: var(--margin);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
chui_email_main {
|
|
10
|
-
display: flex;
|
|
11
|
-
width: -webkit-fill-available;
|
|
12
|
-
height: max-content;
|
|
13
|
-
margin: 0;
|
|
14
|
-
border-radius: var(--border_radius);
|
|
15
|
-
color: var(--text_color);
|
|
16
|
-
align-items: center;
|
|
17
|
-
position: relative;
|
|
18
|
-
padding: var(--main_padding);
|
|
19
|
-
background: var(--element_background);
|
|
20
|
-
border: 1px solid var(--border_color);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.email_input {
|
|
24
|
-
width: -webkit-fill-available;
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding: 0;
|
|
27
|
-
background: transparent;
|
|
28
|
-
color: var(--text_color);
|
|
29
|
-
text-align: start;
|
|
30
|
-
border: none;
|
|
31
|
-
font-size: var(--font_default_size);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
background: var(--element_background_disabled);
|
|
71
|
-
border: 1px solid var(--border_color);
|
|
1
|
+
chui_email_input {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: var(--control_width);
|
|
5
|
+
height: max-content;
|
|
6
|
+
margin: var(--margin);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
chui_email_main {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: -webkit-fill-available;
|
|
12
|
+
height: max-content;
|
|
13
|
+
margin: 0;
|
|
14
|
+
border-radius: var(--border_radius);
|
|
15
|
+
color: var(--text_color);
|
|
16
|
+
align-items: center;
|
|
17
|
+
position: relative;
|
|
18
|
+
padding: var(--main_padding);
|
|
19
|
+
background: var(--element_background);
|
|
20
|
+
border: 1px solid var(--border_color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.email_input {
|
|
24
|
+
width: -webkit-fill-available;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
background: transparent;
|
|
28
|
+
color: var(--text_color);
|
|
29
|
+
text-align: start;
|
|
30
|
+
border: none;
|
|
31
|
+
font-size: var(--font_default_size);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.email_label {
|
|
35
|
+
height: max-content;
|
|
36
|
+
width: max-content;
|
|
37
|
+
margin: var(--margin);
|
|
38
|
+
font-size: var(--font_labels_size);
|
|
39
|
+
font-weight:500;
|
|
40
|
+
color: var(--text_color)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* DISABLED STYLES */
|
|
44
|
+
.email_input_disabled {
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
width: -webkit-fill-available;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
background: transparent;
|
|
50
|
+
color: var(--text_color_disabled);
|
|
51
|
+
text-align: start;
|
|
52
|
+
border: none;
|
|
53
|
+
font-size: var(--font_default_size);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.email_label_disabled {
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
height: max-content;
|
|
59
|
+
width: max-content;
|
|
60
|
+
margin: var(--margin);
|
|
61
|
+
font-size: var(--font_labels_size);
|
|
62
|
+
font-weight:500;
|
|
63
|
+
color: var(--text_color_disabled)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.chui_email_main_disabled {
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
background: var(--element_background_disabled);
|
|
69
|
+
border: 1px solid var(--border_color);
|
|
72
70
|
}
|