@tooark/angular 1.4.0 → 1.6.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 CHANGED
@@ -68,6 +68,7 @@ One standalone component per element: `ark-button` → `ArkButtonComponent` (`<a
68
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`).
69
69
  - State: attributes like `open` are the source of truth (`[open]="bool"` + `(arkClose)`).
70
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.
71
72
  - Raw `ark-*` tags (side packages): add `schemas: [CUSTOM_ELEMENTS_SCHEMA]` to your component and call the `registerTooark*()` function in the browser.
72
73
 
73
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/).
@@ -167,8 +168,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
167
168
 
168
169
  | Package | Version | Description |
169
170
  | -------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------------------------- |
170
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Types, i18n, toast/announce services, motion and overlay helpers |
171
- | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.4.0 | The `ark-*` Custom Elements and their stylesheet |
171
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.6.0 | Types, i18n, toast/announce services, motion and overlay helpers |
172
+ | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.6.0 | The `ark-*` Custom Elements and their stylesheet |
172
173
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | TypeScript runtime helpers |
173
174
  | [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
174
175
  | [`@angular/core`](https://www.npmjs.com/package/@angular/core) | >=21.2.19 (peer) | Angular core (security floor of the workspace) |
package/README.pt-BR.md CHANGED
@@ -68,6 +68,7 @@ Um componente standalone por elemento: `ark-button` → `ArkButtonComponent` (`<
68
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`).
69
69
  - Estado: atributos como `open` são a fonte da verdade (`[open]="bool"` + `(arkClose)`).
70
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.
71
72
  - Tags `ark-*` cruas (pacotes laterais): adicione `schemas: [CUSTOM_ELEMENTS_SCHEMA]` ao seu componente e chame a função `registerTooark*()` no navegador.
72
73
 
73
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/).
@@ -167,8 +168,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
167
168
 
168
169
  | Pacote | Versão | Descrição |
169
170
  | -------------------------------------------------------------------------------- | ---------------- | -------------------------------------------------------------------- |
170
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
171
- | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.4.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
171
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.6.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.6.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
172
173
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | Helpers de runtime do TypeScript |
173
174
  | [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
174
175
  | [`@angular/core`](https://www.npmjs.com/package/@angular/core) | >=21.2.19 (peer) | Núcleo do Angular (piso de segurança do workspace) |