@asdp/ferryui 0.1.22-dev.10153 → 0.1.22-dev.10158
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 +23 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12058,7 +12058,10 @@ var useStyles25 = reactComponents.makeStyles({
|
|
|
12058
12058
|
},
|
|
12059
12059
|
passengerList: {
|
|
12060
12060
|
display: "flex",
|
|
12061
|
-
flexDirection: "column"
|
|
12061
|
+
flexDirection: "column",
|
|
12062
|
+
maxHeight: "400px",
|
|
12063
|
+
overflowY: "auto",
|
|
12064
|
+
paddingRight: "0.5rem"
|
|
12062
12065
|
},
|
|
12063
12066
|
passengerItem: {
|
|
12064
12067
|
display: "flex",
|
|
@@ -12396,7 +12399,7 @@ var DEFAULT_LABELS26 = {
|
|
|
12396
12399
|
cargoQuantityLabel: "Jumlah Muatan",
|
|
12397
12400
|
priceLabel: "Harga",
|
|
12398
12401
|
industryTypeLabel: "Data Jenis Industri",
|
|
12399
|
-
industryTypeHelperText: 'Apabila jenis industri belum tersedia dapat memilih "Lainnya" dan silakan isi jenis
|
|
12402
|
+
industryTypeHelperText: 'Apabila jenis industri belum tersedia dapat memilih "Lainnya" dan silakan isi jenis industrinya.',
|
|
12400
12403
|
cargoCategoryLabel: "Kategori Muatan",
|
|
12401
12404
|
cargoCategoryHelperTextPrefix: "Pahami definisi, jenis dan contoh kategori muatan",
|
|
12402
12405
|
deleteCargoButton: "Hapus Muatan",
|
|
@@ -13251,7 +13254,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13251
13254
|
`owners.${index}.cargo.${cargoIndex}.quantity`
|
|
13252
13255
|
) || 0;
|
|
13253
13256
|
const currentQty = Number(currentVal);
|
|
13254
|
-
if (currentQty >
|
|
13257
|
+
if (currentQty > 1) {
|
|
13255
13258
|
const newVal = currentQty - 1;
|
|
13256
13259
|
setValue(
|
|
13257
13260
|
`owners.${index}.cargo.${cargoIndex}.quantity`,
|
|
@@ -13281,6 +13284,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13281
13284
|
{
|
|
13282
13285
|
...field,
|
|
13283
13286
|
min: 1,
|
|
13287
|
+
step: "1",
|
|
13284
13288
|
type: "number",
|
|
13285
13289
|
style: {
|
|
13286
13290
|
border: "none",
|
|
@@ -13292,6 +13296,21 @@ var CardVehicleOwnerForm = ({
|
|
|
13292
13296
|
fontSize: reactComponents.tokens.fontSizeBase400,
|
|
13293
13297
|
fontFamily: reactComponents.tokens.fontFamilyBase
|
|
13294
13298
|
},
|
|
13299
|
+
onKeyDown: (e) => {
|
|
13300
|
+
if (["e", "E", "+", "-", ".", ","].includes(
|
|
13301
|
+
e.key
|
|
13302
|
+
)) {
|
|
13303
|
+
e.preventDefault();
|
|
13304
|
+
}
|
|
13305
|
+
},
|
|
13306
|
+
onPaste: (e) => {
|
|
13307
|
+
const paste = e.clipboardData.getData(
|
|
13308
|
+
"text"
|
|
13309
|
+
);
|
|
13310
|
+
if (!/^\d+$/.test(paste)) {
|
|
13311
|
+
e.preventDefault();
|
|
13312
|
+
}
|
|
13313
|
+
},
|
|
13295
13314
|
onWheel: (e) => e.target.blur(),
|
|
13296
13315
|
onChange: (e) => {
|
|
13297
13316
|
const newVal = Number(
|
|
@@ -13308,7 +13327,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13308
13327
|
),
|
|
13309
13328
|
rules: {
|
|
13310
13329
|
required: true,
|
|
13311
|
-
|
|
13330
|
+
validate: (val) => Number(val) > 0
|
|
13312
13331
|
}
|
|
13313
13332
|
}
|
|
13314
13333
|
) }),
|