@nanahoshi/mona-ui 0.48.0 → 0.49.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.
@@ -8,7 +8,7 @@ import { MonaI18nService, injectComponentDirection } from "@nanahoshi/mona-ui/i1
8
8
  import { twMerge } from "tailwind-merge";
9
9
  import { cva } from "class-variance-authority";
10
10
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
11
- import { createElementControlId } from "@nanahoshi/mona-ui/internal";
11
+ import { createElementControlId, themeSelectionBorderClasses } from "@nanahoshi/mona-ui/internal";
12
12
  import { EMPTY, Subject, asapScheduler, interval, switchMap, tap, timer } from "rxjs";
13
13
  import * as i1 from "@nanahoshi/mona-ui/ripple";
14
14
  import { RippleDirective } from "@nanahoshi/mona-ui/ripple";
@@ -122,16 +122,50 @@ i0.ɵɵngDeclareClassMetadata({
122
122
  args: [{ selector: "ng-template[monaTabTitleTemplate]" }]
123
123
  }]
124
124
  });
125
+ function ownPanelId(tab) {
126
+ return tab.panelId ?? `${tab.id}-panel`;
127
+ }
125
128
  const tabListBaseThemeVariants = cva(`
126
129
  flex max-w-full min-w-0 overflow-hidden
127
130
  `, {
128
- variants: { position: {
129
- top: "flex-row border-b border-border",
130
- bottom: "flex-row border-t border-border",
131
- left: "flex-col max-h-full min-h-0 border-e border-border",
132
- right: "flex-col max-h-full min-h-0 border-s border-border"
133
- } },
134
- defaultVariants: { position: "top" }
131
+ variants: {
132
+ look: {
133
+ line: "",
134
+ pill: ""
135
+ },
136
+ position: {
137
+ top: "flex-row",
138
+ bottom: "flex-row",
139
+ left: "flex-col max-h-full min-h-0",
140
+ right: "flex-col max-h-full min-h-0"
141
+ }
142
+ },
143
+ compoundVariants: [
144
+ {
145
+ look: "line",
146
+ position: "top",
147
+ class: "border-b border-border"
148
+ },
149
+ {
150
+ look: "line",
151
+ position: "bottom",
152
+ class: "border-t border-border"
153
+ },
154
+ {
155
+ look: "line",
156
+ position: "left",
157
+ class: "border-e border-border"
158
+ },
159
+ {
160
+ look: "line",
161
+ position: "right",
162
+ class: "border-s border-border"
163
+ }
164
+ ],
165
+ defaultVariants: {
166
+ look: "line",
167
+ position: "top"
168
+ }
135
169
  });
136
170
  const tabListListWrapperThemeVariants = cva(`flex-1 min-w-0 min-h-0 overflow-hidden`);
