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.
Files changed (119) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1203 -162
  3. package/framework/appLayout/default/chui_app_layout.js +747 -747
  4. package/framework/appLayout/default/global_style.css +592 -568
  5. package/framework/appLayout/default/main_theme_style.css +118 -101
  6. package/framework/components/chui_accordion/accordion.js +63 -63
  7. package/framework/components/chui_accordion/styles.css +79 -75
  8. package/framework/components/chui_badge/badge.js +55 -55
  9. package/framework/components/chui_badge/styles.css +29 -29
  10. package/framework/components/chui_button/button.js +48 -48
  11. package/framework/components/chui_button/styles.css +75 -70
  12. package/framework/components/chui_calendar/calendar.js +97 -97
  13. package/framework/components/chui_card/card.js +87 -0
  14. package/framework/components/chui_card/styles.css +72 -0
  15. package/framework/components/chui_code/code.js +18 -18
  16. package/framework/components/chui_code/styles.css +9 -9
  17. package/framework/components/chui_console/console.js +27 -27
  18. package/framework/components/chui_console/styles.css +31 -31
  19. package/framework/components/chui_content_block/content_block.js +51 -51
  20. package/framework/components/chui_content_block/styles.css +2 -2
  21. package/framework/components/chui_context_menu/context_menu.js +230 -0
  22. package/framework/components/chui_context_menu/styles.css +136 -0
  23. package/framework/components/chui_custom_element/custom_element.js +24 -24
  24. package/framework/components/chui_details/details.js +85 -85
  25. package/framework/components/chui_details/styles.css +70 -66
  26. package/framework/components/chui_fieldset/fieldset.js +40 -40
  27. package/framework/components/chui_fieldset/styles.css +24 -24
  28. package/framework/components/chui_form/form.js +40 -40
  29. package/framework/components/chui_form/styles.css +21 -21
  30. package/framework/components/chui_graphs/graphs.js +234 -190
  31. package/framework/components/chui_graphs/styles.css +37 -32
  32. package/framework/components/chui_hero/hero.js +98 -0
  33. package/framework/components/chui_hero/styles.css +91 -0
  34. package/framework/components/chui_html_block/html_block.js +16 -16
  35. package/framework/components/chui_html_block/styles.css +5 -5
  36. package/framework/components/chui_hx/hx.js +15 -15
  37. package/framework/components/chui_hx/styles.css +38 -38
  38. package/framework/components/chui_icons/icons.js +2144 -2144
  39. package/framework/components/chui_icons/styles.css +13 -13
  40. package/framework/components/chui_inputs/chui_check_box/check_box.js +32 -32
  41. package/framework/components/chui_inputs/chui_check_box/styles.css +91 -86
  42. package/framework/components/chui_inputs/chui_combo_box/combo_box.js +166 -150
  43. package/framework/components/chui_inputs/chui_combo_box/styles.css +113 -107
  44. package/framework/components/chui_inputs/chui_date/date.js +177 -174
  45. package/framework/components/chui_inputs/chui_date/styles.css +163 -128
  46. package/framework/components/chui_inputs/chui_email/email.js +61 -61
  47. package/framework/components/chui_inputs/chui_email/styles.css +69 -71
  48. package/framework/components/chui_inputs/chui_file/file.js +76 -76
  49. package/framework/components/chui_inputs/chui_file/styles.css +99 -99
  50. package/framework/components/chui_inputs/chui_multi_combo_box/multi_combo_box.js +295 -295
  51. package/framework/components/chui_inputs/chui_multi_combo_box/styles.css +212 -235
  52. package/framework/components/chui_inputs/chui_number/number.js +108 -108
  53. package/framework/components/chui_inputs/chui_number/styles.css +84 -84
  54. package/framework/components/chui_inputs/chui_password/password.js +99 -99
  55. package/framework/components/chui_inputs/chui_password/styles.css +97 -97
  56. package/framework/components/chui_inputs/chui_radio_button/radio_button.js +45 -45
  57. package/framework/components/chui_inputs/chui_radio_button/styles.css +76 -73
  58. package/framework/components/chui_inputs/chui_select_box/select_box.js +187 -170
  59. package/framework/components/chui_inputs/chui_select_box/styles.css +123 -117
  60. package/framework/components/chui_inputs/chui_text/styles.css +83 -84
  61. package/framework/components/chui_inputs/chui_text/text.js +91 -91
  62. package/framework/components/chui_inputs/chui_text_area/styles.css +57 -57
  63. package/framework/components/chui_inputs/chui_text_area/text_area.js +61 -61
  64. package/framework/components/chui_inputs/chui_toggle/styles.css +66 -61
  65. package/framework/components/chui_inputs/chui_toggle/toggle.js +36 -36
  66. package/framework/components/chui_label/label.js +54 -54
  67. package/framework/components/chui_label/styles.css +11 -11
  68. package/framework/components/chui_media/audio.js +908 -908
  69. package/framework/components/chui_media/audio_styles.css +458 -458
  70. package/framework/components/chui_media/image.js +105 -105
  71. package/framework/components/chui_media/image_styles.css +61 -61
  72. package/framework/components/chui_media/video.js +248 -248
  73. package/framework/components/chui_media/video_styles.css +160 -160
  74. package/framework/components/chui_menu_bar/menu_bar.js +66 -74
  75. package/framework/components/chui_menu_bar/styles.css +114 -76
  76. package/framework/components/chui_modal/modal.js +142 -135
  77. package/framework/components/chui_modal/styles.css +36 -36
  78. package/framework/components/chui_notification/notification.js +72 -72
  79. package/framework/components/chui_notification/notification_download.js +78 -78
  80. package/framework/components/chui_notification/notification_download_progress.css +119 -123
  81. package/framework/components/chui_notification/notification_download_progress.js +105 -105
  82. package/framework/components/chui_notification/notification_update.js +54 -54
  83. package/framework/components/chui_notification/styles.css +91 -91
  84. package/framework/components/chui_notification/styles_download.css +85 -85
  85. package/framework/components/chui_notification/styles_update.css +73 -73
  86. package/framework/components/chui_paragraph/paragraph.js +14 -14
  87. package/framework/components/chui_paragraph/styles.css +6 -6
  88. package/framework/components/chui_popups/popups.js +250 -250
  89. package/framework/components/chui_popups/styles.css +129 -115
  90. package/framework/components/chui_progress_bar/progress_bar.js +28 -28
  91. package/framework/components/chui_progress_bar/styles.css +28 -28
  92. package/framework/components/chui_radio_group/radio_group.js +57 -57
  93. package/framework/components/chui_radio_group/styles.css +3 -3
  94. package/framework/components/chui_slideshow/slideshow.js +75 -75
  95. package/framework/components/chui_slideshow/styles.css +94 -85
  96. package/framework/components/chui_spinner/spinner.js +45 -45
  97. package/framework/components/chui_spinner/styles.css +23 -23
  98. package/framework/components/chui_table/styles.css +42 -42
  99. package/framework/components/chui_table/table.js +234 -234
  100. package/framework/components/chui_tabs/chui_tabs.js +77 -77
  101. package/framework/components/chui_tabs/styles.css +54 -48
  102. package/framework/components/chui_text_editor/styles.css +217 -217
  103. package/framework/components/chui_text_editor/text_editor.js +144 -144
  104. package/framework/components/chui_text_editor/text_editor_panel.js +568 -568
  105. package/framework/components/chui_tree_view/styles.css +81 -75
  106. package/framework/components/chui_tree_view/tree_view.js +90 -90
  107. package/framework/components/chui_webview/styles.css +27 -27
  108. package/framework/components/chui_webview/webview.js +103 -103
  109. package/framework/components/telegram_bot/chui_telegram_bot.js +183 -183
  110. package/framework/modules/chui_animations/animations.js +121 -121
  111. package/framework/modules/chui_animations/styles.css +79 -79
  112. package/framework/modules/chui_fonts.js +7129 -6974
  113. package/framework/modules/chui_functions.js +106 -78
  114. package/framework/modules/chui_logger/chui_logger.js +53 -53
  115. package/framework/modules/chui_page/page.js +86 -86
  116. package/framework/modules/chui_page/styles.css +9 -9
  117. package/framework/tray_bar/chui_menu_items.js +48 -48
  118. package/index.js +570 -555
  119. package/package.json +51 -46
