@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const Criteria = require("./Criteria-86968a69.js");
|
|
3
3
|
var objectProto = Object.prototype;
|
|
4
4
|
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
5
5
|
function baseHas(object, key) {
|
|
@@ -7,11 +7,11 @@ function baseHas(object, key) {
|
|
|
7
7
|
}
|
|
8
8
|
var symbolTag = "[object Symbol]";
|
|
9
9
|
function isSymbol(value) {
|
|
10
|
-
return typeof value == "symbol" ||
|
|
10
|
+
return typeof value == "symbol" || Criteria.isObjectLike(value) && Criteria.baseGetTag(value) == symbolTag;
|
|
11
11
|
}
|
|
12
12
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
13
13
|
function isKey(value, object) {
|
|
14
|
-
if (
|
|
14
|
+
if (Criteria.isArray(value)) {
|
|
15
15
|
return false;
|
|
16
16
|
}
|
|
17
17
|
var type = typeof value;
|
|
@@ -34,10 +34,10 @@ function memoize(func, resolver) {
|
|
|
34
34
|
memoized.cache = cache.set(key, result) || cache;
|
|
35
35
|
return result;
|
|
36
36
|
};
|
|
37
|
-
memoized.cache = new (memoize.Cache ||
|
|
37
|
+
memoized.cache = new (memoize.Cache || Criteria.MapCache)();
|
|
38
38
|
return memoized;
|
|
39
39
|
}
|
|
40
|
-
memoize.Cache =
|
|
40
|
+
memoize.Cache = Criteria.MapCache;
|
|
41
41
|
var MAX_MEMOIZE_SIZE = 500;
|
|
42
42
|
function memoizeCapped(func) {
|
|
43
43
|
var result = memoize(func, function(key) {
|
|
@@ -70,12 +70,12 @@ function arrayMap(array, iteratee) {
|
|
|
70
70
|
return result;
|
|
71
71
|
}
|
|
72
72
|
var INFINITY$1 = 1 / 0;
|
|
73
|
-
var symbolProto =
|
|
73
|
+
var symbolProto = Criteria.Symbol ? Criteria.Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
74
74
|
function baseToString(value) {
|
|
75
75
|
if (typeof value == "string") {
|
|
76
76
|
return value;
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (Criteria.isArray(value)) {
|
|
79
79
|
return arrayMap(value, baseToString) + "";
|
|
80
80
|
}
|
|
81
81
|
if (isSymbol(value)) {
|
|
@@ -88,7 +88,7 @@ function toString(value) {
|
|
|
88
88
|
return value == null ? "" : baseToString(value);
|
|
89
89
|
}
|
|
90
90
|
function castPath(value, object) {
|
|
91
|
-
if (
|
|
91
|
+
if (Criteria.isArray(value)) {
|
|
92
92
|
return value;
|
|
93
93
|
}
|
|
94
94
|
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
@@ -115,7 +115,7 @@ function hasPath(object, path, hasFunc) {
|
|
|
115
115
|
return result;
|
|
116
116
|
}
|
|
117
117
|
length = object == null ? 0 : object.length;
|
|
118
|
-
return !!length &&
|
|
118
|
+
return !!length && Criteria.isLength(length) && Criteria.isIndex(key, length) && (Criteria.isArray(object) || Criteria.isArguments(object));
|
|
119
119
|
}
|
|
120
120
|
function has(object, path) {
|
|
121
121
|
return object != null && hasPath(object, path, baseHas);
|
|
@@ -126,6 +126,12 @@ function generateUniqueId() {
|
|
|
126
126
|
function isObject(value) {
|
|
127
127
|
return value !== null && typeof value === "object";
|
|
128
128
|
}
|
|
129
|
+
function getSearchParam(name2) {
|
|
130
|
+
return new URLSearchParams(window.location.search).get(name2);
|
|
131
|
+
}
|
|
132
|
+
function getColorScheme() {
|
|
133
|
+
return getSearchParam("color-scheme");
|
|
134
|
+
}
|
|
129
135
|
function getWindowSrc() {
|
|
130
136
|
const location = window.location;
|
|
131
137
|
const urlObject = new URL(location.pathname, location.origin);
|
|
@@ -279,7 +285,7 @@ const FunctionSerializerFactory = ({ send: send2, handle: handle2 }) => {
|
|
|
279
285
|
const CriteriaSerializer = () => ({
|
|
280
286
|
name: "criteria",
|
|
281
287
|
serialize: ({ value, customizerMethod, seen, path }) => {
|
|
282
|
-
if (value instanceof
|
|
288
|
+
if (value instanceof Criteria.Criteria) {
|
|
283
289
|
return {
|
|
284
290
|
__type__: "__Criteria__",
|
|
285
291
|
data: customizerMethod(value.getCriteriaData(), seen, path)
|
|
@@ -289,7 +295,7 @@ const CriteriaSerializer = () => ({
|
|
|
289
295
|
deserialize: ({ value, customizerMethod }) => {
|
|
290
296
|
if (hasType("__Criteria__", value) && typeof value["data"] === "object") {
|
|
291
297
|
const serializedData = value.data;
|
|
292
|
-
const deserializedCriteria = new
|
|
298
|
+
const deserializedCriteria = new Criteria.Criteria();
|
|
293
299
|
deserializedCriteria.setPage(serializedData.page);
|
|
294
300
|
deserializedCriteria.setLimit(serializedData.limit);
|
|
295
301
|
deserializedCriteria.setTerm(serializedData.term);
|
|
@@ -375,7 +381,7 @@ class EntityClass {
|
|
|
375
381
|
value: void 0
|
|
376
382
|
});
|
|
377
383
|
this.id = id;
|
|
378
|
-
this._origin = options.originData ?
|
|
384
|
+
this._origin = options.originData ? Criteria.cloneDeep(options.originData) : Criteria.cloneDeep(data);
|
|
379
385
|
this._entityName = entityName;
|
|
380
386
|
this._draft = data;
|
|
381
387
|
this._isDirty = (_a = options.isDirty) !== null && _a !== void 0 ? _a : false;
|
|
@@ -665,7 +671,7 @@ class EntityCollection extends Array {
|
|
|
665
671
|
* Returns a new collection from given one with
|
|
666
672
|
*/
|
|
667
673
|
static fromCollection(collection) {
|
|
668
|
-
return new EntityCollection(collection.source, collection.entity, collection.context, collection.criteria === null ? collection.criteria :
|
|
674
|
+
return new EntityCollection(collection.source, collection.entity, collection.context, collection.criteria === null ? collection.criteria : Criteria.Criteria.fromCriteria(collection.criteria), collection, collection.total, collection.aggregations);
|
|
669
675
|
}
|
|
670
676
|
}
|
|
671
677
|
const EntityCollectionSerializerFactory = () => ({
|
|
@@ -726,7 +732,7 @@ const HandleErrorSerializerFactory = () => ({
|
|
|
726
732
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
727
733
|
function cloneDeepWith(value, customizer) {
|
|
728
734
|
customizer = typeof customizer == "function" ? customizer : void 0;
|
|
729
|
-
return
|
|
735
|
+
return Criteria.baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
|
|
730
736
|
}
|
|
731
737
|
function baseGet(object, path) {
|
|
732
738
|
path = castPath(path, object);
|
|
@@ -741,7 +747,7 @@ function get(object, path, defaultValue) {
|
|
|
741
747
|
return result === void 0 ? defaultValue : result;
|
|
742
748
|
}
|
|
743
749
|
function baseSet(object, path, value, customizer) {
|
|
744
|
-
if (!
|
|
750
|
+
if (!Criteria.isObject(object)) {
|
|
745
751
|
return object;
|
|
746
752
|
}
|
|
747
753
|
path = castPath(path, object);
|
|
@@ -755,10 +761,10 @@ function baseSet(object, path, value, customizer) {
|
|
|
755
761
|
var objValue = nested[key];
|
|
756
762
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
757
763
|
if (newValue === void 0) {
|
|
758
|
-
newValue =
|
|
764
|
+
newValue = Criteria.isObject(objValue) ? objValue : Criteria.isIndex(path[index + 1]) ? [] : {};
|
|
759
765
|
}
|
|
760
766
|
}
|
|
761
|
-
|
|
767
|
+
Criteria.assignValue(nested, key, newValue);
|
|
762
768
|
nested = nested[key];
|
|
763
769
|
}
|
|
764
770
|
return object;
|
|
@@ -1023,7 +1029,7 @@ function parseArrayIndex(index) {
|
|
|
1023
1029
|
return Number.parseInt(index.replace("[", "").replace("]", ""));
|
|
1024
1030
|
}
|
|
1025
1031
|
const name = "@contena/meteor-admin-sdk";
|
|
1026
|
-
const version = "6.
|
|
1032
|
+
const version = "6.12.0";
|
|
1027
1033
|
const description = "The Meteor SDK for the Contena Administration.";
|
|
1028
1034
|
const keywords = [
|
|
1029
1035
|
"iframe",
|
|
@@ -1051,6 +1057,26 @@ const exports$1 = {
|
|
|
1051
1057
|
"import": "./es/location/index.js",
|
|
1052
1058
|
require: "./umd/location/index.js"
|
|
1053
1059
|
},
|
|
1060
|
+
"./es/context": {
|
|
1061
|
+
"import": "./es/context/index.js",
|
|
1062
|
+
require: "./umd/context/index.js"
|
|
1063
|
+
},
|
|
1064
|
+
"./es/window": {
|
|
1065
|
+
"import": "./es/window/index.js",
|
|
1066
|
+
require: "./umd/window/index.js"
|
|
1067
|
+
},
|
|
1068
|
+
"./es/telemetry": {
|
|
1069
|
+
"import": "./es/telemetry/index.js",
|
|
1070
|
+
require: "./umd/telemetry/index.js"
|
|
1071
|
+
},
|
|
1072
|
+
"./es/_private/context": {
|
|
1073
|
+
"import": "./es/_private/context/index.js",
|
|
1074
|
+
require: "./umd/_private/context/index.js"
|
|
1075
|
+
},
|
|
1076
|
+
"./es/_private/permissions": {
|
|
1077
|
+
"import": "./es/_private/permissions/index.js",
|
|
1078
|
+
require: "./umd/_private/permissions/index.js"
|
|
1079
|
+
},
|
|
1054
1080
|
"./es/_internals/privileges/missing-privileges-error": {
|
|
1055
1081
|
"import": "./es/_internals/privileges/missing-privileges-error.js",
|
|
1056
1082
|
require: "./umd/_internals/privileges/missing-privileges-error.js"
|
|
@@ -1107,8 +1133,7 @@ const files = [
|
|
|
1107
1133
|
"umd",
|
|
1108
1134
|
"es",
|
|
1109
1135
|
"cdn",
|
|
1110
|
-
"NOTICE"
|
|
1111
|
-
"THIRD-PARTY-LICENSES"
|
|
1136
|
+
"NOTICE"
|
|
1112
1137
|
];
|
|
1113
1138
|
const scripts = {
|
|
1114
1139
|
build: "rm -rf es && rm -rf umd && rm -rf cdn && npm run build:umd && npm run build:es && npm run build:cdn",
|
|
@@ -1407,9 +1432,10 @@ function createSender(messageType, baseMessageOptions) {
|
|
|
1407
1432
|
}
|
|
1408
1433
|
const datasets = /* @__PURE__ */ new Map();
|
|
1409
1434
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
1410
|
-
if (window
|
|
1411
|
-
|
|
1435
|
+
if (typeof window === "undefined") {
|
|
1436
|
+
return;
|
|
1412
1437
|
}
|
|
1438
|
+
const themePin = window.parent !== window ? applyEmbeddedContext() : null;
|
|
1413
1439
|
handle("__registerWindow__", ({ sdkVersion: sdkVersion2 }, additionalOptions) => {
|
|
1414
1440
|
let source;
|
|
1415
1441
|
let origin;
|
|
@@ -1459,8 +1485,8 @@ const datasets = /* @__PURE__ */ new Map();
|
|
|
1459
1485
|
yield send("__registerWindow__", {
|
|
1460
1486
|
sdkVersion: packageVersion
|
|
1461
1487
|
});
|
|
1462
|
-
if (
|
|
1463
|
-
startAutoThemeSync();
|
|
1488
|
+
if (themePin) {
|
|
1489
|
+
startAutoThemeSync(themePin);
|
|
1464
1490
|
}
|
|
1465
1491
|
}))().catch((e) => console.error(e));
|
|
1466
1492
|
function isThemeValue(value) {
|
|
@@ -1486,9 +1512,12 @@ function startThemeSync(target) {
|
|
|
1486
1512
|
});
|
|
1487
1513
|
return { initialFetch, stop };
|
|
1488
1514
|
}
|
|
1489
|
-
function startAutoThemeSync() {
|
|
1515
|
+
function startAutoThemeSync(pin = { theme: null, scheme: null }) {
|
|
1490
1516
|
const target = document.documentElement;
|
|
1491
|
-
if (target.dataset.theme) {
|
|
1517
|
+
if (target.dataset.theme && target.dataset.theme !== pin.theme) {
|
|
1518
|
+
if (pin.scheme && target.style.getPropertyValue("color-scheme") === pin.scheme) {
|
|
1519
|
+
target.style.removeProperty("color-scheme");
|
|
1520
|
+
}
|
|
1492
1521
|
return () => {
|
|
1493
1522
|
};
|
|
1494
1523
|
}
|
|
@@ -1502,23 +1531,34 @@ function applyEmbeddedContext() {
|
|
|
1502
1531
|
if (root.dataset.embedded === void 0) {
|
|
1503
1532
|
root.dataset.embedded = "";
|
|
1504
1533
|
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1534
|
+
const pin = { theme: null, scheme: null };
|
|
1535
|
+
if (!root.dataset.theme) {
|
|
1536
|
+
const urlScheme = getColorScheme();
|
|
1537
|
+
if (isThemeValue(urlScheme)) {
|
|
1538
|
+
applyTheme(root, urlScheme);
|
|
1539
|
+
pin.theme = urlScheme;
|
|
1540
|
+
pin.scheme = urlScheme;
|
|
1541
|
+
} else {
|
|
1542
|
+
root.style.setProperty("color-scheme", "light");
|
|
1543
|
+
pin.scheme = "light";
|
|
1544
|
+
}
|
|
1507
1545
|
}
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
"html[data-embedded] {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1546
|
+
if (!document.getElementById("meteor-admin-sdk-embedded")) {
|
|
1547
|
+
const style = document.createElement("style");
|
|
1548
|
+
style.id = "meteor-admin-sdk-embedded";
|
|
1549
|
+
style.textContent = "html[data-embedded] body { background: unset; }";
|
|
1550
|
+
document.head.appendChild(style);
|
|
1551
|
+
}
|
|
1552
|
+
return pin;
|
|
1553
|
+
}
|
|
1554
|
+
if (typeof window !== "undefined") {
|
|
1555
|
+
window._swsdk = {
|
|
1556
|
+
sourceRegistry,
|
|
1557
|
+
subscriberRegistry,
|
|
1558
|
+
datasets,
|
|
1559
|
+
adminExtensions
|
|
1560
|
+
};
|
|
1515
1561
|
}
|
|
1516
|
-
window._swsdk = {
|
|
1517
|
-
sourceRegistry,
|
|
1518
|
-
subscriberRegistry,
|
|
1519
|
-
datasets,
|
|
1520
|
-
adminExtensions
|
|
1521
|
-
};
|
|
1522
1562
|
function isMessageData(eventData) {
|
|
1523
1563
|
const contenaMessageData = eventData;
|
|
1524
1564
|
return !!contenaMessageData._type && !!contenaMessageData._data && !!contenaMessageData._callbackId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../mt-base-field.css';
|
|
2
2
|
"use strict";
|
|
3
|
-
const MtBaseField = require("../mt-base-field-
|
|
3
|
+
const MtBaseField = require("../mt-base-field-b1264b8e.js");
|
|
4
4
|
require("vue");
|
|
5
5
|
require("../_plugin-vue_export-helper-9c783a34.js");
|
|
6
6
|
require("./MtInheritanceSwitch.js");
|
package/dist/common/MtCard.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
title?: string;
|
|
3
4
|
subtitle?: string;
|
|
@@ -14,8 +15,8 @@ declare function __VLS_template(): {
|
|
|
14
15
|
grid(): void;
|
|
15
16
|
footer(): void;
|
|
16
17
|
default(): void;
|
|
17
|
-
toolbar():
|
|
18
|
-
tabs():
|
|
18
|
+
toolbar?(): VNode[];
|
|
19
|
+
tabs?(): VNode[];
|
|
19
20
|
"before-card"(): void;
|
|
20
21
|
"after-card"(): void;
|
|
21
22
|
headerRight(): void;
|
|
@@ -27,8 +28,8 @@ declare function __VLS_template(): {
|
|
|
27
28
|
grid(): void;
|
|
28
29
|
footer(): void;
|
|
29
30
|
default(): void;
|
|
30
|
-
toolbar():
|
|
31
|
-
tabs():
|
|
31
|
+
toolbar?(): VNode[];
|
|
32
|
+
tabs?(): VNode[];
|
|
32
33
|
"before-card"(): void;
|
|
33
34
|
"after-card"(): void;
|
|
34
35
|
headerRight(): void;
|
package/dist/common/MtCard.js
CHANGED
|
@@ -6,11 +6,13 @@ const MtLoader = require("./MtLoader.js");
|
|
|
6
6
|
const mtIcon_vue_vue_type_style_index_0_lang = require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
|
|
7
7
|
const MtText = require("./MtText.js");
|
|
8
8
|
const useFutureFlags = require("../useFutureFlags-bd0f8e37.js");
|
|
9
|
+
const MtBaseField = require("../mt-base-field-b1264b8e.js");
|
|
9
10
|
const vueI18n = require("vue-i18n");
|
|
10
11
|
const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
|
|
11
12
|
require("./MtPopover.js");
|
|
12
13
|
require("./MtCheckbox.js");
|
|
13
|
-
require("
|
|
14
|
+
require("./MtFieldError.js");
|
|
15
|
+
require("../id-8e80f112.js");
|
|
14
16
|
require("./MtInheritanceSwitch.js");
|
|
15
17
|
require("./MtTooltip.js");
|
|
16
18
|
require("../floating-ui.vue-48d5c774.js");
|
|
@@ -19,9 +21,7 @@ require("../useIsInsideTooltip-f4674e27.js");
|
|
|
19
21
|
require("../index-efdf1622.js");
|
|
20
22
|
require("./MtFieldCopyable.js");
|
|
21
23
|
require("../tooltip.directive-4ea0fee9.js");
|
|
22
|
-
require("../id-8e80f112.js");
|
|
23
24
|
require("./MtHelpText.js");
|
|
24
|
-
require("./MtFieldError.js");
|
|
25
25
|
require("../mt-switch.vue_vue_type_style_index_0_lang-c202621e.js");
|
|
26
26
|
require("./MtFieldLabel.js");
|
|
27
27
|
require("./MtPopoverItem.js");
|
|
@@ -41,8 +41,14 @@ const _hoisted_6 = {
|
|
|
41
41
|
key: 0,
|
|
42
42
|
class: "mt-card__context-menu"
|
|
43
43
|
};
|
|
44
|
-
const _hoisted_7 = {
|
|
45
|
-
|
|
44
|
+
const _hoisted_7 = {
|
|
45
|
+
key: 1,
|
|
46
|
+
class: "mt-card__tabs"
|
|
47
|
+
};
|
|
48
|
+
const _hoisted_8 = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "mt-card__toolbar"
|
|
51
|
+
};
|
|
46
52
|
const _hoisted_9 = { class: "mt-card__content" };
|
|
47
53
|
const _hoisted_10 = { class: "mt-card__footer" };
|
|
48
54
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -154,12 +160,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
154
160
|
})
|
|
155
161
|
])) : vue.createCommentVNode("", true)
|
|
156
162
|
])) : vue.createCommentVNode("", true),
|
|
157
|
-
vue.
|
|
163
|
+
vue.unref(MtBaseField.hasSlotContent)(slots.tabs) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
158
164
|
vue.renderSlot(_ctx.$slots, "tabs", {}, void 0, true)
|
|
159
|
-
]),
|
|
160
|
-
vue.
|
|
165
|
+
])) : vue.createCommentVNode("", true),
|
|
166
|
+
vue.unref(MtBaseField.hasSlotContent)(slots.toolbar) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
161
167
|
vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true)
|
|
162
|
-
]),
|
|
168
|
+
])) : vue.createCommentVNode("", true),
|
|
163
169
|
vue.createElementVNode("div", _hoisted_9, [
|
|
164
170
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
165
171
|
vue.renderSlot(_ctx.$slots, "grid", { title: _ctx.title }, void 0, true),
|
|
@@ -174,6 +180,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
180
|
};
|
|
175
181
|
}
|
|
176
182
|
});
|
|
177
|
-
const
|
|
178
|
-
const MtCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
183
|
+
const mtCard_vue_vue_type_style_index_0_scoped_5534e4b5_lang = "";
|
|
184
|
+
const MtCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-5534e4b5"]]);
|
|
179
185
|
module.exports = MtCard;
|
|
@@ -2,7 +2,7 @@ import '../mt-checkbox.css';
|
|
|
2
2
|
"use strict";
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const mtIcon_vue_vue_type_style_index_0_lang = require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
|
|
5
|
-
const MtBaseField = require("../mt-base-field-
|
|
5
|
+
const MtBaseField = require("../mt-base-field-b1264b8e.js");
|
|
6
6
|
const MtFieldError = require("./MtFieldError.js");
|
|
7
7
|
const id = require("../id-8e80f112.js");
|
|
8
8
|
const useFutureFlags = require("../useFutureFlags-bd0f8e37.js");
|
|
@@ -2,7 +2,7 @@ import '../mt-colorpicker.css';
|
|
|
2
2
|
"use strict";
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const debounce = require("../debounce-77fa4677.js");
|
|
5
|
-
const MtBaseField = require("../mt-base-field-
|
|
5
|
+
const MtBaseField = require("../mt-base-field-b1264b8e.js");
|
|
6
6
|
const MtFieldHint = require("./MtFieldHint.js");
|
|
7
7
|
const mtFloatingUi_vue_vue_type_style_index_0_lang = require("../mt-floating-ui.vue_vue_type_style_index_0_lang-2ea8a18a.js");
|
|
8
8
|
const MtText = require("./MtText.js");
|
|
@@ -5,7 +5,7 @@ require("vue");
|
|
|
5
5
|
require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
|
|
6
6
|
require("./MtPopover.js");
|
|
7
7
|
require("./MtCheckbox.js");
|
|
8
|
-
require("../mt-base-field-
|
|
8
|
+
require("../mt-base-field-b1264b8e.js");
|
|
9
9
|
require("./MtInheritanceSwitch.js");
|
|
10
10
|
require("./MtTooltip.js");
|
|
11
11
|
require("../floating-ui.vue-48d5c774.js");
|
|
@@ -5,7 +5,7 @@ require("vue-i18n");
|
|
|
5
5
|
const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
|
|
6
6
|
require("./MtCheckbox.js");
|
|
7
7
|
require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
|
|
8
|
-
require("../mt-base-field-
|
|
8
|
+
require("../mt-base-field-b1264b8e.js");
|
|
9
9
|
require("./MtInheritanceSwitch.js");
|
|
10
10
|
require("./MtTooltip.js");
|
|
11
11
|
require("../floating-ui.vue-48d5c774.js");
|
|
@@ -7,6 +7,7 @@ import { BadgeColumnDefinition } from './renderer/mt-data-table-badge-renderer';
|
|
|
7
7
|
import { PriceColumnDefinition } from './renderer/mt-data-table-price-renderer';
|
|
8
8
|
import { SegmentedControlActionsProp } from '../mt-segmented-control/mt-segmented-control';
|
|
9
9
|
import { Filter } from './mt-data-table.interfaces';
|
|
10
|
+
import { hasSlotContent } from '../../utils/slot';
|
|
10
11
|
export interface BaseColumnDefinition {
|
|
11
12
|
label: string;
|
|
12
13
|
property: string;
|
|
@@ -478,6 +479,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
478
479
|
emptyData: import('vue').ComputedRef<{}[]>;
|
|
479
480
|
getRealIndex: (index: number) => number;
|
|
480
481
|
isDragging: Ref<boolean, boolean>;
|
|
482
|
+
showToolbar: () => boolean;
|
|
481
483
|
filterChildViews: import('vue').ComputedRef<{
|
|
482
484
|
name: string;
|
|
483
485
|
title: string;
|
|
@@ -883,8 +885,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
883
885
|
grid(): void;
|
|
884
886
|
footer(): void;
|
|
885
887
|
default(): void;
|
|
886
|
-
toolbar():
|
|
887
|
-
tabs():
|
|
888
|
+
toolbar?(): import('vue').VNode[];
|
|
889
|
+
tabs?(): import('vue').VNode[];
|
|
888
890
|
"before-card"(): void;
|
|
889
891
|
"after-card"(): void;
|
|
890
892
|
headerRight(): void;
|
|
@@ -896,8 +898,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
896
898
|
grid(): void;
|
|
897
899
|
footer(): void;
|
|
898
900
|
default(): void;
|
|
899
|
-
toolbar():
|
|
900
|
-
tabs():
|
|
901
|
+
toolbar?(): import('vue').VNode[];
|
|
902
|
+
tabs?(): import('vue').VNode[];
|
|
901
903
|
"before-card"(): void;
|
|
902
904
|
"after-card"(): void;
|
|
903
905
|
headerRight(): void;
|
|
@@ -1473,7 +1475,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1473
1475
|
default: null;
|
|
1474
1476
|
};
|
|
1475
1477
|
}>, {
|
|
1476
|
-
hasSlotContent: typeof
|
|
1478
|
+
hasSlotContent: typeof hasSlotContent;
|
|
1477
1479
|
future: {
|
|
1478
1480
|
removeCardWidth: boolean;
|
|
1479
1481
|
removeDefaultMargin: boolean;
|
|
@@ -2701,7 +2703,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2701
2703
|
default: null;
|
|
2702
2704
|
};
|
|
2703
2705
|
}>, {
|
|
2704
|
-
hasSlotContent: typeof
|
|
2706
|
+
hasSlotContent: typeof hasSlotContent;
|
|
2705
2707
|
future: {
|
|
2706
2708
|
removeCardWidth: boolean;
|
|
2707
2709
|
removeDefaultMargin: boolean;
|
|
@@ -3623,7 +3625,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3623
3625
|
default: null;
|
|
3624
3626
|
};
|
|
3625
3627
|
}>, {
|
|
3626
|
-
hasSlotContent: typeof
|
|
3628
|
+
hasSlotContent: typeof hasSlotContent;
|
|
3627
3629
|
future: {
|
|
3628
3630
|
removeCardWidth: boolean;
|
|
3629
3631
|
removeDefaultMargin: boolean;
|
|
@@ -4460,7 +4462,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4460
4462
|
default: null;
|
|
4461
4463
|
};
|
|
4462
4464
|
}>, {
|
|
4463
|
-
hasSlotContent: typeof
|
|
4465
|
+
hasSlotContent: typeof hasSlotContent;
|
|
4464
4466
|
future: {
|
|
4465
4467
|
removeCardWidth: boolean;
|
|
4466
4468
|
removeDefaultMargin: boolean;
|
|
@@ -5443,7 +5445,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
5443
5445
|
default: null;
|
|
5444
5446
|
};
|
|
5445
5447
|
}>, {
|
|
5446
|
-
hasSlotContent: typeof
|
|
5448
|
+
hasSlotContent: typeof hasSlotContent;
|
|
5447
5449
|
future: {
|
|
5448
5450
|
removeCardWidth: boolean;
|
|
5449
5451
|
removeDefaultMargin: boolean;
|
|
@@ -6421,7 +6423,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
6421
6423
|
default: null;
|
|
6422
6424
|
};
|
|
6423
6425
|
}>, {
|
|
6424
|
-
hasSlotContent: typeof
|
|
6426
|
+
hasSlotContent: typeof hasSlotContent;
|
|
6425
6427
|
future: {
|
|
6426
6428
|
removeCardWidth: boolean;
|
|
6427
6429
|
removeDefaultMargin: boolean;
|
|
@@ -7199,7 +7201,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7199
7201
|
default: null;
|
|
7200
7202
|
};
|
|
7201
7203
|
}>, {
|
|
7202
|
-
hasSlotContent: typeof
|
|
7204
|
+
hasSlotContent: typeof hasSlotContent;
|
|
7203
7205
|
future: {
|
|
7204
7206
|
removeCardWidth: boolean;
|
|
7205
7207
|
removeDefaultMargin: boolean;
|
|
@@ -8036,7 +8038,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8036
8038
|
default: null;
|
|
8037
8039
|
};
|
|
8038
8040
|
}>, {
|
|
8039
|
-
hasSlotContent: typeof
|
|
8041
|
+
hasSlotContent: typeof hasSlotContent;
|
|
8040
8042
|
future: {
|
|
8041
8043
|
removeCardWidth: boolean;
|
|
8042
8044
|
removeDefaultMargin: boolean;
|
|
@@ -9019,7 +9021,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9019
9021
|
default: null;
|
|
9020
9022
|
};
|
|
9021
9023
|
}>, {
|
|
9022
|
-
hasSlotContent: typeof
|
|
9024
|
+
hasSlotContent: typeof hasSlotContent;
|
|
9023
9025
|
future: {
|
|
9024
9026
|
removeCardWidth: boolean;
|
|
9025
9027
|
removeDefaultMargin: boolean;
|
|
@@ -9997,7 +9999,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9997
9999
|
default: null;
|
|
9998
10000
|
};
|
|
9999
10001
|
}>, {
|
|
10000
|
-
hasSlotContent: typeof
|
|
10002
|
+
hasSlotContent: typeof hasSlotContent;
|
|
10001
10003
|
future: {
|
|
10002
10004
|
removeCardWidth: boolean;
|
|
10003
10005
|
removeDefaultMargin: boolean;
|
|
@@ -10979,7 +10981,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10979
10981
|
default: null;
|
|
10980
10982
|
};
|
|
10981
10983
|
}>, {
|
|
10982
|
-
hasSlotContent: typeof
|
|
10984
|
+
hasSlotContent: typeof hasSlotContent;
|
|
10983
10985
|
future: {
|
|
10984
10986
|
removeCardWidth: boolean;
|
|
10985
10987
|
removeDefaultMargin: boolean;
|
|
@@ -11619,7 +11621,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11619
11621
|
default: null;
|
|
11620
11622
|
};
|
|
11621
11623
|
}>, {
|
|
11622
|
-
hasSlotContent: typeof
|
|
11624
|
+
hasSlotContent: typeof hasSlotContent;
|
|
11623
11625
|
future: {
|
|
11624
11626
|
removeCardWidth: boolean;
|
|
11625
11627
|
removeDefaultMargin: boolean;
|
|
@@ -12267,7 +12269,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12267
12269
|
default: null;
|
|
12268
12270
|
};
|
|
12269
12271
|
}>, {
|
|
12270
|
-
hasSlotContent: typeof
|
|
12272
|
+
hasSlotContent: typeof hasSlotContent;
|
|
12271
12273
|
future: {
|
|
12272
12274
|
removeCardWidth: boolean;
|
|
12273
12275
|
removeDefaultMargin: boolean;
|
|
@@ -13104,7 +13106,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13104
13106
|
default: null;
|
|
13105
13107
|
};
|
|
13106
13108
|
}>, {
|
|
13107
|
-
hasSlotContent: typeof
|
|
13109
|
+
hasSlotContent: typeof hasSlotContent;
|
|
13108
13110
|
future: {
|
|
13109
13111
|
removeCardWidth: boolean;
|
|
13110
13112
|
removeDefaultMargin: boolean;
|