@loftyshaky/shared-app 1.3.0 → 2.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.
Files changed (213) hide show
  1. package/_locales/en/messages.json +49 -28
  2. package/_locales/ru/messages.json +47 -29
  3. package/announcement.d.ts +1 -1
  4. package/announcement.js +1 -1
  5. package/app.d.ts +1 -1
  6. package/app.js +1 -1
  7. package/chunk-error.js +5 -0
  8. package/chunk-index.js +5 -0
  9. package/chunk-merge.js +5 -0
  10. package/chunk-pickr.min.js +1 -1
  11. package/chunk-title.js +14 -0
  12. package/chunk-viewport.js +5 -0
  13. package/dependencies.js +1 -1
  14. package/dependencies.txt +75 -87
  15. package/ext.d.ts +1 -1
  16. package/ext.js +1 -1
  17. package/globals.d.ts +17 -14
  18. package/inputs.js +1 -1
  19. package/js/apps.js +23 -4
  20. package/js/dependencies.js +4 -0
  21. package/js/projects_path.js +1 -1
  22. package/js/webpack.config.js +2 -0
  23. package/package.json +1 -1
  24. package/scss/settings/ext_version.scss +2 -2
  25. package/scss/settings/main.scss +2 -1
  26. package/scss/settings/sections.scss +1 -0
  27. package/scss/shared/btns.scss +15 -1
  28. package/scss/shared/checkboxes.scss +1 -0
  29. package/scss/shared/colors.scss +1 -1
  30. package/scss/shared/group.scss +10 -1
  31. package/scss/shared/help.scss +4 -0
  32. package/scss/shared/inputs.scss +2 -3
  33. package/scss/shared/main.scss +10 -0
  34. package/scss/shared/selects.scss +22 -16
  35. package/scss/shared/themes/general/template.scss +25 -25
  36. package/scss/shared/transitions.scss +1 -0
  37. package/settings.d.ts +1 -1
  38. package/settings.js +1 -1
  39. package/shared.d.ts +4 -0
  40. package/shared.js +5 -0
  41. package/shared_clean.d.ts +2 -0
  42. package/shared_clean.js +5 -0
  43. package/ts/announcement/internal.d.ts +0 -1
  44. package/ts/dependencies/scripts/dependencies.d.ts +5 -3
  45. package/ts/error_modules/crash_handler/components/body.d.ts +1 -1
  46. package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +0 -1
  47. package/ts/error_modules/crash_handler/data/visibility.d.ts +5 -3
  48. package/ts/error_modules/crash_handler/scripts/page.d.ts +5 -3
  49. package/ts/error_modules/css/scripts/css.d.ts +10 -0
  50. package/ts/error_modules/css/scripts/index.d.ts +1 -1
  51. package/ts/error_modules/error/components/prop_types/body.d.ts +1 -1
  52. package/ts/error_modules/error/data/error.d.ts +13 -0
  53. package/ts/error_modules/error/data/index.d.ts +1 -1
  54. package/ts/error_modules/error/data/msg.d.ts +5 -3
  55. package/ts/error_modules/error/data/progress.d.ts +5 -3
  56. package/ts/error_modules/error/data/state.d.ts +6 -4
  57. package/ts/error_modules/error/scripts/flash.d.ts +5 -3
  58. package/ts/error_modules/error/scripts/notification.d.ts +7 -5
  59. package/ts/error_modules/internal.d.ts +2 -1
  60. package/ts/error_modules_clean/error/data/error.d.ts +11 -0
  61. package/ts/error_modules_clean/error/data/index.d.ts +1 -0
  62. package/ts/{error_modules → error_modules_clean}/error/interfaces/index.d.ts +4 -0
  63. package/ts/{error_modules → error_modules_clean}/error/interfaces/show_error.d.ts +3 -0
  64. package/ts/error_modules_clean/error/interfaces/show_error_state_1.d.ts +11 -0
  65. package/ts/error_modules_clean/error/interfaces/show_error_state_1_f.d.ts +2 -0
  66. package/ts/error_modules_clean/error/interfaces/show_error_state_2.d.ts +6 -0
  67. package/ts/error_modules_clean/error/interfaces/show_error_state_2_f.d.ts +2 -0
  68. package/ts/error_modules_clean/error/scripts/index.d.ts +1 -0
  69. package/ts/error_modules_clean/internal.d.ts +4 -0
  70. package/ts/inputs/color/data/color.d.ts +10 -9
  71. package/ts/inputs/color/data/visibility.d.ts +6 -4
  72. package/ts/inputs/color/interfaces/index.d.ts +0 -1
  73. package/ts/inputs/color/obj/color.d.ts +1 -1
  74. package/ts/inputs/color/scripts/color_picker.d.ts +6 -4
  75. package/ts/inputs/color/scripts/position.d.ts +5 -3
  76. package/ts/inputs/components/prop_types/checkbox.d.ts +1 -0
  77. package/ts/inputs/components/prop_types/input_item.d.ts +0 -1
  78. package/ts/inputs/components/prop_types/section_btn.d.ts +1 -1
  79. package/ts/inputs/components/prop_types/text_btn.d.ts +1 -1
  80. package/ts/inputs/data/help.d.ts +5 -3
  81. package/ts/inputs/data/index.d.ts +2 -2
  82. package/ts/inputs/data/input_error.d.ts +6 -4
  83. package/ts/inputs/data/input_width.d.ts +21 -18
  84. package/ts/inputs/data/{labelIn_in_putI_iem.d.ts → label_in_input_item.d.ts} +5 -3
  85. package/ts/inputs/data/nested_input.d.ts +7 -5
  86. package/ts/inputs/data/text.d.ts +5 -3
  87. package/ts/inputs/data/upload_box.d.ts +6 -4
  88. package/ts/inputs/data/val.d.ts +6 -4
  89. package/ts/inputs/interfaces/btn_option.d.ts +1 -1
  90. package/ts/inputs/interfaces/state_cond.d.ts +1 -0
  91. package/ts/inputs/interfaces/text_btn.d.ts +1 -1
  92. package/ts/inputs/obj/file.d.ts +1 -1
  93. package/ts/inputs/obj/input_base.d.ts +1 -1
  94. package/ts/inputs/obj/link.d.ts +1 -1
  95. package/ts/inputs/obj/text.d.ts +4 -1
  96. package/ts/inputs/scripts/resolve.d.ts +2 -3
  97. package/ts/inputs/scripts/upload_box.d.ts +5 -3
  98. package/ts/settings/components/prop_types/body.d.ts +1 -1
  99. package/ts/settings/developer_mode/data/developer_mode.d.ts +15 -0
  100. package/ts/settings/developer_mode/data/index.d.ts +1 -1
  101. package/ts/settings/internal.d.ts +2 -2
  102. package/ts/settings/optional_permissions/data/index.d.ts +1 -1
  103. package/ts/settings/optional_permissions/data/permission.d.ts +17 -0
  104. package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
  105. package/ts/settings/optional_permissions/interfaces/show_enable_permissions_notification_permission.d.ts +7 -0
  106. package/ts/settings/{data → sections/data}/back_up.d.ts +8 -6
  107. package/ts/settings/sections/data/index.d.ts +2 -0
  108. package/ts/settings/{data → sections/data}/sections.d.ts +22 -20
  109. package/ts/settings/sections/scripts/index.d.ts +1 -0
  110. package/ts/settings/sections/scripts/theme.d.ts +14 -0
  111. package/ts/shared/data/data/cache.d.ts +15 -0
  112. package/ts/shared/data/data/index.d.ts +3 -1
  113. package/ts/shared/data/data/settings.d.ts +11 -0
  114. package/ts/shared/internal.d.ts +1 -17
  115. package/ts/shared/loading_screen/components/prop_types/body.d.ts +1 -1
  116. package/ts/shared/loading_screen/data/index.d.ts +1 -1
  117. package/ts/shared/loading_screen/data/{main.d.ts → visibility.d.ts} +5 -3
  118. package/ts/shared/loading_screen/scripts/roots.d.ts +5 -3
  119. package/ts/shared/loading_screen/scripts/tr.d.ts +5 -3
  120. package/ts/shared/offers/data/index.d.ts +1 -1
  121. package/ts/shared/offers/data/{main.d.ts → offers.d.ts} +5 -3
  122. package/ts/shared/offers/scripts/index.d.ts +1 -1
  123. package/ts/shared/offers/scripts/{main.d.ts → offers.d.ts} +5 -5
  124. package/ts/shared/schema/data/index.d.ts +1 -1
  125. package/ts/shared/schema/data/schema.d.ts +14 -0
  126. package/ts/shared/tab_index/scripts/index.d.ts +1 -1
  127. package/ts/shared/tab_index/scripts/{main.d.ts → tab_index.d.ts} +7 -5
  128. package/ts/shared/title/scripts/index.d.ts +1 -1
  129. package/ts/shared/title/scripts/title.d.ts +8 -0
  130. package/ts/shared/tr/components/prop_types/base_tr.d.ts +1 -2
  131. package/ts/shared/tr/data/transition.d.ts +9 -6
  132. package/ts/shared_clean/announcement/scripts/index.d.ts +1 -0
  133. package/ts/shared_clean/announcement/scripts/visibility.d.ts +8 -0
  134. package/ts/{shared → shared_clean}/app.d.ts +5 -3
  135. package/ts/shared_clean/color/interfaces/index.d.ts +1 -0
  136. package/ts/shared_clean/color/scripts/colors.d.ts +9 -0
  137. package/ts/shared_clean/color/scripts/index.d.ts +1 -0
  138. package/ts/{shared/css_vars/scripts/main.d.ts → shared_clean/css_vars/scripts/css_vars.d.ts} +6 -4
  139. package/ts/shared_clean/css_vars/scripts/index.d.ts +1 -0
  140. package/ts/shared_clean/data/data/data.d.ts +1 -0
  141. package/ts/shared_clean/data/data/index.d.ts +2 -0
  142. package/ts/shared_clean/data/data/settings.d.ts +16 -0
  143. package/ts/shared_clean/data/scripts/cache.d.ts +25 -0
  144. package/ts/shared_clean/data/scripts/index.d.ts +3 -0
  145. package/ts/shared_clean/data/scripts/settings.d.ts +12 -0
  146. package/ts/shared_clean/data/scripts/sync.d.ts +11 -0
  147. package/ts/{shared → shared_clean}/ext.d.ts +8 -3
  148. package/ts/shared_clean/functions.d.ts +4 -0
  149. package/ts/shared_clean/globals.d.ts +1 -0
  150. package/ts/shared_clean/internal.d.ts +22 -0
  151. package/ts/shared_clean/no_tr/scripts/index.d.ts +1 -0
  152. package/ts/shared_clean/no_tr/scripts/state.d.ts +14 -0
  153. package/ts/shared_clean/schema/data/index.d.ts +1 -0
  154. package/ts/shared_clean/schema/data/schema.d.ts +21 -0
  155. package/ts/{shared → shared_clean}/schema/obj/transform_item.d.ts +1 -0
  156. package/ts/shared_clean/service_worker/scripts/index.d.ts +1 -0
  157. package/ts/{shared/service_worker/scripts/main.d.ts → shared_clean/service_worker/scripts/service_worker.d.ts} +5 -3
  158. package/ts/shared_clean/theme/scripts/index.d.ts +1 -0
  159. package/ts/shared_clean/theme/scripts/theme.d.ts +13 -0
  160. package/ts/shared_clean/title/scripts/index.d.ts +1 -0
  161. package/ts/shared_clean/title/scripts/title.d.ts +9 -0
  162. package/ts/shared_clean/utils/scripts/index.d.ts +1 -0
  163. package/ts/shared_clean/utils/scripts/utils.d.ts +13 -0
  164. package/ts/shared_clean/viewport/scripts/index.d.ts +1 -0
  165. package/ts/shared_clean/viewport/scripts/viewport.d.ts +10 -0
  166. package/ts/{shared → shared_clean}/x.d.ts +16 -4
  167. package/chunk-main.js +0 -22
  168. package/chunk-main2.js +0 -5
  169. package/chunk-main3.js +0 -5
  170. package/chunk-main4.js +0 -5
  171. package/index.d.ts +0 -3
  172. package/index.js +0 -5
  173. package/ts/announcement/scripts/display.d.ts +0 -6
  174. package/ts/announcement/scripts/index.d.ts +0 -1
  175. package/ts/error_modules/css/scripts/main.d.ts +0 -8
  176. package/ts/error_modules/error/data/main.d.ts +0 -11
  177. package/ts/settings/data/index.d.ts +0 -2
  178. package/ts/settings/developer_mode/data/main.d.ts +0 -13
  179. package/ts/settings/optional_permissions/data/main.d.ts +0 -11
  180. package/ts/settings/scripts/index.d.ts +0 -1
  181. package/ts/settings/scripts/theme.d.ts +0 -12
  182. package/ts/shared/css_vars/scripts/index.d.ts +0 -1
  183. package/ts/shared/functions.d.ts +0 -3
  184. package/ts/shared/header/scripts/index.d.ts +0 -1
  185. package/ts/shared/header/scripts/main.d.ts +0 -6
  186. package/ts/shared/no_tr/scripts/index.d.ts +0 -1
  187. package/ts/shared/no_tr/scripts/main.d.ts +0 -12
  188. package/ts/shared/schema/data/main.d.ts +0 -12
  189. package/ts/shared/service_worker/scripts/index.d.ts +0 -1
  190. package/ts/shared/settings/data/index.d.ts +0 -1
  191. package/ts/shared/settings/data/main.d.ts +0 -15
  192. package/ts/shared/theme/scripts/index.d.ts +0 -1
  193. package/ts/shared/theme/scripts/main.d.ts +0 -11
  194. package/ts/shared/title/scripts/main.d.ts +0 -6
  195. package/ts/shared/utils/scripts/index.d.ts +0 -1
  196. package/ts/shared/utils/scripts/main.d.ts +0 -11
  197. package/ts/shared/viewport/scripts/index.d.ts +0 -1
  198. package/ts/shared/viewport/scripts/main.d.ts +0 -8
  199. /package/ts/{error_modules → error_modules_clean}/error/interfaces/error.d.ts +0 -0
  200. /package/ts/{error_modules → error_modules_clean}/error/interfaces/error_obj.d.ts +0 -0
  201. /package/ts/{error_modules → error_modules_clean}/error/interfaces/notification_type.d.ts +0 -0
  202. /package/ts/{error_modules → error_modules_clean}/error/interfaces/observable_keys.d.ts +0 -0
  203. /package/ts/{error_modules → error_modules_clean}/error/interfaces/show_unable_to_access_settings_error.d.ts +0 -0
  204. /package/ts/{error_modules → error_modules_clean}/error/interfaces/timeout_observable_keys.d.ts +0 -0
  205. /package/ts/{shared → error_modules_clean/error/scripts}/globals.d.ts +0 -0
  206. /package/ts/shared/{app_ext_globals.d.ts → data/data/data.d.ts} +0 -0
  207. /package/ts/{shared/data/data/main.d.ts → shared_clean/app_ext_globals.d.ts} +0 -0
  208. /package/ts/{inputs → shared_clean}/color/interfaces/color.d.ts +0 -0
  209. /package/ts/{shared → shared_clean}/data/interfaces/index.d.ts +0 -0
  210. /package/ts/{shared → shared_clean}/data/interfaces/val.d.ts +0 -0
  211. /package/ts/{shared → shared_clean}/schema/obj/index.d.ts +0 -0
  212. /package/ts/{shared → shared_clean}/t.d.ts +0 -0
  213. /package/ts/{shared → shared_clean}/vars.d.ts +0 -0
