@asdp/ferryui 0.1.22-dev.9462 → 0.1.22-dev.9484
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2505,6 +2505,7 @@ var DatePickerInput = React.forwardRef(
|
|
|
2505
2505
|
min,
|
|
2506
2506
|
max,
|
|
2507
2507
|
disablePastDates = false,
|
|
2508
|
+
disableFutureDates = false,
|
|
2508
2509
|
...restProps
|
|
2509
2510
|
}, ref) => {
|
|
2510
2511
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
@@ -2539,6 +2540,7 @@ var DatePickerInput = React.forwardRef(
|
|
|
2539
2540
|
return today;
|
|
2540
2541
|
};
|
|
2541
2542
|
const minDate = min ? new Date(min) : disablePastDates ? getStartOfToday() : void 0;
|
|
2543
|
+
const maxDate = max ? new Date(max) : disableFutureDates ? getStartOfToday() : void 0;
|
|
2542
2544
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2543
2545
|
reactComponents.Popover,
|
|
2544
2546
|
{
|
|
@@ -2590,7 +2592,7 @@ var DatePickerInput = React.forwardRef(
|
|
|
2590
2592
|
highlightSelectedMonth: true,
|
|
2591
2593
|
showMonthPickerAsOverlay: false,
|
|
2592
2594
|
minDate,
|
|
2593
|
-
maxDate
|
|
2595
|
+
maxDate
|
|
2594
2596
|
}
|
|
2595
2597
|
) })
|
|
2596
2598
|
]
|
|
@@ -4189,7 +4191,8 @@ var InputDynamic = ({
|
|
|
4189
4191
|
language = "id",
|
|
4190
4192
|
labels,
|
|
4191
4193
|
menuPlacement,
|
|
4192
|
-
disablePastDates = false
|
|
4194
|
+
disablePastDates = false,
|
|
4195
|
+
disableFutureDates = false
|
|
4193
4196
|
}) => {
|
|
4194
4197
|
const styles = useStyles8();
|
|
4195
4198
|
const mergedLabels = { ...DEFAULT_LABELS7[language], ...labels };
|
|
@@ -4956,7 +4959,8 @@ var InputDynamic = ({
|
|
|
4956
4959
|
style: inputStyle,
|
|
4957
4960
|
max: max ? String(max) : void 0,
|
|
4958
4961
|
min: min ? String(min) : void 0,
|
|
4959
|
-
disablePastDates
|
|
4962
|
+
disablePastDates,
|
|
4963
|
+
disableFutureDates
|
|
4960
4964
|
}
|
|
4961
4965
|
);
|
|
4962
4966
|
}
|
|
@@ -11517,6 +11521,7 @@ var ModalPassengerForm = ({
|
|
|
11517
11521
|
placeholder: mergedLabels.datePlaceholder,
|
|
11518
11522
|
size: "large",
|
|
11519
11523
|
required: true,
|
|
11524
|
+
disableFutureDates: true,
|
|
11520
11525
|
validationRules: {
|
|
11521
11526
|
required: mergedErrors.requiredDate,
|
|
11522
11527
|
validate: (value) => {
|
|
@@ -11559,22 +11564,7 @@ var ModalPassengerForm = ({
|
|
|
11559
11564
|
}
|
|
11560
11565
|
}
|
|
11561
11566
|
),
|
|
11562
|
-
watchIdentityTypeId ? watchIdentityTypeId
|
|
11563
|
-
InputDynamic_default,
|
|
11564
|
-
{
|
|
11565
|
-
name: "identityId",
|
|
11566
|
-
control,
|
|
11567
|
-
type: "date",
|
|
11568
|
-
label: mergedLabels.idTypeOtherLabel,
|
|
11569
|
-
placeholder: mergedLabels.idTypeOtherPlaceholder,
|
|
11570
|
-
size: "large",
|
|
11571
|
-
required: true,
|
|
11572
|
-
max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
11573
|
-
validationRules: {
|
|
11574
|
-
required: mergedErrors.requiredDate
|
|
11575
|
-
}
|
|
11576
|
-
}
|
|
11577
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11567
|
+
watchIdentityTypeId ? watchIdentityTypeId !== IDENTITY_TYPE.TGL.toString() && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11578
11568
|
watchIdentityTypeId === IDENTITY_TYPE.PSP.toString() && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11579
11569
|
InputDynamic_default,
|
|
11580
11570
|
{
|
|
@@ -14985,7 +14975,7 @@ var DEFAULT_LABELS37 = {
|
|
|
14985
14975
|
id: {
|
|
14986
14976
|
detailTitle: "Detail Pemesanan",
|
|
14987
14977
|
statusLabel: "Status",
|
|
14988
|
-
bookingCodeLabel: "
|
|
14978
|
+
bookingCodeLabel: "Nomor Transaksi",
|
|
14989
14979
|
scheduleLabel: "Jadwal Masuk Pelabuhan",
|
|
14990
14980
|
routeLabel: "Rute",
|
|
14991
14981
|
userTypeLabel: "Jenis Pengguna Jasa",
|
|
@@ -14999,7 +14989,7 @@ var DEFAULT_LABELS37 = {
|
|
|
14999
14989
|
en: {
|
|
15000
14990
|
detailTitle: "Booking Details",
|
|
15001
14991
|
statusLabel: "Status",
|
|
15002
|
-
bookingCodeLabel: "
|
|
14992
|
+
bookingCodeLabel: "Transaction Number",
|
|
15003
14993
|
scheduleLabel: "Port Entrance Schedule",
|
|
15004
14994
|
routeLabel: "Route",
|
|
15005
14995
|
userTypeLabel: "User Service Type",
|