@tooark/angular 1.2.1 → 1.3.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 +4 -3
- package/README.pt-BR.md +4 -3
- package/fesm2022/tooark-angular.mjs +349 -124
- package/fesm2022/tooark-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/types/tooark-angular.d.ts +134 -3
package/README.md
CHANGED
|
@@ -62,9 +62,10 @@ Add the stylesheet to `angular.json` (or import it from your global `styles.css`
|
|
|
62
62
|
|
|
63
63
|
One standalone component per element: `ark-button` → `ArkButtonComponent` (`<ark-button-wrapper>`), `ark-kv-editor` → `ArkKvEditorComponent` (`<ark-kv-editor-wrapper>`), and so on.
|
|
64
64
|
|
|
65
|
-
- Inputs: the element's attributes in camelCase (`iconOnly`, `stepMinutes`, `localeJson`) plus `ariaLabel` on the input, textarea, select, checkbox, radio, switch, toggle, color-swatches, shape-picker, button, copy-button, avatar, dialog, drawer, command palette and menu; object inputs where they matter (`events`, `rows`, `options`).
|
|
65
|
+
- Inputs: the element's attributes in camelCase (`iconOnly`, `stepMinutes`, `localeJson`) plus `ariaLabel` on the input, textarea, select, checkbox, radio, switch, toggle, color-swatches, shape-picker, button, copy-button, avatar, dialog, drawer, command palette and menu; object inputs where they matter (`events`, `rows`, `options`, and `valueField` on the key/value editor).
|
|
66
66
|
- 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
67
|
- State: attributes like `open` are the source of truth (`[open]="bool"` + `(arkClose)`).
|
|
68
|
+
- 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.
|
|
68
69
|
- Raw `ark-*` tags (side packages): add `schemas: [CUSTOM_ELEMENTS_SCHEMA]` to your component and call the `registerTooark*()` function in the browser.
|
|
69
70
|
|
|
70
71
|
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/).
|
|
@@ -164,8 +165,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
|
|
|
164
165
|
|
|
165
166
|
| Package | Version | Description |
|
|
166
167
|
| -------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------------------------- |
|
|
167
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
168
|
-
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.
|
|
168
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Types, i18n, toast/announce services, motion and overlay helpers |
|
|
169
|
+
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.3.0 | The `ark-*` Custom Elements and their stylesheet |
|
|
169
170
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | TypeScript runtime helpers |
|
|
170
171
|
| [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
|
|
171
172
|
| [`@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
|
@@ -62,9 +62,10 @@ Adicione a folha de estilo ao `angular.json` (ou importe-a do seu `styles.css` g
|
|
|
62
62
|
|
|
63
63
|
Um componente standalone por elemento: `ark-button` → `ArkButtonComponent` (`<ark-button-wrapper>`), `ark-kv-editor` → `ArkKvEditorComponent` (`<ark-kv-editor-wrapper>`), e assim por diante.
|
|
64
64
|
|
|
65
|
-
- Inputs: os atributos do elemento em camelCase (`iconOnly`, `stepMinutes`, `localeJson`) mais `ariaLabel` no input, textarea, select, checkbox, radio, switch, toggle, color-swatches, shape-picker, button, copy-button, avatar, dialog, drawer, paleta de comandos e menu; inputs de objeto onde importam (`events`, `rows`, `options`).
|
|
65
|
+
- Inputs: os atributos do elemento em camelCase (`iconOnly`, `stepMinutes`, `localeJson`) mais `ariaLabel` no input, textarea, select, checkbox, radio, switch, toggle, color-swatches, shape-picker, button, copy-button, avatar, dialog, drawer, paleta de comandos e menu; inputs de objeto onde importam (`events`, `rows`, `options`, e `valueField` no editor chave/valor).
|
|
66
66
|
- 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
67
|
- Estado: atributos como `open` são a fonte da verdade (`[open]="bool"` + `(arkClose)`).
|
|
68
|
+
- 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.
|
|
68
69
|
- Tags `ark-*` cruas (pacotes laterais): adicione `schemas: [CUSTOM_ELEMENTS_SCHEMA]` ao seu componente e chame a função `registerTooark*()` no navegador.
|
|
69
70
|
|
|
70
71
|
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/).
|
|
@@ -164,8 +165,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
|
|
|
164
165
|
|
|
165
166
|
| Pacote | Versão | Descrição |
|
|
166
167
|
| -------------------------------------------------------------------------------- | ---------------- | -------------------------------------------------------------------- |
|
|
167
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
168
|
-
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.
|
|
168
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
|
|
169
|
+
| [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.3.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
|
|
169
170
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | Helpers de runtime do TypeScript |
|
|
170
171
|
| [`@angular/common`](https://www.npmjs.com/package/@angular/common) | >=21.2.19 (peer) | Angular common |
|
|
171
172
|
| [`@angular/core`](https://www.npmjs.com/package/@angular/core) | >=21.2.19 (peer) | Núcleo do Angular (piso de segurança do workspace) |
|