@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -1,9 +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 "/@/components/Form/src/helper";
6
- import "/@/utils/is";
7
- import "./_baseSlice.js";
8
- import "./toString.js";
9
- import "./isArray.js";
@@ -1,162 +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 { createPlaceholderMessage } from "/@/components/Form/src/helper";
23
- import { isFunction } from "/@/utils/is";
24
- import { b as baseSlice } from "./_baseSlice.js";
25
- import { t as toString } from "./toString.js";
26
- function castSlice(array, start, end) {
27
- var length = array.length;
28
- end = end === void 0 ? length : end;
29
- return !start && end >= length ? array : baseSlice(array, start, end);
30
- }
31
- 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";
32
- var rsZWJ$1 = "\\u200d";
33
- var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
34
- function hasUnicode(string) {
35
- return reHasUnicode.test(string);
36
- }
37
- function asciiToArray(string) {
38
- return string.split("");
39
- }
40
- var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
41
- 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";
42
- 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("|") + ")";
43
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
44
- function unicodeToArray(string) {
45
- return string.match(reUnicode) || [];
46
- }
47
- function stringToArray(string) {
48
- return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
49
- }
50
- function createCaseFirst(methodName) {
51
- return function(string) {
52
- string = toString(string);
53
- var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
54
- var chr = strSymbols ? strSymbols[0] : string.charAt(0);
55
- var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
56
- return chr[methodName]() + trailing;
57
- };
58
- }
59
- var upperFirst = createCaseFirst("toUpperCase");
60
- var upperFirst$1 = upperFirst;
61
- var _sfc_main = defineComponent({
62
- name: "OnlineSuperQueryValComponent",
63
- inheritAttrs: false,
64
- props: {
65
- schema: {
66
- type: Object,
67
- default: () => ({})
68
- },
69
- formModel: {
70
- type: Object,
71
- default: () => ({})
72
- },
73
- setFormModel: {
74
- type: Function,
75
- default: null
76
- }
77
- },
78
- emits: ["submit"],
79
- setup(props, {
80
- emit
81
- }) {
82
- const getComponentsProps = computed(() => {
83
- var _a;
84
- const {
85
- schema,
86
- formModel
87
- } = props;
88
- let {
89
- componentProps = {}
90
- } = schema;
91
- if (isFunction(componentProps)) {
92
- componentProps = (_a = componentProps({
93
- schema,
94
- formModel
95
- })) != null ? _a : {};
96
- }
97
- return componentProps;
98
- });
99
- const getValues = computed(() => {
100
- const {
101
- formModel,
102
- schema
103
- } = props;
104
- let obj = {
105
- field: schema.field,
106
- model: formModel,
107
- values: __spreadValues({}, formModel),
108
- schema
109
- };
110
- return obj;
111
- });
112
- function renderComponent() {
113
- var _a;
114
- const {
115
- component,
116
- changeEvent = "change",
117
- valueField
118
- } = props.schema;
119
- const field = "val";
120
- const isCheck = component && ["Switch", "Checkbox"].includes(component);
121
- const eventKey = `on${upperFirst$1(changeEvent)}`;
122
- const on = {
123
- [eventKey]: (...args) => {
124
- const [e] = args;
125
- if (propsData[eventKey]) {
126
- propsData[eventKey](...args);
127
- }
128
- const target = e ? e.target : null;
129
- const value = target ? isCheck ? target.checked : target.value : e;
130
- props.setFormModel(field, value);
131
- }
132
- };
133
- const Comp = componentMap.get(component);
134
- const propsData = __spreadValues({
135
- allowClear: true,
136
- getPopupContainer: (trigger) => trigger.parentNode
137
- }, unref(getComponentsProps));
138
- const isCreatePlaceholder = !propsData.disabled;
139
- if (isCreatePlaceholder && component !== "RangePicker" && component) {
140
- propsData.placeholder = ((_a = unref(getComponentsProps)) == null ? void 0 : _a.placeholder) || createPlaceholderMessage(component) + props.schema.label;
141
- }
142
- propsData.codeField = field;
143
- propsData.formValues = unref(getValues);
144
- const bindValue = {
145
- [valueField || (isCheck ? "checked" : "value")]: props.formModel[field]
146
- };
147
- const compAttr = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, propsData), on), bindValue), {
148
- allowClear: true,
149
- onPressEnter() {
150
- emit("submit");
151
- }
152
- });
153
- return createVNode(Comp, compAttr, null);
154
- }
155
- return () => {
156
- return createVNode("div", {
157
- "style": "width:100%"
158
- }, [renderComponent()]);
159
- };
160
- }
161
- });
162
- 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 };