package/inputs.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright 2024
3
3
  */
4
4
 
5
- "use strict";var main=require("./chunk-main.js");require("react"),require("react-dom");var index$7=Object.freeze({__proto__:null,Btn:main.Btn,Checkbox:main.Checkbox,File:main.File,Form:main.Form,Group:main.Group,Help:main.Help,HelpBtn:main.HelpBtn,Hr:main.Hr,IconBtn:main.IconBtn,InputError:main.InputError,InputItem:main.InputItem,Label:main.Label,LabelInInputItem:main.LabelInInputItem,Link:main.Link,LinkBtn:main.LinkBtn,LinkIconBtn:main.LinkIconBtn,Range:main.Range,Section:main.Section,SectionBtn:main.SectionBtn,SectionContent:main.SectionContent,Select:main.Select,Text:main.Text,TextBtn:main.TextBtn,Textarea:main.Textarea,UploadBox:main.UploadBox});class Range extends main.InputBase{constructor(obj){super(obj),this.type="range",this.min=0,this.max=100,this.step=1,this.displayed_val=main.computedFn((function({input:input}){return n(input.step)?Math.round(main.Val.i().access({input:input})/input.step):0})),this.lower_fill_percentage=main.computedFn((function({input:input}){return 100*input.displayed_val({input:input})/(n(input.max)&&n(input.step)?input.max/input.step:0)})),this.lower_fill_width=main.computedFn((function({input:input}){return`${input.lower_fill_percentage({input:input})}%`})),this.help_is_present_cls=main.computedFn((function({input:input}){return input.include_help?"help_is_present":""})),Object.assign(this,obj)}}class Form extends main.InputBase{constructor(obj){super(obj),this.type="form",Object.assign(this,obj),this.action=obj.action,this.inputs=obj.inputs}}class Group extends main.InputBase{constructor(obj){super(obj),this.type="group",Object.assign(this,obj),this.inputs=obj.inputs}}class Textarea extends main.InputBase{constructor(obj){super(obj),this.type="textarea",Object.assign(this,obj)}}class UploadBox extends main.InputBase{constructor(obj){super(obj),this.type="upload_box",this.multiple=!1,this.accept=".png,.jpg,.jpeg,.gif",this.loading_msg_is_visible=!1,this.error_msg_is_visible=!1,this.is_in_hover_state=!1,this.drag_counter=0,this.filenames_are_visible=!1,this.filenames="",this.clear_val_on_upload=!0,this.loading_msg_visibility_cls=main.computedFn((function(){return this.loading_msg_is_visible?"":"none"})),this.error_msg_visibility_cls=main.computedFn((function(){return this.error_msg_is_visible?"":"none"})),this.loading_cls=main.computedFn((function(){return this.loading_msg_is_visible?"loading":""})),this.filenames_final=main.computedFn((function(){return rb(this.filenames_are_visible)&&n(this.filenames)?this.filenames:""})),main.makeObservable(this,{loading_msg_is_visible:main.observable,error_msg_is_visible:main.observable,is_in_hover_state:main.observable,filenames:main.observable}),Object.assign(this,obj)}}var index$6=Object.freeze({__proto__:null,Btn:main.Btn$1,Checkbox:main.Checkbox$1,File:main.File$1,Form:Form,Group:Group,Hr:class{constructor(obj){this.type="hr",Object.assign(this,obj),this.name=obj.name}},IconBtn:main.IconBtn$1,InputBase:main.InputBase,Label:class{constructor(obj){this.type="label",Object.assign(this,obj),this.name=obj.name}},Link:class{constructor(obj){this.type="link",this.label_type="text",this.Svg="",this.target="_blank",this.force_resolve=!1,this.text=()=>err((()=>app.msg(`${this.name_clean}_link_text`)||app.msg(`${this.name_clean}_${this.browser}_link_text`)),"shr_1069"),this.href_final=()=>err((()=>n(this.href)?this.href:app.msg(`${this.name_clean}_link_href`)||app.msg(`${this.name_clean}_${this.browser}_link_href`)||app.msg(`offer_${this.name_clean}_${this.browser}_link_href`)),"shr_1070"),this.show_link=()=>err((()=>{const link_is_cross_browser=!n(this.browser),link_browser_is_the_same_as_env_browser=this.browser===env.browser;return link_is_cross_browser||!link_browser_is_the_same_as_env_browser||n(this.force_resolve)&&this.force_resolve}),"shr_1071"),Object.assign(this,obj),this.name=obj.name,this.name_clean=obj.name.replace(/i\d+i/,"")}},LinkBtn:main.LinkBtn$1,Option:main.Option,Range:Range,Section:main.Section$1,Select:main.Select$1,Text:main.Text$1,Textarea:Textarea,UploadBox:UploadBox});const color_picker_state={is_initialized:!1,is_visible:!1,is_closed:!0};class Color extends main.InputBase{constructor(obj){super(obj),this.type="color",this.include_visualization=!0,this.include_palette_label=!1,this.palette_is_visible=!1,this.palette_is_closed=!0,this.palette_width="0",this.palette_height="0",this.color_picker_width="0",this.color_picker_height="0",this.include_remove_color_btn=!0,this.include_ok_btn=!1,this.state=Object.assign({main:color_picker_state},Array(main.Color.i().palette_color_amount).fill(color_picker_state).reduce(((accumulator,val,i)=>(accumulator[i]=val,accumulator)),{})),this.is_palette_color=({i:i})=>err((()=>"number"==typeof i),"shr_1030"),this.visualization_cls=({i:i})=>err((()=>"main"===i?"visualization":""),"shr_1031"),this.palette_visualization_cls=({i:i})=>err((()=>"main"===i?"":"palette_visualization"),"shr_1032"),this.inset_border_cls=({i:i})=>err((()=>"main"===i?"":"inset_border"),"shr_1033"),this.el_to_show_type=({i:i})=>err((()=>"main"===i?"color_picker_or_palette":"color_picker"),"shr_1034"),this.color_picker_is_visible=main.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_visible})),this.palette_w_is_visible=main.computedFn((function(){return!this.include_visualization||this.palette_is_visible})),this.visualization_outline_opened=main.computedFn((function({i:i}){return"main"===i&&this.palette_is_visible||n(this.state)&&this.state[i].is_visible?"opened":""})),this.visualization_outline_selected=main.computedFn((function({i:i}){return this.is_palette_color({i:i})&&i===(n(this.val_accessor)?main._.get(data,this.val_accessor):data.settings[this.name])?"selected":""})),this.palette_visualization_outline_selected=main.computedFn((function({i:i}){return i===data.settings.selected_palette_color?"selected":""})),this.color_picker_is_closed_visibility_cls=main.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_closed?"none":""})),this.palette_is_closed_visibility_cls=main.computedFn((function(){return this.palette_is_closed?"none":""})),this.color_help_visibility_cls=main.computedFn((function(){return main.Visibility.i().color_help_is_visible?"":"none"})),main.makeObservable(this,{palette_is_visible:main.observable,palette_is_closed:main.observable,palette_width:main.observable,palette_height:main.observable,color_picker_width:main.observable,color_picker_height:main.observable,state:main.observable}),Object.assign(this,obj),this.select_palette_color_callback=obj.select_palette_color_callback,this.remove_color_callback=obj.remove_color_callback,this.restore_default_palette_callback=obj.restore_default_palette_callback,this.hide_color_help_callback=obj.hide_color_help_callback}}var index$5=Object.freeze({__proto__:null,Color:Color}),index$4=Object.freeze({__proto__:null,Help:main.Help$1,InputError:main.InputError$1,InputWidth:main.InputWidth,LabelInInputItem:main.LabelInInputItem$1,NestedInput:main.NestedInput,Text:main.Text$2,UploadBox:main.UploadBox$1,Val:main.Val}),index$3=Object.freeze({__proto__:null,Color:main.Color,Visibility:main.Visibility}),index$2=Object.freeze({__proto__:null,ColorPicker:main.ColorPicker,Position:main.Position}),index$1=Object.freeze({__proto__:null}),index=Object.freeze({__proto__:null});exports.c_inputs=index$7,exports.d_color=index$3,exports.d_inputs=index$4,exports.i_color=index,exports.i_inputs=index$1,exports.o_color=index$5,exports.o_inputs=index$6,exports.s_color=index$2;
5
+ "use strict";var title=require("./chunk-title.js");require("react");var viewport=require("./chunk-viewport.js");require("react-dom"),require("./chunk-merge.js");var index$7=Object.freeze({__proto__:null,Btn:title.Btn,Checkbox:title.Checkbox,File:title.File,Form:title.Form,Group:title.Group,Help:title.Help,HelpBtn:title.HelpBtn,Hr:title.Hr,IconBtn:title.IconBtn,InputError:title.InputError,InputItem:title.InputItem,Label:title.Label,LabelInInputItem:title.LabelInInputItem,Link:title.Link,LinkBtn:title.LinkBtn,LinkIconBtn:title.LinkIconBtn,Range:title.Range,Section:title.Section,SectionBtn:title.SectionBtn,SectionContent:title.SectionContent,Select:title.Select,Text:title.Text,TextBtn:title.TextBtn,Textarea:title.Textarea,UploadBox:title.UploadBox});class Range extends title.InputBase{constructor(obj){super(obj),this.type="range",this.min=0,this.max=100,this.step=1,this.displayed_val=title.computedFn((function({input:input}){return n(input.step)?Math.round(title.Val.access({input:input})/input.step):0})),this.lower_fill_percentage=title.computedFn((function({input:input}){return 100*input.displayed_val({input:input})/(n(input.max)&&n(input.step)?input.max/input.step:0)})),this.lower_fill_width=title.computedFn((function({input:input}){return`${input.lower_fill_percentage({input:input})}%`})),this.help_is_present_cls=title.computedFn((function({input:input}){return input.include_help?"help_is_present":""})),Object.assign(this,obj)}}class Form extends title.InputBase{constructor(obj){super(obj),this.type="form",Object.assign(this,obj),this.action=obj.action,this.inputs=obj.inputs}}class Group extends title.InputBase{constructor(obj){super(obj),this.type="group",Object.assign(this,obj),this.inputs=obj.inputs}}class Textarea extends title.InputBase{constructor(obj){super(obj),this.type="textarea",Object.assign(this,obj)}}class UploadBox extends title.InputBase{constructor(obj){super(obj),this.type="upload_box",this.multiple=!1,this.accept=".png,.jpg,.jpeg,.gif",this.loading_msg_is_visible=!1,this.error_msg_is_visible=!1,this.is_in_hover_state=!1,this.drag_counter=0,this.filenames_are_visible=!1,this.filenames="",this.clear_val_on_upload=!0,this.loading_msg_visibility_cls=title.computedFn((function(){return this.loading_msg_is_visible?"":"none"})),this.error_msg_visibility_cls=title.computedFn((function(){return this.error_msg_is_visible?"":"none"})),this.loading_cls=title.computedFn((function(){return this.loading_msg_is_visible?"loading":""})),this.filenames_final=title.computedFn((function(){return rb(this.filenames_are_visible)&&n(this.filenames)?this.filenames:""})),title.makeObservable(this,{loading_msg_is_visible:title.observable,error_msg_is_visible:title.observable,is_in_hover_state:title.observable,filenames:title.observable}),Object.assign(this,obj)}}var index$6=Object.freeze({__proto__:null,Btn:title.Btn$1,Checkbox:title.Checkbox$1,File:title.File$1,Form:Form,Group:Group,Hr:class{constructor(obj){this.type="hr",Object.assign(this,obj),this.name=obj.name}},IconBtn:title.IconBtn$1,InputBase:title.InputBase,Label:class{constructor(obj){this.type="label",Object.assign(this,obj),this.name=obj.name}},Link:class{constructor(obj){this.type="link",this.label_type="text",this.Svg="",this.target="_blank",this.force_resolve=!1,this.text=()=>err((()=>app.msg(`${this.name_clean}_link_text`)||app.msg(`${this.name_clean}_${this.browser}_link_text`)),"shr_1069"),this.href_final=()=>err((()=>{const href=n(this.href)?this.href:app.msg(`${this.name_clean}_link_href`)||app.msg(`${this.name_clean}_${this.browser}_link_href`)||app.msg(`offer_${this.name_clean}_${this.browser}_link_href`);return n(href)?href:""}),"shr_1070"),this.show_link=()=>err((()=>{const link_is_cross_browser=!n(this.browser),link_browser_is_the_same_as_env_browser=this.browser===env.browser;return link_is_cross_browser||!link_browser_is_the_same_as_env_browser||n(this.force_resolve)&&this.force_resolve}),"shr_1071"),Object.assign(this,obj),this.name=obj.name,this.name_clean=obj.name.replace(/i\d+i/,"")}},LinkBtn:title.LinkBtn$1,Option:title.Option,Range:Range,Section:title.Section$1,Select:title.Select$1,Text:title.Text$1,Textarea:Textarea,UploadBox:UploadBox});const color_picker_state={is_initialized:!1,is_visible:!1,is_closed:!0};class Color extends title.InputBase{constructor(obj){super(obj),this.type="color",this.include_visualization=!0,this.include_palette_label=!1,this.palette_is_visible=!1,this.palette_is_closed=!0,this.palette_width="0",this.palette_height="0",this.color_picker_width="0",this.color_picker_height="0",this.include_remove_color_btn=!0,this.include_ok_btn=!1,this.state=Object.assign({main:color_picker_state},Array(title.Color.palette_color_amount).fill(color_picker_state).reduce(((accumulator,val,i)=>(accumulator[i]=val,accumulator)),{})),this.is_palette_color=({i:i})=>err((()=>"number"==typeof i),"shr_1030"),this.visualization_cls=({i:i})=>err((()=>"main"===i?"visualization":""),"shr_1031"),this.palette_visualization_cls=({i:i})=>err((()=>"main"===i?"":"palette_visualization"),"shr_1032"),this.inset_border_cls=({i:i})=>err((()=>"main"===i?"":"inset_border"),"shr_1033"),this.el_to_show_type=({i:i})=>err((()=>"main"===i?"color_picker_or_palette":"color_picker"),"shr_1034"),this.color_picker_is_visible=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_visible})),this.palette_w_is_visible=title.computedFn((function(){return!this.include_visualization||this.palette_is_visible})),this.visualization_outline_opened=title.computedFn((function({i:i}){return"main"===i&&this.palette_is_visible||n(this.state)&&this.state[i].is_visible?"opened":""})),this.visualization_outline_selected=title.computedFn((function({i:i}){return this.is_palette_color({i:i})&&i===(n(this.val_accessor)?viewport.get(data,this.val_accessor):data.settings.prefs[this.name])?"selected":""})),this.palette_visualization_outline_selected=title.computedFn((function({i:i}){return i===data.settings.prefs.selected_palette_color?"selected":""})),this.color_picker_is_closed_visibility_cls=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_closed?"none":""})),this.palette_is_closed_visibility_cls=title.computedFn((function(){return this.palette_is_closed?"none":""})),this.color_help_visibility_cls=title.computedFn((function(){return title.Visibility$1.color_help_is_visible?"":"none"})),title.makeObservable(this,{palette_is_visible:title.observable,palette_is_closed:title.observable,palette_width:title.observable,palette_height:title.observable,color_picker_width:title.observable,color_picker_height:title.observable,state:title.observable}),Object.assign(this,obj),this.select_palette_color_callback=obj.select_palette_color_callback,this.remove_color_callback=obj.remove_color_callback,this.restore_default_palette_callback=obj.restore_default_palette_callback,this.hide_color_help_callback=obj.hide_color_help_callback}}var index$5=Object.freeze({__proto__:null,Color:Color}),index$4=Object.freeze({__proto__:null,Help:title.Help$1,InputError:title.InputError$1,InputWidth:title.InputWidth,LabelInInputItem:title.LabelInInputItem$1,NestedInput:title.NestedInput,Text:title.Text$2,UploadBox:title.UploadBox$1,Val:title.Val}),index$3=Object.freeze({__proto__:null,Color:title.Color,Visibility:title.Visibility$1}),index$2=Object.freeze({__proto__:null,ColorPicker:title.ColorPicker,Position:title.Position}),index$1=Object.freeze({__proto__:null}),index=Object.freeze({__proto__:null});exports.c_inputs=index$7,exports.d_color=index$3,exports.d_inputs=index$4,exports.i_color=index,exports.i_inputs=index$1,exports.o_color=index$5,exports.o_inputs=index$6,exports.s_color=index$2;
package/js/apps.js CHANGED
@@ -14,23 +14,41 @@ const apps = [
14
14
  'Stock Screener',
15
15
  'Advanced Extension Reloader',
16
16
  'Search Enhancer for Google',
17
- 'Close Other Tabs Extended',
17
+ 'Close Other Tabs Plus',
18
18
  'Clear New Tab',
19
19
  'Base64 font-face',
20
+ 'Advanced Extension Reloader Examples',
20
21
  ];
