@tooark/angular 1.0.1 → 1.2.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.
@@ -110,9 +110,10 @@ class ArkAvatarComponent {
110
110
  ensureTooarkComponentsRegistered();
111
111
  }
112
112
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
113
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkAvatarComponent, isStandalone: true, selector: "ark-avatar-wrapper", inputs: { testid: "testid", name: "name", src: "src", size: "size", shape: "shape", color: "color", theme: "theme" }, ngImport: i0, template: `
113
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
114
114
  <ark-avatar
115
115
  [attr.testid]="testid"
116
+ [attr.aria-label]="ariaLabel"
116
117
  [attr.name]="name"
117
118
  [attr.src]="src"
118
119
  [attr.size]="size"
@@ -130,6 +131,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
130
131
  template: `
131
132
  <ark-avatar
132
133
  [attr.testid]="testid"
134
+ [attr.aria-label]="ariaLabel"
133
135
  [attr.name]="name"
134
136
  [attr.src]="src"
135
137
  [attr.size]="size"
@@ -140,6 +142,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
140
142
  }]
141
143
  }], ctorParameters: () => [], propDecorators: { testid: [{
142
144
  type: Input
145
+ }], ariaLabel: [{
146
+ type: Input
143
147
  }], name: [{
144
148
  type: Input
145
149
  }], src: [{
@@ -218,16 +222,16 @@ class ArkButtonComponent {
218
222
  this.iconOnly = false;
219
223
  this.fullWidth = false;
220
224
  this.variant = "primary";
221
- this.intent = "primary";
222
225
  this.theme = "auto";
223
226
  this.size = "md";
224
227
  this.rounded = "md";
225
228
  ensureTooarkComponentsRegistered();
226
229
  }
227
230
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
228
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkButtonComponent, isStandalone: true, selector: "ark-button-wrapper", inputs: { testid: "testid", type: "type", disabled: "disabled", loading: "loading", status: "status", statusLabel: "statusLabel", iconOnly: "iconOnly", fullWidth: "fullWidth", variant: "variant", intent: "intent", theme: "theme", size: "size", rounded: "rounded", href: "href", target: "target", color: "color", textColor: "textColor" }, ngImport: i0, template: `
231
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkButtonComponent, isStandalone: true, selector: "ark-button-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", type: "type", disabled: "disabled", loading: "loading", status: "status", statusLabel: "statusLabel", iconOnly: "iconOnly", fullWidth: "fullWidth", variant: "variant", intent: "intent", theme: "theme", size: "size", rounded: "rounded", href: "href", target: "target", color: "color", textColor: "textColor" }, ngImport: i0, template: `
229
232
  <ark-button
230
233
  [attr.testid]="testid"
234
+ [attr.aria-label]="ariaLabel"
231
235
  [attr.type]="type"
232
236
  [attr.disabled]="disabled ? '' : null"
233
237
  [attr.loading]="loading ? '' : null"
@@ -256,6 +260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
256
260
  template: `
257
261
  <ark-button
258
262
  [attr.testid]="testid"
263
+ [attr.aria-label]="ariaLabel"
259
264
  [attr.type]="type"
260
265
  [attr.disabled]="disabled ? '' : null"
261
266
  [attr.loading]="loading ? '' : null"
@@ -277,6 +282,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
277
282
  }]
278
283
  }], ctorParameters: () => [], propDecorators: { testid: [{
279
284
  type: Input
285
+ }], ariaLabel: [{
286
+ type: Input
280
287
  }], type: [{
281
288
  type: Input
282
289
  }], disabled: [{
@@ -566,9 +573,10 @@ class ArkCheckboxComponent {
566
573
  this.changed.emit(event);
567
574
  }
568
575
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
569
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkCheckboxComponent, isStandalone: true, selector: "ark-checkbox-wrapper", inputs: { testid: "testid", checked: "checked", indeterminate: "indeterminate", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label" }, outputs: { changed: "changed" }, ngImport: i0, template: `
576
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
570
577
  <ark-checkbox
571
578
  [attr.testid]="testid"
579
+ [attr.aria-label]="ariaLabel"
572
580
  [attr.checked]="checked ? '' : null"
573
581
  [attr.indeterminate]="indeterminate ? '' : null"
574
582
  [attr.disabled]="disabled ? '' : null"
@@ -591,6 +599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
591
599
  template: `
592
600
  <ark-checkbox
593
601
  [attr.testid]="testid"
602
+ [attr.aria-label]="ariaLabel"
594
603
  [attr.checked]="checked ? '' : null"
595
604
  [attr.indeterminate]="indeterminate ? '' : null"
596
605
  [attr.disabled]="disabled ? '' : null"
@@ -606,6 +615,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
606
615
  }]
607
616
  }], ctorParameters: () => [], propDecorators: { testid: [{
608
617
  type: Input
618
+ }], ariaLabel: [{
619
+ type: Input
609
620
  }], checked: [{
610
621
  type: Input
611
622
  }], indeterminate: [{
@@ -717,9 +728,10 @@ class ArkColorSwatchesComponent {
717
728
  this.changed.emit(event);
718
729
  }
719
730
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkColorSwatchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
720
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkColorSwatchesComponent, isStandalone: true, selector: "ark-color-swatches-wrapper", inputs: { testid: "testid", value: "value", colors: "colors", label: "label", disabled: "disabled", size: "size", theme: "theme" }, outputs: { changed: "changed" }, ngImport: i0, template: `
731
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkColorSwatchesComponent, isStandalone: true, selector: "ark-color-swatches-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", value: "value", colors: "colors", label: "label", disabled: "disabled", size: "size", theme: "theme" }, outputs: { changed: "changed" }, ngImport: i0, template: `
721
732
  <ark-color-swatches
722
733
  [attr.testid]="testid"
734
+ [attr.aria-label]="ariaLabel"
723
735
  [attr.value]="value"
724
736
  [attr.colors]="colorsJson"
725
737
  [attr.label]="label"
@@ -738,6 +750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
738
750
  template: `
739
751
  <ark-color-swatches
740
752
  [attr.testid]="testid"
753
+ [attr.aria-label]="ariaLabel"
741
754
  [attr.value]="value"
742
755
  [attr.colors]="colorsJson"
743
756
  [attr.label]="label"
@@ -749,6 +762,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
749
762
  }]
