@saasicat/ui-vue 0.6.0 → 0.8.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-7N3CJTOA.js} +7 -227
- 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 +112 -467
- package/dist/client/index.d.cts +4 -62
- package/dist/client/index.d.ts +4 -62
- package/dist/client/index.js +2 -6
- package/dist/index.cjs +204 -583
- package/dist/index.d.cts +10 -55
- package/dist/index.d.ts +10 -55
- package/dist/index.js +74 -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 +2 -2
- package/src/client/i18n/messages/nav.ts +0 -2
- package/src/client/i18n/messages/plan-versions.ts +0 -143
- package/src/client/index.ts +0 -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,12 @@ import {
|
|
|
13
13
|
MissingHandlerError,
|
|
14
14
|
buildRoutes,
|
|
15
15
|
buildSidebar,
|
|
16
|
-
buildSnapshots,
|
|
17
16
|
defaultSectionOrder,
|
|
18
17
|
getJson,
|
|
19
|
-
listOpenDrafts,
|
|
20
18
|
postJson,
|
|
21
19
|
resolveExtension,
|
|
22
20
|
trimTrailingSlashes
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7N3CJTOA.js";
|
|
24
22
|
import {
|
|
25
23
|
SUPER_ADMIN_ACTIONS_KEY,
|
|
26
24
|
SUPER_ADMIN_BRAND_KEY,
|
|
@@ -35,7 +33,7 @@ import {
|
|
|
35
33
|
createSuperAdminI18n,
|
|
36
34
|
useSaMessages,
|
|
37
35
|
useSuperAdminI18n
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TY2WYKME.js";
|
|
39
37
|
import {
|
|
40
38
|
DEFAULT_SA_LOCALE,
|
|
41
39
|
SA_INTL_LOCALES,
|
|
@@ -48,7 +46,7 @@ import {
|
|
|
48
46
|
formatMessage,
|
|
49
47
|
mergeMessages,
|
|
50
48
|
resolveMessages
|
|
51
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TBLXKSTR.js";
|
|
52
50
|
|
|
53
51
|
// src/vue/use-super-admin-context.ts
|
|
54
52
|
import { inject } from "vue";
|
|
@@ -825,30 +823,8 @@ function useSubscriptionDraft(options) {
|
|
|
825
823
|
};
|
|
826
824
|
}
|
|
827
825
|
|
|
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
826
|
// src/vue/use-bulk-publish.ts
|
|
851
|
-
import { computed as computed3, ref as
|
|
827
|
+
import { computed as computed3, ref as ref9 } from "vue";
|
|
852
828
|
function useBulkPublish(options) {
|
|
853
829
|
const msg = useSaMessages("planVersions");
|
|
854
830
|
if (!options?.endpoints) {
|
|
@@ -858,7 +834,7 @@ function useBulkPublish(options) {
|
|
|
858
834
|
}
|
|
859
835
|
const http = options.http ?? defaultHttpClient();
|
|
860
836
|
const endpoints = options.endpoints;
|
|
861
|
-
const items =
|
|
837
|
+
const items = ref9([]);
|
|
862
838
|
const successCount = computed3(() => items.value.filter((i) => i.status === "published").length);
|
|
863
839
|
const failureCount = computed3(() => items.value.filter((i) => i.status === "failed").length);
|
|
864
840
|
const progress = computed3(() => {
|
|
@@ -924,7 +900,7 @@ function useBulkPublish(options) {
|
|
|
924
900
|
}
|
|
925
901
|
|
|
926
902
|
// src/vue/use-plan-editor.ts
|
|
927
|
-
import { computed as computed4, ref as
|
|
903
|
+
import { computed as computed4, ref as ref10 } from "vue";
|
|
928
904
|
var PlannedOnlyFeatureError = class extends Error {
|
|
929
905
|
constructor(violations) {
|
|
930
906
|
super(
|
|
@@ -944,7 +920,7 @@ function tierWeight(tier) {
|
|
|
944
920
|
function usePlanEditor(manifest, options = {}) {
|
|
945
921
|
const baseSet = new Set(options.baseFeatures ?? []);
|
|
946
922
|
const nonRegressive = options.nonRegressive ?? true;
|
|
947
|
-
const selectedFeatures =
|
|
923
|
+
const selectedFeatures = ref10(new Set(options.initialFeatures ?? []));
|
|
948
924
|
const catalogFeatures = manifest.planCatalogSnapshot.features ?? [];
|
|
949
925
|
const plannedOnlySet = new Set(catalogFeatures.filter((f) => f.plannedOnly).map((f) => f.key));
|
|
950
926
|
const availableFeatures = computed4(() => {
|
|
@@ -1001,12 +977,12 @@ function usePlanEditor(manifest, options = {}) {
|
|
|
1001
977
|
}
|
|
1002
978
|
|
|
1003
979
|
// src/vue/use-public-boot.ts
|
|
1004
|
-
import { ref as
|
|
980
|
+
import { ref as ref11 } from "vue";
|
|
1005
981
|
function usePublicBoot(options) {
|
|
1006
982
|
const loader = new BootLoader(options);
|
|
1007
|
-
const boot =
|
|
1008
|
-
const loading =
|
|
1009
|
-
const error =
|
|
983
|
+
const boot = ref11(null);
|
|
984
|
+
const loading = ref11(false);
|
|
985
|
+
const error = ref11(null);
|
|
1010
986
|
async function load() {
|
|
1011
987
|
loading.value = true;
|
|
1012
988
|
error.value = null;
|
|
@@ -1023,7 +999,7 @@ function usePublicBoot(options) {
|
|
|
1023
999
|
}
|
|
1024
1000
|
|
|
1025
1001
|
// src/vue/use-discovery.ts
|
|
1026
|
-
import { ref as
|
|
1002
|
+
import { ref as ref12 } from "vue";
|
|
1027
1003
|
var DiscoveryLoadError = class extends Error {
|
|
1028
1004
|
constructor(status, message) {
|
|
1029
1005
|
super(message);
|
|
@@ -1040,10 +1016,10 @@ function useDiscovery(options) {
|
|
|
1040
1016
|
);
|
|
1041
1017
|
}
|
|
1042
1018
|
const http = options.http ?? defaultHttpClient();
|
|
1043
|
-
const snapshot =
|
|
1044
|
-
const etag =
|
|
1045
|
-
const loading =
|
|
1046
|
-
const error =
|
|
1019
|
+
const snapshot = ref12(null);
|
|
1020
|
+
const etag = ref12(null);
|
|
1021
|
+
const loading = ref12(false);
|
|
1022
|
+
const error = ref12(null);
|
|
1047
1023
|
async function fetchSnapshot(includeEtag) {
|
|
1048
1024
|
loading.value = true;
|
|
1049
1025
|
error.value = null;
|
|
@@ -1110,7 +1086,7 @@ function useDiscovery(options) {
|
|
|
1110
1086
|
}
|
|
1111
1087
|
|
|
1112
1088
|
// src/vue/use-catalog-entries.ts
|
|
1113
|
-
import { ref as
|
|
1089
|
+
import { ref as ref13 } from "vue";
|
|
1114
1090
|
var CatalogEntriesApiError = class extends Error {
|
|
1115
1091
|
constructor(status, body, message) {
|
|
1116
1092
|
super(message);
|
|
@@ -1130,11 +1106,11 @@ function useCatalogEntries(options) {
|
|
|
1130
1106
|
}
|
|
1131
1107
|
const msg = useSaMessages("discovery");
|
|
1132
1108
|
const http = options.http ?? defaultHttpClient();
|
|
1133
|
-
const capabilities =
|
|
1134
|
-
const features =
|
|
1135
|
-
const quotas =
|
|
1136
|
-
const loading =
|
|
1137
|
-
const error =
|
|
1109
|
+
const capabilities = ref13([]);
|
|
1110
|
+
const features = ref13([]);
|
|
1111
|
+
const quotas = ref13([]);
|
|
1112
|
+
const loading = ref13(false);
|
|
1113
|
+
const error = ref13(null);
|
|
1138
1114
|
const base = `${options.adminEndpoint}/catalog`;
|
|
1139
1115
|
const pk = encodeURIComponent(options.projectKey);
|
|
1140
1116
|
function authHeaders() {
|
|
@@ -1260,7 +1236,7 @@ function useCatalogEntries(options) {
|
|
|
1260
1236
|
}
|
|
1261
1237
|
|
|
1262
1238
|
// src/vue/use-bundles.ts
|
|
1263
|
-
import { ref as
|
|
1239
|
+
import { ref as ref14 } from "vue";
|
|
1264
1240
|
var BundlesApiError = class extends Error {
|
|
1265
1241
|
constructor(status, body, message) {
|
|
1266
1242
|
super(message);
|
|
@@ -1281,9 +1257,9 @@ function useBundles(options) {
|
|
|
1281
1257
|
throw new Error("useBundles: `projectKey` is required.");
|
|
1282
1258
|
}
|
|
1283
1259
|
const http = options.http ?? defaultHttpClient();
|
|
1284
|
-
const bundles =
|
|
1285
|
-
const loading =
|
|
1286
|
-
const error =
|
|
1260
|
+
const bundles = ref14([]);
|
|
1261
|
+
const loading = ref14(false);
|
|
1262
|
+
const error = ref14(null);
|
|
1287
1263
|
const baseUrl = `${options.adminEndpoint}/catalog/bundles`;
|
|
1288
1264
|
function authHeaders() {
|
|
1289
1265
|
const token = options.getAuthToken?.();
|
|
@@ -1355,9 +1331,9 @@ function useBundleVersions(options) {
|
|
|
1355
1331
|
throw new Error("useBundleVersions: `bundleId` is required.");
|
|
1356
1332
|
}
|
|
1357
1333
|
const http = options.http ?? defaultHttpClient();
|
|
1358
|
-
const versions =
|
|
1359
|
-
const loading =
|
|
1360
|
-
const error =
|
|
1334
|
+
const versions = ref14([]);
|
|
1335
|
+
const loading = ref14(false);
|
|
1336
|
+
const error = ref14(null);
|
|
1361
1337
|
const bundleVersionsUrl = `${options.adminEndpoint}/catalog/bundles/${options.bundleId}/versions`;
|
|
1362
1338
|
const versionUrlBase = `${options.adminEndpoint}/catalog/bundle-versions`;
|
|
1363
1339
|
function authHeaders() {
|
|
@@ -1431,7 +1407,7 @@ function useBundleVersions(options) {
|
|
|
1431
1407
|
}
|
|
1432
1408
|
|
|
1433
1409
|
// src/vue/use-bundle-versions-map.ts
|
|
1434
|
-
import { ref as
|
|
1410
|
+
import { ref as ref15, watch as watch2 } from "vue";
|
|
1435
1411
|
function useBundleVersionsMap(options) {
|
|
1436
1412
|
if (!options?.adminEndpoint) {
|
|
1437
1413
|
throw new Error("useBundleVersionsMap: `adminEndpoint` is required.");
|
|
@@ -1440,9 +1416,9 @@ function useBundleVersionsMap(options) {
|
|
|
1440
1416
|
throw new Error("useBundleVersionsMap: `bundles` is required.");
|
|
1441
1417
|
}
|
|
1442
1418
|
const http = options.http ?? defaultHttpClient();
|
|
1443
|
-
const versionsByBundle =
|
|
1444
|
-
const loading =
|
|
1445
|
-
const error =
|
|
1419
|
+
const versionsByBundle = ref15({});
|
|
1420
|
+
const loading = ref15(false);
|
|
1421
|
+
const error = ref15(null);
|
|
1446
1422
|
function authHeaders() {
|
|
1447
1423
|
const token = options.getAuthToken?.();
|
|
1448
1424
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -1504,7 +1480,7 @@ function useBundleVersionsMap(options) {
|
|
|
1504
1480
|
}
|
|
1505
1481
|
|
|
1506
1482
|
// src/vue/use-tenant-subscription-bundles.ts
|
|
1507
|
-
import { ref as
|
|
1483
|
+
import { ref as ref16 } from "vue";
|
|
1508
1484
|
var TenantSubscriptionBundlesApiError = class extends Error {
|
|
1509
1485
|
constructor(status, body, message) {
|
|
1510
1486
|
super(message);
|
|
@@ -1523,9 +1499,9 @@ function useTenantSubscriptionBundles(options) {
|
|
|
1523
1499
|
}
|
|
1524
1500
|
const http = options.http ?? defaultHttpClient();
|
|
1525
1501
|
const baseUrl = `${options.billingEndpoint}/billing/subscription-bundles`;
|
|
1526
|
-
const bundles =
|
|
1527
|
-
const loading =
|
|
1528
|
-
const error =
|
|
1502
|
+
const bundles = ref16([]);
|
|
1503
|
+
const loading = ref16(false);
|
|
1504
|
+
const error = ref16(null);
|
|
1529
1505
|
function authHeaders() {
|
|
1530
1506
|
const token = options.getAuthToken?.();
|
|
1531
1507
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -1599,7 +1575,7 @@ function rehydrateDates(raw) {
|
|
|
1599
1575
|
}
|
|
1600
1576
|
|
|
1601
1577
|
// src/vue/use-marketing-projections.ts
|
|
1602
|
-
import { ref as
|
|
1578
|
+
import { ref as ref17 } from "vue";
|
|
1603
1579
|
var MarketingProjectionsApiError = class extends Error {
|
|
1604
1580
|
constructor(status, body, message) {
|
|
1605
1581
|
super(message);
|
|
@@ -1619,10 +1595,10 @@ function useMarketingProjections(options) {
|
|
|
1619
1595
|
}
|
|
1620
1596
|
const msg = useSaMessages("marketing");
|
|
1621
1597
|
const http = options.http ?? defaultHttpClient();
|
|
1622
|
-
const projections =
|
|
1623
|
-
const filter =
|
|
1624
|
-
const loading =
|
|
1625
|
-
const error =
|
|
1598
|
+
const projections = ref17([]);
|
|
1599
|
+
const filter = ref17({ ...options.filter });
|
|
1600
|
+
const loading = ref17(false);
|
|
1601
|
+
const error = ref17(null);
|
|
1626
1602
|
const baseUrl = `${options.adminEndpoint}/catalog/marketing-projections`;
|
|
1627
1603
|
function authHeaders() {
|
|
1628
1604
|
const token = options.getAuthToken?.();
|
|
@@ -1703,7 +1679,7 @@ function useMarketingProjections(options) {
|
|
|
1703
1679
|
}
|
|
1704
1680
|
|
|
1705
1681
|
// src/vue/use-promotions.ts
|
|
1706
|
-
import { ref as
|
|
1682
|
+
import { ref as ref18 } from "vue";
|
|
1707
1683
|
var PromotionsApiError = class extends Error {
|
|
1708
1684
|
constructor(status, body, message) {
|
|
1709
1685
|
super(message);
|
|
@@ -1723,9 +1699,9 @@ function usePromotions(options) {
|
|
|
1723
1699
|
}
|
|
1724
1700
|
const msg = useSaMessages("promos");
|
|
1725
1701
|
const http = options.http ?? defaultHttpClient();
|
|
1726
|
-
const promotions =
|
|
1727
|
-
const loading =
|
|
1728
|
-
const error =
|
|
1702
|
+
const promotions = ref18([]);
|
|
1703
|
+
const loading = ref18(false);
|
|
1704
|
+
const error = ref18(null);
|
|
1729
1705
|
const baseUrl = `${options.adminEndpoint}/catalog/promotions`;
|
|
1730
1706
|
const pk = encodeURIComponent(options.projectKey);
|
|
1731
1707
|
function authHeaders() {
|
|
@@ -1790,7 +1766,7 @@ function usePromotions(options) {
|
|
|
1790
1766
|
}
|
|
1791
1767
|
|
|
1792
1768
|
// src/vue/use-plans.ts
|
|
1793
|
-
import { ref as
|
|
1769
|
+
import { ref as ref19 } from "vue";
|
|
1794
1770
|
var PlansApiError = class extends Error {
|
|
1795
1771
|
constructor(status, body, message) {
|
|
1796
1772
|
super(message);
|
|
@@ -1811,10 +1787,10 @@ function usePlans(options) {
|
|
|
1811
1787
|
throw new Error("usePlans: `projectKey` is required.");
|
|
1812
1788
|
}
|
|
1813
1789
|
const http = options.http ?? defaultHttpClient();
|
|
1814
|
-
const plans =
|
|
1815
|
-
const loading =
|
|
1816
|
-
const error =
|
|
1817
|
-
const tenantCountsByPlanKey =
|
|
1790
|
+
const plans = ref19([]);
|
|
1791
|
+
const loading = ref19(false);
|
|
1792
|
+
const error = ref19(null);
|
|
1793
|
+
const tenantCountsByPlanKey = ref19({});
|
|
1818
1794
|
const baseUrl = `${options.adminEndpoint}/catalog/plans`;
|
|
1819
1795
|
function authHeaders() {
|
|
1820
1796
|
const token = options.getAuthToken?.();
|
|
@@ -1915,9 +1891,9 @@ function usePlanVersions(options) {
|
|
|
1915
1891
|
throw new Error("usePlanVersions: `planId` is required.");
|
|
1916
1892
|
}
|
|
1917
1893
|
const http = options.http ?? defaultHttpClient();
|
|
1918
|
-
const versions =
|
|
1919
|
-
const loading =
|
|
1920
|
-
const error =
|
|
1894
|
+
const versions = ref19([]);
|
|
1895
|
+
const loading = ref19(false);
|
|
1896
|
+
const error = ref19(null);
|
|
1921
1897
|
const planVersionsUrl = `${options.adminEndpoint}/catalog/plans/${options.planId}/versions`;
|
|
1922
1898
|
const versionUrlBase = `${options.adminEndpoint}/catalog/plan-versions`;
|
|
1923
1899
|
function authHeaders() {
|
|
@@ -2014,7 +1990,7 @@ function usePlanVersions(options) {
|
|
|
2014
1990
|
}
|
|
2015
1991
|
|
|
2016
1992
|
// src/vue/use-live-plan-versions.ts
|
|
2017
|
-
import { ref as
|
|
1993
|
+
import { ref as ref20, watch as watch3 } from "vue";
|
|
2018
1994
|
function useLivePlanVersions(options) {
|
|
2019
1995
|
if (!options?.adminEndpoint) {
|
|
2020
1996
|
throw new Error("useLivePlanVersions: `adminEndpoint` is required.");
|
|
@@ -2023,9 +1999,9 @@ function useLivePlanVersions(options) {
|
|
|
2023
1999
|
throw new Error("useLivePlanVersions: `plans` is required.");
|
|
2024
2000
|
}
|
|
2025
2001
|
const http = options.http ?? defaultHttpClient();
|
|
2026
|
-
const livePlanVersions =
|
|
2027
|
-
const loading =
|
|
2028
|
-
const error =
|
|
2002
|
+
const livePlanVersions = ref20({});
|
|
2003
|
+
const loading = ref20(false);
|
|
2004
|
+
const error = ref20(null);
|
|
2029
2005
|
function authHeaders() {
|
|
2030
2006
|
const token = options.getAuthToken?.();
|
|
2031
2007
|
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
@@ -2089,12 +2065,12 @@ function findLatestLive(versions) {
|
|
|
2089
2065
|
}
|
|
2090
2066
|
|
|
2091
2067
|
// src/vue/use-manifest.ts
|
|
2092
|
-
import { ref as
|
|
2068
|
+
import { ref as ref21 } from "vue";
|
|
2093
2069
|
function useManifest(options) {
|
|
2094
2070
|
const loader = new ManifestLoader(options);
|
|
2095
|
-
const manifest =
|
|
2096
|
-
const loading =
|
|
2097
|
-
const error =
|
|
2071
|
+
const manifest = ref21(null);
|
|
2072
|
+
const loading = ref21(false);
|
|
2073
|
+
const error = ref21(null);
|
|
2098
2074
|
async function load() {
|
|
2099
2075
|
loading.value = true;
|
|
2100
2076
|
error.value = null;
|
|
@@ -2229,7 +2205,7 @@ async function runFlow(def, row, registry, providers, successTemplate) {
|
|
|
2229
2205
|
}
|
|
2230
2206
|
|
|
2231
2207
|
// src/vue/use-platform-tenant-actions.ts
|
|
2232
|
-
import { computed as computed8, ref as
|
|
2208
|
+
import { computed as computed8, ref as ref22 } from "vue";
|
|
2233
2209
|
var DEFAULT_VISIBLE_FOR_ROW = (def, row) => {
|
|
2234
2210
|
if (def.actionKey === "tenants.suspend") return row.isActive;
|
|
2235
2211
|
if (def.actionKey === "tenants.reactivate") return !row.isActive;
|
|
@@ -2265,7 +2241,7 @@ function usePlatformTenantActions(options) {
|
|
|
2265
2241
|
const iconForActionKey = options.iconForActionKey ?? DEFAULT_ICON_FOR_ACTION_KEY;
|
|
2266
2242
|
const toneForActionKey = options.toneForActionKey ?? DEFAULT_TONE_FOR_ACTION_KEY;
|
|
2267
2243
|
const visibleForRow = options.visibleForRow ?? DEFAULT_VISIBLE_FOR_ROW;
|
|
2268
|
-
const mfa =
|
|
2244
|
+
const mfa = ref22({ show: false, description: "", error: "" });
|
|
2269
2245
|
let pendingMfaResolve = null;
|
|
2270
2246
|
function showMfaDialog(def, ctx) {
|
|
2271
2247
|
return new Promise((resolve) => {
|
|
@@ -2290,7 +2266,7 @@ function usePlatformTenantActions(options) {
|
|
|
2290
2266
|
pendingMfaResolve(null);
|
|
2291
2267
|
}
|
|
2292
2268
|
}
|
|
2293
|
-
const confirmDialog =
|
|
2269
|
+
const confirmDialog = ref22({
|
|
2294
2270
|
show: false,
|
|
2295
2271
|
def: null,
|
|
2296
2272
|
row: null
|
|
@@ -2371,12 +2347,12 @@ function usePlatformTenantActions(options) {
|
|
|
2371
2347
|
}
|
|
2372
2348
|
|
|
2373
2349
|
// src/vue/use-batch-columns.ts
|
|
2374
|
-
import { ref as
|
|
2350
|
+
import { ref as ref23, watch as watch4 } from "vue";
|
|
2375
2351
|
function useBatchColumns(manifest, tenantIds, options = {}) {
|
|
2376
2352
|
const fetcher = new BatchColumnFetcher(options);
|
|
2377
|
-
const data =
|
|
2378
|
-
const loading =
|
|
2379
|
-
const error =
|
|
2353
|
+
const data = ref23({});
|
|
2354
|
+
const loading = ref23(false);
|
|
2355
|
+
const error = ref23(null);
|
|
2380
2356
|
async function load() {
|
|
2381
2357
|
if (!manifest.value || tenantIds.value.length === 0) {
|
|
2382
2358
|
data.value = {};
|
|
@@ -2425,13 +2401,13 @@ function createPlatformLoaders(options) {
|
|
|
2425
2401
|
|
|
2426
2402
|
// src/vue/manifest-store-factory.ts
|
|
2427
2403
|
import { defineStore } from "pinia";
|
|
2428
|
-
import { ref as
|
|
2404
|
+
import { ref as ref24 } from "vue";
|
|
2429
2405
|
function createManifestStore(options) {
|
|
2430
2406
|
return defineStore(options.id ?? "admin-manifest", () => {
|
|
2431
|
-
const manifest =
|
|
2432
|
-
const loading =
|
|
2433
|
-
const error =
|
|
2434
|
-
const loaded =
|
|
2407
|
+
const manifest = ref24(null);
|
|
2408
|
+
const loading = ref24(false);
|
|
2409
|
+
const error = ref24(null);
|
|
2410
|
+
const loaded = ref24(false);
|
|
2435
2411
|
let inflight = null;
|
|
2436
2412
|
async function load() {
|
|
2437
2413
|
loading.value = true;
|
|
@@ -2855,7 +2831,6 @@ export {
|
|
|
2855
2831
|
buildQuotaRegistry,
|
|
2856
2832
|
buildRoutes,
|
|
2857
2833
|
buildSidebar,
|
|
2858
|
-
buildSnapshots,
|
|
2859
2834
|
createAdminRoutes,
|
|
2860
2835
|
createManifestStore,
|
|
2861
2836
|
createPlatformLoaders,
|
|
@@ -2871,7 +2846,6 @@ export {
|
|
|
2871
2846
|
formatCurrency,
|
|
2872
2847
|
formatMessage,
|
|
2873
2848
|
getJson,
|
|
2874
|
-
listOpenDrafts,
|
|
2875
2849
|
mergeMessages,
|
|
2876
2850
|
postJson,
|
|
2877
2851
|
provideEntitlement,
|
|
@@ -2896,7 +2870,6 @@ export {
|
|
|
2896
2870
|
useNav,
|
|
2897
2871
|
usePlanEditor,
|
|
2898
2872
|
usePlanVersions,
|
|
2899
|
-
usePlanVersionsCatalog,
|
|
2900
2873
|
usePlans,
|
|
2901
2874
|
usePlatformTenantActions,
|
|
2902
2875
|
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, {
|