@appcorp/stellar-solutions-modules 0.1.41 → 0.1.43
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/components/ui/enhanced-table.d.ts +13 -3
- package/components/ui/enhanced-table.js +114 -5
- package/global-modules/bank/form.js +4 -10
- package/global-modules/bank/validate.js +4 -4
- package/global-modules/branch/form.js +2 -3
- package/global-modules/branch/validate.js +6 -6
- package/global-modules/payment-mode/form.js +2 -3
- package/global-modules/payment-mode/validate.js +2 -2
- package/global-modules/tax/form.js +2 -3
- package/global-modules/tax/validate.js +4 -4
- package/i18n/navigation.d.ts +6 -4
- package/package.json +1 -1
|
@@ -3,7 +3,17 @@ export interface TableColumn {
|
|
|
3
3
|
key?: string;
|
|
4
4
|
label: string;
|
|
5
5
|
width?: string;
|
|
6
|
-
componentType?:
|
|
6
|
+
componentType?: COMPONENT_TYPE | string;
|
|
7
|
+
}
|
|
8
|
+
export declare enum COMPONENT_TYPE {
|
|
9
|
+
ID = "ID",
|
|
10
|
+
BOLD_TEXT = "BOLD_TEXT",
|
|
11
|
+
TEXT = "TEXT",
|
|
12
|
+
OBJECT = "OBJECT",
|
|
13
|
+
MULTIPLE_TEXT_LINES = "MULTIPLE_TEXT_LINES",
|
|
14
|
+
CREATED_UPDATED_AT = "CREATED_UPDATED_AT",
|
|
15
|
+
ACTIONS = "ACTIONS",
|
|
16
|
+
BOOLEAN = "BOOLEAN"
|
|
7
17
|
}
|
|
8
18
|
export interface TableRow extends Record<string, unknown> {
|
|
9
19
|
id?: string;
|
|
@@ -37,8 +47,8 @@ export interface EnhancedTableProps {
|
|
|
37
47
|
tableHeadItems: TableColumn[];
|
|
38
48
|
tableBodyRows: TableRow[];
|
|
39
49
|
tableBodyCols: Array<{
|
|
40
|
-
key
|
|
41
|
-
componentType: string;
|
|
50
|
+
key?: string | string[];
|
|
51
|
+
componentType: COMPONENT_TYPE | string;
|
|
42
52
|
}>;
|
|
43
53
|
tableHeading: string;
|
|
44
54
|
tableDescription?: string;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.EnhancedTable = void 0;
|
|
7
|
+
exports.EnhancedTable = exports.COMPONENT_TYPE = void 0;
|
|
8
8
|
var react_1 = __importDefault(require("react"));
|
|
9
9
|
var lucide_react_1 = require("lucide-react");
|
|
10
10
|
var table_1 = require("./table");
|
|
@@ -18,10 +18,75 @@ var popover_1 = require("./popover");
|
|
|
18
18
|
var enhanced_table_header_action_1 = require("./enhanced-table-header-action");
|
|
19
19
|
var enhanced_table_header_search_1 = require("./enhanced-table-header-search");
|
|
20
20
|
var badge_1 = require("./badge");
|
|
21
|
+
// Centralized component type values for table cell rendering
|
|
22
|
+
var COMPONENT_TYPE;
|
|
23
|
+
(function (COMPONENT_TYPE) {
|
|
24
|
+
COMPONENT_TYPE["ID"] = "ID";
|
|
25
|
+
COMPONENT_TYPE["BOLD_TEXT"] = "BOLD_TEXT";
|
|
26
|
+
COMPONENT_TYPE["TEXT"] = "TEXT";
|
|
27
|
+
COMPONENT_TYPE["OBJECT"] = "OBJECT";
|
|
28
|
+
COMPONENT_TYPE["MULTIPLE_TEXT_LINES"] = "MULTIPLE_TEXT_LINES";
|
|
29
|
+
COMPONENT_TYPE["CREATED_UPDATED_AT"] = "CREATED_UPDATED_AT";
|
|
30
|
+
COMPONENT_TYPE["ACTIONS"] = "ACTIONS";
|
|
31
|
+
COMPONENT_TYPE["BOOLEAN"] = "BOOLEAN";
|
|
32
|
+
})(COMPONENT_TYPE || (exports.COMPONENT_TYPE = COMPONENT_TYPE = {}));
|
|
21
33
|
var EnhancedTable = function (_a) {
|
|
22
34
|
var currentPage = _a.currentPage, handleNextOnClick = _a.handleNextOnClick, handleOnSelect = _a.handleOnSelect, handlePreviousOnClick = _a.handlePreviousOnClick, handleSearchInput = _a.handleSearchInput, headerActions = _a.headerActions, isNextDisabled = _a.isNextDisabled, isPreviousDisabled = _a.isPreviousDisabled, listOptions = _a.listOptions, loading = _a.loading, _b = _a.nodeSelectKey, nodeSelectKey = _b === void 0 ? "pageLimit" : _b, pageLimit = _a.pageLimit, rowActions = _a.rowActions, _c = _a.searchDisabled, searchDisabled = _c === void 0 ? false : _c, _d = _a.searchEnabled, searchEnabled = _d === void 0 ? true : _d, _e = _a.searchId, searchId = _e === void 0 ? "table-search" : _e, _f = _a.searchPlaceholder, searchPlaceholder = _f === void 0 ? "Search..." : _f, searchValue = _a.searchValue, tableBodyCols = _a.tableBodyCols, tableBodyRows = _a.tableBodyRows, tableDescription = _a.tableDescription, tableHeading = _a.tableHeading, tableHeadItems = _a.tableHeadItems, totalPages = _a.totalPages;
|
|
23
35
|
var renderCellContent = function (row, col) {
|
|
24
|
-
var
|
|
36
|
+
var _a, _b;
|
|
37
|
+
// Helper to safely resolve nested keys (max depth 3)
|
|
38
|
+
var resolveValue = function (source, key) {
|
|
39
|
+
if (!key)
|
|
40
|
+
return source;
|
|
41
|
+
if (typeof key === "string") {
|
|
42
|
+
if (source && typeof source === "object")
|
|
43
|
+
return source[key];
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
// array of keys
|
|
47
|
+
var path = key.slice(0, 3); // enforce max depth 3
|
|
48
|
+
var cur = source;
|
|
49
|
+
for (var _i = 0, path_1 = path; _i < path_1.length; _i++) {
|
|
50
|
+
var k = path_1[_i];
|
|
51
|
+
if (cur == null)
|
|
52
|
+
return undefined;
|
|
53
|
+
if (typeof cur !== "object")
|
|
54
|
+
return undefined;
|
|
55
|
+
cur = cur[k];
|
|
56
|
+
}
|
|
57
|
+
return cur;
|
|
58
|
+
};
|
|
59
|
+
var getProp = function (obj, prop) {
|
|
60
|
+
if (obj &&
|
|
61
|
+
typeof obj === "object" &&
|
|
62
|
+
prop in obj)
|
|
63
|
+
return obj[prop];
|
|
64
|
+
return undefined;
|
|
65
|
+
};
|
|
66
|
+
// Resolve value (supports nested key arrays)
|
|
67
|
+
var value = resolveValue(row, col.key);
|
|
68
|
+
// Normalize componentType so external string enums (like VISTA_TABLE_CELL_TYPE)
|
|
69
|
+
// remain compatible with this table. Unknown/unsupported types fall back to TEXT.
|
|
70
|
+
var normalizeComponentType = function (c) {
|
|
71
|
+
var _a;
|
|
72
|
+
if (!c)
|
|
73
|
+
return undefined;
|
|
74
|
+
if (Object.values(COMPONENT_TYPE).includes(c))
|
|
75
|
+
return c;
|
|
76
|
+
// Map common external values to our ComponentType using object notation
|
|
77
|
+
var MAP = {
|
|
78
|
+
ID: COMPONENT_TYPE.ID,
|
|
79
|
+
BOLD_TEXT: COMPONENT_TYPE.BOLD_TEXT,
|
|
80
|
+
BOOLEAN: COMPONENT_TYPE.BOOLEAN,
|
|
81
|
+
ACTIONS: COMPONENT_TYPE.ACTIONS,
|
|
82
|
+
TEXT: COMPONENT_TYPE.TEXT,
|
|
83
|
+
OBJECT: COMPONENT_TYPE.OBJECT,
|
|
84
|
+
MULTIPLE_TEXT_LINES: COMPONENT_TYPE.MULTIPLE_TEXT_LINES,
|
|
85
|
+
CREATED_UPDATED_AT: COMPONENT_TYPE.CREATED_UPDATED_AT,
|
|
86
|
+
};
|
|
87
|
+
return (_a = MAP[String(c)]) !== null && _a !== void 0 ? _a : COMPONENT_TYPE.TEXT;
|
|
88
|
+
};
|
|
89
|
+
var normalizedType = normalizeComponentType(col.componentType);
|
|
25
90
|
if (col.key === "action") {
|
|
26
91
|
return (react_1.default.createElement(dropdown_menu_1.DropdownMenu, null,
|
|
27
92
|
react_1.default.createElement(dropdown_menu_1.DropdownMenuTrigger, { asChild: true },
|
|
@@ -39,7 +104,7 @@ var EnhancedTable = function (_a) {
|
|
|
39
104
|
action.handleAction(row.id);
|
|
40
105
|
} }, action.label)); }))));
|
|
41
106
|
}
|
|
42
|
-
if (
|
|
107
|
+
if (normalizedType === COMPONENT_TYPE.ID) {
|
|
43
108
|
return (react_1.default.createElement(popover_1.Popover, null,
|
|
44
109
|
react_1.default.createElement(popover_1.PopoverTrigger, { asChild: true },
|
|
45
110
|
react_1.default.createElement("span", { className: "text-xs text-muted-foreground font-mono" }, typeof value === "string"
|
|
@@ -48,15 +113,59 @@ var EnhancedTable = function (_a) {
|
|
|
48
113
|
react_1.default.createElement(popover_1.PopoverContent, null,
|
|
49
114
|
react_1.default.createElement("span", { className: "text-xs text-muted-foreground font-mono" }, String(value)))));
|
|
50
115
|
}
|
|
51
|
-
if (
|
|
116
|
+
if (normalizedType === COMPONENT_TYPE.BOLD_TEXT) {
|
|
52
117
|
return react_1.default.createElement("span", { className: "font-semibold" }, String(value || ""));
|
|
53
118
|
}
|
|
54
|
-
if (
|
|
119
|
+
if (normalizedType === COMPONENT_TYPE.BOOLEAN) {
|
|
55
120
|
var isTrue = Boolean(value);
|
|
56
121
|
return (react_1.default.createElement(badge_1.Badge, { variant: "secondary", className: (0, utils_1.cn)("text-white font-medium", isTrue
|
|
57
122
|
? "bg-green-500 hover:bg-green-600"
|
|
58
123
|
: "bg-red-500 hover:bg-red-600") }, isTrue ? "Yes" : "No"));
|
|
59
124
|
}
|
|
125
|
+
// OBJECT => nested property path supplied as array of strings (max length 3)
|
|
126
|
+
if (normalizedType === COMPONENT_TYPE.OBJECT) {
|
|
127
|
+
var nested = resolveValue(row, col.key);
|
|
128
|
+
// If nested is primitive, show it. If object, stringify first-level value.
|
|
129
|
+
if (nested == null)
|
|
130
|
+
return react_1.default.createElement("span", null, "");
|
|
131
|
+
if (typeof nested === "object") {
|
|
132
|
+
// Render primitive values inside object or JSON fallback
|
|
133
|
+
var primitive = typeof nested === "object"
|
|
134
|
+
? // try to find a primitive child
|
|
135
|
+
Object.values(nested).find(function (v) {
|
|
136
|
+
return ["string", "number", "boolean"].includes(typeof v);
|
|
137
|
+
})
|
|
138
|
+
: nested;
|
|
139
|
+
return react_1.default.createElement("span", null, String(primitive !== null && primitive !== void 0 ? primitive : JSON.stringify(nested)));
|
|
140
|
+
}
|
|
141
|
+
return react_1.default.createElement("span", null, String(nested));
|
|
142
|
+
}
|
|
143
|
+
// MULTIPLE_TEXT_LINES => col.key is an array of keys, render up to 3 lines
|
|
144
|
+
if (normalizedType === COMPONENT_TYPE.MULTIPLE_TEXT_LINES) {
|
|
145
|
+
var keys = Array.isArray(col.key) ? col.key : [];
|
|
146
|
+
var lines = keys.slice(0, 3).map(function (k) {
|
|
147
|
+
var v = resolveValue(row, k);
|
|
148
|
+
return v == null ? "" : String(v);
|
|
149
|
+
});
|
|
150
|
+
return (react_1.default.createElement("div", { className: "flex flex-col" }, lines.map(function (line, idx) { return (react_1.default.createElement("span", { key: idx, className: "text-sm" }, line)); })));
|
|
151
|
+
}
|
|
152
|
+
// CREATED_UPDATED_AT => show createdAt and updatedAt from the object (or nested object)
|
|
153
|
+
if (normalizedType === COMPONENT_TYPE.CREATED_UPDATED_AT) {
|
|
154
|
+
var target = resolveValue(row, col.key);
|
|
155
|
+
var created = (_a = getProp(target, "createdAt")) !== null && _a !== void 0 ? _a : getProp(row, "createdAt");
|
|
156
|
+
var updated = (_b = getProp(target, "updatedAt")) !== null && _b !== void 0 ? _b : getProp(row, "updatedAt");
|
|
157
|
+
var fmt = function (d) {
|
|
158
|
+
if (d == null)
|
|
159
|
+
return "";
|
|
160
|
+
var date = d instanceof Date ? d : new Date(String(d));
|
|
161
|
+
if (isNaN(date.getTime()))
|
|
162
|
+
return String(d);
|
|
163
|
+
return date.toLocaleString();
|
|
164
|
+
};
|
|
165
|
+
return (react_1.default.createElement("div", { className: "flex flex-col text-sm text-muted-foreground" },
|
|
166
|
+
react_1.default.createElement("span", null, fmt(created)),
|
|
167
|
+
react_1.default.createElement("span", null, fmt(updated))));
|
|
168
|
+
}
|
|
60
169
|
return react_1.default.createElement("span", null, String(value || ""));
|
|
61
170
|
};
|
|
62
171
|
// Create loading skeleton rows
|
|
@@ -26,16 +26,15 @@ var Form = function (_a) {
|
|
|
26
26
|
var isRTL = _a.isRTL, translationMap = _a.translationMap;
|
|
27
27
|
var t = (0, next_intl_1.useTranslations)("bankPage");
|
|
28
28
|
var ui = (0, next_intl_1.useTranslations)("ui");
|
|
29
|
-
var _b = (0, context_1.useBankStateContext)(), accountNumber = _b.accountNumber,
|
|
29
|
+
var _b = (0, context_1.useBankStateContext)(), accountNumber = _b.accountNumber, bankAddress = _b.bankAddress, bankName = _b.bankName, enabled = _b.enabled, errors = _b.errors, handleInputChange = _b.handleInputChange, iban = _b.iban, isDefault = _b.isDefault, swiftCode = _b.swiftCode;
|
|
30
30
|
// Helper function to translate validation error keys
|
|
31
31
|
var getTranslatedError = function (key) {
|
|
32
32
|
if (!errors[key])
|
|
33
33
|
return undefined;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (typeof errors[key] === "string" &&
|
|
35
|
+
errors[key].startsWith("validation")) {
|
|
36
36
|
return t(errors[key]);
|
|
37
37
|
}
|
|
38
|
-
// Otherwise return as is (already translated)
|
|
39
38
|
return errors[key];
|
|
40
39
|
};
|
|
41
40
|
return (react_1.default.createElement("div", { className: "space-y-6 ".concat(isRTL ? "rtl" : "ltr"), dir: isRTL ? "rtl" : "ltr" },
|
|
@@ -44,12 +43,7 @@ var Form = function (_a) {
|
|
|
44
43
|
react_1.default.createElement("div", { className: "space-y-2" },
|
|
45
44
|
react_1.default.createElement(input_1.Input, { id: "bankName", type: "text", label: (translationMap === null || translationMap === void 0 ? void 0 : translationMap.formLabelBankName) || "Bank Name", value: bankName || "", onChange: function (e) { return handleInputChange("bankName", e.target.value); }, placeholder: t("placeholderBankName"), info: t("infoBankName"), error: getTranslatedError("bankName"), required: true })),
|
|
46
45
|
react_1.default.createElement("div", { className: "space-y-2" },
|
|
47
|
-
react_1.default.createElement(input_1.Input, { id: "bankAddress", type: "text", label: (translationMap === null || translationMap === void 0 ? void 0 : translationMap.formLabelBankAddress) || "Bank Address", value: bankAddress || "", onChange: function (e) { return handleInputChange("bankAddress", e.target.value); }, placeholder: t("placeholderBankAddress"), info: t("infoBankAddress"), error: getTranslatedError("bankAddress"), required: true }))
|
|
48
|
-
react_1.default.createElement("div", { className: "space-y-4" },
|
|
49
|
-
react_1.default.createElement("div", { className: "space-y-2" },
|
|
50
|
-
react_1.default.createElement(input_1.Input, { id: "accountTitle", type: "text", label: (translationMap === null || translationMap === void 0 ? void 0 : translationMap.formLabelAccountTitle) || "Account Title", value: accountTitle || "", onChange: function (e) {
|
|
51
|
-
return handleInputChange("accountTitle", e.target.value);
|
|
52
|
-
}, placeholder: t("placeholderAccountTitle"), info: t("infoAccountTitle"), error: getTranslatedError("accountTitle"), required: true })),
|
|
46
|
+
react_1.default.createElement(input_1.Input, { id: "bankAddress", type: "text", label: (translationMap === null || translationMap === void 0 ? void 0 : translationMap.formLabelBankAddress) || "Bank Address", value: bankAddress || "", onChange: function (e) { return handleInputChange("bankAddress", e.target.value); }, placeholder: t("placeholderBankAddress"), info: t("infoBankAddress"), error: getTranslatedError("bankAddress"), required: true })),
|
|
53
47
|
react_1.default.createElement("div", { className: "space-y-2" },
|
|
54
48
|
react_1.default.createElement(input_1.Input, { id: "accountNumber", type: "text", label: (translationMap === null || translationMap === void 0 ? void 0 : translationMap.formLabelAccountNumber) || "Account Number", value: accountNumber || "", onChange: function (e) {
|
|
55
49
|
return handleInputChange("accountNumber", e.target.value);
|
|
@@ -4,10 +4,10 @@ exports.formValidation = void 0;
|
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
5
|
// Validation error keys for i18n translation
|
|
6
6
|
var VALIDATION_KEYS = {
|
|
7
|
-
accountNumberRequired: "
|
|
8
|
-
accountTitleRequired: "
|
|
9
|
-
bankNameRequired: "
|
|
10
|
-
preferenceIdRequired: "
|
|
7
|
+
accountNumberRequired: "validationBankAccountNumberRequired",
|
|
8
|
+
accountTitleRequired: "validationBankAccountTitleRequired",
|
|
9
|
+
bankNameRequired: "validationBankNameRequired",
|
|
10
|
+
preferenceIdRequired: "validationBankPreferenceIdRequired",
|
|
11
11
|
};
|
|
12
12
|
exports.formValidation = zod_1.z.object({
|
|
13
13
|
accountNumber: zod_1.z.string().nonempty(VALIDATION_KEYS.accountNumberRequired),
|
|
@@ -31,11 +31,10 @@ var Form = function (_a) {
|
|
|
31
31
|
var getTranslatedError = function (key) {
|
|
32
32
|
if (!errors[key])
|
|
33
33
|
return undefined;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (typeof errors[key] === "string" &&
|
|
35
|
+
errors[key].startsWith("validation")) {
|
|
36
36
|
return t(errors[key]);
|
|
37
37
|
}
|
|
38
|
-
// Otherwise return as is (already translated)
|
|
39
38
|
return errors[key];
|
|
40
39
|
};
|
|
41
40
|
return (react_1.default.createElement("div", { className: "space-y-6 ".concat(isRTL ? "rtl" : "ltr"), dir: isRTL ? "rtl" : "ltr" },
|
|
@@ -4,12 +4,12 @@ exports.formValidation = void 0;
|
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
5
|
// Validation error keys for i18n translation
|
|
6
6
|
var VALIDATION_KEYS = {
|
|
7
|
-
branchNameRequired: "
|
|
8
|
-
branchAddressRequired: "
|
|
9
|
-
personNameRequired: "
|
|
10
|
-
personEmailRequired: "
|
|
11
|
-
personPhoneRequired: "
|
|
12
|
-
preferenceIdRequired: "
|
|
7
|
+
branchNameRequired: "branchPageValidationBranchNameRequired",
|
|
8
|
+
branchAddressRequired: "branchPageValidationBranchAddressRequired",
|
|
9
|
+
personNameRequired: "branchPageValidationPersonNameRequired",
|
|
10
|
+
personEmailRequired: "branchPageValidationPersonEmailRequired",
|
|
11
|
+
personPhoneRequired: "branchPageValidationPersonPhoneRequired",
|
|
12
|
+
preferenceIdRequired: "branchPageValidationPreferenceIdRequired",
|
|
13
13
|
};
|
|
14
14
|
exports.formValidation = zod_1.z.object({
|
|
15
15
|
branchAddress: zod_1.z.string().nonempty(VALIDATION_KEYS.branchAddressRequired),
|
|
@@ -31,11 +31,10 @@ var PaymentModeForm = function (_a) {
|
|
|
31
31
|
var getTranslatedError = function (key) {
|
|
32
32
|
if (!errors[key])
|
|
33
33
|
return undefined;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (typeof errors[key] === "string" &&
|
|
35
|
+
errors[key].startsWith("validation")) {
|
|
36
36
|
return t(errors[key]);
|
|
37
37
|
}
|
|
38
|
-
// Otherwise return as is (already translated)
|
|
39
38
|
return errors[key];
|
|
40
39
|
};
|
|
41
40
|
return (react_1.default.createElement("div", { className: "space-y-6 ".concat(isRTL ? "rtl" : "ltr"), dir: isRTL ? "rtl" : "ltr" },
|
|
@@ -4,8 +4,8 @@ exports.formValidation = void 0;
|
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
5
|
// Validation error keys for i18n translation
|
|
6
6
|
var VALIDATION_KEYS = {
|
|
7
|
-
labelRequired: "
|
|
8
|
-
preferenceIdRequired: "
|
|
7
|
+
labelRequired: "paymentModePageValidationLabelRequired",
|
|
8
|
+
preferenceIdRequired: "paymentModePageValidationPreferenceIdRequired",
|
|
9
9
|
};
|
|
10
10
|
exports.formValidation = zod_1.z.object({
|
|
11
11
|
label: zod_1.z.string().nonempty(VALIDATION_KEYS.labelRequired),
|
|
@@ -41,11 +41,10 @@ var TaxForm = function (_a) {
|
|
|
41
41
|
var getTranslatedError = function (key) {
|
|
42
42
|
if (!errors[key])
|
|
43
43
|
return undefined;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
if (typeof errors[key] === "string" &&
|
|
45
|
+
errors[key].startsWith("validation")) {
|
|
46
46
|
return t(errors[key]);
|
|
47
47
|
}
|
|
48
|
-
// Otherwise return as is (already translated)
|
|
49
48
|
return errors[key];
|
|
50
49
|
};
|
|
51
50
|
// ============================================================================
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formValidation = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
|
-
// Validation error
|
|
5
|
+
// Validation error keys for i18n translation
|
|
6
6
|
var validationMessages = {
|
|
7
|
-
taxName: "
|
|
8
|
-
taxRate: "
|
|
9
|
-
preferenceId: "
|
|
7
|
+
taxName: "validationTaxNameRequired",
|
|
8
|
+
taxRate: "validationTaxRateRequired",
|
|
9
|
+
preferenceId: "validationPreferenceIdRequired",
|
|
10
10
|
};
|
|
11
11
|
exports.formValidation = zod_1.z.object({
|
|
12
12
|
taxName: zod_1.z.string().nonempty(validationMessages.taxName),
|
package/i18n/navigation.d.ts
CHANGED
|
@@ -73,12 +73,14 @@ export declare const Link: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
73
73
|
results?: number | undefined | undefined;
|
|
74
74
|
security?: string | undefined | undefined;
|
|
75
75
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
76
|
-
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
76
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
77
77
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
78
78
|
popoverTarget?: string | undefined | undefined;
|
|
79
79
|
inert?: boolean | undefined | undefined;
|
|
80
80
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
81
81
|
is?: string | undefined | undefined;
|
|
82
|
+
exportparts?: string | undefined | undefined;
|
|
83
|
+
part?: string | undefined | undefined;
|
|
82
84
|
tw?: string | undefined;
|
|
83
85
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
84
86
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -154,7 +156,7 @@ export declare const Link: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
154
156
|
onBlurCapture?: import("react").FocusEventHandler<HTMLAnchorElement> | undefined;
|
|
155
157
|
onChange?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
156
158
|
onChangeCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
157
|
-
onBeforeInput?: import("react").
|
|
159
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLAnchorElement> | undefined;
|
|
158
160
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
159
161
|
onInput?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
160
162
|
onInputCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
@@ -203,8 +205,6 @@ export declare const Link: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
203
205
|
onProgressCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
204
206
|
onRateChange?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
205
207
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
206
|
-
onResize?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
207
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
208
208
|
onSeeked?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
209
209
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
210
210
|
onSeeking?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
@@ -282,6 +282,8 @@ export declare const Link: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
282
282
|
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
283
283
|
onScroll?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
284
284
|
onScrollCapture?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
285
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
286
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
285
287
|
onWheel?: import("react").WheelEventHandler<HTMLAnchorElement> | undefined;
|
|
286
288
|
onWheelCapture?: import("react").WheelEventHandler<HTMLAnchorElement> | undefined;
|
|
287
289
|
onAnimationStart?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
package/package.json
CHANGED