@arclux/arc-ui-angular 1.4.0 → 1.5.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/package.json +2 -2
- package/src/content/Accordion.ts +2 -1
- package/src/content/Avatar.ts +3 -1
- package/src/content/Badge.ts +2 -1
- package/src/content/Callout.ts +5 -2
- package/src/content/Card.ts +3 -1
- package/src/content/Divider.ts +2 -1
- package/src/content/Skeleton.ts +2 -1
- package/src/content/Stat.ts +3 -1
- package/src/content/Tag.ts +2 -1
- package/src/feedback/Alert.ts +2 -1
- package/src/feedback/Modal.ts +2 -1
- package/src/feedback/Progress.ts +2 -1
- package/src/input/Button.ts +2 -1
- package/src/input/Checkbox.ts +2 -1
- package/src/input/Input.ts +3 -1
- package/src/input/RadioGroup.ts +2 -1
- package/src/input/Select.ts +3 -1
- package/src/input/Textarea.ts +3 -1
- package/src/input/Toggle.ts +2 -1
- package/src/layout/Container.ts +3 -1
- package/src/navigation/Breadcrumb.ts +2 -1
- package/src/navigation/Footer.ts +2 -1
- package/src/navigation/Link.ts +2 -1
- package/src/navigation/Pagination.ts +2 -1
- package/src/navigation/Sidebar.ts +2 -1
- package/src/navigation/Tabs.ts +3 -1
- package/src/navigation/TopBar.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arclux/arc-ui-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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.5.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"keywords": [
|
package/src/content/Accordion.ts
CHANGED
|
@@ -7,9 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-accordion',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-accordion [attr._items]="_items" [attr._openItems]="_openItems"><ng-content /></arc-accordion>`,
|
|
10
|
+
template: `<arc-accordion [multiple]="multiple" [attr._items]="_items" [attr._openItems]="_openItems"><ng-content /></arc-accordion>`,
|
|
11
11
|
})
|
|
12
12
|
export class Accordion {
|
|
13
|
+
@Input() multiple: boolean = false;
|
|
13
14
|
@Input() _items: string = [];
|
|
14
15
|
@Input() _openItems: string = 'new Set()';
|
|
15
16
|
}
|
package/src/content/Avatar.ts
CHANGED
|
@@ -7,10 +7,12 @@ 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"><ng-content /></arc-avatar>`,
|
|
10
|
+
template: `<arc-avatar [attr.src]="src" [attr.name]="name" [attr.size]="size" [attr.shape]="shape" [attr.status]="status"><ng-content /></arc-avatar>`,
|
|
11
11
|
})
|
|
12
12
|
export class Avatar {
|
|
13
13
|
@Input() src: string = '';
|
|
14
14
|
@Input() name: string = '';
|
|
15
15
|
@Input() size: 'sm' | 'md' | 'lg' = 'md';
|
|
16
|
+
@Input() shape: 'square' | 'rounded' = 'circle';
|
|
17
|
+
@Input() status: 'online' | 'offline' | 'busy' | 'away' = '';
|
|
16
18
|
}
|
package/src/content/Badge.ts
CHANGED
|
@@ -7,9 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-badge',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-badge [attr.variant]="variant" [attr.color]="color"><ng-content /></arc-badge>`,
|
|
10
|
+
template: `<arc-badge [attr.variant]="variant" [attr.size]="size" [attr.color]="color"><ng-content /></arc-badge>`,
|
|
11
11
|
})
|
|
12
12
|
export class Badge {
|
|
13
13
|
@Input() variant: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
14
15
|
@Input() color: string = '';
|
|
15
16
|
}
|
package/src/content/Callout.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
2
|
|
|
3
|
-
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
3
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, Output, EventEmitter } from '@angular/core';
|
|
4
4
|
import '@arclux/arc-ui';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'arc-callout',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-callout [attr.variant]="variant"><ng-content /></arc-callout>`,
|
|
10
|
+
template: `<arc-callout [attr.variant]="variant" [dismissible]="dismissible" [attr._dismissed]="_dismissed" (arc-dismiss)="arcDismiss.emit($event)"><ng-content /></arc-callout>`,
|
|
11
11
|
})
|
|
12
12
|
export class Callout {
|
|
13
13
|
@Input() variant: string = 'info';
|
|
14
|
+
@Input() dismissible: boolean = false;
|
|
15
|
+
@Input() _dismissed: string = false;
|
|
16
|
+
@Output() arcDismiss = new EventEmitter<CustomEvent>();
|
|
14
17
|
}
|
package/src/content/Card.ts
CHANGED
|
@@ -7,9 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-card',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-card [attr.href]="href" [attr._hasFooter]="_hasFooter"><ng-content /></arc-card>`,
|
|
10
|
+
template: `<arc-card [attr.href]="href" [attr.padding]="padding" [interactive]="interactive" [attr._hasFooter]="_hasFooter"><ng-content /></arc-card>`,
|
|
11
11
|
})
|
|
12
12
|
export class Card {
|
|
13
13
|
@Input() href: string = '';
|
|
14
|
+
@Input() padding: 'none' | 'sm' | 'lg' = 'md';
|
|
15
|
+
@Input() interactive: boolean = false;
|
|
14
16
|
@Input() _hasFooter: string = false;
|
|
15
17
|
}
|
package/src/content/Divider.ts
CHANGED
|
@@ -7,10 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-divider',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-divider [attr.variant]="variant" [attr.align]="align" [vertical]="vertical"><ng-content /></arc-divider>`,
|
|
10
|
+
template: `<arc-divider [attr.variant]="variant" [attr.align]="align" [vertical]="vertical" [attr.label]="label"><ng-content /></arc-divider>`,
|
|
11
11
|
})
|
|
12
12
|
export class Divider {
|
|
13
13
|
@Input() variant: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient' = 'subtle';
|
|
14
14
|
@Input() align?: 'left' | 'right';
|
|
15
15
|
@Input() vertical: boolean = false;
|
|
16
|
+
@Input() label: string = '';
|
|
16
17
|
}
|
package/src/content/Skeleton.ts
CHANGED
|
@@ -7,10 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-skeleton',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-skeleton [attr.variant]="variant" [attr.width]="width" [attr.height]="height"><ng-content /></arc-skeleton>`,
|
|
10
|
+
template: `<arc-skeleton [attr.variant]="variant" [attr.width]="width" [attr.height]="height" [attr.count]="count"><ng-content /></arc-skeleton>`,
|
|
11
11
|
})
|
|
12
12
|
export class Skeleton {
|
|
13
13
|
@Input() variant: 'text' | 'circle' | 'rect' = 'text';
|
|
14
14
|
@Input() width: string = '';
|
|
15
15
|
@Input() height: string = '';
|
|
16
|
+
@Input() count: number = 1;
|
|
16
17
|
}
|
package/src/content/Stat.ts
CHANGED
|
@@ -7,9 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-stat',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-stat [attr.value]="value" [attr.label]="label"><ng-content /></arc-stat>`,
|
|
10
|
+
template: `<arc-stat [attr.value]="value" [attr.label]="label" [attr.trend]="trend" [attr.change]="change"><ng-content /></arc-stat>`,
|
|
11
11
|
})
|
|
12
12
|
export class Stat {
|
|
13
13
|
@Input() value: string = '';
|
|
14
14
|
@Input() label: string = '';
|
|
15
|
+
@Input() trend: 'up' | 'down' | 'neutral' = '';
|
|
16
|
+
@Input() change: string = '';
|
|
15
17
|
}
|
package/src/content/Tag.ts
CHANGED
|
@@ -7,10 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-tag',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-tag [attr.variant]="variant" [removable]="removable" [disabled]="disabled" [attr.color]="color" (arc-remove)="arcRemove.emit($event)"><ng-content /></arc-tag>`,
|
|
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
11
|
})
|
|
12
12
|
export class Tag {
|
|
13
13
|
@Input() variant: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' = 'default';
|
|
14
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
14
15
|
@Input() removable: boolean = false;
|
|
15
16
|
@Input() disabled: boolean = false;
|
|
16
17
|
@Input() color: string = '';
|
package/src/feedback/Alert.ts
CHANGED
|
@@ -7,10 +7,11 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-alert',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-alert [attr.variant]="variant" [dismissible]="dismissible" [attr.heading]="heading" (arc-dismiss)="arcDismiss.emit($event)"><ng-content /></arc-alert>`,
|
|
10
|
+
template: `<arc-alert [attr.variant]="variant" [compact]="compact" [dismissible]="dismissible" [attr.heading]="heading" (arc-dismiss)="arcDismiss.emit($event)"><ng-content /></arc-alert>`,
|
|
11
11
|
})
|
|
12
12
|
export class Alert {
|
|
13
13
|
@Input() variant: string = 'info';
|
|
14
|
+
@Input() compact: boolean = false;
|
|
14
15
|
@Input() dismissible: boolean = false;
|
|
15
16
|
@Input() heading: string = '';
|
|
16
17
|
@Output() arcDismiss = new EventEmitter<CustomEvent>();
|
package/src/feedback/Modal.ts
CHANGED
|
@@ -7,12 +7,13 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-modal',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-modal [open]="open" [attr.heading]="heading" [attr.size]="size" [closable]="closable" (arc-close)="arcClose.emit($event)" (arc-open)="arcOpen.emit($event)"><ng-content /></arc-modal>`,
|
|
10
|
+
template: `<arc-modal [open]="open" [attr.heading]="heading" [attr.size]="size" [fullscreen]="fullscreen" [closable]="closable" (arc-close)="arcClose.emit($event)" (arc-open)="arcOpen.emit($event)"><ng-content /></arc-modal>`,
|
|
11
11
|
})
|
|
12
12
|
export class Modal {
|
|
13
13
|
@Input() open: boolean = false;
|
|
14
14
|
@Input() heading: string = '';
|
|
15
15
|
@Input() size: 'sm' | 'md' | 'lg' = 'md';
|
|
16
|
+
@Input() fullscreen: boolean = false;
|
|
16
17
|
@Input() closable: boolean = true;
|
|
17
18
|
@Output() arcClose = new EventEmitter<CustomEvent>();
|
|
18
19
|
@Output() arcOpen = new EventEmitter<CustomEvent>();
|
package/src/feedback/Progress.ts
CHANGED
|
@@ -7,12 +7,13 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-progress',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-progress [attr.value]="value" [attr.variant]="variant" [attr.size]="size" [indeterminate]="indeterminate" [attr.label]="label"><ng-content /></arc-progress>`,
|
|
10
|
+
template: `<arc-progress [attr.value]="value" [attr.variant]="variant" [attr.size]="size" [indeterminate]="indeterminate" [showValue]="showValue" [attr.label]="label"><ng-content /></arc-progress>`,
|
|
11
11
|
})
|
|
12
12
|
export class Progress {
|
|
13
13
|
@Input() value: number = 0;
|
|
14
14
|
@Input() variant: string = 'bar';
|
|
15
15
|
@Input() size: 'sm' | 'md' | 'lg' = 'md';
|
|
16
16
|
@Input() indeterminate: boolean = false;
|
|
17
|
+
@Input() showValue: boolean = false;
|
|
17
18
|
@Input() label: string = '';
|
|
18
19
|
}
|
package/src/input/Button.ts
CHANGED
|
@@ -7,13 +7,14 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-button',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-button [attr.variant]="variant" [attr.size]="size" [attr.href]="href" [disabled]="disabled" [attr.type]="type" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix"><ng-content /></arc-button>`,
|
|
10
|
+
template: `<arc-button [attr.variant]="variant" [attr.size]="size" [attr.href]="href" [disabled]="disabled" [loading]="loading" [attr.type]="type" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix"><ng-content /></arc-button>`,
|
|
11
11
|
})
|
|
12
12
|
export class Button {
|
|
13
13
|
@Input() variant: 'primary' | 'secondary' | 'ghost' = 'primary';
|
|
14
14
|
@Input() size: 'sm' | 'md' | 'lg' = 'md';
|
|
15
15
|
@Input() href: string = '';
|
|
16
16
|
@Input() disabled: boolean = false;
|
|
17
|
+
@Input() loading: boolean = false;
|
|
17
18
|
@Input() type: string = 'button';
|
|
18
19
|
@Input() _hasPrefix: string = false;
|
|
19
20
|
@Input() _hasSuffix: string = false;
|
package/src/input/Checkbox.ts
CHANGED
|
@@ -7,12 +7,13 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-checkbox',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-checkbox [checked]="checked" [indeterminate]="indeterminate" [disabled]="disabled" [attr.label]="label" [attr.name]="name" [attr.value]="value" (arc-change)="arcChange.emit($event)"><ng-content /></arc-checkbox>`,
|
|
10
|
+
template: `<arc-checkbox [checked]="checked" [indeterminate]="indeterminate" [disabled]="disabled" [attr.size]="size" [attr.label]="label" [attr.name]="name" [attr.value]="value" (arc-change)="arcChange.emit($event)"><ng-content /></arc-checkbox>`,
|
|
11
11
|
})
|
|
12
12
|
export class Checkbox {
|
|
13
13
|
@Input() checked: boolean = false;
|
|
14
14
|
@Input() indeterminate: boolean = false;
|
|
15
15
|
@Input() disabled: boolean = false;
|
|
16
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
16
17
|
@Input() label: string = '';
|
|
17
18
|
@Input() name: string = '';
|
|
18
19
|
@Input() value: string = '';
|
package/src/input/Input.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-input',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-input [attr.type]="type" [attr.name]="name" [attr.label]="label" [attr.placeholder]="placeholder" [attr.value]="value" [disabled]="disabled" [required]="required" [multiline]="multiline" [attr.rows]="rows" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-input>`,
|
|
10
|
+
template: `<arc-input [attr.type]="type" [attr.name]="name" [attr.label]="label" [attr.placeholder]="placeholder" [attr.value]="value" [disabled]="disabled" [required]="required" [attr.error]="error" [attr.size]="size" [multiline]="multiline" [attr.rows]="rows" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-input>`,
|
|
11
11
|
})
|
|
12
12
|
export class Input {
|
|
13
13
|
@Input() type: string = 'text';
|
|
@@ -17,6 +17,8 @@ export class Input {
|
|
|
17
17
|
@Input() value: string = '';
|
|
18
18
|
@Input() disabled: boolean = false;
|
|
19
19
|
@Input() required: boolean = false;
|
|
20
|
+
@Input() error: string = '';
|
|
21
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
20
22
|
@Input() multiline: boolean = false;
|
|
21
23
|
@Input() rows: number = 5;
|
|
22
24
|
@Input() _hasPrefix: string = false;
|
package/src/input/RadioGroup.ts
CHANGED
|
@@ -7,12 +7,13 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-radio-group',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-radio-group [attr.value]="value" [attr.name]="name" [disabled]="disabled" [attr.orientation]="orientation" [attr._radios]="_radios" (arc-change)="arcChange.emit($event)"><ng-content /></arc-radio-group>`,
|
|
10
|
+
template: `<arc-radio-group [attr.value]="value" [attr.name]="name" [disabled]="disabled" [attr.size]="size" [attr.orientation]="orientation" [attr._radios]="_radios" (arc-change)="arcChange.emit($event)"><ng-content /></arc-radio-group>`,
|
|
11
11
|
})
|
|
12
12
|
export class RadioGroup {
|
|
13
13
|
@Input() value: string = '';
|
|
14
14
|
@Input() name: string = '';
|
|
15
15
|
@Input() disabled: boolean = false;
|
|
16
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
16
17
|
@Input() orientation: 'horizontal' = 'vertical';
|
|
17
18
|
@Input() _radios: string = [];
|
|
18
19
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
package/src/input/Select.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-select',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-select [attr.value]="value" [attr.placeholder]="placeholder" [attr.label]="label" [attr.name]="name" [disabled]="disabled" [open]="open" [attr._options]="_options" (arc-change)="arcChange.emit($event)"><ng-content /></arc-select>`,
|
|
10
|
+
template: `<arc-select [attr.value]="value" [attr.placeholder]="placeholder" [attr.label]="label" [attr.name]="name" [disabled]="disabled" [attr.size]="size" [attr.error]="error" [open]="open" [attr._options]="_options" (arc-change)="arcChange.emit($event)"><ng-content /></arc-select>`,
|
|
11
11
|
})
|
|
12
12
|
export class Select {
|
|
13
13
|
@Input() value: string = '';
|
|
@@ -15,6 +15,8 @@ export class Select {
|
|
|
15
15
|
@Input() label: string = '';
|
|
16
16
|
@Input() name: string = '';
|
|
17
17
|
@Input() disabled: boolean = false;
|
|
18
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
19
|
+
@Input() error: string = '';
|
|
18
20
|
@Input() open: boolean = false;
|
|
19
21
|
@Input() _options: string = [];
|
|
20
22
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
package/src/input/Textarea.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-textarea',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-textarea [attr.value]="value" [attr.placeholder]="placeholder" [attr.label]="label" [attr.rows]="rows" [attr.maxlength]="maxlength" [disabled]="disabled" [readonly]="readonly" [attr.resize]="resize" [attr.error]="error" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-textarea>`,
|
|
10
|
+
template: `<arc-textarea [attr.value]="value" [attr.placeholder]="placeholder" [attr.label]="label" [attr.rows]="rows" [attr.maxlength]="maxlength" [disabled]="disabled" [readonly]="readonly" [attr.resize]="resize" [attr.size]="size" [autoResize]="autoResize" [attr.error]="error" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-textarea>`,
|
|
11
11
|
})
|
|
12
12
|
export class Textarea {
|
|
13
13
|
@Input() value: string = '';
|
|
@@ -18,6 +18,8 @@ export class Textarea {
|
|
|
18
18
|
@Input() disabled: boolean = false;
|
|
19
19
|
@Input() readonly: boolean = false;
|
|
20
20
|
@Input() resize: 'none' | 'vertical' | 'horizontal' | 'both' = 'vertical';
|
|
21
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
22
|
+
@Input() autoResize: boolean = false;
|
|
21
23
|
@Input() error: string = '';
|
|
22
24
|
@Output() arcInput = new EventEmitter<CustomEvent>();
|
|
23
25
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
package/src/input/Toggle.ts
CHANGED
|
@@ -7,11 +7,12 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-toggle',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-toggle [checked]="checked" [disabled]="disabled" [attr.label]="label" [attr.name]="name" (arc-change)="arcChange.emit($event)"><ng-content /></arc-toggle>`,
|
|
10
|
+
template: `<arc-toggle [checked]="checked" [disabled]="disabled" [attr.size]="size" [attr.label]="label" [attr.name]="name" (arc-change)="arcChange.emit($event)"><ng-content /></arc-toggle>`,
|
|
11
11
|
})
|
|
12
12
|
export class Toggle {
|
|
13
13
|
@Input() checked: boolean = false;
|
|
14
14
|
@Input() disabled: boolean = false;
|
|
15
|
+
@Input() size: 'sm' | 'lg' = 'md';
|
|
15
16
|
@Input() label: string = '';
|
|
16
17
|
@Input() name: string = '';
|
|
17
18
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
package/src/layout/Container.ts
CHANGED
|
@@ -7,8 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-container',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-container [narrow]="narrow"><ng-content /></arc-container>`,
|
|
10
|
+
template: `<arc-container [narrow]="narrow" [attr.size]="size" [attr.padding]="padding"><ng-content /></arc-container>`,
|
|
11
11
|
})
|
|
12
12
|
export class Container {
|
|
13
13
|
@Input() narrow: boolean = false;
|
|
14
|
+
@Input() size: 'sm' | 'md' | 'lg' | 'xl' | 'full' = 'md';
|
|
15
|
+
@Input() padding: 'none' | 'sm' | 'lg' = 'md';
|
|
14
16
|
}
|
|
@@ -7,9 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-breadcrumb',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-breadcrumb [attr._items]="_items" (arc-navigate)="arcNavigate.emit($event)"><ng-content /></arc-breadcrumb>`,
|
|
10
|
+
template: `<arc-breadcrumb [attr.separator]="separator" [attr._items]="_items" (arc-navigate)="arcNavigate.emit($event)"><ng-content /></arc-breadcrumb>`,
|
|
11
11
|
})
|
|
12
12
|
export class Breadcrumb {
|
|
13
|
+
@Input() separator: string = '/';
|
|
13
14
|
@Input() _items: string = [];
|
|
14
15
|
@Output() arcNavigate = new EventEmitter<CustomEvent>();
|
|
15
16
|
}
|
package/src/navigation/Footer.ts
CHANGED
|
@@ -7,9 +7,10 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-footer',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-footer [compact]="compact" [border]="border"><ng-content /></arc-footer>`,
|
|
10
|
+
template: `<arc-footer [compact]="compact" [border]="border" [attr.align]="align"><ng-content /></arc-footer>`,
|
|
11
11
|
})
|
|
12
12
|
export class Footer {
|
|
13
13
|
@Input() compact: boolean = false;
|
|
14
14
|
@Input() border: boolean = true;
|
|
15
|
+
@Input() align: 'center' = 'left';
|
|
15
16
|
}
|
package/src/navigation/Link.ts
CHANGED
|
@@ -7,11 +7,12 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-link',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-link [attr.href]="href" [attr.variant]="variant" [active]="active" [external]="external"><ng-content /></arc-link>`,
|
|
10
|
+
template: `<arc-link [attr.href]="href" [attr.variant]="variant" [attr.underline]="underline" [active]="active" [external]="external"><ng-content /></arc-link>`,
|
|
11
11
|
})
|
|
12
12
|
export class Link {
|
|
13
13
|
@Input() href: string = '';
|
|
14
14
|
@Input() variant: 'muted' | 'nav' = 'default';
|
|
15
|
+
@Input() underline: 'always' | 'never' = 'hover';
|
|
15
16
|
@Input() active: boolean = false;
|
|
16
17
|
@Input() external: boolean = false;
|
|
17
18
|
}
|
|
@@ -7,11 +7,12 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-pagination',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-pagination [attr.total]="total" [attr.current]="current" [attr.siblings]="siblings" (arc-change)="arcChange.emit($event)"><ng-content /></arc-pagination>`,
|
|
10
|
+
template: `<arc-pagination [attr.total]="total" [attr.current]="current" [attr.siblings]="siblings" [compact]="compact" (arc-change)="arcChange.emit($event)"><ng-content /></arc-pagination>`,
|
|
11
11
|
})
|
|
12
12
|
export class Pagination {
|
|
13
13
|
@Input() total: number = 1;
|
|
14
14
|
@Input() current: number = 1;
|
|
15
15
|
@Input() siblings: number = 1;
|
|
16
|
+
@Input() compact: boolean = false;
|
|
16
17
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
|
17
18
|
}
|
|
@@ -7,11 +7,12 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-sidebar',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-sidebar [attr.active]="active" [collapsed]="collapsed" [attr.width]="width" [glow]="glow" [attr._sections]="_sections"><ng-content /></arc-sidebar>`,
|
|
10
|
+
template: `<arc-sidebar [attr.active]="active" [collapsed]="collapsed" [attr.position]="position" [attr.width]="width" [glow]="glow" [attr._sections]="_sections"><ng-content /></arc-sidebar>`,
|
|
11
11
|
})
|
|
12
12
|
export class Sidebar {
|
|
13
13
|
@Input() active: string = '';
|
|
14
14
|
@Input() collapsed: boolean = false;
|
|
15
|
+
@Input() position: 'right' = 'left';
|
|
15
16
|
@Input() width: string = '260px';
|
|
16
17
|
@Input() glow: boolean = false;
|
|
17
18
|
@Input() _sections: string = [];
|
package/src/navigation/Tabs.ts
CHANGED
|
@@ -7,11 +7,13 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-tabs',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-tabs [attr.items]="items" [attr.selected]="selected" [attr._tabs]="_tabs" (arc-change)="arcChange.emit($event)"><ng-content /></arc-tabs>`,
|
|
10
|
+
template: `<arc-tabs [attr.items]="items" [attr.selected]="selected" [attr.align]="align" [attr.variant]="variant" [attr._tabs]="_tabs" (arc-change)="arcChange.emit($event)"><ng-content /></arc-tabs>`,
|
|
11
11
|
})
|
|
12
12
|
export class Tabs {
|
|
13
13
|
@Input() items: unknown[] = [];
|
|
14
14
|
@Input() selected: number = 0;
|
|
15
|
+
@Input() align: 'center' | 'end' = 'start';
|
|
16
|
+
@Input() variant: 'pills' = 'underline';
|
|
15
17
|
@Input() _tabs: string = [];
|
|
16
18
|
@Output() arcChange = new EventEmitter<CustomEvent>();
|
|
17
19
|
}
|
package/src/navigation/TopBar.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
|
|
|
7
7
|
selector: 'arc-top-bar',
|
|
8
8
|
standalone: true,
|
|
9
9
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10
|
-
template: `<arc-top-bar [attr.heading]="heading" [fixed]="fixed" [menuOpen]="menuOpen" [attr.mobileMenu]="mobileMenu" [attr.menuPosition]="menuPosition"><ng-content /></arc-top-bar>`,
|
|
10
|
+
template: `<arc-top-bar [attr.heading]="heading" [fixed]="fixed" [menuOpen]="menuOpen" [attr.mobileMenu]="mobileMenu" [attr.menuPosition]="menuPosition" [attr.navAlign]="navAlign"><ng-content /></arc-top-bar>`,
|
|
11
11
|
})
|
|
12
12
|
export class TopBar {
|
|
13
13
|
@Input() heading: string = '';
|
|
@@ -15,4 +15,5 @@ export class TopBar {
|
|
|
15
15
|
@Input() menuOpen: boolean = false;
|
|
16
16
|
@Input() mobileMenu: string = 'sidebar';
|
|
17
17
|
@Input() menuPosition: string = 'left';
|
|
18
|
+
@Input() navAlign: string = 'center';
|
|
18
19
|
}
|