@contena/meteor-component-library 5.5.0 → 5.6.1
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 +2 -2
- package/dist/common/MtCard.d.ts +5 -4
- package/dist/common/MtCard.js +18 -12
- package/dist/common/MtCheckbox.js +2 -2
- package/dist/common/MtColorpicker.js +2 -2
- package/dist/common/MtContextButton.js +2 -2
- package/dist/common/MtContextMenuItem.js +2 -2
- package/dist/common/MtDataTable.d.ts +20 -18
- package/dist/common/MtDataTable.js +138 -131
- package/dist/common/MtDataTableFilter.js +5 -5
- package/dist/common/MtDataTableSettings.js +2 -2
- package/dist/common/MtEntityDataTable.js +5 -4
- package/dist/common/MtEntitySelect.js +5 -4
- package/dist/common/MtFieldCopyable.js +1 -1
- 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 +2 -2
- package/dist/common/MtPagination.js +2 -2
- package/dist/common/MtPasswordField.js +2 -2
- package/dist/common/MtPopover.js +2 -2
- package/dist/common/MtPopoverItem.js +2 -2
- package/dist/common/MtPopoverItemResult.js +2 -2
- package/dist/common/MtSegmentedControl.js +2 -2
- package/dist/common/MtSelect.js +2 -2
- package/dist/common/MtSelectBase.js +2 -2
- package/dist/common/MtSlider.js +2 -2
- package/dist/common/MtTabs.js +2 -2
- package/dist/common/MtTextEditor.d.ts +1 -1
- package/dist/common/MtTextEditor.js +2 -2
- package/dist/common/MtTextEditorToolbar.js +2 -2
- package/dist/common/MtTextEditorToolbarButton.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonColor.js +2 -2
- package/dist/common/MtTextEditorToolbarButtonLink.js +2 -2
- package/dist/common/MtTextEditorToolbarButtonTable.js +2 -2
- package/dist/common/MtTextField.js +2 -2
- package/dist/common/MtThemeSelect.js +3 -3
- package/dist/common/MtUnitField.js +2 -2
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +11 -6
- package/dist/contena-logo.svg +6 -0
- package/dist/esm/MtBaseField.js +2 -2
- package/dist/esm/MtCard.d.ts +5 -4
- package/dist/esm/MtCard.js +18 -12
- package/dist/esm/MtCheckbox.js +2 -2
- package/dist/esm/MtColorpicker.js +2 -2
- package/dist/esm/MtContextButton.js +2 -2
- package/dist/esm/MtContextMenuItem.js +2 -2
- package/dist/esm/MtDataTable.d.ts +20 -18
- package/dist/esm/MtDataTable.js +139 -132
- package/dist/esm/MtDataTableFilter.js +5 -5
- package/dist/esm/MtDataTableSettings.js +2 -2
- package/dist/esm/MtEntityDataTable.js +5 -4
- package/dist/esm/MtEntitySelect.js +5 -4
- package/dist/esm/MtFieldCopyable.js +1 -1
- 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 +2 -2
- package/dist/esm/MtPagination.js +2 -2
- package/dist/esm/MtPasswordField.js +2 -2
- package/dist/esm/MtPopover.js +2 -2
- package/dist/esm/MtPopoverItem.js +2 -2
- package/dist/esm/MtPopoverItemResult.js +2 -2
- package/dist/esm/MtSegmentedControl.js +2 -2
- package/dist/esm/MtSelect.js +2 -2
- package/dist/esm/MtSelectBase.js +2 -2
- package/dist/esm/MtSlider.js +2 -2
- package/dist/esm/MtTabs.js +2 -2
- package/dist/esm/MtTextEditor.d.ts +1 -1
- package/dist/esm/MtTextEditor.js +2 -2
- package/dist/esm/MtTextEditorToolbar.js +2 -2
- package/dist/esm/MtTextEditorToolbarButton.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonColor.js +2 -2
- package/dist/esm/MtTextEditorToolbarButtonLink.js +2 -2
- package/dist/esm/MtTextEditorToolbarButtonTable.js +2 -2
- package/dist/esm/MtTextField.js +2 -2
- package/dist/esm/MtThemeSelect.js +3 -3
- package/dist/esm/MtUnitField.js +2 -2
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +55 -50
- 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 +32 -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/{tooltip.directive-4ea0fee9.js → tooltip.directive-7b51326d.js} +23 -0
- package/dist/{tooltip.directive-f216b7fb.mjs → tooltip.directive-a5042569.mjs} +23 -0
- package/dist/useRepository-28dfccf5.mjs +149 -0
- package/dist/useRepository-6804d3b6.js +148 -0
- package/package.json +30 -31
- package/THIRD-PARTY-LICENSES/UPSTREAM-METEOR-MIT.txt +0 -21
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
this.__data__ = [];
|
|
4
|
-
this.size = 0;
|
|
5
|
-
}
|
|
6
|
-
function eq(value, other) {
|
|
7
|
-
return value === other || value !== value && other !== other;
|
|
8
|
-
}
|
|
9
|
-
function assocIndexOf(array, key) {
|
|
10
|
-
var length = array.length;
|
|
11
|
-
while (length--) {
|
|
12
|
-
if (eq(array[length][0], key)) {
|
|
13
|
-
return length;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return -1;
|
|
17
|
-
}
|
|
18
|
-
var arrayProto = Array.prototype;
|
|
19
|
-
var splice = arrayProto.splice;
|
|
20
|
-
function listCacheDelete(key) {
|
|
21
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
22
|
-
if (index < 0) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
var lastIndex = data.length - 1;
|
|
26
|
-
if (index == lastIndex) {
|
|
27
|
-
data.pop();
|
|
28
|
-
} else {
|
|
29
|
-
splice.call(data, index, 1);
|
|
30
|
-
}
|
|
31
|
-
--this.size;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function listCacheGet(key) {
|
|
35
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
36
|
-
return index < 0 ? void 0 : data[index][1];
|
|
37
|
-
}
|
|
38
|
-
function listCacheHas(key) {
|
|
39
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
40
|
-
}
|
|
41
|
-
function listCacheSet(key, value) {
|
|
42
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
43
|
-
if (index < 0) {
|
|
44
|
-
++this.size;
|
|
45
|
-
data.push([key, value]);
|
|
46
|
-
} else {
|
|
47
|
-
data[index][1] = value;
|
|
48
|
-
}
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
function ListCache(entries) {
|
|
52
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
53
|
-
this.clear();
|
|
54
|
-
while (++index < length) {
|
|
55
|
-
var entry = entries[index];
|
|
56
|
-
this.set(entry[0], entry[1]);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
ListCache.prototype.clear = listCacheClear;
|
|
60
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
61
|
-
ListCache.prototype.get = listCacheGet;
|
|
62
|
-
ListCache.prototype.has = listCacheHas;
|
|
63
|
-
ListCache.prototype.set = listCacheSet;
|
|
64
|
-
function stackClear() {
|
|
65
|
-
this.__data__ = new ListCache();
|
|
66
|
-
this.size = 0;
|
|
67
|
-
}
|
|
68
|
-
function stackDelete(key) {
|
|
69
|
-
var data = this.__data__, result = data["delete"](key);
|
|
70
|
-
this.size = data.size;
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
function stackGet(key) {
|
|
74
|
-
return this.__data__.get(key);
|
|
75
|
-
}
|
|
76
|
-
function stackHas(key) {
|
|
77
|
-
return this.__data__.has(key);
|
|
78
|
-
}
|
|
1
|
+
var isArray = Array.isArray;
|
|
2
|
+
const isArray$1 = isArray;
|
|
79
3
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
80
4
|
const freeGlobal$1 = freeGlobal;
|
|
81
5
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -117,6 +41,9 @@ function baseGetTag(value) {
|
|
|
117
41
|
}
|
|
118
42
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
119
43
|
}
|
|
44
|
+
function isObjectLike(value) {
|
|
45
|
+
return value != null && typeof value == "object";
|
|
46
|
+
}
|
|
120
47
|
function isObject(value) {
|
|
121
48
|
var type = typeof value;
|
|
122
49
|
return value != null && (type == "object" || type == "function");
|
|
@@ -175,8 +102,6 @@ function getNative(object, key) {
|
|
|
175
102
|
var value = getValue(object, key);
|
|
176
103
|
return baseIsNative(value) ? value : void 0;
|
|
177
104
|
}
|
|
178
|
-
var Map = getNative(root$1, "Map");
|
|
179
|
-
const Map$1 = Map;
|
|
180
105
|
var nativeCreate = getNative(Object, "create");
|
|
181
106
|
const nativeCreate$1 = nativeCreate;
|
|
182
107
|
function hashClear() {
|
|
@@ -225,6 +150,70 @@ Hash.prototype["delete"] = hashDelete;
|
|
|
225
150
|
Hash.prototype.get = hashGet;
|
|
226
151
|
Hash.prototype.has = hashHas;
|
|
227
152
|
Hash.prototype.set = hashSet;
|
|
153
|
+
function listCacheClear() {
|
|
154
|
+
this.__data__ = [];
|
|
155
|
+
this.size = 0;
|
|
156
|
+
}
|
|
157
|
+
function eq(value, other) {
|
|
158
|
+
return value === other || value !== value && other !== other;
|
|
159
|
+
}
|
|
160
|
+
function assocIndexOf(array, key) {
|
|
161
|
+
var length = array.length;
|
|
162
|
+
while (length--) {
|
|
163
|
+
if (eq(array[length][0], key)) {
|
|
164
|
+
return length;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return -1;
|
|
168
|
+
}
|
|
169
|
+
var arrayProto = Array.prototype;
|
|
170
|
+
var splice = arrayProto.splice;
|
|
171
|
+
function listCacheDelete(key) {
|
|
172
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
173
|
+
if (index < 0) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
var lastIndex = data.length - 1;
|
|
177
|
+
if (index == lastIndex) {
|
|
178
|
+
data.pop();
|
|
179
|
+
} else {
|
|
180
|
+
splice.call(data, index, 1);
|
|
181
|
+
}
|
|
182
|
+
--this.size;
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
function listCacheGet(key) {
|
|
186
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
187
|
+
return index < 0 ? void 0 : data[index][1];
|
|
188
|
+
}
|
|
189
|
+
function listCacheHas(key) {
|
|
190
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
191
|
+
}
|
|
192
|
+
function listCacheSet(key, value) {
|
|
193
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
194
|
+
if (index < 0) {
|
|
195
|
+
++this.size;
|
|
196
|
+
data.push([key, value]);
|
|
197
|
+
} else {
|
|
198
|
+
data[index][1] = value;
|
|
199
|
+
}
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
202
|
+
function ListCache(entries) {
|
|
203
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
204
|
+
this.clear();
|
|
205
|
+
while (++index < length) {
|
|
206
|
+
var entry = entries[index];
|
|
207
|
+
this.set(entry[0], entry[1]);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
ListCache.prototype.clear = listCacheClear;
|
|
211
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
212
|
+
ListCache.prototype.get = listCacheGet;
|
|
213
|
+
ListCache.prototype.has = listCacheHas;
|
|
214
|
+
ListCache.prototype.set = listCacheSet;
|
|
215
|
+
var Map = getNative(root$1, "Map");
|
|
216
|
+
const Map$1 = Map;
|
|
228
217
|
function mapCacheClear() {
|
|
229
218
|
this.size = 0;
|
|
230
219
|
this.__data__ = {
|
|
@@ -271,6 +260,45 @@ MapCache.prototype["delete"] = mapCacheDelete;
|
|
|
271
260
|
MapCache.prototype.get = mapCacheGet;
|
|
272
261
|
MapCache.prototype.has = mapCacheHas;
|
|
273
262
|
MapCache.prototype.set = mapCacheSet;
|
|
263
|
+
var argsTag$2 = "[object Arguments]";
|
|
264
|
+
function baseIsArguments(value) {
|
|
265
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
266
|
+
}
|
|
267
|
+
var objectProto$7 = Object.prototype;
|
|
268
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
269
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
270
|
+
var isArguments = baseIsArguments(function() {
|
|
271
|
+
return arguments;
|
|
272
|
+
}()) ? baseIsArguments : function(value) {
|
|
273
|
+
return isObjectLike(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
274
|
+
};
|
|
275
|
+
const isArguments$1 = isArguments;
|
|
276
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
277
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
278
|
+
function isIndex(value, length) {
|
|
279
|
+
var type = typeof value;
|
|
280
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
281
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
282
|
+
}
|
|
283
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
284
|
+
function isLength(value) {
|
|
285
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
286
|
+
}
|
|
287
|
+
function stackClear() {
|
|
288
|
+
this.__data__ = new ListCache();
|
|
289
|
+
this.size = 0;
|
|
290
|
+
}
|
|
291
|
+
function stackDelete(key) {
|
|
292
|
+
var data = this.__data__, result = data["delete"](key);
|
|
293
|
+
this.size = data.size;
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
function stackGet(key) {
|
|
297
|
+
return this.__data__.get(key);
|
|
298
|
+
}
|
|
299
|
+
function stackHas(key) {
|
|
300
|
+
return this.__data__.has(key);
|
|
301
|
+
}
|
|
274
302
|
var LARGE_ARRAY_SIZE = 200;
|
|
275
303
|
function stackSet(key, value) {
|
|
276
304
|
var data = this.__data__;
|
|
@@ -326,11 +354,11 @@ function baseAssignValue(object, key, value) {
|
|
|
326
354
|
object[key] = value;
|
|
327
355
|
}
|
|
328
356
|
}
|
|
329
|
-
var objectProto$
|
|
330
|
-
var hasOwnProperty$
|
|
357
|
+
var objectProto$6 = Object.prototype;
|
|
358
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
331
359
|
function assignValue(object, key, value) {
|
|
332
360
|
var objValue = object[key];
|
|
333
|
-
if (!(hasOwnProperty$
|
|
361
|
+
if (!(hasOwnProperty$4.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
334
362
|
baseAssignValue(object, key, value);
|
|
335
363
|
}
|
|
336
364
|
}
|
|
@@ -359,24 +387,6 @@ function baseTimes(n, iteratee) {
|
|
|
359
387
|
}
|
|
360
388
|
return result;
|
|
361
389
|
}
|
|
362
|
-
function isObjectLike(value) {
|
|
363
|
-
return value != null && typeof value == "object";
|
|
364
|
-
}
|
|
365
|
-
var argsTag$2 = "[object Arguments]";
|
|
366
|
-
function baseIsArguments(value) {
|
|
367
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
368
|
-
}
|
|
369
|
-
var objectProto$6 = Object.prototype;
|
|
370
|
-
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
371
|
-
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
372
|
-
var isArguments = baseIsArguments(function() {
|
|
373
|
-
return arguments;
|
|
374
|
-
}()) ? baseIsArguments : function(value) {
|
|
375
|
-
return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
376
|
-
};
|
|
377
|
-
const isArguments$1 = isArguments;
|
|
378
|
-
var isArray = Array.isArray;
|
|
379
|
-
const isArray$1 = isArray;
|
|
380
390
|
function stubFalse() {
|
|
381
391
|
return false;
|
|
382
392
|
}
|
|
@@ -387,17 +397,6 @@ var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
|
|
|
387
397
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
388
398
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
389
399
|
const isBuffer$1 = isBuffer;
|
|
390
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
391
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
392
|
-
function isIndex(value, length) {
|
|
393
|
-
var type = typeof value;
|
|
394
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
395
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
396
|
-
}
|
|
397
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
398
|
-
function isLength(value) {
|
|
399
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
400
|
-
}
|
|
401
400
|
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]";
|
|
402
401
|
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]";
|
|
403
402
|
var typedArrayTags = {};
|
|
@@ -1345,150 +1344,6 @@ class Criteria {
|
|
|
1345
1344
|
return { type: "multi", operator, queries };
|
|
1346
1345
|
}
|
|
1347
1346
|
}
|
|
1348
|
-
var __awaiter$1 = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1349
|
-
function adopt(value) {
|
|
1350
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1351
|
-
resolve(value);
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1355
|
-
function fulfilled(value) {
|
|
1356
|
-
try {
|
|
1357
|
-
step(generator.next(value));
|
|
1358
|
-
} catch (e) {
|
|
1359
|
-
reject(e);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
function rejected(value) {
|
|
1363
|
-
try {
|
|
1364
|
-
step(generator["throw"](value));
|
|
1365
|
-
} catch (e) {
|
|
1366
|
-
reject(e);
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
function step(result) {
|
|
1370
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1371
|
-
}
|
|
1372
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1373
|
-
});
|
|
1374
|
-
};
|
|
1375
|
-
function isPromise(value) {
|
|
1376
|
-
return !!value && typeof value === "object" && "then" in value && typeof value.then === "function" && "catch" in value && typeof value.catch === "function";
|
|
1377
|
-
}
|
|
1378
|
-
class RepositoryAdapter {
|
|
1379
|
-
// eslint-disable-next-line no-empty-function,no-useless-constructor
|
|
1380
|
-
constructor(sourceRepository) {
|
|
1381
|
-
Object.defineProperty(this, "sourceRepository", {
|
|
1382
|
-
enumerable: true,
|
|
1383
|
-
configurable: true,
|
|
1384
|
-
writable: true,
|
|
1385
|
-
value: sourceRepository
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
search(criteria, context) {
|
|
1389
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1390
|
-
return this.sourceRepository.search(criteria, context);
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
get(id, context, criteria) {
|
|
1394
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1395
|
-
return this.sourceRepository.get(id, context, criteria);
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
save(entity, context) {
|
|
1399
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1400
|
-
return this.sourceRepository.save(entity, context);
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
clone(entityId, behavior, context) {
|
|
1404
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1405
|
-
return this.sourceRepository.clone(entityId, behavior, context);
|
|
1406
|
-
});
|
|
1407
|
-
}
|
|
1408
|
-
hasChanges(entity) {
|
|
1409
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1410
|
-
const result = this.sourceRepository.hasChanges(entity);
|
|
1411
|
-
return isPromise(result) ? result : Promise.resolve(result);
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
saveAll(entities, context) {
|
|
1415
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1416
|
-
return this.sourceRepository.saveAll(entities, context);
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
delete(entityId, context) {
|
|
1420
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1421
|
-
return this.sourceRepository.delete(entityId, context);
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
create(context, entityId) {
|
|
1425
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
1426
|
-
const result = this.sourceRepository.create(context, entityId);
|
|
1427
|
-
return isPromise(result) ? result : Promise.resolve(result);
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
function createRepositoryAdapter(source) {
|
|
1432
|
-
return new RepositoryAdapter(source);
|
|
1433
|
-
}
|
|
1434
|
-
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1435
|
-
function adopt(value) {
|
|
1436
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1437
|
-
resolve(value);
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1441
|
-
function fulfilled(value) {
|
|
1442
|
-
try {
|
|
1443
|
-
step(generator.next(value));
|
|
1444
|
-
} catch (e) {
|
|
1445
|
-
reject(e);
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
function rejected(value) {
|
|
1449
|
-
try {
|
|
1450
|
-
step(generator["throw"](value));
|
|
1451
|
-
} catch (e) {
|
|
1452
|
-
reject(e);
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
function step(result) {
|
|
1456
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1457
|
-
}
|
|
1458
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1459
|
-
});
|
|
1460
|
-
};
|
|
1461
|
-
function getRepository(entityName, propRepositoryFactory) {
|
|
1462
|
-
if (propRepositoryFactory) {
|
|
1463
|
-
return createRepositoryAdapter(propRepositoryFactory(entityName));
|
|
1464
|
-
}
|
|
1465
|
-
const injectedFactory = inject("repositoryFactory");
|
|
1466
|
-
if (injectedFactory) {
|
|
1467
|
-
return createRepositoryAdapter(injectedFactory.create(entityName));
|
|
1468
|
-
}
|
|
1469
|
-
let lazyDataRepository;
|
|
1470
|
-
return new Proxy({}, {
|
|
1471
|
-
get(_, property) {
|
|
1472
|
-
return function(...args) {
|
|
1473
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1474
|
-
if (!lazyDataRepository) {
|
|
1475
|
-
lazyDataRepository = (yield import("./repository-fd60b763.mjs")).default(entityName);
|
|
1476
|
-
}
|
|
1477
|
-
const method = lazyDataRepository[property];
|
|
1478
|
-
return method(...args);
|
|
1479
|
-
});
|
|
1480
|
-
};
|
|
1481
|
-
}
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
function useRepository(entityNameRef, repositoryFactoryRef) {
|
|
1485
|
-
const injectedFactory = inject("repositoryFactory");
|
|
1486
|
-
return computed(() => {
|
|
1487
|
-
const entityName = unref(entityNameRef);
|
|
1488
|
-
const repositoryFactory = unref(repositoryFactoryRef);
|
|
1489
|
-
return getRepository(entityName, repositoryFactory !== null && repositoryFactory !== void 0 ? repositoryFactory : injectedFactory ? (entityName2) => injectedFactory.create(entityName2) : void 0);
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
1347
|
export {
|
|
1493
1348
|
Criteria as C,
|
|
1494
1349
|
MapCache as M,
|
|
@@ -1499,10 +1354,8 @@ export {
|
|
|
1499
1354
|
isIndex as d,
|
|
1500
1355
|
isArguments$1 as e,
|
|
1501
1356
|
cloneDeep as f,
|
|
1502
|
-
|
|
1503
|
-
|
|
1357
|
+
baseClone as g,
|
|
1358
|
+
isObject as h,
|
|
1504
1359
|
isObjectLike as i,
|
|
1505
|
-
|
|
1506
|
-
assignValue as k,
|
|
1507
|
-
useRepository as u
|
|
1360
|
+
assignValue as j
|
|
1508
1361
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isObjectLike, b as baseGetTag, a as isArray, M as MapCache, S as Symbol$1, c as isLength, d as isIndex, e as isArguments, C as Criteria, f as cloneDeep,
|
|
1
|
+
import { i as isObjectLike, b as baseGetTag, a as isArray, M as MapCache, S as Symbol$1, c as isLength, d as isIndex, e as isArguments, C as Criteria, f as cloneDeep, g as baseClone, h as isObject$1, j as assignValue } from "./Criteria-dda62b10.mjs";
|
|
2
2
|
var objectProto = Object.prototype;
|
|
3
3
|
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
4
4
|
function baseHas(object, key) {
|
|
@@ -125,6 +125,12 @@ function generateUniqueId() {
|
|
|
125
125
|
function isObject(value) {
|
|
126
126
|
return value !== null && typeof value === "object";
|
|
127
127
|
}
|
|
128
|
+
function getSearchParam(name2) {
|
|
129
|
+
return new URLSearchParams(window.location.search).get(name2);
|
|
130
|
+
}
|
|
131
|
+
function getColorScheme() {
|
|
132
|
+
return getSearchParam("color-scheme");
|
|
133
|
+
}
|
|
128
134
|
function getWindowSrc() {
|
|
129
135
|
const location = window.location;
|
|
130
136
|
const urlObject = new URL(location.pathname, location.origin);
|
|
@@ -1022,7 +1028,7 @@ function parseArrayIndex(index) {
|
|
|
1022
1028
|
return Number.parseInt(index.replace("[", "").replace("]", ""));
|
|
1023
1029
|
}
|
|
1024
1030
|
const name = "@contena/meteor-admin-sdk";
|
|
1025
|
-
const version = "6.
|
|
1031
|
+
const version = "6.12.0";
|
|
1026
1032
|
const description = "The Meteor SDK for the Contena Administration.";
|
|
1027
1033
|
const keywords = [
|
|
1028
1034
|
"iframe",
|
|
@@ -1050,6 +1056,26 @@ const exports = {
|
|
|
1050
1056
|
"import": "./es/location/index.js",
|
|
1051
1057
|
require: "./umd/location/index.js"
|
|
1052
1058
|
},
|
|
1059
|
+
"./es/context": {
|
|
1060
|
+
"import": "./es/context/index.js",
|
|
1061
|
+
require: "./umd/context/index.js"
|
|
1062
|
+
},
|
|
1063
|
+
"./es/window": {
|
|
1064
|
+
"import": "./es/window/index.js",
|
|
1065
|
+
require: "./umd/window/index.js"
|
|
1066
|
+
},
|
|
1067
|
+
"./es/telemetry": {
|
|
1068
|
+
"import": "./es/telemetry/index.js",
|
|
1069
|
+
require: "./umd/telemetry/index.js"
|
|
1070
|
+
},
|
|
1071
|
+
"./es/_private/context": {
|
|
1072
|
+
"import": "./es/_private/context/index.js",
|
|
1073
|
+
require: "./umd/_private/context/index.js"
|
|
1074
|
+
},
|
|
1075
|
+
"./es/_private/permissions": {
|
|
1076
|
+
"import": "./es/_private/permissions/index.js",
|
|
1077
|
+
require: "./umd/_private/permissions/index.js"
|
|
1078
|
+
},
|
|
1053
1079
|
"./es/_internals/privileges/missing-privileges-error": {
|
|
1054
1080
|
"import": "./es/_internals/privileges/missing-privileges-error.js",
|
|
1055
1081
|
require: "./umd/_internals/privileges/missing-privileges-error.js"
|
|
@@ -1106,8 +1132,7 @@ const files = [
|
|
|
1106
1132
|
"umd",
|
|
1107
1133
|
"es",
|
|
1108
1134
|
"cdn",
|
|
1109
|
-
"NOTICE"
|
|
1110
|
-
"THIRD-PARTY-LICENSES"
|
|
1135
|
+
"NOTICE"
|
|
1111
1136
|
];
|
|
1112
1137
|
const scripts = {
|
|
1113
1138
|
build: "rm -rf es && rm -rf umd && rm -rf cdn && npm run build:umd && npm run build:es && npm run build:cdn",
|
|
@@ -1406,9 +1431,10 @@ function createSender(messageType, baseMessageOptions) {
|
|
|
1406
1431
|
}
|
|
1407
1432
|
const datasets = /* @__PURE__ */ new Map();
|
|
1408
1433
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
1409
|
-
if (window
|
|
1410
|
-
|
|
1434
|
+
if (typeof window === "undefined") {
|
|
1435
|
+
return;
|
|
1411
1436
|
}
|
|
1437
|
+
const themePin = window.parent !== window ? applyEmbeddedContext() : null;
|
|
1412
1438
|
handle("__registerWindow__", ({ sdkVersion: sdkVersion2 }, additionalOptions) => {
|
|
1413
1439
|
let source;
|
|
1414
1440
|
let origin;
|
|
@@ -1458,8 +1484,8 @@ const datasets = /* @__PURE__ */ new Map();
|
|
|
1458
1484
|
yield send("__registerWindow__", {
|
|
1459
1485
|
sdkVersion: packageVersion
|
|
1460
1486
|
});
|
|
1461
|
-
if (
|
|
1462
|
-
startAutoThemeSync();
|
|
1487
|
+
if (themePin) {
|
|
1488
|
+
startAutoThemeSync(themePin);
|
|
1463
1489
|
}
|
|
1464
1490
|
}))().catch((e) => console.error(e));
|
|
1465
1491
|
function isThemeValue(value) {
|
|
@@ -1485,9 +1511,12 @@ function startThemeSync(target) {
|
|
|
1485
1511
|
});
|
|
1486
1512
|
return { initialFetch, stop };
|
|
1487
1513
|
}
|
|
1488
|
-
function startAutoThemeSync() {
|
|
1514
|
+
function startAutoThemeSync(pin = { theme: null, scheme: null }) {
|
|
1489
1515
|
const target = document.documentElement;
|
|
1490
|
-
if (target.dataset.theme) {
|
|
1516
|
+
if (target.dataset.theme && target.dataset.theme !== pin.theme) {
|
|
1517
|
+
if (pin.scheme && target.style.getPropertyValue("color-scheme") === pin.scheme) {
|
|
1518
|
+
target.style.removeProperty("color-scheme");
|
|
1519
|
+
}
|
|
1491
1520
|
return () => {
|
|
1492
1521
|
};
|
|
1493
1522
|
}
|
|
@@ -1501,23 +1530,34 @@ function applyEmbeddedContext() {
|
|
|
1501
1530
|
if (root.dataset.embedded === void 0) {
|
|
1502
1531
|
root.dataset.embedded = "";
|
|
1503
1532
|
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1533
|
+
const pin = { theme: null, scheme: null };
|
|
1534
|
+
if (!root.dataset.theme) {
|
|
1535
|
+
const urlScheme = getColorScheme();
|
|
1536
|
+
if (isThemeValue(urlScheme)) {
|
|
1537
|
+
applyTheme(root, urlScheme);
|
|
1538
|
+
pin.theme = urlScheme;
|
|
1539
|
+
pin.scheme = urlScheme;
|
|
1540
|
+
} else {
|
|
1541
|
+
root.style.setProperty("color-scheme", "light");
|
|
1542
|
+
pin.scheme = "light";
|
|
1543
|
+
}
|
|
1506
1544
|
}
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
"html[data-embedded] {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1545
|
+
if (!document.getElementById("meteor-admin-sdk-embedded")) {
|
|
1546
|
+
const style = document.createElement("style");
|
|
1547
|
+
style.id = "meteor-admin-sdk-embedded";
|
|
1548
|
+
style.textContent = "html[data-embedded] body { background: unset; }";
|
|
1549
|
+
document.head.appendChild(style);
|
|
1550
|
+
}
|
|
1551
|
+
return pin;
|
|
1552
|
+
}
|
|
1553
|
+
if (typeof window !== "undefined") {
|
|
1554
|
+
window._swsdk = {
|
|
1555
|
+
sourceRegistry,
|
|
1556
|
+
subscriberRegistry,
|
|
1557
|
+
datasets,
|
|
1558
|
+
adminExtensions
|
|
1559
|
+
};
|
|
1514
1560
|
}
|
|
1515
|
-
window._swsdk = {
|
|
1516
|
-
sourceRegistry,
|
|
1517
|
-
subscriberRegistry,
|
|
1518
|
-
datasets,
|
|
1519
|
-
adminExtensions
|
|
1520
|
-
};
|
|
1521
1561
|
function isMessageData(eventData) {
|
|
1522
1562
|
const contenaMessageData = eventData;
|
|
1523
1563
|
return !!contenaMessageData._type && !!contenaMessageData._data && !!contenaMessageData._callbackId;
|