21
22
 
22
- const app_types = ['package', 'package', 'app', 'app', 'app', 'ext', 'ext', 'ext', 'ext', 'ext'];
23
+ const app_types = [
24
+ 'package',
25
+ 'package',
26
+ 'app',
27
+ 'app',
28
+ 'app',
29
+ 'ext',
30
+ 'ext',
31
+ 'ext',
32
+ 'ext',
33
+ 'ext',
34
+ 'ext',
35
+ ];
23
36
 
24
37
  const create_app_paths = () =>
25
38
  apps.map((project) => path.join(projects_path.q, project, project_name.transform({ project })));
26
39
 
27
40
  const app = create_app_paths();
28
41
 
29
- const create_eslintrc_paths = () => app.map((app_dir) => path.join(app_dir, '.eslintrc.js'));
42
+ const create_eslintrc_paths = () => app.map((app_dir) => path.join(app_dir, '.eslintrc.cjs'));
30
43
 
31
44
  const eslintrc = create_eslintrc_paths();
32
45
 
33
- const create_prettierrc_paths = () => app.map((app_dir) => path.join(app_dir, '.prettierrc.js'));
46
+ const create_eslint_local_rules_paths = () =>
47
+ app.map((app_dir) => path.join(app_dir, 'eslint-local-rules.cjs'));
48
+
49
+ const eslint_local_rules = create_eslint_local_rules_paths();
50
+
51
+ const create_prettierrc_paths = () => app.map((app_dir) => path.join(app_dir, '.prettierrc.cjs'));
34
52
 
