@hi-ui/table 4.0.0-alpha.7 → 4.0.0-beta.2
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/README.md +159 -6
- package/lib/cjs/BaseTable.js +298 -0
- package/lib/cjs/BaseTable.js.map +1 -0
- package/lib/cjs/Table.js +315 -0
- package/lib/cjs/Table.js.map +1 -0
- package/lib/cjs/TableAdvancedFilter.js +164 -0
- package/lib/cjs/TableAdvancedFilter.js.map +1 -0
- package/lib/cjs/TableBody.js +150 -0
- package/lib/cjs/TableBody.js.map +1 -0
- package/lib/cjs/TableCell.js +226 -0
- package/lib/cjs/TableCell.js.map +1 -0
- package/lib/cjs/TableColumnMenu.js +172 -0
- package/lib/cjs/TableColumnMenu.js.map +1 -0
- package/lib/cjs/TableEmbedRow.js +81 -0
- package/lib/cjs/TableEmbedRow.js.map +1 -0
- package/lib/cjs/TableHeader.js +129 -0
- package/lib/cjs/TableHeader.js.map +1 -0
- package/lib/cjs/TableRow.js +216 -0
- package/lib/cjs/TableRow.js.map +1 -0
- package/lib/cjs/TableSettingMenu.js +222 -0
- package/lib/cjs/TableSettingMenu.js.map +1 -0
- package/lib/cjs/context.js +33 -0
- package/lib/cjs/context.js.map +1 -0
- package/lib/cjs/hooks/use-async-switch.js +145 -0
- package/lib/cjs/hooks/use-async-switch.js.map +1 -0
- package/lib/cjs/hooks/use-check.js +106 -0
- package/lib/cjs/hooks/use-check.js.map +1 -0
- package/lib/cjs/hooks/use-col-hidden.js +76 -0
- package/lib/cjs/hooks/use-col-hidden.js.map +1 -0
- package/lib/cjs/hooks/use-col-sorter.js +64 -0
- package/lib/cjs/hooks/use-col-sorter.js.map +1 -0
- package/lib/cjs/hooks/use-col-width.js +134 -0
- package/lib/cjs/hooks/use-col-width.js.map +1 -0
- package/lib/cjs/hooks/use-colgroup.js +111 -0
- package/lib/cjs/hooks/use-colgroup.js.map +1 -0
- package/lib/cjs/hooks/use-drag-sorter/lib/esm/index.js +287 -0
- package/lib/cjs/hooks/use-drag-sorter/lib/esm/index.js.map +1 -0
- package/lib/cjs/hooks/use-drag.js +110 -0
- package/lib/cjs/hooks/use-drag.js.map +1 -0
- package/lib/cjs/hooks/use-embed-expand.js +185 -0
- package/lib/cjs/hooks/use-embed-expand.js.map +1 -0
- package/lib/cjs/hooks/use-expand.js +183 -0
- package/lib/cjs/hooks/use-expand.js.map +1 -0
- package/lib/cjs/hooks/use-pagination.js +66 -0
- package/lib/cjs/hooks/use-pagination.js.map +1 -0
- package/lib/cjs/hooks/use-queue.js +55 -0
- package/lib/cjs/hooks/use-queue.js.map +1 -0
- package/lib/cjs/icons/index.js +55 -0
- package/lib/cjs/icons/index.js.map +1 -0
- package/lib/cjs/index.js +23 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/styles/index.scss.js +22 -0
- package/lib/cjs/styles/index.scss.js.map +1 -0
- package/lib/cjs/use-table.js +599 -0
- package/lib/cjs/use-table.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js +29 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js +27 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js +29 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js +29 -0
- package/lib/cjs/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/index.js +62 -0
- package/lib/cjs/utils/func-utils/lib/esm/index.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js +37 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Map.js +37 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Map.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js +37 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Set.js +37 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Set.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js +34 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js +37 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js +60 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js +49 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js +80 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js +63 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js +34 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js +33 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js +36 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js +48 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js +77 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js +96 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js +40 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js +50 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js +28 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js +58 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js +49 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_root.js +39 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_root.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js +55 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js +61 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js +67 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js +69 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObject.js +72 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObject.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js +69 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js.map +1 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js +45 -0
- package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js.map +1 -0
- package/lib/cjs/utils/index.js +190 -0
- package/lib/cjs/utils/index.js.map +1 -0
- package/lib/esm/BaseTable.js +266 -0
- package/lib/esm/BaseTable.js.map +1 -0
- package/lib/esm/Table.js +276 -0
- package/lib/esm/Table.js.map +1 -0
- package/lib/esm/TableAdvancedFilter.js +134 -0
- package/lib/esm/TableAdvancedFilter.js.map +1 -0
- package/lib/esm/TableBody.js +126 -0
- package/lib/esm/TableBody.js.map +1 -0
- package/lib/esm/TableCell.js +202 -0
- package/lib/esm/TableCell.js.map +1 -0
- package/lib/esm/TableColumnMenu.js +145 -0
- package/lib/esm/TableColumnMenu.js.map +1 -0
- package/lib/esm/TableEmbedRow.js +59 -0
- package/lib/esm/TableEmbedRow.js.map +1 -0
- package/lib/esm/TableHeader.js +107 -0
- package/lib/esm/TableHeader.js.map +1 -0
- package/lib/esm/TableRow.js +189 -0
- package/lib/esm/TableRow.js.map +1 -0
- package/lib/esm/TableSettingMenu.js +190 -0
- package/lib/esm/TableSettingMenu.js.map +1 -0
- package/lib/esm/context.js +25 -0
- package/lib/esm/context.js.map +1 -0
- package/lib/esm/hooks/use-async-switch.js +124 -0
- package/lib/esm/hooks/use-async-switch.js.map +1 -0
- package/lib/esm/hooks/use-check.js +87 -0
- package/lib/esm/hooks/use-check.js.map +1 -0
- package/lib/esm/hooks/use-col-hidden.js +67 -0
- package/lib/esm/hooks/use-col-hidden.js.map +1 -0
- package/lib/esm/hooks/use-col-sorter.js +55 -0
- package/lib/esm/hooks/use-col-sorter.js.map +1 -0
- package/lib/esm/hooks/use-col-width.js +116 -0
- package/lib/esm/hooks/use-col-width.js.map +1 -0
- package/lib/esm/hooks/use-colgroup.js +93 -0
- package/lib/esm/hooks/use-colgroup.js.map +1 -0
- package/lib/esm/hooks/use-drag-sorter/lib/esm/index.js +264 -0
- package/lib/esm/hooks/use-drag-sorter/lib/esm/index.js.map +1 -0
- package/lib/esm/hooks/use-drag.js +91 -0
- package/lib/esm/hooks/use-drag.js.map +1 -0
- package/lib/esm/hooks/use-embed-expand.js +160 -0
- package/lib/esm/hooks/use-embed-expand.js.map +1 -0
- package/lib/esm/hooks/use-expand.js +172 -0
- package/lib/esm/hooks/use-expand.js.map +1 -0
- package/lib/esm/hooks/use-pagination.js +46 -0
- package/lib/esm/hooks/use-pagination.js.map +1 -0
- package/lib/esm/hooks/use-queue.js +49 -0
- package/lib/esm/hooks/use-queue.js.map +1 -0
- package/lib/esm/icons/index.js +33 -0
- package/lib/esm/icons/index.js.map +1 -0
- package/lib/esm/index.js +12 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/styles/index.scss.js +17 -0
- package/lib/esm/styles/index.scss.js.map +1 -0
- package/lib/esm/use-table.js +567 -0
- package/lib/esm/use-table.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js +24 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js +22 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js +24 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js +24 -0
- package/lib/esm/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/index.js +45 -0
- package/lib/esm/utils/func-utils/lib/esm/index.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js +29 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Map.js +29 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Map.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js +29 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Set.js +29 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Set.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js +27 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js +29 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js +51 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js +41 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js +70 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js +59 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js +27 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js +30 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js +17 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js +40 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js +70 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js +87 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js +35 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js +43 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js +25 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js +54 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js +44 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_root.js +21 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_root.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js +50 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js +57 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js +62 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js +61 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObject.js +55 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObject.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js +52 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js.map +1 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js +40 -0
- package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js.map +1 -0
- package/lib/esm/utils/index.js +178 -0
- package/lib/esm/utils/index.js.map +1 -0
- package/lib/types/BaseTable.d.ts +41 -0
- package/lib/types/Table.d.ts +18 -16
- package/lib/types/TableAdvancedFilter.d.ts +9 -0
- package/lib/types/TableBody.d.ts +11 -0
- package/lib/types/TableCell.d.ts +41 -0
- package/lib/types/TableColumnMenu.d.ts +18 -5
- package/lib/types/TableEmbedRow.d.ts +26 -0
- package/lib/types/TableHeader.d.ts +1 -7
- package/lib/types/TableRow.d.ts +32 -0
- package/lib/types/TableSettingMenu.d.ts +1 -2
- package/lib/types/context.d.ts +110 -85
- package/lib/types/hooks/use-async-switch.d.ts +2 -1
- package/lib/types/hooks/use-check.d.ts +4 -8
- package/lib/types/hooks/use-col-frozen.d.ts +1 -1
- package/lib/types/hooks/use-col-hidden.d.ts +1 -1
- package/lib/types/hooks/use-col-width.d.ts +5 -8
- package/lib/types/hooks/use-colgroup.d.ts +2 -1
- package/lib/types/hooks/use-drag.d.ts +13 -0
- package/lib/types/hooks/use-embed-expand.d.ts +39 -0
- package/lib/types/hooks/use-expand.d.ts +1 -1
- package/lib/types/hooks/use-pagination.d.ts +5 -6
- package/lib/types/index.d.ts +1 -0
- package/lib/types/types.d.ts +33 -32
- package/lib/types/use-table.d.ts +242 -0
- package/lib/types/utils/index.d.ts +11 -4
- package/package.json +35 -8
- package/lib/types/TableExpandedRow.d.ts +0 -28
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
/** @LICENSE
|
|
16
|
+
* @hi-ui/func-utils
|
|
17
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
26
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
27
|
+
//# sourceMappingURL=_commonjsHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
/** @LICENSE
|
|
16
|
+
* @hi-ui/func-utils
|
|
17
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var _nodeUtil = {
|
|
26
|
+
exports: {}
|
|
27
|
+
};
|
|
28
|
+
exports._ = _nodeUtil;
|
|
29
|
+
//# sourceMappingURL=_nodeUtil.js_commonjs-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nodeUtil.js_commonjs-module.js","sources":["../../../../../../../../../utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar _nodeUtil = {\n exports: {}\n};\nexport { _nodeUtil as _ };\n//# sourceMappingURL=_nodeUtil.js_commonjs-module.map\n"],"names":["_nodeUtil","exports"],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACG,IAACA,SAAS,GAAG;AACdC,EAAAA,OAAO,EAAE;AADK,CAAb;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
/** @LICENSE
|
|
16
|
+
* @hi-ui/func-utils
|
|
17
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var isBuffer = {
|
|
26
|
+
exports: {}
|
|
27
|
+
};
|
|
28
|
+
exports.i = isBuffer;
|
|
29
|
+
//# sourceMappingURL=isBuffer.js_commonjs-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBuffer.js_commonjs-module.js","sources":["../../../../../../../../../utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar isBuffer = {\n exports: {}\n};\nexport { isBuffer as i };\n//# sourceMappingURL=isBuffer.js_commonjs-module.map\n"],"names":["isBuffer","exports"],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACG,IAACA,QAAQ,GAAG;AACbC,EAAAA,OAAO,EAAE;AADI,CAAZ;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
require('./node_modules/lodash/_Map.js');
|
|
17
|
+
|
|
18
|
+
require('./node_modules/lodash/_nativeCreate.js');
|
|
19
|
+
|
|
20
|
+
require('@babel/runtime/helpers/esm/typeof');
|
|
21
|
+
|
|
22
|
+
require('./node_modules/lodash/_defineProperty.js');
|
|
23
|
+
|
|
24
|
+
require('./node_modules/lodash/isArguments.js');
|
|
25
|
+
|
|
26
|
+
require('./node_modules/lodash/isBuffer.js');
|
|
27
|
+
|
|
28
|
+
require('./node_modules/lodash/_root.js');
|
|
29
|
+
|
|
30
|
+
require('./node_modules/lodash/_nodeUtil.js');
|
|
31
|
+
|
|
32
|
+
require('./node_modules/lodash/_cloneBuffer.js');
|
|
33
|
+
|
|
34
|
+
require('./node_modules/lodash/_getTag.js');
|
|
35
|
+
|
|
36
|
+
var typeAssertion = require('@hi-ui/type-assertion');
|
|
37
|
+
/** @LICENSE
|
|
38
|
+
* @hi-ui/func-utils
|
|
39
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 如果值是函数,则执行使用返回值,
|
|
49
|
+
* 否则直接使用值
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
var runIfFunc = function runIfFunc(valueOrFn) {
|
|
54
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
55
|
+
args[_key3 - 1] = arguments[_key3];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return typeAssertion.isFunction(valueOrFn) ? valueOrFn.apply(null, args) : valueOrFn;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.runIfFunc = runIfFunc;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../utils/func-utils/lib/esm/index.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport clone_1 from './node_modules/lodash/clone.js';\nimport { isNullish, isArray, isObjectLike, isFunction } from '@hi-ui/type-assertion';\n\nvar noop = function noop() {};\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar hasOwnProp = function hasOwnProp(obj, key) {\n return hasOwnProperty.call(obj, key);\n};\n\nvar callAllFuncs = function callAllFuncs() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function mergedFunc() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n funcs.forEach(function (func) {\n func && func.apply(void 0, args);\n });\n };\n};\n\nvar toArray = function toArray(arg) {\n if (isNullish(arg)) return [];\n return isArray(arg) ? arg : [arg];\n};\n/**\n * Get value by deep key in nested object\n *\n * @refs https://github.com/Flcwl/unext/blob/master/src/get.ts\n * @example\n *\n * get({ a: { b: 3 } }, ['a', 'b']) // 3\n */\n\n\nvar getNested = function getNested(obj, paths) {\n paths = toArray(paths);\n var props = paths.map(function (p) {\n return p + '';\n }).filter(function (p) {\n return p !== '';\n });\n var target = obj;\n var i = 0;\n var len = props.length;\n\n for (; i < len; ++i) {\n if (isNullish(target)) {\n break;\n }\n\n target = target[props[i]];\n }\n\n return i === len ? target : undefined;\n};\n/**\n * Set value to deep key in nested object\n *\n * @example\n *\n * setNested({ a: { b: 2 } }, ['a', 'b'], 4) // { a: { b: 4 } }\n */\n\n\nvar setNested = function setNested(obj, paths, value) {\n paths = toArray(paths); // just support array\n\n var props = [];\n paths.forEach(function (p) {\n if (Number.isSafeInteger(p)) {\n props.push(p);\n } else {\n p = p + '';\n\n if (p !== '') {\n props.push(p);\n }\n }\n });\n var lastIndex = props.length - 1;\n var i = 0;\n var key;\n var objValue; // using clone keep pure\n\n obj = clone_1(obj);\n var target = obj;\n\n while (i < lastIndex) {\n key = props[i++];\n objValue = target[key];\n\n if (isObjectLike(objValue)) {\n target[key] = clone_1(objValue);\n } else {\n // using array when path's type is number\n target[key] = typeof props[i] === 'number' ? [] : {};\n }\n\n target = target[key];\n }\n\n target[props[i]] = value;\n return obj;\n};\n/**\n * 如果值是函数,则执行使用返回值,\n * 否则直接使用值\n */\n\n\nvar runIfFunc = function runIfFunc(valueOrFn) {\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n\n return isFunction(valueOrFn) ? valueOrFn.apply(null, args) : valueOrFn;\n};\n\nexport { callAllFuncs, getNested, hasOwnProp, noop, runIfFunc, setNested, toArray };\n//# sourceMappingURL=index.js.map\n"],"names":["runIfFunc","valueOrFn","args","isFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA;;;;;;IAIaA,SAAS,GAAG,SAAZA,SAAY,CAAAC,SAAA,EAAA;qCAAkDC,IAAAA,GAAAA,IAAAA,KAAAA,CAAAA,KAAAA,GAAAA,CAAAA,GAAAA,KAAAA,GAAAA,CAAAA,GAAAA,CAAAA,GAAAA,KAAAA,GAAAA,GAAAA,KAAAA,GAAAA,OAAAA,KAAAA,IAAAA;AAAAA,IAAAA,IAAAA,CAAAA,KAAAA,GAAAA,CAAAA,CAAAA,GAAAA,SAAAA,CAAAA,KAAAA,CAAAA;;;SAClEC,wBAAAA,CAAAA,SAAAA,IAAwBF,SAAS,CAATA,KAAAA,CAAAA,IAAAA,EAAxBE,IAAwBF,CAAxBE,GAAsDF;;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _getNative = require('./_getNative.js');
|
|
17
|
+
|
|
18
|
+
var _root = require('./_root.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var getNative = _getNative['default'],
|
|
31
|
+
root = _root['default'];
|
|
32
|
+
/* Built-in method references that are verified to be native. */
|
|
33
|
+
|
|
34
|
+
var DataView = getNative(root, 'DataView');
|
|
35
|
+
var _DataView = DataView;
|
|
36
|
+
exports["default"] = _DataView;
|
|
37
|
+
//# sourceMappingURL=_DataView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_DataView.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_DataView.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar DataView = getNative(root, 'DataView');\nvar _DataView = DataView;\nexport default _DataView;\n//# sourceMappingURL=_DataView.js.map\n"],"names":["getNative","_getNative","root","_root","DataView","_DataView"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,SAAS,GAAGC,qBAAhB;AAAA,IACIC,IAAI,GAAGC,gBADX;AAEA;;AAEA,IAAIC,QAAQ,GAAGJ,SAAS,CAACE,IAAD,EAAO,UAAP,CAAxB;AACG,IAACG,SAAS,GAAGD,QAAb;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _getNative = require('./_getNative.js');
|
|
17
|
+
|
|
18
|
+
var _root = require('./_root.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var getNative = _getNative['default'],
|
|
31
|
+
root = _root['default'];
|
|
32
|
+
/* Built-in method references that are verified to be native. */
|
|
33
|
+
|
|
34
|
+
var Map = getNative(root, 'Map');
|
|
35
|
+
var _Map = Map;
|
|
36
|
+
exports["default"] = _Map;
|
|
37
|
+
//# sourceMappingURL=_Map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Map.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Map.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Map = getNative(root, 'Map');\nvar _Map = Map;\nexport default _Map;\n//# sourceMappingURL=_Map.js.map\n"],"names":["getNative","_getNative","root","_root","Map","_Map"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,SAAS,GAAGC,qBAAhB;AAAA,IACIC,IAAI,GAAGC,gBADX;AAEA;;AAEA,IAAIC,GAAG,GAAGJ,SAAS,CAACE,IAAD,EAAO,KAAP,CAAnB;AACG,IAACG,IAAI,GAAGD,GAAR;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _getNative = require('./_getNative.js');
|
|
17
|
+
|
|
18
|
+
var _root = require('./_root.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var getNative = _getNative['default'],
|
|
31
|
+
root = _root['default'];
|
|
32
|
+
/* Built-in method references that are verified to be native. */
|
|
33
|
+
|
|
34
|
+
var Promise$1 = getNative(root, 'Promise');
|
|
35
|
+
var _Promise = Promise$1;
|
|
36
|
+
exports["default"] = _Promise;
|
|
37
|
+
//# sourceMappingURL=_Promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Promise.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Promise.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Promise$1 = getNative(root, 'Promise');\nvar _Promise = Promise$1;\nexport default _Promise;\n//# sourceMappingURL=_Promise.js.map\n"],"names":["getNative","_getNative","root","_root","Promise$1","_Promise"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,SAAS,GAAGC,qBAAhB;AAAA,IACIC,IAAI,GAAGC,gBADX;AAEA;;AAEA,IAAIC,SAAS,GAAGJ,SAAS,CAACE,IAAD,EAAO,SAAP,CAAzB;AACG,IAACG,QAAQ,GAAGD,SAAZ;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _getNative = require('./_getNative.js');
|
|
17
|
+
|
|
18
|
+
var _root = require('./_root.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var getNative = _getNative['default'],
|
|
31
|
+
root = _root['default'];
|
|
32
|
+
/* Built-in method references that are verified to be native. */
|
|
33
|
+
|
|
34
|
+
var Set = getNative(root, 'Set');
|
|
35
|
+
var _Set = Set;
|
|
36
|
+
exports["default"] = _Set;
|
|
37
|
+
//# sourceMappingURL=_Set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Set.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Set.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Set = getNative(root, 'Set');\nvar _Set = Set;\nexport default _Set;\n//# sourceMappingURL=_Set.js.map\n"],"names":["getNative","_getNative","root","_root","Set","_Set"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,SAAS,GAAGC,qBAAhB;AAAA,IACIC,IAAI,GAAGC,gBADX;AAEA;;AAEA,IAAIC,GAAG,GAAGJ,SAAS,CAACE,IAAD,EAAO,KAAP,CAAnB;AACG,IAACG,IAAI,GAAGD,GAAR;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _root = require('./_root.js');
|
|
17
|
+
/** @LICENSE
|
|
18
|
+
* @hi-ui/func-utils
|
|
19
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var root = _root['default'];
|
|
29
|
+
/** Built-in value references. */
|
|
30
|
+
|
|
31
|
+
var _Symbol2 = root.Symbol;
|
|
32
|
+
var _Symbol = _Symbol2;
|
|
33
|
+
exports["default"] = _Symbol;
|
|
34
|
+
//# sourceMappingURL=_Symbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Symbol.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _root from './_root.js';\nvar root = _root;\n/** Built-in value references. */\n\nvar _Symbol2 = root.Symbol;\nvar _Symbol = _Symbol2;\nexport default _Symbol;\n//# sourceMappingURL=_Symbol.js.map\n"],"names":["root","_root","_Symbol2","Symbol","_Symbol"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,IAAIA,IAAI,GAAGC,gBAAX;AACA;;AAEA,IAAIC,QAAQ,GAAGF,IAAI,CAACG,MAApB;AACG,IAACC,OAAO,GAAGF,QAAX;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _getNative = require('./_getNative.js');
|
|
17
|
+
|
|
18
|
+
var _root = require('./_root.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var getNative = _getNative['default'],
|
|
31
|
+
root = _root['default'];
|
|
32
|
+
/* Built-in method references that are verified to be native. */
|
|
33
|
+
|
|
34
|
+
var WeakMap = getNative(root, 'WeakMap');
|
|
35
|
+
var _WeakMap = WeakMap;
|
|
36
|
+
exports["default"] = _WeakMap;
|
|
37
|
+
//# sourceMappingURL=_WeakMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_WeakMap.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar WeakMap = getNative(root, 'WeakMap');\nvar _WeakMap = WeakMap;\nexport default _WeakMap;\n//# sourceMappingURL=_WeakMap.js.map\n"],"names":["getNative","_getNative","root","_root","WeakMap","_WeakMap"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,SAAS,GAAGC,qBAAhB;AAAA,IACIC,IAAI,GAAGC,gBADX;AAEA;;AAEA,IAAIC,OAAO,GAAGJ,SAAS,CAACE,IAAD,EAAO,SAAP,CAAvB;AACG,IAACG,QAAQ,GAAGD,OAAZ;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _Symbol = require('./_Symbol.js');
|
|
17
|
+
|
|
18
|
+
var _getRawTag = require('./_getRawTag.js');
|
|
19
|
+
|
|
20
|
+
var _objectToString = require('./_objectToString.js');
|
|
21
|
+
/** @LICENSE
|
|
22
|
+
* @hi-ui/func-utils
|
|
23
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var _Symbol2 = _Symbol['default'],
|
|
33
|
+
getRawTag = _getRawTag['default'],
|
|
34
|
+
objectToString = _objectToString['default'];
|
|
35
|
+
/** `Object#toString` result references. */
|
|
36
|
+
|
|
37
|
+
var nullTag = '[object Null]',
|
|
38
|
+
undefinedTag = '[object Undefined]';
|
|
39
|
+
/** Built-in value references. */
|
|
40
|
+
|
|
41
|
+
var symToStringTag = _Symbol2 ? _Symbol2.toStringTag : undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
44
|
+
*
|
|
45
|
+
* @private
|
|
46
|
+
* @param {*} value The value to query.
|
|
47
|
+
* @returns {string} Returns the `toStringTag`.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
function baseGetTag(value) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var _baseGetTag = baseGetTag;
|
|
59
|
+
exports["default"] = _baseGetTag;
|
|
60
|
+
//# sourceMappingURL=_baseGetTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_baseGetTag.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _Symbol from './_Symbol.js';\nimport _getRawTag from './_getRawTag.js';\nimport _objectToString from './_objectToString.js';\nvar _Symbol2 = _Symbol,\n getRawTag = _getRawTag,\n objectToString = _objectToString;\n/** `Object#toString` result references. */\n\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n/** Built-in value references. */\n\nvar symToStringTag = _Symbol2 ? _Symbol2.toStringTag : undefined;\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\n\nvar _baseGetTag = baseGetTag;\nexport default _baseGetTag;\n//# sourceMappingURL=_baseGetTag.js.map\n"],"names":["_Symbol2","_Symbol","getRawTag","_getRawTag","objectToString","_objectToString","nullTag","undefinedTag","symToStringTag","toStringTag","undefined","baseGetTag","value","Object","_baseGetTag"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAIA,IAAIA,QAAQ,GAAGC,kBAAf;AAAA,IACIC,SAAS,GAAGC,qBADhB;AAAA,IAEIC,cAAc,GAAGC,0BAFrB;AAGA;;AAEA,IAAIC,OAAO,GAAG,eAAd;AAAA,IACIC,YAAY,GAAG,oBADnB;AAEA;;AAEA,IAAIC,cAAc,GAAGR,QAAQ,GAAGA,QAAQ,CAACS,WAAZ,GAA0BC,SAAvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,UAAT,CAAoBC,KAApB,EAA2B;AACzB,MAAIA,KAAK,IAAI,IAAb,EAAmB;AACjB,WAAOA,KAAK,KAAKF,SAAV,GAAsBH,YAAtB,GAAqCD,OAA5C;AACD;;AAED,SAAOE,cAAc,IAAIA,cAAc,IAAIK,MAAM,CAACD,KAAD,CAA1C,GAAoDV,SAAS,CAACU,KAAD,CAA7D,GAAuER,cAAc,CAACQ,KAAD,CAA5F;AACD;;AAEE,IAACE,WAAW,GAAGH,UAAf;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _baseGetTag = require('./_baseGetTag.js');
|
|
17
|
+
|
|
18
|
+
var isObjectLike$1 = require('./isObjectLike.js');
|
|
19
|
+
/** @LICENSE
|
|
20
|
+
* @hi-ui/func-utils
|
|
21
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var baseGetTag = _baseGetTag['default'],
|
|
31
|
+
isObjectLike = isObjectLike$1['default'];
|
|
32
|
+
/** `Object#toString` result references. */
|
|
33
|
+
|
|
34
|
+
var argsTag = '[object Arguments]';
|
|
35
|
+
/**
|
|
36
|
+
* The base implementation of `_.isArguments`.
|
|
37
|
+
*
|
|
38
|
+
* @private
|
|
39
|
+
* @param {*} value The value to check.
|
|
40
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
function baseIsArguments(value) {
|
|
44
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var _baseIsArguments = baseIsArguments;
|
|
48
|
+
exports["default"] = _baseIsArguments;
|
|
49
|
+
//# sourceMappingURL=_baseIsArguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_baseIsArguments.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _baseGetTag from './_baseGetTag.js';\nimport isObjectLike_1 from './isObjectLike.js';\nvar baseGetTag = _baseGetTag,\n isObjectLike = isObjectLike_1;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]';\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nvar _baseIsArguments = baseIsArguments;\nexport default _baseIsArguments;\n//# sourceMappingURL=_baseIsArguments.js.map\n"],"names":["baseGetTag","_baseGetTag","isObjectLike","isObjectLike_1","argsTag","baseIsArguments","value","_baseIsArguments"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,IAAIA,UAAU,GAAGC,sBAAjB;AAAA,IACIC,YAAY,GAAGC,yBADnB;AAEA;;AAEA,IAAIC,OAAO,GAAG,oBAAd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,eAAT,CAAyBC,KAAzB,EAAgC;AAC9B,SAAOJ,YAAY,CAACI,KAAD,CAAZ,IAAuBN,UAAU,CAACM,KAAD,CAAV,IAAqBF,OAAnD;AACD;;AAEE,IAACG,gBAAgB,GAAGF,eAApB;"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/** @LICENSE
|
|
2
|
+
* @hi-ui/table
|
|
3
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, '__esModule', {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var isFunction$1 = require('./isFunction.js');
|
|
17
|
+
|
|
18
|
+
var _isMasked = require('./_isMasked.js');
|
|
19
|
+
|
|
20
|
+
var isObject$1 = require('./isObject.js');
|
|
21
|
+
|
|
22
|
+
var _toSource = require('./_toSource.js');
|
|
23
|
+
/** @LICENSE
|
|
24
|
+
* @hi-ui/func-utils
|
|
25
|
+
* https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) HIUI <mi-hiui@xiaomi.com>.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
var isFunction = isFunction$1['default'],
|
|
35
|
+
isMasked = _isMasked['default'],
|
|
36
|
+
isObject = isObject$1['default'],
|
|
37
|
+
toSource = _toSource['default'];
|
|
38
|
+
/**
|
|
39
|
+
* Used to match `RegExp`
|
|
40
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
44
|
+
/** Used to detect host constructors (Safari). */
|
|
45
|
+
|
|
46
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
47
|
+
/** Used for built-in method references. */
|
|
48
|
+
|
|
49
|
+
var funcProto = Function.prototype,
|
|
50
|
+
objectProto = Object.prototype;
|
|
51
|
+
/** Used to resolve the decompiled source of functions. */
|
|
52
|
+
|
|
53
|
+
var funcToString = funcProto.toString;
|
|
54
|
+
/** Used to check objects for own properties. */
|
|
55
|
+
|
|
56
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
57
|
+
/** Used to detect if a method is native. */
|
|
58
|
+
|
|
59
|
+
var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
|
|
60
|
+
/**
|
|
61
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
62
|
+
*
|
|
63
|
+
* @private
|
|
64
|
+
* @param {*} value The value to check.
|
|
65
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
66
|
+
* else `false`.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
function baseIsNative(value) {
|
|
70
|
+
if (!isObject(value) || isMasked(value)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
75
|
+
return pattern.test(toSource(value));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var _baseIsNative = baseIsNative;
|
|
79
|
+
exports["default"] = _baseIsNative;
|
|
80
|
+
//# sourceMappingURL=_baseIsNative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_baseIsNative.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport isFunction_1 from './isFunction.js';\nimport _isMasked from './_isMasked.js';\nimport isObject_1 from './isObject.js';\nimport _toSource from './_toSource.js';\nvar isFunction = isFunction_1,\n isMasked = _isMasked,\n isObject = isObject_1,\n toSource = _toSource;\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used for built-in method references. */\n\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nvar _baseIsNative = baseIsNative;\nexport default _baseIsNative;\n//# sourceMappingURL=_baseIsNative.js.map\n"],"names":["isFunction","isFunction_1","isMasked","_isMasked","isObject","isObject_1","toSource","_toSource","reRegExpChar","reIsHostCtor","funcProto","Function","prototype","objectProto","Object","funcToString","toString","hasOwnProperty","reIsNative","RegExp","call","replace","baseIsNative","value","pattern","test","_baseIsNative"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAKA,IAAIA,UAAU,GAAGC,uBAAjB;AAAA,IACIC,QAAQ,GAAGC,oBADf;AAAA,IAEIC,QAAQ,GAAGC,qBAFf;AAAA,IAGIC,QAAQ,GAAGC,oBAHf;AAIA;AACA;AACA;AACA;;AAEA,IAAIC,YAAY,GAAG,qBAAnB;AACA;;AAEA,IAAIC,YAAY,GAAG,6BAAnB;AACA;;AAEA,IAAIC,SAAS,GAAGC,QAAQ,CAACC,SAAzB;AAAA,IACIC,WAAW,GAAGC,MAAM,CAACF,SADzB;AAEA;;AAEA,IAAIG,YAAY,GAAGL,SAAS,CAACM,QAA7B;AACA;;AAEA,IAAIC,cAAc,GAAGJ,WAAW,CAACI,cAAjC;AACA;;AAEA,IAAIC,UAAU,GAAGC,MAAM,CAAC,MAAMJ,YAAY,CAACK,IAAb,CAAkBH,cAAlB,EAAkCI,OAAlC,CAA0Cb,YAA1C,EAAwD,MAAxD,EAAgEa,OAAhE,CAAwE,wDAAxE,EAAkI,OAAlI,CAAN,GAAmJ,GAApJ,CAAvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,YAAT,CAAsBC,KAAtB,EAA6B;AAC3B,MAAI,CAACnB,QAAQ,CAACmB,KAAD,CAAT,IAAoBrB,QAAQ,CAACqB,KAAD,CAAhC,EAAyC;AACvC,WAAO,KAAP;AACD;;AAED,MAAIC,OAAO,GAAGxB,UAAU,CAACuB,KAAD,CAAV,GAAoBL,UAApB,GAAiCT,YAA/C;AACA,SAAOe,OAAO,CAACC,IAAR,CAAanB,QAAQ,CAACiB,KAAD,CAArB,CAAP;AACD;;AAEE,IAACG,aAAa,GAAGJ,YAAjB;"}
|