@loftyshaky/shared 1.10.0 → 2.0.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 +11 -8
- package/_locales/ru/messages.json +7 -7
- 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-pickr.min.js +1 -1
- package/chunk-title.js +14 -0
- package/chunk-viewport.js +5 -0
- package/dependencies.js +1 -1
- 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 +7 -1
- package/js/dependencies.js +4 -0
- package/js/webpack.config.js +2 -0
- package/package.json +1 -1
- package/scss/shared/help.scss +4 -0
- package/scss/shared/selects.scss +22 -16
- 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/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 +6 -4
- 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 +2 -0
- package/ts/error_modules_clean/error/interfaces/show_error_state_1.d.ts +10 -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 +5 -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 +5 -3
- 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/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 +7 -5
- 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 +5 -3
- package/ts/inputs/data/text.d.ts +5 -3
- package/ts/inputs/data/upload_box.d.ts +5 -3
- package/ts/inputs/data/val.d.ts +6 -4
- package/ts/inputs/interfaces/btn_option.d.ts +1 -1
- package/ts/inputs/interfaces/state_cond.d.ts +1 -0
- 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 +4 -1
- 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 +14 -0
- package/ts/settings/{data → settings/data}/back_up.d.ts +7 -5
- package/ts/settings/settings/data/index.d.ts +2 -0
- package/ts/settings/{data → settings/data}/sections.d.ts +9 -7
- package/ts/settings/settings/scripts/index.d.ts +1 -0
- package/ts/settings/settings/scripts/theme.d.ts +14 -0
- package/ts/shared/data/data/index.d.ts +1 -1
- package/ts/shared/internal.d.ts +0 -16
- 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 +12 -0
- package/ts/shared/settings/data/index.d.ts +1 -1
- package/ts/shared/settings/data/settings.d.ts +12 -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} +5 -3
- 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 -1
- package/ts/shared/tr/data/transition.d.ts +7 -4
- 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} +5 -3
- 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 +1 -0
- package/ts/shared_clean/data/scripts/cache.d.ts +13 -0
- package/ts/shared_clean/data/scripts/index.d.ts +1 -0
- package/ts/{shared → shared_clean}/ext.d.ts +5 -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/no_tr/scripts/main.d.ts → shared_clean/no_tr/scripts/state.d.ts} +5 -3
- package/ts/shared_clean/schema/data/index.d.ts +1 -0
- package/ts/shared_clean/schema/data/schema.d.ts +17 -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_clean/service_worker/scripts/service_worker.d.ts +13 -0
- package/ts/shared_clean/settings/data/index.d.ts +1 -0
- package/ts/shared_clean/settings/data/settings.d.ts +21 -0
- package/ts/shared_clean/theme/scripts/index.d.ts +1 -0
- package/ts/{shared/theme/scripts/main.d.ts → shared_clean/theme/scripts/theme.d.ts} +5 -3
- 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/utils/scripts/main.d.ts → shared_clean/utils/scripts/utils.d.ts} +5 -3
- 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 +5 -3
- 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 -11
- 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/schema/data/main.d.ts +0 -12
- package/ts/shared/service_worker/scripts/index.d.ts +0 -1
- package/ts/shared/service_worker/scripts/main.d.ts +0 -9
- package/ts/shared/settings/data/main.d.ts +0 -15
- package/ts/shared/theme/scripts/index.d.ts +0 -1
- package/ts/shared/title/scripts/main.d.ts +0 -6
- package/ts/shared/utils/scripts/index.d.ts +0 -1
- 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
package/shared.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
"use strict";var viewport=require("./chunk-viewport.js"),error=require("./chunk-error.js"),title=require("./chunk-title.js"),React=require("react"),index$e=require("./chunk-index.js");require("react-dom");const Flash=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get_flash_server_text=()=>err((()=>{const flash_server_els=sa(".flash_server");if(n(flash_server_els)){const defined_flash_server_el=[...flash_server_els].find((flash_server_el=>{if(n(flash_server_el)&&n(flash_server_el.textContent)){if("undefined"!==flash_server_el.textContent)return!0}return!1}));return n(defined_flash_server_el)&&n(defined_flash_server_el.textContent)?defined_flash_server_el.textContent:void 0}}),"shr_1246"),this.turn_flash_server_text_into_arr=()=>err((()=>{const flash_server_el_text=this.get_flash_server_text();if(flash_server_el_text)return flash_server_el_text.split(":")}),"shr_1250"),this.get_flash_msg_key=()=>err((()=>{const flash_server_arr=this.turn_flash_server_text_into_arr();if(n(flash_server_arr))return flash_server_arr[0]}),"shr_1249"),this.get_flash_type=()=>err((()=>{const flash_server_arr=this.turn_flash_server_text_into_arr();return n(flash_server_arr)&&n(flash_server_arr[1])&&"-"!==flash_server_arr[1]?flash_server_arr[1]:"neutral"}),"shr_1249"),this.get_flash_hide_delay=()=>err((()=>{const flash_server_arr=this.turn_flash_server_text_into_arr();return n(flash_server_arr)&&n(flash_server_arr[2])&&"-"!==flash_server_arr[2]?+flash_server_arr[2]:5e3}),"shr_1249"),this.show=()=>err((()=>{const flash_msg_key=this.get_flash_msg_key(),flash_type=this.get_flash_type(),flash_hide_delay=this.get_flash_hide_delay();n(flash_msg_key)&&show_notification({error_msg_key:flash_msg_key,notification_type:flash_type,hide_delay:flash_hide_delay})}),"shr_1252")}}.get_instance();var index$d=Object.freeze({__proto__:null,Body:title.Body}),index$c=Object.freeze({__proto__:null,Body:title.Body$1}),index$b=Object.freeze({__proto__:null,BaseTr:title.BaseTr}),index$a=Object.freeze({__proto__:null,Transition:title.Transition}),index$9=Object.freeze({__proto__:null,Visibility:title.Visibility}),index$8=Object.freeze({__proto__:null,Offers:title.Offers}),index$7=Object.freeze({__proto__:null,Schema:title.Schema}),index$6=Object.freeze({__proto__:null,Settings:viewport.Settings}),index$5=Object.freeze({__proto__:null,Roots:title.Roots,Tr:title.Tr}),index$4=Object.freeze({__proto__:null,TabIndex:title.TabIndex}),index$3=Object.freeze({__proto__:null,Title:title.Title});const Body$1=title.observer(class extends React.Component{static getDerivedStateFromError(){Visibility.show_reload_ui_screen()}componentDidCatch(err_obj){show_err_ribbon(err_obj,"shr_1000",{error_msg_key:"cant_render_ui"})}render(){if(Visibility.page_is_crashed)return React.createElement("div",{className:"reload_ui_btn_w"},React.createElement("button",{className:x.cls(["btn","reload_ui"]),type:"button",onClick:Page.reload},ext.msg("reload_ui_btn_text")));const{children:children}=this.props;return children}});var index$2=Object.freeze({__proto__:null,Body:Body$1});const Body=title.observer((props=>{const{app_id:app_id,on_render:on_render}=props;return React.useEffect((()=>{Css.load({app_id:app_id}),on_render()}),[app_id,on_render]),React.createElement("div",{className:x.cls(["main","error",State.is_highlighted_cls,State.notification_type,State.is_fullscreen_cls]),role:"none",style:{display:State.is_visible_style},onMouseDown:State.clear_all_reset_state_timeouts},React.createElement(Progress$1,null),React.createElement("div",{className:"body"},React.createElement("div",{className:"top_stuff"},React.createElement("span",{className:"ext_name_and_keep_visible_msg"},React.createElement(ExtName,null),React.createElement(KeepVisibleMsg,null)),State.is_fullscreen?void 0:React.createElement(CloseBtn,null)),React.createElement(Msg$1,null)))})),CloseBtn=title.observer((()=>React.createElement("button",{className:"close_btn",type:"button","aria-label":"Close",onMouseDown:()=>State.change_state({observable_key:"is_visible",state:!1}),onClick:()=>State.change_state({observable_key:"is_visible",state:!1}),onKeyDown:title.TabIndex.simulate_click_on_enter},React.createElement(title.svg.Close,null)))),ExtName=()=>React.createElement("div",{className:"ext_name"},ext.msg("name")," ",React.createElement(title.Body,null)),KeepVisibleMsg=title.observer((()=>React.createElement("div",{className:x.cls(["keep_visible_msg",Progress.progress_bar_is_visible_cls])},ext.msg("error_keep_visible_msg_text")))),Msg$1=title.observer((()=>React.createElement("div",{className:"msg"},Msg.basic_msg,"error"===State.notification_type?React.createElement(React.Fragment,null,React.createElement("button",{type:"button",className:x.cls(["more_info_btn",Msg.more_info_btn_is_visible_cls]),onClick:()=>Msg.change_visibility_of_advanced_msg({is_visible:!0})},ext.msg("error_more_info_btn_text")),React.createElement("div",{className:Msg.advanced_msg_is_visible_cls},Msg.advanced_msg)):void 0))),Progress$1=title.observer((()=>React.createElement("progress",{className:x.cls(["progress",Progress.progress_bar_is_visible_cls]),max:Progress.progress_max,value:Progress.progress_val})));var index$1=Object.freeze({__proto__:null,Body:Body,CloseBtn:CloseBtn,ExtName:ExtName,KeepVisibleMsg:KeepVisibleMsg,Msg:Msg$1,Progress:Progress$1});const Visibility=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.page_is_crashed=!1,this.show_reload_ui_screen=()=>{this.page_is_crashed=!0},title.makeObservable(this,{page_is_crashed:title.observable,show_reload_ui_screen:title.action})}}.get_instance();var index=Object.freeze({__proto__:null,Visibility:Visibility});const Error=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.highlight_time=300,this.show=(error_obj,error_code,{error_msg_key:error_msg_key="",notification_type:notification_type="error",hide_delay:hide_delay=error.Error.hide_delay,silent:silent=!1,persistent:persistent=!1,exit:exit=!1,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1}={})=>{error.Error.show(error_obj,error_code,{error_msg_key:error_msg_key,notification_type:notification_type,hide_delay:hide_delay,silent:silent,persistent:persistent,exit:exit,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors,show_error_state_1:this.show_error_state_1,show_error_state_2:this.show_error_state_2})},this.show_error_state_1=(error_obj,{error_msg_key:error_msg_key,notification_type:notification_type,hide_delay:hide_delay,is_fullscreen:is_fullscreen,error_ui_is_visible:error_ui_is_visible,persistent_final:persistent_final})=>{error_ui_is_visible&&("error"!==notification_type&&(Msg.basic_msg=ext.msg(error_msg_key),State.notification_type=notification_type),is_fullscreen&&State.change_state({observable_key:"is_fullscreen",state:!0}),State.change_state({observable_key:"is_visible",state:!0}),is_fullscreen||State.change_state({observable_key:"is_highlighted",state:!0}),State.clear_all_reset_state_timeouts(),error_obj&&error_obj.persistent||persistent_final||State.run_reset_state_timeout({observable_key:"is_visible",delay:hide_delay+this.highlight_time}),State.run_reset_state_timeout({observable_key:"is_highlighted",delay:this.highlight_time}))},this.show_error_state_2=(error_obj,error_code,{error_msg_key:error_msg_key,error_ui_is_visible:error_ui_is_visible,silent_final:silent_final})=>{if(error_obj&&error_code){error_ui_is_visible&&Msg.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}`:"";title.runInAction((()=>err((()=>{silent_final||(Msg.basic_msg=`${ext.msg("an_error_occured_msg")+error_msg_final}`,Msg.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")))}},this.output=(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)},title.makeObservable(this,{show:title.action})}}.get_instance();const Msg=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.advanced_msg_is_visible=!1,this.basic_msg="",this.advanced_msg="",this.change_visibility_of_advanced_msg=({is_visible:is_visible})=>{this.advanced_msg_is_visible=is_visible},title.makeObservable(this,{advanced_msg_is_visible:title.observable,basic_msg:title.observable,advanced_msg:title.observable,advanced_msg_is_visible_cls:title.computed,more_info_btn_is_visible_cls:title.computed,change_visibility_of_advanced_msg:title.action})}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_instance();const Progress=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.progress_max=100,this.progress_val=100,this.timestamp_progress_begin=0,this.error_hide_delay=0,this.begin_progress=({error_hide_delay:error_hide_delay})=>{this.error_hide_delay=error_hide_delay,this.timestamp_progress_begin=Date.now(),this.progress_val=0},this.increment_progress=()=>{const progress_percentage=x.percentage(Date.now()-this.timestamp_progress_begin,this.error_hide_delay);this.progress_val=progress_percentage},this.hide_progress=()=>{clearTimeout(this.progress_timeout),this.progress_val=this.progress_max},this.update_progress_autorun=()=>{title.autorun((()=>{this.progress_val>=this.progress_max||(this.progress_timeout=setTimeout((()=>{this.increment_progress()}),10))}))},title.makeObservable(this,{progress_val:title.observable,progress_bar_is_visible_cls:title.computed,begin_progress:title.action,increment_progress:title.action,hide_progress:title.action})}get progress_bar_is_visible_cls(){return this.progress_val>=this.progress_max?"none":""}}.get_instance();const State=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.is_loaded=!1,this.is_visible=!1,this.is_highlighted=!1,this.is_fullscreen=!1,this.notification_type="error",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),"is_visible"===observable_key&&Progress.begin_progress({error_hide_delay: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),Progress.hide_progress())},title.makeObservable(this,{is_loaded:title.observable,is_visible:title.observable,is_highlighted:title.observable,is_fullscreen:title.observable,notification_type:title.observable,is_visible_style:title.computed,is_highlighted_cls:title.computed,change_state:title.action,run_reset_state_timeout:title.action})}get is_visible_style(){return this.is_loaded&&this.is_visible?"":"none"}get is_highlighted_cls(){return this.is_highlighted?"is_highlighted":""}get is_fullscreen_cls(){return this.is_fullscreen?"fullscreen":""}}.get_instance();const Page=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.reload=()=>{globalThis.location.reload()}}}.get_instance();const Css=class{static get_instance(){return this.instance||(this.instance=new this)}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.change_state({observable_key:"is_loaded",state:!0})}))}}}}}.get_instance();globalThis.show_err_ribbon=(error_obj,error_code,{error_msg_key:error_msg_key="",notification_type:notification_type="error",hide_delay:hide_delay=error.Error.hide_delay,silent:silent=!1,persistent:persistent=!1,exit:exit=!1,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1}={})=>Error.show(error_obj,error_code,{error_msg_key:error_msg_key,notification_type:notification_type,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors}),globalThis.show_flash=Flash.show,globalThis.show_notification=({error_msg_key:error_msg_key="",notification_type:notification_type="neutral",hide_delay:hide_delay=error.Error.hide_delay,persistent:persistent=!1,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1}={})=>{Notification.show({error_msg_key:error_msg_key,notification_type:notification_type,hide_delay:hide_delay,persistent:persistent,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors})},globalThis.show_unable_to_access_settings_error=({is_fullscreen:is_fullscreen=!0,settings:settings,provided_settings:provided_settings=!1}={})=>{Notification.show_unable_to_access_settings_error({is_fullscreen:is_fullscreen,settings:settings,provided_settings:provided_settings})},globalThis.err=(f,error_code,{error_msg_key:error_msg_key="",silent:silent=!1,persistent:persistent=!1,exit:exit=!1,hide_delay:hide_delay=error.Error.hide_delay,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1}={})=>{try{return f()}catch(error_obj){Error.show(error_obj,error_code,{error_msg_key:error_msg_key,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors})}},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=error.Error.hide_delay,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1}={})=>viewport.__awaiter(void 0,void 0,void 0,(function*(){try{return yield f()}catch(error_obj){Error.show(error_obj,error_code,{error_msg_key:error_msg_key,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors})}}));const Notification=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.show=({error_msg_key:error_msg_key="",notification_type:notification_type="neutral",hide_delay:hide_delay=error.Error.hide_delay,persistent:persistent=!1,is_fullscreen:is_fullscreen=!1,prevent_subsequent_errors:prevent_subsequent_errors=!1})=>err((()=>{show_err_ribbon(void 0,void 0,{error_msg_key:error_msg_key,notification_type:notification_type,hide_delay:hide_delay,persistent:persistent,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors})}),"shr_1253"),this.show_unable_to_access_settings_error=({is_fullscreen:is_fullscreen=!0,settings:settings,provided_settings:provided_settings=!1}={})=>viewport.__awaiter(this,void 0,void 0,(function*(){const settings_final=provided_settings?settings:yield ext.storage_get();n(settings_final)&&!viewport.isEmpty(settings_final)||show_notification({error_msg_key:"unable_to_access_settings_error",notification_type:"negative",is_fullscreen:is_fullscreen,prevent_subsequent_errors:!0})}))}}.get_instance();Progress.update_progress_autorun(),exports.X=viewport.X,exports.prevent_default=viewport.prevent_default,exports.stop_propagation=viewport.stop_propagation,exports.i_color=index$e.index$9,exports.i_data=index$e.index$10,exports.o_schema=index$e.index,exports.s_color=index$e.index$1,exports.s_css_vars=index$e.index$2,exports.s_data=index$e.index$3,exports.s_no_tr=index$e.index$4,exports.s_service_worker=index$e.index$5,exports.s_theme=index$e.index$6,exports.s_utils=index$e.index$7,exports.s_viewport=index$e.index$8,exports.t=index$e.t,exports.vars=index$e.vars,exports.c_app_version=index$d,exports.c_crash_handler=index$2,exports.c_error=index$1,exports.c_loading_screen=index$c,exports.c_tr=index$b,exports.d_crash_handler=index,exports.d_loading_screen=index$9,exports.d_offers=index$8,exports.d_schema=index$7,exports.d_settings=index$6,exports.init_shared=()=>err((()=>{err((()=>{title.Sections.init_options(),title.Offers.set_offers()}),"shr_1087")}),"shr_1112"),exports.o_tr=index$a,exports.s_loading_screen=index$5,exports.s_tab_index=index$4,exports.s_title=index$3;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import './ts/error_modules_clean/error/scripts';
|
|
2
|
+
export { X, t, vars, prevent_default, stop_propagation, run_in_action_placeholder, o_schema, d_settings, s_announcement, s_color, s_css_vars, s_data, s_no_tr, d_schema, s_service_worker, s_theme, s_title, s_utils, s_viewport, i_color, i_data, } from './ts/shared_clean/internal';
|
package/shared_clean.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
"use strict";require("./chunk-error.js");var viewport=require("./chunk-viewport.js"),index$4=require("./chunk-index.js"),index$3=Object.freeze({__proto__:null,Schema:viewport.Schema}),index$2=Object.freeze({__proto__:null,Settings:viewport.Settings}),index$1=Object.freeze({__proto__:null,Visibility:viewport.Visibility}),index=Object.freeze({__proto__:null,Title:viewport.Title});exports.X=viewport.X,exports.prevent_default=viewport.prevent_default,exports.run_in_action_placeholder=viewport.run_in_action_placeholder,exports.stop_propagation=viewport.stop_propagation,exports.i_color=index$4.index$9,exports.i_data=index$4.index$10,exports.o_schema=index$4.index,exports.s_color=index$4.index$1,exports.s_css_vars=index$4.index$2,exports.s_data=index$4.index$3,exports.s_no_tr=index$4.index$4,exports.s_service_worker=index$4.index$5,exports.s_theme=index$4.index$6,exports.s_utils=index$4.index$7,exports.s_viewport=index$4.index$8,exports.t=index$4.t,exports.vars=index$4.vars,exports.d_schema=index$3,exports.d_settings=index$2,exports.s_announcement=index$1,exports.s_title=index;
|
|
@@ -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
|
dependencies_text: string;
|
|
6
6
|
generate_dependencies_text_from_depengencies_json: () => Promise<void>;
|
|
7
7
|
}
|
|
8
|
+
export declare const Dependencies: Class;
|
|
9
|
+
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
|
page_is_crashed: boolean;
|
|
6
6
|
show_reload_ui_screen: () => void;
|
|
7
7
|
}
|
|
8
|
+
export declare const Visibility: Class;
|
|
9
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../../css/scripts/
|
|
1
|
+
export * from '../../css/scripts/css';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { i_error } from '../../../error_modules_clean/internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
|
+
private constructor();
|
|
6
|
+
private highlight_time;
|
|
7
|
+
show: (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, notification_type, hide_delay, silent, persistent, exit, is_fullscreen, prevent_subsequent_errors, }?: i_error.ShowError) => void;
|
|
8
|
+
private show_error_state_1;
|
|
9
|
+
private show_error_state_2;
|
|
10
|
+
output: (error_obj: i_error.ErrorObj, error_code: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Error: Class;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 advanced_msg_is_visible;
|
|
6
6
|
basic_msg: string;
|
|
@@ -11,3 +11,5 @@ export declare class Msg {
|
|
|
11
11
|
is_visible: boolean;
|
|
12
12
|
}) => void;
|
|
13
13
|
}
|
|
14
|
+
export declare const Msg: Class;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
progress_max: number;
|
|
6
6
|
progress_val: number;
|
|
@@ -15,3 +15,5 @@ export declare class Progress {
|
|
|
15
15
|
hide_progress: () => void;
|
|
16
16
|
update_progress_autorun: () => void;
|
|
17
17
|
}
|
|
18
|
+
export declare const Progress: Class;
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i_error } from '
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
1
|
+
import { i_error } from '../../../error_modules_clean/internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
6
|
private is_loaded;
|
|
7
7
|
private is_visible;
|
|
@@ -23,3 +23,5 @@ export declare class State {
|
|
|
23
23
|
}) => void;
|
|
24
24
|
clear_all_reset_state_timeouts: () => void;
|
|
25
25
|
}
|
|
26
|
+
export declare const State: Class;
|
|
27
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 get_flash_server_text;
|
|
6
6
|
private turn_flash_server_text_into_arr;
|
|
@@ -9,3 +9,5 @@ export declare class Flash {
|
|
|
9
9
|
private get_flash_hide_delay;
|
|
10
10
|
show: () => void;
|
|
11
11
|
}
|
|
12
|
+
export declare const Flash: Class;
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { i_error } from '
|
|
2
|
-
|
|
3
|
-
private static
|
|
4
|
-
static
|
|
1
|
+
import { i_error } from '../../../error_modules_clean/internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
5
|
private constructor();
|
|
6
6
|
show: ({ error_msg_key, notification_type, hide_delay, persistent, is_fullscreen, prevent_subsequent_errors, }: i_error.ShowError) => void;
|
|
7
7
|
show_unable_to_access_settings_error: ({ is_fullscreen, settings, provided_settings, }?: i_error.ShowUnableToAccessSettingsError) => Promise<void>;
|
|
8
8
|
}
|
|
9
|
+
export declare const Notification: Class;
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '../shared/internal';
|
|
2
|
+
import '../error_modules_clean/error/scripts';
|
|
1
3
|
import './error/scripts';
|
|
2
4
|
export * as c_crash_handler from './crash_handler/components';
|
|
3
5
|
export * as c_error from './error/components';
|
|
@@ -8,4 +10,3 @@ export * as s_error from './error/scripts';
|
|
|
8
10
|
export * as s_css from './css/scripts';
|
|
9
11
|
export * as p_crash_handler from './crash_handler/components/prop_types';
|
|
10
12
|
export * as p_error from './error/components/prop_types';
|
|
11
|
-
export * as i_error from './error/interfaces';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { i_error } from '../../internal';
|
|
2
|
+
declare class Class {
|
|
3
|
+
private static instance;
|
|
4
|
+
static get_instance(): Class;
|
|
5
|
+
hide_delay: number;
|
|
6
|
+
private prevent_subsequent_errors;
|
|
7
|
+
show: (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, notification_type, hide_delay, silent, persistent, exit, is_fullscreen, prevent_subsequent_errors, show_error_state_1, show_error_state_2, }?: i_error.ShowError) => void;
|
|
8
|
+
output: (error_obj: i_error.ErrorObj, error_code: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Error: Class;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../error/data/error';
|
|
@@ -2,6 +2,10 @@ export * from '../../error/interfaces/error_obj';
|
|
|
2
2
|
export * from '../../error/interfaces/error';
|
|
3
3
|
export * from '../../error/interfaces/notification_type';
|
|
4
4
|
export * from '../../error/interfaces/observable_keys';
|
|
5
|
+
export * from '../../error/interfaces/show_error_state_1_f';
|
|
6
|
+
export * from '../../error/interfaces/show_error_state_1';
|
|
7
|
+
export * from '../../error/interfaces/show_error_state_2_f';
|
|
8
|
+
export * from '../../error/interfaces/show_error_state_2';
|
|
5
9
|
export * from '../../error/interfaces/show_error';
|
|
6
10
|
export * from '../../error/interfaces/show_unable_to_access_settings_error';
|
|
7
11
|
export * from '../../error/interfaces/timeout_observable_keys';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { i_error } from '../../internal';
|
|
2
|
+
export interface ShowErrorState1 {
|
|
3
|
+
error_msg_key: string;
|
|
4
|
+
notification_type: i_error.NotificationType;
|
|
5
|
+
hide_delay: number;
|
|
6
|
+
is_fullscreen: boolean;
|
|
7
|
+
error_ui_is_visible: boolean;
|
|
8
|
+
persistent_final: boolean;
|
|
9
|
+
prevent_subsequent_errors?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i_error } from '../../internal';
|
|
2
|
+
export type ShowErrorState1F = (error_obj: i_error.ErrorObj | undefined, { error_msg_key, 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[] | undefined;
|
|
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;
|
|
@@ -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,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
|
private constructor();
|
|
6
6
|
width: Record<string, string | undefined>;
|
|
7
7
|
private max_width;
|
|
@@ -10,8 +10,8 @@ export declare class InputWidth {
|
|
|
10
10
|
calculate_width_cls: ({ calculate_width }: {
|
|
11
11
|
calculate_width: boolean;
|
|
12
12
|
}) => string;
|
|
13
|
-
max_width_style?: ((this:
|
|
14
|
-
min_width_style?: ((this:
|
|
13
|
+
max_width_style?: ((this: Class) => number | string | undefined) | undefined;
|
|
14
|
+
min_width_style?: ((this: Class, { input, calculate_width, }: {
|
|
15
15
|
input: i_inputs.Input;
|
|
16
16
|
calculate_width?: boolean | undefined;
|
|
17
17
|
}) => number | string | undefined) | undefined;
|
|
@@ -24,3 +24,5 @@ export declare class InputWidth {
|
|
|
24
24
|
}) => Promise<void>;
|
|
25
25
|
set_max_width: () => void;
|
|
26
26
|
}
|
|
27
|
+
export declare const InputWidth: Class;
|
|
28
|
+
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;
|
|
@@ -16,3 +16,5 @@ export declare class NestedInput {
|
|
|
16
16
|
set_to_all_sections?: boolean | undefined;
|
|
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,8 +1,8 @@
|
|
|
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;
|
|
@@ -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 {};
|