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,86 +1,95 @@
1
- chui_slides_list {
2
- width: 100%;
3
- height: 100%;
4
- display: flex;
5
- }
6
-
7
- chui_slides_main {
8
- position: relative;
9
- margin: var(--margin);
10
- border-radius: var(--border_radius);
11
- }
12
-
13
- chui_next_slide, chui_prev_slide {
14
- cursor: pointer;
15
- position: absolute;
16
- top: 0;
17
- width: auto;
18
- color: var(--text_color);
19
- font-weight: bold;
20
- font-size: 18px;
21
- user-select: none;
22
- border-radius: var(--border_radius);
23
- padding: var(--main_padding);
24
- height: -webkit-fill-available;
25
- display: flex;
26
- align-items: center;
27
- justify-content: center
28
- }
29
-
30
- chui_next_slide {
31
- right: 0
32
- }
33
-
34
- chui_next_slide:hover, chui_prev_slide:hover {
35
- background-color: var(--blue_prime_background)
36
- }
37
-
38
- .text {
39
- color: #f2f2f2;
40
- font-size: 15px;
41
- padding: var(--main_padding);
42
- position: absolute;
43
- bottom: 8px;
44
- width: 100%;
45
- text-align: center
46
- }
47
-
48
- .numbertext {
49
- color: #f2f2f2;
50
- font-size: 12px;
51
- padding: var(--main_padding);
52
- position: absolute;
53
- top: 0
54
- }
55
-
56
- .dot {
57
- cursor: pointer;
58
- height: 15px;
59
- width: 15px;
60
- margin: 0 2px;
61
- background-color: #bbb;
62
- border-radius: 50%;
63
- display: inline-block
64
- }
65
-
66
- .active, .dot:hover {
67
- background-color: #717171;
68
- }
69
-
70
- /* SLIDES */
71
- chui_slide {
72
- display: none;
73
- color: var(--text_color);
74
- border-radius: var(--border_radius);
75
- width: 100%;
76
- height: -webkit-fill-available
77
- }
78
-
79
- chui_slide_content {
80
- display: flex;
81
- color: var(--text_color);
82
- border-radius: var(--border_radius);
83
- width: -webkit-fill-available;
84
- height: -webkit-fill-available;
85
- overflow: auto
1
+ chui_slides_list {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ }
6
+
7
+ chui_slides_main {
8
+ position: relative;
9
+ margin: var(--margin);
10
+ border-radius: var(--border_radius);
11
+ }
12
+
13
+ chui_next_slide, chui_prev_slide {
14
+ cursor: pointer;
15
+ position: absolute;
16
+ top: 0;
17
+ width: auto;
18
+ color: var(--text_color);
19
+ font-weight: bold;
20
+ font-size: 18px;
21
+ user-select: none;
22
+ border-radius: var(--border_radius);
23
+ padding: var(--main_padding);
24
+ height: -webkit-fill-available;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center
28
+ }
29
+
30
+ chui_next_slide {
31
+ right: 0
32
+ }
33
+
34
+ chui_next_slide:hover, chui_prev_slide:hover {
35
+ background-color: var(--blue_prime_background);
36
+ color: var(--text_color_hover)
37
+ }
38
+
39
+ chui_next_slide:active, chui_prev_slide:active {
40
+ background-color: var(--element_background_prime)
41
+ }
42
+
43
+ chui_next_slide:hover chui_icon, chui_prev_slide:hover chui_icon {
44
+ color: var(--text_color_hover);
45
+ }
46
+
47
+ .text {
48
+ color: var(--text_color);
49
+ font-size: 15px;
50
+ padding: var(--main_padding);
51
+ position: absolute;
52
+ bottom: 8px;
53
+ width: 100%;
54
+ text-align: center
55
+ }
56
+
57
+ .numbertext {
58
+ color: var(--text_color);
59
+ font-size: var(--font_labels_size);
60
+ padding: var(--main_padding);
61
+ position: absolute;
62
+ top: 0
63
+ }
64
+
65
+ .dot {
66
+ cursor: pointer;
67
+ height: 15px;
68
+ width: 15px;
69
+ margin: 0 2px;
70
+ background-color: var(--element_background);
71
+ border-radius: var(--radius_circle);
72
+ display: inline-block
73
+ }
74
+
75
+ .active, .dot:hover {
76
+ background-color: var(--blue_prime_background);
77
+ }
78
+
79
+ /* SLIDES */
80
+ chui_slide {
81
+ display: none;
82
+ color: var(--text_color);
83
+ border-radius: var(--border_radius);
84
+ width: 100%;
85
+ height: -webkit-fill-available
86
+ }
87
+
88
+ chui_slide_content {
89
+ display: flex;
90
+ color: var(--text_color);
91
+ border-radius: var(--border_radius);
92
+ width: -webkit-fill-available;
93
+ height: -webkit-fill-available;
94
+ overflow: auto
86
95
  }
@@ -1,46 +1,46 @@
1
- let {Animation} = require('../../modules/chui_animations/animations');
2
-
3
- class Spinner {
4
- #spinner_main = document.createElement('chui_spiner')
5
- #spinner = document.createElement('spinner')
6
- #spinner_2 = document.createElement('spinner')
7
- #spinner_3 = document.createElement('spinner')
8
- constructor(size = Spinner.SIZE, margin = String()) {
9
- require('../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_Spinner');
10
- this.#spinner_main.style.margin = margin;
11
- //
12
- let size_1 = size.SIZE;
13
- this.#spinner.style.width = `${size_1}px`;
14
- this.#spinner.style.height = `${size_1}px`;
15
- this.#spinner.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
16
- //
17
- let size_2 = size_1 - size.BORDER * 2;
18
- this.#spinner_2.style.width = `${size_2}px`;
19
- this.#spinner_2.style.height = `${size_2}px`;
20
- this.#spinner_2.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
21
- //
22
- let size_3 = size_2 - size.BORDER * 2;
23
- this.#spinner_3.style.width = `${size_3}px`;
24
- this.#spinner_3.style.height = `${size_3}px`;
25
- this.#spinner_3.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
26
- //ADDS
27
- this.#spinner_2.appendChild(this.#spinner_3)
28
- this.#spinner.appendChild(this.#spinner_2)
29
- this.#spinner_main.appendChild(this.#spinner);
30
- }
31
- remove() {
32
- new Animation(this.#spinner_main).fadeOutAndRemove();
33
- }
34
- set() {
35
- return this.#spinner_main;
36
- }
37
- static SIZE = {
38
- V_SMALL: { SIZE: 30, BORDER: 3 },
39
- SMALL: { SIZE: 45, BORDER: 3 },
40
- DEFAULT: { SIZE: 60, BORDER: 4 },
41
- BIG: { SIZE: 75, BORDER: 5 },
42
- V_BIG: { SIZE: 90, BORDER: 5 }
43
- }
44
- }
45
-
1
+ let {Animation} = require('../../modules/chui_animations/animations');
2
+
3
+ class Spinner {
4
+ #spinner_main = document.createElement('chui_spiner')
5
+ #spinner = document.createElement('spinner')
6
+ #spinner_2 = document.createElement('spinner')
7
+ #spinner_3 = document.createElement('spinner')
8
+ constructor(size = Spinner.SIZE, margin = String()) {
9
+ require('../../modules/chui_functions').setStyles(__dirname + "/styles.css", 'chUiJS_Spinner');
10
+ this.#spinner_main.style.margin = margin;
11
+ //
12
+ let size_1 = size.SIZE;
13
+ this.#spinner.style.width = `${size_1}px`;
14
+ this.#spinner.style.height = `${size_1}px`;
15
+ this.#spinner.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
16
+ //
17
+ let size_2 = size_1 - size.BORDER * 2;
18
+ this.#spinner_2.style.width = `${size_2}px`;
19
+ this.#spinner_2.style.height = `${size_2}px`;
20
+ this.#spinner_2.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
21
+ //
22
+ let size_3 = size_2 - size.BORDER * 2;
23
+ this.#spinner_3.style.width = `${size_3}px`;
24
+ this.#spinner_3.style.height = `${size_3}px`;
25
+ this.#spinner_3.style.borderTop = `${size.BORDER}px solid var(--blue_prime_background)`;
26
+ //ADDS
27
+ this.#spinner_2.appendChild(this.#spinner_3)
28
+ this.#spinner.appendChild(this.#spinner_2)
29
+ this.#spinner_main.appendChild(this.#spinner);
30
+ }
31
+ remove() {
32
+ new Animation(this.#spinner_main).fadeOutAndRemove();
33
+ }
34
+ set() {
35
+ return this.#spinner_main;
36
+ }
37
+ static SIZE = {
38
+ V_SMALL: { SIZE: 30, BORDER: 3 },
39
+ SMALL: { SIZE: 45, BORDER: 3 },
40
+ DEFAULT: { SIZE: 60, BORDER: 4 },
41
+ BIG: { SIZE: 75, BORDER: 5 },
42
+ V_BIG: { SIZE: 90, BORDER: 5 }
43
+ }
44
+ }
45
+
46
46
  exports.Spinner = Spinner
@@ -1,23 +1,23 @@
1
- chui_spiner {
2
- width: max-content;
3
- height: max-content;
4
- display: flex;
5
- }
6
-
7
- spinner {
8
- border-radius: 50%;
9
- animation: spinner 2s linear infinite;
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- }
14
-
15
- @keyframes spinner {
16
- from {
17
- transform: rotate(0deg);
18
- }
19
- to {
20
- transform: rotate(360deg);
21
- }
22
- }
23
-
1
+ chui_spiner {
2
+ width: max-content;
3
+ height: max-content;
4
+ display: flex;
5
+ }
6
+
7
+ spinner {
8
+ border-radius: 50%;
9
+ animation: spinner 2s linear infinite;
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ }
14
+
15
+ @keyframes spinner {
16
+ from {
17
+ transform: rotate(0deg);
18
+ }
19
+ to {
20
+ transform: rotate(360deg);
21
+ }
22
+ }
23
+
@@ -1,43 +1,43 @@
1
- table {
2
- border: 1px solid var(--element_background);
3
- border-radius: var(--border_radius);
4
- margin: var(--margin);
5
- display: grid;
6
- width: inherit;
7
- height: max-content;
8
- overflow: auto
9
- }
10
-
11
- thead {
12
- background: var(--element_background);
13
- font-weight: 500;
14
- height: max-content;
15
- width: 100%
16
- }
17
-
18
- tbody {
19
- overflow: visible;
20
- height: max-content;
21
- width: 100%
22
- }
23
-
24
- tr {
25
- display: grid;
26
- height: max-content;
27
- width: 100%;
28
- margin: 0;
29
- grid-row-start: 1;
30
- grid-row-end: 3
31
- }
32
-
33
- td {
34
- color: var(--text_color);
35
- white-space: break-spaces;
36
- word-break: break-all;
37
- align-items: center;
38
- padding: var(--main_padding);
39
- }
40
-
41
- cell_title, sort_button {
42
- color: var(--blue_prime_background);
1
+ table {
2
+ border: 1px solid var(--element_background);
3
+ border-radius: var(--border_radius);
4
+ margin: var(--margin);
5
+ display: grid;
6
+ width: inherit;
7
+ height: max-content;
8
+ overflow: auto
9
+ }
10
+
11
+ thead {
12
+ background: var(--element_background);
13
+ font-weight: 500;
14
+ height: max-content;
15
+ width: 100%
16
+ }
17
+
18
+ tbody {
19
+ overflow: visible;
20
+ height: max-content;
21
+ width: 100%
22
+ }
23
+
24
+ tr {
25
+ display: grid;
26
+ height: max-content;
27
+ width: 100%;
28
+ margin: 0;
29
+ grid-row-start: 1;
30
+ grid-row-end: 3
31
+ }
32
+
33
+ td {
34
+ color: var(--text_color);
35
+ white-space: break-spaces;
36
+ word-break: break-all;
37
+ align-items: center;
38
+ padding: var(--main_padding);
39
+ }
40
+
41
+ cell_title, sort_button {
42
+ color: var(--blue_prime_background);
43
43
  }