@enyxs/wikex-components 0.11.49 → 0.11.51
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/README.md +8 -0
- package/assets/partner-assets/21447-29585-imgGlobal.webp +0 -0
- package/assets/partner-assets/21447-29585-imgHinhAnhSanPhamGiaoDich2.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage1.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage3.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage5.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage7.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D1.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D2.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D3.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D4.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D5.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D6.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D7.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D8.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective23D.webp +0 -0
- package/assets/partner-assets/21447-29644-imgImage.webp +0 -0
- package/assets/partner-assets/21447-29644-imgMap.webp +0 -0
- package/assets/partner-assets/21447-29794-imgImage12.webp +0 -0
- package/assets/partner-assets/21447-29794-imgRectangle34624392.webp +0 -0
- package/assets/partner-assets/21691-46223-imgGlobal.webp +0 -0
- package/assets/partner-assets/21691-46223-imgHinhAnhSanPhamGiaoDich2.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage1.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage3.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage5.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage7.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D1.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D2.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D3.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D4.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D5.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D6.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D7.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D8.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective23D.webp +0 -0
- package/dist/chrome-model.js +27 -2
- package/dist/chrome-model.mjs +27 -2
- package/dist/consultation-model.d.mts +2 -1
- package/dist/consultation-model.d.ts +2 -1
- package/dist/consultation-model.js +12 -2
- package/dist/consultation-model.mjs +10 -1
- package/dist/consultations.d.mts +1 -0
- package/dist/consultations.d.ts +1 -0
- package/dist/consultations.js +9 -10
- package/dist/consultations.mjs +9 -10
- package/dist/fees-model.js +5 -2
- package/dist/fees-model.mjs +5 -2
- package/dist/fees.js +44 -29
- package/dist/fees.mjs +44 -29
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2009 -2369
- package/dist/index.mjs +1484 -1849
- package/dist/manifest.json +63 -63
- package/dist/partner.js +177 -134
- package/dist/partner.mjs +178 -135
- package/dist/products.js +58 -44
- package/dist/products.mjs +58 -44
- package/dist/ui.d.mts +2 -1
- package/dist/ui.d.ts +2 -1
- package/dist/ui.js +26 -12
- package/dist/ui.mjs +26 -12
- package/package.json +151 -46
- package/assets/partner-assets/21447-29491-imgTangTruongVangTrongMangLuoiToanCau5.png +0 -0
- package/assets/partner-assets/21447-29585-imgGlobal.png +0 -0
- package/assets/partner-assets/21447-29585-imgHinhAnhSanPhamGiaoDich2.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage1.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage3.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage5.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage7.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D1.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D2.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D3.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D4.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D5.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D6.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D7.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D8.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective23D.png +0 -0
- package/assets/partner-assets/21447-29644-imgImage.png +0 -0
- package/assets/partner-assets/21447-29644-imgMap.png +0 -0
- package/assets/partner-assets/21447-29794-imgImage12.png +0 -0
- package/assets/partner-assets/21447-29794-imgRectangle34624392.png +0 -0
- package/assets/partner-assets/21691-46108-imgTangTruongVangTrongMangLuoiToanCau5.png +0 -0
- package/assets/partner-assets/21691-46223-imgGlobal.png +0 -0
- package/assets/partner-assets/21691-46223-imgHinhAnhSanPhamGiaoDich2.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage1.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage3.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage5.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage7.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D1.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D2.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D3.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D4.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D5.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D6.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D7.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D8.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective23D.png +0 -0
package/dist/fees.js
CHANGED
|
@@ -198,7 +198,8 @@ function normalizeFeesSearch(value) {
|
|
|
198
198
|
}
|
|
199
199
|
function filterFeesRows(data, search, tag) {
|
|
200
200
|
const query = normalizeFeesSearch(search);
|
|
201
|
-
|
|
201
|
+
const keys = data.columns.filter((column) => !column.hidden).map((column) => column.key);
|
|
202
|
+
return data.rows.filter((row) => (!tag || row.tags.includes(tag)) && (!query || keys.some((key) => normalizeFeesSearch(row.cells[key] ?? "").includes(query))));
|
|
202
203
|
}
|
|
203
204
|
function sortFeesRowsByName(rows, language = "vi") {
|
|
204
205
|
const collator = new Intl.Collator(language, { sensitivity: "base", numeric: true });
|
|
@@ -796,24 +797,24 @@ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL
|
|
|
796
797
|
// src/commodity-original/components/Pagination/style.ts
|
|
797
798
|
var import_styled_components2 = require("styled-components");
|
|
798
799
|
var PaginationNav = import_styled_components2.styled.nav.withConfig({
|
|
799
|
-
componentId: "sc-
|
|
800
|
+
componentId: "sc-e6c46071-0"
|
|
800
801
|
})([
|
|
801
802
|
`display:flex;justify-content:center;`
|
|
802
803
|
]);
|
|
803
804
|
var PaginationList = import_styled_components2.styled.ul.withConfig({
|
|
804
|
-
componentId: "sc-
|
|
805
|
+
componentId: "sc-e6c46071-1"
|
|
805
806
|
})([
|
|
806
807
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
807
808
|
]);
|
|
808
809
|
var PaginationItem = import_styled_components2.styled.li.withConfig({
|
|
809
|
-
componentId: "sc-
|
|
810
|
+
componentId: "sc-e6c46071-2"
|
|
810
811
|
})([
|
|
811
812
|
`display:flex;`
|
|
812
813
|
]);
|
|
813
814
|
var PaginationButton = import_styled_components2.styled.button.withConfig({
|
|
814
|
-
componentId: "sc-
|
|
815
|
+
componentId: "sc-e6c46071-3"
|
|
815
816
|
})([
|
|
816
|
-
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
817
|
+
`box-sizing:border-box;text-decoration:none;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
817
818
|
`;border-radius:4px;padding:4px;color:`,
|
|
818
819
|
`;background:`,
|
|
819
820
|
`;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
|
|
@@ -826,7 +827,7 @@ var PaginationButton = import_styled_components2.styled.button.withConfig({
|
|
|
826
827
|
`;outline-offset:2px;}`
|
|
827
828
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
828
829
|
var PaginationArrow = import_styled_components2.styled.span.withConfig({
|
|
829
|
-
componentId: "sc-
|
|
830
|
+
componentId: "sc-e6c46071-4"
|
|
830
831
|
})([
|
|
831
832
|
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
832
833
|
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
@@ -859,6 +860,7 @@ function Pagination({
|
|
|
859
860
|
page,
|
|
860
861
|
pageCount,
|
|
861
862
|
onPageChange,
|
|
863
|
+
getPageHref,
|
|
862
864
|
siblingCount = 1,
|
|
863
865
|
ariaLabel,
|
|
864
866
|
labels: labels2,
|
|
@@ -870,6 +872,13 @@ function Pagination({
|
|
|
870
872
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
871
873
|
const hasPreviousPage = currentPage > 1;
|
|
872
874
|
const hasNextPage = currentPage < safePageCount;
|
|
875
|
+
const pageClick = (page2) => (event) => {
|
|
876
|
+
if (getPageHref) {
|
|
877
|
+
if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
878
|
+
event.preventDefault();
|
|
879
|
+
}
|
|
880
|
+
onPageChange(page2);
|
|
881
|
+
};
|
|
873
882
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
874
883
|
PaginationNav,
|
|
875
884
|
{
|
|
@@ -879,33 +888,39 @@ function Pagination({
|
|
|
879
888
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
880
889
|
PaginationButton,
|
|
881
890
|
{
|
|
891
|
+
as: getPageHref && hasPreviousPage ? "a" : "button",
|
|
892
|
+
href: getPageHref && hasPreviousPage ? getPageHref(currentPage - 1) : void 0,
|
|
882
893
|
"aria-label": labels2?.previous ?? t("pagination.previous"),
|
|
883
894
|
"data-control": "previous",
|
|
884
895
|
disabled: !hasPreviousPage,
|
|
885
|
-
onClick: (
|
|
886
|
-
type: "button",
|
|
896
|
+
onClick: pageClick(currentPage - 1),
|
|
897
|
+
type: getPageHref && hasPreviousPage ? void 0 : "button",
|
|
887
898
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationArrow, { "data-direction": "previous" })
|
|
888
899
|
}
|
|
889
900
|
) }),
|
|
890
901
|
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
891
902
|
PaginationButton,
|
|
892
903
|
{
|
|
904
|
+
as: getPageHref ? "a" : "button",
|
|
905
|
+
href: getPageHref?.(item),
|
|
893
906
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
894
907
|
"aria-label": item === currentPage ? labels2?.current(item) ?? t("pagination.current", { page: item }) : labels2?.page(item) ?? t("pagination.page", { page: item }),
|
|
895
908
|
"data-active": item === currentPage || void 0,
|
|
896
|
-
onClick: (
|
|
897
|
-
type: "button",
|
|
909
|
+
onClick: pageClick(item),
|
|
910
|
+
type: getPageHref ? void 0 : "button",
|
|
898
911
|
children: item
|
|
899
912
|
}
|
|
900
913
|
) }, `${item}-${index}`)),
|
|
901
914
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
902
915
|
PaginationButton,
|
|
903
916
|
{
|
|
917
|
+
as: getPageHref && hasNextPage ? "a" : "button",
|
|
918
|
+
href: getPageHref && hasNextPage ? getPageHref(currentPage + 1) : void 0,
|
|
904
919
|
"aria-label": labels2?.next ?? t("pagination.next"),
|
|
905
920
|
"data-control": "next",
|
|
906
921
|
disabled: !hasNextPage,
|
|
907
|
-
onClick: (
|
|
908
|
-
type: "button",
|
|
922
|
+
onClick: pageClick(currentPage + 1),
|
|
923
|
+
type: getPageHref && hasNextPage ? void 0 : "button",
|
|
909
924
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PaginationArrow, { "data-direction": "next" })
|
|
910
925
|
}
|
|
911
926
|
) })
|
|
@@ -1030,84 +1045,84 @@ function TabCommon({
|
|
|
1030
1045
|
|
|
1031
1046
|
// src/commodity-original/app/bang-phi-ky-quy/style.ts
|
|
1032
1047
|
var import_styled_components5 = __toESM(require("styled-components"));
|
|
1033
|
-
var FeesAndMarginMain = import_styled_components5.default.
|
|
1034
|
-
componentId: "sc-
|
|
1048
|
+
var FeesAndMarginMain = import_styled_components5.default.div.withConfig({
|
|
1049
|
+
componentId: "sc-b4b1a961-0"
|
|
1035
1050
|
})([
|
|
1036
1051
|
`min-height:calc(100vh - var(--header-height));background:`,
|
|
1037
1052
|
`;`
|
|
1038
1053
|
], ({ theme }) => theme.colors.background.warm);
|
|
1039
1054
|
var FeesAndMarginPageContent = import_styled_components5.default.div.withConfig({
|
|
1040
|
-
componentId: "sc-
|
|
1055
|
+
componentId: "sc-b4b1a961-1"
|
|
1041
1056
|
})([
|
|
1042
1057
|
`width:min(1920px,100%);margin:0 auto;padding:58px 16px 80px;@media (max-width:767px){padding:32px 16px 48px;}`
|
|
1043
1058
|
]);
|
|
1044
1059
|
var FeesAndMarginHeader = import_styled_components5.default.header.withConfig({
|
|
1045
|
-
componentId: "sc-
|
|
1060
|
+
componentId: "sc-b4b1a961-2"
|
|
1046
1061
|
})([
|
|
1047
1062
|
`h1{margin:0;color:`,
|
|
1048
1063
|
`;font-family:var(--Font-Landingpage,Inter);font-size:40px;font-weight:700;line-height:50px;}p{margin:16px 0 0;color:`,
|
|
1049
1064
|
`;font-family:var(--Font-Landingpage,Inter);font-size:var(--Size-Body-M,16px);font-style:normal;font-weight:600;line-height:var(--Line-height-Body-M,22px);}@media (max-width:767px){h1{font-size:24px;line-height:36px;}p{font-size:14px;line-height:18px;}}`
|
|
1050
1065
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.text.primary);
|
|
1051
1066
|
var FeesAndMarginToolbar = import_styled_components5.default.section.withConfig({
|
|
1052
|
-
componentId: "sc-
|
|
1067
|
+
componentId: "sc-b4b1a961-3"
|
|
1053
1068
|
})([
|
|
1054
1069
|
`margin-top:32px;`
|
|
1055
1070
|
]);
|
|
1056
1071
|
var FeesAndMarginToolbarInner = import_styled_components5.default.div.withConfig({
|
|
1057
|
-
componentId: "sc-
|
|
1072
|
+
componentId: "sc-b4b1a961-4"
|
|
1058
1073
|
})([
|
|
1059
1074
|
`display:flex;gap:16px;align-items:center;justify-content:space-between;@media (max-width:767px){align-items:stretch;flex-direction:column;}`
|
|
1060
1075
|
]);
|
|
1061
1076
|
var FeesAndMarginSearch = import_styled_components5.default.div.withConfig({
|
|
1062
|
-
componentId: "sc-
|
|
1077
|
+
componentId: "sc-b4b1a961-5"
|
|
1063
1078
|
})([
|
|
1064
1079
|
`width:220px;@media (max-width:767px){order:-1;width:100%;}`
|
|
1065
1080
|
]);
|
|
1066
1081
|
var FeesSearchIcon = import_styled_components5.default.span.withConfig({
|
|
1067
|
-
componentId: "sc-
|
|
1082
|
+
componentId: "sc-b4b1a961-6"
|
|
1068
1083
|
})([
|
|
1069
1084
|
`display:block;width:14px;height:14px;background:currentColor;mask:url("/icons/search.svg") center / contain no-repeat;-webkit-mask:url("/icons/search.svg") center / contain no-repeat;`
|
|
1070
1085
|
]);
|
|
1071
1086
|
var FeesAndMarginTable = import_styled_components5.default.section.withConfig({
|
|
1072
|
-
componentId: "sc-
|
|
1087
|
+
componentId: "sc-b4b1a961-7"
|
|
1073
1088
|
})([
|
|
1074
1089
|
`margin-top:24px;td{white-space:pre-line;}`
|
|
1075
1090
|
]);
|
|
1076
1091
|
var FeesAndMarginPagination = import_styled_components5.default.div.withConfig({
|
|
1077
|
-
componentId: "sc-
|
|
1092
|
+
componentId: "sc-b4b1a961-8"
|
|
1078
1093
|
})([
|
|
1079
1094
|
`display:flex;margin-top:32px;justify-content:center;`
|
|
1080
1095
|
]);
|
|
1081
1096
|
var FeesMonthNavigation = import_styled_components5.default.nav.withConfig({
|
|
1082
|
-
componentId: "sc-
|
|
1097
|
+
componentId: "sc-b4b1a961-9"
|
|
1083
1098
|
})([
|
|
1084
1099
|
`margin-top:32px;@media (max-width:767px){display:none;}`
|
|
1085
1100
|
]);
|
|
1086
1101
|
var FeesMonthTitle = import_styled_components5.default.p.withConfig({
|
|
1087
|
-
componentId: "sc-
|
|
1102
|
+
componentId: "sc-b4b1a961-10"
|
|
1088
1103
|
})([
|
|
1089
1104
|
`margin:0;color:`,
|
|
1090
1105
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:700;line-height:var(--Line-height-Title-S,18px);text-align:center;`
|
|
1091
1106
|
], ({ theme }) => theme.colors.text.primary);
|
|
1092
1107
|
var FeesMonthList = import_styled_components5.default.ul.withConfig({
|
|
1093
|
-
componentId: "sc-
|
|
1108
|
+
componentId: "sc-b4b1a961-11"
|
|
1094
1109
|
})([
|
|
1095
1110
|
`display:flex;margin:8px 0 0;padding:0;justify-content:center;gap:16px;list-style:none;@media (max-width:767px){justify-content:flex-start;overflow-x:auto;padding-bottom:4px;}`
|
|
1096
1111
|
]);
|
|
1097
1112
|
var FeesMonthButton = import_styled_components5.default.button.withConfig({
|
|
1098
|
-
componentId: "sc-
|
|
1113
|
+
componentId: "sc-b4b1a961-12"
|
|
1099
1114
|
})([
|
|
1100
1115
|
`display:inline-flex;gap:4px;padding:0;border:0;background:transparent;cursor:pointer;white-space:nowrap;&:focus-visible{outline:2px solid `,
|
|
1101
1116
|
`;outline-offset:2px;}`
|
|
1102
1117
|
], ({ theme }) => theme.colors.accent.primary);
|
|
1103
1118
|
var FeesMonthName = import_styled_components5.default.span.withConfig({
|
|
1104
|
-
componentId: "sc-
|
|
1119
|
+
componentId: "sc-b4b1a961-13"
|
|
1105
1120
|
})([
|
|
1106
1121
|
`color:`,
|
|
1107
1122
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:700;line-height:var(--Line-height-Title-S,18px);`
|
|
1108
1123
|
], ({ theme }) => theme.colors.text.secondary);
|
|
1109
1124
|
var FeesMonthCode = import_styled_components5.default.span.withConfig({
|
|
1110
|
-
componentId: "sc-
|
|
1125
|
+
componentId: "sc-b4b1a961-14"
|
|
1111
1126
|
})([
|
|
1112
1127
|
`color:`,
|
|
1113
1128
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:500;line-height:var(--Line-height-Body-S,18px);`
|
package/dist/fees.mjs
CHANGED
|
@@ -162,7 +162,8 @@ function normalizeFeesSearch(value) {
|
|
|
162
162
|
}
|
|
163
163
|
function filterFeesRows(data, search, tag) {
|
|
164
164
|
const query = normalizeFeesSearch(search);
|
|
165
|
-
|
|
165
|
+
const keys = data.columns.filter((column) => !column.hidden).map((column) => column.key);
|
|
166
|
+
return data.rows.filter((row) => (!tag || row.tags.includes(tag)) && (!query || keys.some((key) => normalizeFeesSearch(row.cells[key] ?? "").includes(query))));
|
|
166
167
|
}
|
|
167
168
|
function sortFeesRowsByName(rows, language = "vi") {
|
|
168
169
|
const collator = new Intl.Collator(language, { sensitivity: "base", numeric: true });
|
|
@@ -760,24 +761,24 @@ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL
|
|
|
760
761
|
// src/commodity-original/components/Pagination/style.ts
|
|
761
762
|
import { styled as styled2 } from "styled-components";
|
|
762
763
|
var PaginationNav = styled2.nav.withConfig({
|
|
763
|
-
componentId: "sc-
|
|
764
|
+
componentId: "sc-e6c46071-0"
|
|
764
765
|
})([
|
|
765
766
|
`display:flex;justify-content:center;`
|
|
766
767
|
]);
|
|
767
768
|
var PaginationList = styled2.ul.withConfig({
|
|
768
|
-
componentId: "sc-
|
|
769
|
+
componentId: "sc-e6c46071-1"
|
|
769
770
|
})([
|
|
770
771
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
771
772
|
]);
|
|
772
773
|
var PaginationItem = styled2.li.withConfig({
|
|
773
|
-
componentId: "sc-
|
|
774
|
+
componentId: "sc-e6c46071-2"
|
|
774
775
|
})([
|
|
775
776
|
`display:flex;`
|
|
776
777
|
]);
|
|
777
778
|
var PaginationButton = styled2.button.withConfig({
|
|
778
|
-
componentId: "sc-
|
|
779
|
+
componentId: "sc-e6c46071-3"
|
|
779
780
|
})([
|
|
780
|
-
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
781
|
+
`box-sizing:border-box;text-decoration:none;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
781
782
|
`;border-radius:4px;padding:4px;color:`,
|
|
782
783
|
`;background:`,
|
|
783
784
|
`;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
|
|
@@ -790,7 +791,7 @@ var PaginationButton = styled2.button.withConfig({
|
|
|
790
791
|
`;outline-offset:2px;}`
|
|
791
792
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
792
793
|
var PaginationArrow = styled2.span.withConfig({
|
|
793
|
-
componentId: "sc-
|
|
794
|
+
componentId: "sc-e6c46071-4"
|
|
794
795
|
})([
|
|
795
796
|
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
796
797
|
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
@@ -823,6 +824,7 @@ function Pagination({
|
|
|
823
824
|
page,
|
|
824
825
|
pageCount,
|
|
825
826
|
onPageChange,
|
|
827
|
+
getPageHref,
|
|
826
828
|
siblingCount = 1,
|
|
827
829
|
ariaLabel,
|
|
828
830
|
labels: labels2,
|
|
@@ -834,6 +836,13 @@ function Pagination({
|
|
|
834
836
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
835
837
|
const hasPreviousPage = currentPage > 1;
|
|
836
838
|
const hasNextPage = currentPage < safePageCount;
|
|
839
|
+
const pageClick = (page2) => (event) => {
|
|
840
|
+
if (getPageHref) {
|
|
841
|
+
if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
842
|
+
event.preventDefault();
|
|
843
|
+
}
|
|
844
|
+
onPageChange(page2);
|
|
845
|
+
};
|
|
837
846
|
return /* @__PURE__ */ jsx4(
|
|
838
847
|
PaginationNav,
|
|
839
848
|
{
|
|
@@ -843,33 +852,39 @@ function Pagination({
|
|
|
843
852
|
/* @__PURE__ */ jsx4(PaginationItem, { children: /* @__PURE__ */ jsx4(
|
|
844
853
|
PaginationButton,
|
|
845
854
|
{
|
|
855
|
+
as: getPageHref && hasPreviousPage ? "a" : "button",
|
|
856
|
+
href: getPageHref && hasPreviousPage ? getPageHref(currentPage - 1) : void 0,
|
|
846
857
|
"aria-label": labels2?.previous ?? t("pagination.previous"),
|
|
847
858
|
"data-control": "previous",
|
|
848
859
|
disabled: !hasPreviousPage,
|
|
849
|
-
onClick: (
|
|
850
|
-
type: "button",
|
|
860
|
+
onClick: pageClick(currentPage - 1),
|
|
861
|
+
type: getPageHref && hasPreviousPage ? void 0 : "button",
|
|
851
862
|
children: /* @__PURE__ */ jsx4(PaginationArrow, { "data-direction": "previous" })
|
|
852
863
|
}
|
|
853
864
|
) }),
|
|
854
865
|
items.map((item, index) => /* @__PURE__ */ jsx4(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ jsx4(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ jsx4(
|
|
855
866
|
PaginationButton,
|
|
856
867
|
{
|
|
868
|
+
as: getPageHref ? "a" : "button",
|
|
869
|
+
href: getPageHref?.(item),
|
|
857
870
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
858
871
|
"aria-label": item === currentPage ? labels2?.current(item) ?? t("pagination.current", { page: item }) : labels2?.page(item) ?? t("pagination.page", { page: item }),
|
|
859
872
|
"data-active": item === currentPage || void 0,
|
|
860
|
-
onClick: (
|
|
861
|
-
type: "button",
|
|
873
|
+
onClick: pageClick(item),
|
|
874
|
+
type: getPageHref ? void 0 : "button",
|
|
862
875
|
children: item
|
|
863
876
|
}
|
|
864
877
|
) }, `${item}-${index}`)),
|
|
865
878
|
/* @__PURE__ */ jsx4(PaginationItem, { children: /* @__PURE__ */ jsx4(
|
|
866
879
|
PaginationButton,
|
|
867
880
|
{
|
|
881
|
+
as: getPageHref && hasNextPage ? "a" : "button",
|
|
882
|
+
href: getPageHref && hasNextPage ? getPageHref(currentPage + 1) : void 0,
|
|
868
883
|
"aria-label": labels2?.next ?? t("pagination.next"),
|
|
869
884
|
"data-control": "next",
|
|
870
885
|
disabled: !hasNextPage,
|
|
871
|
-
onClick: (
|
|
872
|
-
type: "button",
|
|
886
|
+
onClick: pageClick(currentPage + 1),
|
|
887
|
+
type: getPageHref && hasNextPage ? void 0 : "button",
|
|
873
888
|
children: /* @__PURE__ */ jsx4(PaginationArrow, { "data-direction": "next" })
|
|
874
889
|
}
|
|
875
890
|
) })
|
|
@@ -994,84 +1009,84 @@ function TabCommon({
|
|
|
994
1009
|
|
|
995
1010
|
// src/commodity-original/app/bang-phi-ky-quy/style.ts
|
|
996
1011
|
import styled5 from "styled-components";
|
|
997
|
-
var FeesAndMarginMain = styled5.
|
|
998
|
-
componentId: "sc-
|
|
1012
|
+
var FeesAndMarginMain = styled5.div.withConfig({
|
|
1013
|
+
componentId: "sc-b4b1a961-0"
|
|
999
1014
|
})([
|
|
1000
1015
|
`min-height:calc(100vh - var(--header-height));background:`,
|
|
1001
1016
|
`;`
|
|
1002
1017
|
], ({ theme }) => theme.colors.background.warm);
|
|
1003
1018
|
var FeesAndMarginPageContent = styled5.div.withConfig({
|
|
1004
|
-
componentId: "sc-
|
|
1019
|
+
componentId: "sc-b4b1a961-1"
|
|
1005
1020
|
})([
|
|
1006
1021
|
`width:min(1920px,100%);margin:0 auto;padding:58px 16px 80px;@media (max-width:767px){padding:32px 16px 48px;}`
|
|
1007
1022
|
]);
|
|
1008
1023
|
var FeesAndMarginHeader = styled5.header.withConfig({
|
|
1009
|
-
componentId: "sc-
|
|
1024
|
+
componentId: "sc-b4b1a961-2"
|
|
1010
1025
|
})([
|
|
1011
1026
|
`h1{margin:0;color:`,
|
|
1012
1027
|
`;font-family:var(--Font-Landingpage,Inter);font-size:40px;font-weight:700;line-height:50px;}p{margin:16px 0 0;color:`,
|
|
1013
1028
|
`;font-family:var(--Font-Landingpage,Inter);font-size:var(--Size-Body-M,16px);font-style:normal;font-weight:600;line-height:var(--Line-height-Body-M,22px);}@media (max-width:767px){h1{font-size:24px;line-height:36px;}p{font-size:14px;line-height:18px;}}`
|
|
1014
1029
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.text.primary);
|
|
1015
1030
|
var FeesAndMarginToolbar = styled5.section.withConfig({
|
|
1016
|
-
componentId: "sc-
|
|
1031
|
+
componentId: "sc-b4b1a961-3"
|
|
1017
1032
|
})([
|
|
1018
1033
|
`margin-top:32px;`
|
|
1019
1034
|
]);
|
|
1020
1035
|
var FeesAndMarginToolbarInner = styled5.div.withConfig({
|
|
1021
|
-
componentId: "sc-
|
|
1036
|
+
componentId: "sc-b4b1a961-4"
|
|
1022
1037
|
})([
|
|
1023
1038
|
`display:flex;gap:16px;align-items:center;justify-content:space-between;@media (max-width:767px){align-items:stretch;flex-direction:column;}`
|
|
1024
1039
|
]);
|
|
1025
1040
|
var FeesAndMarginSearch = styled5.div.withConfig({
|
|
1026
|
-
componentId: "sc-
|
|
1041
|
+
componentId: "sc-b4b1a961-5"
|
|
1027
1042
|
})([
|
|
1028
1043
|
`width:220px;@media (max-width:767px){order:-1;width:100%;}`
|
|
1029
1044
|
]);
|
|
1030
1045
|
var FeesSearchIcon = styled5.span.withConfig({
|
|
1031
|
-
componentId: "sc-
|
|
1046
|
+
componentId: "sc-b4b1a961-6"
|
|
1032
1047
|
})([
|
|
1033
1048
|
`display:block;width:14px;height:14px;background:currentColor;mask:url("/icons/search.svg") center / contain no-repeat;-webkit-mask:url("/icons/search.svg") center / contain no-repeat;`
|
|
1034
1049
|
]);
|
|
1035
1050
|
var FeesAndMarginTable = styled5.section.withConfig({
|
|
1036
|
-
componentId: "sc-
|
|
1051
|
+
componentId: "sc-b4b1a961-7"
|
|
1037
1052
|
})([
|
|
1038
1053
|
`margin-top:24px;td{white-space:pre-line;}`
|
|
1039
1054
|
]);
|
|
1040
1055
|
var FeesAndMarginPagination = styled5.div.withConfig({
|
|
1041
|
-
componentId: "sc-
|
|
1056
|
+
componentId: "sc-b4b1a961-8"
|
|
1042
1057
|
})([
|
|
1043
1058
|
`display:flex;margin-top:32px;justify-content:center;`
|
|
1044
1059
|
]);
|
|
1045
1060
|
var FeesMonthNavigation = styled5.nav.withConfig({
|
|
1046
|
-
componentId: "sc-
|
|
1061
|
+
componentId: "sc-b4b1a961-9"
|
|
1047
1062
|
})([
|
|
1048
1063
|
`margin-top:32px;@media (max-width:767px){display:none;}`
|
|
1049
1064
|
]);
|
|
1050
1065
|
var FeesMonthTitle = styled5.p.withConfig({
|
|
1051
|
-
componentId: "sc-
|
|
1066
|
+
componentId: "sc-b4b1a961-10"
|
|
1052
1067
|
})([
|
|
1053
1068
|
`margin:0;color:`,
|
|
1054
1069
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:700;line-height:var(--Line-height-Title-S,18px);text-align:center;`
|
|
1055
1070
|
], ({ theme }) => theme.colors.text.primary);
|
|
1056
1071
|
var FeesMonthList = styled5.ul.withConfig({
|
|
1057
|
-
componentId: "sc-
|
|
1072
|
+
componentId: "sc-b4b1a961-11"
|
|
1058
1073
|
})([
|
|
1059
1074
|
`display:flex;margin:8px 0 0;padding:0;justify-content:center;gap:16px;list-style:none;@media (max-width:767px){justify-content:flex-start;overflow-x:auto;padding-bottom:4px;}`
|
|
1060
1075
|
]);
|
|
1061
1076
|
var FeesMonthButton = styled5.button.withConfig({
|
|
1062
|
-
componentId: "sc-
|
|
1077
|
+
componentId: "sc-b4b1a961-12"
|
|
1063
1078
|
})([
|
|
1064
1079
|
`display:inline-flex;gap:4px;padding:0;border:0;background:transparent;cursor:pointer;white-space:nowrap;&:focus-visible{outline:2px solid `,
|
|
1065
1080
|
`;outline-offset:2px;}`
|
|
1066
1081
|
], ({ theme }) => theme.colors.accent.primary);
|
|
1067
1082
|
var FeesMonthName = styled5.span.withConfig({
|
|
1068
|
-
componentId: "sc-
|
|
1083
|
+
componentId: "sc-b4b1a961-13"
|
|
1069
1084
|
})([
|
|
1070
1085
|
`color:`,
|
|
1071
1086
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:700;line-height:var(--Line-height-Title-S,18px);`
|
|
1072
1087
|
], ({ theme }) => theme.colors.text.secondary);
|
|
1073
1088
|
var FeesMonthCode = styled5.span.withConfig({
|
|
1074
|
-
componentId: "sc-
|
|
1089
|
+
componentId: "sc-b4b1a961-14"
|
|
1075
1090
|
})([
|
|
1076
1091
|
`color:`,
|
|
1077
1092
|
`;font-family:var(--Font-Main,Manrope);font-size:var(--Size-Title-S,14px);font-style:normal;font-weight:500;line-height:var(--Line-height-Body-S,18px);`
|
package/dist/index.d.mts
CHANGED
|
@@ -32,7 +32,8 @@ type CmsRichText = {
|
|
|
32
32
|
text: string;
|
|
33
33
|
marks: CmsTextMark[];
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
/** Link policy for CMS-controlled hrefs: same-origin paths, `#hash`, http(s), mailto and tel. Anything else, including non-strings, is undefined. */
|
|
36
|
+
declare function safeCmsTextHref(value: unknown): string | undefined;
|
|
36
37
|
declare function parseCmsRichText(value: unknown): CmsRichText | undefined;
|
|
37
38
|
declare function rebaseCmsRichText(value: unknown, text: string): CmsRichText;
|
|
38
39
|
declare function patchCmsRichText(value: unknown, text: string, start: number, end: number, patch: Partial<Pick<CmsTextMark, 'bold' | 'italic' | 'underline' | 'href' | 'newTab'>>): CmsRichText;
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,8 @@ type CmsRichText = {
|
|
|
32
32
|
text: string;
|
|
33
33
|
marks: CmsTextMark[];
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
/** Link policy for CMS-controlled hrefs: same-origin paths, `#hash`, http(s), mailto and tel. Anything else, including non-strings, is undefined. */
|
|
36
|
+
declare function safeCmsTextHref(value: unknown): string | undefined;
|
|
36
37
|
declare function parseCmsRichText(value: unknown): CmsRichText | undefined;
|
|
37
38
|
declare function rebaseCmsRichText(value: unknown, text: string): CmsRichText;
|
|
38
39
|
declare function patchCmsRichText(value: unknown, text: string, start: number, end: number, patch: Partial<Pick<CmsTextMark, 'bold' | 'italic' | 'underline' | 'href' | 'newTab'>>): CmsRichText;
|