empower-container 0.1.21 → 0.1.24

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 (57) hide show
  1. package/README.md +378 -376
  2. package/dist/cjs/DatetimeFormatter.d.ts +3 -3
  3. package/dist/cjs/DatetimeFormatter.js +389 -389
  4. package/dist/cjs/Information.d.ts +10 -10
  5. package/dist/cjs/Information.js +63 -63
  6. package/dist/cjs/MenuBar.d.ts +24 -24
  7. package/dist/cjs/MenuBar.js +539 -539
  8. package/dist/cjs/Modal.d.ts +33 -33
  9. package/dist/cjs/Modal.js +44 -44
  10. package/dist/cjs/assets/Asset.d.ts +17 -16
  11. package/dist/cjs/assets/Asset.js +31 -30
  12. package/dist/cjs/constants/Constant.d.ts +15 -15
  13. package/dist/cjs/constants/Constant.js +35 -35
  14. package/dist/cjs/index.d.ts +3 -3
  15. package/dist/cjs/index.js +10 -10
  16. package/dist/cjs/inputs/Input.d.ts +25 -25
  17. package/dist/cjs/inputs/Input.js +106 -106
  18. package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
  19. package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
  20. package/dist/cjs/inputs/Select.d.ts +28 -28
  21. package/dist/cjs/inputs/Select.js +403 -403
  22. package/dist/esm/DatetimeFormatter.d.ts +3 -3
  23. package/dist/esm/DatetimeFormatter.js +385 -385
  24. package/dist/esm/Information.d.ts +10 -10
  25. package/dist/esm/Information.js +38 -38
  26. package/dist/esm/MenuBar.d.ts +24 -24
  27. package/dist/esm/MenuBar.js +534 -534
  28. package/dist/esm/Modal.d.ts +33 -33
  29. package/dist/esm/Modal.js +39 -39
  30. package/dist/esm/assets/Asset.d.ts +17 -16
  31. package/dist/esm/assets/Asset.js +28 -27
  32. package/dist/esm/constants/Constant.d.ts +15 -15
  33. package/dist/esm/constants/Constant.js +32 -32
  34. package/dist/esm/index.d.ts +3 -3
  35. package/dist/esm/index.js +3 -3
  36. package/dist/esm/inputs/Input.d.ts +25 -25
  37. package/dist/esm/inputs/Input.js +104 -104
  38. package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
  39. package/dist/esm/inputs/InputSelectionHandler.js +31 -31
  40. package/dist/esm/inputs/Select.d.ts +28 -28
  41. package/dist/esm/inputs/Select.js +399 -399
  42. package/dist/scss/components/_modal.scss +66 -66
  43. package/dist/scss/elements/_button.scss +133 -107
  44. package/dist/scss/elements/_index.scss +1 -1
  45. package/dist/scss/elements/_popover.scss +7 -7
  46. package/dist/scss/foundation/_colors.scss +59 -59
  47. package/dist/scss/foundation/_mixins.scss +40 -40
  48. package/dist/scss/foundation/_normalize.scss +203 -203
  49. package/dist/scss/foundation/_settings.scss +36 -36
  50. package/dist/scss/foundation/_typography.scss +94 -94
  51. package/dist/scss/library/_information.scss +63 -67
  52. package/dist/scss/library/_input.scss +37 -37
  53. package/dist/scss/library/_menubar.scss +240 -255
  54. package/dist/scss/library/_select.scss +258 -258
  55. package/dist/scss/style.scss +38 -23
  56. package/package.json +62 -62
  57. 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;
@@ -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 } 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-popover-i-close", onClick: hide })] })), _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", { className: "em-popover-i-close", onClick: hide })] })), 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;
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;
@@ -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;