sevago-library 1.2.4 → 1.3.1
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +120 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +120 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/src/common/const/apps.const.d.ts +14 -1
- package/dist/src/components/elements/column-settings-popover/column-settings-popover.component.d.ts +16 -0
- package/dist/src/components/elements/column-settings-popover/column-settings-popover.component.stories.d.ts +7 -0
- package/dist/src/components/elements/column-settings-popover/index.d.ts +1 -0
- package/dist/src/components/elements/index.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -462,16 +462,29 @@ const APP_OBJ = {
|
|
|
462
462
|
group: AppGroup.MANUFACTURING,
|
|
463
463
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
464
464
|
},
|
|
465
|
-
|
|
465
|
+
WAREHOUSE_INTERNAL: {
|
|
466
466
|
path: {
|
|
467
|
-
local: "http://localhost:12017",
|
|
468
|
-
develop: "https://dev.admin.warehouse-material.sevago.local",
|
|
469
|
-
staging: "https://sta.admin.warehouse-material.sevago.local",
|
|
470
|
-
production: "https://admin.warehouse-material.sevago.local",
|
|
467
|
+
local: "http://localhost:12017/internal",
|
|
468
|
+
develop: "https://dev.admin.warehouse-material.sevago.local/internal",
|
|
469
|
+
staging: "https://sta.admin.warehouse-material.sevago.local/internal",
|
|
470
|
+
production: "https://admin.warehouse-material.sevago.local/internal",
|
|
471
471
|
production_vps: ""
|
|
472
472
|
},
|
|
473
473
|
icon: ICONS.iconDefault,
|
|
474
|
-
content: "Kho
|
|
474
|
+
content: "Kho Nguyên liệu",
|
|
475
|
+
group: AppGroup.MANUFACTURING,
|
|
476
|
+
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
477
|
+
},
|
|
478
|
+
WAREHOUSE_ACCESSORY: {
|
|
479
|
+
path: {
|
|
480
|
+
local: "http://localhost:12017/accessory",
|
|
481
|
+
develop: "https://dev.admin.warehouse-material.sevago.local/accessory",
|
|
482
|
+
staging: "https://sta.admin.warehouse-material.sevago.local/accessory",
|
|
483
|
+
production: "https://admin.warehouse-material.sevago.local/accessory",
|
|
484
|
+
production_vps: ""
|
|
485
|
+
},
|
|
486
|
+
icon: ICONS.iconProject,
|
|
487
|
+
content: "Kho phụ liệu",
|
|
475
488
|
group: AppGroup.MANUFACTURING,
|
|
476
489
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
477
490
|
},
|
|
@@ -74618,6 +74631,106 @@ const CheckboxElement = ({ label, name, size = "small", sx, ...rest }) => {
|
|
|
74618
74631
|
}
|
|
74619
74632
|
);
|
|
74620
74633
|
};
|
|
74634
|
+
const ColumnSettingsPopover = ({
|
|
74635
|
+
open: open2,
|
|
74636
|
+
anchorEl,
|
|
74637
|
+
title = "Tùy chỉnh trường",
|
|
74638
|
+
items,
|
|
74639
|
+
onClose,
|
|
74640
|
+
onToggle
|
|
74641
|
+
}) => {
|
|
74642
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74643
|
+
material.Popover,
|
|
74644
|
+
{
|
|
74645
|
+
open: open2,
|
|
74646
|
+
anchorEl,
|
|
74647
|
+
onClose,
|
|
74648
|
+
disableScrollLock: true,
|
|
74649
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
74650
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
74651
|
+
slotProps: {
|
|
74652
|
+
paper: {
|
|
74653
|
+
sx: {
|
|
74654
|
+
mt: "8px",
|
|
74655
|
+
minWidth: 320,
|
|
74656
|
+
maxHeight: 520,
|
|
74657
|
+
borderRadius: BORDER_RADIUS_ELEMENT_MIDDLE,
|
|
74658
|
+
border: `1px solid ${NEUTRAL[200]}`,
|
|
74659
|
+
boxShadow: "0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.1)",
|
|
74660
|
+
overflow: "hidden"
|
|
74661
|
+
}
|
|
74662
|
+
}
|
|
74663
|
+
},
|
|
74664
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { backgroundColor: WHITE[50] }, children: [
|
|
74665
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
74666
|
+
StackRowAlignCenter,
|
|
74667
|
+
{
|
|
74668
|
+
sx: {
|
|
74669
|
+
justifyContent: "space-between",
|
|
74670
|
+
padding: "12px 12px 10px 12px",
|
|
74671
|
+
borderBottom: `1px solid ${NEUTRAL[200]}`
|
|
74672
|
+
},
|
|
74673
|
+
children: [
|
|
74674
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textMd.semiBold }, children: title }),
|
|
74675
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { onClick: onClose, sx: { padding: 0.5 }, children: /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: "close" }) })
|
|
74676
|
+
]
|
|
74677
|
+
}
|
|
74678
|
+
),
|
|
74679
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74680
|
+
StackAlignCenter,
|
|
74681
|
+
{
|
|
74682
|
+
sx: {
|
|
74683
|
+
alignItems: "stretch",
|
|
74684
|
+
gap: 0.5,
|
|
74685
|
+
padding: "10px 8px",
|
|
74686
|
+
maxHeight: 460,
|
|
74687
|
+
overflowY: "auto"
|
|
74688
|
+
},
|
|
74689
|
+
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
74690
|
+
StackRowAlignCenter,
|
|
74691
|
+
{
|
|
74692
|
+
sx: {
|
|
74693
|
+
justifyContent: "space-between",
|
|
74694
|
+
gap: 1,
|
|
74695
|
+
padding: "8px 8px",
|
|
74696
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74697
|
+
opacity: item.disabled ? 0.6 : 1
|
|
74698
|
+
},
|
|
74699
|
+
children: [
|
|
74700
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { sx: { gap: 1, minWidth: 0 }, children: [
|
|
74701
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: "drag_indicator", sx: { color: NEUTRAL[400] } }),
|
|
74702
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74703
|
+
material.Typography,
|
|
74704
|
+
{
|
|
74705
|
+
sx: {
|
|
74706
|
+
...TYPOGRAPHY.textSm.regular,
|
|
74707
|
+
whiteSpace: "nowrap",
|
|
74708
|
+
overflow: "hidden",
|
|
74709
|
+
textOverflow: "ellipsis"
|
|
74710
|
+
},
|
|
74711
|
+
children: item.label
|
|
74712
|
+
}
|
|
74713
|
+
)
|
|
74714
|
+
] }),
|
|
74715
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74716
|
+
material.Checkbox,
|
|
74717
|
+
{
|
|
74718
|
+
checked: item.checked,
|
|
74719
|
+
disabled: item.disabled,
|
|
74720
|
+
onChange: (event) => onToggle(item.key, event.target.checked),
|
|
74721
|
+
sx: { padding: 0 }
|
|
74722
|
+
}
|
|
74723
|
+
)
|
|
74724
|
+
]
|
|
74725
|
+
},
|
|
74726
|
+
item.key
|
|
74727
|
+
))
|
|
74728
|
+
}
|
|
74729
|
+
)
|
|
74730
|
+
] })
|
|
74731
|
+
}
|
|
74732
|
+
);
|
|
74733
|
+
};
|
|
74621
74734
|
const CollapsibleSection = React.forwardRef(
|
|
74622
74735
|
({ title, children, defaultExpanded = true, sx, titleSx, headerAction }, ref) => {
|
|
74623
74736
|
const [expanded, setExpanded] = React.useState(defaultExpanded);
|
|
@@ -78680,6 +78793,7 @@ exports.COLOR = color_const;
|
|
|
78680
78793
|
exports.CardStatisticsComponent = CardStatisticsComponent;
|
|
78681
78794
|
exports.CheckboxElement = CheckboxElement;
|
|
78682
78795
|
exports.CollapsibleSection = CollapsibleSection;
|
|
78796
|
+
exports.ColumnSettingsPopover = ColumnSettingsPopover;
|
|
78683
78797
|
exports.DATE_OPERATOR_OPTIONS = DATE_OPERATOR_OPTIONS;
|
|
78684
78798
|
exports.DATE_OPTIONS = DATE_OPTIONS;
|
|
78685
78799
|
exports.DISABLED_DEFAULT = DISABLED_DEFAULT;
|