amotify 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/@types/_.d.ts → @types/_.tsx} +3 -4
- package/{src/@types → @types}/amot.tsx +125 -85
- package/{src/@types → @types}/fn.tsx +52 -53
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/@types/module.tsx +1 -0
- package/dist/amotify.js +328 -0
- package/{public → dist}/amotify.min.css +339 -339
- package/package.json +11 -12
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +9 -9
- package/src/@jsminAmotifyExtension/formCollect.tsx +1 -1
- package/src/{Molecules/@export.tsx → @molecules.tsx} +5 -4
- package/src/@organisms.tsx +5 -0
- package/src/@styles/UniStyling.scss +1 -1
- package/src/@styles/init.scss +1 -1
- package/src/@styles/styleSet.scss +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/parts.tsx +4 -3
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +2 -2
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/parts.tsx +10 -9
- package/src/{Atoms → atoms}/Various/style.module.scss +3 -2
- package/src/config.tsx +4 -4
- package/src/{Functions → functions}/Button/_.tsx +2 -1
- package/src/{Functions → functions}/Button/style.module.scss +3 -2
- package/src/{Functions → functions}/Cropper/parts.tsx +16 -20
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/Fade.tsx +6 -11
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +17 -21
- package/src/{Functions → functions}/Input/Chips/_.tsx +12 -17
- package/src/functions/Input/Chips/style.module.scss +6 -0
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +6 -10
- package/src/{Functions → functions}/Input/File/_.tsx +13 -16
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Hidden.tsx +4 -3
- package/src/{Functions → functions}/Input/List/_.tsx +8 -12
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/_.tsx +2 -2
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Select/_.tsx +8 -11
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +9 -12
- package/src/{Functions → functions}/Input/Slider/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Switch/_.tsx +7 -11
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Text.tsx +6 -11
- package/src/{Functions → functions}/Input/TextArea.tsx +4 -8
- package/src/{Functions → functions}/Input/Time/Picker.tsx +11 -16
- package/src/{Functions → functions}/Input/Time/_.tsx +13 -17
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +12 -17
- package/src/{Functions → functions}/Input/core.tsx +14 -19
- package/src/{Functions → functions}/Input/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/text.tsx +5 -17
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +6 -7
- package/src/{Functions → functions}/Layout/PageRouter.tsx +25 -34
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +6 -9
- package/src/{Functions → functions}/Layout/Plate.tsx +3 -2
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +6 -8
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +11 -16
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +6 -10
- package/src/{Functions → functions}/Loader/corner.tsx +6 -12
- package/src/{Functions → functions}/Loader/mini.tsx +9 -12
- package/src/{Functions → functions}/Loader/parts.tsx +7 -10
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Loader/top.tsx +6 -12
- package/src/{Functions → functions}/Sheet/parts.tsx +16 -19
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +14 -17
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +4 -4
- package/src/{Functions → functions}/Table/Drag/parts.tsx +12 -15
- package/src/{Functions → functions}/Table/Normal/parts.tsx +5 -5
- package/src/{Functions → functions}/Table/_.tsx +4 -4
- package/src/{Functions → functions}/Table/style.module.scss +3 -2
- package/src/{Functions → functions}/Tooltips/parts.tsx +3 -2
- package/src/{Global → global}/LaunchReactApplication.tsx +4 -3
- package/src/{Global → global}/styleConverter.tsx +3 -7
- package/src/launch.tsx +16 -11
- package/src/{Molecules → molecules}/Accordion/parts.tsx +8 -12
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +4 -3
- package/src/{Molecules → molecules}/List.tsx +3 -2
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +6 -11
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +7 -12
- package/src/{Templates → templates}/PlayGround/parts.tsx +12 -40
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +19 -5
- package/webpack.config.js +18 -7
- package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/_.js +0 -6
- package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/@jsminAmotifyExtension/fetch.js +0 -199
- package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
- package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
- package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/@jsminAmotifyExtension/variables.js +0 -186
- package/dist/@types/_.js +0 -8
- package/dist/@types/amot.d.ts +0 -260
- package/dist/@types/amot.js +0 -2
- package/dist/@types/fn.d.ts +0 -1040
- package/dist/@types/fn.js +0 -2
- package/dist/@types/index.d.ts +0 -62
- package/dist/@types/index.js +0 -2
- package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/@types/jsminAmotifyExtension.js +0 -2
- package/dist/@types/module.d.ts +0 -2
- package/dist/@types/module.js +0 -1
- package/dist/@types/state.d.ts +0 -145
- package/dist/@types/state.js +0 -2
- package/dist/Atoms/@export.d.ts +0 -4
- package/dist/Atoms/@export.js +0 -16
- package/dist/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/Atoms/FAIcon/parts.js +0 -152
- package/dist/Atoms/Logo/parts.d.ts +0 -1
- package/dist/Atoms/Logo/parts.js +0 -154
- package/dist/Atoms/Various/parts.d.ts +0 -9
- package/dist/Atoms/Various/parts.js +0 -113
- package/dist/Functions/@export.d.ts +0 -12
- package/dist/Functions/@export.js +0 -25
- package/dist/Functions/Button/_.d.ts +0 -1
- package/dist/Functions/Button/_.js +0 -270
- package/dist/Functions/Cropper/parts.d.ts +0 -1
- package/dist/Functions/Cropper/parts.js +0 -783
- package/dist/Functions/Effects/Fade.d.ts +0 -1
- package/dist/Functions/Effects/Fade.js +0 -82
- package/dist/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/Functions/Effects/Ripple.js +0 -107
- package/dist/Functions/Effects/_.d.ts +0 -3
- package/dist/Functions/Effects/_.js +0 -43
- package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/Functions/Input/Chips/Selector.js +0 -356
- package/dist/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/Functions/Input/Chips/_.js +0 -218
- package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/Functions/Input/DigitCharacters.js +0 -178
- package/dist/Functions/Input/File/_.d.ts +0 -2
- package/dist/Functions/Input/File/_.js +0 -458
- package/dist/Functions/Input/Hidden.d.ts +0 -1
- package/dist/Functions/Input/Hidden.js +0 -30
- package/dist/Functions/Input/List/_.d.ts +0 -1
- package/dist/Functions/Input/List/_.js +0 -232
- package/dist/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/Functions/Input/Segmented/_.js +0 -111
- package/dist/Functions/Input/Select/_.d.ts +0 -1
- package/dist/Functions/Input/Select/_.js +0 -154
- package/dist/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/Functions/Input/Slider/_.js +0 -308
- package/dist/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/Functions/Input/Switch/_.js +0 -120
- package/dist/Functions/Input/Text.d.ts +0 -5
- package/dist/Functions/Input/Text.js +0 -340
- package/dist/Functions/Input/TextArea.d.ts +0 -1
- package/dist/Functions/Input/TextArea.js +0 -98
- package/dist/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/Functions/Input/Time/Picker.js +0 -581
- package/dist/Functions/Input/Time/_.d.ts +0 -2
- package/dist/Functions/Input/Time/_.js +0 -567
- package/dist/Functions/Input/_.d.ts +0 -5
- package/dist/Functions/Input/_.js +0 -446
- package/dist/Functions/Input/core.d.ts +0 -34
- package/dist/Functions/Input/core.js +0 -324
- package/dist/Functions/Inputs/_.d.ts +0 -3
- package/dist/Functions/Inputs/_.js +0 -7
- package/dist/Functions/Inputs/text.d.ts +0 -12
- package/dist/Functions/Inputs/text.js +0 -46
- package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/Functions/Layout/PageNotFound.js +0 -30
- package/dist/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/Functions/Layout/PageRouter.js +0 -65
- package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/PageViewController/parts.js +0 -31
- package/dist/Functions/Layout/Plate.d.ts +0 -1
- package/dist/Functions/Layout/Plate.js +0 -39
- package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/RootViewController/parts.js +0 -202
- package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/Functions/Layout/SwipeView/parts.js +0 -319
- package/dist/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/Functions/Layout/TabBar.js +0 -49
- package/dist/Functions/Layout/_.d.ts +0 -2
- package/dist/Functions/Layout/_.js +0 -20
- package/dist/Functions/Loader/corner.d.ts +0 -1
- package/dist/Functions/Loader/corner.js +0 -59
- package/dist/Functions/Loader/mini.d.ts +0 -33
- package/dist/Functions/Loader/mini.js +0 -126
- package/dist/Functions/Loader/parts.d.ts +0 -3
- package/dist/Functions/Loader/parts.js +0 -108
- package/dist/Functions/Loader/top.d.ts +0 -1
- package/dist/Functions/Loader/top.js +0 -69
- package/dist/Functions/Sheet/parts.d.ts +0 -2
- package/dist/Functions/Sheet/parts.js +0 -724
- package/dist/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/Functions/SnackBar/parts.js +0 -171
- package/dist/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/Functions/Table/Data/parts.js +0 -629
- package/dist/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/Functions/Table/Drag/parts.js +0 -359
- package/dist/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/Functions/Table/Normal/parts.js +0 -92
- package/dist/Functions/Table/_.d.ts +0 -9
- package/dist/Functions/Table/_.js +0 -153
- package/dist/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/Functions/Tooltips/parts.js +0 -71
- package/dist/Global/@export.d.ts +0 -12
- package/dist/Global/@export.js +0 -198
- package/dist/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/Global/LaunchReactApplication.js +0 -48
- package/dist/Global/styleConverter.d.ts +0 -2
- package/dist/Global/styleConverter.js +0 -349
- package/dist/Molecules/@export.d.ts +0 -21
- package/dist/Molecules/@export.js +0 -41
- package/dist/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/Molecules/Accordion/parts.js +0 -165
- package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/Molecules/LinkifyText/parts.js +0 -39
- package/dist/Molecules/List.d.ts +0 -1
- package/dist/Molecules/List.js +0 -35
- package/dist/Organisms/@export.d.ts +0 -2
- package/dist/Organisms/@export.js +0 -5
- package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/_.js +0 -15
- package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
- package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
- package/dist/Templates/@export.d.ts +0 -2
- package/dist/Templates/@export.js +0 -5
- package/dist/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/Templates/PlayGround/parts.js +0 -55
- package/dist/config.d.ts +0 -16
- package/dist/config.js +0 -171
- package/dist/launch.d.ts +0 -9
- package/dist/launch.js +0 -46
- package/dist/preload.d.ts +0 -1
- package/dist/preload.js +0 -73
- package/public/amotify.js +0 -310
- package/src/@types/_.tsx +0 -6
- package/src/@types/index.tsx +0 -74
- package/src/@types/module.tsx +0 -2
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Global/exe.tsx +0 -0
- package/src/Organisms/@export.tsx +0 -5
- package/src/index.js +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
25
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
26
|
-
if (!m) return o;
|
|
27
|
-
var i = m.call(o), r, ar = [], e;
|
|
28
|
-
try {
|
|
29
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
30
|
-
}
|
|
31
|
-
catch (error) { e = { error: error }; }
|
|
32
|
-
finally {
|
|
33
|
-
try {
|
|
34
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
35
|
-
}
|
|
36
|
-
finally { if (e) throw e.error; }
|
|
37
|
-
}
|
|
38
|
-
return ar;
|
|
39
|
-
};
|
|
40
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
41
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
42
|
-
if (ar || !(i in from)) {
|
|
43
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
44
|
-
ar[i] = from[i];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.SnackBar = void 0;
|
|
54
|
-
var _export_1 = require("../../Global/@export");
|
|
55
|
-
var _export_2 = require("../../Atoms/@export");
|
|
56
|
-
var _export_3 = require("../../Molecules/@export");
|
|
57
|
-
var _export_4 = require("../../Functions/@export");
|
|
58
|
-
var useEffect = React.useEffect, useState = React.useState;
|
|
59
|
-
var style_module_scss_1 = __importDefault(require("./style.module.scss"));
|
|
60
|
-
var SnackBar = {
|
|
61
|
-
__memoryID: $.uuidGen(),
|
|
62
|
-
add: function (params) {
|
|
63
|
-
_export_1.useStore.get('SnackBar', this.__memoryID).add(params);
|
|
64
|
-
return this;
|
|
65
|
-
},
|
|
66
|
-
remove: function (val_componentID) {
|
|
67
|
-
_export_1.useStore.get('SnackBar', this.__memoryID).remove(val_componentID);
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
exports.SnackBar = SnackBar;
|
|
72
|
-
var Cell = function (props) {
|
|
73
|
-
var snackID = props.snackID, _a = props.secondsToClose, secondsToClose = _a === void 0 ? 10 : _a, _b = props.componentID, componentID = _b === void 0 ? $.uuidGen() : _b, Children = props.children, CustomChildren = props.customChildren, others = __rest(props, ["snackID", "secondsToClose", "componentID", "children", "customChildren"]);
|
|
74
|
-
var _c = __read(useState(componentID), 1), val_componentID = _c[0];
|
|
75
|
-
var _d = __read(useState(false), 2), val_mouseOn = _d[0], set_mouseOn = _d[1];
|
|
76
|
-
useEffect(function () {
|
|
77
|
-
var Query = '[data-component-id="' + val_componentID + '"]';
|
|
78
|
-
setTimeout(function () {
|
|
79
|
-
$(Query).addClass(style_module_scss_1.default.FadeIn);
|
|
80
|
-
}, 10);
|
|
81
|
-
_export_1.useStore.set({
|
|
82
|
-
key: 'SnackBar-' + snackID,
|
|
83
|
-
value: {
|
|
84
|
-
remove: function () {
|
|
85
|
-
$(Query).addClass(style_module_scss_1.default.FadeOut);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}, []);
|
|
90
|
-
useEffect(function () {
|
|
91
|
-
$.interval.clear('SnackBar-' + val_componentID);
|
|
92
|
-
if (!val_mouseOn) {
|
|
93
|
-
setTimeout(function () {
|
|
94
|
-
$.interval.standBy('SnackBar-' + val_componentID, secondsToClose * 1000, function () {
|
|
95
|
-
if (!val_mouseOn)
|
|
96
|
-
SnackBar.remove(snackID);
|
|
97
|
-
});
|
|
98
|
-
}, 100);
|
|
99
|
-
}
|
|
100
|
-
}, [val_mouseOn]);
|
|
101
|
-
var Content = React.createElement(React.Fragment, null);
|
|
102
|
-
if (CustomChildren) {
|
|
103
|
-
Content = React.createElement(CustomChildren, { close: function () {
|
|
104
|
-
SnackBar.remove(snackID);
|
|
105
|
-
} });
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
Content = React.createElement(_export_3.Row.Separate, { verticalAlign: 'top' },
|
|
109
|
-
React.createElement(_export_2.Box, { padding: ['1/4', 0], flexSizing: 0 }, $.is.function(Children) ? React.createElement(Children, null) : Children),
|
|
110
|
-
React.createElement(_export_4.Buttons.Button.Clear.R, { color: 'layer', backgroundColor: 'lcOpLow', ssSphere: 2.5, onClick: function () {
|
|
111
|
-
SnackBar.remove(snackID);
|
|
112
|
-
} },
|
|
113
|
-
React.createElement(_export_2.FAIcon.Times, null)));
|
|
114
|
-
}
|
|
115
|
-
return React.createElement(_export_2.Box, __assign({ className: style_module_scss_1.default.Cell, opacity: 'trans', width: 1, padding: '2/3', marginBottom: 1, borderRadius: '1.tone.primary', fontColor: 'white', boxShadow: 2, backgroundColor: 'dark', transition: 'middle', componentID: val_componentID, onMouseOver: function () {
|
|
116
|
-
set_mouseOn(true);
|
|
117
|
-
}, onMouseOut: function () {
|
|
118
|
-
set_mouseOn(false);
|
|
119
|
-
} }, others), Content);
|
|
120
|
-
};
|
|
121
|
-
var SnackBarElements = [];
|
|
122
|
-
var SnackBarsWrap = function () {
|
|
123
|
-
var _a = __read(useState($.uuidGen()), 2), val_refresh = _a[0], set_refresh = _a[1];
|
|
124
|
-
useEffect(function () {
|
|
125
|
-
_export_1.useStore.set({
|
|
126
|
-
key: 'SnackBar',
|
|
127
|
-
privateKey: SnackBar.__memoryID,
|
|
128
|
-
value: {
|
|
129
|
-
add: function (params) {
|
|
130
|
-
params.snackID = params.snackID || $.uuidGen();
|
|
131
|
-
var findIndex = SnackBarElements.findIndex(function (el) { return el.snackID == params.snackID; });
|
|
132
|
-
if (findIndex == -1) {
|
|
133
|
-
SnackBarElements.unshift(__assign(__assign({}, params), { snackID: params.snackID }));
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
var newList = __spreadArray([], __read(SnackBarElements), false);
|
|
137
|
-
newList[findIndex] = __assign(__assign({}, params), { snackID: params.snackID });
|
|
138
|
-
SnackBarElements = newList;
|
|
139
|
-
}
|
|
140
|
-
set_refresh($.uuidGen());
|
|
141
|
-
},
|
|
142
|
-
remove: function (snackID) {
|
|
143
|
-
var component = _export_1.useStore.get('SnackBar-' + snackID);
|
|
144
|
-
if (component && component.remove) {
|
|
145
|
-
component.remove();
|
|
146
|
-
setTimeout(function () {
|
|
147
|
-
var findIndex = SnackBarElements.findIndex(function (cell) { return cell.snackID == snackID; });
|
|
148
|
-
if (findIndex != -1) {
|
|
149
|
-
var newList = __spreadArray([], __read(SnackBarElements), false);
|
|
150
|
-
newList.splice(findIndex, 1);
|
|
151
|
-
SnackBarElements = newList;
|
|
152
|
-
set_refresh($.uuidGen());
|
|
153
|
-
}
|
|
154
|
-
}, 210);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}, []);
|
|
160
|
-
var SnackBars = SnackBarElements.map(function (el) { return (React.createElement(Cell, __assign({}, el, { key: el.snackID }))); });
|
|
161
|
-
return (React.createElement(_export_2.Flex, { className: style_module_scss_1.default.SnackBarsWrap, position: 'fixed', right: 0, bottom: 0, paddingLeft: 0, paddingRight: 1, paddingBottom: 'safeAreaBottom', verticalAlign: 'bottom', children: SnackBars, overflow: 'auto', UnderBreakPointStyles: {
|
|
162
|
-
left: 0,
|
|
163
|
-
paddingLeft: 1,
|
|
164
|
-
width: 'auto'
|
|
165
|
-
} }));
|
|
166
|
-
};
|
|
167
|
-
(0, _export_1.LaunchReactApplication)({
|
|
168
|
-
baseElement: '#SNACKBARS',
|
|
169
|
-
reactElement: React.createElement(SnackBarsWrap, null),
|
|
170
|
-
nonRouter: true
|
|
171
|
-
});
|