750
763
  }], ctorParameters: () => [], propDecorators: { testid: [{
751
764
  type: Input
765
+ }], ariaLabel: [{
766
+ type: Input
752
767
  }], value: [{
753
768
  type: Input
754
769
  }], colors: [{
@@ -778,30 +793,17 @@ class ArkCommandPaletteComponent {
778
793
  this.arkQuery = new EventEmitter();
779
794
  this.arkOpen = new EventEmitter();
780
795
  this.arkClose = new EventEmitter();
796
+ // Ligados no template, e não no ngAfterViewInit: o listener existe desde a criação da view, então o ark-open de um
797
+ // overlay que já nasce aberto (o elemento o emite num microtask) não se perde, nem na hidratação de SSR.
781
798
  this.selectHandler = (event) => this.arkSelect.emit(event);
782
799
  this.queryHandler = (event) => this.arkQuery.emit(event);
783
800
  this.openHandler = (event) => this.arkOpen.emit(event);
784
801
  this.closeHandler = (event) => this.arkClose.emit(event);
785
802
  ensureTooarkComponentsRegistered();
786
803
  }
787
- ngAfterViewInit() {
788
- const el = this.paletteRef?.nativeElement;
789
- el?.addEventListener("ark-select", this.selectHandler);
790
- el?.addEventListener("ark-query", this.queryHandler);
791
- el?.addEventListener("ark-open", this.openHandler);
792
- el?.addEventListener("ark-close", this.closeHandler);
793
- }
794
- ngOnDestroy() {
795
- const el = this.paletteRef?.nativeElement;
796
- el?.removeEventListener("ark-select", this.selectHandler);
797
- el?.removeEventListener("ark-query", this.queryHandler);
798
- el?.removeEventListener("ark-open", this.openHandler);
799
- el?.removeEventListener("ark-close", this.closeHandler);
800
- }
801
804
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
802
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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" }, viewQueries: [{ propertyName: "paletteRef", first: true, predicate: ["palette"], descendants: true }], ngImport: i0, template: `
805
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
803
806
  <ark-command-palette
804
- #palette
805
807
  [attr.testid]="testid"
806
808
  [attr.open]="open ? '' : null"
807
809
  [attr.placeholder]="placeholder"
@@ -813,7 +815,11 @@ class ArkCommandPaletteComponent {
813
815
  [attr.theme]="theme"
814
816
  [attr.lang]="lang"
815
817
  [attr.locale-json]="localeJson"
816
- [attr.aria-label]="ariaLabel">
818
+ [attr.aria-label]="ariaLabel"
819
+ (ark-select)="selectHandler($event)"
820
+ (ark-query)="queryHandler($event)"
821
+ (ark-open)="openHandler($event)"
822
+ (ark-close)="closeHandler($event)">
817
823
  <ng-content></ng-content>
818
824
  </ark-command-palette>`, isInline: true }); }
819
825
  }
@@ -825,7 +831,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
825
831
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
826
832
  template: `
827
833
  <ark-command-palette
828
- #palette
829
834
  [attr.testid]="testid"
830
835
  [attr.open]="open ? '' : null"
831
836
  [attr.placeholder]="placeholder"
@@ -837,7 +842,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
837
842
  [attr.theme]="theme"
838
843
  [attr.lang]="lang"
839
844
  [attr.locale-json]="localeJson"
840
- [attr.aria-label]="ariaLabel">
845
+ [attr.aria-label]="ariaLabel"
846
+ (ark-select)="selectHandler($event)"
847
+ (ark-query)="queryHandler($event)"
848
+ (ark-open)="openHandler($event)"
849
+ (ark-close)="closeHandler($event)">
841
850
  <ng-content></ng-content>
842
851
  </ark-command-palette>`
843
852
  }]
@@ -873,9 +882,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
873
882
  type: Output
874
883
  }], arkClose: [{
875
884
  type: Output
876
- }], paletteRef: [{
877
- type: ViewChild,
878
- args: ["palette", { static: false }]
879
885
  }] } });
880
886
  class ArkCommandItemComponent {
881
887
  constructor() {
@@ -884,7 +890,7 @@ class ArkCommandItemComponent {
884
890
  ensureTooarkComponentsRegistered();
885
891
  }
886
892
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkCommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
887
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkCommandItemComponent, isStandalone: true, selector: "ark-command-item-wrapper", inputs: { testid: "testid", value: "value", group: "group", label: "label", disabled: "disabled" }, ngImport: i0, template: `
893
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkCommandItemComponent, isStandalone: true, selector: "ark-command-item-wrapper", inputs: { testid: "testid", value: "value", group: "group", label: "label", disabled: "disabled" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
888
894
  <ark-command-item
889
895
  [attr.testid]="testid"
890
896
  [attr.value]="value"
@@ -900,6 +906,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
900
906
  selector: "ark-command-item-wrapper",
901
907
  standalone: true,
902
908
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
909
+ // Sem caixa própria: o item entra no layout da paleta, que o ordena por grupo com `order`.
910
+ host: { style: "display: contents" },
903
911
  template: `
904
912
  <ark-command-item
905
913
  [attr.testid]="testid"
@@ -925,7 +933,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
925
933
  class ArkCopyButtonComponent {
926
934
  constructor() {
927
935
  this.variant = "primary";
928
- this.intent = "primary";
929
936
  this.theme = "auto";
930
937
  this.size = "md";
931
938
  this.rounded = "md";
@@ -944,10 +951,11 @@ class ArkCopyButtonComponent {
944
951
  this.buttonRef?.nativeElement?.removeEventListener("ark-copy", this.copyHandler);
945
952
  }
946
953
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
947
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkCopyButtonComponent, isStandalone: true, selector: "ark-copy-button-wrapper", inputs: { testid: "testid", value: "value", for: "for", feedbackMs: "feedbackMs", variant: "variant", intent: "intent", theme: "theme", size: "size", rounded: "rounded", disabled: "disabled", loading: "loading", iconOnly: "iconOnly", fullWidth: "fullWidth", color: "color", textColor: "textColor", lang: "lang", localeJson: "localeJson" }, outputs: { arkCopy: "arkCopy" }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true }], ngImport: i0, template: `
954
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkCopyButtonComponent, isStandalone: true, selector: "ark-copy-button-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", value: "value", for: "for", feedbackMs: "feedbackMs", variant: "variant", intent: "intent", theme: "theme", size: "size", rounded: "rounded", disabled: "disabled", loading: "loading", iconOnly: "iconOnly", fullWidth: "fullWidth", color: "color", textColor: "textColor", lang: "lang", localeJson: "localeJson" }, outputs: { arkCopy: "arkCopy" }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true }], ngImport: i0, template: `
948
955
  <ark-copy-button
949
956
  #button
950
957
  [attr.testid]="testid"
958
+ [attr.aria-label]="ariaLabel"
951
959
  [attr.value]="value"
952
960
  [attr.for]="for"
953
961
  [attr.feedback-ms]="feedbackMs"
@@ -977,6 +985,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
977
985
  <ark-copy-button
978
986
  #button
979
987
  [attr.testid]="testid"
988
+ [attr.aria-label]="ariaLabel"
980
989
  [attr.value]="value"
981
990
  [attr.for]="for"
982
991
  [attr.feedback-ms]="feedbackMs"
@@ -998,6 +1007,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
998
1007
  }]
999
1008
  }], ctorParameters: () => [], propDecorators: { testid: [{
1000
1009
  type: Input
1010
+ }], ariaLabel: [{
1011
+ type: Input
1001
1012
  }], value: [{
1002
1013
  type: Input
1003
1014
  }], for: [{
@@ -1182,22 +1193,15 @@ class ArkDialogComponent {
1182
1193
  this.arkOpen = new EventEmitter();
1183
1194
  /** O fechamento começou; detail.reason diz por que (escape, backdrop, close-button, api). */
1184
1195
  this.arkClose = new EventEmitter();
1196
+ // Ligados no template, e não no ngAfterViewInit: o listener existe desde a criação da view, então o ark-open de um
1197
+ // overlay que já nasce aberto (o elemento o emite num microtask) não se perde, nem na hidratação de SSR.
1185
1198
  this.openHandler = (event) => this.arkOpen.emit(event);
1186
1199
  this.closeHandler = (event) => this.arkClose.emit(event);
1187
1200
  ensureTooarkComponentsRegistered();
1188
1201
  }
1189
- ngAfterViewInit() {
1190
- this.dialogRef?.nativeElement?.addEventListener("ark-open", this.openHandler);
1191
- this.dialogRef?.nativeElement?.addEventListener("ark-close", this.closeHandler);
1192
- }
1193
- ngOnDestroy() {
1194
- this.dialogRef?.nativeElement?.removeEventListener("ark-open", this.openHandler);
1195
- this.dialogRef?.nativeElement?.removeEventListener("ark-close", this.closeHandler);
1196
- }
1197
1202
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1198
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkDialogComponent, isStandalone: true, selector: "ark-dialog-wrapper", inputs: { testid: "testid", open: "open", label: "label", noCloseButton: "noCloseButton", persistent: "persistent", noScrollLock: "noScrollLock", size: "size", width: "width", height: "height", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, viewQueries: [{ propertyName: "dialogRef", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: `
1203
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkDialogComponent, isStandalone: true, selector: "ark-dialog-wrapper", inputs: { testid: "testid", open: "open", label: "label", noCloseButton: "noCloseButton", persistent: "persistent", noScrollLock: "noScrollLock", size: "size", width: "width", height: "height", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
1199
1204
  <ark-dialog
1200
- #dialog
1201
1205
  [attr.testid]="testid"
1202
1206
  [attr.open]="open ? '' : null"
1203
1207
  [attr.label]="label"
@@ -1210,7 +1214,9 @@ class ArkDialogComponent {
1210
1214
  [attr.theme]="theme"
1211
1215
  [attr.lang]="lang"
1212
1216
  [attr.locale-json]="localeJson"
1213
- [attr.aria-label]="ariaLabel">
1217
+ [attr.aria-label]="ariaLabel"
1218
+ (ark-open)="openHandler($event)"
1219
+ (ark-close)="closeHandler($event)">
1214
1220
  <ng-content></ng-content>
1215
1221
  </ark-dialog>`, isInline: true }); }
1216
1222
  }
@@ -1222,7 +1228,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1222
1228
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
1223
1229
  template: `
1224
1230
  <ark-dialog
1225
- #dialog
1226
1231
  [attr.testid]="testid"
1227
1232
  [attr.open]="open ? '' : null"
1228
1233
  [attr.label]="label"
@@ -1235,7 +1240,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1235
1240
  [attr.theme]="theme"
1236
1241
  [attr.lang]="lang"
1237
1242
  [attr.locale-json]="localeJson"
1238
- [attr.aria-label]="ariaLabel">
1243
+ [attr.aria-label]="ariaLabel"
1244
+ (ark-open)="openHandler($event)"
1245
+ (ark-close)="closeHandler($event)">
1239
1246
  <ng-content></ng-content>
1240
1247
  </ark-dialog>`
1241
1248
  }]
@@ -1269,9 +1276,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1269
1276
  type: Output
1270
1277
  }], arkClose: [{
1271
1278
  type: Output
1272
- }], dialogRef: [{
1273
- type: ViewChild,
1274
- args: ["dialog", { static: false }]
1275
1279
  }] } });
1276
1280
 
1277
1281
  class ArkDrawerComponent {
@@ -1292,22 +1296,15 @@ class ArkDrawerComponent {
1292
1296
  this.arkOpen = new EventEmitter();
1293
1297
  /** O fechamento começou; detail.reason diz por quê (escape, backdrop, close-button, api). */
1294
1298
  this.arkClose = new EventEmitter();
1299
+ // Ligados no template, e não no ngAfterViewInit: o listener existe desde a criação da view, então o ark-open de um
1300
+ // overlay que já nasce aberto (o elemento o emite num microtask) não se perde, nem na hidratação de SSR.
1295
1301
  this.openHandler = (event) => this.arkOpen.emit(event);
1296
1302
  this.closeHandler = (event) => this.arkClose.emit(event);
1297
1303
  ensureTooarkComponentsRegistered();
1298
1304
  }
1299
- ngAfterViewInit() {
1300
- this.drawerRef?.nativeElement?.addEventListener("ark-open", this.openHandler);
1301
- this.drawerRef?.nativeElement?.addEventListener("ark-close", this.closeHandler);
1302
- }
1303
- ngOnDestroy() {
1304
- this.drawerRef?.nativeElement?.removeEventListener("ark-open", this.openHandler);
1305
- this.drawerRef?.nativeElement?.removeEventListener("ark-close", this.closeHandler);
1306
- }
1307
1305
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1308
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkDrawerComponent, isStandalone: true, selector: "ark-drawer-wrapper", inputs: { testid: "testid", open: "open", side: "side", mode: "mode", size: "size", label: "label", noCloseButton: "noCloseButton", persistent: "persistent", noScrollLock: "noScrollLock", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, viewQueries: [{ propertyName: "drawerRef", first: true, predicate: ["drawer"], descendants: true }], ngImport: i0, template: `
1306
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkDrawerComponent, isStandalone: true, selector: "ark-drawer-wrapper", inputs: { testid: "testid", open: "open", side: "side", mode: "mode", size: "size", label: "label", noCloseButton: "noCloseButton", persistent: "persistent", noScrollLock: "noScrollLock", theme: "theme", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
1309
1307
  <ark-drawer
1310
- #drawer
1311
1308
  [attr.testid]="testid"
1312
1309
  [attr.open]="open ? '' : null"
1313
1310
  [attr.side]="side"
@@ -1320,7 +1317,9 @@ class ArkDrawerComponent {
1320
1317
  [attr.theme]="theme"
1321
1318
  [attr.lang]="lang"
1322
1319
  [attr.locale-json]="localeJson"
1323
- [attr.aria-label]="ariaLabel">
1320
+ [attr.aria-label]="ariaLabel"
1321
+ (ark-open)="openHandler($event)"
1322
+ (ark-close)="closeHandler($event)">
1324
1323
  <ng-content></ng-content>
1325
1324
  </ark-drawer>`, isInline: true }); }
1326
1325
  }
@@ -1332,7 +1331,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1332
1331
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
1333
1332
  template: `
1334
1333
  <ark-drawer
1335
- #drawer
1336
1334
  [attr.testid]="testid"
1337
1335
  [attr.open]="open ? '' : null"
1338
1336
  [attr.side]="side"
@@ -1345,7 +1343,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1345
1343
  [attr.theme]="theme"
1346
1344
  [attr.lang]="lang"
1347
1345
  [attr.locale-json]="localeJson"
1348
- [attr.aria-label]="ariaLabel">
1346
+ [attr.aria-label]="ariaLabel"
1347
+ (ark-open)="openHandler($event)"
1348
+ (ark-close)="closeHandler($event)">
1349
1349
  <ng-content></ng-content>
1350
1350
  </ark-drawer>`
1351
1351
  }]
@@ -1379,9 +1379,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1379
1379
  type: Output
1380
1380
  }], arkClose: [{
1381
1381
  type: Output
1382
- }], drawerRef: [{
1383
- type: ViewChild,
1384
- args: ["drawer", { static: false }]
1385
1382
  }] } });
1386
1383
 
1387
1384
  class ArkEmptyComponent {
@@ -1428,6 +1425,8 @@ class ArkFileInputComponent {
1428
1425
  constructor() {
1429
1426
  /** Aceita vários arquivos; sem ele o drop fica com o primeiro. */
1430
1427
  this.multiple = false;
1428
+ /** Estado de erro sem mensagem (borda danger e aria-invalid). */
1429
+ this.error = false;
1431
1430
  this.disabled = false;
1432
1431
  this.required = false;
1433
1432
  this.intent = "primary";
@@ -1441,7 +1440,7 @@ class ArkFileInputComponent {
1441
1440
  this.changed.emit(event);
1442
1441
  }
1443
1442
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1444
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkFileInputComponent, isStandalone: true, selector: "ark-file-input-wrapper", inputs: { testid: "testid", accept: "accept", multiple: "multiple", label: "label", helper: "helper", errorMessage: "errorMessage", disabled: "disabled", required: "required", name: "name", intent: "intent", size: "size", rounded: "rounded", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
1443
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
1445
1444
  <ark-file-input
1446
1445
  [attr.testid]="testid"
1447
1446
  [attr.accept]="accept"
@@ -1449,6 +1448,7 @@ class ArkFileInputComponent {
1449
1448
  [attr.label]="label"
1450
1449
  [attr.helper]="helper"
1451
1450
  [attr.error-message]="errorMessage"
1451
+ [attr.error]="error ? '' : null"
1452
1452
  [attr.disabled]="disabled ? '' : null"
1453
1453
  [attr.required]="required ? '' : null"
1454
1454
  [attr.name]="name"
@@ -1475,6 +1475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1475
1475
  [attr.label]="label"
1476
1476
  [attr.helper]="helper"
1477
1477
  [attr.error-message]="errorMessage"
1478
+ [attr.error]="error ? '' : null"
1478
1479
  [attr.disabled]="disabled ? '' : null"
1479
1480
  [attr.required]="required ? '' : null"
1480
1481
  [attr.name]="name"
@@ -1499,6 +1500,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1499
1500
  type: Input
1500
1501
  }], errorMessage: [{
1501
1502
  type: Input
1503
+ }], error: [{
1504
+ type: Input
1502
1505
  }], disabled: [{
1503
1506
  type: Input
1504
1507
  }], required: [{
@@ -1743,8 +1746,10 @@ class ArkKvEditorComponent {
1743
1746
  this.editorRef?.nativeElement?.addEventListener("ark-add", this.addHandler);
1744
1747
  this.editorRef?.nativeElement?.addEventListener("ark-delete", this.deleteHandler);
1745
1748
  }
1746
- ngOnChanges() {
1747
- this.syncRows();
1749
+ ngOnChanges(changes) {
1750
+ // Só um `rows` novo substitui o modelo: bulk, readonly ou theme mudando não podem apagar o que o usuário editou.
1751
+ if (changes.rows)
1752
+ this.syncRows();
1748
1753
  }
1749
1754
  ngOnDestroy() {
1750
1755
  this.editorRef?.nativeElement?.removeEventListener("ark-add", this.addHandler);
@@ -1908,27 +1913,16 @@ class ArkMenuComponent {
1908
1913
  this.arkSelect = new EventEmitter();
1909
1914
  this.arkOpen = new EventEmitter();
1910
1915
  this.arkClose = new EventEmitter();
1916
+ // Ligados no template, e não no ngAfterViewInit: o listener existe desde a criação da view, então o ark-open de um
1917
+ // overlay que já nasce aberto (o elemento o emite num microtask) não se perde, nem na hidratação de SSR.
1911
1918
  this.selectHandler = (event) => this.arkSelect.emit(event);
1912
1919
  this.openHandler = (event) => this.arkOpen.emit(event);
1913
1920
  this.closeHandler = (event) => this.arkClose.emit(event);
1914
1921
  ensureTooarkComponentsRegistered();
1915
1922
  }
1916
- ngAfterViewInit() {
1917
- const el = this.menuRef?.nativeElement;
1918
- el?.addEventListener("ark-select", this.selectHandler);
1919
- el?.addEventListener("ark-open", this.openHandler);
1920
- el?.addEventListener("ark-close", this.closeHandler);
1921
- }
1922
- ngOnDestroy() {
1923
- const el = this.menuRef?.nativeElement;
1924
- el?.removeEventListener("ark-select", this.selectHandler);
1925
- el?.removeEventListener("ark-open", this.openHandler);
1926
- el?.removeEventListener("ark-close", this.closeHandler);
1927
- }
1928
1923
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1929
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkMenuComponent, isStandalone: true, selector: "ark-menu-wrapper", inputs: { testid: "testid", for: "for", open: "open", align: "align", direction: "direction", size: "size", theme: "theme", ariaLabel: "ariaLabel" }, outputs: { arkSelect: "arkSelect", arkOpen: "arkOpen", arkClose: "arkClose" }, viewQueries: [{ propertyName: "menuRef", first: true, predicate: ["menu"], descendants: true }], ngImport: i0, template: `
1924
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkMenuComponent, isStandalone: true, selector: "ark-menu-wrapper", inputs: { testid: "testid", for: "for", open: "open", align: "align", direction: "direction", size: "size", theme: "theme", ariaLabel: "ariaLabel" }, outputs: { arkSelect: "arkSelect", arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
1930
1925
  <ark-menu
1931
- #menu
1932
1926
  [attr.testid]="testid"
1933
1927
  [attr.for]="for"
1934
1928
  [attr.open]="open ? '' : null"
@@ -1936,7 +1930,10 @@ class ArkMenuComponent {
1936
1930
  [attr.direction]="direction"
1937
1931
  [attr.size]="size"
1938
1932
  [attr.theme]="theme"
1939
- [attr.aria-label]="ariaLabel">
1933
+ [attr.aria-label]="ariaLabel"
1934
+ (ark-select)="selectHandler($event)"
1935
+ (ark-open)="openHandler($event)"
1936
+ (ark-close)="closeHandler($event)">
1940
1937
  <ng-content></ng-content>
1941
1938
  </ark-menu>`, isInline: true }); }
1942
1939
  }
@@ -1948,7 +1945,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1948
1945
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
1949
1946
  template: `
1950
1947
  <ark-menu
1951
- #menu
1952
1948
  [attr.testid]="testid"
1953
1949
  [attr.for]="for"
1954
1950
  [attr.open]="open ? '' : null"
@@ -1956,7 +1952,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1956
1952
  [attr.direction]="direction"
1957
1953
  [attr.size]="size"
1958
1954
  [attr.theme]="theme"
1959
- [attr.aria-label]="ariaLabel">
1955
+ [attr.aria-label]="ariaLabel"
1956
+ (ark-select)="selectHandler($event)"
1957
+ (ark-open)="openHandler($event)"
1958
+ (ark-close)="closeHandler($event)">
1960
1959
  <ng-content></ng-content>
1961
1960
  </ark-menu>`
1962
1961
  }]
@@ -1982,9 +1981,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
1982
1981
  type: Output
1983
1982
  }], arkClose: [{
1984
1983
  type: Output
1985
- }], menuRef: [{
1986
- type: ViewChild,
1987
- args: ["menu", { static: false }]
1988
1984
  }] } });
1989
1985
  class ArkMenuItemComponent {
1990
1986
  constructor() {
@@ -2126,9 +2122,10 @@ class ArkRadioComponent {
2126
2122
  this.changed.emit(event);
2127
2123
  }
2128
2124
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkRadioComponent, isStandalone: true, selector: "ark-radio-wrapper", inputs: { testid: "testid", checked: "checked", disabled: "disabled", intent: "intent", theme: "theme", size: "size", name: "name", value: "value", label: "label" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2125
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
2130
2126
  <ark-radio
2131
2127
  [attr.testid]="testid"
2128
+ [attr.aria-label]="ariaLabel"
2132
2129
  [attr.checked]="checked ? '' : null"
2133
2130
  [attr.disabled]="disabled ? '' : null"
2134
2131
  [attr.intent]="intent"
@@ -2150,6 +2147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2150
2147
  template: `
2151
2148
  <ark-radio
2152
2149
  [attr.testid]="testid"
2150
+ [attr.aria-label]="ariaLabel"
2153
2151
  [attr.checked]="checked ? '' : null"
2154
2152
  [attr.disabled]="disabled ? '' : null"
2155
2153
  [attr.intent]="intent"
@@ -2164,6 +2162,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2164
2162
  }]
2165
2163
  }], ctorParameters: () => [], propDecorators: { testid: [{
2166
2164
  type: Input
2165
+ }], ariaLabel: [{
2166
+ type: Input
2167
2167
  }], checked: [{
2168
2168
  type: Input
2169
2169
  }], disabled: [{
@@ -2222,7 +2222,7 @@ class ArkSchedulerComponent {
2222
2222
  el.removeEventListener("ark-range-change", this.rangeChangeHandler);
2223
2223
  }
2224
2224
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2225
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSchedulerComponent, isStandalone: true, selector: "ark-scheduler-wrapper", inputs: { testid: "testid", view: "view", date: "date", events: "events", lang: "lang", theme: "theme", intent: "intent", views: "views", hourStart: "hourStart", hourEnd: "hourEnd", slotMinutes: "slotMinutes", hoursFormat: "hoursFormat" }, outputs: { arkEventClick: "arkEventClick", arkSlotClick: "arkSlotClick", arkViewChange: "arkViewChange", arkRangeChange: "arkRangeChange" }, viewQueries: [{ propertyName: "schedulerRef", first: true, predicate: ["scheduler"], descendants: true }], ngImport: i0, template: `
2225
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSchedulerComponent, isStandalone: true, selector: "ark-scheduler-wrapper", inputs: { testid: "testid", view: "view", date: "date", events: "events", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", views: "views", hourStart: "hourStart", hourEnd: "hourEnd", slotMinutes: "slotMinutes", hoursFormat: "hoursFormat" }, outputs: { arkEventClick: "arkEventClick", arkSlotClick: "arkSlotClick", arkViewChange: "arkViewChange", arkRangeChange: "arkRangeChange" }, viewQueries: [{ propertyName: "schedulerRef", first: true, predicate: ["scheduler"], descendants: true }], ngImport: i0, template: `
2226
2226
  <ark-scheduler
2227
2227
  #scheduler
2228
2228
  [attr.testid]="testid"
@@ -2230,6 +2230,7 @@ class ArkSchedulerComponent {
2230
2230
  [attr.date]="date"
2231
2231
  [attr.events]="eventsStr"
2232
2232
  [attr.lang]="lang"
2233
+ [attr.locale-json]="localeJson"
2233
2234
  [attr.theme]="theme"
2234
2235
  [attr.intent]="intent"
2235
2236
  [attr.views]="views"
@@ -2253,6 +2254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2253
2254
  [attr.date]="date"
2254
2255
  [attr.events]="eventsStr"
2255
2256
  [attr.lang]="lang"
2257
+ [attr.locale-json]="localeJson"
2256
2258
  [attr.theme]="theme"
2257
2259
  [attr.intent]="intent"
2258
2260
  [attr.views]="views"
@@ -2272,6 +2274,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2272
2274
  type: Input
2273
2275
  }], lang: [{
2274
2276
  type: Input
2277
+ }], localeJson: [{
2278
+ type: Input
2275
2279
  }], theme: [{
2276
2280
  type: Input
2277
2281
  }], intent: [{
@@ -2318,9 +2322,10 @@ class ArkSelectComponent {
2318
2322
  this.changed.emit(event);
2319
2323
  }
2320
2324
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2321
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSelectComponent, isStandalone: true, selector: "ark-select-wrapper", inputs: { testid: "testid", label: "label", placeholder: "placeholder", options: "options", value: "value", name: "name", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2325
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSelectComponent, isStandalone: true, selector: "ark-select-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", label: "label", placeholder: "placeholder", options: "options", value: "value", name: "name", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2322
2326
  <ark-select
2323
2327
  [attr.testid]="testid"
2328
+ [attr.aria-label]="ariaLabel"
2324
2329
  [attr.label]="label"
2325
2330
  [attr.placeholder]="placeholder"
2326
2331
  [attr.options]="optionsStr"
@@ -2348,6 +2353,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2348
2353
  template: `
2349
2354
  <ark-select
2350
2355
  [attr.testid]="testid"
2356
+ [attr.aria-label]="ariaLabel"
2351
2357
  [attr.label]="label"
2352
2358
  [attr.placeholder]="placeholder"
2353
2359
  [attr.options]="optionsStr"
@@ -2368,6 +2374,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2368
2374
  }]
2369
2375
  }], ctorParameters: () => [], propDecorators: { testid: [{
2370
2376
  type: Input
2377
+ }], ariaLabel: [{
2378
+ type: Input
2371
2379
  }], label: [{
2372
2380
  type: Input
2373
2381
  }], placeholder: [{
@@ -2413,9 +2421,10 @@ class ArkShapePickerComponent {
2413
2421
  this.changed.emit(event);
2414
2422
  }
2415
2423
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkShapePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2416
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkShapePickerComponent, isStandalone: true, selector: "ark-shape-picker-wrapper", inputs: { testid: "testid", value: "value", color: "color", label: "label", disabled: "disabled", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2424
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkShapePickerComponent, isStandalone: true, selector: "ark-shape-picker-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", value: "value", color: "color", label: "label", disabled: "disabled", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2417
2425
  <ark-shape-picker
2418
2426
  [attr.testid]="testid"
2427
+ [attr.aria-label]="ariaLabel"
2419
2428
  [attr.value]="value"
2420
2429
  [attr.color]="color"
2421
2430
  [attr.label]="label"
@@ -2436,6 +2445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2436
2445
  template: `
2437
2446
  <ark-shape-picker
2438
2447
  [attr.testid]="testid"
2448
+ [attr.aria-label]="ariaLabel"
2439
2449
  [attr.value]="value"
2440
2450
  [attr.color]="color"
2441
2451
  [attr.label]="label"
@@ -2449,6 +2459,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2449
2459
  }]
2450
2460
  }], ctorParameters: () => [], propDecorators: { testid: [{
2451
2461
  type: Input
2462
+ }], ariaLabel: [{
2463
+ type: Input
2452
2464
  }], value: [{
2453
2465
  type: Input
2454
2466
  }], color: [{
@@ -2704,9 +2716,10 @@ class ArkSwitchComponent {
2704
2716
  this.changed.emit(event);
2705
2717
  }
2706
2718
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2707
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSwitchComponent, isStandalone: true, selector: "ark-switch-wrapper", inputs: { testid: "testid", checked: "checked", disabled: "disabled", labels: "labels", icons: "icons", intent: "intent", theme: "theme", size: "size", color: "color", name: "name", value: "value", label: "label", labelOn: "labelOn", labelOff: "labelOff" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2719
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkSwitchComponent, isStandalone: true, selector: "ark-switch-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", checked: "checked", disabled: "disabled", labels: "labels", icons: "icons", intent: "intent", theme: "theme", size: "size", color: "color", name: "name", value: "value", label: "label", labelOn: "labelOn", labelOff: "labelOff" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2708
2720
  <ark-switch
2709
2721
  [attr.testid]="testid"
2722
+ [attr.aria-label]="ariaLabel"
2710
2723
  [attr.checked]="checked ? '' : null"
2711
2724
  [attr.disabled]="disabled ? '' : null"
2712
2725
  [attr.labels]="labels ? '' : null"
@@ -2732,6 +2745,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2732
2745
  template: `
2733
2746
  <ark-switch
2734
2747
  [attr.testid]="testid"
2748
+ [attr.aria-label]="ariaLabel"
2735
2749
  [attr.checked]="checked ? '' : null"
2736
2750
  [attr.disabled]="disabled ? '' : null"
2737
2751
  [attr.labels]="labels ? '' : null"
@@ -2750,6 +2764,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
2750
2764
  }]
2751
2765
  }], ctorParameters: () => [], propDecorators: { testid: [{
2752
2766
  type: Input
2767
+ }], ariaLabel: [{
2768
+ type: Input
2753
2769
  }], checked: [{
2754
2770
  type: Input
2755
2771
  }], disabled: [{
@@ -2949,7 +2965,7 @@ class ArkTextareaComponent {
2949
2965
  return this.spellcheck === undefined ? null : String(this.spellcheck);
2950
2966
  }
2951
2967
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2952
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkTextareaComponent, isStandalone: true, selector: "ark-textarea-wrapper", inputs: { testid: "testid", label: "label", placeholder: "placeholder", value: "value", name: "name", rows: "rows", autosize: "autosize", monospace: "monospace", resize: "resize", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required", readonly: "readonly", autocomplete: "autocomplete", autofocus: "autofocus", maxlength: "maxlength", minlength: "minlength", spellcheck: "spellcheck", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
2968
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkTextareaComponent, isStandalone: true, selector: "ark-textarea-wrapper", inputs: { testid: "testid", label: "label", placeholder: "placeholder", value: "value", name: "name", rows: "rows", autosize: "autosize", monospace: "monospace", resize: "resize", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required", readonly: "readonly", autocomplete: "autocomplete", autofocus: "autofocus", maxlength: "maxlength", minlength: "minlength", spellcheck: "spellcheck", wrap: "wrap", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
2953
2969
  <ark-textarea
2954
2970
  [attr.testid]="testid"
2955
2971
  [attr.label]="label"
@@ -2975,6 +2991,7 @@ class ArkTextareaComponent {
2975
2991
  [attr.maxlength]="maxlength"
2976
2992
  [attr.minlength]="minlength"
2977
2993
  [attr.spellcheck]="spellcheckAttr"
2994
+ [attr.wrap]="wrap"
2978
2995
  [attr.aria-label]="ariaLabel">
2979
2996
  <ng-content></ng-content>
2980
2997
  </ark-textarea>`, isInline: true }); }
@@ -3011,6 +3028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3011
3028
  [attr.maxlength]="maxlength"
3012
3029
  [attr.minlength]="minlength"
3013
3030
  [attr.spellcheck]="spellcheckAttr"
3031
+ [attr.wrap]="wrap"
3014
3032
  [attr.aria-label]="ariaLabel">
3015
3033
  <ng-content></ng-content>
3016
3034
  </ark-textarea>`
@@ -3063,6 +3081,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3063
3081
  type: Input
3064
3082
  }], spellcheck: [{
3065
3083
  type: Input
3084
+ }], wrap: [{
3085
+ type: Input
3066
3086
  }], ariaLabel: [{
3067
3087
  type: Input
3068
3088
  }] } });
@@ -3075,10 +3095,15 @@ class ArkToasterComponent {
3075
3095
  this.closeButton = true;
3076
3096
  this.maxVisible = 4;
3077
3097
  this.duration = 4000;
3098
+ /** Botão de ação de um toast: detail traz o id do toast e o actionId das opções. */
3099
+ this.arkToastAction = new EventEmitter();
3078
3100
  ensureTooarkComponentsRegistered();
3079
3101
  }
3102
+ onAction(event) {
3103
+ this.arkToastAction.emit(event);
3104
+ }
3080
3105
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3081
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkToasterComponent, isStandalone: true, selector: "ark-toaster-wrapper", inputs: { testid: "testid", theme: "theme", position: "position", richColors: "richColors", closeButton: "closeButton", maxVisible: "maxVisible", duration: "duration" }, ngImport: i0, template: `
3106
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkToasterComponent, isStandalone: true, selector: "ark-toaster-wrapper", inputs: { testid: "testid", theme: "theme", position: "position", richColors: "richColors", closeButton: "closeButton", maxVisible: "maxVisible", duration: "duration", lang: "lang" }, outputs: { arkToastAction: "arkToastAction" }, ngImport: i0, template: `
3082
3107
  <ark-toaster
3083
3108
  [attr.testid]="testid"
3084
3109
  [attr.theme]="theme"
@@ -3086,7 +3111,9 @@ class ArkToasterComponent {
3086
3111
  [attr.max-visible]="maxVisible"
3087
3112
  [attr.duration]="duration"
3088
3113
  [attr.rich-colors]="richColors ? '' : null"
3089
- [attr.close-button]="closeButton ? null : 'false'">
3114
+ [attr.close-button]="closeButton ? null : 'false'"
3115
+ [attr.lang]="lang"
3116
+ (ark-toast-action)="onAction($event)">
3090
3117
  </ark-toaster>`, isInline: true }); }
3091
3118
  }
3092
3119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkToasterComponent, decorators: [{
@@ -3103,7 +3130,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3103
3130
  [attr.max-visible]="maxVisible"
3104
3131
  [attr.duration]="duration"
3105
3132
  [attr.rich-colors]="richColors ? '' : null"
3106
- [attr.close-button]="closeButton ? null : 'false'">
3133
+ [attr.close-button]="closeButton ? null : 'false'"
3134
+ [attr.lang]="lang"
3135
+ (ark-toast-action)="onAction($event)">
3107
3136
  </ark-toaster>`
3108
3137
  }]
3109
3138
  }], ctorParameters: () => [], propDecorators: { testid: [{
@@ -3120,6 +3149,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3120
3149
  type: Input
3121
3150
  }], duration: [{
3122
3151
  type: Input
3152
+ }], lang: [{
3153
+ type: Input
3154
+ }], arkToastAction: [{
3155
+ type: Output
3123
3156
  }] } });
3124
3157
 
3125
3158
  class ArkToggleComponent {
@@ -3136,9 +3169,10 @@ class ArkToggleComponent {
3136
3169
  this.changed.emit(event);
3137
3170
  }
3138
3171
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ArkToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3139
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkToggleComponent, isStandalone: true, selector: "ark-toggle-wrapper", inputs: { testid: "testid", pressed: "pressed", disabled: "disabled", intent: "intent", theme: "theme", size: "size", value: "value" }, outputs: { changed: "changed" }, ngImport: i0, template: `
3172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ArkToggleComponent, isStandalone: true, selector: "ark-toggle-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", pressed: "pressed", disabled: "disabled", intent: "intent", theme: "theme", size: "size", value: "value" }, outputs: { changed: "changed" }, ngImport: i0, template: `
3140
3173
  <ark-toggle
3141
3174
  [attr.testid]="testid"
3175
+ [attr.aria-label]="ariaLabel"
3142
3176
  [attr.pressed]="pressed ? '' : null"
3143
3177
  [attr.disabled]="disabled ? '' : null"
3144
3178
  [attr.intent]="intent"
@@ -3158,6 +3192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3158
3192
  template: `
3159
3193
  <ark-toggle
3160
3194
  [attr.testid]="testid"
3195
+ [attr.aria-label]="ariaLabel"
3161
3196
  [attr.pressed]="pressed ? '' : null"
3162
3197
  [attr.disabled]="disabled ? '' : null"
3163
3198
  [attr.intent]="intent"
@@ -3170,6 +3205,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
3170
3205
  }]
3171
3206
  }], ctorParameters: () => [], propDecorators: { testid: [{
3172
3207
  type: Input
3208
+ }], ariaLabel: [{
3209
+ type: Input
3173
3210
  }], pressed: [{
3174
3211
  type: Input
3175
3212
  }], disabled: [{