@jeecg/online 3.5.3-beta3 → 3.6.0-beta

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.
Files changed (163) hide show
  1. package/AuthButtonConfig-b6a674fa.mjs +125 -0
  2. package/AuthButtonTree-09e57bc4.mjs +156 -0
  3. package/AuthDataConfig-6e7e61ec.mjs +212 -0
  4. package/AuthDataTree-e83286c5.mjs +139 -0
  5. package/AuthFieldConfig-f1ec2708.mjs +139 -0
  6. package/AuthFieldTree-bb72e21f.mjs +232 -0
  7. package/AuthManagerDrawer-28a2d108.mjs +114 -0
  8. package/AuthSetterModal-2990d553.mjs +261 -0
  9. package/CgformCopyList-36a4cbf0.mjs +246 -0
  10. package/CgformModal-7399a5ac.mjs +611 -0
  11. package/CgreportModal-2eb9c9e1.mjs +13 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
  13. package/CheckDictTable-3a8a54b3.mjs +211 -0
  14. package/CodeFileListModal-72f0d3bb.mjs +158 -0
  15. package/CodeFileViewModal-9eb88c47.mjs +244 -0
  16. package/CodeGeneratorModal-a89958f5.mjs +233 -0
  17. package/CustomButtonList-c44aec5a.mjs +363 -0
  18. package/DBAttributeTable-7d285e8d.mjs +473 -0
  19. package/DbToOnlineModal-d23cbeb1.mjs +160 -0
  20. package/DetailForm-2901d215.mjs +461 -0
  21. package/EnhanceJavaModal-153899a9.mjs +264 -0
  22. package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
  23. package/EnhanceJsModal-c2fb75b8.mjs +311 -0
  24. package/EnhanceSqlModal-965e9b0a.mjs +268 -0
  25. package/ExtendConfigModal-8f08466f.mjs +111 -0
  26. package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
  27. package/FileSelectModal-432d4521.mjs +103 -0
  28. package/ForeignKeyTable-faab7ccf.mjs +69 -0
  29. package/IndexTable-0a2d3718.mjs +89 -0
  30. package/JModalTip-e1938b49.mjs +46 -0
  31. package/JOnlineSearchSelect-7e908492.mjs +95 -0
  32. package/LeftDepart-54f245b3.mjs +82 -0
  33. package/LeftRole-c138f892.mjs +86 -0
  34. package/LeftUser-9c812f8a.mjs +105 -0
  35. package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
  36. package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
  37. package/LinkTableListPiece-7f793b08.mjs +34 -0
  38. package/ModalFormDemo-65685b0e.mjs +78 -0
  39. package/OnlCgformErpList-52c87ed3.mjs +449 -0
  40. package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
  41. package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
  42. package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
  43. package/OnlCgformTabList-15516315.mjs +390 -0
  44. package/OnlineAutoList-63a0224f.mjs +474 -0
  45. package/OnlineAutoModal-ffe19c3f.mjs +206 -0
  46. package/OnlineAutoTreeList-317c7105.mjs +495 -0
  47. package/OnlineCustomModal-3939ce78.mjs +227 -0
  48. package/OnlineDetailModal-bfb1375f.mjs +177 -0
  49. package/OnlineForm-069f6092.mjs +749 -0
  50. package/OnlineFormDetail-ad5735fb.mjs +296 -0
  51. package/OnlineQueryForm-0771c80f.mjs +385 -0
  52. package/OnlineSearchFormItem-0db5834f.mjs +348 -0
  53. package/OnlineSelectCascade-a05c30f4.mjs +159 -0
  54. package/OnlineSubFormDetail-583d01eb.mjs +142 -0
  55. package/OnlineTabAutoModal-747e071d.mjs +253 -0
  56. package/OnlineTabDetailModal-887f0174.mjs +222 -0
  57. package/OnlineTabForm-b1dcd4b4.mjs +765 -0
  58. package/OnlineTabFormDetail-8e494a96.mjs +323 -0
  59. package/PageAttributeTable-5966b201.mjs +404 -0
  60. package/ProcessOnlineForm-4382bea7.mjs +177 -0
  61. package/QueryTable-6e8053ad.mjs +115 -0
  62. package/README.md +2 -1
  63. package/SuperQuery-78db6998.mjs +841 -0
  64. package/SuperQueryValComponent-471110b5.mjs +8 -0
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  66. package/auth.api-d3a6c4b3.mjs +39 -0
  67. package/auth.data-8be5c9e3.mjs +141 -0
  68. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  69. package/constant-754f1a9d.mjs +9 -0
  70. package/enhance.api-138e6826.mjs +104 -0
  71. package/enhance.data-efc7e155.mjs +175 -0
  72. package/index-0a93652b.mjs +237 -0
  73. package/index-7e9a23f2.mjs +1494 -0
  74. package/index-b70302f2.mjs +56 -0
  75. package/main.index.js +7 -1
  76. package/package.json +1 -1
  77. package/style.css +1 -1
  78. package/useCgformList-0c603af1.mjs +424 -0
  79. package/useCustomHook-acb00837.mjs +53 -0
  80. package/useExtendComponent-aa1cdfc8.mjs +3917 -0
  81. package/useListButton-0f18bf6a.mjs +671 -0
  82. package/useOnlinePopEvent-687070b7.mjs +19 -0
  83. package/useOnlineTest-e4bd8be3.mjs +42 -0
  84. package/useSchemas-43429d80.mjs +685 -0
  85. package/useTableSync-774c3774.mjs +87 -0
  86. package/AuthButtonConfig.js +0 -147
  87. package/AuthButtonTree.js +0 -183
  88. package/AuthDataConfig.js +0 -246
  89. package/AuthDataTree.js +0 -160
  90. package/AuthFieldConfig.js +0 -170
  91. package/AuthFieldTree.js +0 -281
  92. package/AuthManagerDrawer.js +0 -125
  93. package/AuthSetterModal.js +0 -316
  94. package/CgformCopyList.js +0 -266
  95. package/CgformModal.js +0 -780
  96. package/CgreportModal.js +0 -667
  97. package/CheckDictTable.js +0 -242
  98. package/CodeFileListModal.js +0 -175
  99. package/CodeFileViewModal.js +0 -325
  100. package/CodeGeneratorModal.js +0 -297
  101. package/CustomButtonList.js +0 -410
  102. package/DBAttributeTable.js +0 -526
  103. package/DbToOnlineModal.js +0 -192
  104. package/DetailForm.js +0 -608
  105. package/EnhanceJavaModal.js +0 -298
  106. package/EnhanceJsHistory.js +0 -229
  107. package/EnhanceJsModal.js +0 -293
  108. package/EnhanceSqlModal.js +0 -299
  109. package/ExtendConfigModal.js +0 -151
  110. package/FieldExtendJsonModal.js +0 -283
  111. package/FileSelectModal.js +0 -102
  112. package/ForeignKeyTable.js +0 -79
  113. package/IndexTable.js +0 -97
  114. package/JModalTip.js +0 -54
  115. package/JOnlineSearchSelect.js +0 -115
  116. package/LICENSE +0 -9
  117. package/LeftDepart.js +0 -96
  118. package/LeftRole.js +0 -98
  119. package/LeftUser.js +0 -117
  120. package/LinkTableConfigModal.js +0 -289
  121. package/LinkTableFieldConfigModal.js +0 -218
  122. package/LinkTableListPiece.js +0 -36
  123. package/ModalFormDemo.js +0 -85
  124. package/OnlineAutoList.js +0 -523
  125. package/OnlineAutoModal.js +0 -226
  126. package/OnlineAutoTreeList.js +0 -552
  127. package/OnlineCustomModal.js +0 -286
  128. package/OnlineDetailModal.js +0 -190
  129. package/OnlineForm.js +0 -1016
  130. package/OnlineFormDetail.js +0 -347
  131. package/OnlineQueryForm.js +0 -484
  132. package/OnlineSearchFormItem.js +0 -436
  133. package/OnlineSelectCascade.js +0 -228
  134. package/OnlineSubFormDetail.js +0 -166
  135. package/PageAttributeTable.js +0 -486
  136. package/ProcessOnlineForm.js +0 -208
  137. package/QueryTable.js +0 -129
  138. package/SuperQuery.js +0 -1020
  139. package/SuperQueryValComponent.js +0 -8
  140. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  141. package/_arrayPush.js +0 -278
  142. package/_baseClone.js +0 -471
  143. package/_baseSlice.js +0 -18
  144. package/_commonjsHelpers.js +0 -5
  145. package/_flatRest.js +0 -174
  146. package/auth.api.js +0 -43
  147. package/auth.data.js +0 -142
  148. package/clipboard.js +0 -565
  149. package/enhance.api.js +0 -129
  150. package/enhance.data.js +0 -196
  151. package/index.js +0 -87
  152. package/index2.js +0 -340
  153. package/index3.js +0 -264
  154. package/isArray.js +0 -47
  155. package/omit.js +0 -60
  156. package/pick.js +0 -68
  157. package/toString.js +0 -31
  158. package/useCgformList.js +0 -470
  159. package/useExtendComponent.js +0 -5205
  160. package/useListButton.js +0 -923
  161. package/useOnlineTest.js +0 -44
  162. package/useSchemas.js +0 -653
  163. package/useTableSync.js +0 -117
