@djb25/digit-ui-module-fsm 1.0.3 → 1.0.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +66 -77
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -407,7 +407,7 @@ const FSMSelectAddress = ({
|
|
|
407
407
|
}
|
|
408
408
|
if (userType === "employee") {
|
|
409
409
|
var _formData$address7, _formData$address7$lo;
|
|
410
|
-
return /*#__PURE__*/React.createElement(
|
|
410
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
411
411
|
className: "card-label-smaller"
|
|
412
412
|
}, t("MYCITY_CODE_LABEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
413
413
|
className: "form-field",
|
|
@@ -418,7 +418,7 @@ const FSMSelectAddress = ({
|
|
|
418
418
|
select: selectCity,
|
|
419
419
|
optionKey: "code",
|
|
420
420
|
t: t
|
|
421
|
-
})), !isUrcEnable || isNewVendor || isEditVendor ? /*#__PURE__*/React.createElement(
|
|
421
|
+
})), !isUrcEnable || isNewVendor || isEditVendor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
422
422
|
className: "card-label-smaller"
|
|
423
423
|
}, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
424
424
|
className: "form-field",
|
|
@@ -9625,9 +9625,7 @@ const SelectVehicleType = ({
|
|
|
9625
9625
|
type: type
|
|
9626
9626
|
});
|
|
9627
9627
|
};
|
|
9628
|
-
return /*#__PURE__*/React.createElement(
|
|
9629
|
-
className: "card-label-smaller"
|
|
9630
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_MODEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9628
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_MODEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9631
9629
|
className: "form-field",
|
|
9632
9630
|
isMandatory: true,
|
|
9633
9631
|
selected: selectedModal,
|
|
@@ -9636,9 +9634,7 @@ const SelectVehicleType = ({
|
|
|
9636
9634
|
select: selectModal,
|
|
9637
9635
|
optionKey: "name",
|
|
9638
9636
|
t: t
|
|
9639
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
9640
|
-
className: "card-label-smaller"
|
|
9641
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_TYPE"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9637
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_TYPE"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9642
9638
|
className: "form-field",
|
|
9643
9639
|
isMandatory: true,
|
|
9644
9640
|
selected: selectedType,
|
|
@@ -9646,13 +9642,8 @@ const SelectVehicleType = ({
|
|
|
9646
9642
|
select: selectType,
|
|
9647
9643
|
optionKey: "name",
|
|
9648
9644
|
t: t
|
|
9649
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
9650
|
-
className: "card-label-smaller"
|
|
9651
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(TextInput$1, {
|
|
9645
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(TextInput$1, {
|
|
9652
9646
|
className: "",
|
|
9653
|
-
textInputStyle: {
|
|
9654
|
-
width: "50%"
|
|
9655
|
-
},
|
|
9656
9647
|
value: selectedCapacity,
|
|
9657
9648
|
onChange: () => {},
|
|
9658
9649
|
disable: true
|
|
@@ -12851,139 +12842,144 @@ const EmployeeApp = ({
|
|
|
12851
12842
|
}), "Back"),
|
|
12852
12843
|
onLeftClick: () => window.history.back(),
|
|
12853
12844
|
breadcrumbs: getDynamicBreadcrumbs()
|
|
12854
|
-
}), /*#__PURE__*/React.createElement(
|
|
12855
|
-
className: "employee-form"
|
|
12856
|
-
}, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12845
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12857
12846
|
exact: true,
|
|
12858
12847
|
path: `${path}/`,
|
|
12859
|
-
component: () => /*#__PURE__*/React.createElement(FSMLinks, {
|
|
12848
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FSMLinks, {
|
|
12860
12849
|
matchPath: path,
|
|
12861
12850
|
userType: userType
|
|
12862
|
-
})
|
|
12851
|
+
}), layouts.normal)
|
|
12863
12852
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12864
12853
|
path: `${path}/inbox`,
|
|
12865
|
-
component: (
|
|
12854
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12866
12855
|
parentRoute: path,
|
|
12867
12856
|
isInbox: true
|
|
12868
|
-
})
|
|
12857
|
+
})), layouts.normal)
|
|
12869
12858
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12870
12859
|
path: `${path}/fstp-inbox`,
|
|
12871
|
-
component: (
|
|
12860
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpInbox, Object.assign({}, props, {
|
|
12872
12861
|
parentRoute: path
|
|
12873
|
-
})
|
|
12862
|
+
})), layouts.normal)
|
|
12874
12863
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12875
12864
|
path: `${path}/new-application`,
|
|
12876
|
-
component: () => /*#__PURE__*/React.createElement(NewApplication, {
|
|
12865
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(NewApplication, {
|
|
12877
12866
|
parentUrl: url
|
|
12878
|
-
})
|
|
12867
|
+
}), layouts.normal)
|
|
12879
12868
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12880
12869
|
path: `${path}/modify-application/:id`,
|
|
12881
|
-
component: () => /*#__PURE__*/React.createElement(EditApplication, null)
|
|
12870
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(EditApplication, null), layouts.normal)
|
|
12882
12871
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12883
12872
|
path: `${path}/application-details/:id`,
|
|
12884
|
-
component: (
|
|
12873
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EmployeeApplicationDetails, Object.assign({}, props, {
|
|
12885
12874
|
parentRoute: path,
|
|
12886
12875
|
userType: "EMPLOYEE"
|
|
12887
|
-
})
|
|
12876
|
+
})), layouts.normal)
|
|
12888
12877
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12889
12878
|
path: `${path}/fstp-operator-details/:id`,
|
|
12890
|
-
component: FstpOperatorDetails
|
|
12879
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12891
12880
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12892
12881
|
path: `${path}/response`,
|
|
12893
|
-
component: props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12882
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12894
12883
|
parentRoute: path
|
|
12895
|
-
}))
|
|
12884
|
+
})), layouts.normal)
|
|
12896
12885
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12897
12886
|
path: `${path}/application-audit/:id`,
|
|
12898
|
-
component: (
|
|
12887
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(ApplicationAudit, Object.assign({}, props, {
|
|
12899
12888
|
parentRoute: path
|
|
12900
|
-
})
|
|
12889
|
+
})), layouts.normal)
|
|
12901
12890
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12902
12891
|
path: `${path}/search`,
|
|
12903
|
-
component: (
|
|
12892
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12904
12893
|
parentRoute: path,
|
|
12905
12894
|
isSearch: true
|
|
12906
|
-
})
|
|
12895
|
+
})), layouts.normal)
|
|
12907
12896
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12908
12897
|
path: `${path}/rate-view/:id`,
|
|
12909
|
-
component: (
|
|
12898
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(RateView, Object.assign({}, props, {
|
|
12910
12899
|
parentRoute: path
|
|
12911
|
-
})
|
|
12900
|
+
})), layouts.normal)
|
|
12912
12901
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12913
12902
|
path: `${path}/mark-for-disposal`,
|
|
12914
|
-
component: () => /*#__PURE__*/React.createElement("div", null)
|
|
12903
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement("div", null), layouts.normal)
|
|
12915
12904
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12916
12905
|
exact: true,
|
|
12917
12906
|
path: `${path}/registry`,
|
|
12918
|
-
component: (
|
|
12907
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FSMRegistry, Object.assign({}, props, {
|
|
12919
12908
|
parentRoute: path
|
|
12920
|
-
})
|
|
12909
|
+
})), layouts.normal)
|
|
12921
12910
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12922
12911
|
path: `${path}/registry/vendor-details/:id`,
|
|
12923
|
-
component: (
|
|
12912
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VendorDetails, Object.assign({}, props, {
|
|
12924
12913
|
parentRoute: path
|
|
12925
|
-
})
|
|
12914
|
+
})), layouts.normal)
|
|
12926
12915
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12927
12916
|
path: `${path}/registry/new-vendor`,
|
|
12928
|
-
component: (
|
|
12917
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVendor, Object.assign({}, props, {
|
|
12929
12918
|
parentRoute: path
|
|
12930
|
-
})
|
|
12919
|
+
})), layouts.normal)
|
|
12931
12920
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12932
12921
|
path: `${path}/registry/modify-vendor/:id`,
|
|
12933
|
-
component: (
|
|
12922
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVendor, Object.assign({}, props, {
|
|
12934
12923
|
parentRoute: path
|
|
12935
|
-
})
|
|
12924
|
+
})), layouts.action)
|
|
12936
12925
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12937
12926
|
path: `${path}/registry/vehicle-details/:id`,
|
|
12938
|
-
component: (
|
|
12927
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VehicleDetails, Object.assign({}, props, {
|
|
12939
12928
|
parentRoute: path
|
|
12940
|
-
})
|
|
12929
|
+
})), layouts.normal)
|
|
12941
12930
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12942
12931
|
path: `${path}/registry/new-vehicle`,
|
|
12943
|
-
component: (
|
|
12932
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVehicle, Object.assign({}, props, {
|
|
12944
12933
|
parentRoute: path
|
|
12945
|
-
})
|
|
12934
|
+
})), layouts.normal)
|
|
12946
12935
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12947
12936
|
path: `${path}/registry/modify-vehicle/:id`,
|
|
12948
|
-
component: (
|
|
12937
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVehicle, Object.assign({}, props, {
|
|
12949
12938
|
parentRoute: path
|
|
12950
|
-
})
|
|
12939
|
+
})), layouts.action)
|
|
12951
12940
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12952
12941
|
path: `${path}/registry/driver-details/:id`,
|
|
12953
|
-
component: (
|
|
12942
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(DriverDetails, Object.assign({}, props, {
|
|
12954
12943
|
parentRoute: path
|
|
12955
|
-
})
|
|
12944
|
+
})), layouts.normal)
|
|
12956
12945
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12957
12946
|
path: `${path}/registry/new-driver`,
|
|
12958
|
-
component: (
|
|
12947
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddDriver, Object.assign({}, props, {
|
|
12959
12948
|
parentRoute: path
|
|
12960
|
-
})
|
|
12949
|
+
})), layouts.normal)
|
|
12961
12950
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12962
12951
|
path: `${path}/registry/modify-driver/:id`,
|
|
12963
|
-
component: (
|
|
12952
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditDriver, Object.assign({}, props, {
|
|
12964
12953
|
parentRoute: path
|
|
12965
|
-
})
|
|
12954
|
+
})), layouts.action)
|
|
12966
12955
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12967
12956
|
exact: true,
|
|
12968
12957
|
path: `${path}/fstp-operations`,
|
|
12969
|
-
component: () => /*#__PURE__*/React.createElement(FstpOperations, null)
|
|
12958
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpOperations, null), layouts.normal)
|
|
12970
12959
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12971
12960
|
exact: true,
|
|
12972
12961
|
path: `${path}/fstp-add-vehicle`,
|
|
12973
|
-
component: () => /*#__PURE__*/React.createElement(FstpAddVehicle, null)
|
|
12962
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpAddVehicle, null), layouts.normal)
|
|
12974
12963
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12975
12964
|
exact: true,
|
|
12976
12965
|
path: `${path}/fstp-fsm-request/:id`,
|
|
12977
|
-
component: (
|
|
12966
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpServiceRequest, props), layouts.normal)
|
|
12978
12967
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12979
12968
|
exact: true,
|
|
12980
12969
|
path: `${path}/fstp/new-vehicle-entry`,
|
|
12981
|
-
component: FstpOperatorDetails
|
|
12970
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12982
12971
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12983
12972
|
exact: true,
|
|
12984
12973
|
path: `${path}/fstp/new-vehicle-entry/:id`,
|
|
12985
|
-
component: FstpOperatorDetails
|
|
12986
|
-
}))))
|
|
12974
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12975
|
+
}))));
|
|
12976
|
+
};
|
|
12977
|
+
const renderWithLayout = (Component, layoutClass) => routeProps => /*#__PURE__*/React.createElement("div", {
|
|
12978
|
+
className: layoutClass
|
|
12979
|
+
}, /*#__PURE__*/React.createElement(Component, routeProps));
|
|
12980
|
+
const layouts = {
|
|
12981
|
+
normal: "employee-form",
|
|
12982
|
+
action: "employee-form employee-form-content-with-action-bar"
|
|
12987
12983
|
};
|
|
12988
12984
|
|
|
12989
12985
|
const ApplicationAudit = ({
|
|
@@ -20274,15 +20270,10 @@ const EditVehicle = ({
|
|
|
20274
20270
|
}
|
|
20275
20271
|
});
|
|
20276
20272
|
};
|
|
20277
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
20278
20273
|
if (vehicleDataLoading || Object.keys(defaultValues).length == 0) {
|
|
20279
20274
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
20280
20275
|
}
|
|
20281
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
20282
|
-
style: !isMobile ? {
|
|
20283
|
-
marginLeft: "-15px"
|
|
20284
|
-
} : {}
|
|
20285
|
-
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
20276
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
|
|
20286
20277
|
isDisabled: !canSubmit,
|
|
20287
20278
|
label: t("ES_COMMON_APPLICATION_SUBMIT"),
|
|
20288
20279
|
config: Config.filter(i => !i.hideInEmployee).map(config => {
|
|
@@ -20297,12 +20288,13 @@ const EditVehicle = ({
|
|
|
20297
20288
|
onSubmit: onSubmit,
|
|
20298
20289
|
defaultValues: defaultValues,
|
|
20299
20290
|
onFormValueChange: onFormValueChange,
|
|
20300
|
-
noBreakLine: true
|
|
20291
|
+
noBreakLine: true,
|
|
20292
|
+
formClassName: "vehicle-details-card"
|
|
20301
20293
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20302
20294
|
error: showToast.key === "error" ? true : false,
|
|
20303
20295
|
label: t(showToast.key === "success" ? `ES_FSM_REGISTRY_${showToast.action}_SUCCESS` : showToast.action),
|
|
20304
20296
|
onClose: closeToast
|
|
20305
|
-
}))
|
|
20297
|
+
}));
|
|
20306
20298
|
};
|
|
20307
20299
|
|
|
20308
20300
|
const Heading$3 = props => {
|
|
@@ -21029,14 +21021,11 @@ const EditDriver = ({
|
|
|
21029
21021
|
}
|
|
21030
21022
|
});
|
|
21031
21023
|
};
|
|
21032
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21033
21024
|
if (daoDataLoading || Object.keys(defaultValues).length == 0) {
|
|
21034
21025
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
21035
21026
|
}
|
|
21036
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
21037
|
-
|
|
21038
|
-
marginLeft: "-15px"
|
|
21039
|
-
} : {}
|
|
21027
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
21028
|
+
className: "employee-form-content"
|
|
21040
21029
|
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
21041
21030
|
isDisabled: !canSubmit,
|
|
21042
21031
|
label: t("ES_COMMON_APPLICATION_SUBMIT"),
|