@conduction/nextcloud-vue 2.185.0 → 2.185.1

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.
@@ -41670,20 +41670,20 @@ button.cn-stepper__step[data-v-11ed352e] {
41670
41670
 
41671
41671
 
41672
41672
  /* A stack (`widgetIds`): the panel's widget, then cards 20px apart. */
41673
- .cn-tabs-widget__panel-heading[data-v-43e69c58] {
41673
+ .cn-tabs-widget__panel-heading[data-v-96acf6e2] {
41674
41674
  display: flex;
41675
41675
  flex-direction: column;
41676
41676
  gap: 4px;
41677
41677
  margin-bottom: 16px;
41678
41678
  }
41679
- .cn-tabs-widget__panel-heading--actions[data-v-43e69c58] {
41679
+ .cn-tabs-widget__panel-heading--actions[data-v-96acf6e2] {
41680
41680
  flex-direction: row;
41681
41681
  flex-wrap: wrap;
41682
41682
  align-items: flex-start;
41683
41683
  justify-content: space-between;
41684
41684
  gap: 10px 16px;
41685
41685
  }
41686
- .cn-tabs-widget__panel-heading-text[data-v-43e69c58] {
41686
+ .cn-tabs-widget__panel-heading-text[data-v-96acf6e2] {
41687
41687
  display: flex;
41688
41688
  flex-direction: column;
41689
41689
  gap: 4px;
@@ -41692,24 +41692,24 @@ button.cn-stepper__step[data-v-11ed352e] {
41692
41692
 
41693
41693
  /* The 260px basis is a width in the actions row; in the column heading it
41694
41694
  would be a height. */
41695
- .cn-tabs-widget__panel-heading--actions > .cn-tabs-widget__panel-heading-text[data-v-43e69c58] {
41695
+ .cn-tabs-widget__panel-heading--actions > .cn-tabs-widget__panel-heading-text[data-v-96acf6e2] {
41696
41696
  flex: 1 1 260px;
41697
41697
  }
41698
- .cn-tabs-widget__panel-actions[data-v-43e69c58] {
41698
+ .cn-tabs-widget__panel-actions[data-v-96acf6e2] {
41699
41699
  display: flex;
41700
41700
  justify-content: flex-end;
41701
41701
  margin-bottom: 16px;
41702
41702
  }
41703
- .cn-tabs-widget__panel-title[data-v-43e69c58] {
41703
+ .cn-tabs-widget__panel-title[data-v-96acf6e2] {
41704
41704
  margin: 0;
41705
41705
  font-size: 17px;
41706
41706
  font-weight: 700;
41707
41707
  }
41708
- .cn-tabs-widget__panel-subtitle[data-v-43e69c58] {
41708
+ .cn-tabs-widget__panel-subtitle[data-v-96acf6e2] {
41709
41709
  font-size: 14px;
41710
41710
  color: var(--color-text-maxcontrast);
41711
41711
  }
41712
- .cn-tabs-widget__stack[data-v-43e69c58] {
41712
+ .cn-tabs-widget__stack[data-v-96acf6e2] {
41713
41713
  display: flex;
41714
41714
  flex-direction: column;
41715
41715
  gap: 20px;
@@ -41718,19 +41718,19 @@ button.cn-stepper__step[data-v-11ed352e] {
41718
41718
  /* A gridded stack (`columns` / `layout` on the tab): 12 columns, widgets wrap
41719
41719
  onto the next row, a row's cards as tall as the tallest. Narrow, it is the
41720
41720
  plain stack again. */
41721
- .cn-tabs-widget__stack--grid[data-v-43e69c58] {
41721
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] {
41722
41722
  display: grid;
41723
41723
  grid-template-columns: repeat(12, minmax(0, 1fr));
41724
41724
  align-items: stretch;
41725
41725
  }
41726
- .cn-tabs-widget__stack--grid[data-v-43e69c58] > * {
41726
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] > * {
41727
41727
  min-width: 0;
41728
41728
  }
41729
41729
  @media (max-width: 700px) {
41730
- .cn-tabs-widget__stack--grid[data-v-43e69c58] {
41730
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] {
41731
41731
  grid-template-columns: minmax(0, 1fr);
41732
41732
  }
41733
- .cn-tabs-widget__stack--grid[data-v-43e69c58] > * {
41733
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] > * {
41734
41734
  grid-column: auto !important;
41735
41735
  }
41736
41736
  }
@@ -41764,7 +41764,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41764
41764
  `!important` or on load order this library does not control. The same
41765
41765
  technique, for the same reason, is used on `.cn-tabs__nav .cn-tabs__nav-item`
41766
41766
  in CnTabs to beat Nextcloud's own button margin. */
41767
- .cn-tabs-widget.cn-tabs-widget[data-v-43e69c58] {
41767
+ .cn-tabs-widget.cn-tabs-widget[data-v-96acf6e2] {
41768
41768
  background-color: transparent;
41769
41769
  border: 0;
41770
41770
  border-radius: 0;
@@ -41788,12 +41788,12 @@ button.cn-stepper__step[data-v-11ed352e] {
41788
41788
  below it: the rule ran straight on to the widget's edge and read as a
41789
41789
  border sticking out past a rounded corner (Ruben, 2026-09-13). Ending it
41790
41790
  where the curve begins makes the rule and the curve one continuous edge. */
41791
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__bar {
41791
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__bar {
41792
41792
  border-bottom: none;
41793
41793
  padding: 0;
41794
41794
  position: relative;
41795
41795
  }
41796
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__bar::after {
41796
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__bar::after {
41797
41797
  border-bottom: 1px solid var(--color-border);
41798
41798
  content: '';
41799
41799
  inset-block-end: 0;
@@ -41806,11 +41806,11 @@ button.cn-stepper__step[data-v-11ed352e] {
41806
41806
  own background-coloured bottom edge, which only works if it paints ABOVE the
41807
41807
  pseudo-element: a positioned pseudo-element otherwise paints over every
41808
41808
  in-flow sibling, rule included. */
41809
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__nav-item--active {
41809
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__nav-item--active {
41810
41810
  position: relative;
41811
41811
  z-index: 1;
41812
41812
  }
41813
- .cn-tabs-widget__tabs[data-v-43e69c58] {
41813
+ .cn-tabs-widget__tabs[data-v-96acf6e2] {
41814
41814
  display: flex;
41815
41815
  flex-direction: column;
41816
41816
  /* Grow to the widget's height, so the panel fills the grid cell the
@@ -41828,7 +41828,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41828
41828
  the open tab, but padding sits inside the painted box — only a margin would
41829
41829
  have opened that gap, and a zero top put every panel's content against the
41830
41830
  strip. */
41831
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__content {
41831
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__content {
41832
41832
  background-color: var(--color-main-background);
41833
41833
  /* Three sides only: the bar's rule (redrawn above, stopping at the corner)
41834
41834
  is this sheet's top edge, and the open tab erases the slice of it
@@ -41848,7 +41848,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41848
41848
  overflow: auto;
41849
41849
  padding: 12px;
41850
41850
  }
41851
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tab {
41851
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tab {
41852
41852
  height: 100%;
41853
41853
  }
41854
41854
 
@@ -41856,13 +41856,13 @@ button.cn-stepper__step[data-v-11ed352e] {
41856
41856
  (margin 0 -16px -16px). The panel of a tab pads 12px, so on a tab that
41857
41857
  holds the list directly the footer stuck out 4px on the right and at the
41858
41858
  bottom and made the panel scroll. It bleeds exactly the panel's padding. */
41859
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__content > .cn-tab > .cn-detail-widget-host--bare .cn-object-list-widget__add {
41859
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__content > .cn-tab > .cn-detail-widget-host--bare .cn-object-list-widget__add {
41860
41860
  margin: auto -12px -12px;
41861
41861
  }
41862
41862
 
41863
41863
  /* The open panel's header link, beside the strip. Same look and theme hooks
41864
41864
  as a card header link (CnWidgetWrapper). */
41865
- .cn-tabs-widget__header-link[data-v-43e69c58] {
41865
+ .cn-tabs-widget__header-link[data-v-96acf6e2] {
41866
41866
  align-self: center;
41867
41867
  padding: 0 calc(1 * var(--default-grid-baseline));
41868
41868
  color: var(--color-primary-element);
@@ -41871,21 +41871,21 @@ button.cn-stepper__step[data-v-11ed352e] {
41871
41871
  text-decoration: none;
41872
41872
  white-space: nowrap;
41873
41873
  }
41874
- .cn-tabs-widget__header-link[data-v-43e69c58]:hover,
41875
- .cn-tabs-widget__header-link[data-v-43e69c58]:focus-visible {
41874
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:hover,
41875
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:focus-visible {
41876
41876
  text-decoration: underline;
41877
41877
  }
41878
- .cn-tabs-widget__header-link[data-v-43e69c58]:focus-visible {
41878
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:focus-visible {
41879
41879
  outline: 2px solid var(--color-primary-element);
41880
41880
  outline-offset: 2px;
41881
41881
  border-radius: var(--border-radius-small, 4px);
41882
41882
  }
41883
- .cn-tabs-widget__title[data-v-43e69c58] {
41883
+ .cn-tabs-widget__title[data-v-96acf6e2] {
41884
41884
  align-items: center;
41885
41885
  display: inline-flex;
41886
41886
  gap: 6px;
41887
41887
  }
41888
- .cn-tabs-widget__title-icon[data-v-43e69c58] {
41888
+ .cn-tabs-widget__title-icon[data-v-96acf6e2] {
41889
41889
  flex: 0 0 auto;
41890
41890
  }
41891
41891
 
@@ -218691,6 +218691,12 @@ var script$5I = {
218691
218691
  * @spec openspec/changes/screens-tab-counts-parity/specs/tab-counts/spec.md#requirement-a-tab-can-count-its-list
218692
218692
  */
218693
218693
  countSourceOf(tab) {
218694
+ // A tab shown only with another app installed counts nothing without it:
218695
+ // its list lives in that app, and asking would answer 404.
218696
+ const needs = tab && typeof tab === 'object' && tab.visibleWhen ? tab.visibleWhen.appInstalled : null;
218697
+ if (typeof needs === 'string' && needs !== '' && !isAppInstalled(needs)) {
218698
+ return null
218699
+ }
218694
218700
  const from = tab && typeof tab === 'object' ? tab.countFrom : null;
218695
218701
  let source = null;
218696
218702
  if (from === 'widget') {
@@ -219218,7 +219224,7 @@ function render$5G(_ctx, _cache, $props, $setup, $data, $options) {
219218
219224
  }
219219
219225
 
219220
219226
  script$5I.render = render$5G;
219221
- script$5I.__scopeId = "data-v-43e69c58";
219227
+ script$5I.__scopeId = "data-v-96acf6e2";
219222
219228
  const __sfc_main$5C = script$5I;
219223
219229
 
219224
219230
  /**
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/nextcloud-vue.cjs.js.map
3
- size: 53769567 bytes
4
- sha256: 7cc4d77eeb0511f533d272f1c0cd03a9f43c59cb67e7625476b8123e75073254
3
+ size: 53770653 bytes
4
+ sha256: b2bea7a25aef4e0d7be5764961b4f14c2a1116cab92b7c0d711a5b9c9bd1c051
@@ -41670,20 +41670,20 @@ button.cn-stepper__step[data-v-11ed352e] {
41670
41670
 
41671
41671
 
41672
41672
  /* A stack (`widgetIds`): the panel's widget, then cards 20px apart. */
41673
- .cn-tabs-widget__panel-heading[data-v-43e69c58] {
41673
+ .cn-tabs-widget__panel-heading[data-v-96acf6e2] {
41674
41674
  display: flex;
41675
41675
  flex-direction: column;
41676
41676
  gap: 4px;
41677
41677
  margin-bottom: 16px;
41678
41678
  }
41679
- .cn-tabs-widget__panel-heading--actions[data-v-43e69c58] {
41679
+ .cn-tabs-widget__panel-heading--actions[data-v-96acf6e2] {
41680
41680
  flex-direction: row;
41681
41681
  flex-wrap: wrap;
41682
41682
  align-items: flex-start;
41683
41683
  justify-content: space-between;
41684
41684
  gap: 10px 16px;
41685
41685
  }
41686
- .cn-tabs-widget__panel-heading-text[data-v-43e69c58] {
41686
+ .cn-tabs-widget__panel-heading-text[data-v-96acf6e2] {
41687
41687
  display: flex;
41688
41688
  flex-direction: column;
41689
41689
  gap: 4px;
@@ -41692,24 +41692,24 @@ button.cn-stepper__step[data-v-11ed352e] {
41692
41692
 
41693
41693
  /* The 260px basis is a width in the actions row; in the column heading it
41694
41694
  would be a height. */
41695
- .cn-tabs-widget__panel-heading--actions > .cn-tabs-widget__panel-heading-text[data-v-43e69c58] {
41695
+ .cn-tabs-widget__panel-heading--actions > .cn-tabs-widget__panel-heading-text[data-v-96acf6e2] {
41696
41696
  flex: 1 1 260px;
41697
41697
  }
41698
- .cn-tabs-widget__panel-actions[data-v-43e69c58] {
41698
+ .cn-tabs-widget__panel-actions[data-v-96acf6e2] {
41699
41699
  display: flex;
41700
41700
  justify-content: flex-end;
41701
41701
  margin-bottom: 16px;
41702
41702
  }
41703
- .cn-tabs-widget__panel-title[data-v-43e69c58] {
41703
+ .cn-tabs-widget__panel-title[data-v-96acf6e2] {
41704
41704
  margin: 0;
41705
41705
  font-size: 17px;
41706
41706
  font-weight: 700;
41707
41707
  }
41708
- .cn-tabs-widget__panel-subtitle[data-v-43e69c58] {
41708
+ .cn-tabs-widget__panel-subtitle[data-v-96acf6e2] {
41709
41709
  font-size: 14px;
41710
41710
  color: var(--color-text-maxcontrast);
41711
41711
  }
41712
- .cn-tabs-widget__stack[data-v-43e69c58] {
41712
+ .cn-tabs-widget__stack[data-v-96acf6e2] {
41713
41713
  display: flex;
41714
41714
  flex-direction: column;
41715
41715
  gap: 20px;
@@ -41718,19 +41718,19 @@ button.cn-stepper__step[data-v-11ed352e] {
41718
41718
  /* A gridded stack (`columns` / `layout` on the tab): 12 columns, widgets wrap
41719
41719
  onto the next row, a row's cards as tall as the tallest. Narrow, it is the
41720
41720
  plain stack again. */
41721
- .cn-tabs-widget__stack--grid[data-v-43e69c58] {
41721
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] {
41722
41722
  display: grid;
41723
41723
  grid-template-columns: repeat(12, minmax(0, 1fr));
41724
41724
  align-items: stretch;
41725
41725
  }
41726
- .cn-tabs-widget__stack--grid[data-v-43e69c58] > * {
41726
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] > * {
41727
41727
  min-width: 0;
41728
41728
  }
41729
41729
  @media (max-width: 700px) {
41730
- .cn-tabs-widget__stack--grid[data-v-43e69c58] {
41730
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] {
41731
41731
  grid-template-columns: minmax(0, 1fr);
41732
41732
  }
41733
- .cn-tabs-widget__stack--grid[data-v-43e69c58] > * {
41733
+ .cn-tabs-widget__stack--grid[data-v-96acf6e2] > * {
41734
41734
  grid-column: auto !important;
41735
41735
  }
41736
41736
  }
@@ -41764,7 +41764,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41764
41764
  `!important` or on load order this library does not control. The same
41765
41765
  technique, for the same reason, is used on `.cn-tabs__nav .cn-tabs__nav-item`
41766
41766
  in CnTabs to beat Nextcloud's own button margin. */
41767
- .cn-tabs-widget.cn-tabs-widget[data-v-43e69c58] {
41767
+ .cn-tabs-widget.cn-tabs-widget[data-v-96acf6e2] {
41768
41768
  background-color: transparent;
41769
41769
  border: 0;
41770
41770
  border-radius: 0;
@@ -41788,12 +41788,12 @@ button.cn-stepper__step[data-v-11ed352e] {
41788
41788
  below it: the rule ran straight on to the widget's edge and read as a
41789
41789
  border sticking out past a rounded corner (Ruben, 2026-09-13). Ending it
41790
41790
  where the curve begins makes the rule and the curve one continuous edge. */
41791
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__bar {
41791
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__bar {
41792
41792
  border-bottom: none;
41793
41793
  padding: 0;
41794
41794
  position: relative;
41795
41795
  }
41796
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__bar::after {
41796
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__bar::after {
41797
41797
  border-bottom: 1px solid var(--color-border);
41798
41798
  content: '';
41799
41799
  inset-block-end: 0;
@@ -41806,11 +41806,11 @@ button.cn-stepper__step[data-v-11ed352e] {
41806
41806
  own background-coloured bottom edge, which only works if it paints ABOVE the
41807
41807
  pseudo-element: a positioned pseudo-element otherwise paints over every
41808
41808
  in-flow sibling, rule included. */
41809
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__nav-item--active {
41809
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__nav-item--active {
41810
41810
  position: relative;
41811
41811
  z-index: 1;
41812
41812
  }
41813
- .cn-tabs-widget__tabs[data-v-43e69c58] {
41813
+ .cn-tabs-widget__tabs[data-v-96acf6e2] {
41814
41814
  display: flex;
41815
41815
  flex-direction: column;
41816
41816
  /* Grow to the widget's height, so the panel fills the grid cell the
@@ -41828,7 +41828,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41828
41828
  the open tab, but padding sits inside the painted box — only a margin would
41829
41829
  have opened that gap, and a zero top put every panel's content against the
41830
41830
  strip. */
41831
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__content {
41831
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__content {
41832
41832
  background-color: var(--color-main-background);
41833
41833
  /* Three sides only: the bar's rule (redrawn above, stopping at the corner)
41834
41834
  is this sheet's top edge, and the open tab erases the slice of it
@@ -41848,7 +41848,7 @@ button.cn-stepper__step[data-v-11ed352e] {
41848
41848
  overflow: auto;
41849
41849
  padding: 12px;
41850
41850
  }
41851
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tab {
41851
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tab {
41852
41852
  height: 100%;
41853
41853
  }
41854
41854
 
@@ -41856,13 +41856,13 @@ button.cn-stepper__step[data-v-11ed352e] {
41856
41856
  (margin 0 -16px -16px). The panel of a tab pads 12px, so on a tab that
41857
41857
  holds the list directly the footer stuck out 4px on the right and at the
41858
41858
  bottom and made the panel scroll. It bleeds exactly the panel's padding. */
41859
- .cn-tabs-widget__tabs[data-v-43e69c58] .cn-tabs__content > .cn-tab > .cn-detail-widget-host--bare .cn-object-list-widget__add {
41859
+ .cn-tabs-widget__tabs[data-v-96acf6e2] .cn-tabs__content > .cn-tab > .cn-detail-widget-host--bare .cn-object-list-widget__add {
41860
41860
  margin: auto -12px -12px;
41861
41861
  }
41862
41862
 
41863
41863
  /* The open panel's header link, beside the strip. Same look and theme hooks
41864
41864
  as a card header link (CnWidgetWrapper). */
41865
- .cn-tabs-widget__header-link[data-v-43e69c58] {
41865
+ .cn-tabs-widget__header-link[data-v-96acf6e2] {
41866
41866
  align-self: center;
41867
41867
  padding: 0 calc(1 * var(--default-grid-baseline));
41868
41868
  color: var(--color-primary-element);
@@ -41871,21 +41871,21 @@ button.cn-stepper__step[data-v-11ed352e] {
41871
41871
  text-decoration: none;
41872
41872
  white-space: nowrap;
41873
41873
  }
41874
- .cn-tabs-widget__header-link[data-v-43e69c58]:hover,
41875
- .cn-tabs-widget__header-link[data-v-43e69c58]:focus-visible {
41874
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:hover,
41875
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:focus-visible {
41876
41876
  text-decoration: underline;
41877
41877
  }
41878
- .cn-tabs-widget__header-link[data-v-43e69c58]:focus-visible {
41878
+ .cn-tabs-widget__header-link[data-v-96acf6e2]:focus-visible {
41879
41879
  outline: 2px solid var(--color-primary-element);
41880
41880
  outline-offset: 2px;
41881
41881
  border-radius: var(--border-radius-small, 4px);
41882
41882
  }
41883
- .cn-tabs-widget__title[data-v-43e69c58] {
41883
+ .cn-tabs-widget__title[data-v-96acf6e2] {
41884
41884
  align-items: center;
41885
41885
  display: inline-flex;
41886
41886
  gap: 6px;
41887
41887
  }
41888
- .cn-tabs-widget__title-icon[data-v-43e69c58] {
41888
+ .cn-tabs-widget__title-icon[data-v-96acf6e2] {
41889
41889
  flex: 0 0 auto;
41890
41890
  }
41891
41891
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "2.185.0",
3
+ "version": "2.185.1",
4
4
  "description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
5
5
  "homepage": "https://github.com/ConductionNL/nextcloud-vue#readme",
6
6
  "bugs": {
@@ -231,6 +231,7 @@ import CnTabs from '../CnTabs/CnTabs.vue'
231
231
  import CnWidgetHeaderActionButtons from '../CnWidgetWrapper/CnWidgetHeaderActionButtons.vue'
232
232
  import { normalizeLook } from '../../composables/useLook.js'
233
233
  import { dispatchAction } from '../../utils/actionsDispatcher.js'
234
+ import { isAppInstalled } from '../../utils/appInstalled.js'
234
235
  import { auditExclusionParams, keepAuditEntries } from '../../utils/auditEntries.js'
235
236
  import { headerLinkTarget, resolveHeaderLink, widgetHeaderLink } from '../../utils/contentHeaderLink.js'
236
237
  import { resolveTabCount } from '../../utils/detailActionModel.js'
@@ -1512,6 +1513,12 @@ export default {
1512
1513
  * @spec openspec/changes/screens-tab-counts-parity/specs/tab-counts/spec.md#requirement-a-tab-can-count-its-list
1513
1514
  */
1514
1515
  countSourceOf(tab) {
1516
+ // A tab shown only with another app installed counts nothing without it:
1517
+ // its list lives in that app, and asking would answer 404.
1518
+ const needs = tab && typeof tab === 'object' && tab.visibleWhen ? tab.visibleWhen.appInstalled : null
1519
+ if (typeof needs === 'string' && needs !== '' && !isAppInstalled(needs)) {
1520
+ return null
1521
+ }
1515
1522
  const from = tab && typeof tab === 'object' ? tab.countFrom : null
1516
1523
  let source = null
1517
1524
  if (from === 'widget') {