@dilicorp/ui 0.1.22 → 0.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.
- package/dist/atoms/button.d.ts +1 -0
- package/dist/atoms/button.d.ts.map +1 -1
- package/dist/atoms/button.js +9 -3
- package/dist/atoms/icon.d.ts +3 -1
- package/dist/atoms/icon.d.ts.map +1 -1
- package/dist/atoms/icon.js +5 -1
- package/dist/atoms/panel/panel-container.d.ts +10 -0
- package/dist/atoms/panel/panel-container.d.ts.map +1 -0
- package/dist/atoms/panel/panel-container.js +6 -0
- package/dist/atoms/panel/panel-field.d.ts +12 -0
- package/dist/atoms/panel/panel-field.d.ts.map +1 -0
- package/dist/atoms/panel/panel-field.js +10 -0
- package/dist/atoms/panel/panel-group.d.ts +14 -0
- package/dist/atoms/panel/panel-group.d.ts.map +1 -0
- package/dist/atoms/panel/panel-group.js +9 -0
- package/dist/atoms/panel/panel.d.ts +29 -0
- package/dist/atoms/panel/panel.d.ts.map +1 -0
- package/dist/atoms/panel/panel.js +8 -0
- package/dist/atoms/pluxee-icon/base-icon.d.ts +13 -0
- package/dist/atoms/pluxee-icon/base-icon.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/base-icon.js +15 -0
- package/dist/atoms/pluxee-icon/icon-car.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-car.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-car.js +7 -0
- package/dist/atoms/pluxee-icon/icon-checklist.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-checklist.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-checklist.js +11 -0
- package/dist/atoms/pluxee-icon/icon-chevron-down.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-chevron-down.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-chevron-down.js +6 -0
- package/dist/atoms/pluxee-icon/icon-cost-center.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-cost-center.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-cost-center.js +8 -0
- package/dist/atoms/pluxee-icon/icon-credit-card.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-credit-card.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-credit-card.js +8 -0
- package/dist/atoms/pluxee-icon/icon-credit-management.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-credit-management.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-credit-management.js +10 -0
- package/dist/atoms/pluxee-icon/icon-curve-chart.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-curve-chart.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-curve-chart.js +6 -0
- package/dist/atoms/pluxee-icon/icon-delete.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-delete.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-delete.js +6 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-left.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-left.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-left.js +8 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-right.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-right.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-double-chevron-right.js +8 -0
- package/dist/atoms/pluxee-icon/icon-download.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-download.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-download.js +7 -0
- package/dist/atoms/pluxee-icon/icon-employee-group.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-employee-group.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-employee-group.js +8 -0
- package/dist/atoms/pluxee-icon/icon-expenses.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-expenses.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-expenses.js +8 -0
- package/dist/atoms/pluxee-icon/icon-eye-open-outline.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-eye-open-outline.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-eye-open-outline.js +7 -0
- package/dist/atoms/pluxee-icon/icon-file.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-file.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-file.js +9 -0
- package/dist/atoms/pluxee-icon/icon-fuel.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-fuel.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-fuel.js +8 -0
- package/dist/atoms/pluxee-icon/icon-history.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-history.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-history.js +7 -0
- package/dist/atoms/pluxee-icon/icon-home.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-home.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-home.js +6 -0
- package/dist/atoms/pluxee-icon/icon-lock.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-lock.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-lock.js +7 -0
- package/dist/atoms/pluxee-icon/icon-logout.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-logout.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-logout.js +7 -0
- package/dist/atoms/pluxee-icon/icon-pen.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-pen.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-pen.js +6 -0
- package/dist/atoms/pluxee-icon/icon-plus.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-plus.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-plus.js +6 -0
- package/dist/atoms/pluxee-icon/icon-search.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-search.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-search.js +6 -0
- package/dist/atoms/pluxee-icon/icon-settings.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-settings.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-settings.js +8 -0
- package/dist/atoms/pluxee-icon/icon-unlock.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-unlock.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-unlock.js +7 -0
- package/dist/atoms/pluxee-icon/icon-upload.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-upload.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-upload.js +7 -0
- package/dist/atoms/pluxee-icon/icon-wheel.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-wheel.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/icon-wheel.js +7 -0
- package/dist/atoms/pluxee-icon/pluxee-icon.d.ts +9 -0
- package/dist/atoms/pluxee-icon/pluxee-icon.d.ts.map +1 -0
- package/dist/atoms/pluxee-icon/pluxee-icon.js +81 -0
- package/dist/components/alert-template/alert-template.js +1 -1
- package/dist/components/form-builder/components/input-prefix-suffix.d.ts +3 -3
- package/dist/components/form-builder/components/input-prefix-suffix.d.ts.map +1 -1
- package/dist/components/form-builder/components/input-prefix-suffix.js +3 -3
- package/dist/components/form-builder/components/input.d.ts +4 -4
- package/dist/components/form-builder/components/input.d.ts.map +1 -1
- package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts +12 -0
- package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts.map +1 -0
- package/dist/components/layout/authenticated-layout/authenticated-layout.js +27 -0
- package/dist/components/layout/footer/footer-container.d.ts +10 -0
- package/dist/components/layout/footer/footer-container.d.ts.map +1 -0
- package/dist/components/layout/footer/footer-container.js +10 -0
- package/dist/components/layout/footer/footer-label.d.ts +10 -0
- package/dist/components/layout/footer/footer-label.d.ts.map +1 -0
- package/dist/components/layout/footer/footer-label.js +5 -0
- package/dist/components/layout/layout-content/layout-content.d.ts +10 -0
- package/dist/components/layout/layout-content/layout-content.d.ts.map +1 -0
- package/dist/components/layout/layout-content/layout-content.js +5 -0
- package/dist/components/layout/layout-main/layout-main.d.ts +10 -0
- package/dist/components/layout/layout-main/layout-main.d.ts.map +1 -0
- package/dist/components/layout/layout-main/layout-main.js +5 -0
- package/dist/components/layout/layout.d.ts +34 -0
- package/dist/components/layout/layout.d.ts.map +1 -0
- package/dist/components/layout/layout.js +12 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo.d.ts +3 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo.d.ts.map +1 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo.js +23 -0
- package/dist/components/navbar/navbar.d.ts.map +1 -1
- package/dist/components/navbar/navbar.js +6 -4
- package/dist/components/page-create/page-create.d.ts.map +1 -1
- package/dist/components/page-create/page-create.js +3 -3
- package/dist/components/page-list/filter-components/button-filter-clear.d.ts +2 -0
- package/dist/components/page-list/filter-components/button-filter-clear.d.ts.map +1 -1
- package/dist/components/page-list/filter-components/button-filter-clear.js +3 -3
- package/dist/components/page-list/filter-components/button-filter.js +1 -1
- package/dist/components/page-list/filter-components/button-filters.d.ts.map +1 -1
- package/dist/components/page-list/filter-components/button-filters.js +3 -3
- package/dist/components/page-list/page-list-config/index.d.ts +2 -1
- package/dist/components/page-list/page-list-config/index.d.ts.map +1 -1
- package/dist/components/page-list/page-list-config/page-list-config-dropdown.d.ts +2 -1
- package/dist/components/page-list/page-list-config/page-list-config-dropdown.d.ts.map +1 -1
- package/dist/components/page-list/page-list-config/page-list-config-dropdown.js +7 -3
- package/dist/components/page-list/page-list-get-filters.js +3 -3
- package/dist/components/page-list/page-list.d.ts.map +1 -1
- package/dist/components/page-list/page-list.js +7 -7
- package/dist/components/page-show/page-show.d.ts.map +1 -1
- package/dist/components/page-show/page-show.js +5 -6
- package/dist/components/side-navigation-bar/side-navigation-bar-item.d.ts +1 -0
- package/dist/components/side-navigation-bar/side-navigation-bar-item.d.ts.map +1 -1
- package/dist/components/side-navigation-bar/side-navigation-bar-item.js +13 -21
- package/dist/components/side-navigation-bar/side-navigation-bar.d.ts +1 -0
- package/dist/components/side-navigation-bar/side-navigation-bar.d.ts.map +1 -1
- package/dist/components/side-navigation-bar/side-navigation-bar.js +17 -24
- package/dist/css/style.min.css +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/molecules/dropdown/dropdown-item.d.ts +1 -1
- package/dist/molecules/dropdown/dropdown-item.d.ts.map +1 -1
- package/dist/molecules/dropdown/dropdown.d.ts +1 -0
- package/dist/molecules/dropdown/dropdown.d.ts.map +1 -1
- package/dist/molecules/dropdown/dropdown.js +7 -3
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FooterContainer } from './footer/footer-container';
|
|
2
|
+
import { FooterLabel } from './footer/footer-label';
|
|
3
|
+
import { LayoutContent } from './layout-content/layout-content';
|
|
4
|
+
import { AuthenticatedLayout } from './authenticated-layout/authenticated-layout';
|
|
5
|
+
import { LayoutMain } from './layout-main/layout-main';
|
|
6
|
+
export const Layout = {
|
|
7
|
+
Authenticated: AuthenticatedLayout,
|
|
8
|
+
Content: LayoutContent,
|
|
9
|
+
Main: LayoutMain,
|
|
10
|
+
Footer: FooterContainer,
|
|
11
|
+
FooterLabel: FooterLabel
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluxee-logo.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/pluxee-logo/pluxee-logo.tsx"],"names":[],"mappings":";AACA,eAAO,MAAM,UAAU,mBAkCtB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const PluxeeLogo = () => {
|
|
3
|
+
return (React.createElement(React.Fragment, null,
|
|
4
|
+
React.createElement("div", { className: "logo-web" },
|
|
5
|
+
React.createElement("svg", { width: "99", height: "29", viewBox: "0 0 172 49", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
React.createElement("g", { clipPath: "url(#clip0_17957_81028)" },
|
|
7
|
+
React.createElement("path", { d: "M157.187 16.7806C161.107 16.7806 162.689 19.5232 162.689 21.4081H151.686C151.686 19.5008 153.285 16.7806 157.187 16.7806ZM161.803 29.8721C161.071 31.3029 159.394 32.271 157.228 32.271C153.138 32.271 151.521 29.3384 151.477 26.7264H171.795C171.852 26.3586 172.001 25.3142 172.001 24.4996C172.001 15.2747 165.688 10.0664 157.156 10.0664C148.162 10.0664 141.872 15.2747 141.872 24.4996C141.872 33.7927 148.161 38.9329 157.209 38.9329C166.105 38.9329 170.285 34.007 171.401 29.8721H161.803Z", fill: "white" }),
|
|
8
|
+
React.createElement("path", { d: "M15.624 30.6436C11.9753 30.6436 9.38446 28.0141 9.38446 24.5228C9.38446 21.1942 11.8177 18.402 15.624 18.402C19.431 18.402 21.8628 21.2105 21.8628 24.5228C21.8628 27.8871 19.3978 30.6436 15.624 30.6436ZM18.3541 10.3442C14.351 10.3442 10.9168 12.1198 9.14561 14.2066L9.13974 10.8885H0V48.9997H9.42205V35.3545C11.6321 37.7468 14.7101 38.6554 17.8223 38.6554C27.1561 38.6554 31.4857 31.5627 31.4857 24.4995C31.4857 15.7828 25.9245 10.3442 18.3541 10.3442Z", fill: "white" }),
|
|
9
|
+
React.createElement("path", { d: "M44.0499 0H34.5894V38.1111H44.0499V0Z", fill: "white" }),
|
|
10
|
+
React.createElement("path", { d: "M66.8772 10.8887V25.0444C66.8772 27.1902 66.5835 28.2326 65.7093 29.2727C64.8645 30.2776 63.5393 30.7515 62.0701 30.7515C60.6019 30.7515 59.2744 30.2776 58.4293 29.2727C57.5551 28.2326 57.263 27.1902 57.263 25.0444V10.8887H47.8379L47.8391 25.8856C47.8391 30.1018 48.4804 32.8535 50.4932 35.1923C52.6224 37.6659 55.8744 38.6494 59.0584 38.6494C62.7879 38.6494 65.3713 37.2404 67.1567 35.1658L67.1627 38.1111H76.3023V10.8887H66.8772Z", fill: "white" }),
|
|
11
|
+
React.createElement("path", { d: "M107.03 10.8887H100.589L93.4917 18.1524L86.394 10.8887H79.9536V17.364L87.1784 24.4999L79.9538 31.6358V38.1111H86.3942L93.4917 30.8475L100.589 38.1111H107.03V31.6358L99.8051 24.4999L107.03 17.364V10.8887Z", fill: "#FF7375" }),
|
|
12
|
+
React.createElement("path", { d: "M124.437 16.7806C128.356 16.7806 129.938 19.5232 129.938 21.4081H118.935C118.935 19.5008 120.535 16.7806 124.437 16.7806ZM129.052 29.8721C128.32 31.3029 126.643 32.271 124.477 32.271C120.387 32.271 118.77 29.3384 118.727 26.7264H139.044C139.101 26.3586 139.25 25.3142 139.25 24.4996C139.25 15.2747 132.938 10.0664 124.405 10.0664C115.411 10.0664 109.121 15.2747 109.121 24.4996C109.121 33.7927 115.411 38.9329 124.458 38.9329C133.355 38.9329 137.534 34.007 138.65 29.8721H129.052Z", fill: "white" })),
|
|
13
|
+
React.createElement("defs", null,
|
|
14
|
+
React.createElement("clipPath", { id: "clip0_17957_81028" },
|
|
15
|
+
React.createElement("rect", { width: "172", height: "49", fill: "white" }))))),
|
|
16
|
+
React.createElement("div", { className: "logo-mobile" },
|
|
17
|
+
React.createElement("svg", { width: "50", height: "50", viewBox: "0 0 158 158", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
18
|
+
React.createElement("g", { clipPath: "url(#clip0_17970_80931)" },
|
|
19
|
+
React.createElement("path", { d: "M79 27.9313L51.0687 0H0V51.0687L27.9313 79L0 106.931V158H51.0687L79 130.069L106.931 158H158V106.931L130.069 79L158 51.0687V0H106.931L79 27.9313Z", fill: "white" })),
|
|
20
|
+
React.createElement("defs", null,
|
|
21
|
+
React.createElement("clipPath", { id: "clip0_17970_80931" },
|
|
22
|
+
React.createElement("rect", { width: "158", height: "158", fill: "white" })))))));
|
|
23
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAY,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAE3E,OAAO,EAAS,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/components/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAY,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAE3E,OAAO,EAAS,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGrD,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,EAAE,aAAa,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,MAAM,UAAW,WAAW,gBA8BxC,CAAA"}
|
|
@@ -4,13 +4,15 @@ import { Icon } from '../../atoms/icon';
|
|
|
4
4
|
import { Image } from '../../atoms/image';
|
|
5
5
|
export const Navbar = (props) => {
|
|
6
6
|
const { image, dropdown, showUserIcon = true, items } = props;
|
|
7
|
-
|
|
7
|
+
const dropdownWithNavItems = Object.assign(Object.assign({}, dropdown), { items: [...(items || []).map(item => ({ separator: true, element: React.createElement("div", { className: "nav-item-mobile" }, item) })), ...dropdown.items] });
|
|
8
|
+
return (React.createElement("div", { className: "navbar" },
|
|
8
9
|
React.createElement("div", { className: "navbar-profile" }, items === null || items === void 0 ? void 0 :
|
|
9
|
-
items.map((item, index) => React.createElement("div", { key: `nav-bar-item-${index}`, className:
|
|
10
|
+
items.map((item, index) => React.createElement("div", { key: `nav-bar-item-${index}`, className: "mx-2 d-flex align-items-center justify-content-center" }, item)),
|
|
10
11
|
image
|
|
11
12
|
? React.createElement(Image, Object.assign({}, image, { circle: true, width: "38px", height: "38px", objectFit: "cover", className: "me-2" }))
|
|
12
13
|
: (showUserIcon &&
|
|
13
14
|
React.createElement("div", { className: "image-profile circle me-2" },
|
|
14
|
-
React.createElement(Icon, { icon: "faUserAlt" }))),
|
|
15
|
-
|
|
15
|
+
React.createElement(Icon, { icon: "faUserAlt" })))),
|
|
16
|
+
React.createElement("div", { className: "dropdown-seaction" },
|
|
17
|
+
React.createElement(Dropdown, Object.assign({}, dropdownWithNavItems)))));
|
|
16
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-create.d.ts","sourceRoot":"","sources":["../../../src/components/page-create/page-create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAGtC,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,oBAAY,eAAe,CAAC,MAAM,GAAG,GAAG,IAAI;IAC1C,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACxE,KAAK,EAAE,MAAM,GAAC,KAAK,CAAC,SAAS,CAAA;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,YAAY,CAAC,EAAE,iBAAiB,EAAE,GAAG,YAAY,CAAA;IACjD,YAAY,CAAC,EAAE;QACb,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"page-create.d.ts","sourceRoot":"","sources":["../../../src/components/page-create/page-create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAGtC,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,oBAAY,eAAe,CAAC,MAAM,GAAG,GAAG,IAAI;IAC1C,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACxE,KAAK,EAAE,MAAM,GAAC,KAAK,CAAC,SAAS,CAAA;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,YAAY,CAAC,EAAE,iBAAiB,EAAE,GAAG,YAAY,CAAA;IACjD,YAAY,CAAC,EAAE;QACb,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8ChD,CAAA"}
|
|
@@ -4,13 +4,13 @@ import { Button, Col, Dropdown, FormBuilder, Icon, Link, Row, Typography } from
|
|
|
4
4
|
export const PageCreate = (props) => {
|
|
5
5
|
const { title, extraButtons = [], cancelButton, onSubmit, data, modal } = props;
|
|
6
6
|
return (React.createElement(React.Fragment, null,
|
|
7
|
-
React.createElement(Row, { className: "mb-3" },
|
|
7
|
+
React.createElement(Row, { className: "page-title-container mb-3" },
|
|
8
8
|
React.createElement(Col, null,
|
|
9
9
|
React.createElement(Typography, { variant: "h4", tag: "h1" }, title)),
|
|
10
10
|
React.createElement(Col, { className: "ms-auto" },
|
|
11
11
|
React.createElement("div", { className: "extra-buttons-container" },
|
|
12
|
-
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { color: "
|
|
13
|
-
Boolean(cancelButton) && (React.createElement(Button, { tag: Link, href: cancelButton === null || cancelButton === void 0 ? void 0 : cancelButton.uri, color: "
|
|
12
|
+
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "secondary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items })),
|
|
13
|
+
Boolean(cancelButton) && (React.createElement(Button, { tag: Link, href: cancelButton === null || cancelButton === void 0 ? void 0 : cancelButton.uri, color: "primary", outline: true },
|
|
14
14
|
React.createElement(Icon, { icon: "faAngleLeft", className: "me-1" }), cancelButton === null || cancelButton === void 0 ? void 0 :
|
|
15
15
|
cancelButton.label))))),
|
|
16
16
|
React.createElement(FormBuilder, { data: data, onSubmit: onSubmit }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-filter-clear.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/filter-components/button-filter-clear.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,aAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KACnB,CAAA;
|
|
1
|
+
{"version":3,"file":"button-filter-clear.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/filter-components/button-filter-clear.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,aAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KACnB,CAAC;IACF,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;IACvF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuB7C,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { objectHelper } from '../../../index';
|
|
|
6
6
|
import { useNavigate } from 'react-router-dom';
|
|
7
7
|
import uriHelper from '../../../utils/uri-helper';
|
|
8
8
|
export const ButtonFilterClear = (props) => {
|
|
9
|
-
const { className, clearLabel, show = true, search } = props;
|
|
9
|
+
const { className, clearLabel, show = true, search, color = 'secondary', outline = false } = props;
|
|
10
10
|
const navigate = useNavigate();
|
|
11
11
|
const classes = classNames(className, show ? 'd-inline-block' : 'd-none', 'mb-3');
|
|
12
12
|
const handleClick = React.useCallback(() => {
|
|
@@ -16,7 +16,7 @@ export const ButtonFilterClear = (props) => {
|
|
|
16
16
|
search: uriHelper.stringify(Object.assign(Object.assign({}, elements), { page: 1 }))
|
|
17
17
|
});
|
|
18
18
|
}, [search, navigate]);
|
|
19
|
-
return (React.createElement(Button, { color:
|
|
20
|
-
React.createElement(Icon, { icon: "
|
|
19
|
+
return (React.createElement(Button, { color: color, className: classes, onClick: handleClick, outline: outline },
|
|
20
|
+
React.createElement(Icon, { icon: "fa-delete", pluxee: true, className: "me-2" }),
|
|
21
21
|
clearLabel));
|
|
22
22
|
};
|
|
@@ -6,6 +6,6 @@ export const ButtonFilter = (props) => {
|
|
|
6
6
|
const { className, submitLabel, show = true } = props;
|
|
7
7
|
const classes = classNames(className, show ? 'd-inline-block' : 'd-none', 'mb-3');
|
|
8
8
|
return (React.createElement(Button, { type: "submit", className: classes },
|
|
9
|
-
React.createElement(Icon, { icon: "
|
|
9
|
+
React.createElement(Icon, { icon: "fa-search", pluxee: true, className: "me-3" }),
|
|
10
10
|
submitLabel));
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-filters.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/filter-components/button-filters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACtD,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"button-filters.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/filter-components/button-filters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACtD,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuBzC,CAAA"}
|
|
@@ -3,13 +3,13 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { Icon } from '../../../atoms/icon';
|
|
4
4
|
import { Button } from '../../../atoms/button';
|
|
5
5
|
export const ButtonFilters = (props) => {
|
|
6
|
-
const {
|
|
6
|
+
const { setShow, filterLabel, className, children } = props;
|
|
7
7
|
const classes = classNames(className, 'mb-3');
|
|
8
8
|
const handleClick = () => {
|
|
9
9
|
setShow(prev => !prev);
|
|
10
10
|
};
|
|
11
|
-
return (React.createElement(Button, { color: "
|
|
12
|
-
React.createElement(Icon, { icon: "
|
|
11
|
+
return (React.createElement(Button, { color: "primary", outline: true, onClick: handleClick, className: classes },
|
|
12
|
+
React.createElement(Icon, { icon: "fa-settings", pluxee: true, className: "me-2" }),
|
|
13
13
|
filterLabel,
|
|
14
14
|
children));
|
|
15
15
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PageListConfig: {
|
|
3
3
|
Dropdown: {
|
|
4
|
-
({ children, label, color, className, align }: {
|
|
4
|
+
({ children, label, color, outline, className, align }: {
|
|
5
5
|
children: import("react").ReactNode | import("react").ReactNode[];
|
|
6
6
|
label: import("react").ReactNode;
|
|
7
7
|
color?: "primary" | "secondary" | "success" | "danger" | "info" | "warning" | "default" | "none" | undefined;
|
|
8
|
+
outline?: boolean | undefined;
|
|
8
9
|
className?: string | undefined;
|
|
9
10
|
align?: "left" | "right" | undefined;
|
|
10
11
|
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/page-list-config/index.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/page-list-config/index.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1B,CAAA"}
|
|
@@ -3,11 +3,12 @@ declare type PageListConfigDropdownProps = {
|
|
|
3
3
|
children: React.ReactNode | React.ReactNode[];
|
|
4
4
|
label: string | React.ReactNode;
|
|
5
5
|
color?: 'none' | 'primary' | 'secondary' | 'success' | 'danger' | 'info' | 'warning' | 'default';
|
|
6
|
+
outline?: boolean;
|
|
6
7
|
className?: string;
|
|
7
8
|
align?: 'left' | 'right';
|
|
8
9
|
};
|
|
9
10
|
export declare const PageListConfigDropdown: {
|
|
10
|
-
({ children, label, color, className, align }: PageListConfigDropdownProps): JSX.Element;
|
|
11
|
+
({ children, label, color, outline, className, align }: PageListConfigDropdownProps): JSX.Element;
|
|
11
12
|
displayName: string;
|
|
12
13
|
};
|
|
13
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-list-config-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/page-list-config/page-list-config-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"page-list-config-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/page-list/page-list-config/page-list-config-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,aAAK,2BAA2B,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;IAChG,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,sBAAsB;4DAOhC,2BAA2B;;CAiF7B,CAAA"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { Children } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
|
|
3
|
+
import { Icon } from '../../../atoms/icon';
|
|
4
|
+
export const PageListConfigDropdown = ({ children, label, color = 'primary', outline = true, className, align = 'right' }) => {
|
|
4
5
|
const ref = React.useRef(null);
|
|
5
|
-
const
|
|
6
|
+
const btnOutlineColor = `btn${outline ? '-outline' : ''}-${color}`;
|
|
7
|
+
const classes = classNames(className, 'btn dropdown-toggle', btnOutlineColor);
|
|
6
8
|
const [toggle, setToggle] = React.useState(false);
|
|
7
9
|
const handleClick = React.useCallback(() => {
|
|
8
10
|
setToggle(prev => !prev);
|
|
@@ -27,7 +29,9 @@ export const PageListConfigDropdown = ({ children, label, color = 'primary', cla
|
|
|
27
29
|
}, [toggle]);
|
|
28
30
|
const classesDropdown = classNames('dropdown-menu', align, toggle && 'show');
|
|
29
31
|
return (React.createElement("div", { ref: ref, className: "dropdown" },
|
|
30
|
-
React.createElement("div", { className: classes, onClick: handleClick },
|
|
32
|
+
React.createElement("div", { className: classes, onClick: handleClick },
|
|
33
|
+
label,
|
|
34
|
+
React.createElement(Icon, { icon: "fa-chevron-down", pluxee: true })),
|
|
31
35
|
React.createElement("div", { className: classesDropdown }, Children.map(children, (child) => {
|
|
32
36
|
var _a, _b;
|
|
33
37
|
if (React.isValidElement(child)) {
|
|
@@ -38,13 +38,13 @@ export const PageListGetFilters = (props) => {
|
|
|
38
38
|
children)))),
|
|
39
39
|
Boolean(hidden.length) && (React.createElement("div", { className: `aside-filter ${showFilter ? 'in' : ''}` },
|
|
40
40
|
React.createElement("div", { className: "mb-3 text-right" },
|
|
41
|
-
React.createElement(Button, { color: "primary",
|
|
42
|
-
React.createElement(Icon, { icon: "
|
|
41
|
+
React.createElement(Button, { color: "primary", onClick: () => setShowFilter(prev => !prev), small: true },
|
|
42
|
+
React.createElement(Icon, { icon: "fa-delete", pluxee: true }))),
|
|
43
43
|
React.createElement("div", { className: "content-aside-filter" }, hidden.map((element, index) => {
|
|
44
44
|
var _a;
|
|
45
45
|
return (React.createElement("div", { key: `visible-child-${JSON.stringify({ index: index + numFiltersVisible, props: element === null || element === void 0 ? void 0 : element.props })}`, className: hidden.length === (index + 1) ? '' : 'mb-3' }, ((_a = element.props) === null || _a === void 0 ? void 0 : _a.name) && setValue(element, search[element.props.name])));
|
|
46
46
|
})),
|
|
47
47
|
React.createElement("div", { className: `pt-3 text-center ${showFilter ? 'd-block' : 'd-none'}` },
|
|
48
48
|
React.createElement(ButtonFilter, { submitLabel: filter.submitLabel, className: "me-3" }),
|
|
49
|
-
React.createElement(ButtonFilterClear, { clearLabel: filter.clearLabel, search: search })))))));
|
|
49
|
+
React.createElement(ButtonFilterClear, { clearLabel: filter.clearLabel, search: search, color: "primary", outline: true })))))));
|
|
50
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-list.d.ts","sourceRoot":"","sources":["../../../src/components/page-list/page-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAQ,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAO1E,aAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,aAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,GAAG;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC;IACF,KAAK,EAAE,aAAa,GAAG,GAAG,CAAA;CAC3B,CAAA;AAED,aAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;CACxC,CAAA;AAED,aAAK,iBAAiB,GAAG,WAAW,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAA;AAED,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,oBAAY,aAAa,GAAG,aAAa,GAAG;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,YAAY,CAAC,EAAE,iBAAiB,EAAE,GAAG,YAAY,CAAA;IACjD,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,MAAM,CAAA;QACpB,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"page-list.d.ts","sourceRoot":"","sources":["../../../src/components/page-list/page-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAQ,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAO1E,aAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,aAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,GAAG;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC;IACF,KAAK,EAAE,aAAa,GAAG,GAAG,CAAA;CAC3B,CAAA;AAED,aAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;CACxC,CAAA;AAED,aAAK,iBAAiB,GAAG,WAAW,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAA;AAED,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,oBAAY,aAAa,GAAG,aAAa,GAAG;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,YAAY,CAAC,EAAE,iBAAiB,EAAE,GAAG,YAAY,CAAA;IACjD,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,MAAM,CAAA;QACpB,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgG5C,CAAA"}
|
|
@@ -24,19 +24,19 @@ export const PageList = (props) => {
|
|
|
24
24
|
React.createElement(Spinner, null)));
|
|
25
25
|
}
|
|
26
26
|
return (React.createElement(React.Fragment, null,
|
|
27
|
-
React.createElement(Row, { className: "mb-3" },
|
|
27
|
+
React.createElement(Row, { className: "page-title-container mb-3" },
|
|
28
28
|
title && (React.createElement(Col, null,
|
|
29
|
-
React.createElement(Typography, { variant: "h4", tag: "h1" }, title))),
|
|
29
|
+
React.createElement(Typography, { className: "mb-0", variant: "h4", tag: "h1" }, title))),
|
|
30
30
|
React.createElement(Col, { className: "ms-auto" },
|
|
31
31
|
React.createElement("div", { className: "extra-buttons-container" },
|
|
32
32
|
Boolean(extraButtonsInline.length) &&
|
|
33
|
-
extraButtonsInline.map((item, index) => (React.createElement(Button, Object.assign({ key: `export-button-${index}` }, item),
|
|
33
|
+
extraButtonsInline.map((item, index) => (React.createElement(Button, Object.assign({ outline: true, key: `export-button-${index}` }, item),
|
|
34
34
|
item.label,
|
|
35
35
|
item.icon && React.createElement(Icon, Object.assign({}, item.icon))))),
|
|
36
|
-
Boolean(addButton) && (React.createElement(Button, { tag: Link, href: addButton === null || addButton === void 0 ? void 0 : addButton.uri },
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { color: "
|
|
36
|
+
Boolean(addButton) && (React.createElement(Button, { tag: Link, href: addButton === null || addButton === void 0 ? void 0 : addButton.uri }, addButton === null || addButton === void 0 ? void 0 :
|
|
37
|
+
addButton.label,
|
|
38
|
+
React.createElement(Icon, { icon: "fa-plus", pluxee: true, className: "ms-1" }))),
|
|
39
|
+
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "primary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items }))))),
|
|
40
40
|
!!customizeFilter && customizeFilter,
|
|
41
41
|
!customizeFilter && filterList && (React.createElement(PageListGetFilters, { filterList: filterList, search: search, filter: filter, key: JSON.stringify(history) }, configList)),
|
|
42
42
|
React.createElement("div", null, restList),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-show.d.ts","sourceRoot":"","sources":["../../../src/components/page-show/page-show.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAU,WAAW,EAAuB,SAAS,
|
|
1
|
+
{"version":3,"file":"page-show.d.ts","sourceRoot":"","sources":["../../../src/components/page-show/page-show.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAU,WAAW,EAAuB,SAAS,EAAkC,MAAM,QAAQ,CAAA;AAC5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAE1E,aAAK,uBAAuB,GAAG,WAAW,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAA;AAED,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,oBAAY,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,iBAAiB,EAAE,GAAG,YAAY,CAAA;IACjD,UAAU,CAAC,EAAE;QACX,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAA;CAC/C,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwD5C,CAAA"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button, Col, Dropdown, Icon, Link, Row,
|
|
2
|
+
import { Button, Col, Dropdown, Icon, Link, Row, Spinner, Typography } from '../../';
|
|
3
3
|
export const PageShow = (props) => {
|
|
4
4
|
const { loading = true, children, extraButtons = [], backButton, title, subTitle, extraButtonsInline = [] } = props;
|
|
5
5
|
if (loading)
|
|
6
6
|
return React.createElement(Spinner, null);
|
|
7
7
|
return (React.createElement("div", null,
|
|
8
|
-
React.createElement(Row, { className: "mb-3" },
|
|
8
|
+
React.createElement(Row, { className: "page-title-container mb-3" },
|
|
9
9
|
React.createElement(Col, null,
|
|
10
10
|
React.createElement(Typography, { variant: "h4", tag: "h1", subTitle: subTitle }, title)),
|
|
11
11
|
React.createElement(Col, { className: "ms-auto" },
|
|
12
12
|
React.createElement("div", { className: "extra-buttons-container" },
|
|
13
13
|
Boolean(extraButtonsInline.length) &&
|
|
14
|
-
extraButtonsInline.map((item, index) => (React.createElement(Button, Object.assign({ key: `export-button-${index}` }, item),
|
|
14
|
+
extraButtonsInline.map((item, index) => (React.createElement(Button, Object.assign({ outline: true, key: `export-button-${index}` }, item),
|
|
15
15
|
item.label,
|
|
16
16
|
item.icon && React.createElement(Icon, Object.assign({}, item.icon))))),
|
|
17
|
-
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { color: "
|
|
18
|
-
Boolean(backButton) && (React.createElement(Button, { tag: Link, href: backButton === null || backButton === void 0 ? void 0 : backButton.uri, color: "
|
|
17
|
+
Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "secondary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items })),
|
|
18
|
+
Boolean(backButton) && (React.createElement(Button, { tag: Link, href: backButton === null || backButton === void 0 ? void 0 : backButton.uri, color: "primary", outline: true },
|
|
19
19
|
React.createElement(Icon, { icon: "faAngleLeft", className: "me-1" }), backButton === null || backButton === void 0 ? void 0 :
|
|
20
20
|
backButton.label))))),
|
|
21
|
-
React.createElement(Separator, null),
|
|
22
21
|
children));
|
|
23
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-navigation-bar-item.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation-bar/side-navigation-bar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAA;AAE7C,oBAAY,0BAA0B,GAAG,SAAS,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,0BAA0B,EAAE,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAaD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"side-navigation-bar-item.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation-bar/side-navigation-bar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAA;AAE7C,oBAAY,0BAA0B,GAAG,SAAS,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,0BAA0B,EAAE,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAaD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAsCtE,CAAA"}
|
|
@@ -12,35 +12,27 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
13
|
import { Icon } from '../../atoms/icon';
|
|
14
14
|
import { Link } from '../../index';
|
|
15
|
-
const InnerItem = ({ icon, label, dataLink }) => {
|
|
15
|
+
const InnerItem = ({ icon, pluxee, label, dataLink }) => {
|
|
16
16
|
return (React.createElement(React.Fragment, null,
|
|
17
|
-
icon && React.createElement(Icon, { icon: icon }),
|
|
17
|
+
icon && React.createElement(Icon, { icon: icon, pluxee: pluxee }),
|
|
18
18
|
React.createElement("span", { className: "link-name", "data-link": `${dataLink ? 'link' : 'container'}` }, label)));
|
|
19
19
|
};
|
|
20
20
|
export const SideNavigationBarItem = (props) => {
|
|
21
21
|
var _a;
|
|
22
|
-
const { className = '',
|
|
22
|
+
const { className = '', items, index, pathname = '' } = props, attrs = __rest(props, ["className", "items", "index", "pathname"]);
|
|
23
23
|
const [active, setActive] = useState(false);
|
|
24
|
-
const [tooltipY, setTooltipY] = useState(0);
|
|
25
24
|
const sanitizedHref = (attrs === null || attrs === void 0 ? void 0 : attrs.href) ? (_a = attrs === null || attrs === void 0 ? void 0 : attrs.href) === null || _a === void 0 ? void 0 : _a.split('?')[0] : '';
|
|
26
25
|
const isHomePage = (sanitizedHref === '/' && pathname === '/');
|
|
27
26
|
const isPathActive = sanitizedHref && sanitizedHref !== '/' && pathname.includes(sanitizedHref);
|
|
28
27
|
const activeClass = isHomePage || isPathActive ? ' active' : '';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
React.createElement("div", null,
|
|
40
|
-
React.createElement(InnerItem, Object.assign({}, props))),
|
|
41
|
-
React.createElement(Icon, { icon: "fa-angle-down" })),
|
|
42
|
-
active && React.createElement("div", null,
|
|
43
|
-
React.createElement("ul", null, items.map((item, i) => (React.createElement(SideNavigationBarItem, Object.assign({ key: `side-navigation-bar-item-${index}-${i}` }, Object.assign(Object.assign({}, item), { index: i }))))))))
|
|
44
|
-
: React.createElement(Link, Object.assign({}, attrs),
|
|
45
|
-
React.createElement(InnerItem, Object.assign({}, props, { dataLink: true })))));
|
|
28
|
+
return (React.createElement("li", { className: `${className}${activeClass}` }, items
|
|
29
|
+
? React.createElement("div", { className: "sub-menu-container" },
|
|
30
|
+
React.createElement("div", { className: "sub-menu", onClick: () => setActive(prev => !prev) },
|
|
31
|
+
React.createElement("div", null,
|
|
32
|
+
React.createElement(InnerItem, Object.assign({}, props))),
|
|
33
|
+
React.createElement(Icon, { icon: "fa-angle-down" })),
|
|
34
|
+
active && React.createElement("div", null,
|
|
35
|
+
React.createElement("ul", { className: "sub-menu-list" }, items.map((item, i) => (React.createElement(SideNavigationBarItem, Object.assign({ key: `side-navigation-bar-item-${index}-${i}` }, Object.assign(Object.assign({}, item), { index: i }))))))))
|
|
36
|
+
: React.createElement(Link, Object.assign({}, attrs),
|
|
37
|
+
React.createElement(InnerItem, Object.assign({}, props, { dataLink: true })))));
|
|
46
38
|
};
|
|
@@ -9,6 +9,7 @@ export declare type SideNavigationBarProps = {
|
|
|
9
9
|
};
|
|
10
10
|
items: SideNavigationBarItemProps[];
|
|
11
11
|
active: boolean;
|
|
12
|
+
menuLabel?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare const SideNavigationBar: React.MemoExoticComponent<(props: SideNavigationBarProps) => JSX.Element>;
|
|
14
15
|
//# sourceMappingURL=side-navigation-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-navigation-bar.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation-bar/side-navigation-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"side-navigation-bar.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation-bar/side-navigation-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAyB,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAM9F,oBAAY,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;IACD,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAID,eAAO,MAAM,iBAAiB,oCAAgB,sBAAsB,iBAkFlE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { memo, useEffect, useRef
|
|
1
|
+
import React, { memo, useEffect, useRef } from 'react';
|
|
2
2
|
import { SideNavigationBarItem } from './side-navigation-bar-item';
|
|
3
3
|
import { Icon } from '../../atoms/icon';
|
|
4
4
|
import { storageHelper } from '../../index';
|
|
@@ -6,22 +6,13 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { useLocation } from 'react-router-dom';
|
|
7
7
|
const STORAGE_NAME = 'SIDEBAR_ACTIVE';
|
|
8
8
|
export const SideNavigationBar = memo((props) => {
|
|
9
|
-
const {
|
|
9
|
+
const { logout, items = [], active = true, menuLabel = 'Menu' } = props;
|
|
10
10
|
const activeStorage = storageHelper.get(STORAGE_NAME);
|
|
11
11
|
const showActive = activeStorage ? activeStorage === '1' : active;
|
|
12
12
|
storageHelper.set(STORAGE_NAME, showActive ? '1' : '0');
|
|
13
|
-
const refMenu = useRef(null);
|
|
14
13
|
const navlist = useRef(null);
|
|
15
|
-
const [addSpace, setAddSpace] = useState(false);
|
|
16
14
|
const { pathname, search } = useLocation();
|
|
17
15
|
const uri = `${pathname}${search}`;
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const nav = refMenu.current;
|
|
20
|
-
const div = navlist.current;
|
|
21
|
-
if (div != null && nav != null) {
|
|
22
|
-
setAddSpace(nav.offsetHeight < div.scrollHeight);
|
|
23
|
-
}
|
|
24
|
-
}, [navlist, refMenu]);
|
|
25
16
|
useEffect(() => {
|
|
26
17
|
const btnMobile = document.querySelector('.btn-sidebar-mobile');
|
|
27
18
|
const sidebar = document.querySelector('.sidebar');
|
|
@@ -49,25 +40,27 @@ export const SideNavigationBar = memo((props) => {
|
|
|
49
40
|
btnMobile.classList.add('active-mobile');
|
|
50
41
|
};
|
|
51
42
|
}, []);
|
|
52
|
-
const sideBarClassis = classNames('sidebar', showActive && 'active'
|
|
53
|
-
return (React.createElement(
|
|
43
|
+
const sideBarClassis = classNames('sidebar', showActive && 'active');
|
|
44
|
+
return (React.createElement(React.Fragment, null,
|
|
54
45
|
React.createElement("div", { className: sideBarClassis },
|
|
55
|
-
React.createElement("
|
|
56
|
-
React.createElement("
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} },
|
|
63
|
-
items.map((item, index) => (React.createElement(SideNavigationBarItem, Object.assign({ pathname: pathname, key: `side-navigation-bar-item-${index}` }, Object.assign(Object.assign({}, item), { index }))))),
|
|
46
|
+
React.createElement("ul", { className: "nav-list", ref: navlist },
|
|
47
|
+
React.createElement("li", null,
|
|
48
|
+
React.createElement("button", { className: "btn-sidebar", id: "btn-side-bar-toogle", type: "button" },
|
|
49
|
+
React.createElement(Icon, { icon: "fa-double-chevron-right", pluxee: true }),
|
|
50
|
+
" ",
|
|
51
|
+
React.createElement("span", { className: "link-name" }, menuLabel))),
|
|
52
|
+
items.map((item, index) => (React.createElement(SideNavigationBarItem, Object.assign({ pluxee: true, pathname: pathname, key: `side-navigation-bar-item-${index}` }, Object.assign(Object.assign({}, item), { index }))))),
|
|
64
53
|
!!(logout === null || logout === void 0 ? void 0 : logout.href) && (React.createElement(SideNavigationBarItem, Object.assign({ pathname: pathname }, {
|
|
65
54
|
className: 'link-logout',
|
|
66
|
-
icon: 'fa-
|
|
55
|
+
icon: 'fa-logout',
|
|
56
|
+
pluxee: true,
|
|
67
57
|
label: logout.label || 'Logout',
|
|
68
58
|
href: logout.href
|
|
69
59
|
}))))),
|
|
70
60
|
React.createElement("div", { className: "side-bar-mobile-overlay" }),
|
|
71
|
-
React.createElement(
|
|
61
|
+
React.createElement("button", { id: "btn-side-bar-mobile-toogle", type: "button", className: "btn btn-sidebar-mobile" },
|
|
62
|
+
React.createElement(Icon, { icon: "fa-double-chevron-left", pluxee: true }),
|
|
63
|
+
" ",
|
|
64
|
+
menuLabel)));
|
|
72
65
|
});
|
|
73
66
|
SideNavigationBar.displayName = 'SideNavigationBar';
|