sevago-library 1.2.4 → 1.3.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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +101 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +101 -0
- package/dist/index.esm.js.map +1 -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
|
@@ -74600,6 +74600,106 @@ const CheckboxElement = ({ label, name, size = "small", sx, ...rest }) => {
|
|
|
74600
74600
|
}
|
|
74601
74601
|
);
|
|
74602
74602
|
};
|
|
74603
|
+
const ColumnSettingsPopover = ({
|
|
74604
|
+
open: open2,
|
|
74605
|
+
anchorEl,
|
|
74606
|
+
title = "Tùy chỉnh trường",
|
|
74607
|
+
items,
|
|
74608
|
+
onClose,
|
|
74609
|
+
onToggle
|
|
74610
|
+
}) => {
|
|
74611
|
+
return /* @__PURE__ */ jsx(
|
|
74612
|
+
Popover$1,
|
|
74613
|
+
{
|
|
74614
|
+
open: open2,
|
|
74615
|
+
anchorEl,
|
|
74616
|
+
onClose,
|
|
74617
|
+
disableScrollLock: true,
|
|
74618
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
74619
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
74620
|
+
slotProps: {
|
|
74621
|
+
paper: {
|
|
74622
|
+
sx: {
|
|
74623
|
+
mt: "8px",
|
|
74624
|
+
minWidth: 320,
|
|
74625
|
+
maxHeight: 520,
|
|
74626
|
+
borderRadius: BORDER_RADIUS_ELEMENT_MIDDLE,
|
|
74627
|
+
border: `1px solid ${NEUTRAL[200]}`,
|
|
74628
|
+
boxShadow: "0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.1)",
|
|
74629
|
+
overflow: "hidden"
|
|
74630
|
+
}
|
|
74631
|
+
}
|
|
74632
|
+
},
|
|
74633
|
+
children: /* @__PURE__ */ jsxs(Box, { sx: { backgroundColor: WHITE[50] }, children: [
|
|
74634
|
+
/* @__PURE__ */ jsxs(
|
|
74635
|
+
StackRowAlignCenter,
|
|
74636
|
+
{
|
|
74637
|
+
sx: {
|
|
74638
|
+
justifyContent: "space-between",
|
|
74639
|
+
padding: "12px 12px 10px 12px",
|
|
74640
|
+
borderBottom: `1px solid ${NEUTRAL[200]}`
|
|
74641
|
+
},
|
|
74642
|
+
children: [
|
|
74643
|
+
/* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textMd.semiBold }, children: title }),
|
|
74644
|
+
/* @__PURE__ */ jsx(IconButton$1, { onClick: onClose, sx: { padding: 0.5 }, children: /* @__PURE__ */ jsx(IconElement, { icon: "close" }) })
|
|
74645
|
+
]
|
|
74646
|
+
}
|
|
74647
|
+
),
|
|
74648
|
+
/* @__PURE__ */ jsx(
|
|
74649
|
+
StackAlignCenter,
|
|
74650
|
+
{
|
|
74651
|
+
sx: {
|
|
74652
|
+
alignItems: "stretch",
|
|
74653
|
+
gap: 0.5,
|
|
74654
|
+
padding: "10px 8px",
|
|
74655
|
+
maxHeight: 460,
|
|
74656
|
+
overflowY: "auto"
|
|
74657
|
+
},
|
|
74658
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
74659
|
+
StackRowAlignCenter,
|
|
74660
|
+
{
|
|
74661
|
+
sx: {
|
|
74662
|
+
justifyContent: "space-between",
|
|
74663
|
+
gap: 1,
|
|
74664
|
+
padding: "8px 8px",
|
|
74665
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74666
|
+
opacity: item.disabled ? 0.6 : 1
|
|
74667
|
+
},
|
|
74668
|
+
children: [
|
|
74669
|
+
/* @__PURE__ */ jsxs(StackRowAlignCenter, { sx: { gap: 1, minWidth: 0 }, children: [
|
|
74670
|
+
/* @__PURE__ */ jsx(IconElement, { icon: "drag_indicator", sx: { color: NEUTRAL[400] } }),
|
|
74671
|
+
/* @__PURE__ */ jsx(
|
|
74672
|
+
Typography$1,
|
|
74673
|
+
{
|
|
74674
|
+
sx: {
|
|
74675
|
+
...TYPOGRAPHY.textSm.regular,
|
|
74676
|
+
whiteSpace: "nowrap",
|
|
74677
|
+
overflow: "hidden",
|
|
74678
|
+
textOverflow: "ellipsis"
|
|
74679
|
+
},
|
|
74680
|
+
children: item.label
|
|
74681
|
+
}
|
|
74682
|
+
)
|
|
74683
|
+
] }),
|
|
74684
|
+
/* @__PURE__ */ jsx(
|
|
74685
|
+
Checkbox,
|
|
74686
|
+
{
|
|
74687
|
+
checked: item.checked,
|
|
74688
|
+
disabled: item.disabled,
|
|
74689
|
+
onChange: (event) => onToggle(item.key, event.target.checked),
|
|
74690
|
+
sx: { padding: 0 }
|
|
74691
|
+
}
|
|
74692
|
+
)
|
|
74693
|
+
]
|
|
74694
|
+
},
|
|
74695
|
+
item.key
|
|
74696
|
+
))
|
|
74697
|
+
}
|
|
74698
|
+
)
|
|
74699
|
+
] })
|
|
74700
|
+
}
|
|
74701
|
+
);
|
|
74702
|
+
};
|
|
74603
74703
|
const CollapsibleSection = forwardRef(
|
|
74604
74704
|
({ title, children, defaultExpanded = true, sx, titleSx, headerAction }, ref) => {
|
|
74605
74705
|
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
@@ -78663,6 +78763,7 @@ export {
|
|
|
78663
78763
|
CardStatisticsComponent,
|
|
78664
78764
|
CheckboxElement,
|
|
78665
78765
|
CollapsibleSection,
|
|
78766
|
+
ColumnSettingsPopover,
|
|
78666
78767
|
DATE_OPERATOR_OPTIONS,
|
|
78667
78768
|
DATE_OPTIONS,
|
|
78668
78769
|
DISABLED_DEFAULT,
|