empower-container 0.1.23 → 0.1.26
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/README.md +378 -377
- package/dist/cjs/DatetimeFormatter.d.ts +3 -3
- package/dist/cjs/DatetimeFormatter.js +389 -389
- package/dist/cjs/Information.d.ts +10 -10
- package/dist/cjs/Information.js +63 -63
- package/dist/cjs/MenuBar.d.ts +24 -24
- package/dist/cjs/MenuBar.js +539 -539
- package/dist/cjs/Modal.d.ts +33 -33
- package/dist/cjs/Modal.js +44 -44
- package/dist/cjs/assets/Asset.d.ts +17 -17
- package/dist/cjs/assets/Asset.js +31 -31
- package/dist/cjs/constants/Constant.d.ts +15 -15
- package/dist/cjs/constants/Constant.js +35 -35
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/inputs/Input.d.ts +25 -25
- package/dist/cjs/inputs/Input.js +106 -106
- package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
- package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
- package/dist/cjs/inputs/Select.d.ts +28 -28
- package/dist/cjs/inputs/Select.js +403 -403
- package/dist/esm/DatetimeFormatter.d.ts +3 -3
- package/dist/esm/DatetimeFormatter.js +385 -385
- package/dist/esm/Information.d.ts +10 -10
- package/dist/esm/Information.js +38 -38
- package/dist/esm/MenuBar.d.ts +24 -24
- package/dist/esm/MenuBar.js +534 -534
- package/dist/esm/Modal.d.ts +33 -33
- package/dist/esm/Modal.js +39 -39
- package/dist/esm/assets/Asset.d.ts +17 -17
- package/dist/esm/assets/Asset.js +28 -28
- package/dist/esm/constants/Constant.d.ts +15 -15
- package/dist/esm/constants/Constant.js +32 -32
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/inputs/Input.d.ts +25 -25
- package/dist/esm/inputs/Input.js +104 -104
- package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
- package/dist/esm/inputs/InputSelectionHandler.js +31 -31
- package/dist/esm/inputs/Select.d.ts +28 -28
- package/dist/esm/inputs/Select.js +399 -399
- package/dist/scss/components/_modal.scss +66 -66
- package/dist/scss/elements/_button.scss +132 -132
- package/dist/scss/elements/_index.scss +1 -1
- package/dist/scss/elements/_popover.scss +163 -8
- package/dist/scss/foundation/_colors.scss +59 -59
- package/dist/scss/foundation/_mixins.scss +40 -40
- package/dist/scss/foundation/_normalize.scss +203 -203
- package/dist/scss/foundation/_settings.scss +36 -36
- package/dist/scss/foundation/_typography.scss +94 -94
- package/dist/scss/library/_information.scss +72 -63
- package/dist/scss/library/_input.scss +37 -37
- package/dist/scss/library/_menubar.scss +244 -240
- package/dist/scss/library/_select.scss +254 -258
- package/dist/scss/style.scss +38 -38
- package/package.json +64 -62
- package/tscnofig.old +26 -26
@@ -1,10 +1,10 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface IInformationProps {
|
3
|
-
items: any;
|
4
|
-
listRow: Array<string | object>;
|
5
|
-
desc: boolean;
|
6
|
-
title?: string;
|
7
|
-
hide: (event: React.DOMAttributes<HTMLDivElement> | React.MouseEventHandler<HTMLDivElement> | undefined | any) => void;
|
8
|
-
}
|
9
|
-
declare const Information: React.FunctionComponent<IInformationProps>;
|
10
|
-
export default Information;
|
1
|
+
import React from 'react';
|
2
|
+
interface IInformationProps {
|
3
|
+
items: any;
|
4
|
+
listRow: Array<string | object>;
|
5
|
+
desc: boolean;
|
6
|
+
title?: string;
|
7
|
+
hide: (event: React.DOMAttributes<HTMLDivElement> | React.MouseEventHandler<HTMLDivElement> | undefined | any) => void;
|
8
|
+
}
|
9
|
+
declare const Information: React.FunctionComponent<IInformationProps>;
|
10
|
+
export default Information;
|
package/dist/esm/Information.js
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
-
import React, { useState } from 'react';
|
14
|
-
import { SVG_ARROWDOWN, SVG_ARROW_UP, SVG_CLOSE } from './assets/Asset';
|
15
|
-
var Information = function (_a) {
|
16
|
-
var items = _a.items, listRow = _a.listRow, desc = _a.desc, title = _a.title, hide = _a.hide;
|
17
|
-
var _b = useState(null), rowAnchorEl = _b[0], setRowAnchorEl = _b[1];
|
18
|
-
var renderHtml = function (html) {
|
19
|
-
return _jsx("div", { dangerouslySetInnerHTML: { __html: html } });
|
20
|
-
};
|
21
|
-
var showRowDetails = function (e, idx) {
|
22
|
-
e && e.preventDefault();
|
23
|
-
if (rowAnchorEl === idx) {
|
24
|
-
rowAnchorEl = null;
|
25
|
-
}
|
26
|
-
else {
|
27
|
-
rowAnchorEl = idx;
|
28
|
-
}
|
29
|
-
setRowAnchorEl(rowAnchorEl);
|
30
|
-
};
|
31
|
-
var View = function () {
|
32
|
-
return _jsx(React.Fragment, { children: _jsx("div", __assign({ className: "em-popover-i" }, { children: typeof desc != 'undefined' && desc ? (_jsxs("div", __assign({ className: "em-popover-i-content" }, { children: [_jsxs("div", __assign({ className: "em-popover-i-title" }, { children: [_jsx("h6", { children: title }), _jsx("div", { className: "em-
|
33
|
-
(item === 'SYSTEM POLICY' ? (typeof items != 'undefined' && typeof items.systemPolicy != 'undefined' && items.systemPolicy ? renderHtml(items.systemPolicy) : '') :
|
34
|
-
(typeof items != 'undefined' && typeof items.instruction != 'undefined' && items.instruction ? renderHtml(items.instruction) : '')) }))) : null] }, key)); })) : null) : null] }))) })) });
|
35
|
-
};
|
36
|
-
return View();
|
37
|
-
};
|
38
|
-
export default Information;
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
import React, { useState } from 'react';
|
14
|
+
import { SVG_ARROWDOWN, SVG_ARROW_UP, SVG_CLOSE } from './assets/Asset';
|
15
|
+
var Information = function (_a) {
|
16
|
+
var items = _a.items, listRow = _a.listRow, desc = _a.desc, title = _a.title, hide = _a.hide;
|
17
|
+
var _b = useState(null), rowAnchorEl = _b[0], setRowAnchorEl = _b[1];
|
18
|
+
var renderHtml = function (html) {
|
19
|
+
return _jsx("div", { dangerouslySetInnerHTML: { __html: html } });
|
20
|
+
};
|
21
|
+
var showRowDetails = function (e, idx) {
|
22
|
+
e && e.preventDefault();
|
23
|
+
if (rowAnchorEl === idx) {
|
24
|
+
rowAnchorEl = null;
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
rowAnchorEl = idx;
|
28
|
+
}
|
29
|
+
setRowAnchorEl(rowAnchorEl);
|
30
|
+
};
|
31
|
+
var View = function () {
|
32
|
+
return _jsx(React.Fragment, { children: _jsx("div", __assign({ className: "em-popover-i" }, { children: typeof desc != 'undefined' && desc ? (_jsxs("div", __assign({ className: "em-popover-i-content" }, { children: [_jsxs("div", __assign({ className: "em-popover-i-title" }, { children: [_jsx("h6", { children: title }), _jsx("div", __assign({ className: "em-close", onClick: hide }, { children: SVG_CLOSE }))] })), _jsx("div", { children: typeof items != 'undefined' && items ? renderHtml(items) : '' })] }))) : (_jsxs("div", __assign({ className: "em-popover-i-content" }, { children: [_jsxs("div", __assign({ className: "em-popover-i-title" }, { children: [_jsx("h6", { children: title }), _jsx("div", __assign({ className: "em-close", onClick: hide }, { children: SVG_CLOSE }))] })), listRow ? (listRow.length >= 1 ? (listRow.map(function (item, key) { return (_jsxs(React.Fragment, { children: [_jsxs("div", __assign({ className: "em-popover-i-category", onClick: function (event) { return showRowDetails(event, key); } }, { children: [_jsx("div", { children: _jsx("h6", { children: item }) }), rowAnchorEl === key ? (SVG_ARROW_UP) : (SVG_ARROWDOWN)] })), rowAnchorEl === key ? (_jsx("div", __assign({ className: "em-popover-i-details" }, { children: item === 'COMPANY POLICY' ? (typeof items != 'undefined' && typeof items.companyPolicy != 'undefined' && items.companyPolicy ? renderHtml(items.companyPolicy) : '') :
|
33
|
+
(item === 'SYSTEM POLICY' ? (typeof items != 'undefined' && typeof items.systemPolicy != 'undefined' && items.systemPolicy ? renderHtml(items.systemPolicy) : '') :
|
34
|
+
(typeof items != 'undefined' && typeof items.instruction != 'undefined' && items.instruction ? renderHtml(items.instruction) : '')) }))) : null] }, key)); })) : null) : null] }))) })) });
|
35
|
+
};
|
36
|
+
return View();
|
37
|
+
};
|
38
|
+
export default Information;
|
package/dist/esm/MenuBar.d.ts
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import '../scss/style.scss';
|
3
|
-
interface IMenuBarProps {
|
4
|
-
config?: any;
|
5
|
-
info?: any;
|
6
|
-
button?: {
|
7
|
-
show: boolean;
|
8
|
-
actions?: Array<object>;
|
9
|
-
};
|
10
|
-
dropdown?: any;
|
11
|
-
search?: any;
|
12
|
-
pagination?: any;
|
13
|
-
pivot?: any;
|
14
|
-
check?: any;
|
15
|
-
toggle?: any;
|
16
|
-
mainButton?: any;
|
17
|
-
buttonFooter?: any;
|
18
|
-
undoButton?: any;
|
19
|
-
customClass?: string;
|
20
|
-
children: any;
|
21
|
-
getActions: any;
|
22
|
-
}
|
23
|
-
declare const MenuBar: React.FunctionComponent<IMenuBarProps>;
|
24
|
-
export default MenuBar;
|
1
|
+
import React from "react";
|
2
|
+
import '../scss/style.scss';
|
3
|
+
interface IMenuBarProps {
|
4
|
+
config?: any;
|
5
|
+
info?: any;
|
6
|
+
button?: {
|
7
|
+
show: boolean;
|
8
|
+
actions?: Array<object>;
|
9
|
+
};
|
10
|
+
dropdown?: any;
|
11
|
+
search?: any;
|
12
|
+
pagination?: any;
|
13
|
+
pivot?: any;
|
14
|
+
check?: any;
|
15
|
+
toggle?: any;
|
16
|
+
mainButton?: any;
|
17
|
+
buttonFooter?: any;
|
18
|
+
undoButton?: any;
|
19
|
+
customClass?: string;
|
20
|
+
children: any;
|
21
|
+
getActions: any;
|
22
|
+
}
|
23
|
+
declare const MenuBar: React.FunctionComponent<IMenuBarProps>;
|
24
|
+
export default MenuBar;
|