form-driver 0.1.4 → 0.1.5

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/es/m3.js CHANGED
@@ -18487,7 +18487,7 @@ var ASelector = /*#__PURE__*/function (_BaseViewer) {
18487
18487
  width: "100%"
18488
18488
  },
18489
18489
  onChange: function onChange(vv) {
18490
- return _BaseViewer.prototype.changeValue.call(_this2, _this2._enums[vv].value);
18490
+ return _BaseViewer.prototype.changeValue.call(_this2, p != null && p.labelInValue ? vv : _this2._enums[vv].value);
18491
18491
  }
18492
18492
  }, p), options);
18493
18493
  }
package/lib/m3.js CHANGED
@@ -18507,7 +18507,7 @@ var ASelector = /*#__PURE__*/function (_BaseViewer) {
18507
18507
  width: "100%"
18508
18508
  },
18509
18509
  onChange: function onChange(vv) {
18510
- return _BaseViewer.prototype.changeValue.call(_this2, _this2._enums[vv].value);
18510
+ return _BaseViewer.prototype.changeValue.call(_this2, p != null && p.labelInValue ? vv : _this2._enums[vv].value);
18511
18511
  }
18512
18512
  }, p), options);
18513
18513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -78,7 +78,7 @@ export class ASelector extends BaseViewer {
78
78
  : menu
79
79
  }}
80
80
  style={{ width: "100%" }}
81
- onChange={(vv: any) => super.changeValue(this._enums[vv].value)}
81
+ onChange={(vv: any) => super.changeValue(p?.labelInValue ? vv : this._enums[vv].value)}
82
82
  {...p}
83
83
  >
84
84
  {options}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import 'form-driver/dist/m3.css';
3
+ export declare class TestForm extends React.Component<any, any> {
4
+ render(): JSX.Element;
5
+ }
@@ -0,0 +1 @@
1
+ export declare function injectTestCookie(): void;
@@ -0,0 +1,3 @@
1
+ import { MType } from 'form-driver';
2
+ declare const OssUploadType: MType;
3
+ export default OssUploadType;
@@ -0,0 +1,5 @@
1
+ import { BaseViewer } from 'form-driver';
2
+ declare class OssUploadViewer extends BaseViewer {
3
+ element(): JSX.Element;
4
+ }
5
+ export default OssUploadViewer;
@@ -0,0 +1,8 @@
1
+ import OssUploadViewer from './OssUploadViewer';
2
+ declare const _default: {
3
+ name: string;
4
+ type: import("form-driver").MType;
5
+ editor: any;
6
+ readable: typeof OssUploadViewer;
7
+ };
8
+ export default _default;