amotify 0.1.32 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/@declaration/_.js +1 -1
  2. package/dist/@declaration/property.d.ts +2 -2
  3. package/dist/@styles/componentClasses/_.css +66 -65
  4. package/dist/@styles/componentClasses/_.js +39 -39
  5. package/dist/@styles/index.css +66 -65
  6. package/dist/@styles/index.js +39 -39
  7. package/dist/@styles/init.css +1 -1
  8. package/dist/@styles/style.css +96 -65
  9. package/dist/@styles/style.js +39 -39
  10. package/dist/@styles/var.css +1 -1
  11. package/dist/@utils/GenerateClassName.js +1 -470
  12. package/dist/@utils/LaunchReactApp.d.ts +1 -1
  13. package/dist/@utils/LaunchReactApp.js +1 -78
  14. package/dist/@utils/_.js +1 -12
  15. package/dist/@utils/collectForm.js +1 -96
  16. package/dist/@utils/color.js +1 -103
  17. package/dist/@utils/config.js +1 -101
  18. package/dist/@utils/fin.js +1 -39
  19. package/dist/@utils/getElement.js +1 -13
  20. package/dist/@utils/jsminEx.js +1 -172
  21. package/dist/@utils/pageTransit.js +1 -33
  22. package/dist/@utils/useRecycle.js +1 -44
  23. package/dist/@utils/useStore.js +1 -54
  24. package/dist/atoms/Box.js +1 -20
  25. package/dist/atoms/FAI.js +1 -148
  26. package/dist/atoms/Flex.js +1 -34
  27. package/dist/atoms/Grid.js +1 -17
  28. package/dist/atoms/Img.js +1 -65
  29. package/dist/atoms/Logo.js +51 -359
  30. package/dist/atoms/P.js +1 -20
  31. package/dist/atoms/Placeholder.js +1 -44
  32. package/dist/atoms/Span.js +1 -20
  33. package/dist/atoms/_.js +1 -9
  34. package/dist/fn/Button.js +1 -316
  35. package/dist/fn/Cropper.js +1 -1009
  36. package/dist/fn/Effect/Fade.js +1 -88
  37. package/dist/fn/Effect/Pudding.js +1 -22
  38. package/dist/fn/Effect/Ripple.js +3 -117
  39. package/dist/fn/Effect/_.js +1 -14
  40. package/dist/fn/Input/AutoHeightText.js +1 -112
  41. package/dist/fn/Input/Checker.js +1 -36
  42. package/dist/fn/Input/Chips/Selector.js +1 -472
  43. package/dist/fn/Input/Chips/_.js +1 -349
  44. package/dist/fn/Input/Contenteditable.js +1 -160
  45. package/dist/fn/Input/DigitCharacters.js +1 -275
  46. package/dist/fn/Input/Filer.js +1 -619
  47. package/dist/fn/Input/Hidden.js +1 -48
  48. package/dist/fn/Input/List.js +1 -450
  49. package/dist/fn/Input/Parts.js +1 -121
  50. package/dist/fn/Input/Plain.js +1 -12
  51. package/dist/fn/Input/RichSelect.js +1 -279
  52. package/dist/fn/Input/Search.js +1 -53
  53. package/dist/fn/Input/Segmented.js +1 -245
  54. package/dist/fn/Input/Select.js +1 -278
  55. package/dist/fn/Input/Slider.js +1 -538
  56. package/dist/fn/Input/Switch.js +1 -221
  57. package/dist/fn/Input/Text.js +1 -626
  58. package/dist/fn/Input/TextArea.js +1 -151
  59. package/dist/fn/Input/Time/Picker.js +1 -1457
  60. package/dist/fn/Input/Time/_.js +1 -867
  61. package/dist/fn/Input/_.js +1 -48
  62. package/dist/fn/Input/core.js +1 -626
  63. package/dist/fn/Layout/PageNotFound.js +1 -90
  64. package/dist/fn/Layout/PageRouter.js +1 -87
  65. package/dist/fn/Layout/PageViewController.js +1 -29
  66. package/dist/fn/Layout/Plate.js +1 -37
  67. package/dist/fn/Layout/RootViewController.js +1 -315
  68. package/dist/fn/Layout/SwipeView.js +1 -348
  69. package/dist/fn/Layout/TabBar.js +1 -72
  70. package/dist/fn/Layout/_.js +1 -22
  71. package/dist/fn/Loader/_.js +1 -104
  72. package/dist/fn/Loader/corner.js +1 -85
  73. package/dist/fn/Loader/mini.js +1 -125
  74. package/dist/fn/Loader/top.js +1 -73
  75. package/dist/fn/Sheet.d.ts +1 -0
  76. package/dist/fn/Sheet.js +1 -1101
  77. package/dist/fn/Snackbar.js +1 -216
  78. package/dist/fn/Table/Data.js +1 -974
  79. package/dist/fn/Table/Drag.js +1 -435
  80. package/dist/fn/Table/Normal.js +1 -136
  81. package/dist/fn/Table/Parts.js +1 -41
  82. package/dist/fn/Table/Wrapper.js +1 -60
  83. package/dist/fn/Table/_.js +1 -16
  84. package/dist/fn/Table/cellStyling.js +1 -51
  85. package/dist/fn/Tooltips.js +1 -58
  86. package/dist/fn/_.js +1 -10
  87. package/dist/index.js +1 -20
  88. package/dist/mols/Accordion.js +1 -152
  89. package/dist/mols/Column.js +1 -16
  90. package/dist/mols/LinkifyText.js +1 -42
  91. package/dist/mols/List.js +1 -42
  92. package/dist/mols/Row.js +1 -47
  93. package/dist/mols/Text.js +1 -67
  94. package/dist/mols/_.js +1 -6
  95. package/dist/temps/_.js +1 -1
  96. package/dist/temps/designBook.js +20 -3639
  97. package/package.json +1 -1
  98. package/dist/chunk-JJ3PEWPN.js +0 -60
