@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.mjs CHANGED
@@ -2496,6 +2496,7 @@ var DatePickerInput = forwardRef(
2496
2496
  min,
2497
2497
  max,
2498
2498
  disablePastDates = false,
2499
+ disableFutureDates = false,
2499
2500
  ...restProps
2500
2501
  }, ref) => {
2501
2502
  const [isOpen, setIsOpen] = useState(false);
@@ -2530,6 +2531,7 @@ var DatePickerInput = forwardRef(
2530
2531
  return today;
2531
2532
  };
2532
2533
  const minDate = min ? new Date(min) : disablePastDates ? getStartOfToday() : void 0;
2534
+ const maxDate = max ? new Date(max) : disableFutureDates ? getStartOfToday() : void 0;
2533
2535
  return /* @__PURE__ */ jsxs(
2534
2536
  Popover,
2535
2537
  {
@@ -2581,7 +2583,7 @@ var DatePickerInput = forwardRef(
2581
2583
  highlightSelectedMonth: true,
2582
2584
  showMonthPickerAsOverlay: false,
2583
2585
  minDate,
2584
- maxDate: max ? new Date(max) : void 0
2586
+ maxDate
2585
2587
  }
2586
2588
  ) })
2587
2589
  ]
@@ -4180,7 +4182,8 @@ var InputDynamic = ({
4180
4182
  language = "id",
4181
4183
  labels,
4182
4184
  menuPlacement,
4183
- disablePastDates = false
4185
+ disablePastDates = false,
4186
+ disableFutureDates = false
4184
4187
  }) => {
4185
4188
  const styles = useStyles8();
4186
4189
  const mergedLabels = { ...DEFAULT_LABELS7[language], ...labels };
@@ -4947,7 +4950,8 @@ var InputDynamic = ({
4947
4950
  style: inputStyle,
4948
4951
  max: max ? String(max) : void 0,
4949
4952
  min: min ? String(min) : void 0,
4950
- disablePastDates
4953
+ disablePastDates,
4954
+ disableFutureDates
4951
4955
  }
4952
4956
  );
4953
4957
  }
@@ -11508,6 +11512,7 @@ var ModalPassengerForm = ({
11508
11512
  placeholder: mergedLabels.datePlaceholder,
11509
11513
  size: "large",
11510
11514
  required: true,
11515
+ disableFutureDates: true,
11511
11516
  validationRules: {
11512
11517
  required: mergedErrors.requiredDate,
11513
11518
  validate: (value) => {
@@ -11550,22 +11555,7 @@ var ModalPassengerForm = ({
11550
11555
  }
11551
11556
  }
11552
11557
  ),
11553
- watchIdentityTypeId ? watchIdentityTypeId === "lainnya" ? /* @__PURE__ */ jsx(
11554
- InputDynamic_default,
11555
- {
11556
- name: "identityId",
11557
- control,
11558
- type: "date",
11559
- label: mergedLabels.idTypeOtherLabel,
11560
- placeholder: mergedLabels.idTypeOtherPlaceholder,
11561
- size: "large",
11562
- required: true,
11563
- max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
11564
- validationRules: {
11565
- required: mergedErrors.requiredDate
11566
- }
11567
- }
11568
- ) : /* @__PURE__ */ jsxs(Fragment, { children: [
11558
+ watchIdentityTypeId ? watchIdentityTypeId !== IDENTITY_TYPE.TGL.toString() && /* @__PURE__ */ jsxs(Fragment, { children: [
11569
11559
  watchIdentityTypeId === IDENTITY_TYPE.PSP.toString() && /* @__PURE__ */ jsx(
11570
11560
  InputDynamic_default,
11571
11561
  {
@@ -14976,7 +14966,7 @@ var DEFAULT_LABELS37 = {
14976
14966
  id: {
14977
14967
  detailTitle: "Detail Pemesanan",
14978
14968
  statusLabel: "Status",
14979
- bookingCodeLabel: "Kode Booking",
14969
+ bookingCodeLabel: "Nomor Transaksi",
14980
14970
  scheduleLabel: "Jadwal Masuk Pelabuhan",
14981
14971
  routeLabel: "Rute",
14982
14972
  userTypeLabel: "Jenis Pengguna Jasa",
@@ -14990,7 +14980,7 @@ var DEFAULT_LABELS37 = {
14990
14980
  en: {
14991
14981
  detailTitle: "Booking Details",
14992
14982
  statusLabel: "Status",
14993
- bookingCodeLabel: "Booking Code",
14983
+ bookingCodeLabel: "Transaction Number",
14994
14984
  scheduleLabel: "Port Entrance Schedule",
14995
14985
  routeLabel: "Route",
14996
14986
  userTypeLabel: "User Service Type",