@asdp/ferryui 0.1.22-dev.9831 → 0.1.22-dev.9840

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.js CHANGED
@@ -9587,7 +9587,16 @@ var ModalFilterTicket = ({
9587
9587
  children: mergedLabels.resetButton
9588
9588
  }
9589
9589
  ),
9590
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Button, { appearance: "primary", onClick: onApply, shape: "circular", children: mergedLabels.applyButton })
9590
+ /* @__PURE__ */ jsxRuntime.jsx(
9591
+ reactComponents.Button,
9592
+ {
9593
+ appearance: "primary",
9594
+ disabled: selectedServiceTypes.length === 0,
9595
+ onClick: onApply,
9596
+ shape: "circular",
9597
+ children: mergedLabels.applyButton
9598
+ }
9599
+ )
9591
9600
  ] })
9592
9601
  ] }) }) });
9593
9602
  };
@@ -13120,11 +13129,7 @@ var CardVehicleOwnerForm = ({
13120
13129
  cargoItems: updatedCargoItems
13121
13130
  });
13122
13131
  },
13123
- options: loadTypeOptions.filter(
13124
- (lt) => lt.commodityId === (getValues(
13125
- `owners.${index}.cargo.${cargoIndex}.commodity`
13126
- ) || "")
13127
- ).map((lt) => ({
13132
+ options: loadTypeOptions.map((lt) => ({
13128
13133
  value: lt.id.toString(),
13129
13134
  label: `${lt.name} (${lt.unit?.name})`
13130
13135
  })),
@@ -13150,7 +13155,7 @@ var CardVehicleOwnerForm = ({
13150
13155
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13151
13156
  );
13152
13157
  const selectedLoadType = loadTypes.find(
13153
- (loadType) => loadType.id === type
13158
+ (loadType) => loadType.id.toString() === type
13154
13159
  );
13155
13160
  if (!selectedLoadType) {
13156
13161
  return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
@@ -13339,9 +13344,9 @@ var CardVehicleOwnerForm = ({
13339
13344
  `owners.${index}.cargo.${cargoIndex}.cargoType`
13340
13345
  );
13341
13346
  const selectedLoadType2 = loadTypes.find(
13342
- (loadType) => loadType.id === type2
13347
+ (loadType) => loadType.id.toString() === type2
13343
13348
  );
13344
- return selectedLoadType2?.unit?.name || "----87----";
13349
+ return selectedLoadType2?.unit?.name;
13345
13350
  })()
13346
13351
  }
13347
13352
  )