@tooark/angular 1.3.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/README.md +24 -3
- package/README.pt-BR.md +24 -3
- package/fesm2022/tooark-angular.mjs +39 -7
- package/fesm2022/tooark-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/types/tooark-angular.d.ts +24 -9
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Standalone Angular wrappers for the Tooark Web Components: `@Input()`s for the a
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## Contents
|
|
12
|
+
## 📑 Contents
|
|
13
13
|
|
|
14
14
|
- [Overview](#-overview)
|
|
15
15
|
- [Installation](#-installation)
|
|
@@ -18,6 +18,8 @@ Standalone Angular wrappers for the Tooark Web Components: `@Input()`s for the a
|
|
|
18
18
|
- [Usage examples](#-usage-examples)
|
|
19
19
|
- [Dependencies](#-dependencies)
|
|
20
20
|
- [Contributing](#-contributing)
|
|
21
|
+
- [Help & Security](#-help--security)
|
|
22
|
+
- [Support](#-support)
|
|
21
23
|
- [License](#-license)
|
|
22
24
|
|
|
23
25
|
---
|
|
@@ -66,6 +68,7 @@ One standalone component per element: `ark-button` → `ArkButtonComponent` (`<a
|
|
|
66
68
|
- Outputs: the custom events in camelCase (`(arkClose)` on the dialog and drawer, `(arkSelect)` on the menu and palette, `(changed)` on the select and the key/value editor, …) delivering the `CustomEvent`; `(arkChange)` on the calendar, clock and datepicker, `(arkSlideChange)` on the carousel and `(arkEventClick)`/`(arkSlotClick)`/`(arkViewChange)`/`(arkRangeChange)` on the scheduler deliver the `detail` itself; native events bubble from the inner control (`(input)` on the input: read `$any($event.target).value`).
|
|
67
69
|
- State: attributes like `open` are the source of truth (`[open]="bool"` + `(arkClose)`).
|
|
68
70
|
- Element: every wrapper exposes the `ark-*` element it renders as `element`, typed as the element class (`null` before the view): `@ViewChild(ArkDialogComponent) dialog!: ArkDialogComponent;`, then `this.dialog.element?.show()`. The `*Ref` view children a few wrappers already had stay for compatibility.
|
|
71
|
+
- Wrapper host: the wrapper is an element of its own around the `ark-*` one, so only the inputs reach the element. An `id`, `class`, `style` or `data-*` written on the `<ark-*-wrapper>` tag stays on the wrapper (set it through `element`), and `aria-label` goes through the `ariaLabel` input; native events such as `(click)` bubble up to the wrapper.
|
|
69
72
|
- Raw `ark-*` tags (side packages): add `schemas: [CUSTOM_ELEMENTS_SCHEMA]` to your component and call the `registerTooark*()` function in the browser.
|
|
70
73
|
|
|
71
74
|
Full attribute reference, theming guide and E2E hooks: [https://github.com/Tooark/web-components#readme](https://github.com/Tooark/web-components#readme) · live examples with interaction tests: [Storybook](https://tooark.com/web-components/).
|
|
@@ -165,8 +168,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
|
|
|
165
168
|
|
|
166
169
|
| Package | Version | Description |
|
|
167
170
|
| -------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------------------------- |
|
|
168
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
169
|
-
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.
|
|
171
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.5.0 | Types, i18n, toast/announce services, motion and overlay helpers |
|
|
172
|
+
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.5.0 | The `ark-*` Custom Elements and their stylesheet |
|
|
170
173
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | TypeScript runtime helpers |
|
|
171
174
|
| [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
|
|
172
175
|
| [`@angular/core`](https://www.npmjs.com/package/@angular/core) | >=21.2.19 (peer) | Angular core (security floor of the workspace) |
|
|
@@ -179,6 +182,24 @@ Contributions are welcome! Open issues and pull requests in the [Tooark/web-comp
|
|
|
179
182
|
|
|
180
183
|
---
|
|
181
184
|
|
|
185
|
+
## 🆘 Help & Security
|
|
186
|
+
|
|
187
|
+
- ❓ **Questions, bugs, feature ideas** — see [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) for the right channel
|
|
188
|
+
- 🔒 **Security vulnerabilities** — do **not** open a public issue; follow [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 💖 Support
|
|
193
|
+
|
|
194
|
+
If this project helps your workflow, consider supporting its development:
|
|
195
|
+
|
|
196
|
+
- 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
|
|
197
|
+
- ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
|
|
198
|
+
|
|
199
|
+
Every contribution helps keep the project maintained and improving. Thank you! 🙏
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
182
203
|
## 📄 License
|
|
183
204
|
|
|
184
205
|
This project is licensed under the Apache License 2.0. See the [LICENSE](https://github.com/Tooark/web-components/blob/main/LICENSE) file for details.
|
package/README.pt-BR.md
CHANGED
|
@@ -9,7 +9,7 @@ Wrappers Angular standalone dos Tooark Web Components: `@Input()` para os atribu
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## Conteúdo
|
|
12
|
+
## 📑 Conteúdo
|
|
13
13
|
|
|
14
14
|
- [Visão Geral](#-visão-geral)
|
|
15
15
|
- [Instalação](#-instalação)
|
|
@@ -18,6 +18,8 @@ Wrappers Angular standalone dos Tooark Web Components: `@Input()` para os atribu
|
|
|
18
18
|
- [Exemplos de Uso](#-exemplos-de-uso)
|
|
19
19
|
- [Dependências](#-dependências)
|
|
20
20
|
- [Contribuição](#-contribuição)
|
|
21
|
+
- [Ajuda & Segurança](#-ajuda--segurança)
|
|
22
|
+
- [Apoie](#-apoie)
|
|
21
23
|
- [Licença](#-licença)
|
|
22
24
|
|
|
23
25
|
---
|
|
@@ -66,6 +68,7 @@ Um componente standalone por elemento: `ark-button` → `ArkButtonComponent` (`<
|
|
|
66
68
|
- Outputs: os eventos customizados em camelCase (`(arkClose)` no dialog e no drawer, `(arkSelect)` no menu e na paleta, `(changed)` no select e no editor chave/valor, …) entregando o `CustomEvent`; `(arkChange)` no calendário, no relógio e no datepicker, `(arkSlideChange)` no carrossel e `(arkEventClick)`/`(arkSlotClick)`/`(arkViewChange)`/`(arkRangeChange)` na agenda entregam o próprio `detail`; eventos nativos sobem do controle interno (`(input)` no input: leia `$any($event.target).value`).
|
|
67
69
|
- Estado: atributos como `open` são a fonte da verdade (`[open]="bool"` + `(arkClose)`).
|
|
68
70
|
- Elemento: todo wrapper expõe o elemento `ark-*` que renderiza em `element`, tipado como a classe do elemento (`null` antes da view): `@ViewChild(ArkDialogComponent) dialog!: ArkDialogComponent;` e depois `this.dialog.element?.show()`. As view children `*Ref` que alguns wrappers já tinham continuam, por compatibilidade.
|
|
71
|
+
- Host do wrapper: o wrapper é um elemento próprio em volta do `ark-*`, então só os inputs chegam ao elemento. Um `id`, `class`, `style` ou `data-*` escrito na tag `<ark-*-wrapper>` fica no wrapper (atribua pelo `element`), e o `aria-label` vai pelo input `ariaLabel`; eventos nativos como `(click)` sobem até o wrapper.
|
|
69
72
|
- Tags `ark-*` cruas (pacotes laterais): adicione `schemas: [CUSTOM_ELEMENTS_SCHEMA]` ao seu componente e chame a função `registerTooark*()` no navegador.
|
|
70
73
|
|
|
71
74
|
Referência completa de atributos, guia de tema e hooks de E2E: [https://github.com/Tooark/web-components/blob/main/README.pt-BR.md](https://github.com/Tooark/web-components/blob/main/README.pt-BR.md) · exemplos vivos com testes de interação: [Storybook](https://tooark.com/web-components/).
|
|
@@ -165,8 +168,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
|
|
|
165
168
|
|
|
166
169
|
| Pacote | Versão | Descrição |
|
|
167
170
|
| -------------------------------------------------------------------------------- | ---------------- | -------------------------------------------------------------------- |
|
|
168
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
169
|
-
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.
|
|
171
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.5.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
|
|
172
|
+
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.5.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
|
|
170
173
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | Helpers de runtime do TypeScript |
|
|
171
174
|
| [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
|
|
172
175
|
| [`@angular/core`](https://www.npmjs.com/package/@angular/core) | >=21.2.19 (peer) | Núcleo do Angular (piso de segurança do workspace) |
|
|
@@ -179,6 +182,24 @@ Contribuições são bem-vindas! Abra issues e pull requests no repositório [To
|
|
|
179
182
|
|
|
180
183
|
---
|
|
181
184
|
|
|
185
|
+
## 🆘 Ajuda & Segurança
|
|
186
|
+
|
|
187
|
+
- ❓ **Dúvidas, bugs e ideias** — veja o [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) para escolher o canal certo
|
|
188
|
+
- 🔒 **Vulnerabilidades de segurança** — **não** abra issue pública; siga o [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 💖 Apoie
|
|
193
|
+
|
|
194
|
+
Se este projeto ajuda no seu dia a dia, considere apoiar o desenvolvimento:
|
|
195
|
+
|
|
196
|
+
- 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
|
|
197
|
+
- ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
|
|
198
|
+
|
|
199
|
+
Cada contribuição ajuda a manter o projeto ativo e em evolução. Obrigado! 🙏
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
182
203
|
## 📄 Licença
|
|
183
204
|
|
|
184
205
|
Este projeto está licenciado sob a licença Apache 2.0. Veja o arquivo [LICENSE](https://github.com/Tooark/web-components/blob/main/LICENSE) para mais detalhes.
|
|
@@ -120,7 +120,7 @@ class ArkAvatarComponent {
|
|
|
120
120
|
return this.host.nativeElement.querySelector(":scope > ark-avatar");
|
|
121
121
|
}
|
|
122
122
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkAvatarComponent, isStandalone: true, selector: "ark-avatar-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", name: "name", src: "src", size: "size", shape: "shape", color: "color", theme: "theme" }, ngImport: i0, template: `
|
|
123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkAvatarComponent, isStandalone: true, selector: "ark-avatar-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", name: "name", src: "src", size: "size", shape: "shape", color: "color", variant: "variant", theme: "theme" }, ngImport: i0, template: `
|
|
124
124
|
<ark-avatar
|
|
125
125
|
[attr.testid]="testid"
|
|
126
126
|
[attr.aria-label]="ariaLabel"
|
|
@@ -129,6 +129,7 @@ class ArkAvatarComponent {
|
|
|
129
129
|
[attr.size]="size"
|
|
130
130
|
[attr.shape]="shape"
|
|
131
131
|
[attr.color]="color"
|
|
132
|
+
[attr.variant]="variant"
|
|
132
133
|
[attr.theme]="theme">
|
|
133
134
|
</ark-avatar>`, isInline: true }); }
|
|
134
135
|
}
|
|
@@ -147,6 +148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
147
148
|
[attr.size]="size"
|
|
148
149
|
[attr.shape]="shape"
|
|
149
150
|
[attr.color]="color"
|
|
151
|
+
[attr.variant]="variant"
|
|
150
152
|
[attr.theme]="theme">
|
|
151
153
|
</ark-avatar>`
|
|
152
154
|
}]
|
|
@@ -164,6 +166,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
164
166
|
type: Input
|
|
165
167
|
}], color: [{
|
|
166
168
|
type: Input
|
|
169
|
+
}], variant: [{
|
|
170
|
+
type: Input
|
|
167
171
|
}], theme: [{
|
|
168
172
|
type: Input
|
|
169
173
|
}] } });
|
|
@@ -613,7 +617,7 @@ class ArkCheckboxComponent {
|
|
|
613
617
|
this.changed.emit(event);
|
|
614
618
|
}
|
|
615
619
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
616
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkCheckboxComponent, isStandalone: true, selector: "ark-checkbox-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", checked: "checked", indeterminate: "indeterminate", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
620
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkCheckboxComponent, isStandalone: true, selector: "ark-checkbox-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", checked: "checked", indeterminate: "indeterminate", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label", helper: "helper" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
617
621
|
<ark-checkbox
|
|
618
622
|
[attr.testid]="testid"
|
|
619
623
|
[attr.aria-label]="ariaLabel"
|
|
@@ -626,6 +630,7 @@ class ArkCheckboxComponent {
|
|
|
626
630
|
[attr.name]="name"
|
|
627
631
|
[attr.value]="value"
|
|
628
632
|
[attr.label]="label"
|
|
633
|
+
[attr.helper]="helper"
|
|
629
634
|
(change)="onChange($event)">
|
|
630
635
|
<ng-content></ng-content>
|
|
631
636
|
</ark-checkbox>`, isInline: true }); }
|
|
@@ -649,6 +654,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
649
654
|
[attr.name]="name"
|
|
650
655
|
[attr.value]="value"
|
|
651
656
|
[attr.label]="label"
|
|
657
|
+
[attr.helper]="helper"
|
|
652
658
|
(change)="onChange($event)">
|
|
653
659
|
<ng-content></ng-content>
|
|
654
660
|
</ark-checkbox>`
|
|
@@ -675,6 +681,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
675
681
|
type: Input
|
|
676
682
|
}], label: [{
|
|
677
683
|
type: Input
|
|
684
|
+
}], helper: [{
|
|
685
|
+
type: Input
|
|
678
686
|
}], changed: [{
|
|
679
687
|
type: Output
|
|
680
688
|
}] } });
|
|
@@ -702,12 +710,13 @@ class ArkClockComponent {
|
|
|
702
710
|
this.clockRef?.nativeElement?.removeEventListener("ark-change", this.handler);
|
|
703
711
|
}
|
|
704
712
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkClockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
705
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkClockComponent, isStandalone: true, selector: "ark-clock-wrapper", inputs: { testid: "testid", value: "value", lang: "lang", theme: "theme", intent: "intent", seconds: "seconds", stepMinutes: "stepMinutes", hoursFormat: "hoursFormat" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "clockRef", first: true, predicate: ["clock"], descendants: true }], ngImport: i0, template: `
|
|
713
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkClockComponent, isStandalone: true, selector: "ark-clock-wrapper", inputs: { testid: "testid", value: "value", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", seconds: "seconds", stepMinutes: "stepMinutes", hoursFormat: "hoursFormat" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "clockRef", first: true, predicate: ["clock"], descendants: true }], ngImport: i0, template: `
|
|
706
714
|
<ark-clock
|
|
707
715
|
#clock
|
|
708
716
|
[attr.testid]="testid"
|
|
709
717
|
[attr.value]="value"
|
|
710
718
|
[attr.lang]="lang"
|
|
719
|
+
[attr.locale-json]="localeJson"
|
|
711
720
|
[attr.theme]="theme"
|
|
712
721
|
[attr.intent]="intent"
|
|
713
722
|
[attr.seconds]="seconds ? '' : null"
|
|
@@ -727,6 +736,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
727
736
|
[attr.testid]="testid"
|
|
728
737
|
[attr.value]="value"
|
|
729
738
|
[attr.lang]="lang"
|
|
739
|
+
[attr.locale-json]="localeJson"
|
|
730
740
|
[attr.theme]="theme"
|
|
731
741
|
[attr.intent]="intent"
|
|
732
742
|
[attr.seconds]="seconds ? '' : null"
|
|
@@ -740,6 +750,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
740
750
|
type: Input
|
|
741
751
|
}], lang: [{
|
|
742
752
|
type: Input
|
|
753
|
+
}], localeJson: [{
|
|
754
|
+
type: Input
|
|
743
755
|
}], theme: [{
|
|
744
756
|
type: Input
|
|
745
757
|
}], intent: [{
|
|
@@ -839,6 +851,8 @@ class ArkCommandPaletteComponent {
|
|
|
839
851
|
this.noScrollLock = false;
|
|
840
852
|
/** Filtra localmente pelo label dos itens. */
|
|
841
853
|
this.filter = false;
|
|
854
|
+
/** Busca assíncrona em andamento: sem opções a mensagem vira `searching`, e o listbox fica aria-busy. */
|
|
855
|
+
this.busy = false;
|
|
842
856
|
this.theme = "auto";
|
|
843
857
|
this.arkSelect = new EventEmitter();
|
|
844
858
|
this.arkQuery = new EventEmitter();
|
|
@@ -857,7 +871,7 @@ class ArkCommandPaletteComponent {
|
|
|
857
871
|
return this.host.nativeElement.querySelector(":scope > ark-command-palette");
|
|
858
872
|
}
|
|
859
873
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
860
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkCommandPaletteComponent, isStandalone: true, selector: "ark-command-palette-wrapper", inputs: { testid: "testid", open: "open", placeholder: "placeholder", hotkey: "hotkey", noScrollLock: "noScrollLock", filter: "filter", queryDelay: "queryDelay", label: "label", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkSelect: "arkSelect", arkQuery: "arkQuery", arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
|
|
874
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkCommandPaletteComponent, isStandalone: true, selector: "ark-command-palette-wrapper", inputs: { testid: "testid", open: "open", placeholder: "placeholder", hotkey: "hotkey", noScrollLock: "noScrollLock", filter: "filter", queryDelay: "queryDelay", label: "label", hint: "hint", busy: "busy", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkSelect: "arkSelect", arkQuery: "arkQuery", arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
|
|
861
875
|
<ark-command-palette
|
|
862
876
|
[attr.testid]="testid"
|
|
863
877
|
[attr.open]="open ? '' : null"
|
|
@@ -867,6 +881,8 @@ class ArkCommandPaletteComponent {
|
|
|
867
881
|
[attr.filter]="filter ? '' : null"
|
|
868
882
|
[attr.query-delay]="queryDelay"
|
|
869
883
|
[attr.label]="label"
|
|
884
|
+
[attr.hint]="hint"
|
|
885
|
+
[attr.busy]="busy ? '' : null"
|
|
870
886
|
[attr.theme]="theme"
|
|
871
887
|
[attr.lang]="lang"
|
|
872
888
|
[attr.locale-json]="localeJson"
|
|
@@ -894,6 +910,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
894
910
|
[attr.filter]="filter ? '' : null"
|
|
895
911
|
[attr.query-delay]="queryDelay"
|
|
896
912
|
[attr.label]="label"
|
|
913
|
+
[attr.hint]="hint"
|
|
914
|
+
[attr.busy]="busy ? '' : null"
|
|
897
915
|
[attr.theme]="theme"
|
|
898
916
|
[attr.lang]="lang"
|
|
899
917
|
[attr.locale-json]="localeJson"
|
|
@@ -921,6 +939,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
921
939
|
type: Input
|
|
922
940
|
}], label: [{
|
|
923
941
|
type: Input
|
|
942
|
+
}], hint: [{
|
|
943
|
+
type: Input
|
|
944
|
+
}], busy: [{
|
|
945
|
+
type: Input
|
|
924
946
|
}], theme: [{
|
|
925
947
|
type: Input
|
|
926
948
|
}], lang: [{
|
|
@@ -1511,6 +1533,8 @@ class ArkFileInputComponent {
|
|
|
1511
1533
|
this.host = inject(ElementRef);
|
|
1512
1534
|
/** Aceita vários arquivos; sem ele o drop fica com o primeiro. */
|
|
1513
1535
|
this.multiple = false;
|
|
1536
|
+
/** Escolhe uma pasta inteira: o seletor abre em modo pasta e a zona lê as pastas soltas. */
|
|
1537
|
+
this.directory = false;
|
|
1514
1538
|
/** Estado de erro sem mensagem (borda danger e aria-invalid). */
|
|
1515
1539
|
this.error = false;
|
|
1516
1540
|
this.disabled = false;
|
|
@@ -1518,7 +1542,7 @@ class ArkFileInputComponent {
|
|
|
1518
1542
|
this.intent = "primary";
|
|
1519
1543
|
this.size = "md";
|
|
1520
1544
|
this.theme = "auto";
|
|
1521
|
-
/** Arquivos escolhidos ou soltos
|
|
1545
|
+
/** Arquivos escolhidos ou soltos em detail.files (array de File); com `directory`, detail.paths traz os caminhos. */
|
|
1522
1546
|
this.changed = new EventEmitter();
|
|
1523
1547
|
ensureTooarkComponentsRegistered();
|
|
1524
1548
|
}
|
|
@@ -1530,11 +1554,12 @@ class ArkFileInputComponent {
|
|
|
1530
1554
|
this.changed.emit(event);
|
|
1531
1555
|
}
|
|
1532
1556
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1533
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkFileInputComponent, isStandalone: true, selector: "ark-file-input-wrapper", inputs: { testid: "testid", accept: "accept", multiple: "multiple", label: "label", helper: "helper", errorMessage: "errorMessage", error: "error", disabled: "disabled", required: "required", name: "name", intent: "intent", size: "size", rounded: "rounded", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
1557
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkFileInputComponent, isStandalone: true, selector: "ark-file-input-wrapper", inputs: { testid: "testid", accept: "accept", multiple: "multiple", directory: "directory", label: "label", helper: "helper", errorMessage: "errorMessage", error: "error", disabled: "disabled", required: "required", name: "name", intent: "intent", size: "size", rounded: "rounded", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
1534
1558
|
<ark-file-input
|
|
1535
1559
|
[attr.testid]="testid"
|
|
1536
1560
|
[attr.accept]="accept"
|
|
1537
1561
|
[attr.multiple]="multiple ? '' : null"
|
|
1562
|
+
[attr.directory]="directory ? '' : null"
|
|
1538
1563
|
[attr.label]="label"
|
|
1539
1564
|
[attr.helper]="helper"
|
|
1540
1565
|
[attr.error-message]="errorMessage"
|
|
@@ -1562,6 +1587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
1562
1587
|
[attr.testid]="testid"
|
|
1563
1588
|
[attr.accept]="accept"
|
|
1564
1589
|
[attr.multiple]="multiple ? '' : null"
|
|
1590
|
+
[attr.directory]="directory ? '' : null"
|
|
1565
1591
|
[attr.label]="label"
|
|
1566
1592
|
[attr.helper]="helper"
|
|
1567
1593
|
[attr.error-message]="errorMessage"
|
|
@@ -1584,6 +1610,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
1584
1610
|
type: Input
|
|
1585
1611
|
}], multiple: [{
|
|
1586
1612
|
type: Input
|
|
1613
|
+
}], directory: [{
|
|
1614
|
+
type: Input
|
|
1587
1615
|
}], label: [{
|
|
1588
1616
|
type: Input
|
|
1589
1617
|
}], helper: [{
|
|
@@ -2263,7 +2291,7 @@ class ArkRadioComponent {
|
|
|
2263
2291
|
this.changed.emit(event);
|
|
2264
2292
|
}
|
|
2265
2293
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ArkRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2266
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkRadioComponent, isStandalone: true, selector: "ark-radio-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
2294
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.24", type: ArkRadioComponent, isStandalone: true, selector: "ark-radio-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label", helper: "helper" }, outputs: { changed: "changed" }, ngImport: i0, template: `
|
|
2267
2295
|
<ark-radio
|
|
2268
2296
|
[attr.testid]="testid"
|
|
2269
2297
|
[attr.aria-label]="ariaLabel"
|
|
@@ -2275,6 +2303,7 @@ class ArkRadioComponent {
|
|
|
2275
2303
|
[attr.name]="name"
|
|
2276
2304
|
[attr.value]="value"
|
|
2277
2305
|
[attr.label]="label"
|
|
2306
|
+
[attr.helper]="helper"
|
|
2278
2307
|
(change)="onChange($event)">
|
|
2279
2308
|
<ng-content></ng-content>
|
|
2280
2309
|
</ark-radio>`, isInline: true }); }
|
|
@@ -2297,6 +2326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
2297
2326
|
[attr.name]="name"
|
|
2298
2327
|
[attr.value]="value"
|
|
2299
2328
|
[attr.label]="label"
|
|
2329
|
+
[attr.helper]="helper"
|
|
2300
2330
|
(change)="onChange($event)">
|
|
2301
2331
|
<ng-content></ng-content>
|
|
2302
2332
|
</ark-radio>`
|
|
@@ -2321,6 +2351,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
2321
2351
|
type: Input
|
|
2322
2352
|
}], label: [{
|
|
2323
2353
|
type: Input
|
|
2354
|
+
}], helper: [{
|
|
2355
|
+
type: Input
|
|
2324
2356
|
}], changed: [{
|
|
2325
2357
|
type: Output
|
|
2326
2358
|
}] } });
|