@contena/meteor-component-library 5.5.0 → 5.6.0
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/NOTICE +24 -3
- package/dist/{useRepository-c69e2597.js → Criteria-86968a69.js} +111 -258
- package/dist/{useRepository-dfff5b4a.mjs → Criteria-dda62b10.mjs} +114 -261
- package/dist/{channel-eb1529aa.mjs → channel-c0a7f238.mjs} +65 -25
- package/dist/{channel-782f8c3b.js → channel-c7fd2abb.js} +81 -41
- package/dist/common/MtBaseField.js +1 -1
- package/dist/common/MtCard.d.ts +5 -4
- package/dist/common/MtCard.js +17 -11
- package/dist/common/MtCheckbox.js +1 -1
- package/dist/common/MtColorpicker.js +1 -1
- package/dist/common/MtContextButton.js +1 -1
- package/dist/common/MtContextMenuItem.js +1 -1
- package/dist/common/MtDataTable.d.ts +20 -18
- package/dist/common/MtDataTable.js +137 -130
- package/dist/common/MtDataTableFilter.js +4 -4
- package/dist/common/MtDataTableSettings.js +1 -1
- package/dist/common/MtEntityDataTable.js +4 -3
- package/dist/common/MtEntitySelect.js +4 -3
- package/dist/common/MtGrantPermissionServiceBanner.d.ts +2 -0
- package/dist/common/MtGrantPermissionServiceBanner.js +155 -0
- package/dist/common/MtModal.js +2 -2
- package/dist/common/MtNumberField.js +1 -1
- package/dist/common/MtPagination.js +2 -2
- package/dist/common/MtPasswordField.js +1 -1
- package/dist/common/MtPopover.js +1 -1
- package/dist/common/MtPopoverItem.js +1 -1
- package/dist/common/MtPopoverItemResult.js +1 -1
- package/dist/common/MtSegmentedControl.js +1 -1
- package/dist/common/MtSelect.js +1 -1
- package/dist/common/MtSelectBase.js +1 -1
- package/dist/common/MtSlider.js +1 -1
- package/dist/common/MtTabs.js +1 -1
- package/dist/common/MtTextEditor.d.ts +1 -1
- package/dist/common/MtTextEditor.js +1 -1
- package/dist/common/MtTextEditorToolbar.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonColor.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonLink.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonTable.js +1 -1
- package/dist/common/MtTextField.js +1 -1
- package/dist/common/MtThemeSelect.js +2 -2
- package/dist/common/MtUnitField.js +1 -1
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +10 -5
- package/dist/contena-logo.svg +6 -0
- package/dist/esm/MtBaseField.js +1 -1
- package/dist/esm/MtCard.d.ts +5 -4
- package/dist/esm/MtCard.js +17 -11
- package/dist/esm/MtCheckbox.js +1 -1
- package/dist/esm/MtColorpicker.js +1 -1
- package/dist/esm/MtContextButton.js +1 -1
- package/dist/esm/MtContextMenuItem.js +1 -1
- package/dist/esm/MtDataTable.d.ts +20 -18
- package/dist/esm/MtDataTable.js +138 -131
- package/dist/esm/MtDataTableFilter.js +4 -4
- package/dist/esm/MtDataTableSettings.js +1 -1
- package/dist/esm/MtEntityDataTable.js +4 -3
- package/dist/esm/MtEntitySelect.js +4 -3
- package/dist/esm/MtGrantPermissionServiceBanner.d.ts +2 -0
- package/dist/esm/MtGrantPermissionServiceBanner.js +156 -0
- package/dist/esm/MtModal.js +2 -2
- package/dist/esm/MtNumberField.js +1 -1
- package/dist/esm/MtPagination.js +2 -2
- package/dist/esm/MtPasswordField.js +1 -1
- package/dist/esm/MtPopover.js +1 -1
- package/dist/esm/MtPopoverItem.js +1 -1
- package/dist/esm/MtPopoverItemResult.js +1 -1
- package/dist/esm/MtSegmentedControl.js +1 -1
- package/dist/esm/MtSelect.js +1 -1
- package/dist/esm/MtSelectBase.js +1 -1
- package/dist/esm/MtSlider.js +1 -1
- package/dist/esm/MtTabs.js +1 -1
- package/dist/esm/MtTextEditor.d.ts +1 -1
- package/dist/esm/MtTextEditor.js +1 -1
- package/dist/esm/MtTextEditorToolbar.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonColor.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonLink.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonTable.js +1 -1
- package/dist/esm/MtTextField.js +1 -1
- package/dist/esm/MtThemeSelect.js +2 -2
- package/dist/esm/MtUnitField.js +1 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +54 -49
- package/dist/favicon.ico +0 -0
- package/dist/index-26e65048.mjs +198 -0
- package/dist/{index-f60dc18c.js → index-2cb63874.js} +4 -195
- package/dist/{index-8ddee025.mjs → index-ddce4e37.mjs} +4 -195
- package/dist/index-f8d7f486.js +197 -0
- package/dist/index.css +2 -2
- package/dist/{mt-base-field-32e14998.js → mt-base-field-b1264b8e.js} +1 -0
- package/dist/{mt-base-field-3b5538c6.mjs → mt-base-field-ddfd1f81.mjs} +2 -1
- package/dist/mt-card.css +37 -37
- package/dist/mt-data-table-filter.css +12 -12
- package/dist/mt-data-table.css +0 -10
- package/dist/{mt-entity-data-table.vue_vue_type_style_index_0_lang-40d1a210.mjs → mt-entity-data-table.vue_vue_type_style_index_0_lang-20da6e77.mjs} +3 -2
- package/dist/{mt-entity-data-table.vue_vue_type_style_index_0_lang-5acc37b3.js → mt-entity-data-table.vue_vue_type_style_index_0_lang-84494335.js} +6 -5
- package/dist/{mt-entity-select.vue_vue_type_script_setup_true_lang-50315e8d.js → mt-entity-select.vue_vue_type_script_setup_true_lang-2cdffea0.js} +5 -4
- package/dist/{mt-entity-select.vue_vue_type_script_setup_true_lang-3733f9fc.mjs → mt-entity-select.vue_vue_type_script_setup_true_lang-f3c35d00.mjs} +2 -1
- package/dist/mt-grant-permission-service-banner.css +88 -0
- package/dist/mt-modal.css +31 -29
- package/dist/mt-pagination.css +15 -15
- package/dist/mt-popover-item.css +0 -5
- package/dist/{mt-theme-select.vue_vue_type_script_setup_true_lang-9e44465e.js → mt-theme-select.vue_vue_type_script_setup_true_lang-42a2e3c8.js} +6 -5
- package/dist/{mt-theme-select.vue_vue_type_script_setup_true_lang-cc325e63.mjs → mt-theme-select.vue_vue_type_script_setup_true_lang-6ecf0bcb.mjs} +6 -5
- package/dist/{repository-30409275.js → repository-9c56cf7b.js} +2 -3
- package/dist/{repository-fd60b763.mjs → repository-e7884115.mjs} +2 -3
- package/dist/useRepository-28dfccf5.mjs +149 -0
- package/dist/useRepository-6804d3b6.js +148 -0
- package/package.json +3 -4
- package/THIRD-PARTY-LICENSES/UPSTREAM-METEOR-MIT.txt +0 -21
package/NOTICE
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
Contena Meteor
|
|
2
2
|
Copyright 2026 Contena
|
|
3
3
|
|
|
4
|
-
This distribution includes code
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
This distribution includes upstream code licensed under the MIT License.
|
|
5
|
+
The required upstream copyright and permission notice follows.
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2022-2023 Shopware
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
@@ -1,82 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
this.__data__ = [];
|
|
5
|
-
this.size = 0;
|
|
6
|
-
}
|
|
7
|
-
function eq(value, other) {
|
|
8
|
-
return value === other || value !== value && other !== other;
|
|
9
|
-
}
|
|
10
|
-
function assocIndexOf(array, key) {
|
|
11
|
-
var length = array.length;
|
|
12
|
-
while (length--) {
|
|
13
|
-
if (eq(array[length][0], key)) {
|
|
14
|
-
return length;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return -1;
|
|
18
|
-
}
|
|
19
|
-
var arrayProto = Array.prototype;
|
|
20
|
-
var splice = arrayProto.splice;
|
|
21
|
-
function listCacheDelete(key) {
|
|
22
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
23
|
-
if (index < 0) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
var lastIndex = data.length - 1;
|
|
27
|
-
if (index == lastIndex) {
|
|
28
|
-
data.pop();
|
|
29
|
-
} else {
|
|
30
|
-
splice.call(data, index, 1);
|
|
31
|
-
}
|
|
32
|
-
--this.size;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function listCacheGet(key) {
|
|
36
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
37
|
-
return index < 0 ? void 0 : data[index][1];
|
|
38
|
-
}
|
|
39
|
-
function listCacheHas(key) {
|
|
40
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
41
|
-
}
|
|
42
|
-
function listCacheSet(key, value) {
|
|
43
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
44
|
-
if (index < 0) {
|
|
45
|
-
++this.size;
|
|
46
|
-
data.push([key, value]);
|
|
47
|
-
} else {
|
|
48
|
-
data[index][1] = value;
|
|
49
|
-
}
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
function ListCache(entries) {
|
|
53
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
54
|
-
this.clear();
|
|
55
|
-
while (++index < length) {
|
|
56
|
-
var entry = entries[index];
|
|
57
|
-
this.set(entry[0], entry[1]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
ListCache.prototype.clear = listCacheClear;
|
|
61
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
62
|
-
ListCache.prototype.get = listCacheGet;
|
|
63
|
-
ListCache.prototype.has = listCacheHas;
|
|
64
|
-
ListCache.prototype.set = listCacheSet;
|
|
65
|
-
function stackClear() {
|
|
66
|
-
this.__data__ = new ListCache();
|
|
67
|
-
this.size = 0;
|
|
68
|
-
}
|
|
69
|
-
function stackDelete(key) {
|
|
70
|
-
var data = this.__data__, result = data["delete"](key);
|
|
71
|
-
this.size = data.size;
|
|
72
|
-
return result;
|
|
73
|
-
}
|
|
74
|
-
function stackGet(key) {
|
|
75
|
-
return this.__data__.get(key);
|
|
76
|
-
}
|
|
77
|
-
function stackHas(key) {
|
|
78
|
-
return this.__data__.has(key);
|
|
79
|
-
}
|
|
2
|
+
var isArray = Array.isArray;
|
|
3
|
+
const isArray$1 = isArray;
|
|
80
4
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
81
5
|
const freeGlobal$1 = freeGlobal;
|
|
82
6
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -118,6 +42,9 @@ function baseGetTag(value) {
|
|
|
118
42
|
}
|
|
119
43
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
120
44
|
}
|
|
45
|
+
function isObjectLike(value) {
|
|
46
|
+
return value != null && typeof value == "object";
|
|
47
|
+
}
|
|
121
48
|
function isObject(value) {
|
|
122
49
|
var type = typeof value;
|
|
123
50
|
return value != null && (type == "object" || type == "function");
|
|
@@ -176,8 +103,6 @@ function getNative(object, key) {
|
|
|
176
103
|
var value = getValue(object, key);
|
|
177
104
|
return baseIsNative(value) ? value : void 0;
|
|
178
105
|
}
|
|
179
|
-
var Map = getNative(root$1, "Map");
|
|
180
|
-
const Map$1 = Map;
|
|
181
106
|
var nativeCreate = getNative(Object, "create");
|
|
182
107
|
const nativeCreate$1 = nativeCreate;
|
|
183
108
|
function hashClear() {
|
|
@@ -226,6 +151,70 @@ Hash.prototype["delete"] = hashDelete;
|
|
|
226
151
|
Hash.prototype.get = hashGet;
|
|
227
152
|
Hash.prototype.has = hashHas;
|
|
228
153
|
Hash.prototype.set = hashSet;
|
|
154
|
+
function listCacheClear() {
|
|
155
|
+
this.__data__ = [];
|
|
156
|
+
this.size = 0;
|
|
157
|
+
}
|
|
158
|
+
function eq(value, other) {
|
|
159
|
+
return value === other || value !== value && other !== other;
|
|
160
|
+
}
|
|
161
|
+
function assocIndexOf(array, key) {
|
|
162
|
+
var length = array.length;
|
|
163
|
+
while (length--) {
|
|
164
|
+
if (eq(array[length][0], key)) {
|
|
165
|
+
return length;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return -1;
|
|
169
|
+
}
|
|
170
|
+
var arrayProto = Array.prototype;
|
|
171
|
+
var splice = arrayProto.splice;
|
|
172
|
+
function listCacheDelete(key) {
|
|
173
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
174
|
+
if (index < 0) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
var lastIndex = data.length - 1;
|
|
178
|
+
if (index == lastIndex) {
|
|
179
|
+
data.pop();
|
|
180
|
+
} else {
|
|
181
|
+
splice.call(data, index, 1);
|
|
182
|
+
}
|
|
183
|
+
--this.size;
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
function listCacheGet(key) {
|
|
187
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
188
|
+
return index < 0 ? void 0 : data[index][1];
|
|
189
|
+
}
|
|
190
|
+
function listCacheHas(key) {
|
|
191
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
192
|
+
}
|
|
193
|
+
function listCacheSet(key, value) {
|
|
194
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
195
|
+
if (index < 0) {
|
|
196
|
+
++this.size;
|
|
197
|
+
data.push([key, value]);
|
|
198
|
+
} else {
|
|
199
|
+
data[index][1] = value;
|
|
200
|
+
}
|
|
201
|
+
return this;
|
|
202
|
+
}
|
|
203
|
+
function ListCache(entries) {
|
|
204
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
205
|
+
this.clear();
|
|
206
|
+
while (++index < length) {
|
|
207
|
+
var entry = entries[index];
|
|
208
|
+
this.set(entry[0], entry[1]);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
ListCache.prototype.clear = listCacheClear;
|
|
212
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
213
|
+
ListCache.prototype.get = listCacheGet;
|
|
214
|
+
ListCache.prototype.has = listCacheHas;
|
|
215
|
+
ListCache.prototype.set = listCacheSet;
|
|
216
|
+
var Map = getNative(root$1, "Map");
|
|
217
|
+
const Map$1 = Map;
|
|
229
218
|
function mapCacheClear() {
|
|
230
219
|
this.size = 0;
|
|
231
220
|
this.__data__ = {
|
|
@@ -272,6 +261,45 @@ MapCache.prototype["delete"] = mapCacheDelete;
|
|
|
272
261
|
MapCache.prototype.get = mapCacheGet;
|
|
273
262
|
MapCache.prototype.has = mapCacheHas;
|
|
274
263
|
MapCache.prototype.set = mapCacheSet;
|
|
264
|
+
var argsTag$2 = "[object Arguments]";
|
|
265
|
+
function baseIsArguments(value) {
|
|
266
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
267
|
+
}
|
|
268
|
+
var objectProto$7 = Object.prototype;
|
|
269
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
270
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
271
|
+
var isArguments = baseIsArguments(function() {
|
|
272
|
+
return arguments;
|
|
273
|
+
}()) ? baseIsArguments : function(value) {
|
|
274
|
+
return isObjectLike(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
275
|
+
};
|
|
276
|
+
const isArguments$1 = isArguments;
|
|
277
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
278
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
279
|
+
function isIndex(value, length) {
|
|
280
|
+
var type = typeof value;
|
|
281
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
282
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
283
|
+
}
|
|
284
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
285
|
+
function isLength(value) {
|
|
286
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
287
|
+
}
|
|
288
|
+
function stackClear() {
|
|
289
|
+
this.__data__ = new ListCache();
|
|
290
|
+
this.size = 0;
|
|
291
|
+
}
|
|
292
|
+
function stackDelete(key) {
|
|
293
|
+
var data = this.__data__, result = data["delete"](key);
|
|
294
|
+
this.size = data.size;
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
function stackGet(key) {
|
|
298
|
+
return this.__data__.get(key);
|
|
299
|
+
}
|
|
300
|
+
function stackHas(key) {
|
|
301
|
+
return this.__data__.has(key);
|
|
302
|
+
}
|
|
275
303
|
var LARGE_ARRAY_SIZE = 200;
|
|
276
304
|
function stackSet(key, value) {
|
|
277
305
|
var data = this.__data__;
|
|
@@ -327,11 +355,11 @@ function baseAssignValue(object, key, value) {
|
|
|
327
355
|
object[key] = value;
|
|
328
356
|
}
|
|
329
357
|
}
|
|
330
|
-
var objectProto$
|
|
331
|
-
var hasOwnProperty$
|
|
358
|
+
var objectProto$6 = Object.prototype;
|
|
359
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
332
360
|
function assignValue(object, key, value) {
|
|
333
361
|
var objValue = object[key];
|
|
334
|
-
if (!(hasOwnProperty$
|
|
362
|
+
if (!(hasOwnProperty$4.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
335
363
|
baseAssignValue(object, key, value);
|
|
336
364
|
}
|
|
337
365
|
}
|
|
@@ -360,24 +388,6 @@ function baseTimes(n, iteratee) {
|
|
|
360
388
|
}
|
|
361
389
|
return result;
|
|
362
390
|
}
|
|
363
|
-
function isObjectLike(value) {
|
|
364
|
-
return value != null && typeof value == "object";
|
|
365
|
-
}
|
|
366
|
-
var argsTag$2 = "[object Arguments]";
|
|
367
|
-
function baseIsArguments(value) {
|
|
368
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
369
|
-
}
|
|
370
|
-
var objectProto$6 = Object.prototype;
|
|
371
|
-
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
372
|
-
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
373
|
-
var isArguments = baseIsArguments(function() {
|
|
374
|
-
return arguments;
|
|
375
|
-
}()) ? baseIsArguments : function(value) {
|
|
376
|
-
return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
377
|
-
};
|
|
378
|
-
const isArguments$1 = isArguments;
|
|
379
|
-
var isArray = Array.isArray;
|
|
380
|
-
const isArray$1 = isArray;
|
|
381
391
|
function stubFalse() {
|
|
382
392
|
return false;
|
|
383
393
|
}
|
|
@@ -388,17 +398,6 @@ var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
|
|
|
388
398
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
389
399
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
390
400
|
const isBuffer$1 = isBuffer;
|
|
391
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
392
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
393
|
-
function isIndex(value, length) {
|
|
394
|
-
var type = typeof value;
|
|
395
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
396
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
397
|
-
}
|
|
398
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
399
|
-
function isLength(value) {
|
|
400
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
401
|
-
}
|
|
402
401
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
403
402
|
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
404
403
|
var typedArrayTags = {};
|
|
@@ -1346,150 +1345,6 @@ class Criteria {
|
|
|
1346
1345
|
return { type: "multi", operator, queries };
|
|
1347
1346
|
}
|
|
1348
1347
|
}
|
|
1349
|
-
var __awaiter$1 = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1350
|
-
function adopt(value) {
|
|
1351
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1352
|
-
resolve(value);
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1356
|
-
function fulfilled(value) {
|
|
1357
|
-
try {
|
|
1358
|
-
step(generator.next(value));
|
|
1359
|
-
} catch (e) {
|
|
1360
|
-
reject(e);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
function rejected(value) {
|
|
1364
|
-
try {
|
|
1365
|
-
step(generator["throw"](value));
|
|
1366
|
-
} catch (e) {
|
|
1367
|
-
reject(e);
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
function step(result) {
|
|
1371
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1372
|
-
}
|
|
1373
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1374
|
-
});
|
|
1375
|
-
};
|
|
1376
|
-
function isPromise(value) {
|
|
1377
|
-
return !!value && typeof value === "object" && "then" in value && typeof value.then === "function" && "catch" in value && typeof value.catch === "function";
|
|
1378
|
-
}
|
|
1379
|
-
class RepositoryAdapter {
|
|
1380
|
-
// eslint-disable-next-line no-empty-function,no-useless-constructor
|
|
1381
|
-
constructor(sourceRepository) {
|
|
1382
|
-
Object.defineProperty(this, "sourceRepository", {
|
|
1383
|
-
enumerable: true,
|
|
1384
|
-
configurable: true,
|
|
1385
|
-
writable: true,
|
|
1386
|
-
value: sourceRepository
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
search(criteria, context) {
|
|
1390
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1391
|
-
return this.sourceRepository.search(criteria, context);
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
get(id, context, criteria) {
|
|
1395
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1396
|
-
return this.sourceRepository.get(id, context, criteria);
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
save(entity, context) {
|
|
1400
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1401
|
-
return this.sourceRepository.save(entity, context);
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
clone(entityId, behavior, context) {
|
|
1405
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1406
|
-
return this.sourceRepository.clone(entityId, behavior, context);
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
hasChanges(entity) {
|
|
1410
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1411
|
-
const result = this.sourceRepository.hasChanges(entity);
|
|
1412
|
-
return isPromise(result) ? result : Promise.resolve(result);
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
saveAll(entities, context) {
|
|
1416
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1417
|
-
return this.sourceRepository.saveAll(entities, context);
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
delete(entityId, context) {
|
|
1421
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1422
|
-
return this.sourceRepository.delete(entityId, context);
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
create(context, entityId) {
|
|
1426
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1427
|
-
const result = this.sourceRepository.create(context, entityId);
|
|
1428
|
-
return isPromise(result) ? result : Promise.resolve(result);
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
function createRepositoryAdapter(source) {
|
|
1433
|
-
return new RepositoryAdapter(source);
|
|
1434
|
-
}
|
|
1435
|
-
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1436
|
-
function adopt(value) {
|
|
1437
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1438
|
-
resolve(value);
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1441
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1442
|
-
function fulfilled(value) {
|
|
1443
|
-
try {
|
|
1444
|
-
step(generator.next(value));
|
|
1445
|
-
} catch (e) {
|
|
1446
|
-
reject(e);
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
function rejected(value) {
|
|
1450
|
-
try {
|
|
1451
|
-
step(generator["throw"](value));
|
|
1452
|
-
} catch (e) {
|
|
1453
|
-
reject(e);
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
function step(result) {
|
|
1457
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1458
|
-
}
|
|
1459
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1460
|
-
});
|
|
1461
|
-
};
|
|
1462
|
-
function getRepository(entityName, propRepositoryFactory) {
|
|
1463
|
-
if (propRepositoryFactory) {
|
|
1464
|
-
return createRepositoryAdapter(propRepositoryFactory(entityName));
|
|
1465
|
-
}
|
|
1466
|
-
const injectedFactory = vue.inject("repositoryFactory");
|
|
1467
|
-
if (injectedFactory) {
|
|
1468
|
-
return createRepositoryAdapter(injectedFactory.create(entityName));
|
|
1469
|
-
}
|
|
1470
|
-
let lazyDataRepository;
|
|
1471
|
-
return new Proxy({}, {
|
|
1472
|
-
get(_, property) {
|
|
1473
|
-
return function(...args) {
|
|
1474
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1475
|
-
if (!lazyDataRepository) {
|
|
1476
|
-
lazyDataRepository = (yield Promise.resolve().then(() => require("./repository-30409275.js"))).default(entityName);
|
|
1477
|
-
}
|
|
1478
|
-
const method = lazyDataRepository[property];
|
|
1479
|
-
return method(...args);
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
function useRepository(entityNameRef, repositoryFactoryRef) {
|
|
1486
|
-
const injectedFactory = vue.inject("repositoryFactory");
|
|
1487
|
-
return vue.computed(() => {
|
|
1488
|
-
const entityName = vue.unref(entityNameRef);
|
|
1489
|
-
const repositoryFactory = vue.unref(repositoryFactoryRef);
|
|
1490
|
-
return getRepository(entityName, repositoryFactory !== null && repositoryFactory !== void 0 ? repositoryFactory : injectedFactory ? (entityName2) => injectedFactory.create(entityName2) : void 0);
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
1348
|
exports.Criteria = Criteria;
|
|
1494
1349
|
exports.MapCache = MapCache;
|
|
1495
1350
|
exports.Symbol = Symbol$2;
|
|
@@ -1497,11 +1352,9 @@ exports.assignValue = assignValue;
|
|
|
1497
1352
|
exports.baseClone = baseClone;
|
|
1498
1353
|
exports.baseGetTag = baseGetTag;
|
|
1499
1354
|
exports.cloneDeep = cloneDeep;
|
|
1500
|
-
exports.getRepository = getRepository;
|
|
1501
1355
|
exports.isArguments = isArguments$1;
|
|
1502
1356
|
exports.isArray = isArray$1;
|
|
1503
1357
|
exports.isIndex = isIndex;
|
|
1504
1358
|
exports.isLength = isLength;
|
|
1505
1359
|
exports.isObject = isObject;
|
|
1506
1360
|
exports.isObjectLike = isObjectLike;
|
|
1507
|
-
exports.useRepository = useRepository;
|