@ouestfrance/sipa-bms-ui 8.24.3 → 8.24.4

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.
@@ -1,7 +1,7 @@
1
1
  export interface Tab {
2
2
  routePath?: string;
3
3
  routeName?: string;
4
- id: string;
4
+ id?: string;
5
5
  name: string;
6
6
  disabled?: boolean;
7
7
  error?: boolean;
@@ -92448,7 +92448,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
92448
92448
  return !!props.tabs && !!props.tabs[0] && !!(props.tabs[0].routePath || props.tabs[0].routeName);
92449
92449
  });
92450
92450
  const onClick = (tab) => {
92451
- selectedTabId.value = tab.id;
92451
+ selectedTabId.value = getTabId(tab);
92452
92452
  $emits("click", tab);
92453
92453
  };
92454
92454
  const computedTabs = computed(() => {
@@ -92459,7 +92459,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
92459
92459
  const computedInitialTabId = () => {
92460
92460
  if (needRouterEngine.value) {
92461
92461
  const selectedTab = props.tabs.find((t) => isTabSelectedByRoute(t, currentRoute.value)) || null;
92462
- selectedTabId.value = selectedTab ? selectedTab.id : null;
92462
+ selectedTabId.value = selectedTab ? getTabId(selectedTab) : null;
92463
92463
  } else if (props.initialTabId) {
92464
92464
  selectedTabId.value = props.initialTabId;
92465
92465
  } else {