@@ -1,55 +1,55 @@
1
- const {Animation} = require('../../modules/chui_animations/animations');
2
- const {Spinner} = require("../chui_spinner/spinner");
3
- const {setStyles, getDate} = require('../../modules/chui_functions');
4
-
5
- class UpdateNotification {
6
- #id = require("randomstring").generate();
7
- #update_notification = document.createElement(`update_notification`);
8
- #update_notification_content = document.createElement("update_notification_content");
9
- #update_notification_header = document.createElement("update_notification_header");
10
- #update_notification_title = document.createElement("update_notification_title");
11
- #update_notification_date = document.createElement("update_notification_date");
12
- #update_notification_body = document.createElement("update_notification_body");
13
- #update_notification_text = document.createElement("update_notification_text");
14
- constructor(options = { title: String(), text: String(), spinner: Boolean() }) {
15
- setStyles(__dirname + "/styles_update.css", 'chUiJS_UpdateNotification');
16
- this.#update_notification.id = this.#id;
17
- // Стили заголовка уведомления
18
- if (options.title !== undefined) {
19
- this.#update_notification_title.innerText = options.title;
20
- } else {
21
- throw new Error("Должна быть установлена опция title");
22
- }
23
- // Стили текста уведомления
24
- if (options.text !== undefined) {
25
- this.#update_notification_text.innerText = options.text;
26
- } else {
27
- throw new Error("Должна быть установлена опция text");
28
- }
29
- this.#update_notification_date.innerHTML = getDate();
30
- //
31
- this.#update_notification_header.appendChild(this.#update_notification_title)
32
- this.#update_notification_header.appendChild(this.#update_notification_date)
33
- //
34
- this.#update_notification_content.appendChild(this.#update_notification_header)
35
- if (options.spinner) {
36
- let spinner_def = new Spinner(Spinner.SIZE.V_SMALL, '3px 8px 3px 3px');
37
- this.#update_notification_body.appendChild(spinner_def.set());
38
- }
39
- this.#update_notification_body.appendChild(this.#update_notification_text)
40
- this.#update_notification_content.appendChild(this.#update_notification_body)
41
- this.#update_notification.appendChild(this.#update_notification_content)
42
- }
43
- show(showOnSystem = Boolean()) {
44
- document.getElementsByTagName('notification_panel')[0].appendChild(this.#update_notification);
45
- let notification = document.getElementById(this.#id);
46
- new Animation(notification).slideRightIn();
47
- //notification.addEventListener("click", () => this.hide(notification));
48
- if (showOnSystem) require("electron").ipcRenderer.send("show_system_notification", this.#update_notification_title.innerText, this.#update_notification_text.innerText);
49
- }
50
- hide() {
51
- new Animation(this.#update_notification).slideRightOutAndRemove();
52
- }
53
- }
54
-
1
+ const {Animation} = require('../../modules/chui_animations/animations');
2
+ const {Spinner} = require("../chui_spinner/spinner");
3
+ const {setStyles, getDate} = require('../../modules/chui_functions');
4
+
5
+ class UpdateNotification {
6
+ #id = require("randomstring").generate();
7
+ #update_notification = document.createElement(`update_notification`);
8
+ #update_notification_content = document.createElement("update_notification_content");
9
+ #update_notification_header = document.createElement("update_notification_header");
10
+ #update_notification_title = document.createElement("update_notification_title");
11
+ #update_notification_date = document.createElement("update_notification_date");
12
+ #update_notification_body = document.createElement("update_notification_body");
13
+ #update_notification_text = document.createElement("update_notification_text");
14
+ constructor(options = { title: String(), text: String(), spinner: Boolean() }) {
15
+ setStyles(__dirname + "/styles_update.css", 'chUiJS_UpdateNotification');
16
+ this.#update_notification.id = this.#id;
17
+ // Стили заголовка уведомления
18
+ if (options.title !== undefined) {
19
+ this.#update_notification_title.innerText = options.title;
20
+ } else {
21
+ throw new Error("Должна быть установлена опция title");
22
+ }
23
+ // Стили текста уведомления
24
+ if (options.text !== undefined) {
25
+ this.#update_notification_text.innerText = options.text;
26
+ } else {
27
+ throw new Error("Должна быть установлена опция text");
28
+ }
29
+ this.#update_notification_date.innerHTML = getDate();
30
+ //
31
+ this.#update_notification_header.appendChild(this.#update_notification_title)
32
+ this.#update_notification_header.appendChild(this.#update_notification_date)
33
+ //
34
+ this.#update_notification_content.appendChild(this.#update_notification_header)
35
+ if (options.spinner) {
36
+ let spinner_def = new Spinner(Spinner.SIZE.V_SMALL, '3px 8px 3px 3px');
37
+ this.#update_notification_body.appendChild(spinner_def.set());
38
+ }
39
+ this.#update_notification_body.appendChild(this.#update_notification_text)
40
+ this.#update_notification_content.appendChild(this.#update_notification_body)
41
+ this.#update_notification.appendChild(this.#update_notification_content)
42
+ }
43
+ show(showOnSystem = Boolean()) {
44
+ document.getElementsByTagName('notification_panel')[0].appendChild(this.#update_notification);
45
+ let notification = document.getElementById(this.#id);
46
+ new Animation(notification).slideRightIn();
47
+ //notification.addEventListener("click", () => this.hide(notification));
48
+ if (showOnSystem) require("electron").ipcRenderer.send("show_system_notification", this.#update_notification_title.innerText, this.#update_notification_text.innerText);
49
+ }
50
+ hide() {
51
+ new Animation(this.#update_notification).slideRightOutAndRemove();
52
+ }
53
+ }
54
+
55
55
  exports.UpdateNotification = UpdateNotification
@@ -1,92 +1,92 @@
1
- notification {
2
- display: none;
3
- height: max-content;
4
- width: max-content;
5
- min-width: 356px;
6
- max-width: 356px;
7
- border-radius: var(--border_radius);
8
- margin: var(--margin);
9
- font-size: var(--font_default_size);
10
- padding: var(--main_padding);
11
- background: var(--header_background);
12
- backdrop-filter: var(--global_blur);
13
- box-shadow: var(--box_shadow_main);
14
- z-index: 1002;
15
- border: 1px solid var(--border_color);
16
- }
17
-
18
- .notification_warning {
19
- background: var(--badge_warning_back);
20
- box-shadow: var(--box_shadow_main);
21
- border: 1px solid var(--badge_warning_back);
22
- }
23
-
24
- .notification_error {
25
- background: var(--badge_error_back);
26
- box-shadow: var(--box_shadow_main);
27
- border: 1px solid var(--badge_error_back);
28
- }
29
-
30
- .notification_success {
31
- background: var(--badge_success_back);
32
- box-shadow: var(--box_shadow_main);
33
- border: 1px solid var(--badge_success_back);
34
- }
35
-
36
- notification_content {
37
- display: flex;
38
- flex-direction: column;
39
- flex: 1;
40
- justify-content: flex-start;
41
- align-items: flex-start;
42
- }
43
-
44
- notification_header {
45
- display: flex;
46
- flex-direction: row;
47
- flex: 1;
48
- justify-content: space-between;
49
- align-items: center;
50
- width: -webkit-fill-available;
51
- }
52
-
53
- notification_title {
54
- font-size: var(--font_default_size);
55
- font-weight: 500;
56
- margin: 3px;
57
- color: var(--text_color);
58
- word-break: break-all;
59
- }
60
-
61
- notification_title p {
62
- margin: 0;
63
- }
64
-
65
- notification_date {
66
- font-size: 8pt;
67
- font-weight: 500;
68
- margin: 0px 3px;
69
- color: var(--text_color);
70
- white-space: pre;
71
- text-align: end;
72
- }
73
-
74
- notification_text {
75
- font-size: var(--font_notification_size);
76
- font-weight: 400;
77
- margin: 3px;
78
- color: var(--text_color);
79
- word-break: break-word;
80
- }
81
-
82
- notification_text * {
83
- font-size: inherit;
84
- font-weight: inherit;
85
- margin: 0;
86
- }
87
-
88
- notification_text p strong {
89
- font-size: inherit;
90
- font-weight: 500;
91
- margin: 0;
1
+ notification {
2
+ display: none;
3
+ height: max-content;
4
+ width: max-content;
5
+ min-width: 356px;
6
+ max-width: 356px;
7
+ border-radius: var(--border_radius);
8
+ margin: var(--margin);
9
+ font-size: var(--font_default_size);
10
+ padding: var(--main_padding);
11
+ background: var(--header_background);
12
+ backdrop-filter: var(--global_blur);
13
+ box-shadow: var(--box_shadow_main);
14
+ z-index: 1002;
15
+ border: 1px solid var(--border_color);
16
+ }
17
+
18
+ .notification_warning {
19
+ background: var(--badge_warning_back);
20
+ box-shadow: var(--box_shadow_main);
21
+ border: 1px solid var(--badge_warning_back);
22
+ }
23
+
24
+ .notification_error {
25
+ background: var(--badge_error_back);
26
+ box-shadow: var(--box_shadow_main);
27
+ border: 1px solid var(--badge_error_back);
28
+ }
29
+
30
+ .notification_success {
31
+ background: var(--badge_success_back);
32
+ box-shadow: var(--box_shadow_main);
33
+ border: 1px solid var(--badge_success_back);
34
+ }
35
+
36
+ notification_content {
37
+ display: flex;
38
+ flex-direction: column;
39
+ flex: 1;
40
+ justify-content: flex-start;
41
+ align-items: flex-start;
42
+ }
43
+
44
+ notification_header {
45
+ display: flex;
46
+ flex-direction: row;
47
+ flex: 1;
48
+ justify-content: space-between;
49
+ align-items: center;
50
+ width: -webkit-fill-available;
51
+ }
52
+
53
+ notification_title {
54
+ font-size: var(--font_default_size);
55
+ font-weight: 500;
56
+ margin: 3px;
57
+ color: var(--text_color);
58
+ word-break: break-all;
59
+ }
60
+
61
+ notification_title p {
62
+ margin: 0;
63
+ }
64
+
65
+ notification_date {
66
+ font-size: 8pt;
67
+ font-weight: 500;
68
+ margin: 0px 3px;
69
+ color: var(--text_color);
70
+ white-space: pre;
71
+ text-align: end;
72
+ }
73
+
74
+ notification_text {
75
+ font-size: var(--font_notification_size);
76
+ font-weight: 400;
77
+ margin: 3px;
78
+ color: var(--text_color);
79
+ word-break: break-word;
80
+ }
81
+
82
+ notification_text * {
83
+ font-size: inherit;
84
+ font-weight: inherit;
85
+ margin: 0;
86
+ }
87
+
88
+ notification_text p strong {
89
+ font-size: inherit;
90
+ font-weight: 500;
91
+ margin: 0;
92
92
  }
@@ -1,86 +1,86 @@
1
- /* download */
2
- download_notification {
3
- display: none;
4
- height: max-content;
5
- width: max-content;
6
- max-width: 600px;
7
- border-radius: var(--border_radius);
8
- margin: var(--margin);
9
- font-size: var(--font_default_size);
10
- padding: 6px 10px;
11
- background: var(--header_background);
12
- backdrop-filter: var(--global_blur);
13
- z-index: 1002;
14
- box-shadow: var(--box_shadow_main);
15
- border: 1px solid var(--border_color);
16
- }
17
-
18
- .download_notification_error {
19
- background: var(--badge_error_back);
20
- box-shadow: var(--box_shadow_main);
21
- border: 1px solid var(--badge_error_back);
22
- }
23
-
24
- .download_notification_success {
25
- background: var(--badge_success_back);
26
- box-shadow: var(--box_shadow_main);
27
- border: 1px solid var(--badge_success_back);
28
- }
29
-
30
- download_notification_body {
31
- display: flex;
32
- flex-direction: row;
33
- flex: 1;
34
- justify-content: left;
35
- align-items: center;
36
- }
37
-
38
- download_notification_content {
39
- display: flex;
40
- flex-direction: column;
41
- flex: 1;
42
- justify-content: flex-start;
43
- align-items: flex-start;
44
- }
45
-
46
- download_notification_header {
47
- display: flex;
48
- flex-direction: row;
49
- flex: 1;
50
- justify-content: space-between;
51
- align-items: center;
52
- width: -webkit-fill-available;
53
- }
54
-
55
- download_notification_title {
56
- font-size: var(--font_default_size);
57
- font-weight: 500;
58
- margin: 3px;
59
- color: var(--text_color);
60
- word-break: break-all;
61
- }
62
-
63
- download_notification_title p {
64
- margin: 0;
65
- }
66
-
67
- download_notification_date {
68
- font-size: 8pt;
69
- font-weight: 400;
70
- margin: 3px 0 0 10px;
71
- color: var(--text_color);
72
- white-space: pre;
73
- text-align: end;
74
- }
75
-
76
- download_notification_text {
77
- font-size: 11pt;
78
- font-weight: 400;
79
- margin: 6px 3px;
80
- color: var(--text_color);
81
- word-break: break-word;
82
- }
83
-
84
- download_notification_text p {
85
- margin: 0;
1
+ /* download */
2
+ download_notification {
3
+ display: none;
4
+ height: max-content;
5
+ width: max-content;
6
+ max-width: 600px;
7
+ border-radius: var(--border_radius);
8
+ margin: var(--margin);
9
+ font-size: var(--font_default_size);
10
+ padding: 6px 10px;
11
+ background: var(--header_background);
12
+ backdrop-filter: var(--global_blur);
13
+ z-index: 1002;
14
+ box-shadow: var(--box_shadow_main);
15
+ border: 1px solid var(--border_color);
16
+ }
17
+
18
+ .download_notification_error {
19
+ background: var(--badge_error_back);
20
+ box-shadow: var(--box_shadow_main);
21
+ border: 1px solid var(--badge_error_back);
22
+ }
23
+
24
+ .download_notification_success {
25
+ background: var(--badge_success_back);
26
+ box-shadow: var(--box_shadow_main);
27
+ border: 1px solid var(--badge_success_back);
28
+ }
29
+
30
+ download_notification_body {
31
+ display: flex;
32
+ flex-direction: row;
33
+ flex: 1;
34
+ justify-content: left;
35
+ align-items: center;
36
+ }
37
+
38
+ download_notification_content {
39
+ display: flex;
40
+ flex-direction: column;
41
+ flex: 1;
42
+ justify-content: flex-start;
43
+ align-items: flex-start;
44
+ }
45
+
46
+ download_notification_header {
47
+ display: flex;
48
+ flex-direction: row;
49
+ flex: 1;
50
+ justify-content: space-between;
51
+ align-items: center;
52
+ width: -webkit-fill-available;
53
+ }
54
+
55
+ download_notification_title {
56
+ font-size: var(--font_default_size);
57
+ font-weight: 500;
58
+ margin: 3px;
59
+ color: var(--text_color);
60
+ word-break: break-all;
61
+ }
62
+
63
+ download_notification_title p {
64
+ margin: 0;
65
+ }
66
+
67
+ download_notification_date {
68
+ font-size: 8pt;
69
+ font-weight: 400;
70
+ margin: 3px 0 0 10px;
71
+ color: var(--text_color);
72
+ white-space: pre;
73
+ text-align: end;
74
+ }
75
+
76
+ download_notification_text {
77
+ font-size: 11pt;
78
+ font-weight: 400;
79
+ margin: 6px 3px;
80
+ color: var(--text_color);
81
+ word-break: break-word;
82
+ }
83
+
84
+ download_notification_text p {
85
+ margin: 0;
86
86
  }
@@ -1,74 +1,74 @@
1
- /* UPDATE */
2
- update_notification {
3
- display: none;
4
- height: max-content;
5
- width: max-content;
6
- max-width: 600px;
7
- border-radius: var(--border_radius);
8
- margin: var(--margin);
9
- font-size: var(--font_default_size);
10
- padding: 6px 10px;
11
- background: var(--header_background);
12
- backdrop-filter: var(--global_blur);
13
- z-index: 1002;
14
- box-shadow: var(--box_shadow_main);
15
- border: 1px solid var(--border_color);
16
- }
17
-
18
- update_notification_body {
19
- display: flex;
20
- flex-direction: row;
21
- flex: 1;
22
- justify-content: center;
23
- align-items: center;
24
- }
25
-
26
- update_notification_content {
27
- display: flex;
28
- flex-direction: column;
29
- flex: 1;
30
- justify-content: flex-start;
31
- align-items: flex-start;
32
- }
33
-
34
- update_notification_header {
35
- display: flex;
36
- flex-direction: row;
37
- flex: 1;
38
- justify-content: space-between;
39
- align-items: center;
40
- width: -webkit-fill-available;
41
- }
42
-
43
- update_notification_title {
44
- font-size: var(--font_default_size);
45
- font-weight: 500;
46
- margin: 3px;
47
- color: var(--text_color);
48
- word-break: break-all;
49
- }
50
-
51
- update_notification_title p {
52
- margin: 0;
53
- }
54
-
55
- update_notification_date {
56
- font-size: 8pt;
57
- font-weight: 400;
58
- margin: 3px 0 0 10px;
59
- color: var(--text_color);
60
- white-space: pre;
61
- text-align: end;
62
- }
63
-
64
- update_notification_text {
65
- font-size: 11pt;
66
- font-weight: 400;
67
- margin: 6px 3px;
68
- color: var(--text_color);
69
- word-break: break-word;
70
- }
71
-
72
- update_notification_text p {
73
- margin: 0;
1
+ /* UPDATE */
2
+ update_notification {
3
+ display: none;
4
+ height: max-content;
5
+ width: max-content;
6
+ max-width: 600px;
7
+ border-radius: var(--border_radius);
8
+ margin: var(--margin);
9
+ font-size: var(--font_default_size);
10
+ padding: 6px 10px;
11
+ background: var(--header_background);
12
+ backdrop-filter: var(--global_blur);
13
+ z-index: 1002;
14
+ box-shadow: var(--box_shadow_main);
15
+ border: 1px solid var(--border_color);
16
+ }
17
+
18
+ update_notification_body {
19
+ display: flex;
20
+ flex-direction: row;
21
+ flex: 1;
22
+ justify-content: center;
23
+ align-items: center;
24
+ }
25
+
26
+ update_notification_content {
27
+ display: flex;
28
+ flex-direction: column;
29
+ flex: 1;
30
+ justify-content: flex-start;
31
+ align-items: flex-start;
32
+ }
33
+
34
+ update_notification_header {
35
+ display: flex;
36
+ flex-direction: row;
37
+ flex: 1;
38
+ justify-content: space-between;
39
+ align-items: center;
40
+ width: -webkit-fill-available;
41
+ }
42
+
43
+ update_notification_title {
44
+ font-size: var(--font_default_size);
45
+ font-weight: 500;
46
+ margin: 3px;
47
+ color: var(--text_color);
48
+ word-break: break-all;
49
+ }
50
+
51
+ update_notification_title p {
52
+ margin: 0;
53
+ }
54
+
55
+ update_notification_date {
56
+ font-size: 8pt;
57
+ font-weight: 400;
58
+ margin: 3px 0 0 10px;
59
+ color: var(--text_color);
60
+ white-space: pre;
61
+ text-align: end;
62
+ }
63
+
64
+ update_notification_text {
65
+ font-size: 11pt;
66
+ font-weight: 400;
67
+ margin: 6px 3px;
68
+ color: var(--text_color);
69
+ word-break: break-word;
70
+ }
71
+
72
+ update_notification_text p {
73
+ margin: 0;
74
74
  }
@@ -1,15 +1,15 @@
1
- class Paragraph {
2
- #Paragraph = document.createElement(`p`);
3
- constructor(text = String()) {
4
- require('../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_Paragraph');
5
- this.#Paragraph.innerText = text;
6
- }
7
- setText(text = String()) {
8
- this.#Paragraph.innerText = text;
9
- }
10
- set() {
11
- return this.#Paragraph;
12
- }
13
- }
14
-
1
+ class Paragraph {
2
+ #Paragraph = document.createElement(`p`);
3
+ constructor(text = String()) {
4
+ require('../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_Paragraph');
5
+ this.#Paragraph.innerText = text;
6
+ }
7
+ setText(text = String()) {
8
+ this.#Paragraph.innerText = text;
9
+ }
10
+ set() {
11
+ return this.#Paragraph;
12
+ }
13
+ }
14
+
15
15
  exports.Paragraph = Paragraph
@@ -1,7 +1,7 @@
1
- p {
2
- height: max-content;
3
- width: max-content;
4
- color: var(--text_color);
5
- margin: var(--margin);
6
- font-size: var(--font_default_size);
1
+ p {
2
+ height: max-content;
3
+ width: max-content;
4
+ color: var(--text_color);
5
+ margin: var(--margin);
6
+ font-size: var(--font_default_size);
7
7
  }