@vue-skuilder/db 0.1.28 → 0.1.30
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/{contentSource-DfBbaLA-.d.cts → contentSource-B7nXusjk.d.cts} +19 -4
- package/dist/{contentSource-BmnmvH8C.d.ts → contentSource-ygoFw9oV.d.ts} +19 -4
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +14 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -6
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BeRXVMs5.d.cts → dataLayerProvider-BW7HvkMt.d.cts} +1 -1
- package/dist/{dataLayerProvider-CG9GfaAY.d.ts → dataLayerProvider-BfXUVDuG.d.ts} +1 -1
- package/dist/impl/couch/index.d.cts +2 -2
- package/dist/impl/couch/index.d.ts +2 -2
- package/dist/impl/couch/index.js +12 -6
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +12 -6
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.cts +2 -2
- package/dist/impl/static/index.d.ts +2 -2
- package/dist/impl/static/index.js +12 -6
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +12 -6
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/docs/navigators-architecture.md +64 -5
- package/package.json +3 -3
- package/src/core/navigators/index.ts +43 -10
|
@@ -2836,6 +2836,7 @@ __export(navigators_exports, {
|
|
|
2836
2836
|
getCardOrigin: () => getCardOrigin,
|
|
2837
2837
|
getRegisteredNavigator: () => getRegisteredNavigator,
|
|
2838
2838
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
2839
|
+
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
2839
2840
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
2840
2841
|
initializeNavigatorRegistry: () => initializeNavigatorRegistry,
|
|
2841
2842
|
isFilter: () => isFilter,
|
|
@@ -2844,16 +2845,19 @@ __export(navigators_exports, {
|
|
|
2844
2845
|
pipelineDebugAPI: () => pipelineDebugAPI,
|
|
2845
2846
|
registerNavigator: () => registerNavigator
|
|
2846
2847
|
});
|
|
2847
|
-
function registerNavigator(implementingClass, constructor) {
|
|
2848
|
-
navigatorRegistry.set(implementingClass, constructor);
|
|
2849
|
-
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
|
|
2848
|
+
function registerNavigator(implementingClass, constructor, role) {
|
|
2849
|
+
navigatorRegistry.set(implementingClass, { constructor, role });
|
|
2850
|
+
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
|
|
2850
2851
|
}
|
|
2851
2852
|
function getRegisteredNavigator(implementingClass) {
|
|
2852
|
-
return navigatorRegistry.get(implementingClass);
|
|
2853
|
+
return navigatorRegistry.get(implementingClass)?.constructor;
|
|
2853
2854
|
}
|
|
2854
2855
|
function hasRegisteredNavigator(implementingClass) {
|
|
2855
2856
|
return navigatorRegistry.has(implementingClass);
|
|
2856
2857
|
}
|
|
2858
|
+
function getRegisteredNavigatorRole(implementingClass) {
|
|
2859
|
+
return navigatorRegistry.get(implementingClass)?.role;
|
|
2860
|
+
}
|
|
2857
2861
|
function getRegisteredNavigatorNames() {
|
|
2858
2862
|
return Array.from(navigatorRegistry.keys());
|
|
2859
2863
|
}
|
|
@@ -2899,10 +2903,12 @@ function getCardOrigin(card) {
|
|
|
2899
2903
|
return "new";
|
|
2900
2904
|
}
|
|
2901
2905
|
function isGenerator(impl) {
|
|
2902
|
-
|
|
2906
|
+
if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
|
|
2907
|
+
return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
|
|
2903
2908
|
}
|
|
2904
2909
|
function isFilter(impl) {
|
|
2905
|
-
|
|
2910
|
+
if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
|
|
2911
|
+
return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
|
|
2906
2912
|
}
|
|
2907
2913
|
var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
|
|
2908
2914
|
var init_navigators = __esm({
|