@thalassic/ui 22.9.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 +590 -280
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +234 -104
package/package.json
CHANGED
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef,
|
|
2
|
+
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, Type, EnvironmentProviders, OutputEmitterRef, ElementRef, OnInit, TrackByFunction, OnDestroy } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day } from 'date-fns';
|
|
5
5
|
import { Point } from '@thalassic/core';
|
|
@@ -319,6 +319,133 @@ declare const DEFAULT_BADGE_CONFIG: BadgeConfig;
|
|
|
319
319
|
|
|
320
320
|
declare const BADGE_CONFIG: InjectionToken<BadgeConfig>;
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Semantic names for the icons the library renders internally (checkbox tick,
|
|
324
|
+
* select chevron, dialog close, toast status glyphs, …). Consumers swap any of
|
|
325
|
+
* them for their own kit via `provideThalassicIcons`, so this list is the icon
|
|
326
|
+
* contract between the library and the app.
|
|
327
|
+
*/
|
|
328
|
+
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'success' | 'warning' | 'error' | 'info';
|
|
329
|
+
|
|
330
|
+
declare class Icon {
|
|
331
|
+
private readonly _iconService;
|
|
332
|
+
private readonly _iconRegistry;
|
|
333
|
+
private readonly _config;
|
|
334
|
+
/** A semantic icon from the registry — overridable via `provideThalassicIcons`. */
|
|
335
|
+
name: i0.InputSignal<systemIcon | undefined>;
|
|
336
|
+
/** A URL to an SVG or image for arbitrary content icons. Ignored when `name` is set. */
|
|
337
|
+
iconSrc: i0.InputSignal<string | undefined>;
|
|
338
|
+
alt: i0.InputSignal<string>;
|
|
339
|
+
allowedSources: i0.InputSignal<string[]>;
|
|
340
|
+
private readonly _renderer;
|
|
341
|
+
protected readonly registryComponent: Signal<Type<unknown> | null>;
|
|
342
|
+
protected readonly registrySvg: Signal<SafeHtml | null>;
|
|
343
|
+
protected readonly isSvgSrc: Signal<boolean>;
|
|
344
|
+
private readonly _svgContentResource;
|
|
345
|
+
get svgContent(): Signal<SafeHtml>;
|
|
346
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Icon, never>;
|
|
347
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Icon, "tls-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "iconSrc": { "alias": "iconSrc"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "allowedSources": { "alias": "allowedSources"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
interface IconConfig {
|
|
351
|
+
allowedSources: string[];
|
|
352
|
+
}
|
|
353
|
+
declare const DEFAULT_ICON_CONFIG: IconConfig;
|
|
354
|
+
|
|
355
|
+
declare const ICON_CONFIG: InjectionToken<IconConfig>;
|
|
356
|
+
|
|
357
|
+
declare class IconService {
|
|
358
|
+
private readonly _http;
|
|
359
|
+
private readonly _sanitizer;
|
|
360
|
+
private readonly _cache;
|
|
361
|
+
getSvgContent(url: string, allowedSources: string[]): Observable<SafeHtml>;
|
|
362
|
+
sanitizeSvg(svg: string): SafeHtml;
|
|
363
|
+
private _isUrlAllowed;
|
|
364
|
+
private _sanitizeSvg;
|
|
365
|
+
private _makeSafe;
|
|
366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
367
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* A registry entry for a {@link systemIcon}. Either raw SVG markup (sanitized
|
|
372
|
+
* before it is rendered) or a component class that renders the icon itself —
|
|
373
|
+
* the escape hatch for plugging in a third-party icon kit
|
|
374
|
+
*/
|
|
375
|
+
type iconRenderer = string | Type<unknown>;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* A partial override map: any subset of {@link systemIcon} names mapped to a
|
|
379
|
+
* {@link iconRenderer}. Names left unset fall back to the library defaults.
|
|
380
|
+
*/
|
|
381
|
+
type iconRegistry = Partial<Record<systemIcon, iconRenderer>>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Consumer-supplied overrides for the built-in {@link systemIcon} set, merged
|
|
385
|
+
* over {@link DEFAULT_ICONS} by {@link IconRegistry}. Provide it with
|
|
386
|
+
* `provideThalassicIcons`.
|
|
387
|
+
*/
|
|
388
|
+
declare const ICON_REGISTRY: InjectionToken<Partial<Record<_thalassic_ui.systemIcon, _thalassic_ui.iconRenderer>>>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Resolves a {@link systemIcon} name to its {@link iconRenderer}, applying any
|
|
392
|
+
* consumer overrides from {@link ICON_REGISTRY} over {@link DEFAULT_ICONS}.
|
|
393
|
+
*/
|
|
394
|
+
declare class IconRegistry {
|
|
395
|
+
private readonly _overrides;
|
|
396
|
+
private readonly _icons;
|
|
397
|
+
resolve(name: systemIcon): iconRenderer;
|
|
398
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistry, never>;
|
|
399
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistry>;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Built-in SVG for every {@link systemIcon}. A coherent 24×24 stroked set drawn
|
|
404
|
+
* with `currentColor`, no intrinsic width/height so each icon scales to its
|
|
405
|
+
* host box. Consumers override individual entries via `provideThalassicIcons`.
|
|
406
|
+
*/
|
|
407
|
+
declare const DEFAULT_ICONS: Record<systemIcon, string>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Override any of the library's built-in {@link systemIcon}s with your own kit.
|
|
411
|
+
* Each entry is raw SVG markup or a component class; names left unset keep the
|
|
412
|
+
* library defaults. Register once in the application config:
|
|
413
|
+
*
|
|
414
|
+
* ```ts
|
|
415
|
+
* provideThalassicIcons({
|
|
416
|
+
* close: '<svg>…</svg>',
|
|
417
|
+
* 'chevron-down': MyChevronComponent,
|
|
418
|
+
* })
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
declare function provideThalassicIcons(icons: iconRegistry): EnvironmentProviders;
|
|
422
|
+
|
|
423
|
+
interface BreadcrumbItem {
|
|
424
|
+
label: string;
|
|
425
|
+
/** Router link for the item. An item without a link renders as plain text. */
|
|
426
|
+
link?: string | unknown[];
|
|
427
|
+
/** Icon source rendered before the label (see tls-icon's iconSrc). */
|
|
428
|
+
icon?: string;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
declare class Breadcrumbs {
|
|
432
|
+
private readonly _config;
|
|
433
|
+
readonly items: i0.InputSignal<BreadcrumbItem[]>;
|
|
434
|
+
readonly separatorIcon: i0.InputSignal<systemIcon>;
|
|
435
|
+
/** Accessible name for the breadcrumb navigation landmark. */
|
|
436
|
+
readonly ariaLabel: i0.InputSignal<string>;
|
|
437
|
+
readonly ariaLabelledby: i0.InputSignal<string | undefined>;
|
|
438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Breadcrumbs, never>;
|
|
439
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Breadcrumbs, "tls-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separatorIcon": { "alias": "separatorIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
interface BreadcrumbsConfig {
|
|
443
|
+
separatorIcon: systemIcon;
|
|
444
|
+
}
|
|
445
|
+
declare const DEFAULT_BREADCRUMBS_CONFIG: BreadcrumbsConfig;
|
|
446
|
+
|
|
447
|
+
declare const BREADCRUMBS_CONFIG: InjectionToken<BreadcrumbsConfig>;
|
|
448
|
+
|
|
322
449
|
declare abstract class ButtonBase {
|
|
323
450
|
protected _config: _thalassic_ui.ButtonConfig;
|
|
324
451
|
protected APPLY_HOST_CLASSES: boolean;
|
|
@@ -1332,6 +1459,68 @@ declare const DEFAULT_INPUT_NUMBER_CONFIG: InputNumberConfig;
|
|
|
1332
1459
|
|
|
1333
1460
|
declare const INPUT_NUMBER_CONFIG: InjectionToken<InputNumberConfig>;
|
|
1334
1461
|
|
|
1462
|
+
interface MaskResult {
|
|
1463
|
+
maskedValue: string;
|
|
1464
|
+
unmaskedValue: string;
|
|
1465
|
+
caret: number;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Formats `rawText` against a token `pattern` (`0` digit, `A` letter, `*`
|
|
1469
|
+
* alphanumeric; every other character is a literal) and computes where the caret
|
|
1470
|
+
* should land. `rawText` may itself already contain literals (the previously
|
|
1471
|
+
* masked value plus the latest keystroke) — literals are absorbed and any
|
|
1472
|
+
* character that does not satisfy the current slot's token is skipped.
|
|
1473
|
+
*
|
|
1474
|
+
* A separator is inserted only once the value character that follows it arrives,
|
|
1475
|
+
* so an in-progress value never shows a dangling separator. The caret is derived
|
|
1476
|
+
* by formatting only the portion of `rawText` before `caretPosition`.
|
|
1477
|
+
*/
|
|
1478
|
+
declare function applyMask(pattern: string, rawText: string, caretPosition: number): MaskResult;
|
|
1479
|
+
|
|
1480
|
+
declare const MASK_TOKENS: Readonly<Record<string, RegExp>>;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Formats a native `<input>` as the user types against a token pattern
|
|
1484
|
+
* (`0` digit, `A` letter, `*` alphanumeric; any other character is a literal).
|
|
1485
|
+
*
|
|
1486
|
+
* Works both directly on a native `<input>` and on the `tls-input` component: it
|
|
1487
|
+
* operates purely at the DOM level, resolving the native control (the host, or
|
|
1488
|
+
* the `<input>` nested inside it) and re-dispatching a native `input` event so
|
|
1489
|
+
* the host's own value handling captures the masked string. Programmatic
|
|
1490
|
+
* `element.value = …` writes (a form `setValue`, a direct DOM assignment) are
|
|
1491
|
+
* intercepted and masked as well, and the value is reformatted whenever the
|
|
1492
|
+
* pattern changes at runtime. The field value therefore holds the masked text;
|
|
1493
|
+
* the separator-free value is exposed via the `unmasked` signal (through
|
|
1494
|
+
* `exportAs: 'tlsMask'`) and the `unmaskedChange` output.
|
|
1495
|
+
*
|
|
1496
|
+
* Deleting a separator is a no-op (the reformat re-inserts it); delete a value
|
|
1497
|
+
* character instead.
|
|
1498
|
+
*/
|
|
1499
|
+
declare class MaskDirective {
|
|
1500
|
+
private readonly _elementRef;
|
|
1501
|
+
private readonly _renderer;
|
|
1502
|
+
private readonly _destroyRef;
|
|
1503
|
+
readonly pattern: InputSignal<string>;
|
|
1504
|
+
readonly unmaskedChange: OutputEmitterRef<string>;
|
|
1505
|
+
private readonly _masked;
|
|
1506
|
+
private readonly _unmasked;
|
|
1507
|
+
readonly masked: Signal<string>;
|
|
1508
|
+
readonly unmasked: Signal<string>;
|
|
1509
|
+
private _input;
|
|
1510
|
+
private _isFormatting;
|
|
1511
|
+
constructor();
|
|
1512
|
+
private _format;
|
|
1513
|
+
/**
|
|
1514
|
+
* Programmatic `element.value = …` writes fire no `input` event, so masking
|
|
1515
|
+
* would otherwise be bypassed. Redefining the instance's `value` property
|
|
1516
|
+
* routes every write through the formatter; the instance override is removed
|
|
1517
|
+
* on destroy, falling back to the prototype accessor.
|
|
1518
|
+
*/
|
|
1519
|
+
private _interceptValueWrites;
|
|
1520
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaskDirective, never>;
|
|
1521
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[tlsMask]", ["tlsMask"], { "pattern": { "alias": "tlsMask"; "required": false; "isSignal": true; }; }, { "unmaskedChange": "unmaskedChange"; }, never, never, true, never>;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1335
1524
|
declare class Password extends ValueFormControl<string> {
|
|
1336
1525
|
private _config;
|
|
1337
1526
|
readonly supportsLabelFor = true;
|
|
@@ -1340,13 +1529,14 @@ declare class Password extends ValueFormControl<string> {
|
|
|
1340
1529
|
readonly placeholder: InputSignal<string>;
|
|
1341
1530
|
readonly size: InputSignal<controlSize>;
|
|
1342
1531
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
1532
|
+
protected readonly startIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
1343
1533
|
protected readonly showIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
1344
1534
|
protected readonly hideIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
1345
1535
|
protected type: i0.Signal<"text" | "password">;
|
|
1346
1536
|
protected onInput(event: Event): void;
|
|
1347
1537
|
protected toggle(): void;
|
|
1348
1538
|
static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
|
|
1349
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "visible": "visibleChange"; }, ["showIconTemplate", "hideIconTemplate"], never, true, never>;
|
|
1539
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "visible": "visibleChange"; }, ["startIconTemplate", "showIconTemplate", "hideIconTemplate"], never, true, never>;
|
|
1350
1540
|
}
|
|
1351
1541
|
|
|
1352
1542
|
interface PasswordConfig {
|
|
@@ -1645,106 +1835,30 @@ declare const DEFAULT_TOGGLE_GROUP_CONFIG: ToggleGroupConfig;
|
|
|
1645
1835
|
|
|
1646
1836
|
declare const TOGGLE_GROUP_CONFIG: InjectionToken<ToggleGroupConfig>;
|
|
1647
1837
|
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
* them for their own kit via `provideThalassicIcons`, so this list is the icon
|
|
1652
|
-
* contract between the library and the app.
|
|
1653
|
-
*/
|
|
1654
|
-
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'success' | 'warning' | 'error' | 'info';
|
|
1655
|
-
|
|
1656
|
-
declare class Icon {
|
|
1657
|
-
private readonly _iconService;
|
|
1658
|
-
private readonly _iconRegistry;
|
|
1659
|
-
private readonly _config;
|
|
1660
|
-
/** A semantic icon from the registry — overridable via `provideThalassicIcons`. */
|
|
1661
|
-
name: i0.InputSignal<systemIcon | undefined>;
|
|
1662
|
-
/** A URL to an SVG or image for arbitrary content icons. Ignored when `name` is set. */
|
|
1663
|
-
iconSrc: i0.InputSignal<string | undefined>;
|
|
1664
|
-
alt: i0.InputSignal<string>;
|
|
1665
|
-
allowedSources: i0.InputSignal<string[]>;
|
|
1666
|
-
private readonly _renderer;
|
|
1667
|
-
protected readonly registryComponent: Signal<Type<unknown> | null>;
|
|
1668
|
-
protected readonly registrySvg: Signal<SafeHtml | null>;
|
|
1669
|
-
protected readonly isSvgSrc: Signal<boolean>;
|
|
1670
|
-
private readonly _svgContentResource;
|
|
1671
|
-
get svgContent(): Signal<SafeHtml>;
|
|
1672
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Icon, never>;
|
|
1673
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Icon, "tls-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "iconSrc": { "alias": "iconSrc"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "allowedSources": { "alias": "allowedSources"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1838
|
+
interface HighlightSegment {
|
|
1839
|
+
text: string;
|
|
1840
|
+
matched: boolean;
|
|
1674
1841
|
}
|
|
1675
1842
|
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
private readonly _cache;
|
|
1687
|
-
getSvgContent(url: string, allowedSources: string[]): Observable<SafeHtml>;
|
|
1688
|
-
sanitizeSvg(svg: string): SafeHtml;
|
|
1689
|
-
private _isUrlAllowed;
|
|
1690
|
-
private _sanitizeSvg;
|
|
1691
|
-
private _makeSafe;
|
|
1692
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
1693
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
1843
|
+
declare class Highlight {
|
|
1844
|
+
private readonly _config;
|
|
1845
|
+
readonly text: InputSignal<string>;
|
|
1846
|
+
readonly query: InputSignal<string | string[] | undefined>;
|
|
1847
|
+
readonly color: InputSignal<color>;
|
|
1848
|
+
readonly caseSensitive: InputSignalWithTransform<boolean, unknown>;
|
|
1849
|
+
private readonly _queries;
|
|
1850
|
+
protected readonly segments: i0.Signal<HighlightSegment[]>;
|
|
1851
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Highlight, never>;
|
|
1852
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Highlight, "tls-highlight", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "caseSensitive": { "alias": "caseSensitive"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1694
1853
|
}
|
|
1695
1854
|
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
* the escape hatch for plugging in a third-party icon kit
|
|
1700
|
-
*/
|
|
1701
|
-
type iconRenderer = string | Type<unknown>;
|
|
1702
|
-
|
|
1703
|
-
/**
|
|
1704
|
-
* A partial override map: any subset of {@link systemIcon} names mapped to a
|
|
1705
|
-
* {@link iconRenderer}. Names left unset fall back to the library defaults.
|
|
1706
|
-
*/
|
|
1707
|
-
type iconRegistry = Partial<Record<systemIcon, iconRenderer>>;
|
|
1708
|
-
|
|
1709
|
-
/**
|
|
1710
|
-
* Consumer-supplied overrides for the built-in {@link systemIcon} set, merged
|
|
1711
|
-
* over {@link DEFAULT_ICONS} by {@link IconRegistry}. Provide it with
|
|
1712
|
-
* `provideThalassicIcons`.
|
|
1713
|
-
*/
|
|
1714
|
-
declare const ICON_REGISTRY: InjectionToken<Partial<Record<_thalassic_ui.systemIcon, _thalassic_ui.iconRenderer>>>;
|
|
1715
|
-
|
|
1716
|
-
/**
|
|
1717
|
-
* Resolves a {@link systemIcon} name to its {@link iconRenderer}, applying any
|
|
1718
|
-
* consumer overrides from {@link ICON_REGISTRY} over {@link DEFAULT_ICONS}.
|
|
1719
|
-
*/
|
|
1720
|
-
declare class IconRegistry {
|
|
1721
|
-
private readonly _overrides;
|
|
1722
|
-
private readonly _icons;
|
|
1723
|
-
resolve(name: systemIcon): iconRenderer;
|
|
1724
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistry, never>;
|
|
1725
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistry>;
|
|
1855
|
+
interface HighlightConfig {
|
|
1856
|
+
color: color;
|
|
1857
|
+
caseSensitive: boolean;
|
|
1726
1858
|
}
|
|
1859
|
+
declare const DEFAULT_HIGHLIGHT_CONFIG: HighlightConfig;
|
|
1727
1860
|
|
|
1728
|
-
|
|
1729
|
-
* Built-in SVG for every {@link systemIcon}. A coherent 24×24 stroked set drawn
|
|
1730
|
-
* with `currentColor`, no intrinsic width/height so each icon scales to its
|
|
1731
|
-
* host box. Consumers override individual entries via `provideThalassicIcons`.
|
|
1732
|
-
*/
|
|
1733
|
-
declare const DEFAULT_ICONS: Record<systemIcon, string>;
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Override any of the library's built-in {@link systemIcon}s with your own kit.
|
|
1737
|
-
* Each entry is raw SVG markup or a component class; names left unset keep the
|
|
1738
|
-
* library defaults. Register once in the application config:
|
|
1739
|
-
*
|
|
1740
|
-
* ```ts
|
|
1741
|
-
* provideThalassicIcons({
|
|
1742
|
-
* close: '<svg>…</svg>',
|
|
1743
|
-
* 'chevron-down': MyChevronComponent,
|
|
1744
|
-
* })
|
|
1745
|
-
* ```
|
|
1746
|
-
*/
|
|
1747
|
-
declare function provideThalassicIcons(icons: iconRegistry): EnvironmentProviders;
|
|
1861
|
+
declare const HIGHLIGHT_CONFIG: InjectionToken<HighlightConfig>;
|
|
1748
1862
|
|
|
1749
1863
|
type imageCompareOrientation = orientation;
|
|
1750
1864
|
|
|
@@ -1850,6 +1964,21 @@ declare const DEFAULT_LOADER_CONFIG: LoaderConfig;
|
|
|
1850
1964
|
|
|
1851
1965
|
declare const LOADER_CONFIG: InjectionToken<LoaderConfig>;
|
|
1852
1966
|
|
|
1967
|
+
declare class Mark {
|
|
1968
|
+
private readonly _config;
|
|
1969
|
+
readonly color: InputSignal<color>;
|
|
1970
|
+
protected readonly hostClasses: i0.Signal<string[]>;
|
|
1971
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Mark, never>;
|
|
1972
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Mark, "mark[tlsMark]", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
interface MarkConfig {
|
|
1976
|
+
color: color;
|
|
1977
|
+
}
|
|
1978
|
+
declare const DEFAULT_MARK_CONFIG: MarkConfig;
|
|
1979
|
+
|
|
1980
|
+
declare const MARK_CONFIG: InjectionToken<MarkConfig>;
|
|
1981
|
+
|
|
1853
1982
|
declare class MenuItemComponent {
|
|
1854
1983
|
readonly key: i0.InputSignal<string>;
|
|
1855
1984
|
readonly templateRef: i0.Signal<TemplateRef<unknown>>;
|
|
@@ -2325,14 +2454,13 @@ type tabsHeaderPosition = 'start' | 'end';
|
|
|
2325
2454
|
type tabValue = string;
|
|
2326
2455
|
|
|
2327
2456
|
declare class Tab {
|
|
2328
|
-
|
|
2329
|
-
readonly headerTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
2330
|
-
readonly value: Signal<tabValue>;
|
|
2457
|
+
readonly value: InputSignal<tabValue>;
|
|
2331
2458
|
readonly label: InputSignal<string>;
|
|
2332
2459
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
2333
|
-
|
|
2460
|
+
readonly headerTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
2461
|
+
readonly contentTemplateRef: Signal<TemplateRef<unknown>>;
|
|
2334
2462
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tab, never>;
|
|
2335
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "tls-tab", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["headerTemplateRef"], ["*"], true,
|
|
2463
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "tls-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["headerTemplateRef"], ["*"], true, never>;
|
|
2336
2464
|
}
|
|
2337
2465
|
|
|
2338
2466
|
declare class Tabs {
|
|
@@ -2348,7 +2476,7 @@ declare class Tabs {
|
|
|
2348
2476
|
protected hostClasses: Signal<string[]>;
|
|
2349
2477
|
constructor();
|
|
2350
2478
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
2351
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"],
|
|
2479
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], never, true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
|
|
2352
2480
|
}
|
|
2353
2481
|
|
|
2354
2482
|
interface TabsConfig {
|
|
@@ -2644,10 +2772,12 @@ interface tlsUiConfigProvider {
|
|
|
2644
2772
|
fileInput?: Partial<FileInputConfig>;
|
|
2645
2773
|
formControlGroup?: Partial<FormControlGroupConfig>;
|
|
2646
2774
|
formItem?: Partial<FormItemConfig>;
|
|
2775
|
+
highlight?: Partial<HighlightConfig>;
|
|
2647
2776
|
icon?: Partial<IconConfig>;
|
|
2648
2777
|
imageCompare?: Partial<ImageCompareConfig>;
|
|
2649
2778
|
input?: Partial<InputConfig>;
|
|
2650
2779
|
loader?: Partial<LoaderConfig>;
|
|
2780
|
+
mark?: Partial<MarkConfig>;
|
|
2651
2781
|
menu?: Partial<MenuConfig>;
|
|
2652
2782
|
multiSelect?: Partial<MultiSelectConfig>;
|
|
2653
2783
|
pagination?: Partial<PaginationConfig> & {
|
|
@@ -2748,5 +2878,5 @@ declare abstract class QuerySyncDirective {
|
|
|
2748
2878
|
|
|
2749
2879
|
declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
|
|
2750
2880
|
|
|
2751
|
-
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, Autocomplete, BADGE_CONFIG, BUTTON_CONFIG, Badge, 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_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, MENU_CONFIG, MULTI_SELECT_CONFIG, 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, provideThalassicIcons, provideThalassicUIConfig };
|
|
2752
|
-
export type { AlertConfig, AutocompleteConfig, BadgeConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SplitterConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderPosition, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|
|
2881
|
+
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 };
|
|
2882
|
+
export type { AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SplitterConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderPosition, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|