@noah-libjs/components 0.0.48 → 0.0.49

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.
@@ -176,6 +176,7 @@ export declare const componentMap: {
176
176
  Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
177
177
  MSW: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
178
178
  ArrayInput: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
179
+ MArr: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
179
180
  ArraySingle: import("..").TCommonComponent<import("src/packs").IArraySingleProps, string>;
180
181
  MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
181
182
  DisplayFC: typeof import("../MySelect/Display").DisplayFC;
@@ -176,6 +176,7 @@ export declare const components: {
176
176
  Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
177
177
  MSW: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
178
178
  ArrayInput: import("..").TCommonComponent<import("../packs").IArrayInputProps, string>;
179
+ MArr: import("..").TCommonComponent<import("../packs").IArrayInputProps, string>;
179
180
  ArraySingle: import("..").TCommonComponent<import("../packs").IArraySingleProps, string>;
180
181
  MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("../packs").IMySelectProps, string | number>> & {
181
182
  DisplayFC: typeof import("../MySelect/Display").DisplayFC;
@@ -176,6 +176,7 @@ export declare const componentMap: {
176
176
  Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
177
177
  MSW: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
178
178
  ArrayInput: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
179
+ MArr: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
179
180
  ArraySingle: import("..").TCommonComponent<import("src/packs").IArraySingleProps, string>;
180
181
  MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
181
182
  DisplayFC: typeof import("./Display").DisplayFC;
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React__default, { useEffect } from 'react';
5
- import { c as componentMap } from './components.js';
6
5
  import { u as use_options } from './index.js';
7
6
  import '@noah-libjs/utils';
7
+ import { c as componentMap } from './components.js';
8
8
  import 'antd';
9
9
  import 'dayjs';
10
10
  import 'rc-select';
@@ -68,7 +68,10 @@ function useConfig_MyAutoComplete(props) {
68
68
  function init() {
69
69
  var searchValue = searchKey ? getSearchParamsValue(searchKey) : null;
70
70
  var _options = parse_MC_option(_objectSpread(_objectSpread({}, props), {}, {
71
- useString: true
71
+ useString: true,
72
+ config: {
73
+ inputType: 'MA'
74
+ }
72
75
  }));
73
76
  if (searchValue) {
74
77
  _options.push({
@@ -707,6 +707,7 @@ function parse_MC_string_options(props) {
707
707
  start: startIndex,
708
708
  useDefault: useDefault
709
709
  });
710
+ console.log('MA props 00', props, opts, input_type, config);
710
711
  return input_type === 'MA' ? opts[1] : opts[0];
711
712
  }
712
713
  function displayValue(_opt, value) {
@@ -1154,6 +1155,7 @@ var packs = {
1154
1155
  Switch: MySwitch,
1155
1156
  MSW: MySwitch,
1156
1157
  ArrayInput: ArrayInput,
1158
+ MArr: ArrayInput,
1157
1159
  ArraySingle: ArraySingle,
1158
1160
  MySelect: MySelect,
1159
1161
  MS: MySelect,
package/dist/packs.d.ts CHANGED
@@ -190,6 +190,7 @@ export declare const packs: {
190
190
  Switch: import("./util-types").TCommonComponent<import("./MySwitch/types").IMySwitchProps, boolean>;
191
191
  MSW: import("./util-types").TCommonComponent<import("./MySwitch/types").IMySwitchProps, boolean>;
192
192
  ArrayInput: import("./util-types").TCommonComponent<import("./ArrayInput").IArrayInputProps, string>;
193
+ MArr: import("./util-types").TCommonComponent<import("./ArrayInput").IArrayInputProps, string>;
193
194
  ArraySingle: import("./util-types").TCommonComponent<import("./ArraySingle").IArraySingleProps, string>;
194
195
  MySelect: import("react").LazyExoticComponent<import("./util-types").TCommonComponent<import("./MySelect").IMySelectProps, string | number>> & {
195
196
  DisplayFC: typeof import("./MySelect/Display").DisplayFC;
@@ -1,7 +1,7 @@
1
1
  import { T_FETCH_OPTIONS } from "@noah-libjs/request";
2
2
  import { ICommonOption } from "@noah-libjs/utils";
3
3
  import React from "react";
4
- import { IMchc_FormDescriptions_Field_Nullable, IMchc_FormDescriptions_InputProps, TOptions } from "../util-types";
4
+ import { IMchc_FormDescriptions_Field, IMchc_FormDescriptions_Field_Nullable, IMchc_FormDescriptions_InputProps, TOptions } from "../util-types";
5
5
  import { FormInstance } from "antd";
6
6
  export type TMarshal = IMchc_FormDescriptions_InputProps['marshal'];
7
7
  export type TMode = 'multiple' | 'tags';
@@ -19,7 +19,7 @@ interface ICompatibleProps {
19
19
  useString?: boolean;
20
20
  useDefault?: boolean;
21
21
  sp?: any[];
22
- config?: any;
22
+ config?: IMchc_FormDescriptions_Field;
23
23
  startIndex?: any;
24
24
  display_linker?: string;
25
25
  linker?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noah-libjs/components",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -38,12 +38,12 @@
38
38
  "rollup-plugin-postcss": "^4.0.2"
39
39
  },
40
40
  "dependencies": {
41
- "@noah-libjs/request": "^0.0.48",
42
- "@noah-libjs/utils": "^0.0.48"
41
+ "@noah-libjs/request": "^0.0.49",
42
+ "@noah-libjs/utils": "^0.0.49"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
47
  "license": "MIT",
48
- "gitHead": "80105ac49ea56c9ca7abd6a478940cc2d1644853"
48
+ "gitHead": "79e2242954102e2d87978912eff9ab8d7cbd1b7d"
49
49
  }