@loftyshaky/shared 1.11.0 → 2.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 +47 -26
- package/_locales/ru/messages.json +46 -28
- package/announcement.d.ts +1 -1
- package/announcement.js +1 -1
- package/app.d.ts +1 -1
- package/app.js +1 -1
- package/chunk-error.js +5 -0
- package/chunk-index.js +5 -0
- package/chunk-merge.js +5 -0
- package/chunk-pickr.min.js +1 -1
- package/chunk-title.js +14 -0
- package/chunk-viewport.js +5 -0
- package/dependencies.js +1 -1
- package/dependencies.txt +75 -87
- package/ext.d.ts +1 -1
- package/ext.js +1 -1
- package/globals.d.ts +17 -14
- package/inputs.js +1 -1
- package/js/apps.js +6 -0
- package/js/webpack.config.js +2 -0
- package/package.json +1 -1
- package/scss/settings/ext_version.scss +2 -2
- package/scss/settings/main.scss +2 -1
- package/scss/settings/sections.scss +1 -0
- package/scss/shared/btns.scss +15 -1
- package/scss/shared/checkboxes.scss +1 -0
- package/scss/shared/colors.scss +1 -1
- package/scss/shared/group.scss +10 -1
- package/scss/shared/help.scss +4 -0
- package/scss/shared/inputs.scss +2 -3
- package/scss/shared/themes/general/template.scss +28 -28
- package/scss/shared/transitions.scss +1 -0
- package/settings.d.ts +1 -1
- package/settings.js +1 -1
- package/shared.d.ts +4 -0
- package/shared.js +5 -0
- package/shared_clean.d.ts +2 -0
- package/shared_clean.js +5 -0
- package/ts/announcement/internal.d.ts +0 -1
- package/ts/dependencies/scripts/dependencies.d.ts +5 -3
- package/ts/error_modules/crash_handler/components/body.d.ts +1 -1
- package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +0 -1
- package/ts/error_modules/crash_handler/data/visibility.d.ts +5 -3
- package/ts/error_modules/crash_handler/scripts/page.d.ts +5 -3
- package/ts/error_modules/css/scripts/css.d.ts +10 -0
- package/ts/error_modules/css/scripts/index.d.ts +1 -1
- package/ts/error_modules/error/components/prop_types/body.d.ts +1 -1
- package/ts/error_modules/error/data/error.d.ts +13 -0
- package/ts/error_modules/error/data/index.d.ts +1 -1
- package/ts/error_modules/error/data/msg.d.ts +5 -3
- package/ts/error_modules/error/data/progress.d.ts +5 -3
- package/ts/error_modules/error/data/state.d.ts +6 -4
- package/ts/error_modules/error/scripts/flash.d.ts +5 -3
- package/ts/error_modules/error/scripts/notification.d.ts +7 -5
- package/ts/error_modules/internal.d.ts +2 -1
- package/ts/error_modules_clean/error/data/error.d.ts +11 -0
- package/ts/error_modules_clean/error/data/index.d.ts +1 -0
- package/ts/{error_modules → error_modules_clean}/error/interfaces/index.d.ts +4 -0
- package/ts/{error_modules → error_modules_clean}/error/interfaces/show_error.d.ts +3 -0
- package/ts/error_modules_clean/error/interfaces/show_error_state_1.d.ts +11 -0
- package/ts/error_modules_clean/error/interfaces/show_error_state_1_f.d.ts +2 -0
- package/ts/error_modules_clean/error/interfaces/show_error_state_2.d.ts +6 -0
- package/ts/error_modules_clean/error/interfaces/show_error_state_2_f.d.ts +2 -0
- package/ts/error_modules_clean/error/scripts/index.d.ts +1 -0
- package/ts/error_modules_clean/internal.d.ts +4 -0
- package/ts/inputs/color/data/color.d.ts +10 -9
- package/ts/inputs/color/data/visibility.d.ts +6 -4
- package/ts/inputs/color/interfaces/index.d.ts +0 -1
- package/ts/inputs/color/obj/color.d.ts +1 -1
- package/ts/inputs/color/scripts/color_picker.d.ts +6 -4
- package/ts/inputs/color/scripts/position.d.ts +5 -3
- package/ts/inputs/components/prop_types/checkbox.d.ts +1 -0
- package/ts/inputs/components/prop_types/input_item.d.ts +0 -1
- package/ts/inputs/components/prop_types/section_btn.d.ts +1 -1
- package/ts/inputs/components/prop_types/text_btn.d.ts +1 -1
- package/ts/inputs/data/help.d.ts +5 -3
- package/ts/inputs/data/index.d.ts +2 -2
- package/ts/inputs/data/input_error.d.ts +6 -4
- package/ts/inputs/data/input_width.d.ts +21 -18
- package/ts/inputs/data/{labelIn_in_putI_iem.d.ts → label_in_input_item.d.ts} +5 -3
- package/ts/inputs/data/nested_input.d.ts +7 -5
- package/ts/inputs/data/text.d.ts +5 -3
- package/ts/inputs/data/upload_box.d.ts +6 -4
- package/ts/inputs/data/val.d.ts +6 -4
- package/ts/inputs/interfaces/btn_option.d.ts +1 -1
- package/ts/inputs/interfaces/text_btn.d.ts +1 -1
- package/ts/inputs/obj/file.d.ts +1 -1
- package/ts/inputs/obj/input_base.d.ts +1 -1
- package/ts/inputs/obj/link.d.ts +1 -1
- package/ts/inputs/obj/text.d.ts +1 -1
- package/ts/inputs/scripts/resolve.d.ts +2 -3
- package/ts/inputs/scripts/upload_box.d.ts +5 -3
- package/ts/settings/components/prop_types/body.d.ts +1 -1
- package/ts/settings/developer_mode/data/developer_mode.d.ts +15 -0
- package/ts/settings/developer_mode/data/index.d.ts +1 -1
- package/ts/settings/internal.d.ts +2 -2
- package/ts/settings/optional_permissions/data/index.d.ts +1 -1
- package/ts/settings/optional_permissions/data/permission.d.ts +17 -0
- package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
- package/ts/settings/optional_permissions/interfaces/show_enable_permissions_notification_permission.d.ts +7 -0
- package/ts/settings/{data → sections/data}/back_up.d.ts +8 -6
- package/ts/settings/sections/data/index.d.ts +2 -0
- package/ts/settings/{data → sections/data}/sections.d.ts +22 -20
- package/ts/settings/sections/scripts/index.d.ts +1 -0
- package/ts/settings/sections/scripts/theme.d.ts +14 -0
- package/ts/shared/data/data/cache.d.ts +15 -0
- package/ts/shared/data/data/index.d.ts +3 -1
- package/ts/shared/data/data/settings.d.ts +11 -0
- package/ts/shared/internal.d.ts +1 -17
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +1 -1
- package/ts/shared/loading_screen/data/index.d.ts +1 -1
- package/ts/shared/loading_screen/data/{main.d.ts → visibility.d.ts} +5 -3
- package/ts/shared/loading_screen/scripts/roots.d.ts +5 -3
- package/ts/shared/loading_screen/scripts/tr.d.ts +5 -3
- package/ts/shared/offers/data/index.d.ts +1 -1
- package/ts/shared/offers/data/{main.d.ts → offers.d.ts} +5 -3
- package/ts/shared/offers/scripts/index.d.ts +1 -1
- package/ts/shared/offers/scripts/{main.d.ts → offers.d.ts} +5 -5
- package/ts/shared/schema/data/index.d.ts +1 -1
- package/ts/shared/schema/data/schema.d.ts +14 -0
- package/ts/shared/tab_index/scripts/index.d.ts +1 -1
- package/ts/shared/tab_index/scripts/{main.d.ts → tab_index.d.ts} +7 -5
- package/ts/shared/title/scripts/index.d.ts +1 -1
- package/ts/shared/title/scripts/title.d.ts +8 -0
- package/ts/shared/tr/components/prop_types/base_tr.d.ts +1 -2
- package/ts/shared/tr/data/transition.d.ts +9 -6
- package/ts/shared_clean/announcement/scripts/index.d.ts +1 -0
- package/ts/shared_clean/announcement/scripts/visibility.d.ts +8 -0
- package/ts/{shared → shared_clean}/app.d.ts +5 -3
- package/ts/shared_clean/color/interfaces/index.d.ts +1 -0
- package/ts/shared_clean/color/scripts/colors.d.ts +9 -0
- package/ts/shared_clean/color/scripts/index.d.ts +1 -0
- package/ts/{shared/css_vars/scripts/main.d.ts → shared_clean/css_vars/scripts/css_vars.d.ts} +6 -4
- package/ts/shared_clean/css_vars/scripts/index.d.ts +1 -0
- package/ts/shared_clean/data/data/data.d.ts +1 -0
- package/ts/shared_clean/data/data/index.d.ts +2 -0
- package/ts/shared_clean/data/data/settings.d.ts +21 -0
- package/ts/shared_clean/data/scripts/cache.d.ts +25 -0
- package/ts/shared_clean/data/scripts/index.d.ts +3 -0
- package/ts/shared_clean/data/scripts/settings.d.ts +12 -0
- package/ts/shared_clean/data/scripts/sync.d.ts +11 -0
- package/ts/{shared → shared_clean}/ext.d.ts +8 -3
- package/ts/shared_clean/functions.d.ts +4 -0
- package/ts/shared_clean/globals.d.ts +1 -0
- package/ts/shared_clean/internal.d.ts +22 -0
- package/ts/shared_clean/no_tr/scripts/index.d.ts +1 -0
- package/ts/shared_clean/no_tr/scripts/state.d.ts +14 -0
- package/ts/shared_clean/schema/data/index.d.ts +1 -0
- package/ts/shared_clean/schema/data/schema.d.ts +21 -0
- package/ts/{shared → shared_clean}/schema/obj/transform_item.d.ts +1 -0
- package/ts/shared_clean/service_worker/scripts/index.d.ts +1 -0
- package/ts/{shared/service_worker/scripts/main.d.ts → shared_clean/service_worker/scripts/service_worker.d.ts} +5 -3
- package/ts/shared_clean/theme/scripts/index.d.ts +1 -0
- package/ts/shared_clean/theme/scripts/theme.d.ts +13 -0
- package/ts/shared_clean/title/scripts/index.d.ts +1 -0
- package/ts/shared_clean/title/scripts/title.d.ts +9 -0
- package/ts/shared_clean/utils/scripts/index.d.ts +1 -0
- package/ts/shared_clean/utils/scripts/utils.d.ts +13 -0
- package/ts/shared_clean/viewport/scripts/index.d.ts +1 -0
- package/ts/shared_clean/viewport/scripts/viewport.d.ts +10 -0
- package/ts/{shared → shared_clean}/x.d.ts +16 -4
- package/chunk-main.js +0 -22
- package/chunk-main2.js +0 -5
- package/chunk-main3.js +0 -5
- package/chunk-main4.js +0 -5
- package/index.d.ts +0 -3
- package/index.js +0 -5
- package/ts/announcement/scripts/display.d.ts +0 -6
- package/ts/announcement/scripts/index.d.ts +0 -1
- package/ts/error_modules/css/scripts/main.d.ts +0 -8
- package/ts/error_modules/error/data/main.d.ts +0 -11
- package/ts/settings/data/index.d.ts +0 -2
- package/ts/settings/developer_mode/data/main.d.ts +0 -13
- package/ts/settings/optional_permissions/data/main.d.ts +0 -12
- package/ts/settings/scripts/index.d.ts +0 -1
- package/ts/settings/scripts/theme.d.ts +0 -12
- package/ts/shared/css_vars/scripts/index.d.ts +0 -1
- package/ts/shared/functions.d.ts +0 -3
- package/ts/shared/header/scripts/index.d.ts +0 -1
- package/ts/shared/header/scripts/main.d.ts +0 -6
- package/ts/shared/no_tr/scripts/index.d.ts +0 -1
- package/ts/shared/no_tr/scripts/main.d.ts +0 -12
- package/ts/shared/schema/data/main.d.ts +0 -12
- package/ts/shared/service_worker/scripts/index.d.ts +0 -1
- package/ts/shared/settings/data/index.d.ts +0 -1
- package/ts/shared/settings/data/main.d.ts +0 -15
- package/ts/shared/theme/scripts/index.d.ts +0 -1
- package/ts/shared/theme/scripts/main.d.ts +0 -11
- package/ts/shared/title/scripts/main.d.ts +0 -6
- package/ts/shared/utils/scripts/index.d.ts +0 -1
- package/ts/shared/utils/scripts/main.d.ts +0 -11
- package/ts/shared/viewport/scripts/index.d.ts +0 -1
- package/ts/shared/viewport/scripts/main.d.ts +0 -8
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/error.d.ts +0 -0
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/error_obj.d.ts +0 -0
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/notification_type.d.ts +0 -0
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/observable_keys.d.ts +0 -0
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/show_unable_to_access_settings_error.d.ts +0 -0
- /package/ts/{error_modules → error_modules_clean}/error/interfaces/timeout_observable_keys.d.ts +0 -0
- /package/ts/{shared → error_modules_clean/error/scripts}/globals.d.ts +0 -0
- /package/ts/shared/{app_ext_globals.d.ts → data/data/data.d.ts} +0 -0
- /package/ts/{shared/data/data/main.d.ts → shared_clean/app_ext_globals.d.ts} +0 -0
- /package/ts/{inputs → shared_clean}/color/interfaces/color.d.ts +0 -0
- /package/ts/{shared → shared_clean}/data/interfaces/index.d.ts +0 -0
- /package/ts/{shared → shared_clean}/data/interfaces/val.d.ts +0 -0
- /package/ts/{shared → shared_clean}/schema/obj/index.d.ts +0 -0
- /package/ts/{shared → shared_clean}/t.d.ts +0 -0
- /package/ts/{shared → shared_clean}/vars.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { i_error } from '../../internal';
|
|
2
2
|
export interface ShowError extends i_error.Error {
|
|
3
3
|
error_msg_key?: string;
|
|
4
|
+
alt_msg?: string;
|
|
4
5
|
notification_type?: i_error.NotificationType;
|
|
5
6
|
hide_delay?: number;
|
|
6
7
|
silent?: boolean;
|
|
@@ -8,4 +9,6 @@ export interface ShowError extends i_error.Error {
|
|
|
8
9
|
exit?: boolean;
|
|
9
10
|
is_fullscreen?: boolean;
|
|
10
11
|
prevent_subsequent_errors?: boolean;
|
|
12
|
+
show_error_state_1?: i_error.ShowErrorState1F;
|
|
13
|
+
show_error_state_2?: i_error.ShowErrorState2F;
|
|
11
14
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { i_error } from '../../internal';
|
|
2
|
+
export interface ShowErrorState1 {
|
|
3
|
+
error_msg_key: string;
|
|
4
|
+
alt_msg: string;
|
|
5
|
+
notification_type: i_error.NotificationType;
|
|
6
|
+
hide_delay: number;
|
|
7
|
+
is_fullscreen: boolean;
|
|
8
|
+
error_ui_is_visible: boolean;
|
|
9
|
+
persistent_final: boolean;
|
|
10
|
+
prevent_subsequent_errors?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i_error } from '../../internal';
|
|
2
|
+
export type ShowErrorState1F = (error_obj: i_error.ErrorObj | undefined, { error_msg_key, alt_msg, notification_type, hide_delay, is_fullscreen, error_ui_is_visible, persistent_final, prevent_subsequent_errors, }: i_error.ShowErrorState1) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../error/scripts/globals';
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import { t } from '../../../
|
|
2
|
+
import { t, i_color as i_color_shared_clean } from '../../../shared_clean/internal';
|
|
3
3
|
import { o_color, i_color } from '../../internal';
|
|
4
|
-
|
|
5
|
-
private static
|
|
6
|
-
static
|
|
4
|
+
declare class Class {
|
|
5
|
+
private static instance;
|
|
6
|
+
static get_instance(): Class;
|
|
7
7
|
private constructor();
|
|
8
|
-
default_colors: i_color.Color[];
|
|
9
8
|
palette_color_amount: number;
|
|
10
|
-
previous_color:
|
|
9
|
+
previous_color: i_color_shared_clean.Color;
|
|
11
10
|
access: ({ input, i }: {
|
|
12
11
|
input: o_color.Color;
|
|
13
12
|
i: i_color.I;
|
|
14
13
|
}) => string;
|
|
15
14
|
access_from_val: ({ val }: {
|
|
16
|
-
val:
|
|
15
|
+
val: i_color_shared_clean.Color;
|
|
17
16
|
}) => string;
|
|
18
17
|
set: ({ input, i, color, }: {
|
|
19
18
|
input: o_color.Color;
|
|
20
19
|
i: i_color.I;
|
|
21
|
-
color:
|
|
20
|
+
color: i_color_shared_clean.Color;
|
|
22
21
|
}) => void;
|
|
23
22
|
save: ({ input, i, callback, }: {
|
|
24
23
|
input: o_color.Color;
|
|
@@ -48,7 +47,9 @@ export declare class Color {
|
|
|
48
47
|
}) => void;
|
|
49
48
|
restore_default_palette: ({ input, default_colors, }: {
|
|
50
49
|
input: o_color.Color;
|
|
51
|
-
default_colors?:
|
|
50
|
+
default_colors?: i_color_shared_clean.Color[];
|
|
52
51
|
}) => void;
|
|
53
52
|
reset_previous_vars: () => void;
|
|
54
53
|
}
|
|
54
|
+
export declare const Color: Class;
|
|
55
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MouseEvent, FocusEvent, KeyboardEvent } from 'react';
|
|
2
2
|
import { o_color, i_color } from '../../internal';
|
|
3
|
-
|
|
4
|
-
private static
|
|
5
|
-
static
|
|
3
|
+
declare class Class {
|
|
4
|
+
private static instance;
|
|
5
|
+
static get_instance(): Class;
|
|
6
6
|
private constructor();
|
|
7
7
|
visible_input: o_color.Color | undefined;
|
|
8
8
|
previously_visible_input: o_color.Color | undefined;
|
|
@@ -21,7 +21,7 @@ export declare class Visibility {
|
|
|
21
21
|
change_visibility: ({ input, i, color_picker_state, }: {
|
|
22
22
|
input: o_color.Color;
|
|
23
23
|
i: i_color.I;
|
|
24
|
-
color_picker_state:
|
|
24
|
+
color_picker_state: "is_initialized" | "is_visible";
|
|
25
25
|
}, e: MouseEvent | FocusEvent) => Promise<void>;
|
|
26
26
|
hide_main_and_palette: ({ input }: {
|
|
27
27
|
input: o_color.Color;
|
|
@@ -36,3 +36,5 @@ export declare class Visibility {
|
|
|
36
36
|
}) => void;
|
|
37
37
|
hide_color_help_tr_end: () => void;
|
|
38
38
|
}
|
|
39
|
+
export declare const Visibility: Class;
|
|
40
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t } from '../../../
|
|
1
|
+
import { t } from '../../../shared_clean/internal';
|
|
2
2
|
import { o_color, i_color } from '../../internal';
|
|
3
|
-
|
|
4
|
-
private static
|
|
5
|
-
static
|
|
3
|
+
declare class Class {
|
|
4
|
+
private static instance;
|
|
5
|
+
static get_instance(): Class;
|
|
6
6
|
private constructor();
|
|
7
7
|
setting_color: boolean;
|
|
8
8
|
init: ({ input, i, color_picker, visualization, }: {
|
|
@@ -18,3 +18,5 @@ export declare class ColorPicker {
|
|
|
18
18
|
i: i_color.I;
|
|
19
19
|
}) => Promise<void>;
|
|
20
20
|
}
|
|
21
|
+
export declare const ColorPicker: Class;
|
|
22
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
private static
|
|
3
|
-
static
|
|
1
|
+
declare class Class {
|
|
2
|
+
private static instance;
|
|
3
|
+
static get_instance(): Class;
|
|
4
4
|
private constructor();
|
|
5
5
|
private gap_between_visualization_and_color_picker;
|
|
6
6
|
set: () => void;
|
|
7
7
|
}
|
|
8
|
+
export declare const Position: Class;
|
|
9
|
+
export {};
|
package/ts/inputs/data/help.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o_inputs, i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
6
|
change_visibility: ({ section_or_input, }: {
|
|
7
7
|
section_or_input: o_inputs.Section | i_inputs.Input;
|
|
@@ -13,3 +13,5 @@ export declare class Help {
|
|
|
13
13
|
section_or_input: o_inputs.Section | i_inputs.Input;
|
|
14
14
|
}) => string | undefined) | undefined;
|
|
15
15
|
}
|
|
16
|
+
export declare const Help: Class;
|
|
17
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from '../data/help';
|
|
2
2
|
export * from '../data/input_error';
|
|
3
3
|
export * from '../data/input_width';
|
|
4
|
-
export * from '../data/
|
|
4
|
+
export * from '../data/label_in_input_item';
|
|
5
5
|
export * from '../data/nested_input';
|
|
6
|
-
export * from '../data/val';
|
|
7
6
|
export * from '../data/text';
|
|
8
7
|
export * from '../data/upload_box';
|
|
8
|
+
export * from '../data/val';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private input_error_is_visible;
|
|
6
|
-
input_error_visibility_cls: (this:
|
|
6
|
+
input_error_visibility_cls: (this: Class, { input, }: {
|
|
7
7
|
input: i_inputs.Input;
|
|
8
8
|
}) => string;
|
|
9
9
|
input_error: ({ input }: {
|
|
10
10
|
input: i_inputs.Input;
|
|
11
11
|
}) => string;
|
|
12
12
|
}
|
|
13
|
+
export declare const InputError: Class;
|
|
14
|
+
export {};
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
|
-
width:
|
|
7
|
-
private max_width;
|
|
6
|
+
width: number;
|
|
8
7
|
private min_width;
|
|
9
|
-
private
|
|
8
|
+
private max_width;
|
|
9
|
+
max_width_ob: Record<string, string | undefined>;
|
|
10
|
+
private old_width;
|
|
11
|
+
width_style?: ((this: Class, { input, input_w, calculate_width, }: {
|
|
12
|
+
input: i_inputs.Input;
|
|
13
|
+
input_w?: HTMLElement | undefined;
|
|
14
|
+
calculate_width?: boolean;
|
|
15
|
+
}) => string) | undefined;
|
|
10
16
|
calculate_width_cls: ({ calculate_width }: {
|
|
11
17
|
calculate_width: boolean;
|
|
12
18
|
}) => string;
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
set_min_and_max_width: ({ min_width }?: {
|
|
20
|
+
min_width?: number;
|
|
21
|
+
}) => void;
|
|
22
|
+
calculate: () => Promise<void>;
|
|
23
|
+
resize_textarea_with_resize_handle: ({ input, textarea, }: {
|
|
15
24
|
input: i_inputs.Input;
|
|
16
|
-
|
|
17
|
-
}) =>
|
|
18
|
-
calculate_for_section: ({ section_name }: {
|
|
19
|
-
section_name: string;
|
|
20
|
-
}) => Promise<void>;
|
|
21
|
-
calculate_for_all_sections: ({ sections, all_sections_inputs_equal_width, }: {
|
|
22
|
-
sections: i_inputs.Sections;
|
|
23
|
-
all_sections_inputs_equal_width?: boolean | undefined;
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
set_max_width: () => void;
|
|
25
|
+
textarea: HTMLTextAreaElement | null;
|
|
26
|
+
}) => void;
|
|
26
27
|
}
|
|
28
|
+
export declare const InputWidth: Class;
|
|
29
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
6
|
msg?: (({ input }: {
|
|
7
7
|
input: i_inputs.Input;
|
|
8
8
|
}) => string | undefined) | undefined;
|
|
9
9
|
}
|
|
10
|
+
export declare const LabelInInputItem: Class;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
constructor();
|
|
6
6
|
calculate_offset: ({ input }: {
|
|
7
7
|
input: i_inputs.Input;
|
|
@@ -9,10 +9,12 @@ export declare class NestedInput {
|
|
|
9
9
|
set_parent_disbled_vals: ({ input, sections, set_to_all_sections, }: {
|
|
10
10
|
input: i_inputs.Input;
|
|
11
11
|
sections: i_inputs.Sections;
|
|
12
|
-
set_to_all_sections?: boolean
|
|
12
|
+
set_to_all_sections?: boolean;
|
|
13
13
|
}) => void;
|
|
14
14
|
set_all_parents_disbled_vals: ({ sections, set_to_all_sections, }: {
|
|
15
15
|
sections: i_inputs.Sections;
|
|
16
|
-
set_to_all_sections?: boolean
|
|
16
|
+
set_to_all_sections?: boolean;
|
|
17
17
|
}) => void;
|
|
18
18
|
}
|
|
19
|
+
export declare const NestedInput: Class;
|
|
20
|
+
export {};
|
package/ts/inputs/data/text.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o_inputs, i_inputs } from '../internal';
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
6
|
private set_placeholder_text;
|
|
7
7
|
clear_placeholder_text: ({ input }: {
|
|
@@ -19,3 +19,5 @@ export declare class Text {
|
|
|
19
19
|
input_el: HTMLInputElement | undefined;
|
|
20
20
|
}) => Promise<void>;
|
|
21
21
|
}
|
|
22
|
+
export declare const Text: Class;
|
|
23
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { o_inputs } from '../internal';
|
|
3
|
-
|
|
4
|
-
private static
|
|
5
|
-
static
|
|
3
|
+
declare class Class {
|
|
4
|
+
private static instance;
|
|
5
|
+
static get_instance(): Class;
|
|
6
6
|
constructor();
|
|
7
7
|
trigger_click_on_file_input: ({ file_input, }: {
|
|
8
8
|
file_input: HTMLInputElement | null;
|
|
9
9
|
}) => void;
|
|
10
10
|
upload_files: (e: ChangeEvent | DragEvent, { input, file_input, }: {
|
|
11
11
|
input: o_inputs.UploadBox;
|
|
12
|
-
file_input?: HTMLInputElement | null
|
|
12
|
+
file_input?: HTMLInputElement | null;
|
|
13
13
|
}) => Promise<void>;
|
|
14
14
|
highlight: ({ input }: {
|
|
15
15
|
input: o_inputs.UploadBox;
|
|
@@ -22,3 +22,5 @@ export declare class UploadBox {
|
|
|
22
22
|
files: FileList | null;
|
|
23
23
|
}) => void;
|
|
24
24
|
}
|
|
25
|
+
export declare const UploadBox: Class;
|
|
26
|
+
export {};
|
package/ts/inputs/data/val.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SyntheticEvent, FormEvent } from 'react';
|
|
2
|
-
import { i_data } from '../../
|
|
2
|
+
import { i_data } from '../../shared_clean/internal';
|
|
3
3
|
import { i_inputs } from '../internal';
|
|
4
|
-
|
|
5
|
-
private static
|
|
6
|
-
static
|
|
4
|
+
declare class Class {
|
|
5
|
+
private static instance;
|
|
6
|
+
static get_instance(): Class;
|
|
7
7
|
private constructor();
|
|
8
8
|
set_focus_state: ({ input, state }: {
|
|
9
9
|
input: i_inputs.Input;
|
|
@@ -39,3 +39,5 @@ export declare class Val {
|
|
|
39
39
|
input: i_inputs.Input;
|
|
40
40
|
}, e: FormEvent) => Promise<void>;
|
|
41
41
|
}
|
|
42
|
+
export declare const Val: Class;
|
|
43
|
+
export {};
|
package/ts/inputs/obj/file.d.ts
CHANGED
package/ts/inputs/obj/link.d.ts
CHANGED
package/ts/inputs/obj/text.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { o_inputs, i_inputs } from '../internal';
|
|
3
2
|
export declare const resolve: ({ input, calculate_width, include_label, }: {
|
|
4
3
|
input: i_inputs.Input | o_inputs.Link;
|
|
5
|
-
calculate_width?: boolean
|
|
6
|
-
include_label?: boolean
|
|
4
|
+
calculate_width?: boolean;
|
|
5
|
+
include_label?: boolean;
|
|
7
6
|
}) => JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
private static
|
|
3
|
-
static
|
|
1
|
+
declare class Class {
|
|
2
|
+
private static instance;
|
|
3
|
+
static get_instance(): Class;
|
|
4
4
|
private constructor();
|
|
5
5
|
trigger_click_on_file_input: ({ file_input, }: {
|
|
6
6
|
file_input: HTMLInputElement | null;
|
|
7
7
|
}) => void;
|
|
8
8
|
}
|
|
9
|
+
export declare const UploadBox: Class;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t } from '../../../shared_clean/internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
|
+
private constructor();
|
|
6
|
+
private click_count;
|
|
7
|
+
private click_timeout;
|
|
8
|
+
enable: ({ save_callback }: {
|
|
9
|
+
save_callback: t.CallbackVoid;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
private increment_click_count;
|
|
12
|
+
private reset_click_count;
|
|
13
|
+
}
|
|
14
|
+
export declare const DeveloperMode: Class;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../../developer_mode/data/
|
|
1
|
+
export * from '../../developer_mode/data/developer_mode';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './init';
|
|
2
2
|
export * as c_settings from './components';
|
|
3
|
-
export * as d_settings from './data';
|
|
4
3
|
export * as d_developer_mode from './developer_mode/data';
|
|
5
4
|
export * as d_optional_permissions from './optional_permissions/data';
|
|
6
|
-
export * as
|
|
5
|
+
export * as d_sections from './sections/data';
|
|
6
|
+
export * as s_sections from './sections/scripts';
|
|
7
7
|
export * as p_settings from './components/prop_types';
|
|
8
8
|
export * as i_optional_permissions from './optional_permissions/interfaces';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../../optional_permissions/data/
|
|
1
|
+
export * from '../../optional_permissions/data/permission';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i_optional_permissions } from '../../internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
|
+
private constructor();
|
|
6
|
+
set: ({ name, optional_permission_checkbox_dict, set_checkbox_val, }: {
|
|
7
|
+
name: string;
|
|
8
|
+
optional_permission_checkbox_dict: i_optional_permissions.OptionalPermissionCheckboxDict;
|
|
9
|
+
set_checkbox_val?: boolean;
|
|
10
|
+
}) => Promise<boolean>;
|
|
11
|
+
private set_checkbox_val;
|
|
12
|
+
show_enable_permissions_notification: ({ permissions, }: {
|
|
13
|
+
permissions: i_optional_permissions.ShowEnablePermissionsNotificationPermission[];
|
|
14
|
+
}) => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Permission: Class;
|
|
17
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import { t } from '
|
|
3
|
-
import { o_inputs } from '
|
|
4
|
-
|
|
5
|
-
private static
|
|
6
|
-
static
|
|
2
|
+
import { t } from '../../../shared_clean/internal';
|
|
3
|
+
import { o_inputs } from '../../../inputs/internal';
|
|
4
|
+
declare class Class {
|
|
5
|
+
private static instance;
|
|
6
|
+
static get_instance(): Class;
|
|
7
7
|
private constructor();
|
|
8
8
|
download: ({ data_obj, part_i, }: {
|
|
9
9
|
data_obj: t.AnyRecord | string;
|
|
10
|
-
part_i: number |
|
|
10
|
+
part_i: number | "none";
|
|
11
11
|
}) => void;
|
|
12
12
|
open_file_browser: () => void;
|
|
13
13
|
upload: ({ input, }: {
|
|
@@ -15,3 +15,5 @@ export declare class BackUp {
|
|
|
15
15
|
}, e: ChangeEvent) => Promise<void>;
|
|
16
16
|
private read;
|
|
17
17
|
}
|
|
18
|
+
export declare const BackUp: Class;
|
|
19
|
+
export {};
|