@@ -1,8 +0,0 @@
1
- import { _ as _sfc_main } from "./SuperQueryValComponent.vue_vue_type_script_lang.js";
2
- export { _ as default } from "./SuperQueryValComponent.vue_vue_type_script_lang.js";
3
- import "vue";
4
- import "/@/components/Form/src/componentMap";
5
- import "/@/utils/is";
6
- import "./_baseSlice.js";
7
- import "./toString.js";
8
- import "./isArray.js";
@@ -1,168 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, createVNode, unref } from "vue";
21
- import { componentMap } from "/@/components/Form/src/componentMap";
22
- import { isFunction } from "/@/utils/is";
23
- import { b as baseSlice } from "./_baseSlice.js";
24
- import { t as toString } from "./toString.js";
25
- function castSlice(array, start, end) {
26
- var length = array.length;
27
- end = end === void 0 ? length : end;
28
- return !start && end >= length ? array : baseSlice(array, start, end);
29
- }
30
- var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
31
- var rsZWJ$1 = "\\u200d";
32
- var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
33
- function hasUnicode(string) {
34
- return reHasUnicode.test(string);
35
- }
36
- function asciiToArray(string) {
37
- return string.split("");
38
- }
39
- var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
40
- var rsAstral = "[" + rsAstralRange + "]", rsCombo = "[" + rsComboRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ = "\\u200d";
41
- var reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
42
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
43
- function unicodeToArray(string) {
44
- return string.match(reUnicode) || [];
45
- }
46
- function stringToArray(string) {
47
- return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
48
- }
49
- function createCaseFirst(methodName) {
50
- return function(string) {
51
- string = toString(string);
52
- var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
53
- var chr = strSymbols ? strSymbols[0] : string.charAt(0);
54
- var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
55
- return chr[methodName]() + trailing;
56
- };
57
- }
58
- var upperFirst = createCaseFirst("toUpperCase");
59
- var upperFirst$1 = upperFirst;
60
- var _sfc_main = defineComponent({
61
- name: "OnlineSuperQueryValComponent",
62
- inheritAttrs: false,
63
- props: {
64
- schema: {
65
- type: Object,
66
- default: () => ({})
67
- },
68
- formModel: {
69
- type: Object,
70
- default: () => ({})
71
- },
72
- setFormModel: {
73
- type: Function,
74
- default: null
75
- }
76
- },
77
- emits: ["submit"],
78
- setup(props, {
79
- emit
80
- }) {
81
- const getComponentsProps = computed(() => {
82
- var _a;
83
- const {
84
- schema,
85
- formModel
86
- } = props;
87
- let {
88
- componentProps = {}
89
- } = schema;
90
- if (isFunction(componentProps)) {
91
- componentProps = (_a = componentProps({
92
- schema,
93
- formModel
94
- })) != null ? _a : {};
95
- }
96
- return componentProps;
97
- });
98
- const getValues = computed(() => {
99
- const {
100
- formModel,
101
- schema
102
- } = props;
103
- let obj = {
104
- field: schema.field,
105
- model: formModel,
106
- values: __spreadValues({}, formModel),
107
- schema
108
- };
109
- return obj;
110
- });
111
- function renderComponent() {
112
- var _a;
113
- const {
114
- component,
115
- changeEvent = "change",
116
- valueField
117
- } = props.schema;
118
- const field = "val";
119
- const isCheck = component && ["Switch", "Checkbox"].includes(component);
120
- const eventKey = `on${upperFirst$1(changeEvent)}`;
121
- const on = {
122
- [eventKey]: (...args) => {
123
- const [e] = args;
124
- if (propsData[eventKey]) {
125
- propsData[eventKey](...args);
126
- }
127
- const target = e ? e.target : null;
128
- const value = target ? isCheck ? target.checked : target.value : e;
129
- props.setFormModel(field, value);
130
- }
131
- };
132
- const Comp = componentMap.get(component);
133
- const propsData = __spreadValues({
134
- allowClear: true,
135
- getPopupContainer: (trigger) => trigger.parentNode
136
- }, unref(getComponentsProps));
137
- const isCreatePlaceholder = !propsData.disabled;
138
- if (isCreatePlaceholder && component !== "RangePicker" && component) {
139
- propsData.placeholder = ((_a = unref(getComponentsProps)) == null ? void 0 : _a.placeholder) || createPlaceholderMessage(component) + props.schema.label;
140
- }
141
- propsData.codeField = field;
142
- propsData.formValues = unref(getValues);
143
- const bindValue = {
144
- [valueField || (isCheck ? "checked" : "value")]: props.formModel[field]
145
- };
146
- const compAttr = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, propsData), on), bindValue), {
147
- allowClear: true,
148
- onPressEnter() {
149
- emit("submit");
150
- }
151
- });
152
- return createVNode(Comp, compAttr, null);
153
- }
154
- return () => {
155
- return createVNode("div", {
156
- "style": "width:100%"
157
- }, [renderComponent()]);
158
- };
159
- function createPlaceholderMessage(component) {
160
- if (component.includes("Input") || component.includes("Complete")) {
161
- return "\u8BF7\u8F93\u5165";
162
- } else {
163
- return "\u8BF7\u9009\u62E9";
164
- }
165
- }
166
- }
167
- });
168
- export { _sfc_main as _ };
package/_arrayPush.js DELETED
@@ -1,278 +0,0 @@
1
- import { b as baseGetTag, r as root, i as isObjectLike } from "./isArray.js";
2
- function isObject(value) {
3
- var type = typeof value;
4
- return value != null && (type == "object" || type == "function");
5
- }
6
- var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
7
- function isFunction(value) {
8
- if (!isObject(value)) {
9
- return false;
10
- }
11
- var tag = baseGetTag(value);
12
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
13
- }
14
- var coreJsData = root["__core-js_shared__"];
15
- var coreJsData$1 = coreJsData;
16
- var maskSrcKey = function() {
17
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
18
- return uid ? "Symbol(src)_1." + uid : "";
19
- }();
20
- function isMasked(func) {
21
- return !!maskSrcKey && maskSrcKey in func;
22
- }
23
- var funcProto$1 = Function.prototype;
24
- var funcToString$1 = funcProto$1.toString;
25
- function toSource(func) {
26
- if (func != null) {
27
- try {
28
- return funcToString$1.call(func);
29
- } catch (e) {
30
- }
31
- try {
32
- return func + "";
33
- } catch (e) {
34
- }
35
- }
36
- return "";
37
- }
38
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
39
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
40
- var funcProto = Function.prototype, objectProto$4 = Object.prototype;
41
- var funcToString = funcProto.toString;
42
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
43
- var reIsNative = RegExp(
44
- "^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
45
- );
46
- function baseIsNative(value) {
47
- if (!isObject(value) || isMasked(value)) {
48
- return false;
49
- }
50
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
51
- return pattern.test(toSource(value));
52
- }
53
- function getValue(object, key) {
54
- return object == null ? void 0 : object[key];
55
- }
56
- function getNative(object, key) {
57
- var value = getValue(object, key);
58
- return baseIsNative(value) ? value : void 0;
59
- }
60
- var defineProperty = function() {
61
- try {
62
- var func = getNative(Object, "defineProperty");
63
- func({}, "", {});
64
- return func;
65
- } catch (e) {
66
- }
67
- }();
68
- var defineProperty$1 = defineProperty;
69
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
70
- var reIsUint = /^(?:0|[1-9]\d*)$/;
71
- function isIndex(value, length) {
72
- var type = typeof value;
73
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
74
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
75
- }
76
- function baseAssignValue(object, key, value) {
77
- if (key == "__proto__" && defineProperty$1) {
78
- defineProperty$1(object, key, {
79
- "configurable": true,
80
- "enumerable": true,
81
- "value": value,
82
- "writable": true
83
- });
84
- } else {
85
- object[key] = value;
86
- }
87
- }
88
- function eq(value, other) {
89
- return value === other || value !== value && other !== other;
90
- }
91
- var objectProto$3 = Object.prototype;
92
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
93
- function assignValue(object, key, value) {
94
- var objValue = object[key];
95
- if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
96
- baseAssignValue(object, key, value);
97
- }
98
- }
99
- var MAX_SAFE_INTEGER = 9007199254740991;
100
- function isLength(value) {
101
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
102
- }
103
- var argsTag = "[object Arguments]";
104
- function baseIsArguments(value) {
105
- return isObjectLike(value) && baseGetTag(value) == argsTag;
106
- }
107
- var objectProto$2 = Object.prototype;
108
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
109
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
110
- var isArguments = baseIsArguments(function() {
111
- return arguments;
112
- }()) ? baseIsArguments : function(value) {
113
- return isObjectLike(value) && hasOwnProperty$2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
114
- };
115
- var isArguments$1 = isArguments;
116
- var nativeCreate = getNative(Object, "create");
117
- var nativeCreate$1 = nativeCreate;
118
- function hashClear() {
119
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
120
- this.size = 0;
121
- }
122
- function hashDelete(key) {
123
- var result = this.has(key) && delete this.__data__[key];
124
- this.size -= result ? 1 : 0;
125
- return result;
126
- }
127
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
128
- var objectProto$1 = Object.prototype;
129
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
130
- function hashGet(key) {
131
- var data = this.__data__;
132
- if (nativeCreate$1) {
133
- var result = data[key];
134
- return result === HASH_UNDEFINED$1 ? void 0 : result;
135
- }
136
- return hasOwnProperty$1.call(data, key) ? data[key] : void 0;
137
- }
138
- var objectProto = Object.prototype;
139
- var hasOwnProperty = objectProto.hasOwnProperty;
140
- function hashHas(key) {
141
- var data = this.__data__;
142
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty.call(data, key);
143
- }
144
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
145
- function hashSet(key, value) {
146
- var data = this.__data__;
147
- this.size += this.has(key) ? 0 : 1;
148
- data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED : value;
149
- return this;
150
- }
151
- function Hash(entries) {
152
- var index = -1, length = entries == null ? 0 : entries.length;
153
- this.clear();
154
- while (++index < length) {
155
- var entry = entries[index];
156
- this.set(entry[0], entry[1]);
157
- }
158
- }
159
- Hash.prototype.clear = hashClear;
160
- Hash.prototype["delete"] = hashDelete;
161
- Hash.prototype.get = hashGet;
162
- Hash.prototype.has = hashHas;
163
- Hash.prototype.set = hashSet;
164
- function listCacheClear() {
165
- this.__data__ = [];
166
- this.size = 0;
167
- }
168
- function assocIndexOf(array, key) {
169
- var length = array.length;
170
- while (length--) {
171
- if (eq(array[length][0], key)) {
172
- return length;
173
- }
174
- }
175
- return -1;
176
- }
177
- var arrayProto = Array.prototype;
178
- var splice = arrayProto.splice;
179
- function listCacheDelete(key) {
180
- var data = this.__data__, index = assocIndexOf(data, key);
181
- if (index < 0) {
182
- return false;
183
- }
184
- var lastIndex = data.length - 1;
185
- if (index == lastIndex) {
186
- data.pop();
187
- } else {
188
- splice.call(data, index, 1);
189
- }
190
- --this.size;
191
- return true;
192
- }
193
- function listCacheGet(key) {
194
- var data = this.__data__, index = assocIndexOf(data, key);
195
- return index < 0 ? void 0 : data[index][1];
196
- }
197
- function listCacheHas(key) {
198
- return assocIndexOf(this.__data__, key) > -1;
199
- }
200
- function listCacheSet(key, value) {
201
- var data = this.__data__, index = assocIndexOf(data, key);
202
- if (index < 0) {
203
- ++this.size;
204
- data.push([key, value]);
205
- } else {
206
- data[index][1] = value;
207
- }
208
- return this;
209
- }
210
- function ListCache(entries) {
211
- var index = -1, length = entries == null ? 0 : entries.length;
212
- this.clear();
213
- while (++index < length) {
214
- var entry = entries[index];
215
- this.set(entry[0], entry[1]);
216
- }
217
- }
218
- ListCache.prototype.clear = listCacheClear;
219
- ListCache.prototype["delete"] = listCacheDelete;
220
- ListCache.prototype.get = listCacheGet;
221
- ListCache.prototype.has = listCacheHas;
222
- ListCache.prototype.set = listCacheSet;
223
- var Map = getNative(root, "Map");
224
- var Map$1 = Map;
225
- function mapCacheClear() {
226
- this.size = 0;
227
- this.__data__ = {
228
- "hash": new Hash(),
229
- "map": new (Map$1 || ListCache)(),
230
- "string": new Hash()
231
- };
232
- }
233
- function isKeyable(value) {
234
- var type = typeof value;
235
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
236
- }
237
- function getMapData(map, key) {
238
- var data = map.__data__;
239
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
240
- }
241
- function mapCacheDelete(key) {
242
- var result = getMapData(this, key)["delete"](key);
243
- this.size -= result ? 1 : 0;
244
- return result;
245
- }
246
- function mapCacheGet(key) {
247
- return getMapData(this, key).get(key);
248
- }
249
- function mapCacheHas(key) {
250
- return getMapData(this, key).has(key);
251
- }
252
- function mapCacheSet(key, value) {
253
- var data = getMapData(this, key), size = data.size;
254
- data.set(key, value);
255
- this.size += data.size == size ? 0 : 1;
256
- return this;
257
- }
258
- function MapCache(entries) {
259
- var index = -1, length = entries == null ? 0 : entries.length;
260
- this.clear();
261
- while (++index < length) {
262
- var entry = entries[index];
263
- this.set(entry[0], entry[1]);
264
- }
265
- }
266
- MapCache.prototype.clear = mapCacheClear;
267
- MapCache.prototype["delete"] = mapCacheDelete;
268
- MapCache.prototype.get = mapCacheGet;
269
- MapCache.prototype.has = mapCacheHas;
270
- MapCache.prototype.set = mapCacheSet;
271
- function arrayPush(array, values) {
272
- var index = -1, length = values.length, offset = array.length;
273
- while (++index < length) {
274
- array[offset + index] = values[index];
275
- }
276
- return array;
277
- }
278
- export { ListCache as L, MapCache as M, isIndex as a, isArguments$1 as b, isObject as c, assignValue as d, defineProperty$1 as e, arrayPush as f, getNative as g, baseAssignValue as h, isLength as i, isFunction as j, Map$1 as k, toSource as t };