@loftyshaky/shared-app 1.0.2 → 1.2.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/LICENSE.md +21 -0
- package/_locales/de/messages.json +1 -1
- package/_locales/en/messages.json +119 -2
- package/_locales/ru/messages.json +65 -2
- package/announcement.d.ts +2 -2
- package/announcement.js +5 -1
- package/app.d.ts +1 -5
- package/app.js +5 -1
- package/chunk-main.js +22 -0
- package/chunk-main2.js +5 -0
- package/chunk-main3.js +5 -0
- package/chunk-main4.js +5 -0
- package/chunk-pickr.min.js +5 -0
- package/dependencies.d.ts +2 -0
- package/dependencies.js +5 -0
- package/dependencies.txt +863 -0
- package/ext.d.ts +1 -5
- package/ext.js +5 -1
- package/fonts/NotoSans-Regular.ttf +0 -0
- package/globals.d.ts +49 -0
- package/html/dependencies.html +13 -0
- package/index.d.ts +3 -3
- package/index.js +5 -1
- package/inputs.d.ts +2 -2
- package/inputs.js +5 -1
- package/js/apps.js +63 -63
- package/js/dependencies.js +56 -0
- package/js/env.js +11 -3
- package/js/locales.js +23 -8
- package/js/package/plugins/rollup-plugin-copy.js +169 -169
- package/js/package/plugins/watcher.js +56 -56
- package/js/package/terser.js +18 -18
- package/js/task_scheduler.js +39 -39
- package/js/tsc_alias.js +19 -0
- package/js/webpack.config.js +35 -3
- package/package.json +2 -2
- package/scss/dependencies/body.scss +3 -0
- package/scss/dependencies/hr.scss +3 -0
- package/scss/dependencies/index.scss +5 -0
- package/scss/dependencies/links.scss +3 -0
- package/scss/dependencies/main.scss +3 -0
- package/scss/settings/section_btns.scss +52 -52
- package/scss/settings/sections.scss +22 -0
- package/scss/settings/transitions.scss +3 -13
- 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 +45 -28
- package/scss/shared/embed/font_face.scss +1 -2
- 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 +90 -70
- package/scss/shared/inset_border.scss +1 -8
- 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 +60 -6
- package/scss/shared/mods.scss +11 -5
- package/scss/shared/offers.scss +37 -0
- package/scss/shared/scrollbar.scss +35 -35
- package/scss/shared/selects.scss +8 -2
- package/scss/shared/themes/colors/aqua.scss +48 -0
- package/scss/shared/themes/colors/dark.scss +51 -12
- package/scss/shared/themes/colors/lavender.scss +52 -0
- package/scss/shared/themes/colors/light.scss +51 -12
- package/scss/shared/themes/colors/very_dark.scss +51 -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 +123 -75
- package/scss/shared/themes/general/template_focus.scss +24 -10
- package/scss/shared/themes/general/very_dark_theme.scss +3 -1
- package/scss/shared/transitions.scss +23 -2
- package/scss/shared/upload_box.scss +80 -67
- package/scss/shared/vars.scss +15 -2
- package/settings.d.ts +2 -2
- package/settings.js +5 -1
- package/ts/announcement/components/body.d.ts +2 -3
- package/ts/announcement/components/index.d.ts +1 -1
- package/ts/announcement/internal.d.ts +2 -3
- package/ts/announcement/scripts/display.d.ts +6 -6
- package/ts/announcement/scripts/index.d.ts +1 -2
- package/ts/dependencies/components/body.d.ts +2 -0
- package/ts/dependencies/components/index.d.ts +1 -0
- package/ts/dependencies/internal.d.ts +2 -0
- package/ts/dependencies/scripts/dependencies.d.ts +7 -0
- package/ts/dependencies/scripts/index.d.ts +1 -0
- package/ts/error_modules/crash_handler/components/body.d.ts +52 -52
- package/ts/error_modules/crash_handler/components/index.d.ts +1 -1
- package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +4 -4
- package/ts/error_modules/crash_handler/components/prop_types/index.d.ts +1 -1
- package/ts/error_modules/crash_handler/data/index.d.ts +1 -1
- package/ts/error_modules/crash_handler/data/visibility.d.ts +7 -7
- package/ts/error_modules/crash_handler/scripts/index.d.ts +1 -1
- package/ts/error_modules/crash_handler/scripts/page.d.ts +6 -6
- package/ts/error_modules/css/scripts/index.d.ts +1 -1
- package/ts/error_modules/css/scripts/main.d.ts +8 -8
- package/ts/error_modules/error/components/body.d.ts +3 -3
- package/ts/error_modules/error/components/close_btn.d.ts +2 -2
- package/ts/error_modules/error/components/ext_name.d.ts +2 -2
- package/ts/error_modules/error/components/index.d.ts +6 -4
- package/ts/error_modules/error/components/keep_visible_msg.d.ts +2 -0
- package/ts/error_modules/error/components/msg.d.ts +2 -2
- package/ts/error_modules/error/components/progress.d.ts +2 -0
- package/ts/error_modules/error/components/prop_types/body.d.ts +5 -5
- package/ts/error_modules/error/components/prop_types/index.d.ts +1 -1
- package/ts/error_modules/error/data/index.d.ts +4 -3
- package/ts/error_modules/error/data/main.d.ts +11 -10
- package/ts/error_modules/error/data/msg.d.ts +13 -15
- package/ts/error_modules/error/data/progress.d.ts +17 -0
- package/ts/error_modules/error/data/state.d.ts +25 -24
- package/ts/error_modules/error/interfaces/error.d.ts +6 -6
- package/ts/error_modules/error/interfaces/error_obj.d.ts +6 -6
- package/ts/error_modules/error/interfaces/index.d.ts +7 -5
- 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 +11 -6
- package/ts/error_modules/error/interfaces/show_unable_to_access_settings_error.d.ts +5 -0
- package/ts/error_modules/error/interfaces/timeout_observable_keys.d.ts +1 -1
- package/ts/error_modules/error/scripts/flash.d.ts +11 -0
- package/ts/error_modules/error/scripts/globals.d.ts +1 -9
- package/ts/error_modules/error/scripts/index.d.ts +3 -1
- 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 +11 -10
- package/ts/inputs/color/components/body.d.ts +3 -3
- package/ts/inputs/color/components/color_picker.d.ts +3 -3
- package/ts/inputs/color/components/fill_shadow.d.ts +3 -3
- package/ts/inputs/color/components/index.d.ts +4 -4
- package/ts/inputs/color/components/prop_types/body.d.ts +4 -4
- package/ts/inputs/color/components/prop_types/color_picker.d.ts +7 -7
- package/ts/inputs/color/components/prop_types/fill_shadow.d.ts +5 -5
- package/ts/inputs/color/components/prop_types/index.d.ts +4 -4
- package/ts/inputs/color/components/prop_types/visualization.d.ts +6 -6
- package/ts/inputs/color/components/visualization.d.ts +3 -3
- package/ts/inputs/color/data/color.d.ts +54 -54
- package/ts/inputs/color/data/index.d.ts +2 -2
- package/ts/inputs/color/data/visibility.d.ts +38 -38
- package/ts/inputs/color/interfaces/color.d.ts +1 -1
- package/ts/inputs/color/interfaces/color_picker_state.d.ts +6 -6
- package/ts/inputs/color/interfaces/color_picker_state_one.d.ts +5 -5
- package/ts/inputs/color/interfaces/i.d.ts +1 -1
- package/ts/inputs/color/interfaces/index.d.ts +4 -4
- package/ts/inputs/color/obj/color.d.ts +54 -54
- package/ts/inputs/color/obj/index.d.ts +1 -1
- package/ts/inputs/color/scripts/color_picker.d.ts +20 -20
- package/ts/inputs/color/scripts/index.d.ts +2 -2
- package/ts/inputs/color/scripts/position.d.ts +7 -7
- package/ts/inputs/components/btn.d.ts +3 -3
- package/ts/inputs/components/checkbox.d.ts +3 -3
- package/ts/inputs/components/file.d.ts +3 -3
- package/ts/inputs/components/form.d.ts +3 -0
- package/ts/inputs/components/group.d.ts +3 -3
- package/ts/inputs/components/help.d.ts +3 -3
- package/ts/inputs/components/help_btn.d.ts +3 -3
- package/ts/inputs/components/hr.d.ts +3 -3
- package/ts/inputs/components/icon_btn.d.ts +3 -3
- package/ts/inputs/components/index.d.ts +25 -21
- package/ts/inputs/components/input_error.d.ts +3 -0
- package/ts/inputs/components/input_item.d.ts +3 -3
- package/ts/inputs/components/label.d.ts +3 -3
- package/ts/inputs/components/label_in_input_item.d.ts +3 -0
- package/ts/inputs/components/link.d.ts +3 -3
- package/ts/inputs/components/link_btn.d.ts +3 -3
- package/ts/inputs/components/link_icon_btn.d.ts +3 -0
- package/ts/inputs/components/prop_types/btn.d.ts +4 -4
- package/ts/inputs/components/prop_types/checkbox.d.ts +4 -4
- package/ts/inputs/components/prop_types/file.d.ts +4 -4
- package/ts/inputs/components/prop_types/form.d.ts +5 -0
- package/ts/inputs/components/prop_types/group.d.ts +5 -5
- package/ts/inputs/components/prop_types/help.d.ts +4 -4
- package/ts/inputs/components/prop_types/help_btn.d.ts +4 -4
- package/ts/inputs/components/prop_types/hr.d.ts +4 -4
- package/ts/inputs/components/prop_types/icon_btn.d.ts +4 -4
- package/ts/inputs/components/prop_types/index.d.ts +25 -21
- package/ts/inputs/components/prop_types/input_error.d.ts +4 -0
- package/ts/inputs/components/prop_types/input_item.d.ts +7 -7
- package/ts/inputs/components/prop_types/label.d.ts +4 -4
- package/ts/inputs/components/prop_types/label_in_input_item.d.ts +4 -0
- package/ts/inputs/components/prop_types/link.d.ts +4 -4
- package/ts/inputs/components/prop_types/link_btn.d.ts +4 -4
- package/ts/inputs/components/prop_types/link_icon_btn.d.ts +5 -0
- package/ts/inputs/components/prop_types/range.d.ts +6 -4
- package/ts/inputs/components/prop_types/section.d.ts +4 -4
- package/ts/inputs/components/prop_types/section_btn.d.ts +7 -6
- package/ts/inputs/components/prop_types/section_content.d.ts +5 -4
- package/ts/inputs/components/prop_types/select.d.ts +6 -4
- package/ts/inputs/components/prop_types/text.d.ts +6 -4
- package/ts/inputs/components/prop_types/text_btn.d.ts +8 -8
- package/ts/inputs/components/prop_types/textarea.d.ts +6 -4
- package/ts/inputs/components/prop_types/upload_box.d.ts +5 -4
- package/ts/inputs/components/range.d.ts +3 -3
- package/ts/inputs/components/section.d.ts +3 -3
- package/ts/inputs/components/section_btn.d.ts +3 -3
- package/ts/inputs/components/section_content.d.ts +3 -3
- package/ts/inputs/components/select.d.ts +3 -3
- package/ts/inputs/components/text.d.ts +3 -3
- package/ts/inputs/components/text_btn.d.ts +3 -3
- package/ts/inputs/components/textarea.d.ts +3 -3
- package/ts/inputs/components/upload_box.d.ts +3 -3
- package/ts/inputs/data/help.d.ts +15 -15
- package/ts/inputs/data/index.d.ts +8 -7
- package/ts/inputs/data/input_error.d.ts +12 -0
- package/ts/inputs/data/input_width.d.ts +26 -22
- package/ts/inputs/data/{label.d.ts → labelIn_in_putI_iem.d.ts} +9 -9
- package/ts/inputs/data/nested_input.d.ts +18 -18
- package/ts/inputs/data/text.d.ts +21 -21
- package/ts/inputs/data/upload_box.d.ts +24 -20
- package/ts/inputs/data/val.d.ts +41 -36
- package/ts/inputs/interfaces/btn_option.d.ts +9 -0
- package/ts/inputs/interfaces/icon_btns.d.ts +2 -2
- package/ts/inputs/interfaces/index.d.ts +9 -8
- package/ts/inputs/interfaces/input.d.ts +2 -2
- package/ts/inputs/interfaces/inputs.d.ts +2 -2
- package/ts/inputs/interfaces/links.d.ts +2 -2
- package/ts/inputs/interfaces/options.d.ts +2 -2
- package/ts/inputs/interfaces/sections.d.ts +2 -2
- package/ts/inputs/interfaces/state_cond.d.ts +4 -4
- package/ts/inputs/interfaces/text_btn.d.ts +7 -7
- package/ts/inputs/internal.d.ts +12 -12
- package/ts/inputs/obj/btn.d.ts +6 -5
- package/ts/inputs/obj/checkbox.d.ts +5 -5
- package/ts/inputs/obj/file.d.ts +9 -8
- package/ts/inputs/obj/form.d.ts +7 -0
- package/ts/inputs/obj/group.d.ts +6 -6
- package/ts/inputs/obj/hr.d.ts +5 -5
- package/ts/inputs/obj/icon_btn.d.ts +7 -6
- package/ts/inputs/obj/index.d.ts +18 -16
- package/ts/inputs/obj/input_base.d.ts +45 -37
- package/ts/inputs/obj/label.d.ts +5 -0
- package/ts/inputs/obj/link.d.ts +17 -12
- package/ts/inputs/obj/link_btn.d.ts +6 -5
- package/ts/inputs/obj/option.d.ts +6 -6
- package/ts/inputs/obj/range.d.ts +20 -20
- package/ts/inputs/obj/section.d.ts +31 -17
- package/ts/inputs/obj/select.d.ts +9 -9
- package/ts/inputs/obj/text.d.ts +18 -17
- package/ts/inputs/obj/textarea.d.ts +5 -5
- package/ts/inputs/obj/upload_box.d.ts +18 -14
- package/ts/inputs/scripts/index.d.ts +2 -2
- package/ts/inputs/scripts/resolve.d.ts +7 -5
- package/ts/inputs/scripts/upload_box.d.ts +8 -8
- package/ts/settings/components/body.d.ts +3 -3
- package/ts/settings/components/index.d.ts +1 -1
- package/ts/settings/components/prop_types/body.d.ts +8 -7
- package/ts/settings/components/prop_types/index.d.ts +1 -1
- package/ts/settings/data/back_up.d.ts +17 -16
- package/ts/settings/data/index.d.ts +2 -2
- package/ts/settings/data/sections.d.ts +43 -37
- package/ts/settings/developer_mode/data/index.d.ts +1 -0
- package/ts/settings/developer_mode/data/main.d.ts +13 -0
- package/ts/settings/init.d.ts +1 -1
- package/ts/settings/internal.d.ts +8 -9
- package/ts/settings/optional_permissions/data/index.d.ts +1 -1
- package/ts/settings/optional_permissions/data/main.d.ts +11 -11
- package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -1
- package/ts/settings/optional_permissions/interfaces/optional_permission_checkbox_dict.d.ts +3 -3
- package/ts/settings/scripts/index.d.ts +1 -1
- package/ts/settings/scripts/theme.d.ts +12 -12
- package/ts/shared/app.d.ts +25 -18
- package/ts/shared/app_ext_globals.d.ts +1 -6
- package/ts/shared/app_version/components/body.d.ts +2 -2
- package/ts/shared/app_version/components/index.d.ts +1 -1
- package/ts/shared/css_vars/scripts/index.d.ts +1 -1
- package/ts/shared/css_vars/scripts/main.d.ts +18 -18
- package/ts/shared/data/data/index.d.ts +1 -1
- package/ts/shared/data/data/main.d.ts +1 -4
- package/ts/shared/data/interfaces/index.d.ts +1 -1
- package/ts/shared/data/interfaces/val.d.ts +2 -2
- package/ts/shared/ext.d.ts +28 -27
- package/ts/shared/functions.d.ts +3 -3
- package/ts/shared/globals.d.ts +1 -4
- package/ts/shared/header/scripts/index.d.ts +1 -0
- package/ts/{announcement/scripts/header.d.ts → shared/header/scripts/main.d.ts} +6 -6
- package/ts/shared/init.d.ts +1 -1
- package/ts/shared/internal.d.ts +40 -29
- package/ts/shared/loading_screen/components/body.d.ts +3 -3
- package/ts/shared/loading_screen/components/index.d.ts +1 -1
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +5 -5
- package/ts/shared/loading_screen/components/prop_types/index.d.ts +1 -1
- package/ts/shared/loading_screen/data/index.d.ts +1 -1
- package/ts/shared/loading_screen/data/main.d.ts +12 -12
- package/ts/shared/loading_screen/scripts/index.d.ts +2 -2
- package/ts/shared/loading_screen/scripts/roots.d.ts +11 -11
- package/ts/shared/loading_screen/scripts/tr.d.ts +8 -8
- package/ts/shared/no_tr/scripts/index.d.ts +1 -1
- package/ts/shared/no_tr/scripts/main.d.ts +12 -12
- 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 +12 -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/shared/schema/data/main.d.ts +12 -0
- package/ts/shared/schema/obj/index.d.ts +1 -0
- package/ts/{settings → shared}/schema/obj/transform_item.d.ts +7 -7
- 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 +9 -7
- package/ts/shared/t.d.ts +36 -34
- package/ts/shared/tab_index/interfaces/index.d.ts +1 -1
- package/ts/shared/tab_index/interfaces/set_Input_type_event.d.ts +2 -2
- package/ts/shared/tab_index/scripts/index.d.ts +1 -1
- package/ts/shared/tab_index/scripts/main.d.ts +18 -18
- package/ts/shared/theme/scripts/index.d.ts +1 -1
- package/ts/shared/theme/scripts/main.d.ts +11 -11
- package/ts/shared/title/scripts/index.d.ts +1 -1
- package/ts/shared/title/scripts/main.d.ts +6 -6
- package/ts/shared/tr/components/base_tr.d.ts +9 -9
- package/ts/shared/tr/components/index.d.ts +1 -1
- package/ts/shared/tr/components/prop_types/base_tr.d.ts +13 -13
- package/ts/shared/tr/components/prop_types/index.d.ts +1 -1
- package/ts/shared/tr/data/index.d.ts +1 -1
- package/ts/shared/tr/data/transition.d.ts +23 -23
- package/ts/shared/tr/interfaces/index.d.ts +1 -1
- package/ts/shared/tr/interfaces/transitions.d.ts +2 -2
- package/ts/shared/tr/obj/index.d.ts +1 -1
- package/ts/shared/tr/obj/transition.d.ts +8 -8
- package/ts/shared/utils/scripts/index.d.ts +1 -1
- package/ts/shared/utils/scripts/main.d.ts +11 -11
- package/ts/shared/vars.d.ts +2 -1
- package/ts/shared/viewport/scripts/index.d.ts +1 -1
- package/ts/shared/viewport/scripts/main.d.ts +8 -8
- package/ts/shared/x.d.ts +56 -60
- package/chunk-main-303525a1.js +0 -1
- package/chunk-main-3865bde3.js +0 -9
- package/chunk-main-6b1a6024.js +0 -1
- package/chunk-pickr.min-ee5e2c4f.js +0 -1
- package/fonts/noto_sans.woff2 +0 -0
- package/ts/announcement/components/prop_types/body.d.ts +0 -4
- package/ts/announcement/components/prop_types/index.d.ts +0 -1
- package/ts/settings/schema/data/index.d.ts +0 -1
- package/ts/settings/schema/data/main.d.ts +0 -10
- package/ts/settings/schema/obj/index.d.ts +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { t } from
|
|
3
|
-
export interface BaseTr {
|
|
4
|
-
name: string;
|
|
5
|
-
tag: any;
|
|
6
|
-
cls: string;
|
|
7
|
-
state: boolean;
|
|
8
|
-
attr?: Record<string, any>;
|
|
9
|
-
style?: Record<string, string | number | undefined>;
|
|
10
|
-
tr_end_unactive?: t.CallbackVoid[];
|
|
11
|
-
tr_end_active?: t.CallbackVoid[];
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { t } from '../../../internal';
|
|
3
|
+
export interface BaseTr {
|
|
4
|
+
name: string;
|
|
5
|
+
tag: any;
|
|
6
|
+
cls: string;
|
|
7
|
+
state: boolean;
|
|
8
|
+
attr?: Record<string, any>;
|
|
9
|
+
style?: Record<string, string | number | undefined>;
|
|
10
|
+
tr_end_unactive?: t.CallbackVoid[];
|
|
11
|
+
tr_end_active?: t.CallbackVoid[];
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../../tr/components/prop_types/base_tr';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../tr/data/transition';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { t, i_tr } from
|
|
3
|
-
export declare class Transition {
|
|
4
|
-
private static i0;
|
|
5
|
-
static i(): Transition;
|
|
6
|
-
private constructor();
|
|
7
|
-
handle_transition: ({ name, state, tr_end_unactive, tr_end_active, tr_el_ref, called_from_component_did_update, }: {
|
|
8
|
-
name: string;
|
|
9
|
-
state: boolean;
|
|
10
|
-
tr_end_unactive?: t.CallbackVoid[] | undefined;
|
|
11
|
-
tr_end_active?: t.CallbackVoid[] | undefined;
|
|
12
|
-
tr_el_ref: React.RefObject<HTMLElement>;
|
|
13
|
-
called_from_component_did_update: boolean;
|
|
14
|
-
}, e?: React.TransitionEvent) => void;
|
|
15
|
-
transit: ({ transitions, name, state, }: {
|
|
16
|
-
transitions: i_tr.Transitions;
|
|
17
|
-
name: string;
|
|
18
|
-
state: boolean;
|
|
19
|
-
}) => string;
|
|
20
|
-
run_tr_end_callbacks: ({ tr_end_callbacks, }: {
|
|
21
|
-
tr_end_callbacks: t.CallbackVariadicVoid[];
|
|
22
|
-
}, e: React.TransitionEvent) => void;
|
|
23
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { t, i_tr } from '../../internal';
|
|
3
|
+
export declare class Transition {
|
|
4
|
+
private static i0;
|
|
5
|
+
static i(): Transition;
|
|
6
|
+
private constructor();
|
|
7
|
+
handle_transition: ({ name, state, tr_end_unactive, tr_end_active, tr_el_ref, called_from_component_did_update, }: {
|
|
8
|
+
name: string;
|
|
9
|
+
state: boolean;
|
|
10
|
+
tr_end_unactive?: t.CallbackVoid[] | undefined;
|
|
11
|
+
tr_end_active?: t.CallbackVoid[] | undefined;
|
|
12
|
+
tr_el_ref: React.RefObject<HTMLElement>;
|
|
13
|
+
called_from_component_did_update: boolean;
|
|
14
|
+
}, e?: React.TransitionEvent) => void;
|
|
15
|
+
transit: ({ transitions, name, state, }: {
|
|
16
|
+
transitions: i_tr.Transitions;
|
|
17
|
+
name: string;
|
|
18
|
+
state: boolean;
|
|
19
|
+
}) => string;
|
|
20
|
+
run_tr_end_callbacks: ({ tr_end_callbacks, }: {
|
|
21
|
+
tr_end_callbacks: t.CallbackVariadicVoid[];
|
|
22
|
+
}, e: React.TransitionEvent) => void;
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../tr/interfaces/transitions';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { o_tr } from
|
|
2
|
-
export
|
|
1
|
+
import { o_tr } from '../../internal';
|
|
2
|
+
export type Transitions = Record<string, o_tr.Transition>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../tr/obj/transition';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare class Transition {
|
|
2
|
-
unactive_cls: string;
|
|
3
|
-
active_cls: string;
|
|
4
|
-
constructor(obj: {
|
|
5
|
-
unactive_cls: string;
|
|
6
|
-
active_cls: string;
|
|
7
|
-
});
|
|
8
|
-
}
|
|
1
|
+
export declare class Transition {
|
|
2
|
+
unactive_cls: string;
|
|
3
|
+
active_cls: string;
|
|
4
|
+
constructor(obj: {
|
|
5
|
+
unactive_cls: string;
|
|
6
|
+
active_cls: string;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../utils/scripts/main';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t } from
|
|
2
|
-
export declare class Main {
|
|
3
|
-
private static i0;
|
|
4
|
-
static i(): Main;
|
|
5
|
-
private constructor();
|
|
6
|
-
to_object: ({ arr, section, subsection, }: {
|
|
7
|
-
arr: t.AnyRecord[];
|
|
8
|
-
section?: string | undefined;
|
|
9
|
-
subsection?: string | undefined;
|
|
10
|
-
}) => t.AnyRecord;
|
|
11
|
-
}
|
|
1
|
+
import { t } from '../../internal';
|
|
2
|
+
export declare class Main {
|
|
3
|
+
private static i0;
|
|
4
|
+
static i(): Main;
|
|
5
|
+
private constructor();
|
|
6
|
+
to_object: ({ arr, section, subsection, }: {
|
|
7
|
+
arr: t.AnyRecord[];
|
|
8
|
+
section?: string | undefined;
|
|
9
|
+
subsection?: string | undefined;
|
|
10
|
+
}) => t.AnyRecord;
|
|
11
|
+
}
|
package/ts/shared/vars.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const scrollbar_width = 17;
|
|
1
|
+
export declare const scrollbar_width = 17;
|
|
2
|
+
export declare const transpaerent_1px_png = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from '../../viewport/scripts/main';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare class Main {
|
|
2
|
-
private static i0;
|
|
3
|
-
static i(): Main;
|
|
4
|
-
private constructor();
|
|
5
|
-
get_dim: ({ dim }: {
|
|
6
|
-
dim: 'width' | 'height';
|
|
7
|
-
}) => number;
|
|
8
|
-
}
|
|
1
|
+
export declare class Main {
|
|
2
|
+
private static i0;
|
|
3
|
+
static i(): Main;
|
|
4
|
+
private constructor();
|
|
5
|
+
get_dim: ({ dim }: {
|
|
6
|
+
dim: 'width' | 'height';
|
|
7
|
+
}) => number;
|
|
8
|
+
}
|
package/ts/shared/x.d.ts
CHANGED
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
import { t } from
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
copy_img: (img_url: string) => void;
|
|
58
|
-
px: (val: string | number | undefined) => string;
|
|
59
|
-
insert_invisible_chars_in_title: () => void;
|
|
60
|
-
}
|
|
1
|
+
import { t } from './internal';
|
|
2
|
+
export declare class X {
|
|
3
|
+
private static i0;
|
|
4
|
+
static i(): X;
|
|
5
|
+
private constructor();
|
|
6
|
+
in_service_worker: boolean;
|
|
7
|
+
invisible_chars: string;
|
|
8
|
+
private manifest;
|
|
9
|
+
get_asset_path: () => Promise<void>;
|
|
10
|
+
private all;
|
|
11
|
+
create: <T1 extends keyof HTMLElementTagNameMap>(el_type: T1, cls: string) => HTMLElementTagNameMap[T1];
|
|
12
|
+
append: (parent: t.XEl, child: t.XElNoShadow) => void;
|
|
13
|
+
as_first: (parent: t.XEl, child: t.XElNoShadow) => void;
|
|
14
|
+
before: (el_to_insert_before: t.XElNoShadow, child: t.XEl) => void;
|
|
15
|
+
after: (el_to_insert_after: t.XElNoShadow, child: t.XEl) => void;
|
|
16
|
+
remove: (els: t.XEls) => void;
|
|
17
|
+
matches: (el: HTMLElement | undefined, selector: string) => boolean;
|
|
18
|
+
closest: <T1>(el: HTMLElement | undefined, selector: string) => T1 | undefined;
|
|
19
|
+
add_cls: (els: t.XEls, cls: string) => void;
|
|
20
|
+
remove_cls: (els: t.XEls, cls: string) => void;
|
|
21
|
+
move_item: (from: number, to: number, arr: t.AnyArray) => void;
|
|
22
|
+
insert_item: (position: number, items: t.AnyArray, arr: t.AnyArray) => any[];
|
|
23
|
+
remove_item: (i: number, arr: t.AnyArray) => void;
|
|
24
|
+
bind: (els: Window | Document | t.XEls, event: string, f: t.CallbackVariadicVoid) => void;
|
|
25
|
+
css: (filename: string, parent: HTMLHeadElement | ShadowRoot | undefined, cls?: string) => HTMLLinkElement | undefined;
|
|
26
|
+
dynamic_css: (parent: HTMLHeadElement | ShadowRoot, cls: string, css: string) => HTMLStyleElement;
|
|
27
|
+
get_css_val: (el: HTMLElement, key: string) => string;
|
|
28
|
+
get_numeric_css_val: (el: HTMLElement, key: string) => number;
|
|
29
|
+
get_float_css_val: (el: HTMLElement, key: string) => number;
|
|
30
|
+
str_is_number: (val: string) => boolean;
|
|
31
|
+
delay: (delay: number) => Promise<void>;
|
|
32
|
+
id: () => string;
|
|
33
|
+
unique_id: () => string;
|
|
34
|
+
range: (min: number, max: number) => number;
|
|
35
|
+
rand_bool: () => boolean;
|
|
36
|
+
convert_string_bool: (bool: string) => boolean;
|
|
37
|
+
range_arr: (end: number, start?: number) => number[];
|
|
38
|
+
cls: (classes: (string | undefined)[]) => string;
|
|
39
|
+
get_prop: <T1, T2 extends keyof T1>(obj: T1, key: T2) => T1[T2];
|
|
40
|
+
set_prop: <T1, T2 extends keyof T1>(obj: T1, key: T2, val: T1[T2]) => T1;
|
|
41
|
+
sanitize_filename: (filename: string, new_character?: string) => string;
|
|
42
|
+
convert_blob_to_base64: (blob: Blob) => Promise<string>;
|
|
43
|
+
convert_base64_to_blob: (base64: string) => Promise<Blob>;
|
|
44
|
+
chunk_str: (str: string, len: number) => string[];
|
|
45
|
+
bytes_to_base64: (bytes: number) => number;
|
|
46
|
+
copy_text: (text: string) => void;
|
|
47
|
+
copy_img: (img_url: string) => void;
|
|
48
|
+
px: (val: string | number | undefined) => string;
|
|
49
|
+
insert_invisible_chars_in_title: () => void;
|
|
50
|
+
async_debounce<F extends (...args: any[]) => Promise<any>>(f: F, wait?: number): (...args: Parameters<F>) => ReturnType<F>;
|
|
51
|
+
private gcd;
|
|
52
|
+
get_aspect_ratio: (width: number, height: number) => string;
|
|
53
|
+
percentage: (partial_val: number, total_val: number, round_down?: boolean) => number;
|
|
54
|
+
wrap_link_in_a: (text: string) => string;
|
|
55
|
+
pastel_color: () => string;
|
|
56
|
+
}
|
package/chunk-main-303525a1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var main=require("./chunk-main-3865bde3.js"),React=require("react");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);globalThis.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}),globalThis.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})}},globalThis.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}={})=>main.__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})}})),globalThis.throw_err=msg=>{throw new Error(msg)},globalThis.throw_err_obj=error_obj=>{throw error_obj},globalThis.err_obj=msg=>new Error(msg);const Body$1=main.observer(class extends React__default.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.default.createElement("div",{className:"reload_ui_btn_w"},React__default.default.createElement("button",{className:x.cls(["btn","reload_ui"]),type:"button",onClick:Page.i().reload},app.msg("reload_ui_btn_text")));const{children:children}=this.props;return children}}),Body=main.observer((props=>{const{app_id:app_id,on_render:on_render}=props;return React.useEffect((()=>{(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}),on_render()}),[app_id,on_render]),React__default.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.default.createElement(ExtName,null),React__default.default.createElement(Msg$1,null),React__default.default.createElement(CloseBtn,null))})),CloseBtn=main.observer((()=>React__default.default.createElement("button",{className:"close_btn",type:"button",onClick:()=>State.i().change_state({observable_key:"is_visible",state:!1})},React__default.default.createElement(main.svg.Close,null)))),ExtName=()=>React__default.default.createElement("span",{className:"ext_name"},app.msg("name")," ",React__default.default.createElement(main.Body,null)),Msg$1=main.observer((()=>React__default.default.createElement("div",{className:"msg"},Msg.i().main_msg,State.i().is_notification?void 0:React__default.default.createElement(React__default.default.Fragment,null,React__default.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})},app.msg("error_more_info_btn_text")),React__default.default.createElement("div",{className:Msg.i().advanced_msg_is_visible_cls},Msg.i().advanced_msg)))));class Visibility{constructor(){this.page_is_crashed=!1,this.show_reload_ui_screen=()=>{this.page_is_crashed=!0},main.makeObservable(this,{page_is_crashed:main.observable,show_reload_ui_screen:main.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=""}={})=>{const error_ui_is_visible=!(x.in_service_worker||silent||error_obj&&error_obj.silent);if(error_ui_is_visible&&(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){error_ui_is_visible&&Msg.i().change_visibility_of_advanced_msg({is_visible:!1});const error_msg_pre=app.msg(`${error_obj.error_msg||error_msg_key}_error`),error_msg_final=error_msg_pre?` ${error_msg_pre}`:"";if(main.runInAction((()=>err((()=>{Msg.i().basic_msg=`${app.msg("an_error_occured_msg")+error_msg_final}`,Msg.i().advanced_msg=`${app.msg("error_code_label")+(error_obj.error_code||error_code)}\n${app.msg("error_type_label")+error_obj.name}\n${app.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)},main.makeObservable(this,{show_error:main.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},main.makeObservable(this,{advanced_msg_is_visible:main.observable,basic_msg:main.observable,advanced_msg:main.observable,notification_msg_key:main.observable,main_msg:main.computed,advanced_msg_is_visible_cls:main.computed,more_info_btn_is_visible_cls:main.computed,change_visibility_of_advanced_msg:main.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?app.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`]=globalThis.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))},main.makeObservable(this,{is_loaded:main.observable,is_visible:main.observable,is_highlighted:main.observable,is_notification:main.observable,is_visible_style:main.computed,is_highlighted_cls:main.computed,change_state:main.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=()=>{globalThis.location.reload()}}static i(){return this.i0||(this.i0=new this)}}exports.Body=Body$1,exports.Body$1=Body,exports.CloseBtn=CloseBtn,exports.ExtName=ExtName,exports.Main=Main$1,exports.Msg=Msg$1,exports.Visibility=Visibility;
|