@loftyshaky/shared-app 1.0.2 → 1.1.0
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/_locales/en/messages.json +95 -2
- package/_locales/ru/messages.json +77 -2
- package/announcement.js +1 -1
- package/app.js +1 -1
- package/chunk-main-130f654b.js +9 -0
- package/chunk-main-35e603b6.js +1 -0
- package/{chunk-main-6b1a6024.js → chunk-main-aca0d1f6.js} +1 -1
- package/{chunk-pickr.min-ee5e2c4f.js → chunk-pickr.min-81c0b025.js} +1 -1
- package/ext.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/inputs.js +1 -1
- package/js/env.js +11 -3
- package/js/locales.js +23 -8
- package/js/webpack.config.js +9 -0
- package/package.json +2 -2
- package/scss/settings/section_btns.scss +52 -52
- package/scss/settings/sections.scss +22 -0
- package/scss/settings/transitions.scss +2 -12
- package/scss/shared/btns.scss +69 -16
- package/scss/shared/checkboxes.scss +38 -38
- package/scss/shared/close_btn.scss +18 -0
- package/scss/shared/color_pickers.scss +93 -93
- package/scss/shared/colors.scss +90 -84
- package/scss/shared/embed/error.scss +43 -26
- package/scss/shared/focus.scss +15 -9
- package/scss/shared/functions.scss +5 -0
- package/scss/shared/help.scss +3 -5
- package/scss/shared/index.scss +5 -0
- package/scss/shared/input_btns.scss +12 -11
- package/scss/shared/input_error.scss +3 -0
- package/scss/shared/inputs.scss +87 -70
- package/scss/shared/inset_border.scss +0 -4
- package/scss/shared/link_btns.scss +8 -0
- package/scss/shared/links.scss +12 -0
- package/scss/shared/main.scss +3 -0
- package/scss/shared/mixins.scss +50 -0
- package/scss/shared/mods.scss +11 -3
- package/scss/shared/offers.scss +37 -0
- package/scss/shared/scrollbar.scss +35 -35
- package/scss/shared/themes/colors/aqua.scss +39 -0
- package/scss/shared/themes/colors/dark.scss +47 -12
- package/scss/shared/themes/colors/lavender.scss +39 -0
- package/scss/shared/themes/colors/light.scss +47 -12
- package/scss/shared/themes/colors/very_dark.scss +47 -12
- package/scss/shared/themes/general/aqua_theme.scss +9 -0
- package/scss/shared/themes/general/dark_theme.scss +3 -1
- package/scss/shared/themes/general/lavender_theme.scss +9 -0
- package/scss/shared/themes/general/light_theme.scss +3 -1
- package/scss/shared/themes/general/template.scss +112 -70
- package/scss/shared/themes/general/template_focus.scss +20 -8
- package/scss/shared/themes/general/very_dark_theme.scss +3 -1
- package/scss/shared/transitions.scss +24 -3
- package/scss/shared/upload_box.scss +81 -67
- package/scss/shared/vars.scss +9 -2
- package/settings.d.ts +1 -1
- package/settings.js +1 -1
- package/ts/error_modules/error/components/index.d.ts +2 -0
- package/ts/error_modules/error/components/keep_visible_msg.d.ts +2 -0
- package/ts/error_modules/error/components/progress.d.ts +2 -0
- package/ts/error_modules/error/data/index.d.ts +1 -0
- package/ts/error_modules/error/data/main.d.ts +2 -1
- package/ts/error_modules/error/data/msg.d.ts +0 -2
- package/ts/error_modules/error/data/progress.d.ts +17 -0
- package/ts/error_modules/error/data/state.d.ts +3 -2
- package/ts/error_modules/error/interfaces/index.d.ts +2 -0
- package/ts/error_modules/error/interfaces/notification_type.d.ts +1 -0
- package/ts/error_modules/error/interfaces/observable_keys.d.ts +1 -1
- package/ts/error_modules/error/interfaces/show_error.d.ts +7 -2
- package/ts/error_modules/error/interfaces/show_unable_to_access_settings_error.d.ts +5 -0
- package/ts/error_modules/error/scripts/flash.d.ts +11 -0
- package/ts/error_modules/error/scripts/globals.d.ts +3 -0
- package/ts/error_modules/error/scripts/index.d.ts +2 -0
- package/ts/error_modules/error/scripts/notification.d.ts +8 -0
- package/ts/error_modules/init.d.ts +1 -0
- package/ts/error_modules/internal.d.ts +1 -0
- package/ts/inputs/components/form.d.ts +3 -0
- package/ts/inputs/components/index.d.ts +4 -0
- package/ts/inputs/components/input_error.d.ts +3 -0
- package/ts/inputs/components/label_in_input_item.d.ts +3 -0
- package/ts/inputs/components/link_icon_btn.d.ts +3 -0
- package/ts/inputs/components/prop_types/form.d.ts +5 -0
- package/ts/inputs/components/prop_types/index.d.ts +4 -0
- package/ts/inputs/components/prop_types/input_error.d.ts +4 -0
- package/ts/inputs/components/prop_types/label.d.ts +2 -2
- package/ts/inputs/components/prop_types/label_in_input_item.d.ts +4 -0
- package/ts/inputs/components/prop_types/link_icon_btn.d.ts +5 -0
- package/ts/inputs/components/prop_types/range.d.ts +2 -0
- package/ts/inputs/components/prop_types/section_btn.d.ts +1 -0
- package/ts/inputs/components/prop_types/section_content.d.ts +2 -1
- package/ts/inputs/components/prop_types/select.d.ts +2 -0
- package/ts/inputs/components/prop_types/text.d.ts +2 -0
- package/ts/inputs/components/prop_types/textarea.d.ts +2 -0
- package/ts/inputs/components/prop_types/upload_box.d.ts +1 -0
- package/ts/inputs/data/index.d.ts +2 -1
- package/ts/inputs/data/input_error.d.ts +12 -0
- package/ts/inputs/data/input_width.d.ts +5 -1
- package/ts/inputs/data/{label.d.ts → labelIn_in_putI_iem.d.ts} +2 -2
- package/ts/inputs/data/upload_box.d.ts +4 -0
- package/ts/inputs/data/val.d.ts +10 -5
- package/ts/inputs/interfaces/btn_option.d.ts +9 -0
- package/ts/inputs/interfaces/index.d.ts +1 -0
- package/ts/inputs/interfaces/input.d.ts +1 -1
- package/ts/inputs/obj/btn.d.ts +1 -0
- package/ts/inputs/obj/file.d.ts +1 -0
- package/ts/inputs/obj/form.d.ts +7 -0
- package/ts/inputs/obj/icon_btn.d.ts +2 -1
- package/ts/inputs/obj/index.d.ts +2 -0
- package/ts/inputs/obj/input_base.d.ts +11 -3
- package/ts/inputs/obj/label.d.ts +5 -0
- package/ts/inputs/obj/link.d.ts +4 -0
- package/ts/inputs/obj/link_btn.d.ts +2 -1
- package/ts/inputs/obj/section.d.ts +14 -0
- package/ts/inputs/obj/text.d.ts +2 -1
- package/ts/inputs/obj/upload_box.d.ts +4 -0
- package/ts/inputs/scripts/resolve.d.ts +3 -1
- package/ts/settings/components/prop_types/body.d.ts +1 -0
- package/ts/settings/data/back_up.d.ts +2 -1
- package/ts/settings/data/sections.d.ts +7 -1
- package/ts/settings/developer_mode/data/main.d.ts +13 -0
- package/ts/settings/internal.d.ts +1 -2
- package/ts/shared/app.d.ts +10 -3
- package/ts/shared/ext.d.ts +3 -0
- package/ts/shared/internal.d.ts +10 -0
- package/ts/shared/offers/components/body.d.ts +3 -0
- package/ts/shared/offers/components/counter.d.ts +2 -0
- package/ts/shared/offers/components/index.d.ts +6 -0
- package/ts/shared/offers/components/next_offer_btn.d.ts +2 -0
- package/ts/shared/offers/components/offer.d.ts +3 -0
- package/ts/shared/offers/components/previous_offer_btn.d.ts +2 -0
- package/ts/shared/offers/components/prop_types/body.d.ts +5 -0
- package/ts/shared/offers/components/prop_types/index.d.ts +2 -0
- package/ts/shared/offers/components/prop_types/offer.d.ts +4 -0
- package/ts/shared/offers/components/top_bar.d.ts +2 -0
- package/ts/shared/offers/data/index.d.ts +1 -0
- package/ts/shared/offers/data/main.d.ts +22 -0
- package/ts/shared/offers/interfaces/index.d.ts +1 -0
- package/ts/shared/offers/interfaces/offer_banner_type.d.ts +1 -0
- package/ts/shared/offers/obj/index.d.ts +1 -0
- package/ts/shared/offers/obj/offer.d.ts +10 -0
- package/ts/shared/offers/scripts/index.d.ts +1 -0
- package/ts/shared/offers/scripts/main.d.ts +8 -0
- package/ts/shared/schema/data/index.d.ts +1 -0
- package/ts/{settings → shared}/schema/data/main.d.ts +4 -2
- package/ts/shared/service_worker/scripts/index.d.ts +1 -0
- package/ts/shared/service_worker/scripts/main.d.ts +9 -0
- package/ts/shared/settings/data/index.d.ts +1 -0
- package/ts/shared/settings/data/main.d.ts +15 -0
- package/ts/shared/svg.d.ts +2 -0
- package/ts/shared/t.d.ts +2 -0
- package/ts/shared/vars.d.ts +1 -0
- package/ts/shared/x.d.ts +9 -0
- package/chunk-main-303525a1.js +0 -1
- package/chunk-main-3865bde3.js +0 -9
- /package/ts/settings/{schema → developer_mode}/data/index.d.ts +0 -0
- /package/ts/{settings → shared}/schema/obj/index.d.ts +0 -0
- /package/ts/{settings → shared}/schema/obj/transform_item.d.ts +0 -0
|
@@ -1,67 +1,81 @@
|
|
|
1
|
-
$upload_box_text_z_index: 2;
|
|
2
|
-
$upload_box_loading_animation_size: 40px;
|
|
3
|
-
|
|
4
|
-
$backgrond_margin: 2px;
|
|
5
|
-
$backgrond_dim_offset: 2px * 2;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
outline-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
$upload_box_text_z_index: 2;
|
|
2
|
+
$upload_box_loading_animation_size: 40px;
|
|
3
|
+
|
|
4
|
+
$backgrond_margin: 2px;
|
|
5
|
+
$backgrond_dim_offset: 2px * 2;
|
|
6
|
+
|
|
7
|
+
$status_msg_offset: 5px;
|
|
8
|
+
|
|
9
|
+
.input_item {
|
|
10
|
+
.upload_box {
|
|
11
|
+
@include border_transparent;
|
|
12
|
+
|
|
13
|
+
position: relative;
|
|
14
|
+
height: 104px;
|
|
15
|
+
text-align: center;
|
|
16
|
+
outline-width: 3px;
|
|
17
|
+
outline-style: dashed;
|
|
18
|
+
outline-offset: -3px;
|
|
19
|
+
|
|
20
|
+
.what_to_do_msg {
|
|
21
|
+
@include center_translate;
|
|
22
|
+
|
|
23
|
+
position: absolute;
|
|
24
|
+
padding-right: $gap;
|
|
25
|
+
padding-left: $gap;
|
|
26
|
+
z-index: $upload_box_text_z_index;
|
|
27
|
+
width: 100%;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.browse {
|
|
32
|
+
display: inline;
|
|
33
|
+
font-size: $font_main;
|
|
34
|
+
opacity: 1 !important; // needed to keep default color when element is is_enabled
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.status_msg {
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
font-size: $font_small;
|
|
41
|
+
margin-bottom: $status_msg_offset;
|
|
42
|
+
z-index: $upload_box_text_z_index;
|
|
43
|
+
|
|
44
|
+
&.filenames {
|
|
45
|
+
align-self: start;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
margin-top: $status_msg_offset;
|
|
50
|
+
width: calc(100% - $status_msg_offset * 2);
|
|
51
|
+
padding-left: $status_msg_offset;
|
|
52
|
+
cursor: help;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.background {
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: calc(100% - #{$backgrond_dim_offset});
|
|
59
|
+
height: calc(100% - #{$backgrond_dim_offset});
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: end;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
margin: $backgrond_margin;
|
|
64
|
+
|
|
65
|
+
&.loading {
|
|
66
|
+
animation: move 450ms linear infinite;
|
|
67
|
+
background-size: $upload_box_loading_animation_size $upload_box_loading_animation_size;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes move {
|
|
74
|
+
0% {
|
|
75
|
+
background-position: 0 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
100% {
|
|
79
|
+
background-position: 40px 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
package/scss/shared/vars.scss
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
$scrollbar_width: 17px;
|
|
1
2
|
$font_main: 17px;
|
|
2
3
|
$font_big: 24px;
|
|
3
4
|
$font_small: 13px;
|
|
4
5
|
$gap: 10px;
|
|
5
6
|
$gap_small: 4px;
|
|
6
7
|
$border_width: 1px;
|
|
7
|
-
$outline_offset: 2px;
|
|
8
8
|
$input_height: 28px;
|
|
9
|
-
$color_input_height: $input_height + ($border_width * 4);
|
|
9
|
+
$color_input_height: $input_height + ($border_width * 4) - 2;
|
|
10
10
|
$input_content_gap: 8px;
|
|
11
11
|
$input_inner_padding: 7px;
|
|
12
12
|
$input_content_gap_2: $input_content_gap - ($border_width * 2);
|
|
13
13
|
$main_margin: 16px;
|
|
14
|
+
$ext_name_offset: 7px;
|
|
14
15
|
$main_margin_2: $main_margin * 2;
|
|
15
16
|
$main_margin_4: $main_margin * 4;
|
|
16
17
|
$black: #212121;
|
|
17
18
|
$yellow: #fbff75;
|
|
18
19
|
$light_orange: #fff7c7;
|
|
19
20
|
$blue: #3892ff;
|
|
21
|
+
$black_shadow: rgb(0 0 0 / 30%) 0 0 30px, rgb(0 0 0 / 30%) 0 4px 8px;
|
|
22
|
+
$black_shadow_2: 0 20px 30px rgb(0 0 0 / 20%);
|
|
23
|
+
$blue_neon_dark: rgb(0 115 255 / 100%) 0 0 33px, rgb(255 255 255 / 40%) 0 0 10px;
|
|
24
|
+
$blue_neon_very_dark: rgb(0 102 255 / 85%) 0 0 36px, rgb(255 255 255 / 40%) 0 0 10px;
|
|
25
|
+
$glass_color: rgb(255 255 255 / 20%);
|
|
26
|
+
$glass_blur: blur(8px);
|
package/settings.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./ts/shared/internal";
|
|
2
|
-
export { c_settings,
|
|
2
|
+
export { c_settings, d_settings, d_developer_mode, d_optional_permissions, s_settings, i_optional_permissions, } from "./ts/settings/internal";
|
package/settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var main=require("./chunk-main-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var main=require("./chunk-main-130f654b.js");require("react");var main$1=require("./chunk-main-aca0d1f6.js");require("react-dom");var index$5=Object.freeze({__proto__:null,Body:main.Body$2}),index$4=Object.freeze({__proto__:null,BackUp:main.BackUp,Sections:main.Sections}),index$3=Object.freeze({__proto__:null,Main:main.Main$5});var index$2=Object.freeze({__proto__:null,Main:class{constructor(){this.set_permission=({name:name,optional_permission_checkbox_dict:optional_permission_checkbox_dict})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const permissions=optional_permission_checkbox_dict[name];if(yield we.permissions.contains(permissions)){(yield we.permissions.remove(permissions))&&this.set_checkbox_val({name:name,val:!1})}else{(yield we.permissions.request(permissions))&&this.set_checkbox_val({name:name,val:!0})}}))),"shr_1221"),this.set_checkbox_val=({name:name,val:val})=>err((()=>{data.ui[name]=val}),"shr_1222"),main.makeObservable(this,{set_checkbox_val:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$1=Object.freeze({__proto__:null,Theme:class{constructor(){this.change=({input:input,name:name,additional_theme_callback:additional_theme_callback})=>err((()=>{"options_page_theme"===input.name&&main$1.Main$1.i().set({name:name,additional_theme_callback:additional_theme_callback})}),"shr_1088")}static i(){return this.i0||(this.i0=new this)}}}),index=Object.freeze({__proto__:null});exports.c_settings=index$5,exports.d_developer_mode=index$3,exports.d_optional_permissions=index$2,exports.d_settings=index$4,exports.i_optional_permissions=index,exports.s_settings=index$1;
|
|
@@ -5,6 +5,7 @@ export declare class Main {
|
|
|
5
5
|
private constructor();
|
|
6
6
|
hide_delay: number;
|
|
7
7
|
private highlight_time;
|
|
8
|
-
|
|
8
|
+
private prevent_subsequent_errors;
|
|
9
|
+
show_error: (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, notification_type, hide_delay, silent, persistent, exit, is_fullscreen, prevent_subsequent_errors, }?: i_error.ShowError) => void;
|
|
9
10
|
output_error: (error_obj: i_error.ErrorObj, error_code: string) => void;
|
|
10
11
|
}
|
|
@@ -5,10 +5,8 @@ export declare class Msg {
|
|
|
5
5
|
private advanced_msg_is_visible;
|
|
6
6
|
basic_msg: string;
|
|
7
7
|
advanced_msg: string;
|
|
8
|
-
notification_msg_key: string;
|
|
9
8
|
get advanced_msg_is_visible_cls(): string;
|
|
10
9
|
get more_info_btn_is_visible_cls(): string;
|
|
11
|
-
get main_msg(): string;
|
|
12
10
|
change_visibility_of_advanced_msg: ({ is_visible }: {
|
|
13
11
|
is_visible: boolean;
|
|
14
12
|
}) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class Progress {
|
|
2
|
+
private static i0;
|
|
3
|
+
static i(): Progress;
|
|
4
|
+
private constructor();
|
|
5
|
+
progress_max: number;
|
|
6
|
+
progress_val: number;
|
|
7
|
+
private timestamp_progress_begin;
|
|
8
|
+
private error_hide_delay;
|
|
9
|
+
private progress_timeout;
|
|
10
|
+
get progress_bar_is_visible_cls(): string;
|
|
11
|
+
begin_progress: ({ error_hide_delay }: {
|
|
12
|
+
error_hide_delay: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
private increment_progress;
|
|
15
|
+
hide_progress: () => void;
|
|
16
|
+
update_progress_autorun: () => void;
|
|
17
|
+
}
|
|
@@ -6,10 +6,11 @@ export declare class State {
|
|
|
6
6
|
private is_loaded;
|
|
7
7
|
private is_visible;
|
|
8
8
|
private is_highlighted;
|
|
9
|
-
|
|
9
|
+
is_fullscreen: boolean;
|
|
10
|
+
notification_type: i_error.NotificationType;
|
|
10
11
|
get is_visible_style(): string;
|
|
11
12
|
get is_highlighted_cls(): string;
|
|
12
|
-
get
|
|
13
|
+
get is_fullscreen_cls(): string;
|
|
13
14
|
private is_visible_timeout;
|
|
14
15
|
private is_highlighted_timeout;
|
|
15
16
|
change_state: ({ observable_key, state, }: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type NotificationType = 'error' | 'positive' | 'negative' | 'neutral';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type ObservableKeys = 'is_loaded' | 'is_visible' | 'is_highlighted' | '
|
|
1
|
+
export declare type ObservableKeys = 'is_loaded' | 'is_visible' | 'is_highlighted' | 'is_fullscreen';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { i_error } from "../../internal";
|
|
2
2
|
export interface ShowError extends i_error.Error {
|
|
3
3
|
error_msg_key?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
notification_type?: i_error.NotificationType;
|
|
5
|
+
hide_delay?: number;
|
|
6
|
+
silent?: boolean;
|
|
7
|
+
persistent?: boolean;
|
|
8
|
+
exit?: boolean;
|
|
9
|
+
is_fullscreen?: boolean;
|
|
10
|
+
prevent_subsequent_errors?: boolean;
|
|
6
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Flash {
|
|
2
|
+
private static i0;
|
|
3
|
+
static i(): Flash;
|
|
4
|
+
private constructor();
|
|
5
|
+
private get_flash_server_text;
|
|
6
|
+
private turn_flash_server_text_into_arr;
|
|
7
|
+
private get_flash_msg_key;
|
|
8
|
+
private get_flash_type;
|
|
9
|
+
private get_flash_hide_delay;
|
|
10
|
+
show: () => void;
|
|
11
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { i_error } from "../../internal";
|
|
2
2
|
declare global {
|
|
3
3
|
function show_err_ribbon(error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, obj?: i_error.ShowError): void;
|
|
4
|
+
function show_flash(): void;
|
|
5
|
+
function show_notification(obj?: i_error.ShowError): void;
|
|
6
|
+
function show_unable_to_access_settings_error(obj: import("../interfaces/show_unable_to_access_settings_error").ShowUnableToAccessSettingsError): void;
|
|
4
7
|
function err<T1>(f: () => T1, error_code: string, obj?: i_error.ShowError): T1;
|
|
5
8
|
function err_async<T1>(f: () => Promise<T1>, error_code: string, obj?: i_error.ShowError): Promise<T1>;
|
|
6
9
|
function throw_err(msg: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i_error } from "../../internal";
|
|
2
|
+
export declare class Notification {
|
|
3
|
+
private static i0;
|
|
4
|
+
static i(): Notification;
|
|
5
|
+
private constructor();
|
|
6
|
+
show: ({ error_msg_key, notification_type, hide_delay, persistent, is_fullscreen, prevent_subsequent_errors, }: i_error.ShowError) => void;
|
|
7
|
+
show_unable_to_access_settings_error: ({ is_fullscreen, settings, provided_settings, }?: i_error.ShowUnableToAccessSettingsError) => Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const init_error: () => void;
|
|
@@ -4,6 +4,7 @@ export * as c_error from "./error/components";
|
|
|
4
4
|
export * as d_crash_handler from "./crash_handler/data";
|
|
5
5
|
export * as d_error from "./error/data";
|
|
6
6
|
export * as s_crash_handler from "./crash_handler/scripts";
|
|
7
|
+
export * as s_error from "./error/scripts";
|
|
7
8
|
export * as s_css from "./css/scripts";
|
|
8
9
|
export * as p_crash_handler from "./crash_handler/components/prop_types";
|
|
9
10
|
export * as p_error from "./error/components/prop_types";
|
|
@@ -5,15 +5,19 @@ export * from "./help_btn";
|
|
|
5
5
|
export * from "./help";
|
|
6
6
|
export * from "./hr";
|
|
7
7
|
export * from "./icon_btn";
|
|
8
|
+
export * from "./input_error";
|
|
8
9
|
export * from "./input_item";
|
|
10
|
+
export * from "./label_in_input_item";
|
|
9
11
|
export * from "./label";
|
|
10
12
|
export * from "./link_btn";
|
|
13
|
+
export * from "./link_icon_btn";
|
|
11
14
|
export * from "./link";
|
|
12
15
|
export * from "./range";
|
|
13
16
|
export * from "./section_btn";
|
|
14
17
|
export * from "./section_content";
|
|
15
18
|
export * from "./section";
|
|
16
19
|
export * from "./select";
|
|
20
|
+
export * from "./form";
|
|
17
21
|
export * from "./group";
|
|
18
22
|
export * from "./text_btn";
|
|
19
23
|
export * from "./text";
|
|
@@ -5,15 +5,19 @@ export * from "./help_btn";
|
|
|
5
5
|
export * from "./help";
|
|
6
6
|
export * from "./hr";
|
|
7
7
|
export * from "./icon_btn";
|
|
8
|
+
export * from "./input_error";
|
|
8
9
|
export * from "./input_item";
|
|
10
|
+
export * from "./label_in_input_item";
|
|
9
11
|
export * from "./label";
|
|
10
12
|
export * from "./link_btn";
|
|
13
|
+
export * from "./link_icon_btn";
|
|
11
14
|
export * from "./link";
|
|
12
15
|
export * from "./range";
|
|
13
16
|
export * from "./section_btn";
|
|
14
17
|
export * from "./section_content";
|
|
15
18
|
export * from "./section";
|
|
16
19
|
export * from "./select";
|
|
20
|
+
export * from "./form";
|
|
17
21
|
export * from "./group";
|
|
18
22
|
export * from "./text_btn";
|
|
19
23
|
export * from "./text";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i_inputs } from "../internal";
|
|
2
|
+
export declare class InputError {
|
|
3
|
+
private static i0;
|
|
4
|
+
static i(): InputError;
|
|
5
|
+
private input_error_is_visible;
|
|
6
|
+
input_error_visibility_cls: (this: InputError, { input, }: {
|
|
7
|
+
input: i_inputs.Input;
|
|
8
|
+
}) => string;
|
|
9
|
+
input_error: ({ input }: {
|
|
10
|
+
input: i_inputs.Input;
|
|
11
|
+
}) => string;
|
|
12
|
+
}
|
|
@@ -7,9 +7,13 @@ export declare class InputWidth {
|
|
|
7
7
|
private max_width;
|
|
8
8
|
private min_width;
|
|
9
9
|
private old_max_width;
|
|
10
|
+
calculate_width_cls: ({ calculate_width }: {
|
|
11
|
+
calculate_width: boolean;
|
|
12
|
+
}) => string;
|
|
10
13
|
max_width_style?: ((this: InputWidth) => number | string | undefined) | undefined;
|
|
11
|
-
min_width_style?: ((this: InputWidth, { input, }: {
|
|
14
|
+
min_width_style?: ((this: InputWidth, { input, calculate_width, }: {
|
|
12
15
|
input: i_inputs.Input;
|
|
16
|
+
calculate_width?: boolean | undefined;
|
|
13
17
|
}) => number | string | undefined) | undefined;
|
|
14
18
|
calculate_for_section: ({ section_name }: {
|
|
15
19
|
section_name: string;
|
package/ts/inputs/data/val.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
1
|
+
import { SyntheticEvent, FormEvent } from 'react';
|
|
2
2
|
import { i_data } from "../../shared/internal";
|
|
3
3
|
import { i_inputs } from "../internal";
|
|
4
4
|
export declare class Val {
|
|
@@ -9,7 +9,9 @@ export declare class Val {
|
|
|
9
9
|
input: i_inputs.Input;
|
|
10
10
|
state: boolean;
|
|
11
11
|
}) => void;
|
|
12
|
-
|
|
12
|
+
set_warn_state: ({ input }: {
|
|
13
|
+
input: i_inputs.Input;
|
|
14
|
+
}) => Promise<void>;
|
|
13
15
|
focus_state: ({ input }: {
|
|
14
16
|
input: i_inputs.Input;
|
|
15
17
|
}) => string;
|
|
@@ -23,14 +25,17 @@ export declare class Val {
|
|
|
23
25
|
input: i_inputs.Input;
|
|
24
26
|
}, e: SyntheticEvent) => void;
|
|
25
27
|
set: ({ val, input }: {
|
|
26
|
-
val: i_data.Val;
|
|
28
|
+
val: i_data.Val | FileList;
|
|
27
29
|
input: i_inputs.Input;
|
|
28
30
|
}) => void;
|
|
29
|
-
remove_val: ({ input, input_el }: {
|
|
31
|
+
remove_val: ({ input, input_el, }: {
|
|
30
32
|
input: i_inputs.Input;
|
|
31
33
|
input_el: HTMLInputElement | null;
|
|
32
|
-
}) => void
|
|
34
|
+
}) => Promise<void>;
|
|
33
35
|
validate_input: ({ input }: {
|
|
34
36
|
input: i_inputs.Input;
|
|
35
37
|
}) => boolean;
|
|
38
|
+
text_and_textarea_on_input: ({ input }: {
|
|
39
|
+
input: i_inputs.Input;
|
|
40
|
+
}, e: FormEvent) => Promise<void>;
|
|
36
41
|
}
|