@loftyshaky/shared 0.0.30 → 0.0.34
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/de/messages.json +128 -0
- package/_locales/en/messages.json +127 -118
- package/_locales/ru/messages.json +124 -115
- package/app.d.ts +0 -0
- package/app.js +1 -1
- package/{chunk-main-ab64b6fe.js → chunk-main-00a79e55.js} +1 -1
- package/chunk-main-707d1b35.js +1 -0
- package/chunk-main-bacabf12.js +1 -0
- package/ext.d.ts +0 -0
- package/ext.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/inputs.d.ts +0 -0
- package/inputs.js +1 -1
- package/js/ext/env.js +16 -16
- package/js/ext/locales.js +42 -42
- package/js/ext/manifest.js +58 -58
- package/js/ext/webpack.config.js +113 -113
- package/js/package/plugins/rollup-plugin-copy.js +169 -169
- package/js/package/plugins/watcher.js +54 -48
- package/js/package/terser.js +18 -18
- package/js/project_name.js +5 -5
- package/js/projects_path.js +5 -5
- package/js/task_scheduler.js +39 -31
- package/package.json +14 -14
- package/scss/settings/ext_version.scss +7 -7
- package/scss/settings/index.scss +7 -7
- package/scss/settings/main.scss +19 -18
- package/scss/settings/scrollbar.scss +12 -4
- package/scss/settings/section_btns.scss +40 -39
- package/scss/settings/sections.scss +22 -22
- package/scss/settings/transitions.scss +20 -20
- package/scss/shared/all.scss +3 -3
- package/scss/shared/btns.scss +30 -26
- package/scss/shared/checkboxes.scss +38 -38
- package/scss/shared/color_pickers.scss +94 -94
- package/scss/shared/colors.scss +85 -75
- package/scss/shared/crash_handler.scss +36 -36
- package/scss/shared/css_vars.scss +4 -4
- package/scss/shared/embed/error.scss +96 -96
- package/scss/shared/embed/font_face.scss +5 -5
- package/scss/shared/embed/loading_screen.scss +35 -35
- package/scss/shared/embed/no_tr.scss +3 -3
- package/scss/shared/focus.scss +78 -78
- package/scss/shared/help.scss +66 -66
- package/scss/shared/hr.scss +6 -0
- package/scss/shared/index.scss +28 -26
- package/scss/shared/input_btns.scss +11 -11
- package/scss/shared/inputs.scss +69 -73
- package/scss/shared/inset_border.scss +20 -20
- package/scss/shared/link_btns.scss +12 -12
- package/scss/shared/links.scss +11 -11
- package/scss/shared/mixins.scss +130 -130
- package/scss/shared/mods.scss +35 -22
- package/scss/shared/range.scss +46 -45
- package/scss/shared/scrollbar.scss +35 -32
- package/scss/shared/selects.scss +14 -14
- package/scss/shared/text.scss +20 -20
- package/scss/shared/textareas.scss +7 -7
- package/scss/shared/themes/colors/dark.scss +17 -17
- package/scss/shared/themes/colors/light.scss +17 -17
- package/scss/shared/themes/colors/very_dark.scss +17 -17
- package/scss/shared/themes/general/dark_theme.scss +7 -7
- package/scss/shared/themes/general/light_theme.scss +7 -7
- package/scss/shared/themes/general/template.scss +241 -212
- package/scss/shared/themes/general/template_focus.scss +48 -54
- package/scss/shared/themes/general/very_dark_theme.scss +7 -7
- package/scss/shared/transitions.scss +31 -30
- package/scss/shared/upload_box.scss +67 -0
- package/scss/shared/vars.scss +18 -17
- package/settings.d.ts +1 -1
- package/settings.js +1 -1
- package/ts/error_modules/crash_handler/components/body.d.ts +0 -0
- package/ts/error_modules/crash_handler/components/index.d.ts +0 -0
- package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +0 -0
- package/ts/error_modules/crash_handler/components/prop_types/index.d.ts +0 -0
- package/ts/error_modules/crash_handler/data/fatal_error.d.ts +0 -0
- package/ts/error_modules/crash_handler/data/index.d.ts +0 -0
- package/ts/error_modules/crash_handler/data/visibility.d.ts +0 -0
- package/ts/error_modules/crash_handler/scripts/index.d.ts +0 -0
- package/ts/error_modules/crash_handler/scripts/page.d.ts +0 -0
- package/ts/error_modules/css/scripts/index.d.ts +0 -0
- package/ts/error_modules/css/scripts/main.d.ts +0 -0
- package/ts/error_modules/error/components/body.d.ts +0 -0
- package/ts/error_modules/error/components/close_btn.d.ts +0 -0
- package/ts/error_modules/error/components/ext_name.d.ts +0 -0
- package/ts/error_modules/error/components/index.d.ts +0 -0
- package/ts/error_modules/error/components/msg.d.ts +0 -0
- package/ts/error_modules/error/components/prop_types/body.d.ts +0 -0
- package/ts/error_modules/error/components/prop_types/index.d.ts +0 -0
- package/ts/error_modules/error/data/index.d.ts +0 -0
- package/ts/error_modules/error/data/main.d.ts +0 -0
- package/ts/error_modules/error/data/msg.d.ts +0 -0
- package/ts/error_modules/error/data/state.d.ts +0 -0
- package/ts/error_modules/error/interfaces/error.d.ts +0 -0
- package/ts/error_modules/error/interfaces/error_obj.d.ts +0 -0
- package/ts/error_modules/error/interfaces/index.d.ts +0 -0
- package/ts/error_modules/error/interfaces/observable_keys.d.ts +0 -0
- package/ts/error_modules/error/interfaces/show_error.d.ts +0 -0
- package/ts/error_modules/error/interfaces/timeout_observable_keys.d.ts +0 -0
- package/ts/error_modules/error/scripts/globals.d.ts +1 -0
- package/ts/error_modules/error/scripts/index.d.ts +0 -0
- package/ts/error_modules/internal.d.ts +0 -0
- package/ts/inputs/color/components/body.d.ts +0 -0
- package/ts/inputs/color/components/color_picker.d.ts +0 -0
- package/ts/inputs/color/components/fill_shadow.d.ts +0 -0
- package/ts/inputs/color/components/index.d.ts +0 -0
- package/ts/inputs/color/components/prop_types/body.d.ts +0 -0
- package/ts/inputs/color/components/prop_types/color_picker.d.ts +0 -0
- package/ts/inputs/color/components/prop_types/fill_shadow.d.ts +0 -0
- package/ts/inputs/color/components/prop_types/index.d.ts +0 -0
- package/ts/inputs/color/components/prop_types/visualization.d.ts +0 -0
- package/ts/inputs/color/components/visualization.d.ts +0 -0
- package/ts/inputs/color/data/color.d.ts +2 -1
- package/ts/inputs/color/data/index.d.ts +0 -0
- package/ts/inputs/color/data/visibility.d.ts +2 -0
- package/ts/inputs/color/interfaces/color.d.ts +0 -0
- package/ts/inputs/color/interfaces/color_picker_state.d.ts +0 -0
- package/ts/inputs/color/interfaces/color_picker_state_one.d.ts +0 -0
- package/ts/inputs/color/interfaces/i.d.ts +0 -0
- package/ts/inputs/color/interfaces/index.d.ts +0 -0
- package/ts/inputs/color/obj/color.d.ts +3 -0
- package/ts/inputs/color/obj/index.d.ts +0 -0
- package/ts/inputs/color/scripts/color_picker.d.ts +0 -0
- package/ts/inputs/color/scripts/index.d.ts +0 -0
- package/ts/inputs/color/scripts/position.d.ts +0 -0
- package/ts/inputs/components/btn.d.ts +0 -0
- package/ts/inputs/components/checkbox.d.ts +0 -0
- package/ts/inputs/components/file.d.ts +0 -0
- package/ts/inputs/components/help.d.ts +0 -0
- package/ts/inputs/components/help_btn.d.ts +0 -0
- package/ts/inputs/components/hr.d.ts +3 -0
- package/ts/inputs/components/index.d.ts +2 -0
- package/ts/inputs/components/input_item.d.ts +0 -0
- package/ts/inputs/components/label.d.ts +0 -0
- package/ts/inputs/components/link.d.ts +0 -0
- package/ts/inputs/components/link_btn.d.ts +0 -0
- package/ts/inputs/components/prop_types/btn.d.ts +0 -0
- package/ts/inputs/components/prop_types/checkbox.d.ts +0 -0
- package/ts/inputs/components/prop_types/file.d.ts +0 -0
- package/ts/inputs/components/prop_types/help.d.ts +0 -0
- package/ts/inputs/components/prop_types/help_btn.d.ts +0 -0
- package/ts/inputs/components/prop_types/hr.d.ts +4 -0
- package/ts/inputs/components/prop_types/index.d.ts +2 -0
- package/ts/inputs/components/prop_types/input_item.d.ts +0 -0
- package/ts/inputs/components/prop_types/label.d.ts +0 -0
- package/ts/inputs/components/prop_types/link.d.ts +0 -0
- package/ts/inputs/components/prop_types/link_btn.d.ts +2 -3
- package/ts/inputs/components/prop_types/range.d.ts +0 -0
- package/ts/inputs/components/prop_types/section.d.ts +0 -0
- package/ts/inputs/components/prop_types/section_btn.d.ts +0 -0
- package/ts/inputs/components/prop_types/section_content.d.ts +0 -0
- package/ts/inputs/components/prop_types/select.d.ts +0 -0
- package/ts/inputs/components/prop_types/text.d.ts +0 -0
- package/ts/inputs/components/prop_types/text_btn.d.ts +1 -1
- package/ts/inputs/components/prop_types/textarea.d.ts +0 -0
- package/ts/inputs/components/prop_types/upload_box.d.ts +4 -0
- package/ts/inputs/components/range.d.ts +0 -0
- package/ts/inputs/components/section.d.ts +0 -0
- package/ts/inputs/components/section_btn.d.ts +0 -0
- package/ts/inputs/components/section_content.d.ts +0 -0
- package/ts/inputs/components/select.d.ts +0 -0
- package/ts/inputs/components/text.d.ts +0 -0
- package/ts/inputs/components/text_btn.d.ts +0 -0
- package/ts/inputs/components/textarea.d.ts +0 -0
- package/ts/inputs/components/upload_box.d.ts +3 -0
- package/ts/inputs/data/help.d.ts +0 -0
- package/ts/inputs/data/index.d.ts +2 -0
- package/ts/inputs/data/input_width.d.ts +4 -3
- package/ts/inputs/data/label.d.ts +0 -0
- package/ts/inputs/data/nested_input.d.ts +4 -2
- package/ts/inputs/data/text.d.ts +21 -0
- package/ts/inputs/data/upload_box.d.ts +20 -0
- package/ts/inputs/data/val.d.ts +0 -0
- package/ts/inputs/interfaces/index.d.ts +2 -0
- package/ts/inputs/interfaces/input.d.ts +1 -1
- package/ts/inputs/interfaces/inputs.d.ts +0 -0
- package/ts/inputs/interfaces/links.d.ts +0 -0
- package/ts/inputs/interfaces/options.d.ts +0 -0
- package/ts/inputs/interfaces/sections.d.ts +0 -0
- package/ts/inputs/interfaces/state_cond.d.ts +4 -0
- package/ts/inputs/interfaces/text_btn.d.ts +7 -0
- package/ts/inputs/internal.d.ts +0 -0
- package/ts/inputs/obj/btn.d.ts +0 -0
- package/ts/inputs/obj/checkbox.d.ts +0 -0
- package/ts/inputs/obj/file.d.ts +2 -0
- package/ts/inputs/obj/hr.d.ts +5 -0
- package/ts/inputs/obj/index.d.ts +3 -0
- package/ts/inputs/obj/input_base.d.ts +12 -2
- package/ts/inputs/obj/link.d.ts +0 -0
- package/ts/inputs/obj/link_btn.d.ts +5 -0
- package/ts/inputs/obj/option.d.ts +1 -1
- package/ts/inputs/obj/range.d.ts +0 -0
- package/ts/inputs/obj/section.d.ts +1 -0
- package/ts/inputs/obj/select.d.ts +0 -0
- package/ts/inputs/obj/text.d.ts +5 -1
- package/ts/inputs/obj/textarea.d.ts +0 -0
- package/ts/inputs/obj/upload_box.d.ts +14 -0
- package/ts/inputs/scripts/index.d.ts +1 -0
- package/ts/inputs/scripts/resolve.d.ts +0 -0
- package/ts/inputs/scripts/upload_box.d.ts +8 -0
- package/ts/settings/components/body.d.ts +0 -0
- package/ts/settings/components/index.d.ts +0 -0
- package/ts/settings/components/prop_types/body.d.ts +0 -0
- package/ts/settings/components/prop_types/index.d.ts +0 -0
- package/ts/settings/data/back_up.d.ts +1 -1
- package/ts/settings/data/index.d.ts +0 -0
- package/ts/settings/data/sections.d.ts +7 -1
- package/ts/settings/init.d.ts +0 -0
- package/ts/settings/internal.d.ts +2 -0
- package/ts/settings/optional_permissions/data/index.d.ts +1 -0
- package/ts/settings/optional_permissions/data/main.d.ts +11 -0
- package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
- package/ts/settings/optional_permissions/interfaces/optional_permission_checkbox_dict.d.ts +3 -0
- package/ts/settings/scripts/index.d.ts +0 -0
- package/ts/settings/scripts/theme.d.ts +3 -1
- package/ts/shared/app.d.ts +0 -0
- package/ts/shared/app_ext_globals.d.ts +0 -0
- package/ts/shared/css_vars/scripts/index.d.ts +0 -0
- package/ts/shared/css_vars/scripts/main.d.ts +0 -0
- package/ts/shared/data/data/index.d.ts +0 -0
- package/ts/shared/data/data/main.d.ts +0 -0
- package/ts/shared/data/interfaces/index.d.ts +0 -0
- package/ts/shared/data/interfaces/val.d.ts +0 -0
- package/ts/shared/ext.d.ts +0 -0
- package/ts/shared/ext_version/components/body.d.ts +0 -0
- package/ts/shared/ext_version/components/index.d.ts +0 -0
- package/ts/shared/functions.d.ts +1 -0
- package/ts/shared/globals.d.ts +0 -0
- package/ts/shared/init.d.ts +0 -0
- package/ts/shared/internal.d.ts +0 -1
- package/ts/shared/keep_alive/scripts/index.d.ts +0 -0
- package/ts/shared/keep_alive/scripts/tabs.d.ts +0 -0
- package/ts/shared/loading_screen/components/body.d.ts +2 -3
- package/ts/shared/loading_screen/components/index.d.ts +0 -0
- package/ts/shared/loading_screen/data/index.d.ts +0 -0
- package/ts/shared/loading_screen/data/main.d.ts +0 -0
- package/ts/shared/no_tr/scripts/index.d.ts +0 -0
- package/ts/shared/no_tr/scripts/main.d.ts +0 -0
- package/ts/shared/svg.d.ts +0 -0
- package/ts/shared/t.d.ts +0 -0
- package/ts/shared/tab_index/interfaces/index.d.ts +0 -0
- package/ts/shared/tab_index/interfaces/set_Input_type_event.d.ts +0 -0
- package/ts/shared/tab_index/scripts/index.d.ts +0 -0
- package/ts/shared/tab_index/scripts/main.d.ts +0 -0
- package/ts/shared/theme/scripts/index.d.ts +0 -0
- package/ts/shared/theme/scripts/main.d.ts +3 -1
- package/ts/shared/tr/components/base_tr.d.ts +0 -0
- package/ts/shared/tr/components/index.d.ts +0 -0
- package/ts/shared/tr/components/prop_types/base_tr.d.ts +1 -1
- package/ts/shared/tr/components/prop_types/index.d.ts +0 -0
- package/ts/shared/tr/data/index.d.ts +0 -0
- package/ts/shared/tr/data/transition.d.ts +0 -0
- package/ts/shared/tr/interfaces/index.d.ts +0 -0
- package/ts/shared/tr/interfaces/transitions.d.ts +0 -0
- package/ts/shared/tr/obj/index.d.ts +0 -0
- package/ts/shared/tr/obj/transition.d.ts +0 -0
- package/ts/shared/utils/scripts/index.d.ts +0 -0
- package/ts/shared/utils/scripts/main.d.ts +0 -0
- package/ts/shared/vars.d.ts +0 -0
- package/ts/shared/viewport/scripts/index.d.ts +0 -0
- package/ts/shared/viewport/scripts/main.d.ts +0 -0
- package/ts/shared/x.d.ts +4 -0
- package/chunk-main-38f4a769.js +0 -1
- package/chunk-main-775b8143.js +0 -1
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +0 -8
- package/ts/shared/loading_screen/components/prop_types/index.d.ts +0 -1
package/ts/inputs/internal.d.ts
CHANGED
|
File without changes
|
package/ts/inputs/obj/btn.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/ts/inputs/obj/file.d.ts
CHANGED
package/ts/inputs/obj/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from "./input_base";
|
|
|
2
2
|
export * from "./btn";
|
|
3
3
|
export * from "./checkbox";
|
|
4
4
|
export * from "./file";
|
|
5
|
+
export * from "./hr";
|
|
6
|
+
export * from "./link_btn";
|
|
5
7
|
export * from "./link";
|
|
6
8
|
export * from "./option";
|
|
7
9
|
export * from "./range";
|
|
@@ -9,3 +11,4 @@ export * from "./section";
|
|
|
9
11
|
export * from "./select";
|
|
10
12
|
export * from "./text";
|
|
11
13
|
export * from "./textarea";
|
|
14
|
+
export * from "./upload_box";
|
|
@@ -5,6 +5,10 @@ export declare class InputBase {
|
|
|
5
5
|
is_cut?: boolean;
|
|
6
6
|
is_visible_key?: string;
|
|
7
7
|
is_visible?: boolean;
|
|
8
|
+
is_visible_conds?: i_inputs.StateCond[];
|
|
9
|
+
is_enabled?: boolean;
|
|
10
|
+
is_enabled_conds?: i_inputs.StateCond[];
|
|
11
|
+
parent_disabled?: boolean;
|
|
8
12
|
is_in_focus_state?: boolean;
|
|
9
13
|
is_in_warn_state?: boolean;
|
|
10
14
|
val_accessor?: string;
|
|
@@ -13,7 +17,6 @@ export declare class InputBase {
|
|
|
13
17
|
include_help?: boolean;
|
|
14
18
|
help_is_visible?: boolean;
|
|
15
19
|
parent?: string;
|
|
16
|
-
parent_disabled?: boolean;
|
|
17
20
|
offset?: string;
|
|
18
21
|
section?: string;
|
|
19
22
|
subsection?: string;
|
|
@@ -22,5 +25,12 @@ export declare class InputBase {
|
|
|
22
25
|
input: i_inputs.Input;
|
|
23
26
|
}) => boolean;
|
|
24
27
|
constructor(obj: InputBase);
|
|
25
|
-
|
|
28
|
+
is_visible_computed?: ((this: InputBase) => boolean) | undefined;
|
|
29
|
+
is_enabled_computed?: ((this: InputBase) => boolean) | undefined;
|
|
30
|
+
private is_enabled_final?;
|
|
31
|
+
is_enabled_cls?: ((this: InputBase) => string) | undefined;
|
|
32
|
+
tab_index?: ((this: InputBase) => number) | undefined;
|
|
33
|
+
parent_disabled_computed?: ((this: InputBase) => boolean) | undefined;
|
|
34
|
+
private check_state?;
|
|
35
|
+
private check_state_conds?;
|
|
26
36
|
}
|
package/ts/inputs/obj/link.d.ts
CHANGED
|
File without changes
|
package/ts/inputs/obj/range.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/ts/inputs/obj/text.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { t } from "../../shared/internal";
|
|
1
2
|
import { o_inputs, i_inputs } from "../internal";
|
|
2
3
|
export declare class Text extends o_inputs.InputBase {
|
|
3
4
|
type?: 'text';
|
|
4
5
|
text_type?: 'text' | 'number';
|
|
5
6
|
allow_removing_val?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
text_btns?: i_inputs.TextBtn[];
|
|
6
9
|
remove_val_callback?: ({ input }: {
|
|
7
10
|
input: i_inputs.Input;
|
|
8
11
|
}) => void;
|
|
12
|
+
paste_callback?: t.CallbackVariadicVoid;
|
|
9
13
|
constructor(obj: Text);
|
|
10
14
|
remove_val_btn_is_visible?: (({ input }: {
|
|
11
15
|
input: Text;
|
|
12
|
-
}) =>
|
|
16
|
+
}) => boolean) | undefined;
|
|
13
17
|
}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { o_inputs } from "../internal";
|
|
2
|
+
export declare class UploadBox extends o_inputs.InputBase {
|
|
3
|
+
type?: 'upload_box';
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
accept?: string;
|
|
6
|
+
loading_msg_is_visible?: boolean;
|
|
7
|
+
error_msg_is_visible?: boolean;
|
|
8
|
+
is_in_hover_state?: boolean;
|
|
9
|
+
drag_counter?: number;
|
|
10
|
+
constructor(obj: UploadBox);
|
|
11
|
+
loading_msg_visibility_cls?: ((this: UploadBox) => string) | undefined;
|
|
12
|
+
error_msg_visibility_cls?: ((this: UploadBox) => string) | undefined;
|
|
13
|
+
loading_cls?: ((this: UploadBox) => string) | undefined;
|
|
14
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,11 @@ export declare class Sections {
|
|
|
7
7
|
current_section: string;
|
|
8
8
|
private options;
|
|
9
9
|
init_options: () => void;
|
|
10
|
+
get_shared_input: ({ input_change_val_callback, }: {
|
|
11
|
+
input_change_val_callback: t.CallbackVariadicVoid;
|
|
12
|
+
}) => {
|
|
13
|
+
[index: string]: i_inputs.Input;
|
|
14
|
+
};
|
|
10
15
|
selected_cls: (this: Sections, { section_name }: {
|
|
11
16
|
section_name: string;
|
|
12
17
|
}) => string;
|
|
@@ -18,11 +23,12 @@ export declare class Sections {
|
|
|
18
23
|
callback?: t.CallbackVoid | undefined;
|
|
19
24
|
}) => void;
|
|
20
25
|
private reload_ext;
|
|
21
|
-
make_shared_sections: ({ download_back_up_callback, upload_back_up_callback, restore_defaults_callback, input_change_val_callback, admin_inputs, }: {
|
|
26
|
+
make_shared_sections: ({ download_back_up_callback, upload_back_up_callback, restore_defaults_callback, input_change_val_callback, admin_inputs, restore_inputs, }: {
|
|
22
27
|
download_back_up_callback: t.CallbackAnyObj;
|
|
23
28
|
upload_back_up_callback: t.CallbackVariadicVoid;
|
|
24
29
|
restore_defaults_callback: t.CallbackVoid;
|
|
25
30
|
input_change_val_callback: t.CallbackVariadicVoid;
|
|
26
31
|
admin_inputs?: i_inputs.Input[] | undefined;
|
|
32
|
+
restore_inputs?: i_inputs.Input[] | undefined;
|
|
27
33
|
}) => o_inputs.Section[];
|
|
28
34
|
}
|
package/ts/settings/init.d.ts
CHANGED
|
File without changes
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./init";
|
|
2
2
|
export * as c_settings from "./components";
|
|
3
3
|
export * as d_settings from "./data";
|
|
4
|
+
export * as d_optional_permissions from "./optional_permissions/data";
|
|
4
5
|
export * as s_settings from "./scripts";
|
|
5
6
|
export * as p_settings from "./components/prop_types";
|
|
7
|
+
export * as i_optional_permissions from "./optional_permissions/interfaces";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./main";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { i_optional_permissions } from "../../internal";
|
|
2
|
+
export declare class Main {
|
|
3
|
+
private static i0;
|
|
4
|
+
static i(): Main;
|
|
5
|
+
private constructor();
|
|
6
|
+
set_permission: ({ name, optional_permission_checkbox_dict, }: {
|
|
7
|
+
name: string;
|
|
8
|
+
optional_permission_checkbox_dict: i_optional_permissions.OptionalPermissionCheckboxDict;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
private set_checkbox_val;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./optional_permission_checkbox_dict";
|
|
File without changes
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { t } from "../../shared/internal";
|
|
1
2
|
import { i_inputs } from "../../inputs/internal";
|
|
2
3
|
export declare class Theme {
|
|
3
4
|
private static i0;
|
|
4
5
|
static i(): Theme;
|
|
5
6
|
private constructor();
|
|
6
|
-
change: ({ input, name }: {
|
|
7
|
+
change: ({ input, name, additional_theme_callback, }: {
|
|
7
8
|
input: i_inputs.Input;
|
|
8
9
|
name: string;
|
|
10
|
+
additional_theme_callback?: t.CallbackVariadicVoid | undefined;
|
|
9
11
|
}) => void;
|
|
10
12
|
}
|
package/ts/shared/app.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ts/shared/ext.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ts/shared/functions.d.ts
CHANGED
package/ts/shared/globals.d.ts
CHANGED
|
File without changes
|
package/ts/shared/init.d.ts
CHANGED
|
File without changes
|
package/ts/shared/internal.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export * as s_tab_index from "./tab_index/scripts";
|
|
|
21
21
|
export * as s_theme from "./theme/scripts";
|
|
22
22
|
export * as s_utils from "./utils/scripts";
|
|
23
23
|
export * as s_viewport from "./viewport/scripts";
|
|
24
|
-
export * as p_loading_screen from "./loading_screen/components/prop_types";
|
|
25
24
|
export * as p_tr from "./tr/components/prop_types";
|
|
26
25
|
export * as i_data from "./data/interfaces";
|
|
27
26
|
export * as i_tab_index from "./tab_index/interfaces";
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const Body: React.FunctionComponent<p_loading_screen.Body>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Body: () => JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ts/shared/svg.d.ts
CHANGED
|
File without changes
|
package/ts/shared/t.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { t } from "../../internal";
|
|
1
2
|
export declare class Main {
|
|
2
3
|
private static i0;
|
|
3
4
|
static i(): Main;
|
|
4
5
|
private constructor();
|
|
5
|
-
set: ({ name, el }: {
|
|
6
|
+
set: ({ name, el, additional_theme_callback, }: {
|
|
6
7
|
name: string;
|
|
7
8
|
el?: HTMLElement | undefined;
|
|
9
|
+
additional_theme_callback?: t.CallbackVariadicVoid | undefined;
|
|
8
10
|
}) => void;
|
|
9
11
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ts/shared/vars.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ts/shared/x.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare class X {
|
|
|
33
33
|
add_cls: (els: t.XEls, cls: string) => void;
|
|
34
34
|
remove_cls: (els: t.XEls, cls: string) => void;
|
|
35
35
|
move_item: (from: number, to: number, arr: t.AnyArray) => void;
|
|
36
|
+
insert_item: (position: number, items: t.AnyArray, arr: t.AnyArray) => any[];
|
|
36
37
|
remove_item: (i: number, arr: t.AnyArray) => void;
|
|
37
38
|
bind: (els: Window | Document | t.XEls, event: string, f: t.CallbackVariadicVoid) => void;
|
|
38
39
|
css: (filename: string, parent: HTMLHeadElement | ShadowRoot | undefined, cls?: string | undefined) => HTMLLinkElement | undefined;
|
|
@@ -43,14 +44,17 @@ export declare class X {
|
|
|
43
44
|
str_is_number: (val: string) => boolean;
|
|
44
45
|
delay: (delay: number) => Promise<void>;
|
|
45
46
|
id: () => string;
|
|
47
|
+
unique_id: () => string;
|
|
46
48
|
range: (min: number, max: number) => number;
|
|
47
49
|
rand_bool: () => boolean;
|
|
48
50
|
convert_string_bool: (bool: string) => boolean;
|
|
51
|
+
range_arr: (start: number | undefined, end: number) => number[];
|
|
49
52
|
cls: (classes: (string | undefined)[]) => string;
|
|
50
53
|
get_prop: <T1, T2 extends keyof T1>(obj: T1, key: T2) => T1[T2];
|
|
51
54
|
set_prop: <T1, T2 extends keyof T1>(obj: T1, key: T2, val: T1[T2]) => T1;
|
|
52
55
|
sanitize_filename: (filename: string, new_character?: string) => string;
|
|
53
56
|
convert_blob_to_base64: (blob: Blob) => Promise<string>;
|
|
57
|
+
convert_base64_to_blob: (base64: string) => Promise<Blob>;
|
|
54
58
|
copy_text: (text: string) => void;
|
|
55
59
|
copy_img: (img_url: string) => void;
|
|
56
60
|
px: (val: string | number | undefined) => string;
|
package/chunk-main-38f4a769.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as __awaiter,o as observer,s as svg,B as Body$2,m as makeObservable,b as observable,d as action,r as runInAction,e as computed}from"./chunk-main-ab64b6fe.js";import React__default,{useEffect}from"react";global.show_err_ribbon=(error_obj,error_code,{error_msg_key:error_msg_key="",silent:silent=!1,persistent:persistent=!1,exit:exit=!1,hide_delay:hide_delay=Main$1.i().hide_delay,is_notification:is_notification=!1,notification_msg_key:notification_msg_key=""}={})=>Main$1.i().show_error(error_obj,error_code,{error_msg_key:error_msg_key,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay,is_notification:is_notification,notification_msg_key:notification_msg_key}),global.err=(f,error_code,{error_msg_key:error_msg_key="",silent:silent=!1,persistent:persistent=!1,exit:exit=!1,hide_delay:hide_delay=Main$1.i().hide_delay}={})=>{try{return f()}catch(error_obj){Main$1.i().show_error(error_obj,error_code,{error_msg_key:error_msg_key,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay})}},global.err_async=(f,error_code,{error_msg_key:error_msg_key="",silent:silent=!1,persistent:persistent=!1,exit:exit=!1,hide_delay:hide_delay=Main$1.i().hide_delay}={})=>__awaiter(void 0,void 0,void 0,(function*(){try{return yield f()}catch(error_obj){Main$1.i().show_error(error_obj,error_code,{error_msg_key:error_msg_key,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay})}})),global.throw_err=msg=>{throw new Error(msg)},global.err_obj=msg=>new Error(msg);const Body$1=observer(class extends React__default.Component{static getDerivedStateFromError(){Visibility.i().show_reload_ui_screen()}componentDidCatch(err_obj){show_err_ribbon(err_obj,"shr_1000",{error_msg_key:"cant_render_ui"})}render(){if(Visibility.i().page_is_crashed)return React__default.createElement("div",{className:"reload_ui_btn_w"},React__default.createElement("button",{className:x.cls(["btn","reload_ui"]),type:"button",onClick:Page.i().reload},ext.msg("reload_ui_btn_text")));const{children:children}=this.props;return children}}),Body=observer((props=>(useEffect((()=>{const{app_id:app_id}=props;(class{constructor(){this.load=({app_id:app_id})=>{x.css("font_face",document.head,`font_face_link_${app_id}`);const error_root=s(`.error_${app_id}`);if(n(error_root)){const error_shadow=n(error_root.shadowRoot)?error_root.shadowRoot:void 0;if(error_shadow){const error_css=x.css("error",error_shadow);n(error_css)&&x.bind(error_css,"load",(()=>{State.i().change_state({observable_key:"is_loaded",state:!0})}))}}}}static i(){return this.i0||(this.i0=new this)}}).i().load({app_id:app_id})}),[props]),React__default.createElement("div",{className:x.cls(["main","error",State.i().is_highlighted_cls,State.i().is_notification_cls]),role:"none",style:{display:State.i().is_visible_style},onMouseDown:State.i().clear_all_reset_state_timeouts},React__default.createElement(ExtName,null),React__default.createElement(Msg$1,null),React__default.createElement(CloseBtn,null))))),CloseBtn=observer((()=>React__default.createElement("button",{className:"close_btn",type:"button",onClick:()=>State.i().change_state({observable_key:"is_visible",state:!1})},React__default.createElement(svg.Close,null)))),ExtName=()=>React__default.createElement("span",{className:"ext_name"},`${ext.msg("name")||we.runtime.getManifest().name} `,React__default.createElement(Body$2,null)),Msg$1=observer((()=>React__default.createElement("div",{className:"msg"},Msg.i().main_msg,State.i().is_notification?void 0:React__default.createElement(React__default.Fragment,null,React__default.createElement("button",{type:"button",className:x.cls(["more_info_btn",Msg.i().more_info_btn_is_visible_cls]),onClick:()=>Msg.i().change_visibility_of_advanced_msg({is_visible:!0})},ext.msg("error_more_info_btn_text")),React__default.createElement("div",{className:Msg.i().advanced_msg_is_visible_cls},Msg.i().advanced_msg)))));class Main$2{constructor(){this.catch_fatal_error=callback=>__awaiter(this,void 0,void 0,(function*(){if("background"===page)callback();else if(is_ext){(yield ext.send_msg_resp({msg:"check_if_background_page_is_available"}))&&callback()}else callback()}))}static i(){return this.i0||(this.i0=new this)}}class Visibility{constructor(){this.page_is_crashed=!1,this.show_reload_ui_screen=()=>{this.page_is_crashed=!0},makeObservable(this,{page_is_crashed:observable,show_reload_ui_screen:action})}static i(){return this.i0||(this.i0=new this)}}class Main$1{constructor(){this.hide_delay=5e3,this.highlight_time=300,this.show_error=(error_obj,error_code,{error_msg_key:error_msg_key="",silent:silent=!1,persistent:persistent=!1,exit:exit=!1,hide_delay:hide_delay=this.hide_delay,is_notification:is_notification=!1,notification_msg_key:notification_msg_key=""}={})=>{Main$2.i().catch_fatal_error((()=>{const show_error_ui=!(x.in_service_worker||silent||error_obj&&error_obj.silent);if(show_error_ui&&(is_notification?(State.i().change_state({observable_key:"is_notification",state:!0}),Msg.i().notification_msg_key=notification_msg_key):State.i().change_state({observable_key:"is_notification",state:!1}),State.i().change_state({observable_key:"is_visible",state:!0}),State.i().change_state({observable_key:"is_highlighted",state:!0}),State.i().clear_all_reset_state_timeouts(),error_obj&&error_obj.persistent||persistent||State.i().run_reset_state_timeout({observable_key:"is_visible",delay:hide_delay+this.highlight_time}),State.i().run_reset_state_timeout({observable_key:"is_highlighted",delay:this.highlight_time})),error_obj&&error_code){show_error_ui&&Msg.i().change_visibility_of_advanced_msg({is_visible:!1});const error_msg_pre=ext.msg(`${error_obj.error_msg||error_msg_key}_error`),error_msg_final=error_msg_pre?` ${error_msg_pre}`:"";if(runInAction((()=>err((()=>{Msg.i().basic_msg=`${ext.msg("an_error_occured_msg")+error_msg_final}`,Msg.i().advanced_msg=`${ext.msg("error_code_label")+(error_obj.error_code||error_code)}\n${ext.msg("error_type_label")+error_obj.name}\n${ext.msg("error_msg_label")+error_obj.message}`}),"shr_1195"))),error_obj.exit||exit){const updated_error_obj=error_obj,set_updated_error_obj_propery=({key:key,undefined_property:undefined_property})=>{updated_error_obj[key]=n(error_obj[key])?error_obj[key]:undefined_property};throw set_updated_error_obj_propery({key:"error_code",undefined_property:error_code}),set_updated_error_obj_propery({key:"error_msg",undefined_property:error_msg_key}),set_updated_error_obj_propery({key:"silent",undefined_property:silent}),set_updated_error_obj_propery({key:"persistent",undefined_property:persistent}),set_updated_error_obj_propery({key:"exit",undefined_property:exit}),set_updated_error_obj_propery({key:"hide_delay",undefined_property:hide_delay}),updated_error_obj}this.output_error(error_obj,error_code)}}))},this.output_error=(error_obj,error_code)=>{const line="---------------------------",separator_bottom=`\n${line}`,error_code_and_msg=`${`${line}\n`}Code: ${error_code}\nMessage: ${error_obj.message}`,console_output=error_obj.stack?`${error_code_and_msg}\nStack: ${error_obj.stack+separator_bottom}`:error_code_and_msg+separator_bottom;console.error(console_output)},makeObservable(this,{show_error:action})}static i(){return this.i0||(this.i0=new this)}}class Msg{constructor(){this.advanced_msg_is_visible=!1,this.basic_msg="",this.advanced_msg="",this.notification_msg_key="",this.change_visibility_of_advanced_msg=({is_visible:is_visible})=>{this.advanced_msg_is_visible=is_visible},makeObservable(this,{advanced_msg_is_visible:observable,basic_msg:observable,advanced_msg:observable,notification_msg_key:observable,main_msg:computed,advanced_msg_is_visible_cls:computed,more_info_btn_is_visible_cls:computed,change_visibility_of_advanced_msg:action})}static i(){return this.i0||(this.i0=new this)}get advanced_msg_is_visible_cls(){return this.advanced_msg_is_visible?"":"none"}get more_info_btn_is_visible_cls(){return this.advanced_msg_is_visible?"none":""}get main_msg(){return State.i().is_notification?ext.msg(this.notification_msg_key):this.basic_msg}}class State{constructor(){this.is_loaded=!1,this.is_visible=!1,this.is_highlighted=!1,this.is_notification=!1,this.change_state=({observable_key:observable_key,state:state})=>{this[observable_key]=state},this.run_reset_state_timeout=({observable_key:observable_key,delay:delay})=>{this[`${observable_key}_timeout`]=global.setTimeout((()=>{this.change_state({observable_key:observable_key,state:!1})}),delay)},this.clear_all_reset_state_timeouts=()=>{n(this.is_visible_timeout)&&n(this.is_highlighted_timeout)&&(clearTimeout(this.is_visible_timeout),clearTimeout(this.is_highlighted_timeout))},makeObservable(this,{is_loaded:observable,is_visible:observable,is_highlighted:observable,is_notification:observable,is_visible_style:computed,is_highlighted_cls:computed,change_state:action})}static i(){return this.i0||(this.i0=new this)}get is_visible_style(){return this.is_loaded&&this.is_visible?"":"none"}get is_highlighted_cls(){return this.is_highlighted?"is_highlighted":""}get is_notification_cls(){return this.is_notification?"is_notification":""}}class Page{constructor(){this.reload=()=>{global.location.reload()}}static i(){return this.i0||(this.i0=new this)}}export{Body$1 as B,CloseBtn as C,ExtName as E,Main$1 as M,Visibility as V,Body as a,Msg$1 as b,Main$2 as c};
|
package/chunk-main-775b8143.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as __awaiter}from"./chunk-main-ab64b6fe.js";import"react";class Main$1{constructor(){this.cls="no_tr",this.enable=({el:el=document.head}={el:document.head})=>err((()=>{x.css(this.cls,el)}),"shr_1120"),this.disable=({el:el=document.head}={el:document.head})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield x.delay(500);const tr_link=sb(el,`.${this.cls}_link`);x.remove(tr_link)}))),"shr_1121")}static i(){return this.i0||(this.i0=new this)}}class Main{constructor(){this.set=({name:name,el:el=document.head})=>err((()=>{Main$1.i().enable({el:el});const name_final=`${name}_theme`,loading_screen_root_el=s('div[class^="root"][class*="loading_screen"]');x.css(name_final,el,"theme_link"),n(loading_screen_root_el)&&n(loading_screen_root_el.shadowRoot)&&x.css(name_final,loading_screen_root_el.shadowRoot,"theme_link"),Main$1.i().disable({el:el})}),"shr_1129")}static i(){return this.i0||(this.i0=new this)}}export{Main$1 as M,Main as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./body";
|