@saasicat/ui-vue 0.7.0 → 0.9.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/dist/{chunk-A3W2N26K.js → chunk-66BUSVC5.js} +68 -217
- package/dist/{chunk-X5SQ5HMB.js → chunk-TBLXKSTR.js} +0 -137
- package/dist/{chunk-QZOSDCNP.js → chunk-TY2WYKME.js} +1 -1
- package/dist/client/index.cjs +180 -463
- package/dist/client/index.d.cts +32 -57
- package/dist/client/index.d.ts +32 -57
- package/dist/client/index.js +4 -6
- package/dist/index.cjs +273 -580
- package/dist/index.d.cts +10 -55
- package/dist/index.d.ts +10 -55
- package/dist/index.js +76 -101
- package/dist/{messages-7b0P8W75.d.ts → messages-BIYw32u1.d.cts} +0 -67
- package/dist/{messages-7b0P8W75.d.cts → messages-BIYw32u1.d.ts} +0 -67
- package/dist/quasar/index.cjs +0 -136
- package/dist/quasar/index.d.cts +2 -2
- package/dist/quasar/index.d.ts +2 -2
- package/dist/quasar/index.js +2 -2
- package/dist/{use-super-admin-i18n-B3v3-SWZ.d.ts → use-super-admin-i18n-CWNu_W3u.d.ts} +1 -1
- package/dist/{use-super-admin-i18n-DMktRVEt.d.cts → use-super-admin-i18n-DL_qI1BY.d.cts} +1 -1
- package/package.json +5 -5
- package/src/client/admin-resource-client.ts +112 -0
- package/src/client/i18n/messages/nav.ts +0 -2
- package/src/client/i18n/messages/plan-versions.ts +0 -143
- package/src/client/index.ts +1 -2
- package/src/client/nav-builder.ts +9 -4
- package/src/index.ts +0 -1
- package/src/pages-standard/AdminLayout.vue +1 -1
- package/src/pages-standard/plan-versions/PlanVersionsDiff.vue +1 -1
- package/src/pages-standard/plan-versions/PlanVersionsTimeline.vue +1 -1
- package/src/pages-standard/plan-versions/catalog-history.types.ts +37 -0
- package/src/pages-standard/plan-versions/format.ts +2 -38
- package/src/client/plan-versions-catalog.ts +0 -380
- package/src/pages-standard/PlanVersionsPage.vue +0 -220
- package/src/pages-standard/plan-versions/PlanVersionHeader.vue +0 -309
- package/src/pages-standard/plan-versions/PlanVersionStatusBadge.vue +0 -48
- package/src/pages-standard/plan-versions/PlanVersionsAudit.vue +0 -326
- package/src/pages-standard/plan-versions/PlanVersionsKpi.vue +0 -65
- package/src/pages-standard/plan-versions/PlanVersionsList.vue +0 -315
- package/src/pages-standard/plan-versions/PlanVersionsMatrix.vue +0 -261
- package/src/pages-standard/plan-versions/types.ts +0 -33
- package/src/vue/use-plan-versions.ts +0 -83
package/dist/index.js
CHANGED
|
@@ -13,14 +13,13 @@ import {
|
|
|
13
13
|
MissingHandlerError,
|
|
14
14
|
buildRoutes,
|
|
15
15
|
buildSidebar,
|
|
16
|
-
|
|
16
|
+
createAdminResourceClient,
|
|
17
17
|
defaultSectionOrder,
|
|
18
18
|
getJson,
|
|
19
|
-
listOpenDrafts,
|
|
20
19
|
postJson,
|
|
21
20
|
resolveExtension,
|
|
22
21
|
trimTrailingSlashes
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-66BUSVC5.js";
|
|
24
23
|
import {
|
|
25
24
|
SUPER_ADMIN_ACTIONS_KEY,
|
|
26
25
|
SUPER_ADMIN_BRAND_KEY,
|
|
@@ -35,7 +34,7 @@ import {
|
|
|
35
34
|
createSuperAdminI18n,
|
|
36
35
|
useSaMessages,
|
|
37
36
|
useSuperAdminI18n
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TY2WYKME.js";
|
|
39
38
|
import {
|
|
40
39
|
DEFAULT_SA_LOCALE,
|
|
41
40
|
SA_INTL_LOCALES,
|
|
@@ -48,7 +47,7 @@ import {
|
|
|
48
47
|
formatMessage,
|
|
49
48
|
mergeMessages,
|
|
50
49
|
resolveMessages
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-TBLXKSTR.js";
|
|
52
51
|
|
|
53
52
|
// src/vue/use-super-admin-context.ts
|
|
54
53
|
import { inject } from "vue";
|
|
@@ -825,30 +824,8 @@ function useSubscriptionDraft(options) {
|
|
|
825
824
|
};
|
|
826
825
|
}
|
|
827
826
|
|
|
828
|
-
// src/vue/use-plan-versions.ts
|
|
829
|
-
import { ref as ref9 } from "vue";
|
|
830
|
-
function buildVersionsComposable(label) {
|
|
831
|
-
return function(options) {
|
|
832
|
-
if (!options?.endpoint) {
|
|
833
|
-
throw new Error(
|
|
834
|
-
`${label}: \`endpoint\` is required (e.g. "/api/admin/${label}" or "/api/v1/admin/${label}"). The platform has no default because apps use different globalPrefix conventions.`
|
|
835
|
-
);
|
|
836
|
-
}
|
|
837
|
-
const filter = options.filter ?? ref9({});
|
|
838
|
-
const list = useApiList({
|
|
839
|
-
endpoint: options.endpoint,
|
|
840
|
-
filter,
|
|
841
|
-
http: options.http,
|
|
842
|
-
getAuthToken: options.getAuthToken,
|
|
843
|
-
autoLoad: options.autoLoad
|
|
844
|
-
});
|
|
845
|
-
return { ...list, filter };
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
var usePlanVersionsCatalog = buildVersionsComposable("plan-versions");
|
|
849
|
-
|
|
850
827
|
// src/vue/use-bulk-publish.ts
|
|
851
|
-
import { computed as computed3, ref as
|
|
828
|
+
import { computed as computed3, ref as ref9 } from "vue";
|
|
852
829
|
function useBulkPublish(options) {
|
|
853
830
|
const msg = useSaMessages("planVersions");
|
|
854
831
|
if (!options?.endpoints) {
|
|
@@ -858,7 +835,7 @@ function useBulkPublish(options) {
|
|
|
858
835
|
}
|
|
859
836
|
const http = options.http ?? defaultHttpClient();
|
|
860
837
|
const endpoints = options.endpoints;
|
|
861
|
-
const items =
|
|
838
|
+
const items = ref9([]);
|
|
862
839
|
const successCount = computed3(() => items.value.filter((i) => i.status === "published").length);
|
|
863
840
|
const failureCount = computed3(() => items.value.filter((i) => i.status === "failed").length);
|
|
864
841
|
const progress = computed3(() => {
|
|
@@ -924,7 +901,7 @@ function useBulkPublish(options) {
|
|
|
924
901
|
}
|
|
925
902
|
|
|
926
903
|
// src/vue/use-plan-editor.ts
|
|
927
|
-
import { computed as computed4, ref as
|
|
904
|
+
import { computed as computed4, ref as ref10 } from "vue";
|
|
928
905
|
var PlannedOnlyFeatureError = class extends Error {
|
|
929
906
|
constructor(violations) {
|
|
930
907
|
super(
|
|
@@ -944,7 +921,7 @@ function tierWeight(tier) {
|
|
|
944
921
|
function usePlanEditor(manifest, options = {}) {
|
|
945
922
|
const baseSet = new Set(options.baseFeatures ?? []);
|
|
946
923
|
const nonRegressive = options.nonRegressive ?? true;
|
|
947
|
-
const selectedFeatures =
|
|
924
|
+
const selectedFeatures = ref10(new Set(options.initialFeatures ?? []));
|
|
948
925
|
const catalogFeatures = manifest.planCatalogSnapshot.features ?? [];
|
|
949
926
|
const plannedOnlySet = new Set(catalogFeatures.filter((f) => f.plannedOnly).map((f) => f.key));
|
|
950
927
|
const availableFeatures = computed4(() => {
|
|
@@ -1001,12 +978,12 @@ function usePlanEditor(manifest, options = {}) {
|
|
|
1001
978
|
}
|
|
1002
979
|
|
|
1003
980
|
// src/vue/use-public-boot.ts
|
|
1004
|
-
import { ref as
|
|
981
|
+
import { ref as ref11 } from "vue";
|
|
1005
982
|
function usePublicBoot(options) {
|
|
1006
983
|
const loader = new BootLoader(options);
|
|
1007
|
-
const boot =
|
|
1008
|
-
const loading =
|
|
1009
|
-
const error =
|
|
984
|
+
const boot = ref11(null);
|
|
985
|
+
const loading = ref11(false);
|
|
986
|
+
const error = ref11(null);
|
|
1010
987
|
async function load() {
|
|
1011
988
|
loading.value = true;
|
|
1012
989
|
error.value = null;
|
|
@@ -1023,7 +1000,7 @@ function usePublicBoot(options) {
|
|
|
1023
1000
|
}
|
|
1024
1001
|
|
|
1025
1002
|
// src/vue/use-discovery.ts
|
|
1026
|
-
import { ref as
|
|
1003
|
+
import { ref as ref12 } from "vue";
|
|
1027
1004
|
var DiscoveryLoadError = class extends Error {
|
|
1028
1005
|
constructor(status, message) {
|
|
1029
1006
|
super(message);
|
|
@@ -1040,10 +1017,10 @@ function useDiscovery(options) {
|
|
|
1040
1017
|
);
|
|
1041
1018
|
}
|
|
1042
1019
|
const http = options.http ?? defaultHttpClient();
|
|
1043
|
-
const snapshot =
|
|
1044
|
-
const etag =
|
|
1045
|
-
const loading =
|
|
1046
|
-
const error =
|
|
1020
|
+
const snapshot = ref12(null);
|
|
1021
|
+
const etag = ref12(null);
|
|
1022
|
+
const loading = ref12(false);
|
|
1023
|
+
const error = ref12(null);
|
|
1047
1024
|
async function fetchSnapshot(includeEtag) {
|
|
1048
1025
|
loading.value = true;
|
|
1049
1026
|
error.value = null;
|
|
@@ -1110,7 +1087,7 @@ function useDiscovery(options) {
|
|
|
1110
1087
|
}
|
|
1111
1088
|
|
|
1112
1089
|
// src/vue/use-catalog-entries.ts
|
|
1113
|
-
import { ref as
|
|
1090
|
+
import { ref as ref13 } from "vue";
|
|
1114
1091
|
var CatalogEntriesApiError = class extends Error {
|
|
1115
1092
|
constructor(status, body, message) {
|
|
1116
1093
|
super(message);
|
|
@@ -1130,11 +1107,11 @@ function useCatalogEntries(options) {
|
|
|
1130
1107
|
}
|
|
1131
1108
|
const msg = useSaMessages("discovery");
|
|
1132
1109
|
const http = options.http ?? defaultHttpClient();
|
|
1133
|
-
const capabilities =
|
|
1134
|
-
const features =
|
|
1135
|
-
const quotas =
|
|
1136
|
-
const loading =
|
|
1137
|
-
const error =
|
|
1110
|
+
const capabilities = ref13([]);
|
|
1111
|
+
const features = ref13([]);
|
|
1112
|
+
const quotas = ref13([]);
|
|
1113
|
+
const loading = ref13(false);
|
|
1114
|
+
const error = ref13(null);
|
|
1138
1115
|
const base = `${options.adminEndpoint}/catalog`;
|
|
1139
1116
|
const pk = encodeURIComponent(options.projectKey);
|
|
1140
1117
|
function authHeaders() {
|
|
@@ -1260,7 +1237,7 @@ function useCatalogEntries(options) {
|
|
|
1260
1237
|
}
|
|
1261
1238
|
|
|
1262
1239
|
// src/vue/use-bundles.ts
|
|
1263
|
-
import { ref as
|
|
1240
|
+
import { ref as ref14 } from "vue";
|
|
1264
1241
|
var BundlesApiError = class extends Error {
|
|
1265
1242
|
constructor(status, body, message) {
|
|
1266
1243
|
super(message);
|
|
@@ -1281,9 +1258,9 @@ function useBundles(options) {
|
|
|
1281
1258
|
throw new Error("useBundles: `projectKey` is required.");
|
|
1282
1259
|
}
|
|
1283
1260
|
const http = options.http ?? defaultHttpClient();
|
|
1284
|
-
const bundles =
|
|
1285
|
-
const loading =
|
|
1286
|
-
const error =
|
|
1261
|
+
const bundles = ref14([]);
|
|
1262
|
+
const loading = ref14(false);
|
|
1263
|
+
const error = ref14(null);
|
|
1287
1264
|
const baseUrl = `${options.adminEndpoint}/catalog/bundles`;
|
|
1288
1265
|
function authHeaders() {
|
|
1289
1266
|
const token = options.getAuthToken?.();
|
|
@@ -1355,9 +1332,9 @@ function useBundleVersions(options) {
|
|
|
1355
1332
|
throw new Error("useBundleVersions: `bundleId` is required.");
|
|
1356
1333
|
}
|
|
1357
1334
|
const http = options.http ?? defaultHttpClient();
|
|
1358
|
-
const versions =
|
|
1359
|
-
const loading =
|
|
1360
|
-
const error =
|
|
1335
|
+
const versions = ref14([]);
|
|
1336
|
+
const loading = ref14(false);
|
|
1337
|
+
const error = ref14(null);
|
|
1361
1338
|
const bundleVersionsUrl = `${options.adminEndpoint}/catalog/bundles/${options.bundleId}/versions`;
|
|
1362
1339
|
const versionUrlBase = `${options.adminEndpoint}/catalog/bundle-versions`;
|
|
1363
1340
|
function authHeaders() {
|
|
@@ -1431,7 +1408,7 @@ function useBundleVersions(options) {
|
|
|
1431
1408
|
}
|
|
1432
1409
|
|
|
1433
1410
|
// src/vue/use-bundle-versions-map.ts
|
|
1434
|
-
import { ref as
|
|
1411
|
+
import { ref as ref15, watch as watch2 } from "vue";
|
|
1435
1412
|
function useBundleVersionsMap(options) {
|
|
1436
1413
|
if (!options?.adminEndpoint) {
|
|
1437
1414
|
throw new Error("useBundleVersionsMap: `adminEndpoint` is required.");
|
|
@@ -1440,9 +1417,9 @@ function useBundleVersionsMap(options) {
|
|
|
1440
1417
|
throw new Error("useBundleVersionsMap: `bundles` is required.");
|
|
1441
1418
|
}
|
|
1442
1419
|
const http = options.http ?? defaultHttpClient();
|
|
1443
|
-
const versionsByBundle =
|
|
1444
|
-
const loading =
|
|
1445
|
-
const error =
|
|
1420
|
+
const versionsByBundle = ref15({});
|
|
1421
|
+
const loading = ref15(false);
|
|
1422
|
+
const error = ref15(null);
|
|
1446
1423
|
function authHeaders() {
|
|
1447
1424
|
const token = options.getAuthToken?.();
|
|
1448
1425
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -1504,7 +1481,7 @@ function useBundleVersionsMap(options) {
|
|
|
1504
1481
|
}
|
|
1505
1482
|
|
|
1506
1483
|
// src/vue/use-tenant-subscription-bundles.ts
|
|
1507
|
-
import { ref as
|
|
1484
|
+
import { ref as ref16 } from "vue";
|
|
1508
1485
|
var TenantSubscriptionBundlesApiError = class extends Error {
|
|
1509
1486
|
constructor(status, body, message) {
|
|
1510
1487
|
super(message);
|
|
@@ -1523,9 +1500,9 @@ function useTenantSubscriptionBundles(options) {
|
|
|
1523
1500
|
}
|
|
1524
1501
|
const http = options.http ?? defaultHttpClient();
|
|
1525
1502
|
const baseUrl = `${options.billingEndpoint}/billing/subscription-bundles`;
|
|
1526
|
-
const bundles =
|
|
1527
|
-
const loading =
|
|
1528
|
-
const error =
|
|
1503
|
+
const bundles = ref16([]);
|
|
1504
|
+
const loading = ref16(false);
|
|
1505
|
+
const error = ref16(null);
|
|
1529
1506
|
function authHeaders() {
|
|
1530
1507
|
const token = options.getAuthToken?.();
|
|
1531
1508
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -1599,7 +1576,7 @@ function rehydrateDates(raw) {
|
|
|
1599
1576
|
}
|
|
1600
1577
|
|
|
1601
1578
|
// src/vue/use-marketing-projections.ts
|
|
1602
|
-
import { ref as
|
|
1579
|
+
import { ref as ref17 } from "vue";
|
|
1603
1580
|
var MarketingProjectionsApiError = class extends Error {
|
|
1604
1581
|
constructor(status, body, message) {
|
|
1605
1582
|
super(message);
|
|
@@ -1619,10 +1596,10 @@ function useMarketingProjections(options) {
|
|
|
1619
1596
|
}
|
|
1620
1597
|
const msg = useSaMessages("marketing");
|
|
1621
1598
|
const http = options.http ?? defaultHttpClient();
|
|
1622
|
-
const projections =
|
|
1623
|
-
const filter =
|
|
1624
|
-
const loading =
|
|
1625
|
-
const error =
|
|
1599
|
+
const projections = ref17([]);
|
|
1600
|
+
const filter = ref17({ ...options.filter });
|
|
1601
|
+
const loading = ref17(false);
|
|
1602
|
+
const error = ref17(null);
|
|
1626
1603
|
const baseUrl = `${options.adminEndpoint}/catalog/marketing-projections`;
|
|
1627
1604
|
function authHeaders() {
|
|
1628
1605
|
const token = options.getAuthToken?.();
|
|
@@ -1703,7 +1680,7 @@ function useMarketingProjections(options) {
|
|
|
1703
1680
|
}
|
|
1704
1681
|
|
|
1705
1682
|
// src/vue/use-promotions.ts
|
|
1706
|
-
import { ref as
|
|
1683
|
+
import { ref as ref18 } from "vue";
|
|
1707
1684
|
var PromotionsApiError = class extends Error {
|
|
1708
1685
|
constructor(status, body, message) {
|
|
1709
1686
|
super(message);
|
|
@@ -1723,9 +1700,9 @@ function usePromotions(options) {
|
|
|
1723
1700
|
}
|
|
1724
1701
|
const msg = useSaMessages("promos");
|
|
1725
1702
|
const http = options.http ?? defaultHttpClient();
|
|
1726
|
-
const promotions =
|
|
1727
|
-
const loading =
|
|
1728
|
-
const error =
|
|
1703
|
+
const promotions = ref18([]);
|
|
1704
|
+
const loading = ref18(false);
|
|
1705
|
+
const error = ref18(null);
|
|
1729
1706
|
const baseUrl = `${options.adminEndpoint}/catalog/promotions`;
|
|
1730
1707
|
const pk = encodeURIComponent(options.projectKey);
|
|
1731
1708
|
function authHeaders() {
|
|
@@ -1790,7 +1767,7 @@ function usePromotions(options) {
|
|
|
1790
1767
|
}
|
|
1791
1768
|
|
|
1792
1769
|
// src/vue/use-plans.ts
|
|
1793
|
-
import { ref as
|
|
1770
|
+
import { ref as ref19 } from "vue";
|
|
1794
1771
|
var PlansApiError = class extends Error {
|
|
1795
1772
|
constructor(status, body, message) {
|
|
1796
1773
|
super(message);
|
|
@@ -1811,10 +1788,10 @@ function usePlans(options) {
|
|
|
1811
1788
|
throw new Error("usePlans: `projectKey` is required.");
|
|
1812
1789
|
}
|
|
1813
1790
|
const http = options.http ?? defaultHttpClient();
|
|
1814
|
-
const plans =
|
|
1815
|
-
const loading =
|
|
1816
|
-
const error =
|
|
1817
|
-
const tenantCountsByPlanKey =
|
|
1791
|
+
const plans = ref19([]);
|
|
1792
|
+
const loading = ref19(false);
|
|
1793
|
+
const error = ref19(null);
|
|
1794
|
+
const tenantCountsByPlanKey = ref19({});
|
|
1818
1795
|
const baseUrl = `${options.adminEndpoint}/catalog/plans`;
|
|
1819
1796
|
function authHeaders() {
|
|
1820
1797
|
const token = options.getAuthToken?.();
|
|
@@ -1915,9 +1892,9 @@ function usePlanVersions(options) {
|
|
|
1915
1892
|
throw new Error("usePlanVersions: `planId` is required.");
|
|
1916
1893
|
}
|
|
1917
1894
|
const http = options.http ?? defaultHttpClient();
|
|
1918
|
-
const versions =
|
|
1919
|
-
const loading =
|
|
1920
|
-
const error =
|
|
1895
|
+
const versions = ref19([]);
|
|
1896
|
+
const loading = ref19(false);
|
|
1897
|
+
const error = ref19(null);
|
|
1921
1898
|
const planVersionsUrl = `${options.adminEndpoint}/catalog/plans/${options.planId}/versions`;
|
|
1922
1899
|
const versionUrlBase = `${options.adminEndpoint}/catalog/plan-versions`;
|
|
1923
1900
|
function authHeaders() {
|
|
@@ -2014,7 +1991,7 @@ function usePlanVersions(options) {
|
|
|
2014
1991
|
}
|
|
2015
1992
|
|
|
2016
1993
|
// src/vue/use-live-plan-versions.ts
|
|
2017
|
-
import { ref as
|
|
1994
|
+
import { ref as ref20, watch as watch3 } from "vue";
|
|
2018
1995
|
function useLivePlanVersions(options) {
|
|
2019
1996
|
if (!options?.adminEndpoint) {
|
|
2020
1997
|
throw new Error("useLivePlanVersions: `adminEndpoint` is required.");
|
|
@@ -2023,9 +2000,9 @@ function useLivePlanVersions(options) {
|
|
|
2023
2000
|
throw new Error("useLivePlanVersions: `plans` is required.");
|
|
2024
2001
|
}
|
|
2025
2002
|
const http = options.http ?? defaultHttpClient();
|
|
2026
|
-
const livePlanVersions =
|
|
2027
|
-
const loading =
|
|
2028
|
-
const error =
|
|
2003
|
+
const livePlanVersions = ref20({});
|
|
2004
|
+
const loading = ref20(false);
|
|
2005
|
+
const error = ref20(null);
|
|
2029
2006
|
function authHeaders() {
|
|
2030
2007
|
const token = options.getAuthToken?.();
|
|
2031
2008
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -2089,12 +2066,12 @@ function findLatestLive(versions) {
|
|
|
2089
2066
|
}
|
|
2090
2067
|
|
|
2091
2068
|
// src/vue/use-manifest.ts
|
|
2092
|
-
import { ref as
|
|
2069
|
+
import { ref as ref21 } from "vue";
|
|
2093
2070
|
function useManifest(options) {
|
|
2094
2071
|
const loader = new ManifestLoader(options);
|
|
2095
|
-
const manifest =
|
|
2096
|
-
const loading =
|
|
2097
|
-
const error =
|
|
2072
|
+
const manifest = ref21(null);
|
|
2073
|
+
const loading = ref21(false);
|
|
2074
|
+
const error = ref21(null);
|
|
2098
2075
|
async function load() {
|
|
2099
2076
|
loading.value = true;
|
|
2100
2077
|
error.value = null;
|
|
@@ -2229,7 +2206,7 @@ async function runFlow(def, row, registry, providers, successTemplate) {
|
|
|
2229
2206
|
}
|
|
2230
2207
|
|
|
2231
2208
|
// src/vue/use-platform-tenant-actions.ts
|
|
2232
|
-
import { computed as computed8, ref as
|
|
2209
|
+
import { computed as computed8, ref as ref22 } from "vue";
|
|
2233
2210
|
var DEFAULT_VISIBLE_FOR_ROW = (def, row) => {
|
|
2234
2211
|
if (def.actionKey === "tenants.suspend") return row.isActive;
|
|
2235
2212
|
if (def.actionKey === "tenants.reactivate") return !row.isActive;
|
|
@@ -2265,7 +2242,7 @@ function usePlatformTenantActions(options) {
|
|
|
2265
2242
|
const iconForActionKey = options.iconForActionKey ?? DEFAULT_ICON_FOR_ACTION_KEY;
|
|
2266
2243
|
const toneForActionKey = options.toneForActionKey ?? DEFAULT_TONE_FOR_ACTION_KEY;
|
|
2267
2244
|
const visibleForRow = options.visibleForRow ?? DEFAULT_VISIBLE_FOR_ROW;
|
|
2268
|
-
const mfa =
|
|
2245
|
+
const mfa = ref22({ show: false, description: "", error: "" });
|
|
2269
2246
|
let pendingMfaResolve = null;
|
|
2270
2247
|
function showMfaDialog(def, ctx) {
|
|
2271
2248
|
return new Promise((resolve) => {
|
|
@@ -2290,7 +2267,7 @@ function usePlatformTenantActions(options) {
|
|
|
2290
2267
|
pendingMfaResolve(null);
|
|
2291
2268
|
}
|
|
2292
2269
|
}
|
|
2293
|
-
const confirmDialog =
|
|
2270
|
+
const confirmDialog = ref22({
|
|
2294
2271
|
show: false,
|
|
2295
2272
|
def: null,
|
|
2296
2273
|
row: null
|
|
@@ -2371,12 +2348,12 @@ function usePlatformTenantActions(options) {
|
|
|
2371
2348
|
}
|
|
2372
2349
|
|
|
2373
2350
|
// src/vue/use-batch-columns.ts
|
|
2374
|
-
import { ref as
|
|
2351
|
+
import { ref as ref23, watch as watch4 } from "vue";
|
|
2375
2352
|
function useBatchColumns(manifest, tenantIds, options = {}) {
|
|
2376
2353
|
const fetcher = new BatchColumnFetcher(options);
|
|
2377
|
-
const data =
|
|
2378
|
-
const loading =
|
|
2379
|
-
const error =
|
|
2354
|
+
const data = ref23({});
|
|
2355
|
+
const loading = ref23(false);
|
|
2356
|
+
const error = ref23(null);
|
|
2380
2357
|
async function load() {
|
|
2381
2358
|
if (!manifest.value || tenantIds.value.length === 0) {
|
|
2382
2359
|
data.value = {};
|
|
@@ -2425,13 +2402,13 @@ function createPlatformLoaders(options) {
|
|
|
2425
2402
|
|
|
2426
2403
|
// src/vue/manifest-store-factory.ts
|
|
2427
2404
|
import { defineStore } from "pinia";
|
|
2428
|
-
import { ref as
|
|
2405
|
+
import { ref as ref24 } from "vue";
|
|
2429
2406
|
function createManifestStore(options) {
|
|
2430
2407
|
return defineStore(options.id ?? "admin-manifest", () => {
|
|
2431
|
-
const manifest =
|
|
2432
|
-
const loading =
|
|
2433
|
-
const error =
|
|
2434
|
-
const loaded =
|
|
2408
|
+
const manifest = ref24(null);
|
|
2409
|
+
const loading = ref24(false);
|
|
2410
|
+
const error = ref24(null);
|
|
2411
|
+
const loaded = ref24(false);
|
|
2435
2412
|
let inflight = null;
|
|
2436
2413
|
async function load() {
|
|
2437
2414
|
loading.value = true;
|
|
@@ -2855,7 +2832,7 @@ export {
|
|
|
2855
2832
|
buildQuotaRegistry,
|
|
2856
2833
|
buildRoutes,
|
|
2857
2834
|
buildSidebar,
|
|
2858
|
-
|
|
2835
|
+
createAdminResourceClient,
|
|
2859
2836
|
createAdminRoutes,
|
|
2860
2837
|
createManifestStore,
|
|
2861
2838
|
createPlatformLoaders,
|
|
@@ -2871,7 +2848,6 @@ export {
|
|
|
2871
2848
|
formatCurrency,
|
|
2872
2849
|
formatMessage,
|
|
2873
2850
|
getJson,
|
|
2874
|
-
listOpenDrafts,
|
|
2875
2851
|
mergeMessages,
|
|
2876
2852
|
postJson,
|
|
2877
2853
|
provideEntitlement,
|
|
@@ -2896,7 +2872,6 @@ export {
|
|
|
2896
2872
|
useNav,
|
|
2897
2873
|
usePlanEditor,
|
|
2898
2874
|
usePlanVersions,
|
|
2899
|
-
usePlanVersionsCatalog,
|
|
2900
2875
|
usePlans,
|
|
2901
2876
|
usePlatformTenantActions,
|
|
2902
2877
|
usePromotions,
|
|
@@ -1030,21 +1030,6 @@ declare const planEditorMessages: Record<SaLocale, {
|
|
|
1030
1030
|
|
|
1031
1031
|
declare const planVersionsMessages: Record<SaLocale, {
|
|
1032
1032
|
compareEnd: string;
|
|
1033
|
-
page: {
|
|
1034
|
-
loadingCatalog: string;
|
|
1035
|
-
noAuditLoader: string;
|
|
1036
|
-
};
|
|
1037
|
-
header: {
|
|
1038
|
-
modeList: string;
|
|
1039
|
-
modeMatrix: string;
|
|
1040
|
-
modeAudit: string;
|
|
1041
|
-
publishedOn: string;
|
|
1042
|
-
openDrafts: string;
|
|
1043
|
-
regressionOne: string;
|
|
1044
|
-
regressionMany: string;
|
|
1045
|
-
startPublishFlow: string;
|
|
1046
|
-
compareModeHint: string;
|
|
1047
|
-
};
|
|
1048
1033
|
status: {
|
|
1049
1034
|
draft: string;
|
|
1050
1035
|
active: string;
|
|
@@ -1058,29 +1043,6 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1058
1043
|
unknown: string;
|
|
1059
1044
|
compareHint: string;
|
|
1060
1045
|
};
|
|
1061
|
-
list: {
|
|
1062
|
-
kpiPlans: string;
|
|
1063
|
-
kpiSelfService: string;
|
|
1064
|
-
kpiOfTotal: string;
|
|
1065
|
-
kpiFeaturesTotal: string;
|
|
1066
|
-
missingPlansLabel: string;
|
|
1067
|
-
missingPlansHint: string;
|
|
1068
|
-
createDraftFor: string;
|
|
1069
|
-
colPlan: string;
|
|
1070
|
-
colPriceNet: string;
|
|
1071
|
-
colFeatures: string;
|
|
1072
|
-
draftHintLabel: string;
|
|
1073
|
-
draftHintBefore: string;
|
|
1074
|
-
draftHintEditButton: string;
|
|
1075
|
-
draftHintMiddle: string;
|
|
1076
|
-
draftHintPublishFlow: string;
|
|
1077
|
-
draftHintAfter: string;
|
|
1078
|
-
};
|
|
1079
|
-
matrix: {
|
|
1080
|
-
colFeature: string;
|
|
1081
|
-
perMonthShort: string;
|
|
1082
|
-
fallbackGroup: string;
|
|
1083
|
-
};
|
|
1084
1046
|
diff: {
|
|
1085
1047
|
legend: string;
|
|
1086
1048
|
plansChanged: string;
|
|
@@ -1104,24 +1066,10 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1104
1066
|
yearlyNet: string;
|
|
1105
1067
|
unitSize: string;
|
|
1106
1068
|
};
|
|
1107
|
-
audit: {
|
|
1108
|
-
title: string;
|
|
1109
|
-
eventCount: string;
|
|
1110
|
-
loading: string;
|
|
1111
|
-
empty: string;
|
|
1112
|
-
actionPlanPublished: string;
|
|
1113
|
-
actionPlanDraftCreated: string;
|
|
1114
|
-
actionPlanDraftUpdated: string;
|
|
1115
|
-
actionPlanDraftDeleted: string;
|
|
1116
|
-
actionCatalogPublished: string;
|
|
1117
|
-
detailRegression: string;
|
|
1118
|
-
detailFieldsChanged: string;
|
|
1119
|
-
};
|
|
1120
1069
|
bulkPublish: {
|
|
1121
1070
|
changeNoteRequired: string;
|
|
1122
1071
|
};
|
|
1123
1072
|
format: {
|
|
1124
|
-
priceIndividual: string;
|
|
1125
1073
|
today: string;
|
|
1126
1074
|
yesterday: string;
|
|
1127
1075
|
daysAgo: string;
|
|
@@ -1131,21 +1079,6 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1131
1079
|
yearsAgoOne: string;
|
|
1132
1080
|
yearsAgoMany: string;
|
|
1133
1081
|
};
|
|
1134
|
-
catalog: {
|
|
1135
|
-
draftsLabel: string;
|
|
1136
|
-
draftsTitleEmpty: string;
|
|
1137
|
-
draftsTitleOne: string;
|
|
1138
|
-
draftsTitleMany: string;
|
|
1139
|
-
draftsDescriptionEmpty: string;
|
|
1140
|
-
draftsDescription: string;
|
|
1141
|
-
activeLabel: string;
|
|
1142
|
-
activeTitle: string;
|
|
1143
|
-
activeDescription: string;
|
|
1144
|
-
publishEvent: string;
|
|
1145
|
-
publishEventSingle: string;
|
|
1146
|
-
publishEventMultiple: string;
|
|
1147
|
-
reconstructedSnapshot: string;
|
|
1148
|
-
};
|
|
1149
1082
|
}>;
|
|
1150
1083
|
|
|
1151
1084
|
declare const plansMessages: Record<SaLocale, {
|
|
@@ -1030,21 +1030,6 @@ declare const planEditorMessages: Record<SaLocale, {
|
|
|
1030
1030
|
|
|
1031
1031
|
declare const planVersionsMessages: Record<SaLocale, {
|
|
1032
1032
|
compareEnd: string;
|
|
1033
|
-
page: {
|
|
1034
|
-
loadingCatalog: string;
|
|
1035
|
-
noAuditLoader: string;
|
|
1036
|
-
};
|
|
1037
|
-
header: {
|
|
1038
|
-
modeList: string;
|
|
1039
|
-
modeMatrix: string;
|
|
1040
|
-
modeAudit: string;
|
|
1041
|
-
publishedOn: string;
|
|
1042
|
-
openDrafts: string;
|
|
1043
|
-
regressionOne: string;
|
|
1044
|
-
regressionMany: string;
|
|
1045
|
-
startPublishFlow: string;
|
|
1046
|
-
compareModeHint: string;
|
|
1047
|
-
};
|
|
1048
1033
|
status: {
|
|
1049
1034
|
draft: string;
|
|
1050
1035
|
active: string;
|
|
@@ -1058,29 +1043,6 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1058
1043
|
unknown: string;
|
|
1059
1044
|
compareHint: string;
|
|
1060
1045
|
};
|
|
1061
|
-
list: {
|
|
1062
|
-
kpiPlans: string;
|
|
1063
|
-
kpiSelfService: string;
|
|
1064
|
-
kpiOfTotal: string;
|
|
1065
|
-
kpiFeaturesTotal: string;
|
|
1066
|
-
missingPlansLabel: string;
|
|
1067
|
-
missingPlansHint: string;
|
|
1068
|
-
createDraftFor: string;
|
|
1069
|
-
colPlan: string;
|
|
1070
|
-
colPriceNet: string;
|
|
1071
|
-
colFeatures: string;
|
|
1072
|
-
draftHintLabel: string;
|
|
1073
|
-
draftHintBefore: string;
|
|
1074
|
-
draftHintEditButton: string;
|
|
1075
|
-
draftHintMiddle: string;
|
|
1076
|
-
draftHintPublishFlow: string;
|
|
1077
|
-
draftHintAfter: string;
|
|
1078
|
-
};
|
|
1079
|
-
matrix: {
|
|
1080
|
-
colFeature: string;
|
|
1081
|
-
perMonthShort: string;
|
|
1082
|
-
fallbackGroup: string;
|
|
1083
|
-
};
|
|
1084
1046
|
diff: {
|
|
1085
1047
|
legend: string;
|
|
1086
1048
|
plansChanged: string;
|
|
@@ -1104,24 +1066,10 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1104
1066
|
yearlyNet: string;
|
|
1105
1067
|
unitSize: string;
|
|
1106
1068
|
};
|
|
1107
|
-
audit: {
|
|
1108
|
-
title: string;
|
|
1109
|
-
eventCount: string;
|
|
1110
|
-
loading: string;
|
|
1111
|
-
empty: string;
|
|
1112
|
-
actionPlanPublished: string;
|
|
1113
|
-
actionPlanDraftCreated: string;
|
|
1114
|
-
actionPlanDraftUpdated: string;
|
|
1115
|
-
actionPlanDraftDeleted: string;
|
|
1116
|
-
actionCatalogPublished: string;
|
|
1117
|
-
detailRegression: string;
|
|
1118
|
-
detailFieldsChanged: string;
|
|
1119
|
-
};
|
|
1120
1069
|
bulkPublish: {
|
|
1121
1070
|
changeNoteRequired: string;
|
|
1122
1071
|
};
|
|
1123
1072
|
format: {
|
|
1124
|
-
priceIndividual: string;
|
|
1125
1073
|
today: string;
|
|
1126
1074
|
yesterday: string;
|
|
1127
1075
|
daysAgo: string;
|
|
@@ -1131,21 +1079,6 @@ declare const planVersionsMessages: Record<SaLocale, {
|
|
|
1131
1079
|
yearsAgoOne: string;
|
|
1132
1080
|
yearsAgoMany: string;
|
|
1133
1081
|
};
|
|
1134
|
-
catalog: {
|
|
1135
|
-
draftsLabel: string;
|
|
1136
|
-
draftsTitleEmpty: string;
|
|
1137
|
-
draftsTitleOne: string;
|
|
1138
|
-
draftsTitleMany: string;
|
|
1139
|
-
draftsDescriptionEmpty: string;
|
|
1140
|
-
draftsDescription: string;
|
|
1141
|
-
activeLabel: string;
|
|
1142
|
-
activeTitle: string;
|
|
1143
|
-
activeDescription: string;
|
|
1144
|
-
publishEvent: string;
|
|
1145
|
-
publishEventSingle: string;
|
|
1146
|
-
publishEventMultiple: string;
|
|
1147
|
-
reconstructedSnapshot: string;
|
|
1148
|
-
};
|
|
1149
1082
|
}>;
|
|
1150
1083
|
|
|
1151
1084
|
declare const plansMessages: Record<SaLocale, {
|