@thalassic/ui 22.10.0 → 22.11.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/fesm2022/thalassic-ui.mjs +118 -24
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +49 -8
|
@@ -17,7 +17,7 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
|
17
17
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
18
18
|
import { Menu as Menu$1, MenuItem } from '@angular/aria/menu';
|
|
19
19
|
import * as i1 from '@angular/aria/tabs';
|
|
20
|
-
import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1 } from '@angular/aria/tabs';
|
|
20
|
+
import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1, TabContent } from '@angular/aria/tabs';
|
|
21
21
|
import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
|
|
22
22
|
import { deepMerge } from '@thalassic/core';
|
|
23
23
|
|
|
@@ -1442,6 +1442,9 @@ const buildOverlayPositions = (position, offset) => {
|
|
|
1442
1442
|
}));
|
|
1443
1443
|
};
|
|
1444
1444
|
|
|
1445
|
+
/** Escapes RegExp metacharacters so the string matches literally inside a pattern. */
|
|
1446
|
+
const escapeRegularExpression = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1447
|
+
|
|
1445
1448
|
/** Reorders Sunday-first weekday labels so the one for `weekStartsOn` comes first. */
|
|
1446
1449
|
const rotateWeekDays = (weekDays, weekStartsOn) => [
|
|
1447
1450
|
...weekDays.slice(weekStartsOn),
|
|
@@ -5151,6 +5154,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
5151
5154
|
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleButton) }], template: "@if (stackedLabels()) {\n <span class=\"tls-toggle-button__labels\">\n <span\n class=\"tls-toggle-button__label\"\n [class.tls-toggle-button__label--hidden]=\"checked()\"\n >{{ label() }}</span>\n <span\n class=\"tls-toggle-button__label\"\n [class.tls-toggle-button__label--hidden]=\"!checked()\"\n >{{ checkedLabel() }}</span>\n </span>\n} @else if (displayedLabel()) {\n {{ displayedLabel() }}\n} @else {\n <ng-content></ng-content>\n}\n" }]
|
|
5152
5155
|
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], checkedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedLabel", required: false }] }], staticWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "staticWidth", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], checkedColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedColor", required: false }] }], checkedVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedVariant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
5153
5156
|
|
|
5157
|
+
const DEFAULT_MARK_CONFIG = {
|
|
5158
|
+
color: 'warning',
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5161
|
+
const MARK_CONFIG = new InjectionToken('MARK_CONFIG', {
|
|
5162
|
+
factory: () => DEFAULT_MARK_CONFIG,
|
|
5163
|
+
});
|
|
5164
|
+
|
|
5165
|
+
class Mark {
|
|
5166
|
+
// Injections
|
|
5167
|
+
_config = inject(MARK_CONFIG);
|
|
5168
|
+
// Inputs
|
|
5169
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
5170
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
5171
|
+
// Computed
|
|
5172
|
+
hostClasses = computed(() => {
|
|
5173
|
+
const className = 'tls-mark';
|
|
5174
|
+
return [className, `${className}--${this.color()}`];
|
|
5175
|
+
}, /* @ts-ignore */
|
|
5176
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
5177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Mark, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5178
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: Mark, isStandalone: true, selector: "mark[tlsMark]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0 });
|
|
5179
|
+
}
|
|
5180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Mark, decorators: [{
|
|
5181
|
+
type: Directive,
|
|
5182
|
+
args: [{
|
|
5183
|
+
selector: 'mark[tlsMark]',
|
|
5184
|
+
host: {
|
|
5185
|
+
'[class]': 'hostClasses()',
|
|
5186
|
+
},
|
|
5187
|
+
}]
|
|
5188
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
5189
|
+
|
|
5190
|
+
const DEFAULT_HIGHLIGHT_CONFIG = {
|
|
5191
|
+
color: 'warning',
|
|
5192
|
+
caseSensitive: false,
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
const HIGHLIGHT_CONFIG = new InjectionToken('HIGHLIGHT_CONFIG', {
|
|
5196
|
+
factory: () => DEFAULT_HIGHLIGHT_CONFIG,
|
|
5197
|
+
});
|
|
5198
|
+
|
|
5199
|
+
class Highlight {
|
|
5200
|
+
// Injections
|
|
5201
|
+
_config = inject(HIGHLIGHT_CONFIG);
|
|
5202
|
+
// Inputs
|
|
5203
|
+
text = input.required(/* @ts-ignore */
|
|
5204
|
+
...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
5205
|
+
query = input(undefined, /* @ts-ignore */
|
|
5206
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
5207
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
5208
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
5209
|
+
caseSensitive = input(this._config.caseSensitive, { ...(ngDevMode ? { debugName: "caseSensitive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5210
|
+
// Computed
|
|
5211
|
+
_queries = computed(() => {
|
|
5212
|
+
const query = this.query();
|
|
5213
|
+
if (query === undefined)
|
|
5214
|
+
return [];
|
|
5215
|
+
const queries = Array.isArray(query) ? query : [query];
|
|
5216
|
+
// Longest term first, so an overlapping shorter term cannot shadow a longer
|
|
5217
|
+
// match in the regex alternation (e.g. 'ab' wins over 'a').
|
|
5218
|
+
return queries.filter(item => item.length > 0).sort((left, right) => right.length - left.length);
|
|
5219
|
+
}, /* @ts-ignore */
|
|
5220
|
+
...(ngDevMode ? [{ debugName: "_queries" }] : /* istanbul ignore next */ []));
|
|
5221
|
+
segments = computed(() => {
|
|
5222
|
+
const text = this.text();
|
|
5223
|
+
const queries = this._queries();
|
|
5224
|
+
if (text.length === 0 || queries.length === 0)
|
|
5225
|
+
return [{ text, matched: false }];
|
|
5226
|
+
const flags = this.caseSensitive() ? 'g' : 'gi';
|
|
5227
|
+
const pattern = new RegExp(queries.map(escapeRegularExpression).join('|'), flags);
|
|
5228
|
+
const segments = [];
|
|
5229
|
+
let lastIndex = 0;
|
|
5230
|
+
for (const match of text.matchAll(pattern)) {
|
|
5231
|
+
if (match.index > lastIndex) {
|
|
5232
|
+
segments.push({ text: text.slice(lastIndex, match.index), matched: false });
|
|
5233
|
+
}
|
|
5234
|
+
segments.push({ text: match[0], matched: true });
|
|
5235
|
+
lastIndex = match.index + match[0].length;
|
|
5236
|
+
}
|
|
5237
|
+
if (lastIndex < text.length)
|
|
5238
|
+
segments.push({ text: text.slice(lastIndex), matched: false });
|
|
5239
|
+
return segments;
|
|
5240
|
+
}, /* @ts-ignore */
|
|
5241
|
+
...(ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []));
|
|
5242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Highlight, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Highlight, isStandalone: true, selector: "tls-highlight", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- Every segment is wrapped in an element (mark or span) so Angular's whitespace\ncollapsing cannot inject spaces between adjacent segments of a split word. -->\n@for (segment of segments(); track $index) {\n @if (segment.matched) {\n <mark tlsMark [color]=\"color()\">{{ segment.text }}</mark>\n } @else {\n <span>{{ segment.text }}</span>\n }\n}\n", dependencies: [{ kind: "directive", type: Mark, selector: "mark[tlsMark]", inputs: ["color"] }] });
|
|
5244
|
+
}
|
|
5245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Highlight, decorators: [{
|
|
5246
|
+
type: Component,
|
|
5247
|
+
args: [{ selector: 'tls-highlight', imports: [Mark], template: "<!-- Every segment is wrapped in an element (mark or span) so Angular's whitespace\ncollapsing cannot inject spaces between adjacent segments of a split word. -->\n@for (segment of segments(); track $index) {\n @if (segment.matched) {\n <mark tlsMark [color]=\"color()\">{{ segment.text }}</mark>\n } @else {\n <span>{{ segment.text }}</span>\n }\n}\n" }]
|
|
5248
|
+
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], caseSensitive: [{ type: i0.Input, args: [{ isSignal: true, alias: "caseSensitive", required: false }] }] } });
|
|
5249
|
+
|
|
5154
5250
|
const DEFAULT_IMAGE_COMPARE_CONFIG = {
|
|
5155
5251
|
orientation: 'horizontal',
|
|
5156
5252
|
position: 50,
|
|
@@ -6593,34 +6689,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
6593
6689
|
], host: {}, template: "<table\n cdk-table\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th cdk-header-cell *cdkHeaderCellDef class=\"tls-table__header-cell\" [style.width]=\"column.width + 'px'\">\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n class=\"tls-table__cell\"\n [style.text-align]=\"column.alignment\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: data[column.key],\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ data[column.key] }}\n }\n </td>\n </ng-container>\n }\n\n <tr cdk-header-row *cdkHeaderRowDef=\"columns()\" class=\"tls-table__header-row\"></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row class=\"tls-table__row\"></tr>\n</table>\n", styles: [":host{display:block}\n"] }]
|
|
6594
6690
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columnDefinitions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefinitions", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], tableColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableColumn), { isSignal: true }] }] } });
|
|
6595
6691
|
|
|
6692
|
+
// A declarative content holder: the host element itself is never rendered. `tls-tabs`
|
|
6693
|
+
// reads the captured content/header templates and renders them inside its own
|
|
6694
|
+
// `ngTabPanel`/`ngTabContent` structure, which enables lazy panel rendering.
|
|
6596
6695
|
class Tab {
|
|
6597
|
-
_tabPanel = inject(TabPanel);
|
|
6598
|
-
headerTemplateRef = contentChild('tabHeader', /* @ts-ignore */
|
|
6599
|
-
...(ngDevMode ? [{ debugName: "headerTemplateRef" }] : /* istanbul ignore next */ []));
|
|
6600
6696
|
// Inputs
|
|
6601
|
-
value =
|
|
6697
|
+
value = input.required(/* @ts-ignore */
|
|
6698
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
6602
6699
|
label = input.required(/* @ts-ignore */
|
|
6603
6700
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
6604
6701
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
array.push(`${className}--active`);
|
|
6610
|
-
if (this.disabled())
|
|
6611
|
-
array.push(`${className}--disabled`);
|
|
6612
|
-
return array;
|
|
6613
|
-
}, /* @ts-ignore */
|
|
6614
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
6702
|
+
// State
|
|
6703
|
+
headerTemplateRef = contentChild('tabHeader', /* @ts-ignore */
|
|
6704
|
+
...(ngDevMode ? [{ debugName: "headerTemplateRef" }] : /* istanbul ignore next */ []));
|
|
6705
|
+
contentTemplateRef = viewChild.required('tabContent');
|
|
6615
6706
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tab, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6616
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Tab, isStandalone: true, selector: "tls-tab", inputs: {
|
|
6707
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Tab, isStandalone: true, selector: "tls-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "headerTemplateRef", first: true, predicate: ["tabHeader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentTemplateRef", first: true, predicate: ["tabContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #tabContent>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
6617
6708
|
}
|
|
6618
6709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tab, decorators: [{
|
|
6619
6710
|
type: Component,
|
|
6620
|
-
args: [{ selector: 'tls-tab',
|
|
6621
|
-
|
|
6622
|
-
}, template: "<ng-content></ng-content>\n" }]
|
|
6623
|
-
}], propDecorators: { headerTemplateRef: [{ type: i0.ContentChild, args: ['tabHeader', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
6711
|
+
args: [{ selector: 'tls-tab', template: "<ng-template #tabContent>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
6712
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplateRef: [{ type: i0.ContentChild, args: ['tabHeader', { isSignal: true }] }], contentTemplateRef: [{ type: i0.ViewChild, args: ['tabContent', { isSignal: true }] }] } });
|
|
6624
6713
|
|
|
6625
6714
|
const DEFAULT_TABS_CONFIG = {
|
|
6626
6715
|
variant: 'flat',
|
|
@@ -6668,13 +6757,13 @@ class Tabs {
|
|
|
6668
6757
|
});
|
|
6669
6758
|
}
|
|
6670
6759
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6671
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], hostDirectives: [{ directive: i1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n <ng-
|
|
6760
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], hostDirectives: [{ directive: i1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "directive", type: TabContent, selector: "ng-template[ngTabContent]", exportAs: ["ngTabContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
6672
6761
|
}
|
|
6673
6762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, decorators: [{
|
|
6674
6763
|
type: Component,
|
|
6675
|
-
args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
|
|
6764
|
+
args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
|
|
6676
6765
|
'[class]': 'hostClasses()',
|
|
6677
|
-
}, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n <ng-
|
|
6766
|
+
}, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n" }]
|
|
6678
6767
|
}], ctorParameters: () => [], propDecorators: { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Tab), { isSignal: true }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }] } });
|
|
6679
6768
|
|
|
6680
6769
|
const DEFAULT_TABS_QUERY_SYNC_CONFIG = {
|
|
@@ -7457,6 +7546,10 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7457
7546
|
provide: FORM_ITEM_CONFIG,
|
|
7458
7547
|
useValue: deepMerge(DEFAULT_FORM_ITEM_CONFIG, config.components.formItem),
|
|
7459
7548
|
},
|
|
7549
|
+
{
|
|
7550
|
+
provide: HIGHLIGHT_CONFIG,
|
|
7551
|
+
useValue: deepMerge(DEFAULT_HIGHLIGHT_CONFIG, config.components.highlight),
|
|
7552
|
+
},
|
|
7460
7553
|
{ provide: ICON_CONFIG, useValue: deepMerge(DEFAULT_ICON_CONFIG, config.components.icon) },
|
|
7461
7554
|
{
|
|
7462
7555
|
provide: IMAGE_COMPARE_CONFIG,
|
|
@@ -7467,6 +7560,7 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7467
7560
|
provide: LOADER_CONFIG,
|
|
7468
7561
|
useValue: deepMerge(DEFAULT_LOADER_CONFIG, config.components.loader),
|
|
7469
7562
|
},
|
|
7563
|
+
{ provide: MARK_CONFIG, useValue: deepMerge(DEFAULT_MARK_CONFIG, config.components.mark) },
|
|
7470
7564
|
{ provide: MENU_CONFIG, useValue: deepMerge(DEFAULT_MENU_CONFIG, config.components.menu) },
|
|
7471
7565
|
{
|
|
7472
7566
|
provide: MULTI_SELECT_CONFIG,
|
|
@@ -7547,5 +7641,5 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7547
7641
|
* Generated bundle index. Do not edit.
|
|
7548
7642
|
*/
|
|
7549
7643
|
|
|
7550
|
-
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, applyMask, provideThalassicIcons, provideThalassicUIConfig };
|
|
7644
|
+
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, applyMask, provideThalassicIcons, provideThalassicUIConfig };
|
|
7551
7645
|
//# sourceMappingURL=thalassic-ui.mjs.map
|