@avento-space/ts-ui 1.2.1 → 1.2.3
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/README.md +123 -213
- package/dist/{form.wc-CwjVsdUu.d.ts → card.wc-CLzyZAbJ.d.ts} +110 -1
- package/dist/{chunk-PRZASPFU.js → chunk-2UKGVIH2.js} +616 -259
- package/dist/chunk-2UKGVIH2.js.map +1 -0
- package/dist/chunk-NJHLJNRI.js +4983 -0
- package/dist/chunk-NJHLJNRI.js.map +1 -0
- package/dist/{chunk-DO3PEBDS.js → chunk-NUMML2ZR.js} +6 -4
- package/dist/chunk-NUMML2ZR.js.map +1 -0
- package/dist/{chunk-NJAZMTMT.js → chunk-PIXJHFME.js} +618 -116
- package/dist/chunk-PIXJHFME.js.map +1 -0
- package/dist/chunk-T7QLIHHU.js +3 -0
- package/dist/{chunk-MFONNOJU.js.map → chunk-T7QLIHHU.js.map} +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -3
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/react/index.d.ts +7 -4
- package/dist/react/index.js +84 -11
- package/dist/react/index.js.map +1 -1
- package/package.json +9 -5
- package/dist/chunk-42QSY3LJ.js +0 -4855
- package/dist/chunk-42QSY3LJ.js.map +0 -1
- package/dist/chunk-DO3PEBDS.js.map +0 -1
- package/dist/chunk-MFONNOJU.js +0 -3
- package/dist/chunk-NJAZMTMT.js.map +0 -1
- package/dist/chunk-PRZASPFU.js.map +0 -1
|
@@ -104,6 +104,7 @@ interface ListProps {
|
|
|
104
104
|
emptyState?: string;
|
|
105
105
|
}
|
|
106
106
|
declare class UList extends UElement {
|
|
107
|
+
static get observedAttributes(): string[];
|
|
107
108
|
private _items;
|
|
108
109
|
private _renderItem;
|
|
109
110
|
private _emptyText;
|
|
@@ -115,6 +116,9 @@ declare class UList extends UElement {
|
|
|
115
116
|
get emptyState(): string;
|
|
116
117
|
set emptyState(val: string);
|
|
117
118
|
private _renderList;
|
|
119
|
+
connectedCallback(): void;
|
|
120
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
121
|
+
private _sync;
|
|
118
122
|
_mount(): void;
|
|
119
123
|
}
|
|
120
124
|
interface VirtualListProps {
|
|
@@ -213,6 +217,7 @@ declare class UStack extends UElement {
|
|
|
213
217
|
private _align;
|
|
214
218
|
private _justify;
|
|
215
219
|
private _wrap;
|
|
220
|
+
protected _direction: string;
|
|
216
221
|
constructor();
|
|
217
222
|
get gap(): number;
|
|
218
223
|
set gap(val: number);
|
|
@@ -598,6 +603,7 @@ declare class UDialogRoot extends UElement {
|
|
|
598
603
|
connectedCallback(): void;
|
|
599
604
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
600
605
|
private _sync;
|
|
606
|
+
private _synced;
|
|
601
607
|
private _updateOpenState;
|
|
602
608
|
private _injectOverlay;
|
|
603
609
|
private _removeOverlay;
|
|
@@ -793,6 +799,7 @@ declare class UCollection extends UElement {
|
|
|
793
799
|
clearSelection(): void;
|
|
794
800
|
connectedCallback(): void;
|
|
795
801
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
802
|
+
private _sync;
|
|
796
803
|
private _updateItems;
|
|
797
804
|
private _dispatchChange;
|
|
798
805
|
_mount(): void;
|
|
@@ -813,8 +820,11 @@ declare class UTree extends UElement {
|
|
|
813
820
|
static get observedAttributes(): string[];
|
|
814
821
|
private _items;
|
|
815
822
|
constructor();
|
|
823
|
+
connectedCallback(): void;
|
|
824
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
816
825
|
get items(): TreeNodeData[];
|
|
817
826
|
set items(val: TreeNodeData[]);
|
|
827
|
+
private _sync;
|
|
818
828
|
private _render;
|
|
819
829
|
private _renderNode;
|
|
820
830
|
private _onClick;
|
|
@@ -847,6 +857,7 @@ declare class UTable extends UElement {
|
|
|
847
857
|
set rows(val: Record<string, any>[]);
|
|
848
858
|
connectedCallback(): void;
|
|
849
859
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
860
|
+
private _sync;
|
|
850
861
|
private _render;
|
|
851
862
|
private _renderHeader;
|
|
852
863
|
private _renderBody;
|
|
@@ -883,6 +894,7 @@ declare class UBreadcrumb extends UElement {
|
|
|
883
894
|
set separator(val: string);
|
|
884
895
|
connectedCallback(): void;
|
|
885
896
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
897
|
+
private _sync;
|
|
886
898
|
private _render;
|
|
887
899
|
_mount(): void;
|
|
888
900
|
}
|
|
@@ -890,6 +902,8 @@ declare class UBreadcrumb extends UElement {
|
|
|
890
902
|
interface TabsProps {
|
|
891
903
|
value?: string;
|
|
892
904
|
orientation?: 'horizontal' | 'vertical';
|
|
905
|
+
variant?: 'underline' | 'pills' | 'buttons';
|
|
906
|
+
fullWidth?: boolean;
|
|
893
907
|
class?: string;
|
|
894
908
|
onChange?: (value: string) => void;
|
|
895
909
|
}
|
|
@@ -897,12 +911,23 @@ declare class UTabs extends UElement {
|
|
|
897
911
|
static get observedAttributes(): string[];
|
|
898
912
|
private _value;
|
|
899
913
|
private _orientation;
|
|
914
|
+
private _variant;
|
|
915
|
+
private _fullWidth;
|
|
916
|
+
private _tablistEl;
|
|
917
|
+
private _panelsContainer;
|
|
918
|
+
private _indicatorEl;
|
|
919
|
+
private _triggers;
|
|
900
920
|
constructor();
|
|
901
921
|
get value(): string;
|
|
902
922
|
set value(val: string);
|
|
923
|
+
get variant(): string;
|
|
924
|
+
set variant(val: string);
|
|
925
|
+
get fullWidth(): boolean;
|
|
926
|
+
set fullWidth(val: boolean);
|
|
903
927
|
connectedCallback(): void;
|
|
904
928
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
905
929
|
private _sync;
|
|
930
|
+
private _updateIndicator;
|
|
906
931
|
_mount(): void;
|
|
907
932
|
}
|
|
908
933
|
|
|
@@ -910,7 +935,11 @@ interface VisuallyHiddenProps {
|
|
|
910
935
|
class?: string;
|
|
911
936
|
}
|
|
912
937
|
declare class UVisuallyHidden extends UElement {
|
|
938
|
+
static get observedAttributes(): string[];
|
|
913
939
|
constructor();
|
|
940
|
+
connectedCallback(): void;
|
|
941
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
942
|
+
private _sync;
|
|
914
943
|
_mount(): void;
|
|
915
944
|
}
|
|
916
945
|
|
|
@@ -990,6 +1019,7 @@ declare class UPresence extends UElement {
|
|
|
990
1019
|
set animation(val: PresenceAnimation);
|
|
991
1020
|
connectedCallback(): void;
|
|
992
1021
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1022
|
+
private _sync;
|
|
993
1023
|
private _enter;
|
|
994
1024
|
private _leave;
|
|
995
1025
|
_mount(): void;
|
|
@@ -1055,6 +1085,7 @@ declare class UAnimate extends UElement {
|
|
|
1055
1085
|
|
|
1056
1086
|
interface ModalProps {
|
|
1057
1087
|
open?: boolean;
|
|
1088
|
+
title?: string;
|
|
1058
1089
|
closeOnEscape?: boolean;
|
|
1059
1090
|
closeOnOverlay?: boolean;
|
|
1060
1091
|
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1064,6 +1095,7 @@ interface ModalProps {
|
|
|
1064
1095
|
declare class UModal extends UElement {
|
|
1065
1096
|
static get observedAttributes(): string[];
|
|
1066
1097
|
private _open;
|
|
1098
|
+
private _title;
|
|
1067
1099
|
private _size;
|
|
1068
1100
|
private _closeOnEscape;
|
|
1069
1101
|
private _closeOnOverlay;
|
|
@@ -1072,11 +1104,15 @@ declare class UModal extends UElement {
|
|
|
1072
1104
|
constructor();
|
|
1073
1105
|
get open(): boolean;
|
|
1074
1106
|
set open(val: boolean);
|
|
1107
|
+
get title(): string;
|
|
1108
|
+
set title(val: string);
|
|
1075
1109
|
openModal(): void;
|
|
1076
1110
|
closeModal(): void;
|
|
1077
1111
|
connectedCallback(): void;
|
|
1078
1112
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1079
1113
|
private _sync;
|
|
1114
|
+
private _updateTitle;
|
|
1115
|
+
private _updateSize;
|
|
1080
1116
|
private _updateOpenState;
|
|
1081
1117
|
private _focusFirst;
|
|
1082
1118
|
_mount(): void;
|
|
@@ -1145,6 +1181,7 @@ declare class UPopover extends UElement {
|
|
|
1145
1181
|
toggle(): void;
|
|
1146
1182
|
connectedCallback(): void;
|
|
1147
1183
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1184
|
+
private _sync;
|
|
1148
1185
|
private _updateOpenState;
|
|
1149
1186
|
private _position;
|
|
1150
1187
|
private _handleOutsideClick;
|
|
@@ -1194,6 +1231,7 @@ declare class UDropdown extends UElement {
|
|
|
1194
1231
|
toggle(): void;
|
|
1195
1232
|
connectedCallback(): void;
|
|
1196
1233
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1234
|
+
private _sync;
|
|
1197
1235
|
private _renderItems;
|
|
1198
1236
|
private _updateSelected;
|
|
1199
1237
|
private _updateOpenState;
|
|
@@ -1226,6 +1264,7 @@ declare class UAccordion extends UElement {
|
|
|
1226
1264
|
set multiple(val: boolean);
|
|
1227
1265
|
connectedCallback(): void;
|
|
1228
1266
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1267
|
+
private _sync;
|
|
1229
1268
|
private _initItems;
|
|
1230
1269
|
toggle(key: string): void;
|
|
1231
1270
|
private _syncItems;
|
|
@@ -1247,6 +1286,7 @@ declare class UAccordionItem extends UElement {
|
|
|
1247
1286
|
set open(val: boolean);
|
|
1248
1287
|
connectedCallback(): void;
|
|
1249
1288
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1289
|
+
private _sync;
|
|
1250
1290
|
_mount(): void;
|
|
1251
1291
|
}
|
|
1252
1292
|
|
|
@@ -1311,6 +1351,7 @@ declare class UCalendar extends UElement {
|
|
|
1311
1351
|
set value(val: string);
|
|
1312
1352
|
connectedCallback(): void;
|
|
1313
1353
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1354
|
+
private _sync;
|
|
1314
1355
|
private _renderDayNames;
|
|
1315
1356
|
private _render;
|
|
1316
1357
|
private _navigate;
|
|
@@ -1357,6 +1398,7 @@ declare class UDataTable extends UElement {
|
|
|
1357
1398
|
set pageSize(val: number);
|
|
1358
1399
|
connectedCallback(): void;
|
|
1359
1400
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1401
|
+
private _sync;
|
|
1360
1402
|
private _getProcessedData;
|
|
1361
1403
|
private _getPageData;
|
|
1362
1404
|
private _render;
|
|
@@ -1453,6 +1495,7 @@ interface ContextMenuProps {
|
|
|
1453
1495
|
onSelect?: (value: string) => void;
|
|
1454
1496
|
}
|
|
1455
1497
|
declare class UContextMenu extends UElement {
|
|
1498
|
+
static get observedAttributes(): string[];
|
|
1456
1499
|
private _items;
|
|
1457
1500
|
private _open;
|
|
1458
1501
|
private _selectedIndex;
|
|
@@ -1460,8 +1503,10 @@ declare class UContextMenu extends UElement {
|
|
|
1460
1503
|
get items(): ContextMenuItem[];
|
|
1461
1504
|
set items(val: ContextMenuItem[]);
|
|
1462
1505
|
connectedCallback(): void;
|
|
1506
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1463
1507
|
private _parseSlotItems;
|
|
1464
1508
|
private _renderItems;
|
|
1509
|
+
private _sync;
|
|
1465
1510
|
private _openMenu;
|
|
1466
1511
|
private _closeMenu;
|
|
1467
1512
|
private _focusFirst;
|
|
@@ -1487,6 +1532,7 @@ declare class USortable extends UElement {
|
|
|
1487
1532
|
private _offsetY;
|
|
1488
1533
|
private _dragClone;
|
|
1489
1534
|
constructor();
|
|
1535
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1490
1536
|
get disabled(): boolean;
|
|
1491
1537
|
set disabled(val: boolean);
|
|
1492
1538
|
get handleSelector(): string;
|
|
@@ -1497,6 +1543,8 @@ declare class USortable extends UElement {
|
|
|
1497
1543
|
private _onPointerDown;
|
|
1498
1544
|
private _onPointerMove;
|
|
1499
1545
|
private _onPointerUp;
|
|
1546
|
+
connectedCallback(): void;
|
|
1547
|
+
private _sync;
|
|
1500
1548
|
_mount(): void;
|
|
1501
1549
|
}
|
|
1502
1550
|
|
|
@@ -1507,12 +1555,73 @@ interface FormProps {
|
|
|
1507
1555
|
}
|
|
1508
1556
|
declare class UForm extends UElement {
|
|
1509
1557
|
private _fields;
|
|
1558
|
+
static get observedAttributes(): string[];
|
|
1510
1559
|
constructor();
|
|
1560
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1561
|
+
connectedCallback(): void;
|
|
1511
1562
|
get form(): HTMLFormElement | null;
|
|
1563
|
+
private _sync;
|
|
1512
1564
|
validate(): boolean;
|
|
1513
1565
|
getValues(): Record<string, string>;
|
|
1514
1566
|
reset(): void;
|
|
1515
1567
|
_mount(): void;
|
|
1516
1568
|
}
|
|
1517
1569
|
|
|
1518
|
-
|
|
1570
|
+
type BadgeVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1571
|
+
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
1572
|
+
interface BadgeProps {
|
|
1573
|
+
variant?: BadgeVariant;
|
|
1574
|
+
size?: BadgeSize;
|
|
1575
|
+
dot?: boolean;
|
|
1576
|
+
pill?: boolean;
|
|
1577
|
+
class?: string;
|
|
1578
|
+
}
|
|
1579
|
+
declare class UBadge extends UElement {
|
|
1580
|
+
static get observedAttributes(): string[];
|
|
1581
|
+
private _variant;
|
|
1582
|
+
private _size;
|
|
1583
|
+
private _dot;
|
|
1584
|
+
private _pill;
|
|
1585
|
+
constructor();
|
|
1586
|
+
get variant(): BadgeVariant;
|
|
1587
|
+
set variant(val: BadgeVariant);
|
|
1588
|
+
get size(): BadgeSize;
|
|
1589
|
+
set size(val: BadgeSize);
|
|
1590
|
+
get dot(): boolean;
|
|
1591
|
+
set dot(val: boolean);
|
|
1592
|
+
get pill(): boolean;
|
|
1593
|
+
set pill(val: boolean);
|
|
1594
|
+
connectedCallback(): void;
|
|
1595
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1596
|
+
private _sync;
|
|
1597
|
+
_mount(): void;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
type CardVariant = 'default' | 'outlined' | 'elevated';
|
|
1601
|
+
type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
1602
|
+
interface CardProps {
|
|
1603
|
+
variant?: CardVariant;
|
|
1604
|
+
padding?: CardPadding;
|
|
1605
|
+
hoverable?: boolean;
|
|
1606
|
+
as?: string;
|
|
1607
|
+
class?: string;
|
|
1608
|
+
}
|
|
1609
|
+
declare class UCard extends UElement {
|
|
1610
|
+
static get observedAttributes(): string[];
|
|
1611
|
+
private _variant;
|
|
1612
|
+
private _padding;
|
|
1613
|
+
private _hoverable;
|
|
1614
|
+
constructor();
|
|
1615
|
+
get variant(): CardVariant;
|
|
1616
|
+
set variant(val: CardVariant);
|
|
1617
|
+
get padding(): CardPadding;
|
|
1618
|
+
set padding(val: CardPadding);
|
|
1619
|
+
get hoverable(): boolean;
|
|
1620
|
+
set hoverable(val: boolean);
|
|
1621
|
+
connectedCallback(): void;
|
|
1622
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1623
|
+
private _sync;
|
|
1624
|
+
_mount(): void;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
export { type TreeProps as $, type AccordionProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableProps as D, type RouterViewProps as E, type FieldProps as F, type GridProps as G, type HoverableProps as H, type InputProps as I, type SelectProps as J, type KeyboardNavigationProps as K, type LabelProps as L, type ModalProps as M, type SortableProps as N, type OverlayProps as O, type PopoverProps as P, type SpacerProps as Q, type RadioGroupProps as R, type StackProps as S, type SwitchProps as T, type TableProps as U, type TabsProps as V, type TextProps as W, type TextareaProps as X, type ToastProps as Y, type TooltipRootProps as Z, type TransitionProps as _, type AnimateProps as a, UModal as a$, type VirtualListProps as a0, type VisuallyHiddenProps as a1, type AccordionItemProps as a2, type AnimatePreset as a3, type BadgeSize as a4, type BadgeVariant as a5, type BoxAs as a6, type BreadcrumbItem as a7, type CardPadding as a8, type CardVariant as a9, UCalendar as aA, UCard as aB, UCheckbox as aC, UCollection as aD, UCombobox as aE, UCommandPalette as aF, UContainer as aG, UContextMenu as aH, UDataTable as aI, UDialogRoot as aJ, UDismissableLayer as aK, UDrawer as aL, UDropdown as aM, UField as aN, UFocusManager as aO, UFocusScope as aP, UFocusTrap as aQ, UForm as aR, UGrid as aS, UHStack as aT, UHoverable as aU, UInput as aV, UKeyboardNavigation as aW, ULabel as aX, ULink as aY, UList as aZ, ULiveRegion as a_, type CollectionSelection as aa, type ComboboxOption as ab, type CommandItem as ac, type ContextMenuItem as ad, type DataTableColumn as ae, type DrawerSide as af, type DropdownItem as ag, type LiveRegionPoliteness as ah, type PopperPlacement as ai, type PresenceAnimation as aj, type RadioProps as ak, type SelectOption as al, type TableColumn as am, type TextColor as an, type TextSize as ao, type TextWeight as ap, type ToastOptions as aq, type TransitionType as ar, type TreeNodeData as as, UAccordion as at, UAccordionItem as au, UAnimate as av, UBadge as aw, UBox as ax, UBreadcrumb as ay, UButton as az, type BoxProps as b, UOverlay as b0, UPopover as b1, UPopper as b2, UPortal as b3, UPresence as b4, UPressable as b5, URadio as b6, URadioGroup as b7, URouterView as b8, USelect as b9, USortable as ba, USpacer as bb, UStack as bc, USwitch as bd, UTable as be, UTabs as bf, UText as bg, UTextarea as bh, UToast as bi, UTooltipRoot as bj, UTransition as bk, UTree as bl, UVirtualList as bm, UVisuallyHidden as bn, createControlledInput as bo, setPortalRoot as bp, type BreadcrumbProps as c, type ButtonProps as d, type CardProps as e, type CheckboxProps as f, type CollectionProps as g, type ComboboxProps as h, type CommandPaletteProps as i, type ContainerProps as j, type ContextMenuProps as k, type DialogRootProps as l, type DismissableLayerProps as m, type DrawerProps as n, type DropdownProps as o, type FocusManagerProps as p, type FocusScopeProps as q, type FocusTrapProps as r, type FormProps as s, type LinkProps as t, type ListProps as u, type LiveRegionProps as v, type PopperProps as w, type PortalProps as x, type PresenceProps as y, type PressableProps as z };
|