@arclux/arc-ui-angular 1.9.2 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/content/Avatar.ts +2 -1
- package/src/content/DataTable.ts +5 -1
- package/src/content/Image.ts +22 -0
- package/src/content/List.ts +21 -0
- package/src/content/ListItem.ts +21 -0
- package/src/content/ScrollIndicator.ts +18 -0
- package/src/content/Separator.ts +16 -0
- package/src/content/VirtualList.ts +18 -0
- package/src/content/index.ts +5 -0
- package/src/data/AnimatedNumber.ts +20 -0
- package/src/data/Badge.ts +16 -0
- package/src/data/DataTable.ts +27 -0
- package/src/data/List.ts +21 -0
- package/src/data/ListItem.ts +21 -0
- package/src/data/Meter.ts +20 -0
- package/src/data/Stat.ts +17 -0
- package/src/data/Step.ts +14 -0
- package/src/data/Stepper.ts +15 -0
- package/src/data/Table.ts +17 -0
- package/src/data/Tag.ts +19 -0
- package/src/data/Timeline.ts +14 -0
- package/src/data/TimelineItem.ts +15 -0
- package/src/data/ValueCard.ts +16 -0
- package/src/feedback/Announcement.ts +15 -0
- package/src/feedback/Banner.ts +17 -0
- package/src/feedback/CommandPalette.ts +1 -2
- package/src/feedback/Confirm.ts +19 -0
- package/src/feedback/ConnectionStatus.ts +17 -0
- package/src/feedback/Dialog.ts +1 -1
- package/src/feedback/DropdownMenu.ts +1 -2
- package/src/feedback/GuidedTour.ts +19 -0
- package/src/feedback/HoverCard.ts +1 -1
- package/src/feedback/InlineMessage.ts +14 -0
- package/src/feedback/LoadingOverlay.ts +16 -0
- package/src/feedback/Popover.ts +1 -1
- package/src/feedback/ProgressToast.ts +17 -0
- package/src/feedback/Snackbar.ts +18 -0
- package/src/feedback/Spotlight.ts +17 -0
- package/src/index.ts +40 -0
- package/src/input/ButtonGroup.ts +16 -0
- package/src/input/Fieldset.ts +20 -0
- package/src/input/Hotkey.ts +17 -0
- package/src/input/InputGroup.ts +16 -0
- package/src/input/Label.ts +19 -0
- package/src/input/SwitchGroup.ts +17 -0
- package/src/layout/AspectGrid.ts +16 -0
- package/src/layout/Center.ts +16 -0
- package/src/layout/Cluster.ts +16 -0
- package/src/layout/Dock.ts +17 -0
- package/src/layout/FloatBar.ts +15 -0
- package/src/layout/Inset.ts +15 -0
- package/src/layout/Masonry.ts +15 -0
- package/src/layout/ResponsiveSwitcher.ts +15 -0
- package/src/layout/Sticky.ts +16 -0
- package/src/navigation/AnchorNav.ts +17 -0
- package/src/navigation/BottomNav.ts +16 -0
- package/src/navigation/BreadcrumbMenu.ts +16 -0
- package/src/navigation/CommandBar.ts +18 -0
- package/src/navigation/PageIndicator.ts +17 -0
- package/src/navigation/Rail.ts +17 -0
- package/src/navigation/SkipLink.ts +14 -0
- package/src/navigation/SpeedDial.ts +19 -0
- package/src/navigation/StepperNav.ts +18 -0
- package/src/navigation/Tabs.ts +1 -2
- package/src/typography/CodeBlock.ts +18 -0
- package/src/typography/Highlight.ts +16 -0
- package/src/typography/Kbd.ts +13 -0
- package/src/typography/Markdown.ts +14 -0
- package/src/typography/Text.ts +15 -0
- package/src/typography/Truncate.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Angular standalone component wrappers for ARC UI Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@angular/core": ">=17.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arclux/arc-ui": "1.
|
|
47
|
+
"@arclux/arc-ui": "1.10.1"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
package/src/content/Avatar.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-avatar',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-avatar [attr.src]="src" [attr.name]="name" [attr.size]="size" [attr.shape]="shape" [attr.status]="status"><ng-content /></arc-avatar>`,
|
|
10
|
+
template: `<arc-avatar [attr.src]="src" [attr.name]="name" [attr.size]="size" [attr.shape]="shape" [attr.status]="status" [attr._imgState]="_imgState"><ng-content /></arc-avatar>`,
|
|
11
11
|
})
|
|
12
12
|
export class Avatar {
|
|
13
13
|
@Input() src: string = '';
|
|
@@ -15,4 +15,5 @@ export class Avatar {
|
|
|
15
15
|
@Input() size: 'sm' | 'md' | 'lg' = 'md';
|
|
16
16
|
@Input() shape: 'square' | 'rounded' = 'circle';
|
|
17
17
|
@Input() status: 'online' | 'offline' | 'busy' | 'away' = '';
|
|
18
|
+
@Input() _imgState: string = 'loading';
|
|
18
19
|
}
|
package/src/content/DataTable.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-data-table',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-data-table [attr.rows]="rows" [sortable]="sortable" [selectable]="selectable" [attr.sortColumn]="sortColumn" [attr.sortDirection]="sortDirection" [attr._columns]="_columns" [attr._selectedRows]="_selectedRows" (arc-sort)="arcSort.emit($event)" (arc-select-all)="arcSelectAll.emit($event)" (arc-row-select)="arcRowSelect.emit($event)"><ng-content /></arc-data-table>`,
|
|
10
|
+
template: `<arc-data-table [attr.rows]="rows" [sortable]="sortable" [selectable]="selectable" [attr.sortColumn]="sortColumn" [attr.sortDirection]="sortDirection" [virtual]="virtual" [attr.rowHeight]="rowHeight" [attr._columns]="_columns" [attr._selectedRows]="_selectedRows" [attr._startIndex]="_startIndex" [attr._visibleCount]="_visibleCount" (arc-sort)="arcSort.emit($event)" (arc-select-all)="arcSelectAll.emit($event)" (arc-row-select)="arcRowSelect.emit($event)"><ng-content /></arc-data-table>`,
|
|
11
11
|
})
|
|
12
12
|
export class DataTable {
|
|
13
13
|
@Input() rows: unknown[] = [];
|
|
@@ -15,8 +15,12 @@ export class DataTable {
|
|
|
15
15
|
@Input() selectable: boolean = false;
|
|
16
16
|
@Input() sortColumn: string = '';
|
|
17
17
|
@Input() sortDirection: string = 'asc';
|
|
18
|
+
@Input() virtual: boolean = false;
|
|
19
|
+
@Input() rowHeight: number = 40;
|
|
18
20
|
@Input() _columns: string = [];
|
|
19
21
|
@Input() _selectedRows: string = 'new Set()';
|
|
22
|
+
@Input() _startIndex: string = 0;
|
|
23
|
+
@Input() _visibleCount: string = 0;
|
|
20
24
|
@Output() arcSort = new EventEmitter<CustomEvent>();
|
|
21
25
|
@Output() arcSelectAll = new EventEmitter<CustomEvent>();
|
|
22
26
|
@Output() arcRowSelect = new EventEmitter<CustomEvent>();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-image',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-image [attr.src]="src" [attr.alt]="alt" [attr.aspect]="aspect" [attr.fit]="fit" [attr.loading]="loading" [attr.fallback]="fallback" [attr._state]="_state" (arc-load)="arcLoad.emit($event)" (arc-error)="arcError.emit($event)"><ng-content /></arc-image>`,
|
|
11
|
+
})
|
|
12
|
+
export class Image {
|
|
13
|
+
@Input() src: string = '';
|
|
14
|
+
@Input() alt: string = '';
|
|
15
|
+
@Input() aspect: '1/1' | '4/3' | '16/9' | '21/9' | '3/4' | '9/16' = '';
|
|
16
|
+
@Input() fit: 'contain' | 'fill' | 'none' | 'scale-down' = 'cover';
|
|
17
|
+
@Input() loading: string = 'lazy';
|
|
18
|
+
@Input() fallback: string = '';
|
|
19
|
+
@Input() _state: string = 'loading';
|
|
20
|
+
@Output() arcLoad = new EventEmitter<CustomEvent>();
|
|
21
|
+
@Output() arcError = new EventEmitter<CustomEvent>();
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-list',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-list [attr.variant]="variant" [attr.size]="size" [selectable]="selectable" [multiple]="multiple" [attr.value]="value" [attr._items]="_items" (arc-change)="arcChange.emit($event)" (arc-item-click)="arcItemClick.emit($event)"><ng-content /></arc-list>`,
|
|
11
|
+
})
|
|
12
|
+
export class List {
|
|
13
|
+
@Input() variant: 'bordered' | 'separated' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
15
|
+
@Input() selectable: boolean = false;
|
|
16
|
+
@Input() multiple: boolean = false;
|
|
17
|
+
@Input() value: string = '';
|
|
18
|
+
@Input() _items: string = [];
|
|
19
|
+
@Output() arcChange = new EventEmitter<CustomEvent>();
|
|
20
|
+
@Output() arcItemClick = new EventEmitter<CustomEvent>();
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-list-item',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-list-item [attr.value]="value" [selected]="selected" [disabled]="disabled" [attr.href]="href" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix" [attr._hasDescription]="_hasDescription" (arc-item-click)="arcItemClick.emit($event)"><ng-content /></arc-list-item>`,
|
|
11
|
+
})
|
|
12
|
+
export class ListItem {
|
|
13
|
+
@Input() value: string = '';
|
|
14
|
+
@Input() selected: boolean = false;
|
|
15
|
+
@Input() disabled: boolean = false;
|
|
16
|
+
@Input() href: string = '';
|
|
17
|
+
@Input() _hasPrefix: string = false;
|
|
18
|
+
@Input() _hasSuffix: string = false;
|
|
19
|
+
@Input() _hasDescription: string = false;
|
|
20
|
+
@Output() arcItemClick = new EventEmitter<CustomEvent>();
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-scroll-indicator',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-scroll-indicator [attr.target]="target" [attr.position]="position" [attr.size]="size" [attr.color]="color" [attr._progress]="_progress"><ng-content /></arc-scroll-indicator>`,
|
|
11
|
+
})
|
|
12
|
+
export class ScrollIndicator {
|
|
13
|
+
@Input() target: string = '';
|
|
14
|
+
@Input() position: 'bottom' = 'top';
|
|
15
|
+
@Input() size: 'sm' | 'md' | 'lg' = 'sm';
|
|
16
|
+
@Input() color: 'gradient' = 'accent';
|
|
17
|
+
@Input() _progress: string = 0;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-separator',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-separator [attr.orientation]="orientation" [attr.label]="label" [attr.variant]="variant"><ng-content /></arc-separator>`,
|
|
11
|
+
})
|
|
12
|
+
export class Separator {
|
|
13
|
+
@Input() orientation: 'vertical' = 'horizontal';
|
|
14
|
+
@Input() label: string = '';
|
|
15
|
+
@Input() variant: 'dashed' | 'dotted' | 'fade' = 'line';
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-virtual-list',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-virtual-list [attr.items]="items" [attr.itemHeight]="itemHeight" [attr.overscan]="overscan" [attr._startIndex]="_startIndex" [attr._visibleCount]="_visibleCount"><ng-content /></arc-virtual-list>`,
|
|
11
|
+
})
|
|
12
|
+
export class VirtualList {
|
|
13
|
+
@Input() items: unknown[] = [];
|
|
14
|
+
@Input() itemHeight: number = 40;
|
|
15
|
+
@Input() overscan: number = 5;
|
|
16
|
+
@Input() _startIndex: string = 0;
|
|
17
|
+
@Input() _visibleCount: string = 0;
|
|
18
|
+
}
|
package/src/content/index.ts
CHANGED
|
@@ -37,3 +37,8 @@ export { Tag } from './Tag.js';
|
|
|
37
37
|
export { Truncate } from './Truncate.js';
|
|
38
38
|
export { CtaBanner } from './CtaBanner.js';
|
|
39
39
|
export { IconLibrary } from './IconLibrary.js';
|
|
40
|
+
export { Image } from './Image.js';
|
|
41
|
+
export { ListItem } from './ListItem.js';
|
|
42
|
+
export { ScrollIndicator } from './ScrollIndicator.js';
|
|
43
|
+
export { Separator } from './Separator.js';
|
|
44
|
+
export { VirtualList } from './VirtualList.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-animated-number',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-animated-number [attr.value]="value" [attr.duration]="duration" [attr.format]="format" [attr.prefix]="prefix" [attr.suffix]="suffix" [attr.decimals]="decimals" [attr.locale]="locale"><ng-content /></arc-animated-number>`,
|
|
11
|
+
})
|
|
12
|
+
export class AnimatedNumber {
|
|
13
|
+
@Input() value: number = 0;
|
|
14
|
+
@Input() duration: number = 1000;
|
|
15
|
+
@Input() format: string = 'number';
|
|
16
|
+
@Input() prefix: string = '';
|
|
17
|
+
@Input() suffix: string = '';
|
|
18
|
+
@Input() decimals: number = 0;
|
|
19
|
+
@Input() locale: string = 'en-US';
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-badge',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-badge [attr.variant]="variant" [attr.size]="size" [attr.color]="color"><ng-content /></arc-badge>`,
|
|
11
|
+
})
|
|
12
|
+
export class Badge {
|
|
13
|
+
@Input() variant: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
15
|
+
@Input() color: string = '';
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-data-table',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-data-table [attr.rows]="rows" [sortable]="sortable" [selectable]="selectable" [attr.sortColumn]="sortColumn" [attr.sortDirection]="sortDirection" [virtual]="virtual" [attr.rowHeight]="rowHeight" [attr._columns]="_columns" [attr._selectedRows]="_selectedRows" [attr._startIndex]="_startIndex" [attr._visibleCount]="_visibleCount" (arc-sort)="arcSort.emit($event)" (arc-select-all)="arcSelectAll.emit($event)" (arc-row-select)="arcRowSelect.emit($event)"><ng-content /></arc-data-table>`,
|
|
11
|
+
})
|
|
12
|
+
export class DataTable {
|
|
13
|
+
@Input() rows: unknown[] = [];
|
|
14
|
+
@Input() sortable: boolean = false;
|
|
15
|
+
@Input() selectable: boolean = false;
|
|
16
|
+
@Input() sortColumn: string = '';
|
|
17
|
+
@Input() sortDirection: string = 'asc';
|
|
18
|
+
@Input() virtual: boolean = false;
|
|
19
|
+
@Input() rowHeight: number = 40;
|
|
20
|
+
@Input() _columns: string = [];
|
|
21
|
+
@Input() _selectedRows: string = 'new Set()';
|
|
22
|
+
@Input() _startIndex: string = 0;
|
|
23
|
+
@Input() _visibleCount: string = 0;
|
|
24
|
+
@Output() arcSort = new EventEmitter<CustomEvent>();
|
|
25
|
+
@Output() arcSelectAll = new EventEmitter<CustomEvent>();
|
|
26
|
+
@Output() arcRowSelect = new EventEmitter<CustomEvent>();
|
|
27
|
+
}
|
package/src/data/List.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-list',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-list [attr.variant]="variant" [attr.size]="size" [selectable]="selectable" [multiple]="multiple" [attr.value]="value" [attr._items]="_items" (arc-change)="arcChange.emit($event)" (arc-item-click)="arcItemClick.emit($event)"><ng-content /></arc-list>`,
|
|
11
|
+
})
|
|
12
|
+
export class List {
|
|
13
|
+
@Input() variant: 'bordered' | 'separated' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
15
|
+
@Input() selectable: boolean = false;
|
|
16
|
+
@Input() multiple: boolean = false;
|
|
17
|
+
@Input() value: string = '';
|
|
18
|
+
@Input() _items: string = [];
|
|
19
|
+
@Output() arcChange = new EventEmitter<CustomEvent>();
|
|
20
|
+
@Output() arcItemClick = new EventEmitter<CustomEvent>();
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-list-item',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-list-item [attr.value]="value" [selected]="selected" [disabled]="disabled" [attr.href]="href" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix" [attr._hasDescription]="_hasDescription" (arc-item-click)="arcItemClick.emit($event)"><ng-content /></arc-list-item>`,
|
|
11
|
+
})
|
|
12
|
+
export class ListItem {
|
|
13
|
+
@Input() value: string = '';
|
|
14
|
+
@Input() selected: boolean = false;
|
|
15
|
+
@Input() disabled: boolean = false;
|
|
16
|
+
@Input() href: string = '';
|
|
17
|
+
@Input() _hasPrefix: string = false;
|
|
18
|
+
@Input() _hasSuffix: string = false;
|
|
19
|
+
@Input() _hasDescription: string = false;
|
|
20
|
+
@Output() arcItemClick = new EventEmitter<CustomEvent>();
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-meter',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-meter [attr.value]="value" [attr.min]="min" [attr.max]="max" [attr.low]="low" [attr.high]="high" [attr.optimum]="optimum" [attr.label]="label"><ng-content /></arc-meter>`,
|
|
11
|
+
})
|
|
12
|
+
export class Meter {
|
|
13
|
+
@Input() value: number = 0;
|
|
14
|
+
@Input() min: number = 0;
|
|
15
|
+
@Input() max: number = 100;
|
|
16
|
+
@Input() low: number = 'undefined';
|
|
17
|
+
@Input() high: number = 'undefined';
|
|
18
|
+
@Input() optimum: number = 'undefined';
|
|
19
|
+
@Input() label: string = '';
|
|
20
|
+
}
|
package/src/data/Stat.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-stat',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-stat [attr.value]="value" [attr.label]="label" [attr.trend]="trend" [attr.change]="change"><ng-content /></arc-stat>`,
|
|
11
|
+
})
|
|
12
|
+
export class Stat {
|
|
13
|
+
@Input() value: string = '';
|
|
14
|
+
@Input() label: string = '';
|
|
15
|
+
@Input() trend: 'up' | 'down' | 'neutral' = '';
|
|
16
|
+
@Input() change: string = '';
|
|
17
|
+
}
|
package/src/data/Step.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-step',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-step [attr.label]="label"><ng-content /></arc-step>`,
|
|
11
|
+
})
|
|
12
|
+
export class Step {
|
|
13
|
+
@Input() label: string = '';
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-stepper',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-stepper [attr.active]="active" [attr._steps]="_steps"><ng-content /></arc-stepper>`,
|
|
11
|
+
})
|
|
12
|
+
export class Stepper {
|
|
13
|
+
@Input() active: number = 0;
|
|
14
|
+
@Input() _steps: string = [];
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-table',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-table [attr.columns]="columns" [attr.rows]="rows" [striped]="striped" [compact]="compact"><ng-content /></arc-table>`,
|
|
11
|
+
})
|
|
12
|
+
export class Table {
|
|
13
|
+
@Input() columns: unknown[] = [];
|
|
14
|
+
@Input() rows: unknown[] = [];
|
|
15
|
+
@Input() striped: boolean = false;
|
|
16
|
+
@Input() compact: boolean = false;
|
|
17
|
+
}
|
package/src/data/Tag.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-tag',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-tag [attr.variant]="variant" [attr.size]="size" [removable]="removable" [disabled]="disabled" [attr.color]="color" (arc-remove)="arcRemove.emit($event)"><ng-content /></arc-tag>`,
|
|
11
|
+
})
|
|
12
|
+
export class Tag {
|
|
13
|
+
@Input() variant: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
15
|
+
@Input() removable: boolean = false;
|
|
16
|
+
@Input() disabled: boolean = false;
|
|
17
|
+
@Input() color: string = '';
|
|
18
|
+
@Output() arcRemove = new EventEmitter<CustomEvent>();
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-timeline',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-timeline [attr._items]="_items"><ng-content /></arc-timeline>`,
|
|
11
|
+
})
|
|
12
|
+
export class Timeline {
|
|
13
|
+
@Input() _items: string = [];
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-timeline-item',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-timeline-item [attr.heading]="heading" [attr.date]="date"><ng-content /></arc-timeline-item>`,
|
|
11
|
+
})
|
|
12
|
+
export class TimelineItem {
|
|
13
|
+
@Input() heading: string = '';
|
|
14
|
+
@Input() date: string = '';
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-value-card',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-value-card [attr.icon]="icon" [attr.heading]="heading" [attr.description]="description"><ng-content /></arc-value-card>`,
|
|
11
|
+
})
|
|
12
|
+
export class ValueCard {
|
|
13
|
+
@Input() icon: string = '';
|
|
14
|
+
@Input() heading: string = '';
|
|
15
|
+
@Input() description: string = '';
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-announcement',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-announcement [attr.politeness]="politeness" [attr.message]="message"><ng-content /></arc-announcement>`,
|
|
11
|
+
})
|
|
12
|
+
export class Announcement {
|
|
13
|
+
@Input() politeness: string = 'polite';
|
|
14
|
+
@Input() message: string = '';
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-banner',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-banner [attr.variant]="variant" [dismissible]="dismissible" [sticky]="sticky" (arc-dismiss)="arcDismiss.emit($event)"><ng-content /></arc-banner>`,
|
|
11
|
+
})
|
|
12
|
+
export class Banner {
|
|
13
|
+
@Input() variant: string = 'info';
|
|
14
|
+
@Input() dismissible: boolean = false;
|
|
15
|
+
@Input() sticky: boolean = false;
|
|
16
|
+
@Output() arcDismiss = new EventEmitter<CustomEvent>();
|
|
17
|
+
}
|
|
@@ -7,13 +7,12 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-command-palette',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-command-palette [open]="open" [attr.placeholder]="placeholder" [attr._query]="_query" [attr.
|
|
10
|
+
template: `<arc-command-palette [open]="open" [attr.placeholder]="placeholder" [attr._query]="_query" [attr._items]="_items" (arc-select)="arcSelect.emit($event)" (arc-close)="arcClose.emit($event)"><ng-content /></arc-command-palette>`,
|
|
11
11
|
})
|
|
12
12
|
export class CommandPalette {
|
|
13
13
|
@Input() open: boolean = false;
|
|
14
14
|
@Input() placeholder: string = 'Type a command...';
|
|
15
15
|
@Input() _query: string = '';
|
|
16
|
-
@Input() _focusedIndex: string = 0;
|
|
17
16
|
@Input() _items: string = [];
|
|
18
17
|
@Output() arcSelect = new EventEmitter<CustomEvent>();
|
|
19
18
|
@Output() arcClose = new EventEmitter<CustomEvent>();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-confirm',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-confirm [open]="open" [attr.heading]="heading" [attr.message]="message" [attr.variant]="variant" (arc-confirm)="arcConfirm.emit($event)" (arc-cancel)="arcCancel.emit($event)"><ng-content /></arc-confirm>`,
|
|
11
|
+
})
|
|
12
|
+
export class Confirm {
|
|
13
|
+
@Input() open: boolean = false;
|
|
14
|
+
@Input() heading: string = '';
|
|
15
|
+
@Input() message: string = '';
|
|
16
|
+
@Input() variant: string = 'default';
|
|
17
|
+
@Output() arcConfirm = new EventEmitter<CustomEvent>();
|
|
18
|
+
@Output() arcCancel = new EventEmitter<CustomEvent>();
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-connection-status',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-connection-status [attr.online]="online" [attr._visible]="_visible" (arc-online)="arcOnline.emit($event)" (arc-offline)="arcOffline.emit($event)"><ng-content /></arc-connection-status>`,
|
|
11
|
+
})
|
|
12
|
+
export class ConnectionStatus {
|
|
13
|
+
@Input() online: string = 'navigator.onLine';
|
|
14
|
+
@Input() _visible: string = false;
|
|
15
|
+
@Output() arcOnline = new EventEmitter<CustomEvent>();
|
|
16
|
+
@Output() arcOffline = new EventEmitter<CustomEvent>();
|
|
17
|
+
}
|
package/src/feedback/Dialog.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Dialog {
|
|
|
13
13
|
@Input() open: boolean = false;
|
|
14
14
|
@Input() heading: string = '';
|
|
15
15
|
@Input() message: string = '';
|
|
16
|
-
@Input() variant:
|
|
16
|
+
@Input() variant: string = 'default';
|
|
17
17
|
@Output() arcConfirm = new EventEmitter<CustomEvent>();
|
|
18
18
|
@Output() arcCancel = new EventEmitter<CustomEvent>();
|
|
19
19
|
}
|
|
@@ -7,11 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-dropdown-menu',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-dropdown-menu [open]="open" [attr.
|
|
10
|
+
template: `<arc-dropdown-menu [open]="open" [attr._children]="_children" (arc-close)="arcClose.emit($event)" (arc-select)="arcSelect.emit($event)"><ng-content /></arc-dropdown-menu>`,
|
|
11
11
|
})
|
|
12
12
|
export class DropdownMenu {
|
|
13
13
|
@Input() open: boolean = false;
|
|
14
|
-
@Input() _focusedIndex: string = -1;
|
|
15
14
|
@Input() _children: string = [];
|
|
16
15
|
@Output() arcClose = new EventEmitter<CustomEvent>();
|
|
17
16
|
@Output() arcSelect = new EventEmitter<CustomEvent>();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-guided-tour',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-guided-tour [attr.steps]="steps" [attr.active]="active" [open]="open" (arc-change)="arcChange.emit($event)" (arc-complete)="arcComplete.emit($event)" (arc-dismiss)="arcDismiss.emit($event)"><ng-content /></arc-guided-tour>`,
|
|
11
|
+
})
|
|
12
|
+
export class GuidedTour {
|
|
13
|
+
@Input() steps: string = [];
|
|
14
|
+
@Input() active: string = 0;
|
|
15
|
+
@Input() open: boolean = false;
|
|
16
|
+
@Output() arcChange = new EventEmitter<CustomEvent>();
|
|
17
|
+
@Output() arcComplete = new EventEmitter<CustomEvent>();
|
|
18
|
+
@Output() arcDismiss = new EventEmitter<CustomEvent>();
|
|
19
|
+
}
|
|
@@ -10,7 +10,7 @@ import '@arclux/arc-ui';
|
|
|
10
10
|
template: `<arc-hover-card [attr.position]="position" [attr.openDelay]="openDelay" [attr.closeDelay]="closeDelay" [attr._visible]="_visible" (arc-open)="arcOpen.emit($event)" (arc-close)="arcClose.emit($event)"><ng-content /></arc-hover-card>`,
|
|
11
11
|
})
|
|
12
12
|
export class HoverCard {
|
|
13
|
-
@Input() position:
|
|
13
|
+
@Input() position: string = 'bottom';
|
|
14
14
|
@Input() openDelay: number = 400;
|
|
15
15
|
@Input() closeDelay: number = 300;
|
|
16
16
|
@Input() _visible: string = false;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
4
|
+
import '@arclux/arc-ui';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'arc-inline-message',
|
|
8
|
+
standalone: true,
|
|
9
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
+
template: `<arc-inline-message [attr.variant]="variant"><ng-content /></arc-inline-message>`,
|
|
11
|
+
})
|
|
12
|
+
export class InlineMessage {
|
|
13
|
+
@Input() variant: string = 'info';
|
|
14
|
+
}
|