kui-crm 0.0.71 → 0.0.73
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/cjs/index.js +11 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +4 -2
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -2711,6 +2711,16 @@ function MultistepForm(props) {
|
|
|
2711
2711
|
}
|
|
2712
2712
|
var index = mobxReact.observer(MultistepForm);
|
|
2713
2713
|
|
|
2714
|
+
var LinkField = function (props) {
|
|
2715
|
+
var name = props.name, form = props.form;
|
|
2716
|
+
var openLink = function () {
|
|
2717
|
+
var link = form.getValues(name);
|
|
2718
|
+
if (link)
|
|
2719
|
+
window.open(link, "_blank");
|
|
2720
|
+
};
|
|
2721
|
+
return (jsxRuntime.jsx(kuiComplex.InputWithController, __assign({ endIcon: jsxRuntime.jsx(kuiBasic.IconButton, __assign({ type: "button", onClick: openLink }, { children: jsxRuntime.jsx(kuiIcon.OpenIcon, { width: 18, height: 18 }) })) }, props)));
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2714
2724
|
var getFillingInfoFields = function (withType, type, setType) { return __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], kuiUtils.addToArrayByCondition(withType, {
|
|
2715
2725
|
label: "Filling type",
|
|
2716
2726
|
name: "type",
|
|
@@ -3161,6 +3171,7 @@ exports.InputFileWithVisibility = InputFileWithVisibility;
|
|
|
3161
3171
|
exports.InputWithMap = InputWithMap;
|
|
3162
3172
|
exports.InspectionTypeValues = InspectionTypeValues;
|
|
3163
3173
|
exports.KUISettings = kuiSettings;
|
|
3174
|
+
exports.LinkField = LinkField;
|
|
3164
3175
|
exports.LoaderPopup = LoaderPopup;
|
|
3165
3176
|
exports.LoaderState = LoaderState$1;
|
|
3166
3177
|
exports.MapComponent = MapComponent$1;
|