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/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -74618,6 +74618,106 @@ const CheckboxElement = ({ label, name, size = "small", sx, ...rest }) => {
|
|
|
74618
74618
|
}
|
|
74619
74619
|
);
|
|
74620
74620
|
};
|
|
74621
|
+
const ColumnSettingsPopover = ({
|
|
74622
|
+
open: open2,
|
|
74623
|
+
anchorEl,
|
|
74624
|
+
title = "Tùy chỉnh trường",
|
|
74625
|
+
items,
|
|
74626
|
+
onClose,
|
|
74627
|
+
onToggle
|
|
74628
|
+
}) => {
|
|
74629
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74630
|
+
material.Popover,
|
|
74631
|
+
{
|
|
74632
|
+
open: open2,
|
|
74633
|
+
anchorEl,
|
|
74634
|
+
onClose,
|
|
74635
|
+
disableScrollLock: true,
|
|
74636
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
74637
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
74638
|
+
slotProps: {
|
|
74639
|
+
paper: {
|
|
74640
|
+
sx: {
|
|
74641
|
+
mt: "8px",
|
|
74642
|
+
minWidth: 320,
|
|
74643
|
+
maxHeight: 520,
|
|
74644
|
+
borderRadius: BORDER_RADIUS_ELEMENT_MIDDLE,
|
|
74645
|
+
border: `1px solid ${NEUTRAL[200]}`,
|
|
74646
|
+
boxShadow: "0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.1)",
|
|
74647
|
+
overflow: "hidden"
|
|
74648
|
+
}
|
|
74649
|
+
}
|
|
74650
|
+
},
|
|
74651
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { backgroundColor: WHITE[50] }, children: [
|
|
74652
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
74653
|
+
StackRowAlignCenter,
|
|
74654
|
+
{
|
|
74655
|
+
sx: {
|
|
74656
|
+
justifyContent: "space-between",
|
|
74657
|
+
padding: "12px 12px 10px 12px",
|
|
74658
|
+
borderBottom: `1px solid ${NEUTRAL[200]}`
|
|
74659
|
+
},
|
|
74660
|
+
children: [
|
|
74661
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textMd.semiBold }, children: title }),
|
|
74662
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { onClick: onClose, sx: { padding: 0.5 }, children: /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: "close" }) })
|
|
74663
|
+
]
|
|
74664
|
+
}
|
|
74665
|
+
),
|
|
74666
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74667
|
+
StackAlignCenter,
|
|
74668
|
+
{
|
|
74669
|
+
sx: {
|
|
74670
|
+
alignItems: "stretch",
|
|
74671
|
+
gap: 0.5,
|
|
74672
|
+
padding: "10px 8px",
|
|
74673
|
+
maxHeight: 460,
|
|
74674
|
+
overflowY: "auto"
|
|
74675
|
+
},
|
|
74676
|
+
children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
74677
|
+
StackRowAlignCenter,
|
|
74678
|
+
{
|
|
74679
|
+
sx: {
|
|
74680
|
+
justifyContent: "space-between",
|
|
74681
|
+
gap: 1,
|
|
74682
|
+
padding: "8px 8px",
|
|
74683
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74684
|
+
opacity: item.disabled ? 0.6 : 1
|
|
74685
|
+
},
|
|
74686
|
+
children: [
|
|
74687
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { sx: { gap: 1, minWidth: 0 }, children: [
|
|
74688
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: "drag_indicator", sx: { color: NEUTRAL[400] } }),
|
|
74689
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74690
|
+
material.Typography,
|
|
74691
|
+
{
|
|
74692
|
+
sx: {
|
|
74693
|
+
...TYPOGRAPHY.textSm.regular,
|
|
74694
|
+
whiteSpace: "nowrap",
|
|
74695
|
+
overflow: "hidden",
|
|
74696
|
+
textOverflow: "ellipsis"
|
|
74697
|
+
},
|
|
74698
|
+
children: item.label
|
|
74699
|
+
}
|
|
74700
|
+
)
|
|
74701
|
+
] }),
|
|
74702
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74703
|
+
material.Checkbox,
|
|
74704
|
+
{
|
|
74705
|
+
checked: item.checked,
|
|
74706
|
+
disabled: item.disabled,
|
|
74707
|
+
onChange: (event) => onToggle(item.key, event.target.checked),
|
|
74708
|
+
sx: { padding: 0 }
|
|
74709
|
+
}
|
|
74710
|
+
)
|
|
74711
|
+
]
|
|
74712
|
+
},
|
|
74713
|
+
item.key
|
|
74714
|
+
))
|
|
74715
|
+
}
|
|
74716
|
+
)
|
|
74717
|
+
] })
|
|
74718
|
+
}
|
|
74719
|
+
);
|
|
74720
|
+
};
|
|
74621
74721
|
const CollapsibleSection = React.forwardRef(
|
|
74622
74722
|
({ title, children, defaultExpanded = true, sx, titleSx, headerAction }, ref) => {
|
|
74623
74723
|
const [expanded, setExpanded] = React.useState(defaultExpanded);
|
|
@@ -78680,6 +78780,7 @@ exports.COLOR = color_const;
|
|
|
78680
78780
|
exports.CardStatisticsComponent = CardStatisticsComponent;
|
|
78681
78781
|
exports.CheckboxElement = CheckboxElement;
|
|
78682
78782
|
exports.CollapsibleSection = CollapsibleSection;
|
|
78783
|
+
exports.ColumnSettingsPopover = ColumnSettingsPopover;
|
|
78683
78784
|
exports.DATE_OPERATOR_OPTIONS = DATE_OPERATOR_OPTIONS;
|
|
78684
78785
|
exports.DATE_OPTIONS = DATE_OPTIONS;
|
|
78685
78786
|
exports.DISABLED_DEFAULT = DISABLED_DEFAULT;
|