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/dist/index.esm.js
CHANGED
|
@@ -444,16 +444,29 @@ const APP_OBJ = {
|
|
|
444
444
|
group: AppGroup.MANUFACTURING,
|
|
445
445
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
446
446
|
},
|
|
447
|
-
|
|
447
|
+
WAREHOUSE_INTERNAL: {
|
|
448
448
|
path: {
|
|
449
|
-
local: "http://localhost:12017",
|
|
450
|
-
develop: "https://dev.admin.warehouse-material.sevago.local",
|
|
451
|
-
staging: "https://sta.admin.warehouse-material.sevago.local",
|
|
452
|
-
production: "https://admin.warehouse-material.sevago.local",
|
|
449
|
+
local: "http://localhost:12017/internal",
|
|
450
|
+
develop: "https://dev.admin.warehouse-material.sevago.local/internal",
|
|
451
|
+
staging: "https://sta.admin.warehouse-material.sevago.local/internal",
|
|
452
|
+
production: "https://admin.warehouse-material.sevago.local/internal",
|
|
453
453
|
production_vps: ""
|
|
454
454
|
},
|
|
455
455
|
icon: ICONS.iconDefault,
|
|
456
|
-
content: "Kho
|
|
456
|
+
content: "Kho Nguyên liệu",
|
|
457
|
+
group: AppGroup.MANUFACTURING,
|
|
458
|
+
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
459
|
+
},
|
|
460
|
+
WAREHOUSE_ACCESSORY: {
|
|
461
|
+
path: {
|
|
462
|
+
local: "http://localhost:12017/accessory",
|
|
463
|
+
develop: "https://dev.admin.warehouse-material.sevago.local/accessory",
|
|
464
|
+
staging: "https://sta.admin.warehouse-material.sevago.local/accessory",
|
|
465
|
+
production: "https://admin.warehouse-material.sevago.local/accessory",
|
|
466
|
+
production_vps: ""
|
|
467
|
+
},
|
|
468
|
+
icon: ICONS.iconProject,
|
|
469
|
+
content: "Kho phụ liệu",
|
|
457
470
|
group: AppGroup.MANUFACTURING,
|
|
458
471
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
459
472
|
},
|
|
@@ -74600,6 +74613,106 @@ const CheckboxElement = ({ label, name, size = "small", sx, ...rest }) => {
|
|
|
74600
74613
|
}
|
|
74601
74614
|
);
|
|
74602
74615
|
};
|
|
74616
|
+
const ColumnSettingsPopover = ({
|
|
74617
|
+
open: open2,
|
|
74618
|
+
anchorEl,
|
|
74619
|
+
title = "Tùy chỉnh trường",
|
|
74620
|
+
items,
|
|
74621
|
+
onClose,
|
|
74622
|
+
onToggle
|
|
74623
|
+
}) => {
|
|
74624
|
+
return /* @__PURE__ */ jsx(
|
|
74625
|
+
Popover$1,
|
|
74626
|
+
{
|
|
74627
|
+
open: open2,
|
|
74628
|
+
anchorEl,
|
|
74629
|
+
onClose,
|
|
74630
|
+
disableScrollLock: true,
|
|
74631
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
74632
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
74633
|
+
slotProps: {
|
|
74634
|
+
paper: {
|
|
74635
|
+
sx: {
|
|
74636
|
+
mt: "8px",
|
|
74637
|
+
minWidth: 320,
|
|
74638
|
+
maxHeight: 520,
|
|
74639
|
+
borderRadius: BORDER_RADIUS_ELEMENT_MIDDLE,
|
|
74640
|
+
border: `1px solid ${NEUTRAL[200]}`,
|
|
74641
|
+
boxShadow: "0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.1)",
|
|
74642
|
+
overflow: "hidden"
|
|
74643
|
+
}
|
|
74644
|
+
}
|
|
74645
|
+
},
|
|
74646
|
+
children: /* @__PURE__ */ jsxs(Box, { sx: { backgroundColor: WHITE[50] }, children: [
|
|
74647
|
+
/* @__PURE__ */ jsxs(
|
|
74648
|
+
StackRowAlignCenter,
|
|
74649
|
+
{
|
|
74650
|
+
sx: {
|
|
74651
|
+
justifyContent: "space-between",
|
|
74652
|
+
padding: "12px 12px 10px 12px",
|
|
74653
|
+
borderBottom: `1px solid ${NEUTRAL[200]}`
|
|
74654
|
+
},
|
|
74655
|
+
children: [
|
|
74656
|
+
/* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textMd.semiBold }, children: title }),
|
|
74657
|
+
/* @__PURE__ */ jsx(IconButton$1, { onClick: onClose, sx: { padding: 0.5 }, children: /* @__PURE__ */ jsx(IconElement, { icon: "close" }) })
|
|
74658
|
+
]
|
|
74659
|
+
}
|
|
74660
|
+
),
|
|
74661
|
+
/* @__PURE__ */ jsx(
|
|
74662
|
+
StackAlignCenter,
|
|
74663
|
+
{
|
|
74664
|
+
sx: {
|
|
74665
|
+
alignItems: "stretch",
|
|
74666
|
+
gap: 0.5,
|
|
74667
|
+
padding: "10px 8px",
|
|
74668
|
+
maxHeight: 460,
|
|
74669
|
+
overflowY: "auto"
|
|
74670
|
+
},
|
|
74671
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
74672
|
+
StackRowAlignCenter,
|
|
74673
|
+
{
|
|
74674
|
+
sx: {
|
|
74675
|
+
justifyContent: "space-between",
|
|
74676
|
+
gap: 1,
|
|
74677
|
+
padding: "8px 8px",
|
|
74678
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74679
|
+
opacity: item.disabled ? 0.6 : 1
|
|
74680
|
+
},
|
|
74681
|
+
children: [
|
|
74682
|
+
/* @__PURE__ */ jsxs(StackRowAlignCenter, { sx: { gap: 1, minWidth: 0 }, children: [
|
|
74683
|
+
/* @__PURE__ */ jsx(IconElement, { icon: "drag_indicator", sx: { color: NEUTRAL[400] } }),
|
|
74684
|
+
/* @__PURE__ */ jsx(
|
|
74685
|
+
Typography$1,
|
|
74686
|
+
{
|
|
74687
|
+
sx: {
|
|
74688
|
+
...TYPOGRAPHY.textSm.regular,
|
|
74689
|
+
whiteSpace: "nowrap",
|
|
74690
|
+
overflow: "hidden",
|
|
74691
|
+
textOverflow: "ellipsis"
|
|
74692
|
+
},
|
|
74693
|
+
children: item.label
|
|
74694
|
+
}
|
|
74695
|
+
)
|
|
74696
|
+
] }),
|
|
74697
|
+
/* @__PURE__ */ jsx(
|
|
74698
|
+
Checkbox,
|
|
74699
|
+
{
|
|
74700
|
+
checked: item.checked,
|
|
74701
|
+
disabled: item.disabled,
|
|
74702
|
+
onChange: (event) => onToggle(item.key, event.target.checked),
|
|
74703
|
+
sx: { padding: 0 }
|
|
74704
|
+
}
|
|
74705
|
+
)
|
|
74706
|
+
]
|
|
74707
|
+
},
|
|
74708
|
+
item.key
|
|
74709
|
+
))
|
|
74710
|
+
}
|
|
74711
|
+
)
|
|
74712
|
+
] })
|
|
74713
|
+
}
|
|
74714
|
+
);
|
|
74715
|
+
};
|
|
74603
74716
|
const CollapsibleSection = forwardRef(
|
|
74604
74717
|
({ title, children, defaultExpanded = true, sx, titleSx, headerAction }, ref) => {
|
|
74605
74718
|
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
@@ -78663,6 +78776,7 @@ export {
|
|
|
78663
78776
|
CardStatisticsComponent,
|
|
78664
78777
|
CheckboxElement,
|
|
78665
78778
|
CollapsibleSection,
|
|
78779
|
+
ColumnSettingsPopover,
|
|
78666
78780
|
DATE_OPERATOR_OPTIONS,
|
|
78667
78781
|
DATE_OPTIONS,
|
|
78668
78782
|
DISABLED_DEFAULT,
|