137
171
  const tabListListThemeVariants = cva(`
@@ -139,13 +173,22 @@ const tabListListThemeVariants = cva(`
139
173
  cursor-default select-none whitespace-nowrap
140
174
  transition-colors duration-(--mona-motion-standard) ease-out
141
175
  `, {
142
- variants: { position: {
143
- top: "flex-row max-w-full min-w-0",
144
- bottom: "flex-row max-w-full min-w-0",
145
- left: "flex-col max-h-full min-h-0",
146
- right: "flex-col max-h-full min-h-0"
147
- } },
148
- defaultVariants: { position: "top" }
176
+ variants: {
177
+ look: {
178
+ line: "",
179
+ pill: "gap-1 p-1"
180
+ },
181
+ position: {
182
+ top: "flex-row max-w-full min-w-0",
183
+ bottom: "flex-row max-w-full min-w-0",
184
+ left: "flex-col max-h-full min-h-0",
185
+ right: "flex-col max-h-full min-h-0"
186
+ }
187
+ },
188
+ defaultVariants: {
189
+ look: "line",
190
+ position: "top"
191
+ }
149
192
  });
150
193
  const tabListListItemThemeVariants = cva(`
151
194
  relative flex shrink-0 cursor-pointer
@@ -155,30 +198,106 @@ const tabListListItemThemeVariants = cva(`
155
198
  `, {
156
199
  variants: {
157
200
  active: {
158
- true: `
159
- text-foreground font-semibold
160
- after:absolute after:content-[''] after:bg-[var(--mona-indicator-color,var(--color-primary))]
161
- after:forced-color-adjust-none forced-colors:after:bg-[Highlight]
162
- `,
201
+ true: "text-foreground",
163
202
  false: "text-muted-foreground hover:bg-hover hover:text-foreground"
164
203
  },
165
204
  disabled: {
166
- true: "pointer-events-none cursor-not-allowed select-none text-disabled-foreground after:hidden",
205
+ true: "pointer-events-none cursor-not-allowed select-none text-disabled-foreground",
167
206
  false: ""
168
207
  },
208
+ look: {
209
+ line: "",
210
+ pill: "rounded-md font-medium"
211
+ },
169
212
  position: {
170
- top: "items-center justify-center whitespace-nowrap after:inset-x-0 after:bottom-0 after:h-[2px]",
171
- bottom: "items-center justify-center whitespace-nowrap after:inset-x-0 after:top-0 after:h-[2px]",
172
- left: "w-full items-center justify-start text-start after:inset-y-0 after:end-0 after:w-[2px]",
173
- right: "w-full items-center justify-start text-start after:inset-y-0 after:start-0 after:w-[2px]"
213
+ top: "items-center justify-center whitespace-nowrap",
214
+ bottom: "items-center justify-center whitespace-nowrap",
215
+ left: "w-full items-center justify-start text-start",
216
+ right: "w-full items-center justify-start text-start"
174
217
  },
175
218
  size: {
176
- small: "h-8 text-xs",
177
- medium: "h-9 text-sm",
178
- large: "h-10 text-sm"
219
+ small: "text-xs",
220
+ medium: "text-sm",
221
+ large: "text-sm"
179
222
  }
180
223
  },
224
+ compoundVariants: [
225
+ {
226
+ look: "line",
227
+ active: true,
228
+ class: `
229
+ font-semibold
230
+ after:absolute after:content-[''] after:bg-[var(--mona-indicator-color,var(--color-primary))]
231
+ after:forced-color-adjust-none forced-colors:after:bg-[Highlight]
232
+ `
233
+ },
234
+ {
235
+ look: "line",
236
+ disabled: true,
237
+ class: "after:hidden"
238
+ },
239
+ {
240
+ look: "line",
241
+ position: "top",
242
+ class: "after:inset-x-0 after:bottom-0 after:h-[2px]"
243
+ },
244
+ {
245
+ look: "line",
246
+ position: "bottom",
247
+ class: "after:inset-x-0 after:top-0 after:h-[2px]"
248
+ },
249
+ {
250
+ look: "line",
251
+ position: "left",
252
+ class: "after:inset-y-0 after:end-0 after:w-[2px]"
253
+ },
254
+ {
255
+ look: "line",
256
+ position: "right",
257
+ class: "after:inset-y-0 after:start-0 after:w-[2px]"
258
+ },
259
+ {
260
+ look: "line",
261
+ size: "small",
262
+ class: "h-8"
263
+ },
264
+ {
265
+ look: "line",
266
+ size: "medium",
267
+ class: "h-9"
268
+ },
269
+ {
270
+ look: "line",
271
+ size: "large",
272
+ class: "h-10"
273
+ },
274
+ {
275
+ look: "pill",
276
+ active: true,
277
+ class: `
278
+ [background-color:var(--mona-tab-pill-background,var(--color-surface-raised))] shadow-(--shadow-raised)
279
+ ${themeSelectionBorderClasses}
280
+ after:content-[''] after:forced-color-adjust-none forced-colors:after:border-[Highlight]
281
+ `
282
+ },
283
+ {
284
+ look: "pill",
285
+ size: "small",
286
+ class: "h-7"
287
+ },
288
+ {
289
+ look: "pill",
290
+ size: "medium",
291
+ class: "h-8"
292
+ },
293
+ {
294
+ look: "pill",
295
+ size: "large",
296
+ class: "h-9"
297
+ }
298
+ ],
181
299
  defaultVariants: {
300
+ look: "line",
182
301
  position: "top",
183
302
  size: "medium"
184
303
  }
@@ -188,6 +307,10 @@ const tabListTabThemeVariants = cva(`
188
307
  focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus-indicator
189
308
  `, {
190
309
  variants: {
310
+ look: {
311
+ line: "",
312
+ pill: "rounded-md"
313
+ },
191
314
  position: {
192
315
  top: "justify-center whitespace-nowrap",
193
316
  bottom: "justify-center whitespace-nowrap",
@@ -201,6 +324,7 @@ const tabListTabThemeVariants = cva(`
201
324
  }
202
325
  },
203
326
  defaultVariants: {
327
+ look: "line",
204
328
  position: "top",
205
329
  size: "medium"
206
330
  }
@@ -231,22 +355,97 @@ const tabsBaseThemeVariants = cva(`
231
355
  } },
232
356
  defaultVariants: { position: "top" }
233
357
  });
358
+ const tabStripThemeVariants = cva(`
359
+ flex max-w-full min-w-0
360
+ `);
361
+ function isEnabled(tab) {
362
+ return !tab.disabled;
363
+ }
364
+ function neighborOf(tabs, removedIndex) {
365
+ return tabs.slice(removedIndex).find(isEnabled) ?? tabs.slice(0, removedIndex).reverse().find(isEnabled);
366
+ }
367
+ var TabSelection = class {
368
+ #selectedIndex;
369
+ #tabs;
370
+ #flaggedTabId = null;
371
+ #reportedIndex = null;
372
+ #tabsSettled = false;
373
+ constructor(tabs, selectedIndex) {
374
+ this.#tabs = tabs;
375
+ this.#selectedIndex = selectedIndex;
376
+ this.tabList = computed(() => {
377
+ return select(this.#tabs(), (t) => t.tabItem).tap((t, tx) => t.index = tx).toImmutableSet();
378
+ }, ...ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []);
379
+ this.selectedTabId = linkedSignal({
380
+ ...ngDevMode ? { debugName: "selectedTabId" } : /* istanbul ignore next */ {},
381
+ source: () => this.tabList(),
382
+ computation: (tabList, previous) => {
383
+ const items = tabList.toArray();
384
+ const previousId = previous?.value ?? null;
385
+ if (previousId === null || !this.#tabsSettled) {
386
+ const requested = items[untracked(this.#selectedIndex())];
387
+ return (requested && isEnabled(requested) ? requested : items.find(isEnabled))?.id ?? null;
388
+ }
389
+ if (items.some((tab) => tab.id === previousId)) return previousId;
390
+ return neighborOf(items, previous?.source.toArray().findIndex((tab) => tab.id === previousId) ?? 0)?.id ?? null;
391
+ }
392
+ });
393
+ effect(() => {
394
+ const requested = this.#selectedIndex()();
395
+ untracked(() => this.applyRequestedIndex(requested));
396
+ });
397
+ effect(() => {
398
+ const items = this.tabList().toArray();
399
+ const selectedId = this.selectedTabId();
400
+ untracked(() => this.syncSelection(items, selectedId));
401
+ });
402
+ afterRenderEffect({ read: () => {
403
+ this.#tabsSettled = this.tabList().length > 0;
404
+ } });
405
+ }
406
+ applyRequestedIndex(requested) {
407
+ if (requested === this.#reportedIndex) return;
408
+ const items = this.tabList().toArray();
409
+ if (items.length === 0) return;
410
+ const tab = items[requested];
411
+ if (tab && isEnabled(tab)) this.selectedTabId.set(tab.id);
412
+ this.reportIndex(items, this.selectedTabId());
413
+ }
414
+ reportIndex(items, selectedId) {
415
+ const index = items.findIndex((item) => item.id === selectedId);
416
+ if (index !== -1) {
417
+ this.#reportedIndex = index;
418
+ this.#selectedIndex().set(index);
419
+ }
420
+ }
421
+ syncSelection(items, selectedId) {
422
+ const incoming = items.find((item) => item.selected && item.id !== this.#flaggedTabId && item.id !== selectedId && isEnabled(item));
423
+ const nextId = incoming?.id ?? selectedId;
424
+ if (incoming) this.selectedTabId.set(incoming.id);
425
+ this.#flaggedTabId = nextId;
426
+ for (const tab of this.#tabs()) tab.selected.set(tab.tabItem.id === nextId);
427
+ this.reportIndex(items, nextId);
428
+ }
429
+ };
234
430
  var TabListItemDirective = class TabListItemDirective {
235
431
  constructor() {
236
432
  this.listItemClass = computed(() => {
237
433
  const active = this.active();
238
434
  const disabled = this.disabled();
435
+ const look = this.look();
239
436
  const position = this.position();
240
437
  const size = this.size();
241
438
  return tabListListItemThemeVariants({
242
439
  active,
243
440
  disabled,
441
+ look,
244
442
  position,
245
443
  size
246
444
  });
247
445
  }, ...ngDevMode ? [{ debugName: "listItemClass" }] : /* istanbul ignore next */ []);
248
446
  this.active = input.required(...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
249
447
  this.disabled = input.required(...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
448
+ this.look = input("line", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
250
449
  this.position = input.required(...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
251
450
  this.size = input.required(...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
252
451
  inject(RippleDirective, { self: true }).setHostDisabled(this.disabled);
@@ -283,6 +482,13 @@ var TabListItemDirective = class TabListItemDirective {
283
482
  isRequired: true,
284
483
  transformFunction: null
285
484
  },
485
+ look: {
486
+ classPropertyName: "look",
487
+ publicName: "look",
488
+ isSignal: true,
489
+ isRequired: false,
490
+ transformFunction: null
491
+ },
286
492
  position: {
287
493
  classPropertyName: "position",
288
494
  publicName: "position",
@@ -335,6 +541,14 @@ i0.ɵɵngDeclareClassMetadata({
335
541
  required: true
336
542
  }]
337
543
  }],
544
+ look: [{
545
+ type: i0.Input,
546
+ args: [{
547
+ isSignal: true,
548
+ alias: "look",
549
+ required: false
550
+ }]
551
+ }],
338
552
  position: [{
339
553
  type: i0.Input,
340
554
  args: [{
@@ -378,7 +592,10 @@ var TabListComponent = class TabListComponent {
378
592
  this.#focusedTabId = null;
379
593
  this.#resizeObserver = null;
380
594
  this.baseClass = computed(() => {
381
- return tabListBaseThemeVariants({ position: this.position() });
595
+ return tabListBaseThemeVariants({
596
+ look: this.look(),
597
+ position: this.position()
598
+ });
382
599
  }, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
383
600
  this.closeButtonClass = computed(() => {
384
601
  return tabListCloseButtonThemeVariants();
@@ -388,7 +605,10 @@ var TabListComponent = class TabListComponent {
388
605
  }, ...ngDevMode ? [{ debugName: "hasClosableTabs" }] : /* istanbul ignore next */ []);
389
606
  this.isRtl = computed(() => this.#direction() === "rtl", ...ngDevMode ? [{ debugName: "isRtl" }] : /* istanbul ignore next */ []);
390
607
  this.listClass = computed(() => {
391
- return tabListListThemeVariants({ position: this.position() });
608
+ return tabListListThemeVariants({
609
+ look: this.look(),
610
+ position: this.position()
611
+ });
392
612
  }, ...ngDevMode ? [{ debugName: "listClass" }] : /* istanbul ignore next */ []);
393
613
  this.listWrapperClass = computed(() => {
394
614
  return tabListListWrapperThemeVariants();
@@ -404,6 +624,7 @@ var TabListComponent = class TabListComponent {
404
624
  this.sortableTabs = computed(() => Array.from(this.tabList()), ...ngDevMode ? [{ debugName: "sortableTabs" }] : /* istanbul ignore next */ []);
405
625
  this.tabClass = computed(() => {
406
626
  return tabListTabThemeVariants({
627
+ look: this.look(),
407
628
  position: this.position(),
408
629
  size: this.size()
409
630
  });
@@ -420,7 +641,9 @@ var TabListComponent = class TabListComponent {
420
641
  });
421
642
  this.closable = input(false, ...ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []);
422
643
  this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
644
+ this.look = input("line", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
423
645
  this.position = input.required(...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
646
+ this.rendersPanels = input(false, ...ngDevMode ? [{ debugName: "rendersPanels" }] : /* istanbul ignore next */ []);
424
647
  this.selectedTabId = model(null, ...ngDevMode ? [{ debugName: "selectedTabId" }] : /* istanbul ignore next */ []);
425
648
  this.size = input.required(...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
426
649
  this.sortable = input(false, ...ngDevMode ? [{ debugName: "sortable" }] : /* istanbul ignore next */ []);
@@ -469,6 +692,12 @@ var TabListComponent = class TabListComponent {
469
692
  }
470
693
  if (!event.shiftKey) this.handleTabStripKey(tabs, currentTab, event);
471
694
  }
695
+ onTabAuxClick(tab, event) {
696
+ if (event.button === 1 && this.isTabClosable(tab)) {
697
+ event.preventDefault();
698
+ this.emitTabClose(tab, event);
699
+ }
700
+ }
472
701
  onTabClick(tab, event) {
473
702
  if (tab.disabled || this.disabled() || tab.id === this.selectedTabId()) return;
474
703
  if (!this.emitTabSelect(tab, event)) this.selectTab(tab);
@@ -477,9 +706,15 @@ var TabListComponent = class TabListComponent {
477
706
  event.stopPropagation();
478
707
  this.emitTabClose(tab, event);
479
708
  }
709
+ onTabMouseDown(tab, event) {
710
+ if (event.button === 1 && this.isTabClosable(tab)) event.preventDefault();
711
+ }
480
712
  onTabMove(event) {
481
713
  this.tabReorder.emit(new TabReorderEvent(event.previousIndex, event.currentIndex, event.originalEvent));
482
714
  }
715
+ panelIdOf(tab) {
716
+ return this.rendersPanels() ? ownPanelId(tab) : tab.panelId;
717
+ }
483
718
  startContinuousScroll(event, element, direction) {
484
719
  event.currentTarget.setPointerCapture(event.pointerId);
485
720
  this.startScrolling(element, direction, "continuous");
@@ -533,8 +768,8 @@ var TabListComponent = class TabListComponent {
533
768
  }
534
769
  handleTabKey(tabs, event) {
535
770
  const selectedTab = tabs.find((t) => t.id === this.selectedTabId());
536
- if (!selectedTab) return;
537
- const panel = this.#hostElement.getRootNode().getElementById(selectedTab.id + "-panel");
771
+ if (!selectedTab || !this.rendersPanels()) return;
772
+ const panel = this.#hostElement.getRootNode().getElementById(ownPanelId(selectedTab));
538
773
  if (panel) {
539
774
  event.preventDefault();
540
775
  panel.focus();
@@ -560,12 +795,15 @@ var TabListComponent = class TabListComponent {
560
795
  this.activateTab(enabledTabs[enabledTabs.length - 1], event);
561
796
  break;
562
797
  case "Delete":
563
- case "Backspace": if (this.isTabEnabled(currentTab) && (currentTab.closable || this.closable())) {
798
+ case "Backspace": if (this.isTabClosable(currentTab)) {
564
799
  event.preventDefault();
565
800
  this.emitTabClose(currentTab, event);
566
801
  }
567
802
  }
568
803
  }
804
+ isTabClosable(tab) {
805
+ return this.isTabEnabled(tab) && (tab.closable || this.closable());
806
+ }
569
807
  isTabEnabled(tab) {
570
808
  return !tab.disabled && !this.disabled();
571
809
  }
@@ -625,14 +863,14 @@ var TabListComponent = class TabListComponent {
625
863
  return (type === "single" ? timer : interval)(60).pipe(tap(() => this.performScroll(element, direction)));
626
864
  })).subscribe();
627
865
  }
628
- tabElementOf(tabId) {
629
- return this.tabElements().find((tab) => tab.nativeElement.id === tabId + "-tab")?.nativeElement;
866
+ tabElementOf(id) {
867
+ return this.tabElements().find((tab) => tab.nativeElement.closest("[data-tab-id]")?.getAttribute("data-tab-id") === id)?.nativeElement;
630
868
  }
631
869
  tabFromEvent(tabs, event) {
632
870
  const target = event.target;
633
871
  if (!target) return tabs.find((tab) => tab.id === this.selectedTabId());
634
- const tabElement = target.closest("[role='tab']");
635
- return tabElement ? tabs.find((tab) => tab.id + "-tab" === tabElement.id) : void 0;
872
+ const key = target.closest("[role='tab']")?.closest("[data-tab-id]")?.getAttribute("data-tab-id");
873
+ return key ? tabs.find((tab) => tab.id === key) : void 0;
636
874
  }
637
875
  updateScrollVisibility() {
638
876
  asapScheduler.schedule(() => {
@@ -687,6 +925,13 @@ var TabListComponent = class TabListComponent {
687
925
  isRequired: false,
688
926
  transformFunction: null
689
927
  },
928
+ look: {
929
+ classPropertyName: "look",
930
+ publicName: "look",
931
+ isSignal: true,
932
+ isRequired: false,
933
+ transformFunction: null
934
+ },
690
935
  position: {
691
936
  classPropertyName: "position",
692
937
  publicName: "position",
@@ -694,6 +939,13 @@ var TabListComponent = class TabListComponent {
694
939
  isRequired: true,
695
940
  transformFunction: null
696
941
  },
942
+ rendersPanels: {
943
+ classPropertyName: "rendersPanels",
944
+ publicName: "rendersPanels",
945
+ isSignal: true,
946
+ isRequired: false,
947
+ transformFunction: null
948
+ },
697
949
  selectedTabId: {
698
950
  classPropertyName: "selectedTabId",
699
951
  publicName: "selectedTabId",
@@ -754,7 +1006,7 @@ var TabListComponent = class TabListComponent {
754
1006
  isSignal: true
755
1007
  }],
756
1008
  ngImport: i0,
757
- template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n",
1009
+ template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [look]=\"look()\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\"\n (auxclick)=\"onTabAuxClick(tab, $event)\"\n (mousedown)=\"onTabMouseDown(tab, $event)\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.tabId\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"panelIdOf(tab)\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.tabId\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n",
758
1010
  dependencies: [
759
1011
  {
760
1012
  kind: "directive",
@@ -820,6 +1072,7 @@ var TabListComponent = class TabListComponent {
820
1072
  inputs: [
821
1073
  "active",
822
1074
  "disabled",
1075
+ "look",
823
1076
  "position",
824
1077
  "size"
825
1078
  ]
@@ -882,7 +1135,7 @@ i0.ɵɵngDeclareClassMetadata({
882
1135
  "(focusout)": "onFocusOut($event)",
883
1136
  "(keydown)": "onKeydown($event)"
884
1137
  },
885
- template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.id + '-tab'\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.id + '-tab'\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n"
1138
+ template: "@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollPrevious\"\n (click)=\"startScrolling(tabListElement, 'previous', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'previous')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronUp [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronLeft [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n<div [class]=\"listWrapperClass()\">\n <ul\n [class]=\"listClass()\"\n #tabListElement\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-orientation]=\"orientation()\"\n [monaSortable]=\"sortableTabs()\"\n [sortableDisabled]=\"!sortable() || disabled()\"\n [sortableOrientation]=\"orientation()\"\n sortableLockAxis\n (sortableMove)=\"onTabMove($event)\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let itemDisabled = tab.disabled || disabled();\n @let tabClosable = tab.closable || closable();\n <li\n monaTabListItem\n #sortItem=\"monaSortableItem\"\n [monaSortableItem]=\"tab\"\n [sortableDisabled]=\"itemDisabled\"\n [sortableLabel]=\"tab.title\"\n [active]=\"selected\"\n [disabled]=\"itemDisabled\"\n [look]=\"look()\"\n [position]=\"position()\"\n [size]=\"size()\"\n role=\"presentation\"\n [attr.data-selected]=\"selected\"\n [attr.data-tab-id]=\"tab.id\"\n (auxclick)=\"onTabAuxClick(tab, $event)\"\n (mousedown)=\"onTabMouseDown(tab, $event)\">\n <div\n #tabElement\n [class]=\"tabClass()\"\n [id]=\"tab.tabId\"\n role=\"tab\"\n [tabindex]=\"selected ? 0 : -1\"\n [attr.aria-selected]=\"selected\"\n [attr.aria-disabled]=\"itemDisabled\"\n [attr.aria-controls]=\"panelIdOf(tab)\"\n [attr.aria-keyshortcuts]=\"tabKeyShortcuts(tabClosable && !itemDisabled, sortItem.keyShortcuts())\"\n (click)=\"onTabClick(tab, $event)\">\n <div>\n @if (tab.titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"tab.titleTemplate\"></ng-container>\n } @else {\n <span>{{ tab.title }}</span>\n }\n </div>\n </div>\n @if (tabClosable) {\n <!-- For the pointer. A button assistive technology can see isn't allowed inside a tablist. -->\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n data-tab-close\n [disabled]=\"itemDisabled\"\n [attr.aria-hidden]=\"true\"\n [attr.aria-label]=\"messages().closeTab\"\n (click)=\"onTabClose(tab, $event)\"\n [class]=\"closeButtonClass()\"\n tabindex=\"-1\">\n <svg lucideX [size]=\"16\"></svg>\n </button>\n }\n </li>\n }\n </ul>\n</div>\n@if (hasClosableTabs()) {\n <!-- The same action for assistive technology, outside the tablist. The keyboard's route is Delete. -->\n <div class=\"sr-only\">\n @for (tab of tabList(); track tab.id) {\n @if (tab.closable || closable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [id]=\"tab.id + '-close'\"\n [disabled]=\"tab.disabled || disabled()\"\n [attr.aria-label]=\"messages().closeTab\"\n [attr.aria-labelledby]=\"tab.id + '-close ' + tab.tabId\"\n [attr.data-tab-id]=\"tab.id\"\n (click)=\"onTabClose(tab, $event)\"></button>\n }\n }\n </div>\n}\n@if (overflowControlsVisible()) {\n <button\n monaButton\n type=\"button\"\n look=\"link\"\n size=\"small\"\n [class]=\"scrollButtonClass()\"\n [attr.aria-label]=\"messages().scrollNext\"\n (click)=\"startScrolling(tabListElement, 'next', 'single')\"\n (pointerdown)=\"startContinuousScroll($event, tabListElement, 'next')\"\n (pointerup)=\"stopScrolling()\"\n (pointercancel)=\"stopScrolling()\"\n [attr.aria-hidden]=\"true\"\n tabindex=\"-1\">\n @if (orientation() === \"vertical\") {\n <svg lucideChevronDown [size]=\"16\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n}\n"
886
1139
  }]
887
1140
  }],
888
1141
  ctorParameters: () => [],
@@ -927,6 +1180,14 @@ i0.ɵɵngDeclareClassMetadata({
927
1180
  required: false
928
1181
  }]
929
1182
  }],
1183
+ look: [{
1184
+ type: i0.Input,
1185
+ args: [{
1186
+ isSignal: true,
1187
+ alias: "look",
1188
+ required: false
1189
+ }]
1190
+ }],
930
1191
  position: [{
931
1192
  type: i0.Input,
932
1193
  args: [{
@@ -935,6 +1196,14 @@ i0.ɵɵngDeclareClassMetadata({
935
1196
  required: true
936
1197
  }]
937
1198
  }],
1199
+ rendersPanels: [{
1200
+ type: i0.Input,
1201
+ args: [{
1202
+ isSignal: true,
1203
+ alias: "rendersPanels",
1204
+ required: false
1205
+ }]
1206
+ }],
938
1207
  selectedTabId: [{
939
1208
  type: i0.Input,
940
1209
  args: [{
@@ -987,11 +1256,14 @@ i0.ɵɵngDeclareClassMetadata({
987
1256
  var TabComponent = class TabComponent {
988
1257
  constructor() {
989
1258
  this.#id = createElementControlId();
1259
+ this.#tabElementId = `${this.#id}-tab`;
990
1260
  this.#tabItem = computed(() => {
991
1261
  const closable = this.closable();
992
1262
  const contentTemplate = this.contentTemplate();
993
1263
  const disabled = this.disabled();
1264
+ const panelId = this.panelId() || null;
994
1265
  const selected = this.selected();
1266
+ const tabId = this.tabId() || this.#tabElementId;
995
1267
  const titleTemplate = this.titleTemplate();
996
1268
  const title = this.title();
997
1269
  return {
@@ -1000,7 +1272,9 @@ var TabComponent = class TabComponent {
1000
1272
  disabled,
1001
1273
  id: this.#id,
1002
1274
  index: 0,
1275
+ panelId,
1003
1276
  selected,
1277
+ tabId,
1004
1278
  title,
1005
1279
  titleTemplate
1006
1280
  };
@@ -1021,10 +1295,13 @@ var TabComponent = class TabComponent {
1021
1295
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1022
1296
  transform: booleanAttribute
1023
1297
  });
1298
+ this.panelId = input("", ...ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []);
1024
1299
  this.selected = model(false, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
1300
+ this.tabId = input(this.#tabElementId, ...ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []);
1025
1301
  this.title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
1026
1302
  }
1027
1303
  #id;
1304
+ #tabElementId;
1028
1305
  #tabItem;
1029
1306
  get tabItem() {
1030
1307
  return this.#tabItem();
@@ -1061,6 +1338,13 @@ var TabComponent = class TabComponent {
1061
1338
  isRequired: false,
1062
1339
  transformFunction: null
1063
1340
  },
1341
+ panelId: {
1342
+ classPropertyName: "panelId",
1343
+ publicName: "panelId",
1344
+ isSignal: true,
1345
+ isRequired: false,
1346
+ transformFunction: null
1347
+ },
1064
1348
  selected: {
1065
1349
  classPropertyName: "selected",
1066
1350
  publicName: "selected",
@@ -1068,6 +1352,13 @@ var TabComponent = class TabComponent {
1068
1352
  isRequired: false,
1069
1353
  transformFunction: null
1070
1354
  },
1355
+ tabId: {
1356
+ classPropertyName: "tabId",
1357
+ publicName: "tabId",
1358
+ isSignal: true,
1359
+ isRequired: false,
1360
+ transformFunction: null
1361
+ },
1071
1362
  title: {
1072
1363
  classPropertyName: "title",
1073
1364
  publicName: "title",
@@ -1141,6 +1432,14 @@ i0.ɵɵngDeclareClassMetadata({
1141
1432
  required: false
1142
1433
  }]
1143
1434
  }],
1435
+ panelId: [{
1436
+ type: i0.Input,
1437
+ args: [{
1438
+ isSignal: true,
1439
+ alias: "panelId",
1440
+ required: false
1441
+ }]
1442
+ }],
1144
1443
  selected: [{
1145
1444
  type: i0.Input,
1146
1445
  args: [{
@@ -1152,6 +1451,14 @@ i0.ɵɵngDeclareClassMetadata({
1152
1451
  type: i0.Output,
1153
1452
  args: ["selectedChange"]
1154
1453
  }],
1454
+ tabId: [{
1455
+ type: i0.Input,
1456
+ args: [{
1457
+ isSignal: true,
1458
+ alias: "tabId",
1459
+ required: false
1460
+ }]
1461
+ }],
1155
1462
  title: [{
1156
1463
  type: i0.Input,
1157
1464
  args: [{
@@ -1162,20 +1469,9 @@ i0.ɵɵngDeclareClassMetadata({
1162
1469
  }]
1163
1470
  }
1164
1471
  });
1165
- function isEnabled(tab) {
1166
- return !tab.disabled;
1167
- }
1168
- function neighborOf(tabs, removedIndex) {
1169
- return tabs.slice(removedIndex).find(isEnabled) ?? tabs.slice(0, removedIndex).reverse().find(isEnabled);
1170
- }
1171
1472
  var TabsComponent = class TabsComponent {
1172
- #flaggedTabId;
1173
- #reportedIndex;
1174
- #tabsSettled;
1175
1473
  constructor() {
1176
- this.#flaggedTabId = null;
1177
- this.#reportedIndex = null;
1178
- this.#tabsSettled = false;
1474
+ this.#selection = new TabSelection(() => this.tabs(), () => this.selectedIndex);
1179
1475
  this.baseClass = computed(() => {
1180
1476
  const variantClass = tabsBaseThemeVariants({ position: this.position() });
1181
1477
  const userClass = this.userClass();
@@ -1184,24 +1480,8 @@ var TabsComponent = class TabsComponent {
1184
1480
  this.contentClass = computed(() => {
1185
1481
  return tabContentThemeVariants();
1186
1482
  }, ...ngDevMode ? [{ debugName: "contentClass" }] : /* istanbul ignore next */ []);
1187
- this.selectedTabId = linkedSignal({
1188
- ...ngDevMode ? { debugName: "selectedTabId" } : /* istanbul ignore next */ {},
1189
- source: () => this.tabList(),
1190
- computation: (tabList, previous) => {
1191
- const tabs = tabList.toArray();
1192
- const previousId = previous?.value ?? null;
1193
- if (previousId === null || !this.#tabsSettled) {
1194
- const requested = tabs[untracked(this.selectedIndex)];
1195
- return (requested && isEnabled(requested) ? requested : tabs.find(isEnabled))?.id ?? null;
1196
- }
1197
- if (tabs.some((tab) => tab.id === previousId)) return previousId;
1198
- return neighborOf(tabs, previous?.source.toArray().findIndex((tab) => tab.id === previousId) ?? 0)?.id ?? null;
1199
- }
1200
- });
1201
- this.tabList = computed(() => {
1202
- const tabs = this.tabs();
1203
- return select(tabs, (t) => t.tabItem).tap((t, tx) => t.index = tx).toImmutableSet();
1204
- }, ...ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []);
1483
+ this.selectedTabId = this.#selection.selectedTabId;
1484
+ this.tabList = this.#selection.tabList;
1205
1485
  this.tabListComponent = viewChild.required(TabListComponent, ...ngDevMode ? [{ debugName: "tabListComponent" }] : /* istanbul ignore next */ []);
1206
1486
  this.tabs = contentChildren(TabComponent, ...ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []);
1207
1487
  this.ariaLabel = input("", {
@@ -1224,6 +1504,7 @@ var TabsComponent = class TabsComponent {
1224
1504
  ...ngDevMode ? { debugName: "keepTabContent" } : /* istanbul ignore next */ {},
1225
1505
  transform: booleanAttribute
1226
1506
  });
1507
+ this.look = input("line", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
1227
1508
  this.position = input("top", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
1228
1509
  this.selectedIndex = model(0, ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
1229
1510
  this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
@@ -1238,19 +1519,8 @@ var TabsComponent = class TabsComponent {
1238
1519
  ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1239
1520
  alias: "class"
1240
1521
  });
1241
- effect(() => {
1242
- const requested = this.selectedIndex();
1243
- untracked(() => this.applyRequestedIndex(requested));
1244
- });
1245
- effect(() => {
1246
- const items = this.tabList().toArray();
1247
- const selectedId = this.selectedTabId();
1248
- untracked(() => this.syncSelection(items, selectedId));
1249
- });
1250
- afterRenderEffect({ read: () => {
1251
- this.#tabsSettled = this.tabList().length > 0;
1252
- } });
1253
1522
  }
1523
+ #selection;
1254
1524
  handlePanelKeyDown(event) {
1255
1525
  if (event.key === "Tab" && event.shiftKey) {
1256
1526
  if (event.target !== event.currentTarget) return;
@@ -1258,28 +1528,8 @@ var TabsComponent = class TabsComponent {
1258
1528
  this.tabListComponent().focusSelectedTab();
1259
1529
  }
1260
1530
  }
1261
- applyRequestedIndex(requested) {
1262
- if (requested === this.#reportedIndex) return;
1263
- const items = this.tabList().toArray();
1264
- if (items.length === 0) return;
1265
- const tab = items[requested];
1266
- if (tab && isEnabled(tab)) this.selectedTabId.set(tab.id);
1267
- this.reportIndex(items, this.selectedTabId());
1268
- }
1269
- reportIndex(items, selectedId) {
1270
- const index = items.findIndex((item) => item.id === selectedId);
1271
- if (index !== -1) {
1272
- this.#reportedIndex = index;
1273
- this.selectedIndex.set(index);
1274
- }
1275
- }
1276
- syncSelection(items, selectedId) {
1277
- const incoming = items.find((item) => item.selected && item.id !== this.#flaggedTabId && item.id !== selectedId && isEnabled(item));
1278
- const nextId = incoming?.id ?? selectedId;
1279
- if (incoming) this.selectedTabId.set(incoming.id);
1280
- this.#flaggedTabId = nextId;
1281
- for (const tab of this.tabs()) tab.selected.set(tab.tabItem.id === nextId);
1282
- this.reportIndex(items, nextId);
1531
+ panelIdOf(tab) {
1532
+ return ownPanelId(tab);
1283
1533
  }
1284
1534
  static {
1285
1535
  this.ɵfac = i0.ɵɵngDeclareFactory({
@@ -1334,6 +1584,13 @@ var TabsComponent = class TabsComponent {
1334
1584
  isRequired: false,
1335
1585
  transformFunction: null
1336
1586
  },
1587
+ look: {
1588
+ classPropertyName: "look",
1589
+ publicName: "look",
1590
+ isSignal: true,
1591
+ isRequired: false,
1592
+ transformFunction: null
1593
+ },
1337
1594
  position: {
1338
1595
  classPropertyName: "position",
1339
1596
  publicName: "position",
@@ -1394,7 +1651,7 @@ var TabsComponent = class TabsComponent {
1394
1651
  isSignal: true
1395
1652
  }],
1396
1653
  ngImport: i0,
1397
- template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n",
1654
+ template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [look]=\"look()\"\n [position]=\"position()\"\n [rendersPanels]=\"true\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"panelIdOf(tab)\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.tabId\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n",
1398
1655
  dependencies: [{
1399
1656
  kind: "directive",
1400
1657
  type: NgTemplateOutlet,
@@ -1413,7 +1670,9 @@ var TabsComponent = class TabsComponent {
1413
1670
  "aria-labelledby",
1414
1671
  "closable",
1415
1672
  "disabled",
1673
+ "look",
1416
1674
  "position",
1675
+ "rendersPanels",
1417
1676
  "selectedTabId",
1418
1677
  "size",
1419
1678
  "sortable",
@@ -1444,10 +1703,9 @@ i0.ɵɵngDeclareClassMetadata({
1444
1703
  "[attr.aria-label]": "null",
1445
1704
  "[attr.aria-labelledby]": "null"
1446
1705
  },
1447
- template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [position]=\"position()\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"tab.id + '-panel'\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.id + '-tab'\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n"
1706
+ template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [look]=\"look()\"\n [position]=\"position()\"\n [rendersPanels]=\"true\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n<div [class]=\"contentClass()\">\n @for (tab of tabList(); track tab.id) {\n @let selected = tab.id === selectedTabId();\n @let tabLoaded = keepTabContent() || selected;\n @let tabHidden = keepTabContent() && !selected;\n @if (tabLoaded) {\n <div\n class=\"w-full h-full rounded-sm focus-visible:outline-2 focus-visible:outline-focus-indicator focus-visible:-outline-offset-2\"\n [class.hidden]=\"tabHidden\"\n role=\"tabpanel\"\n [id]=\"panelIdOf(tab)\"\n tabindex=\"0\"\n (keydown)=\"handlePanelKeyDown($event)\"\n [attr.aria-hidden]=\"tabHidden\"\n [attr.aria-labelledby]=\"tab.tabId\">\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplate\"></ng-container>\n </div>\n }\n }\n</div>\n"
1448
1707
  }]
1449
1708
  }],
1450
- ctorParameters: () => [],
1451
1709
  propDecorators: {
1452
1710
  tabListComponent: [{
1453
1711
  type: i0.ViewChild,
@@ -1497,6 +1755,14 @@ i0.ɵɵngDeclareClassMetadata({
1497
1755
  required: false
1498
1756
  }]
1499
1757
  }],
1758
+ look: [{
1759
+ type: i0.Input,
1760
+ args: [{
1761
+ isSignal: true,
1762
+ alias: "look",
1763
+ required: false
1764
+ }]
1765
+ }],
1500
1766
  position: [{
1501
1767
  type: i0.Input,
1502
1768
  args: [{
@@ -1554,6 +1820,286 @@ i0.ɵɵngDeclareClassMetadata({
1554
1820
  }]
1555
1821
  }
1556
1822
  });
1557
- export { TABS_DEFAULT_MESSAGES, TabCloseEvent, TabComponent, TabContentTemplateDirective, TabReorderEvent, TabSelectEvent, TabTitleTemplateDirective, TabsComponent };
1823
+ var TabStripComponent = class TabStripComponent {
1824
+ constructor() {
1825
+ this.#selection = new TabSelection(() => this.tabs(), () => this.selectedIndex);
1826
+ this.baseClass = computed(() => {
1827
+ return twMerge(tabStripThemeVariants(), this.userClass());
1828
+ }, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
1829
+ this.selectedTabId = this.#selection.selectedTabId;
1830
+ this.tabList = this.#selection.tabList;
1831
+ this.tabs = contentChildren(TabComponent, ...ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []);
1832
+ this.ariaLabel = input("", {
1833
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
1834
+ alias: "aria-label"
1835
+ });
1836
+ this.ariaLabelledBy = input("", {
1837
+ ...ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {},
1838
+ alias: "aria-labelledby"
1839
+ });
1840
+ this.closable = input(false, {
1841
+ ...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
1842
+ transform: booleanAttribute
1843
+ });
1844
+ this.disabled = input(false, {
1845
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1846
+ transform: booleanAttribute
1847
+ });
1848
+ this.look = input("line", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
1849
+ this.selectedIndex = model(0, ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
1850
+ this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
1851
+ this.sortable = input(false, {
1852
+ ...ngDevMode ? { debugName: "sortable" } : /* istanbul ignore next */ {},
1853
+ transform: booleanAttribute
1854
+ });
1855
+ this.tabClose = output();
1856
+ this.tabReorder = output();
1857
+ this.tabSelect = output();
1858
+ this.userClass = input("", {
1859
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1860
+ alias: "class"
1861
+ });
1862
+ }
1863
+ #selection;
1864
+ static {
1865
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1866
+ minVersion: "12.0.0",
1867
+ version: "22.3.0",
1868
+ ngImport: i0,
1869
+ type: TabStripComponent,
1870
+ deps: [],
1871
+ target: i0.ɵɵFactoryTarget.Component
1872
+ });
1873
+ }
1874
+ static {
1875
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1876
+ minVersion: "17.2.0",
1877
+ version: "22.3.0",
1878
+ type: TabStripComponent,
1879
+ isStandalone: true,
1880
+ selector: "mona-tab-strip",
1881
+ inputs: {
1882
+ ariaLabel: {
1883
+ classPropertyName: "ariaLabel",
1884
+ publicName: "aria-label",
1885
+ isSignal: true,
1886
+ isRequired: false,
1887
+ transformFunction: null
1888
+ },
1889
+ ariaLabelledBy: {
1890
+ classPropertyName: "ariaLabelledBy",
1891
+ publicName: "aria-labelledby",
1892
+ isSignal: true,
1893
+ isRequired: false,
1894
+ transformFunction: null
1895
+ },
1896
+ closable: {
1897
+ classPropertyName: "closable",
1898
+ publicName: "closable",
1899
+ isSignal: true,
1900
+ isRequired: false,
1901
+ transformFunction: null
1902
+ },
1903
+ disabled: {
1904
+ classPropertyName: "disabled",
1905
+ publicName: "disabled",
1906
+ isSignal: true,
1907
+ isRequired: false,
1908
+ transformFunction: null
1909
+ },
1910
+ look: {
1911
+ classPropertyName: "look",
1912
+ publicName: "look",
1913
+ isSignal: true,
1914
+ isRequired: false,
1915
+ transformFunction: null
1916
+ },
1917
+ selectedIndex: {
1918
+ classPropertyName: "selectedIndex",
1919
+ publicName: "selectedIndex",
1920
+ isSignal: true,
1921
+ isRequired: false,
1922
+ transformFunction: null
1923
+ },
1924
+ size: {
1925
+ classPropertyName: "size",
1926
+ publicName: "size",
1927
+ isSignal: true,
1928
+ isRequired: false,
1929
+ transformFunction: null
1930
+ },
1931
+ sortable: {
1932
+ classPropertyName: "sortable",
1933
+ publicName: "sortable",
1934
+ isSignal: true,
1935
+ isRequired: false,
1936
+ transformFunction: null
1937
+ },
1938
+ userClass: {
1939
+ classPropertyName: "userClass",
1940
+ publicName: "class",
1941
+ isSignal: true,
1942
+ isRequired: false,
1943
+ transformFunction: null
1944
+ }
1945
+ },
1946
+ outputs: {
1947
+ selectedIndex: "selectedIndexChange",
1948
+ tabClose: "tabClose",
1949
+ tabReorder: "tabReorder",
1950
+ tabSelect: "tabSelect"
1951
+ },
1952
+ host: { properties: {
1953
+ "class": "baseClass()",
1954
+ "attr.aria-label": "null",
1955
+ "attr.aria-labelledby": "null"
1956
+ } },
1957
+ queries: [{
1958
+ propertyName: "tabs",
1959
+ predicate: TabComponent,
1960
+ isSignal: true
1961
+ }],
1962
+ ngImport: i0,
1963
+ template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [look]=\"look()\"\n position=\"top\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n",
1964
+ dependencies: [{
1965
+ kind: "component",
1966
+ type: TabListComponent,
1967
+ selector: "mona-tab-list",
1968
+ inputs: [
1969
+ "aria-label",
1970
+ "aria-labelledby",
1971
+ "closable",
1972
+ "disabled",
1973
+ "look",
1974
+ "position",
1975
+ "rendersPanels",
1976
+ "selectedTabId",
1977
+ "size",
1978
+ "sortable",
1979
+ "tabList"
1980
+ ],
1981
+ outputs: [
1982
+ "selectedTabIdChange",
1983
+ "tabClose",
1984
+ "tabReorder",
1985
+ "tabSelect"
1986
+ ]
1987
+ }]
1988
+ });
1989
+ }
1990
+ };
1991
+ i0.ɵɵngDeclareClassMetadata({
1992
+ minVersion: "12.0.0",
1993
+ version: "22.3.0",
1994
+ ngImport: i0,
1995
+ type: TabStripComponent,
1996
+ decorators: [{
1997
+ type: Component,
1998
+ args: [{
1999
+ selector: "mona-tab-strip",
2000
+ imports: [TabListComponent],
2001
+ host: {
2002
+ "[class]": "baseClass()",
2003
+ "[attr.aria-label]": "null",
2004
+ "[attr.aria-labelledby]": "null"
2005
+ },
2006
+ template: "<mona-tab-list\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledBy()\"\n [closable]=\"closable()\"\n [disabled]=\"disabled()\"\n [look]=\"look()\"\n position=\"top\"\n [size]=\"size()\"\n [sortable]=\"sortable()\"\n [tabList]=\"tabList()\"\n [selectedTabId]=\"selectedTabId()\"\n (selectedTabIdChange)=\"selectedTabId.set($event)\"\n (tabClose)=\"tabClose.emit($event)\"\n (tabReorder)=\"tabReorder.emit($event)\"\n (tabSelect)=\"tabSelect.emit($event)\"></mona-tab-list>\n"
2007
+ }]
2008
+ }],
2009
+ propDecorators: {
2010
+ tabs: [{
2011
+ type: i0.ContentChildren,
2012
+ args: [i0.forwardRef(() => TabComponent), { isSignal: true }]
2013
+ }],
2014
+ ariaLabel: [{
2015
+ type: i0.Input,
2016
+ args: [{
2017
+ isSignal: true,
2018
+ alias: "aria-label",
2019
+ required: false
2020
+ }]
2021
+ }],
2022
+ ariaLabelledBy: [{
2023
+ type: i0.Input,
2024
+ args: [{
2025
+ isSignal: true,
2026
+ alias: "aria-labelledby",
2027
+ required: false
2028
+ }]
2029
+ }],
2030
+ closable: [{
2031
+ type: i0.Input,
2032
+ args: [{
2033
+ isSignal: true,
2034
+ alias: "closable",
2035
+ required: false
2036
+ }]
2037
+ }],
2038
+ disabled: [{
2039
+ type: i0.Input,
2040
+ args: [{
2041
+ isSignal: true,
2042
+ alias: "disabled",
2043
+ required: false
2044
+ }]
2045
+ }],
2046
+ look: [{
2047
+ type: i0.Input,
2048
+ args: [{
2049
+ isSignal: true,
2050
+ alias: "look",
2051
+ required: false
2052
+ }]
2053
+ }],
2054
+ selectedIndex: [{
2055
+ type: i0.Input,
2056
+ args: [{
2057
+ isSignal: true,
2058
+ alias: "selectedIndex",
2059
+ required: false
2060
+ }]
2061
+ }, {
2062
+ type: i0.Output,
2063
+ args: ["selectedIndexChange"]
2064
+ }],
2065
+ size: [{
2066
+ type: i0.Input,
2067
+ args: [{
2068
+ isSignal: true,
2069
+ alias: "size",
2070
+ required: false
2071
+ }]
2072
+ }],
2073
+ sortable: [{
2074
+ type: i0.Input,
2075
+ args: [{
2076
+ isSignal: true,
2077
+ alias: "sortable",
2078
+ required: false
2079
+ }]
2080
+ }],
2081
+ tabClose: [{
2082
+ type: i0.Output,
2083
+ args: ["tabClose"]
2084
+ }],
2085
+ tabReorder: [{
2086
+ type: i0.Output,
2087
+ args: ["tabReorder"]
2088
+ }],
2089
+ tabSelect: [{
2090
+ type: i0.Output,
2091
+ args: ["tabSelect"]
2092
+ }],
2093
+ userClass: [{
2094
+ type: i0.Input,
2095
+ args: [{
2096
+ isSignal: true,
2097
+ alias: "class",
2098
+ required: false
2099
+ }]
2100
+ }]
2101
+ }
2102
+ });
2103
+ export { TABS_DEFAULT_MESSAGES, TabCloseEvent, TabComponent, TabContentTemplateDirective, TabReorderEvent, TabSelectEvent, TabStripComponent, TabTitleTemplateDirective, TabsComponent };
1558
2104
 
1559
2105
  //# sourceMappingURL=nanahoshi-mona-ui-tabs.mjs.map