@@ -1,103 +1 @@
1
- import "../chunk-JJ3PEWPN.js";
2
- import {
3
- $$,
4
- Config
5
- } from "./_";
6
- const ColorObjects = [
7
- { key: "comun", isBrand: false, isAvocado: true },
8
- { key: "leaf", isBrand: false, isAvocado: true },
9
- { key: "heart", isBrand: false, isAvocado: true },
10
- { key: "droplet", isBrand: false, isAvocado: true },
11
- { key: "brick", isBrand: false, isAvocado: false },
12
- { key: "flower", isBrand: false, isAvocado: false },
13
- { key: "lip", isBrand: false, isAvocado: false },
14
- { key: "wine", isBrand: false, isAvocado: false },
15
- { key: "theater", isBrand: false, isAvocado: false },
16
- { key: "bat", isBrand: false, isAvocado: false },
17
- { key: "poizon", isBrand: false, isAvocado: false },
18
- { key: "eggplant", isBrand: false, isAvocado: false },
19
- { key: "ufo", isBrand: false, isAvocado: false },
20
- { key: "alien", isBrand: false, isAvocado: false },
21
- { key: "tombstone", isBrand: false, isAvocado: false },
22
- { key: "ninja", isBrand: false, isAvocado: false },
23
- { key: "moon", isBrand: false, isAvocado: false },
24
- { key: "rain", isBrand: false, isAvocado: false },
25
- { key: "unicorn", isBrand: false, isAvocado: false },
26
- { key: "axe", isBrand: false, isAvocado: false },
27
- { key: "gem", isBrand: false, isAvocado: false },
28
- { key: "soap", isBrand: false, isAvocado: false },
29
- { key: "drizzle", isBrand: false, isAvocado: false },
30
- { key: "building", isBrand: false, isAvocado: false },
31
- { key: "fish", isBrand: false, isAvocado: false },
32
- { key: "icicles", isBrand: false, isAvocado: false },
33
- { key: "water", isBrand: false, isAvocado: false },
34
- { key: "tree1", isBrand: false, isAvocado: false },
35
- { key: "tree2", isBrand: false, isAvocado: false },
36
- { key: "tree3", isBrand: false, isAvocado: false },
37
- { key: "battery", isBrand: false, isAvocado: false },
38
- { key: "seedle", isBrand: false, isAvocado: false },
39
- { key: "greenTea", isBrand: false, isAvocado: false },
40
- { key: "oak", isBrand: false, isAvocado: false },
41
- { key: "salad", isBrand: false, isAvocado: false },
42
- { key: "cloudy", isBrand: false, isAvocado: false },
43
- { key: "lemon", isBrand: false, isAvocado: false },
44
- { key: "angel", isBrand: false, isAvocado: false },
45
- { key: "parasol", isBrand: false, isAvocado: false },
46
- { key: "pizza", isBrand: false, isAvocado: false },
47
- { key: "thunder", isBrand: false, isAvocado: false },
48
- { key: "latte", isBrand: false, isAvocado: false },
49
- { key: "island", isBrand: false, isAvocado: false },
50
- { key: "shovel", isBrand: false, isAvocado: false },
51
- { key: "coffee", isBrand: false, isAvocado: false },
52
- { key: "carrot", isBrand: false, isAvocado: false },
53
- { key: "cactus", isBrand: false, isAvocado: false },
54
- { key: "volcano", isBrand: false, isAvocado: false },
55
- { key: "choco", isBrand: false, isAvocado: false },
56
- { key: "industry", isBrand: false, isAvocado: false },
57
- { key: "gun", isBrand: false, isAvocado: false },
58
- { key: "galaxy", isBrand: false, isAvocado: false },
59
- { key: "line", isBrand: true, isAvocado: false },
60
- { key: "twitter", isBrand: true, isAvocado: false },
61
- { key: "amazon", isBrand: true, isAvocado: false },
62
- { key: "facebook", isBrand: true, isAvocado: false },
63
- { key: "android", isBrand: true, isAvocado: false },
64
- { key: "slackBlue", isBrand: true, isAvocado: false },
65
- { key: "slackGreen", isBrand: true, isAvocado: false },
66
- { key: "slackRed", isBrand: true, isAvocado: false },
67
- { key: "slackYellow", isBrand: true, isAvocado: false },
68
- { key: "slackBase", isBrand: true, isAvocado: false },
69
- { key: "googleBlue", isBrand: true, isAvocado: false },
70
- { key: "googleGreen", isBrand: true, isAvocado: false },
71
- { key: "googleYellow", isBrand: true, isAvocado: false },
72
- { key: "googleRed", isBrand: true, isAvocado: false }
73
- ];
74
- const SetThemeColorTag = () => {
75
- let hex = "#45515c";
76
- let meta = $$("#ThemeColorMetaTag");
77
- if (!meta[0])
78
- return;
79
- meta.setAttribute("content", hex);
80
- };
81
- const DarkmodeColors = {
82
- light: "#FFF",
83
- dark: "#333",
84
- dim: "#666",
85
- auto: () => {
86
- return Config.get().isSystemDarkmode() ? "#333" : "#FFF";
87
- }
88
- };
89
- const ThemeColors = {};
90
- ColorObjects.forEach((ColorObject) => {
91
- let { key, isAvocado, isBrand } = ColorObject;
92
- ThemeColors[key] = {
93
- alfa: (alfa) => `hsla( var( --cH_${key} ),var( --cS_${key} ),var( --cL_${key} ),${alfa != null ? alfa : 1} ) `,
94
- isAvocado,
95
- isBrand
96
- };
97
- });
98
- export {
99
- ColorObjects,
100
- DarkmodeColors,
101
- SetThemeColorTag,
102
- ThemeColors
103
- };
1
+ import"../chunk-VY3566IV.js";import{$$ as d,Config as r}from"./_";const f=[{key:"comun",isBrand:!1,isAvocado:!0},{key:"leaf",isBrand:!1,isAvocado:!0},{key:"heart",isBrand:!1,isAvocado:!0},{key:"droplet",isBrand:!1,isAvocado:!0},{key:"brick",isBrand:!1,isAvocado:!1},{key:"flower",isBrand:!1,isAvocado:!1},{key:"lip",isBrand:!1,isAvocado:!1},{key:"wine",isBrand:!1,isAvocado:!1},{key:"theater",isBrand:!1,isAvocado:!1},{key:"bat",isBrand:!1,isAvocado:!1},{key:"poizon",isBrand:!1,isAvocado:!1},{key:"eggplant",isBrand:!1,isAvocado:!1},{key:"ufo",isBrand:!1,isAvocado:!1},{key:"alien",isBrand:!1,isAvocado:!1},{key:"tombstone",isBrand:!1,isAvocado:!1},{key:"ninja",isBrand:!1,isAvocado:!1},{key:"moon",isBrand:!1,isAvocado:!1},{key:"rain",isBrand:!1,isAvocado:!1},{key:"unicorn",isBrand:!1,isAvocado:!1},{key:"axe",isBrand:!1,isAvocado:!1},{key:"gem",isBrand:!1,isAvocado:!1},{key:"soap",isBrand:!1,isAvocado:!1},{key:"drizzle",isBrand:!1,isAvocado:!1},{key:"building",isBrand:!1,isAvocado:!1},{key:"fish",isBrand:!1,isAvocado:!1},{key:"icicles",isBrand:!1,isAvocado:!1},{key:"water",isBrand:!1,isAvocado:!1},{key:"tree1",isBrand:!1,isAvocado:!1},{key:"tree2",isBrand:!1,isAvocado:!1},{key:"tree3",isBrand:!1,isAvocado:!1},{key:"battery",isBrand:!1,isAvocado:!1},{key:"seedle",isBrand:!1,isAvocado:!1},{key:"greenTea",isBrand:!1,isAvocado:!1},{key:"oak",isBrand:!1,isAvocado:!1},{key:"salad",isBrand:!1,isAvocado:!1},{key:"cloudy",isBrand:!1,isAvocado:!1},{key:"lemon",isBrand:!1,isAvocado:!1},{key:"angel",isBrand:!1,isAvocado:!1},{key:"parasol",isBrand:!1,isAvocado:!1},{key:"pizza",isBrand:!1,isAvocado:!1},{key:"thunder",isBrand:!1,isAvocado:!1},{key:"latte",isBrand:!1,isAvocado:!1},{key:"island",isBrand:!1,isAvocado:!1},{key:"shovel",isBrand:!1,isAvocado:!1},{key:"coffee",isBrand:!1,isAvocado:!1},{key:"carrot",isBrand:!1,isAvocado:!1},{key:"cactus",isBrand:!1,isAvocado:!1},{key:"volcano",isBrand:!1,isAvocado:!1},{key:"choco",isBrand:!1,isAvocado:!1},{key:"industry",isBrand:!1,isAvocado:!1},{key:"gun",isBrand:!1,isAvocado:!1},{key:"galaxy",isBrand:!1,isAvocado:!1},{key:"line",isBrand:!0,isAvocado:!1},{key:"twitter",isBrand:!0,isAvocado:!1},{key:"amazon",isBrand:!0,isAvocado:!1},{key:"facebook",isBrand:!0,isAvocado:!1},{key:"android",isBrand:!0,isAvocado:!1},{key:"slackBlue",isBrand:!0,isAvocado:!1},{key:"slackGreen",isBrand:!0,isAvocado:!1},{key:"slackRed",isBrand:!0,isAvocado:!1},{key:"slackYellow",isBrand:!0,isAvocado:!1},{key:"slackBase",isBrand:!0,isAvocado:!1},{key:"googleBlue",isBrand:!0,isAvocado:!1},{key:"googleGreen",isBrand:!0,isAvocado:!1},{key:"googleYellow",isBrand:!0,isAvocado:!1},{key:"googleRed",isBrand:!0,isAvocado:!1}],y=()=>{let e="#45515c",a=d("#ThemeColorMetaTag");a[0]&&a.setAttribute("content",e)},n={light:"#FFF",dark:"#333",dim:"#666",auto:()=>r.get().isSystemDarkmode()?"#333":"#FFF"},o={};f.forEach(e=>{let{key:a,isAvocado:i,isBrand:l}=e;o[a]={alfa:s=>`hsla( var( --cH_${a} ),var( --cS_${a} ),var( --cL_${a} ),${s!=null?s:1} ) `,isAvocado:i,isBrand:l}});export{f as ColorObjects,n as DarkmodeColors,y as SetThemeColorTag,o as ThemeColors};
@@ -1,101 +1 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "../chunk-JJ3PEWPN.js";
5
- import {
6
- $$
7
- } from "./_";
8
- import { useRecycle } from "./useRecycle";
9
- import {
10
- ColorObjects,
11
- SetThemeColorTag
12
- } from "./color";
13
- const sessionUID = $$.uuid.gen();
14
- const userAgent = window.navigator.userAgent.toLowerCase();
15
- const deviceType = userAgent.indexOf("windows nt") !== -1 ? "windows" : userAgent.indexOf("android") !== -1 ? "android" : userAgent.indexOf("iphone") !== -1 ? "iPhone" : userAgent.indexOf("ipad") > -1 || userAgent.indexOf("macintosh") > -1 && "ontouchend" in document ? "iPad" : userAgent.indexOf("mac os x") !== -1 ? "macOSX" : "undefined";
16
- const browserType = userAgent.indexOf("msie") !== -1 || userAgent.indexOf("trident") !== -1 ? "ie" : userAgent.indexOf("edge") !== -1 ? "edge" : userAgent.indexOf("chrome") !== -1 ? "chrome" : userAgent.indexOf("safari") !== -1 ? "safari" : userAgent.indexOf("firefox") !== -1 ? "firefox" : userAgent.indexOf("opera") !== -1 || userAgent.indexOf("opr") !== -1 ? "opera" : "undefined";
17
- let __inmemoryConfig = {
18
- sessionUID,
19
- appRoot: document.body,
20
- darkMode: "light",
21
- themeColor: "comun",
22
- roundness: 2,
23
- isSystemDarkmode: () => {
24
- return window.matchMedia("(prefers-color-scheme: dark)").matches == true;
25
- },
26
- deviceIs: deviceType,
27
- browserIs: browserType,
28
- isPhone: ["Android", "iPhone"].includes(deviceType),
29
- isTouchDevice: window.ontouchstart !== void 0 && 0 < navigator.maxTouchPoints,
30
- isIOS: ["iPhone", "iPad"].includes(deviceType),
31
- screen: {
32
- breakpoint: 834,
33
- phonepoint: 690,
34
- viewHeight: window.innerHeight,
35
- viewWidth: window.innerWidth,
36
- isBreakpoint: (px = 834) => window.innerWidth <= px,
37
- isPhonepoint: (px = 690) => window.innerWidth <= px
38
- }
39
- };
40
- const Config = {
41
- get: () => {
42
- return __inmemoryConfig;
43
- },
44
- set: (config) => {
45
- __inmemoryConfig = __spreadValues(__spreadValues({}, __inmemoryConfig), config);
46
- },
47
- update: {
48
- appRoot: (value) => {
49
- Config.set(__spreadProps(__spreadValues({}, Config.get()), {
50
- appRoot: value
51
- }));
52
- },
53
- themeColor: (value) => {
54
- if (!ColorObjects.find((ColorObject) => ColorObject.key == value))
55
- value = "comun";
56
- if (value == Config.get().themeColor)
57
- return;
58
- Config.set(__spreadProps(__spreadValues({}, Config.get()), {
59
- themeColor: value
60
- }));
61
- let body = $$(document.body);
62
- body.removeClass(body.findClass(/^bdsTC/)).addClass("bdsTC_" + value).callback(() => {
63
- SetThemeColorTag();
64
- });
65
- Config.restart();
66
- },
67
- darkMode: (value) => {
68
- if (!["light", "dark", "dim", "auto"].includes(value))
69
- value = "light";
70
- if (value == Config.get().darkMode)
71
- return;
72
- let Value = value == "auto" ? Config.get().isSystemDarkmode() ? "dark" : "light" : value;
73
- Config.set(__spreadProps(__spreadValues({}, Config.get()), {
74
- darkMode: Value
75
- }));
76
- let body = $$(document.body);
77
- body.removeClass(body.findClass(/^bdsDM/)).addClass("bdsDM_" + Value);
78
- Config.restart();
79
- },
80
- roundness: (value) => {
81
- if (!(value >= 0 && value <= 5))
82
- value = 2;
83
- if (value == Config.get().roundness)
84
- return;
85
- Config.set(__spreadProps(__spreadValues({}, Config.get()), {
86
- roundness: value
87
- }));
88
- Config.restart();
89
- },
90
- screen: (value) => {
91
- Config.get().screen = __spreadValues(__spreadValues({}, Config.get().screen), value);
92
- }
93
- },
94
- restart: () => {
95
- useRecycle.do("RootViewController_" + Config.get().sessionUID);
96
- }
97
- };
98
- export {
99
- Config,
100
- Config as default
101
- };
1
+ import{b as i,c as t}from"../chunk-VY3566IV.js";import{$$ as s}from"./_";import{useRecycle as c}from"./useRecycle";import{ColorObjects as h,SetThemeColorTag as u}from"./color";const f=s.uuid.gen(),n=window.navigator.userAgent.toLowerCase(),a=n.indexOf("windows nt")!==-1?"windows":n.indexOf("android")!==-1?"android":n.indexOf("iphone")!==-1?"iPhone":n.indexOf("ipad")>-1||n.indexOf("macintosh")>-1&&"ontouchend"in document?"iPad":n.indexOf("mac os x")!==-1?"macOSX":"undefined",p=n.indexOf("msie")!==-1||n.indexOf("trident")!==-1?"ie":n.indexOf("edge")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("safari")!==-1?"safari":n.indexOf("firefox")!==-1?"firefox":n.indexOf("opera")!==-1||n.indexOf("opr")!==-1?"opera":"undefined";let m={sessionUID:f,appRoot:document.body,darkMode:"light",themeColor:"comun",roundness:2,isSystemDarkmode:()=>window.matchMedia("(prefers-color-scheme: dark)").matches==!0,deviceIs:a,browserIs:p,isPhone:["Android","iPhone"].includes(a),isTouchDevice:window.ontouchstart!==void 0&&0<navigator.maxTouchPoints,isIOS:["iPhone","iPad"].includes(a),screen:{breakpoint:834,phonepoint:690,viewHeight:window.innerHeight,viewWidth:window.innerWidth,isBreakpoint:(e=834)=>window.innerWidth<=e,isPhonepoint:(e=690)=>window.innerWidth<=e}};const o={get:()=>m,set:e=>{m=i(i({},m),e)},update:{appRoot:e=>{o.set(t(i({},o.get()),{appRoot:e}))},themeColor:e=>{if(h.find(d=>d.key==e)||(e="comun"),e==o.get().themeColor)return;o.set(t(i({},o.get()),{themeColor:e}));let r=s(document.body);r.removeClass(r.findClass(/^bdsTC/)).addClass("bdsTC_"+e).callback(()=>{u()}),o.restart()},darkMode:e=>{if(["light","dark","dim","auto"].includes(e)||(e="light"),e==o.get().darkMode)return;let r=e=="auto"?o.get().isSystemDarkmode()?"dark":"light":e;o.set(t(i({},o.get()),{darkMode:r}));let d=s(document.body);d.removeClass(d.findClass(/^bdsDM/)).addClass("bdsDM_"+r),o.restart()},roundness:e=>{e>=0&&e<=5||(e=2),e!=o.get().roundness&&(o.set(t(i({},o.get()),{roundness:e})),o.restart())},screen:e=>{o.get().screen=i(i({},o.get().screen),e)}},restart:()=>{c.do("RootViewController_"+o.get().sessionUID)}};export{o as Config,o as default};
@@ -1,39 +1 @@
1
- import {
2
- $$,
3
- Config,
4
- SetThemeColorTag
5
- } from "./_";
6
- $$(document.body).addClass([
7
- "usrDevice_" + Config.get().deviceIs,
8
- "bdsDM_" + Config.get().darkMode,
9
- "bdsTC_" + Config.get().themeColor
10
- ]);
11
- $$(window).addEvent({
12
- eventType: "load",
13
- callback: () => {
14
- let style = document.body.style;
15
- let Body = $$(document.body);
16
- let topNavHeight = Number(Body.getStyleProperty("--topNavHeight").removeLetters() || 0);
17
- let footerNavHeight = Number(Body.getStyleProperty("--footerNavHeight").removeLetters() || 0);
18
- let viewHeight = window.innerHeight;
19
- let contentHeight = viewHeight - topNavHeight - footerNavHeight;
20
- style.setProperty("--viewHeight", window.innerHeight + "px");
21
- style.setProperty("--contentHeight", contentHeight + "px");
22
- }
23
- }).addEvent({
24
- eventType: "resize",
25
- eventID: "getDeviceInfo",
26
- callback: () => {
27
- Config.update.screen({
28
- viewHeight: window.innerHeight,
29
- viewWidth: window.innerWidth
30
- });
31
- let Body = $$(document.body);
32
- let viewHeight = window.innerHeight;
33
- let topNavHeight = Number(Body.getStyleProperty("--topNavHeight").removeLetters());
34
- let footerNavHeight = Number(Body.getStyleProperty("--footerNavHeight").removeLetters());
35
- let contentHeight = viewHeight - topNavHeight - footerNavHeight;
36
- Body.setStyleProperty("--viewHeight", viewHeight + "px").setStyleProperty("--sideNavHeight", contentHeight + "px").setStyleProperty("--contentHeight", contentHeight + "px");
37
- }
38
- });
39
- SetThemeColorTag();
1
+ import{$$ as o,Config as i,SetThemeColorTag as l}from"./_";o(document.body).addClass(["usrDevice_"+i.get().deviceIs,"bdsDM_"+i.get().darkMode,"bdsTC_"+i.get().themeColor]),o(window).addEvent({eventType:"load",callback:()=>{let e=document.body.style,t=o(document.body),r=Number(t.getStyleProperty("--topNavHeight").removeLetters()||0),n=Number(t.getStyleProperty("--footerNavHeight").removeLetters()||0),d=window.innerHeight-r-n;e.setProperty("--viewHeight",window.innerHeight+"px"),e.setProperty("--contentHeight",d+"px")}}).addEvent({eventType:"resize",eventID:"getDeviceInfo",callback:()=>{i.update.screen({viewHeight:window.innerHeight,viewWidth:window.innerWidth});let e=o(document.body),t=window.innerHeight,r=Number(e.getStyleProperty("--topNavHeight").removeLetters()),n=Number(e.getStyleProperty("--footerNavHeight").removeLetters()),g=t-r-n;e.setStyleProperty("--viewHeight",t+"px").setStyleProperty("--sideNavHeight",g+"px").setStyleProperty("--contentHeight",g+"px")}}),l();
@@ -1,13 +1 @@
1
- import "../chunk-JJ3PEWPN.js";
2
- import Config from "./config";
3
- import $$ from "@mingoo/jsmin";
4
- const $$fromRoot = (args) => {
5
- let appRoot = Config.get().appRoot;
6
- if ($$.is.shadowRoot(appRoot))
7
- return $$(appRoot).find(args);
8
- return $$(args);
9
- };
10
- export {
11
- $$fromRoot,
12
- $$fromRoot as default
13
- };
1
+ import"../chunk-VY3566IV.js";import e from"./config";import o from"@mingoo/jsmin";const p=t=>{let r=e.get().appRoot;return o.is.shadowRoot(r)?o(r).find(t):o(t)};export{p as $$fromRoot,p as default};
@@ -1,172 +1 @@
1
- import {
2
- __async
3
- } from "../chunk-JJ3PEWPN.js";
4
- import $$ from "@mingoo/jsmin";
5
- let publicURI = "https://cdn.amotify.com/";
6
- $$.CDNReader = (url) => {
7
- return new Promise((resolve, reject) => {
8
- if (!url)
9
- return resolve(false);
10
- let tag = document.createElement("script");
11
- tag.src = url;
12
- tag.addEventListener("load", () => {
13
- resolve(true);
14
- });
15
- $$(document.body).append(tag);
16
- });
17
- };
18
- {
19
- const D = (wb, fn) => {
20
- return new D.fn.SpreadSheet(wb, fn);
21
- };
22
- D.fn = D.prototype = {};
23
- $$.extend({
24
- SpreadSheet: function(workbook, fileName) {
25
- this.ok = true;
26
- try {
27
- this.workbook = workbook;
28
- this.fileName = fileName;
29
- } catch (error) {
30
- console.log(error);
31
- this.ok = false;
32
- }
33
- return this;
34
- },
35
- isValid: function() {
36
- return this.ok;
37
- },
38
- getWorkbook: function() {
39
- return this.workbook;
40
- },
41
- updateFileName: function(fileName) {
42
- this.fileName = fileName;
43
- return this;
44
- },
45
- updateMerges: function(merges) {
46
- let json = this.toJson();
47
- json.sheets.forEach((sheet, index) => {
48
- let sheetMerges = merges[index];
49
- const worksheet = this.workbook.getWorksheet(sheet.sheetName);
50
- for (let [from, to] of sheetMerges) {
51
- if (from && to)
52
- worksheet.mergeCells(from + ":" + to);
53
- }
54
- });
55
- },
56
- updateStyles: function(styles) {
57
- let json = this.toJson();
58
- json.sheets.forEach((sheet, index) => {
59
- let sheetStyles = styles[index];
60
- const worksheet = this.workbook.getWorksheet(sheet.sheetName);
61
- for (let style of sheetStyles) {
62
- let {
63
- type,
64
- target,
65
- values
66
- } = style;
67
- let Targets = $$.flatArray(target);
68
- for (let [key, value] of Object.entries(values))
69
- for (let Target of Targets)
70
- worksheet["get" + type.toCapital()](Target)[key] = value;
71
- }
72
- });
73
- },
74
- toJson: function() {
75
- let json = {
76
- fileName: this.fileName,
77
- sheets: []
78
- };
79
- this.workbook.eachSheet((sheet, id) => {
80
- let sheetJson = {
81
- sheetName: sheet.name,
82
- rows: []
83
- };
84
- sheet.eachRow((row, rowIndex) => {
85
- let [emp, ...values] = row.values;
86
- sheetJson.rows.push(values);
87
- });
88
- json.sheets.push(sheetJson);
89
- });
90
- return json;
91
- },
92
- export: function(fileType) {
93
- return __async(this, null, function* () {
94
- fileType = fileType || "xlsx";
95
- const uint8Array = yield this.workbook[fileType].writeBuffer();
96
- const blob = new Blob([uint8Array], { type: "application/octet-binary" });
97
- const dummyAnchor = document.createElement("a");
98
- dummyAnchor.href = (window.URL || window.webkitURL).createObjectURL(blob);
99
- dummyAnchor.download = this.fileName + "." + fileType;
100
- dummyAnchor.click();
101
- dummyAnchor.remove();
102
- });
103
- }
104
- }, D);
105
- D.fn.SpreadSheet.prototype = D.fn;
106
- D.fn.SpreadSheet.prototype.constructor = D;
107
- let cdn_excelJS = publicURI + "@env/@foreign/exceljs.min.js";
108
- $$.spreadSheet = {
109
- readFromFile: (file) => __async(void 0, null, function* () {
110
- if (!window.ExcelJS)
111
- yield $$.CDNReader(cdn_excelJS);
112
- if (!window.ExcelJS)
113
- return;
114
- let fileType = file.type;
115
- let fileName = file.name.replace(/\.[^/.]+$/, "");
116
- if (fileType.match(/csv/)) {
117
- let csv = yield file.text();
118
- const rows = csv.split(/[\n\r]+/).map((row) => row.split(/,/));
119
- const workbook2 = new ExcelJS.Workbook();
120
- const workSheet = workbook2.addWorksheet("Sheet1");
121
- rows.forEach((row) => workSheet.addRow(row));
122
- return D(workbook2, fileName);
123
- }
124
- const workbook = new ExcelJS.Workbook();
125
- const buffer = (yield file.read("binaryString")).target.result;
126
- return D(yield workbook.xlsx.load(buffer), fileName);
127
- }),
128
- readFromJson: (params) => __async(void 0, null, function* () {
129
- if (!window.ExcelJS)
130
- yield $$.CDNReader(cdn_excelJS);
131
- if (!window.ExcelJS)
132
- return;
133
- let {
134
- sheets,
135
- fileName = ""
136
- } = params;
137
- fileName = fileName || $$.uuid.gen();
138
- const workbook = new ExcelJS.Workbook();
139
- sheets.forEach((sheet, index) => {
140
- let {
141
- sheetName,
142
- rows,
143
- merges = [],
144
- styles = []
145
- } = sheet;
146
- sheetName = sheetName || "\u30B7\u30FC\u30C8" + (index + 1);
147
- workbook.addWorksheet(sheetName);
148
- const worksheet = workbook.getWorksheet(sheetName);
149
- worksheet.addRows(rows);
150
- for (let [from, to] of merges)
151
- if (from && to)
152
- worksheet.mergeCells(from + ":" + to);
153
- for (let style of styles) {
154
- let {
155
- type,
156
- target,
157
- values
158
- } = style;
159
- let Targets = $$.flatArray(target);
160
- for (let [key, value] of Object.entries(values))
161
- for (let Target of Targets)
162
- worksheet["get" + type.toCapital()](Target)[key] = value;
163
- }
164
- });
165
- return D(workbook, fileName);
166
- })
167
- };
168
- }
169
- export {
170
- $$,
171
- $$ as default
172
- };
1
+ import{e as y}from"../chunk-VY3566IV.js";import i from"@mingoo/jsmin";let J="https://cdn.amotify.com/";i.CDNReader=r=>new Promise((f,e)=>{if(!r)return f(!1);let t=document.createElement("script");t.src=r,t.addEventListener("load",()=>{f(!0)}),i(document.body).append(t)});{const r=(e,t)=>new r.fn.SpreadSheet(e,t);r.fn=r.prototype={},i.extend({SpreadSheet:function(e,t){this.ok=!0;try{this.workbook=e,this.fileName=t}catch(s){console.log(s),this.ok=!1}return this},isValid:function(){return this.ok},getWorkbook:function(){return this.workbook},updateFileName:function(e){return this.fileName=e,this},updateMerges:function(e){this.toJson().sheets.forEach((s,o)=>{let l=e[o];const c=this.workbook.getWorksheet(s.sheetName);for(let[n,a]of l)n&&a&&c.mergeCells(n+":"+a)})},updateStyles:function(e){this.toJson().sheets.forEach((s,o)=>{let l=e[o];const c=this.workbook.getWorksheet(s.sheetName);for(let n of l){let{type:a,target:p,values:h}=n,u=i.flatArray(p);for(let[d,m]of Object.entries(h))for(let w of u)c["get"+a.toCapital()](w)[d]=m}})},toJson:function(){let e={fileName:this.fileName,sheets:[]};return this.workbook.eachSheet((t,s)=>{let o={sheetName:t.name,rows:[]};t.eachRow((l,c)=>{let[n,...a]=l.values;o.rows.push(a)}),e.sheets.push(o)}),e},export:function(e){return y(this,null,function*(){e=e||"xlsx";const t=yield this.workbook[e].writeBuffer(),s=new Blob([t],{type:"application/octet-binary"}),o=document.createElement("a");o.href=(window.URL||window.webkitURL).createObjectURL(s),o.download=this.fileName+"."+e,o.click(),o.remove()})}},r),r.fn.SpreadSheet.prototype=r.fn,r.fn.SpreadSheet.prototype.constructor=r;let f=J+"@env/@foreign/exceljs.min.js";i.spreadSheet={readFromFile:e=>y(void 0,null,function*(){if(window.ExcelJS||(yield i.CDNReader(f)),!window.ExcelJS)return;let t=e.type,s=e.name.replace(/\.[^/.]+$/,"");if(t.match(/csv/)){const n=(yield e.text()).split(/[\n\r]+/).map(h=>h.split(/,/)),a=new ExcelJS.Workbook,p=a.addWorksheet("Sheet1");return n.forEach(h=>p.addRow(h)),r(a,s)}const o=new ExcelJS.Workbook,l=(yield e.read("binaryString")).target.result;return r(yield o.xlsx.load(l),s)}),readFromJson:e=>y(void 0,null,function*(){if(window.ExcelJS||(yield i.CDNReader(f)),!window.ExcelJS)return;let{sheets:t,fileName:s=""}=e;s=s||i.uuid.gen();const o=new ExcelJS.Workbook;return t.forEach((l,c)=>{let{sheetName:n,rows:a,merges:p=[],styles:h=[]}=l;n=n||"\u30B7\u30FC\u30C8"+(c+1),o.addWorksheet(n);const u=o.getWorksheet(n);u.addRows(a);for(let[d,m]of p)d&&m&&u.mergeCells(d+":"+m);for(let d of h){let{type:m,target:w,values:S}=d,g=i.flatArray(w);for(let[k,x]of Object.entries(S))for(let b of g)u["get"+m.toCapital()](b)[k]=x}}),r(o,s)})}}export{i as $$,i as default};
@@ -1,33 +1 @@
1
- import "../chunk-JJ3PEWPN.js";
2
- import { useStore } from "./useStore";
3
- const pageTransit = {
4
- open: (url) => {
5
- window.open(url);
6
- },
7
- pushSync: (url) => {
8
- window.location.href = url;
9
- },
10
- pushAsync: (url) => {
11
- if (url.match(/https?:\/\//)) {
12
- pageTransit.pushSync(url);
13
- return;
14
- }
15
- let navigate = useStore.get("navigate");
16
- navigate && navigate(url);
17
- },
18
- push: (url, newTab) => {
19
- if (newTab) {
20
- pageTransit.open(url);
21
- return;
22
- }
23
- pageTransit.pushAsync(url);
24
- },
25
- back: () => {
26
- let navigate = useStore.get("navigate");
27
- navigate && navigate(-1);
28
- }
29
- };
30
- export {
31
- pageTransit as default,
32
- pageTransit
33
- };
1
+ import"../chunk-VY3566IV.js";import{useStore as s}from"./useStore";const n={open:e=>{window.open(e)},pushSync:e=>{window.location.href=e},pushAsync:e=>{if(e.match(/https?:\/\//)){n.pushSync(e);return}let t=s.get("navigate");t&&t(e)},push:(e,t)=>{if(t){n.open(e);return}n.pushAsync(e)},back:()=>{let e=s.get("navigate");e&&e(-1)}};export{n as default,n as pageTransit};
@@ -1,44 +1 @@
1
- import "../chunk-JJ3PEWPN.js";
2
- import { $$ } from "./_";
3
- import useStore from "./useStore";
4
- import {
5
- useState
6
- } from "react";
7
- const useRecycle = {
8
- set: (key) => {
9
- var _a;
10
- let [val_recycleID] = useState($$.uuid.gen());
11
- let [val_refresh, set_refresh] = useState($$.uuid.gen());
12
- useStore.set({
13
- key: "RecycleKey_" + val_recycleID,
14
- value: () => {
15
- set_refresh($$.uuid.gen());
16
- }
17
- });
18
- useStore.update({
19
- key: "RecycleKeys_" + key,
20
- value: {
21
- keys: [
22
- ...((_a = useStore.get("RecycleKeys_" + key)) == null ? void 0 : _a.keys) || [],
23
- val_recycleID
24
- ]
25
- }
26
- });
27
- return val_refresh;
28
- },
29
- do: (key) => {
30
- var _a;
31
- let Keys = ((_a = useStore.get("RecycleKeys_" + key)) == null ? void 0 : _a.keys) || [];
32
- if (!Keys.length)
33
- return;
34
- for (let key2 of Keys) {
35
- let receiver = useStore.get("RecycleKey_" + key2);
36
- if (receiver)
37
- receiver();
38
- }
39
- }
40
- };
41
- export {
42
- useRecycle as default,
43
- useRecycle
44
- };
1
+ import"../chunk-VY3566IV.js";import{$$ as l}from"./_";import s from"./useStore";import{useState as u}from"react";const o={set:r=>{var t;let[e]=u(l.uuid.gen()),[y,c]=u(l.uuid.gen());return s.set({key:"RecycleKey_"+e,value:()=>{c(l.uuid.gen())}}),s.update({key:"RecycleKeys_"+r,value:{keys:[...((t=s.get("RecycleKeys_"+r))==null?void 0:t.keys)||[],e]}}),y},do:r=>{var y;let e=((y=s.get("RecycleKeys_"+r))==null?void 0:y.keys)||[];if(e.length)for(let c of e){let t=s.get("RecycleKey_"+c);t&&t()}}};export{o as default,o as useRecycle};
@@ -1,54 +1 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "../chunk-JJ3PEWPN.js";
5
- const Inmemory = {};
6
- const useStore = {
7
- set: (params) => {
8
- let {
9
- key,
10
- value,
11
- privateKey
12
- } = params;
13
- let Prev = Inmemory[key] || {};
14
- if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
15
- return false;
16
- Inmemory[key] = {
17
- privateKey,
18
- value
19
- };
20
- return true;
21
- },
22
- update: (params) => {
23
- var _a;
24
- let {
25
- key,
26
- value,
27
- privateKey
28
- } = params;
29
- let Prev = Inmemory[key] || {};
30
- if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
31
- return false;
32
- Inmemory[key] = __spreadProps(__spreadValues({}, Inmemory[key]), {
33
- value: __spreadValues(__spreadValues({}, (_a = Inmemory[key]) == null ? void 0 : _a.value), value)
34
- });
35
- return true;
36
- },
37
- get: (key, privateKey) => {
38
- let Data = Inmemory[key];
39
- if (Data && Data.privateKey && Data.privateKey != privateKey)
40
- return void 0;
41
- return Data == null ? void 0 : Data.value;
42
- },
43
- delete: (key, privateKey) => {
44
- let Data = Inmemory[key];
45
- if (Data && Data.privateKey && Data.privateKey != privateKey)
46
- return false;
47
- delete Inmemory[key];
48
- return true;
49
- }
50
- };
51
- export {
52
- useStore as default,
53
- useStore
54
- };
1
+ import{b as y,c as v}from"../chunk-VY3566IV.js";const r={},u={set:a=>{let{key:t,value:e,privateKey:n}=a,i=r[t]||{};return i&&i.privateKey&&i.privateKey!=n?!1:(r[t]={privateKey:n,value:e},!0)},update:a=>{var s;let{key:t,value:e,privateKey:n}=a,i=r[t]||{};return i&&i.privateKey&&i.privateKey!=n?!1:(r[t]=v(y({},r[t]),{value:y(y({},(s=r[t])==null?void 0:s.value),e)}),!0)},get:(a,t)=>{let e=r[a];if(!(e&&e.privateKey&&e.privateKey!=t))return e==null?void 0:e.value},delete:(a,t)=>{let e=r[a];return e&&e.privateKey&&e.privateKey!=t?!1:(delete r[a],!0)}};export{u as default,u as useStore};
package/dist/atoms/Box.js CHANGED
@@ -1,20 +1 @@
1
- import {
2
- __objRest,
3
- __spreadValues
4
- } from "../chunk-JJ3PEWPN.js";
5
- import { jsx } from "react/jsx-runtime";
6
- import {
7
- GenerateClassName
8
- } from "../@utils/_";
9
- const Box = (params) => {
10
- let _a = GenerateClassName(params), {
11
- freeCSS
12
- } = _a, Params = __objRest(_a, [
13
- "freeCSS"
14
- ]);
15
- return /* @__PURE__ */ jsx("div", __spreadValues({}, Params));
16
- };
17
- export {
18
- Box,
19
- Box as default
20
- };
1
+ import{b as t,d as r}from"../chunk-VY3566IV.js";import{jsx as n}from"react/jsx-runtime";import{GenerateClassName as p}from"../@utils/_";const a=o=>{let e=p(o),{freeCSS:c}=e,m=r(e,["freeCSS"]);return n("div",t({},m))};export{a as Box,a as default};