35
53
  const prettierrc = create_prettierrc_paths();
36
54
 
@@ -52,6 +70,7 @@ const is_ext = () => {
52
70
  const paths = {
53
71
  app,
54
72
  eslintrc,
73
+ eslint_local_rules,
55
74
  prettierrc,
56
75
  stylelintrc,
57
76
  };
@@ -33,6 +33,10 @@ class Dependencies {
33
33
  licenseText:
34
34
  '\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "[]"\n replaced with your own identifying information. (Don\'t include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n',
35
35
  },
36
+ {
37
+ name: 'Hourglass icon',
38
+ link: 'https://www.iconfinder.com/icons/605506/clock_hourglass_time_timekeeper_timer_watch_icon',
39
+ },
36
40
  ];
37
41
 
38
42
  add_missing_dependesies = ({ extension_specific_missing_dependencies }) => {
@@ -1,5 +1,5 @@
1
1
  const projects_path = {
2
- q: process.platform === 'win32' ? 'D:\\Cloud\\Projects' : '/media/d/Cloud/Projects',
2
+ q: process.platform === 'win32' ? 'D:\\Cloud\\Projects' : '/home/me/Desktop',
3
3
  };
4
4
 
5
5
  module.exports = { projects_path };
@@ -127,6 +127,7 @@ const shared_config = ({
127
127
  resolve: {
128
128
  alias: {
129
129
  shared: path.join(paths.ts, 'shared'),
130
+ shared_clean: path.join(paths.ts, 'shared_clean'),
130
131
  ...(app_type === 'ext' && {
131
132
  background: path.join(paths.ts, 'background'),
132
133
  settings: path.join(paths.ts, 'settings'),
@@ -188,6 +189,7 @@ const shared_config = ({
188
189
  minimize: minimize && argv.mode === 'production',
189
190
  minimizer: [new TerserPlugin(), new CssMinimizerPlugin()],
190
191
  sideEffects: argv.mode === 'production',
192
+ usedExports: true,
191
193
  },
192
194
  performance: {
193
195
  maxEntrypointSize: 52428800,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loftyshaky/shared-app",
3
3
  "description": "-",
4
- "version": "1.3.0",
4
+ "version": "2.2.0",
5
5
  "author": "loftyshaky",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  .ext_version {
2
2
  position: relative;
3
- bottom: -$main_margin + 4px;
4
- right: -$main_margin_2 + 6px;
3
+ bottom: -10px;
4
+ right: -26px;
5
5
  float: right;
6
6
  font-size: 14px;
7
7
  }
@@ -7,11 +7,12 @@ html,
7
7
  padding: $main_margin_2;
8
8
  padding-left: $main_margin_2;
9
9
  display: block;
10
+ height: calc(100vh - #{$main_margin_4});
10
11
  }
11
12
 
12
13
  .main_2 {
13
14
  display: flex;
14
- height: calc(100vh - #{$main_margin_4 + 2});
15
+ height: calc(100vh - $main_margin_4);
15
16
  max-width: 1366px - $main_margin_2 + 2px;
16
17
  margin: auto;
17
18
  }
@@ -9,6 +9,7 @@
9
9
  flex-grow: 1;
10
10
  height: 100%;
11
11
  overflow: auto;
12
+ outline: none;
12
13
  }
13
14
 
14
15
  .section {
@@ -38,7 +38,7 @@ $icon_btn_size: 20px;
38
38
 
39
39
  border-radius: 0;
40
40
  height: $input_height;
41
- padding: 0 $input_inner_padding 0 $input_inner_padding;
41
+ padding: 0 $input_inner_padding;
42
42
  display: table;
43
43
  box-sizing: border-box;
44
44
 
@@ -58,6 +58,20 @@ $icon_btn_size: 20px;
58
58
  }
59
59
  }
60
60
 
61
+ .btn_w {
62
+ @include border_transparent;
63
+
64
+ display: table;
65
+
66
+ &:not(:first-child) {
67
+ margin-top: $gap;
68
+ }
69
+
70
+ .btn.text {
71
+ border: none;
72
+ }
73
+ }
74
+
61
75
  .btn_options {
62
76
  @include border;
63
77
 
@@ -8,6 +8,7 @@ $checkmark_size: 18px;
8
8
  }
9
9
 
10
10
  .wrap_label {
11
+ @include center_flex;
11
12
  @include border_transparent;
12
13
 
13
14
  margin-right: $input_content_gap;
@@ -2,7 +2,7 @@ $palette_visualization_w_border_offset: 1 * 2;
2
2
 
3
3
  .input_item {
4
4
  &.color .label_in_input_item {
5
- align-self: normal;
5
+ align-self: center;
6
6
  }
7
7
 
8
8
  .inner_w {
@@ -15,11 +15,20 @@
15
15
  width: 100%;
16
16
  }
17
17
 
18
+ .btn_w {
19
+ display: flex;
20
+ flex-grow: 1;
21
+
22
+ .btn {
23
+ width: 100%;
24
+ }
25
+ }
26
+
18
27
  & > * {
19
28
  margin-top: 0;
20
29
  }
21
30
 
22
- & > *:not(:last-child) {
31
+ & > .btn_w:not(:last-child) {
23
32
  margin-right: $gap;
24
33
  }
25
34
  }
@@ -21,6 +21,10 @@
21
21
  display: flex;
22
22
  margin-bottom: $gap;
23
23
 
24
+ &:empty {
25
+ display: none;
26
+ }
27
+
24
28
  + .subsection {
25
29
  margin-top: $gap;
26
30
  }
@@ -28,8 +28,7 @@ input[type='file'] {
28
28
  }
29
29
 
30
30
  .label_in_input_item {
31
- display: flex;
32
- align-items: center;
31
+ display: table;
33
32
  height: unset;
34
33
  margin-right: 0;
35
34
  white-space: normal;
@@ -52,7 +51,7 @@ input[type='file'] {
52
51
  width: inherit;
53
52
  opacity: 1; // needed to keep default color when element is is_enabled
54
53
  height: $input_height;
55
- padding: 0 $input_inner_padding 0 $input_inner_padding;
54
+ padding: 0 $input_inner_padding;
56
55
  flex-grow: 1;
57
56
  border-radius: 0;
58
57
  box-sizing: border-box;
@@ -1,3 +1,13 @@
1
+ body::before {
2
+ @include full_spread;
3
+
4
+ content: '';
5
+ position: fixed;
6
+ background-repeat: no-repeat;
7
+ background-attachment: fixed;
8
+ z-index: -1;
9
+ }
10
+
1
11
  .main_2 {
2
12
  box-sizing: border-box;
3
13
  }
@@ -1,20 +1,26 @@
1
1
  $arrow_offset: 11px;
2
2
  $separator_offset: 7px;
3
3
 
4
- .input_item select.input {
5
- /* stylelint-disable-next-line property-no-vendor-prefix */
6
- -webkit-appearance: none;
7
- /* stylelint-disable-next-line property-no-vendor-prefix */
8
- -moz-appearance: none;
9
- background-position:
10
- calc(100% - 16px) $arrow_offset,
11
- calc(100% - 10px) $arrow_offset,
12
- calc(100% - 33px) $separator_offset;
13
- background-size:
14
- 6px 6px,
15
- 6px 6px,
16
- 1px 14px;
17
- background-repeat: no-repeat;
18
- padding-right: 44px;
19
- line-height: $input_height; /* Fix text being cut from the bottom of selects. */
4
+ .input_item {
5
+ select {
6
+ max-width: 100%;
7
+
8
+ &.input {
9
+ /* stylelint-disable-next-line property-no-vendor-prefix */
10
+ -webkit-appearance: none;
11
+ /* stylelint-disable-next-line property-no-vendor-prefix */
12
+ -moz-appearance: none;
13
+ background-position:
14
+ calc(100% - 16px) $arrow_offset,
15
+ calc(100% - 10px) $arrow_offset,
16
+ calc(100% - 33px) $separator_offset;
17
+ background-size:
18
+ 6px 6px,
19
+ 6px 6px,
20
+ 1px 14px;
21
+ background-repeat: no-repeat;
22
+ padding-right: 44px;
23
+ line-height: $input_height; /* Fix text being cut from the bottom of selects. */
24
+ }
25
+ }
20
26
  }
@@ -70,32 +70,8 @@ textarea {
70
70
  fill: $lpe;
71
71
  }
72
72
 
73
- body {
73
+ body::before {
74
74
  background: $gqb;
75
- background-repeat: no-repeat;
76
- background-attachment: fixed;
77
-
78
- .main_2 {
79
- background-color: $hfb;
80
- }
81
-
82
- .btn {
83
- &.text {
84
- background-color: $npw;
85
- outline-color: $hyn;
86
-
87
- &:hover {
88
- background-color: $qgp;
89
- }
90
- }
91
- }
92
-
93
- .btn,
94
- .link.svg {
95
- svg {
96
- fill: $lpe;
97
- }
98
- }
99
75
  }
100
76
 
101
77
  .main,
@@ -294,6 +270,30 @@ hr {
294
270
  }
295
271
  }
296
272
 
273
+ .main:not(.loading_screen) {
274
+ .main_2 {
275
+ background-color: $hfb;
276
+ }
277
+
278
+ .btn {
279
+ &.text {
280
+ background-color: $npw;
281
+ outline-color: $hyn;
282
+
283
+ &:hover {
284
+ background-color: $qgp;
285
+ }
286
+ }
287
+ }
288
+
289
+ .btn,
290
+ .link.svg {
291
+ svg {
292
+ fill: $lpe;
293
+ }
294
+ }
295
+ }
296
+
297
297
  .offer img {
298
298
  border-color: $hyn;
299
299
  }
@@ -19,6 +19,7 @@
19
19
  transition-property: background-color;
20
20
  }
21
21
 
22
+ .btn_w,
22
23
  .btn:not(.reload_ui, .link_btn) {
23
24
  transition: var(--transition);
24
25
  transition-property: opacity, background-color;
package/settings.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import './ts/shared/internal';
2
- export { c_settings, d_settings, d_developer_mode, d_optional_permissions, s_settings, i_optional_permissions, } from './ts/settings/internal';
2
+ export { c_settings, d_sections, d_developer_mode, d_optional_permissions, s_sections, i_optional_permissions, } from './ts/settings/internal';
package/settings.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright 2024
3
3
  */
4
4
 
5
- "use strict";var main=require("./chunk-main.js");require("react");var main$1=require("./chunk-main3.js");require("react-dom");var index$5=Object.freeze({__proto__:null,Body:main.Body$2}),index$4=Object.freeze({__proto__:null,BackUp:main.BackUp,Sections:main.Sections}),index$3=Object.freeze({__proto__:null,Main:main.Main$5});var index$2=Object.freeze({__proto__:null,Main:class{static i(){return this.i0||(this.i0=new this)}constructor(){this.set_permission=({name:name,optional_permission_checkbox_dict:optional_permission_checkbox_dict})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const permissions=optional_permission_checkbox_dict[name];if(yield we.permissions.contains(permissions)){(yield we.permissions.remove(permissions))&&this.set_checkbox_val({name:name,val:!1})}else{(yield we.permissions.request(permissions))&&this.set_checkbox_val({name:name,val:!0})}}))),"shr_1221"),this.set_checkbox_val=({name:name,val:val})=>err((()=>{data.ui[name]=val}),"shr_1222"),main.makeObservable(this,{set_checkbox_val:main.action})}}});var index$1=Object.freeze({__proto__:null,Theme:class{static i(){return this.i0||(this.i0=new this)}constructor(){this.change=({input:input,name:name,additional_theme_callback:additional_theme_callback})=>err((()=>{"options_page_theme"===input.name&&main$1.Main$1.i().set({name:name,additional_theme_callback:additional_theme_callback})}),"shr_1088")}}}),index=Object.freeze({__proto__:null});exports.c_settings=index$5,exports.d_developer_mode=index$3,exports.d_optional_permissions=index$2,exports.d_settings=index$4,exports.i_optional_permissions=index,exports.s_settings=index$1;
5
+ "use strict";var title=require("./chunk-title.js");require("react"),require("./chunk-viewport.js"),require("react-dom"),require("./chunk-merge.js");var index$5=Object.freeze({__proto__:null,Body:title.Body$2}),index$4=Object.freeze({__proto__:null,DeveloperMode:title.DeveloperMode}),index$3=Object.freeze({__proto__:null,Permission:title.Permission}),index$2=Object.freeze({__proto__:null,BackUp:title.BackUp,Sections:title.Sections}),index$1=Object.freeze({__proto__:null,Theme:title.Theme}),index=Object.freeze({__proto__:null});exports.c_settings=index$5,exports.d_developer_mode=index$4,exports.d_optional_permissions=index$3,exports.d_sections=index$2,exports.i_optional_permissions=index,exports.s_sections=index$1;
package/shared.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './ts/error_modules/error/scripts';
2
+ export { c_crash_handler, c_error, d_crash_handler } from './ts/error_modules/internal';
3
+ export { X, t, vars, prevent_default, stop_propagation, o_schema, s_color, s_css_vars, s_data, s_no_tr, s_service_worker, s_theme, s_utils, s_viewport, i_color, i_data, } from './ts/shared_clean/internal';
4
+ export { init_shared, c_app_version, c_loading_screen, c_tr, o_tr, d_data, d_loading_screen, d_schema, s_loading_screen, d_offers, s_tab_index, s_title, } from './ts/shared/internal';
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"),require("./chunk-merge.js");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,alt_msg:flash_msg_key,notification_type:flash_type,hide_delay:flash_hide_delay})}),"shr_1252")}}.get_instance();var index$d=Object.freeze({__proto__:null,Cache:title.Cache,Settings:title.Settings});var index$c=Object.freeze({__proto__:null,Body:title.Body}),index$b=Object.freeze({__proto__:null,Body:title.Body$1}),index$a=Object.freeze({__proto__:null,BaseTr:title.BaseTr}),index$9=Object.freeze({__proto__:null,Transition:title.Transition}),index$8=Object.freeze({__proto__:null,Visibility:title.Visibility}),index$7=Object.freeze({__proto__:null,Offers:title.Offers}),index$6=Object.freeze({__proto__:null,Schema:title.Schema}),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},app.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"},app.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])},app.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})},app.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="",alt_msg:alt_msg="",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,alt_msg:alt_msg,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,alt_msg:alt_msg,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&&(Msg.basic_msg=app.msg(error_msg_key)||alt_msg,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,alt_msg:alt_msg,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=app.msg(`${error_obj.error_msg||error_msg_key}_error`)||alt_msg,error_msg_final=error_msg_pre?` ${error_msg_pre}`:"";title.runInAction((()=>err((()=>{silent_final||(Msg.basic_msg=`${app.msg("an_error_occured_msg")+error_msg_final}`,Msg.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")))}},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="",alt_msg:alt_msg="",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,alt_msg:alt_msg,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="",alt_msg:alt_msg="",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,alt_msg:alt_msg,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="",alt_msg:alt_msg="",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,alt_msg:alt_msg,silent:silent,persistent:persistent,exit:exit,hide_delay:hide_delay,is_fullscreen:is_fullscreen,prevent_subsequent_errors:prevent_subsequent_errors})}},globalThis.err_async=(f_1,error_code_1,...args_1)=>viewport.__awaiter(void 0,[f_1,error_code_1,...args_1],void 0,(function*(f,error_code,{error_msg_key:error_msg_key="",alt_msg:alt_msg="",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 yield f()}catch(error_obj){Error.show(error_obj,error_code,{error_msg_key:error_msg_key,alt_msg:alt_msg,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="",alt_msg:alt_msg="",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,alt_msg:alt_msg,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=(...args_1)=>viewport.__awaiter(this,[...args_1],void 0,(function*({is_fullscreen:is_fullscreen=!0,settings:settings,provided_settings:provided_settings=!1}={}){const settings_final=provided_settings?settings:yield app.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$c,exports.c_crash_handler=index$2,exports.c_error=index$1,exports.c_loading_screen=index$b,exports.c_tr=index$a,exports.d_crash_handler=index,exports.d_data=index$d,exports.d_loading_screen=index$8,exports.d_offers=index$7,exports.d_schema=index$6,exports.init_shared=()=>err((()=>{err((()=>{title.InputWidth.set_min_and_max_width(),title.Sections.init_options(),title.Offers.set_offers()}),"shr_1087")}),"shr_1112"),exports.o_tr=index$9,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_data, 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';
@@ -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,Settings:viewport.Settings}),index$2=Object.freeze({__proto__:null,Schema:viewport.Schema}),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_data=index$3,exports.d_schema=index$2,exports.s_announcement=index$1,exports.s_title=index;
@@ -1,2 +1 @@
1
1
  export * as c_announcement from './components';
2
- export * as s_announcement from './scripts';
@@ -1,7 +1,9 @@
1
- export declare class Dependencies {
2
- private static i0;
3
- static i(): Dependencies;
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,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { p_crash_handler } from '../../internal';
3
3
  export declare const Body: {
4
- new (props: p_crash_handler.Body | Readonly<p_crash_handler.Body>): {
4
+ new (props: p_crash_handler.Body): {
5
5
  componentDidCatch(err_obj: Error): void;
6
6
  render(): JSX.Element | ReactNode;
7
7
  context: unknown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface Body {
3
2
  children: JSX.Element;
4
3
  }
@@ -1,7 +1,9 @@
1
- export declare class Visibility {
2
- private static i0;
3
- static i(): Visibility;
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,6 +1,8 @@
1
- export declare class Page {
2
- private static i0;
3
- static i(): Page;
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
4
  private constructor();
5
5
  reload: () => void;
6
6
  }
7
+ export declare const Page: Class;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
5
+ load: ({ app_id }: {
6
+ app_id: string;
7
+ }) => void;
8
+ }
9
+ export declare const Css: Class;
10
+ export {};
@@ -1 +1 @@
1
- export * from '../../css/scripts/main';
1
+ export * from '../../css/scripts/css';
@@ -1,4 +1,4 @@
1
- import { t } from '../../../../shared/internal';
1
+ import { t } from '../../../../shared_clean/internal';
2
2
  export interface Body {
3
3
  app_id: string;
4
4
  on_render: t.CallbackVoid;
@@ -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, alt_msg, 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,4 +1,4 @@
1
- export * from '../../error/data/main';
1
+ export * from '../../error/data/error';
2
2
  export * from '../../error/data/msg';
3
3
  export * from '../../error/data/progress';
4
4
  export * from '../../error/data/state';