@tooark/angular 1.6.1 → 1.8.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.
@@ -1,6 +1,6 @@
1
- export { dismissToast, showToast, toast } from '@tooark/core';
1
+ export { dismissToast, getArkLocale, observeArkLocale, setArkLocale, showToast, toast } from '@tooark/core';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, ElementRef, EventEmitter, ViewChild, Output, Input, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import { inject, ElementRef, EventEmitter, ViewChild, Output, Input, CUSTOM_ELEMENTS_SCHEMA, Component, TemplateRef, Directive, ViewContainerRef, ContentChild, ContentChildren } from '@angular/core';
4
4
  import { registerTooarkComponents } from '@tooark/web-components';
5
5
 
6
6
  let isRegistered = false;
@@ -44,8 +44,8 @@ class ArkAlertComponent {
44
44
  ngOnDestroy() {
45
45
  this.alertRef?.nativeElement?.removeEventListener("ark-dismiss", this.dismissHandler);
46
46
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
48
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkAlertComponent, isStandalone: true, selector: "ark-alert-wrapper", inputs: { testid: "testid", intent: "intent", variant: "variant", heading: "heading", dismissible: "dismissible", live: "live", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkDismiss: "arkDismiss" }, viewQueries: [{ propertyName: "alertRef", first: true, predicate: ["alert"], descendants: true }], ngImport: i0, template: `
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
48
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkAlertComponent, isStandalone: true, selector: "ark-alert-wrapper", inputs: { testid: "testid", intent: "intent", variant: "variant", heading: "heading", dismissible: "dismissible", live: "live", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkDismiss: "arkDismiss" }, viewQueries: [{ propertyName: "alertRef", first: true, predicate: ["alert"], descendants: true }], ngImport: i0, template: `
49
49
  <ark-alert
50
50
  #alert
51
51
  [attr.testid]="testid"
@@ -60,7 +60,7 @@ class ArkAlertComponent {
60
60
  <ng-content></ng-content>
61
61
  </ark-alert>`, isInline: true }); }
62
62
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkAlertComponent, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkAlertComponent, decorators: [{
64
64
  type: Component,
65
65
  args: [{
66
66
  selector: "ark-alert-wrapper",
@@ -119,8 +119,8 @@ class ArkAvatarComponent {
119
119
  get element() {
120
120
  return this.host.nativeElement.querySelector(":scope > ark-avatar");
121
121
  }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
122
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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"
@@ -133,7 +133,7 @@ class ArkAvatarComponent {
133
133
  [attr.theme]="theme">
134
134
  </ark-avatar>`, isInline: true }); }
135
135
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkAvatarComponent, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkAvatarComponent, decorators: [{
137
137
  type: Component,
138
138
  args: [{
139
139
  selector: "ark-avatar-wrapper",
@@ -186,8 +186,8 @@ class ArkBadgeComponent {
186
186
  get element() {
187
187
  return this.host.nativeElement.querySelector(":scope > ark-badge");
188
188
  }
189
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
190
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkBadgeComponent, isStandalone: true, selector: "ark-badge-wrapper", inputs: { testid: "testid", intent: "intent", variant: "variant", size: "size", rounded: "rounded", color: "color", theme: "theme" }, ngImport: i0, template: `
189
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
190
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkBadgeComponent, isStandalone: true, selector: "ark-badge-wrapper", inputs: { testid: "testid", intent: "intent", variant: "variant", size: "size", rounded: "rounded", color: "color", theme: "theme" }, ngImport: i0, template: `
191
191
  <ark-badge
192
192
  [attr.testid]="testid"
193
193
  [attr.intent]="intent"
@@ -199,7 +199,7 @@ class ArkBadgeComponent {
199
199
  <ng-content></ng-content>
200
200
  </ark-badge>`, isInline: true }); }
201
201
  }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkBadgeComponent, decorators: [{
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkBadgeComponent, decorators: [{
203
203
  type: Component,
204
204
  args: [{
205
205
  selector: "ark-badge-wrapper",
@@ -245,18 +245,22 @@ class ArkButtonComponent {
245
245
  this.theme = "auto";
246
246
  this.size = "md";
247
247
  this.rounded = "md";
248
+ /** Clique simples no link (`href`), cancelável: `event.preventDefault()` e o roteamento da SPA. */
249
+ this.arkNavigate = new EventEmitter();
250
+ this.navigateHandler = (event) => this.arkNavigate.emit(event);
248
251
  ensureTooarkComponentsRegistered();
249
252
  }
250
253
  /** O `ark-button` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
251
254
  get element() {
252
255
  return this.host.nativeElement.querySelector(":scope > ark-button");
253
256
  }
254
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
255
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
257
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
258
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkButtonComponent, isStandalone: true, selector: "ark-button-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", type: "type", form: "form", 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", download: "download", color: "color", textColor: "textColor" }, outputs: { arkNavigate: "arkNavigate" }, ngImport: i0, template: `
256
259
  <ark-button
257
260
  [attr.testid]="testid"
258
261
  [attr.aria-label]="ariaLabel"
259
262
  [attr.type]="type"
263
+ [attr.form]="form"
260
264
  [attr.disabled]="disabled ? '' : null"
261
265
  [attr.loading]="loading ? '' : null"
262
266
  [attr.status]="status"
@@ -269,13 +273,15 @@ class ArkButtonComponent {
269
273
  [attr.rounded]="rounded"
270
274
  [attr.href]="href"
271
275
  [attr.target]="target"
276
+ [attr.download]="download === true ? '' : download || null"
272
277
  [attr.color]="color"
273
278
  [attr.text-color]="textColor"
274
- [attr.size]="size">
279
+ [attr.size]="size"
280
+ (ark-navigate)="navigateHandler($event)">
275
281
  <ng-content></ng-content>
276
282
  </ark-button>`, isInline: true }); }
277
283
  }
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkButtonComponent, decorators: [{
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkButtonComponent, decorators: [{
279
285
  type: Component,
280
286
  args: [{
281
287
  selector: "ark-button-wrapper",
@@ -286,6 +292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
286
292
  [attr.testid]="testid"
287
293
  [attr.aria-label]="ariaLabel"
288
294
  [attr.type]="type"
295
+ [attr.form]="form"
289
296
  [attr.disabled]="disabled ? '' : null"
290
297
  [attr.loading]="loading ? '' : null"
291
298
  [attr.status]="status"
@@ -298,9 +305,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
298
305
  [attr.rounded]="rounded"
299
306
  [attr.href]="href"
300
307
  [attr.target]="target"
308
+ [attr.download]="download === true ? '' : download || null"
301
309
  [attr.color]="color"
302
310
  [attr.text-color]="textColor"
303
- [attr.size]="size">
311
+ [attr.size]="size"
312
+ (ark-navigate)="navigateHandler($event)">
304
313
  <ng-content></ng-content>
305
314
  </ark-button>`
306
315
  }]
@@ -310,6 +319,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
310
319
  type: Input
311
320
  }], type: [{
312
321
  type: Input
322
+ }], form: [{
323
+ type: Input
313
324
  }], disabled: [{
314
325
  type: Input
315
326
  }], loading: [{
@@ -336,16 +347,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
336
347
  type: Input
337
348
  }], target: [{
338
349
  type: Input
350
+ }], download: [{
351
+ type: Input
339
352
  }], color: [{
340
353
  type: Input
341
354
  }], textColor: [{
342
355
  type: Input
356
+ }], arkNavigate: [{
357
+ type: Output
343
358
  }] } });
344
359
 
345
360
  class ArkCalendarComponent {
346
361
  constructor() {
347
362
  this.host = inject(ElementRef);
348
- this.lang = "en";
349
363
  this.theme = "auto";
350
364
  this.intent = "primary";
351
365
  this.arkChange = new EventEmitter();
@@ -368,8 +382,8 @@ class ArkCalendarComponent {
368
382
  ngOnDestroy() {
369
383
  this.calendarRef?.nativeElement?.removeEventListener("ark-change", this.handler);
370
384
  }
371
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
372
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkCalendarComponent, isStandalone: true, selector: "ark-calendar-wrapper", inputs: { testid: "testid", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", accentColor: "accentColor", value: "value", min: "min", max: "max", events: "events", eventDisplay: "eventDisplay" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "calendarRef", first: true, predicate: ["calendar"], descendants: true }], ngImport: i0, template: `
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
386
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkCalendarComponent, isStandalone: true, selector: "ark-calendar-wrapper", inputs: { testid: "testid", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", accentColor: "accentColor", value: "value", min: "min", max: "max", events: "events", eventDisplay: "eventDisplay" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "calendarRef", first: true, predicate: ["calendar"], descendants: true }], ngImport: i0, template: `
373
387
  <ark-calendar
374
388
  #calendar
375
389
  [attr.testid]="testid"
@@ -385,7 +399,7 @@ class ArkCalendarComponent {
385
399
  [attr.event-display]="eventDisplay">
386
400
  </ark-calendar>`, isInline: true }); }
387
401
  }
388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCalendarComponent, decorators: [{
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCalendarComponent, decorators: [{
389
403
  type: Component,
390
404
  args: [{
391
405
  selector: "ark-calendar-wrapper",
@@ -440,24 +454,28 @@ class ArkCardComponent {
440
454
  constructor() {
441
455
  this.host = inject(ElementRef);
442
456
  this.theme = "auto";
457
+ /** Ações que não cabem quebram em mais linhas, sem esmagar o título. */
458
+ this.wrapActions = false;
443
459
  ensureTooarkComponentsRegistered();
444
460
  }
445
461
  /** O `ark-card` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
446
462
  get element() {
447
463
  return this.host.nativeElement.querySelector(":scope > ark-card");
448
464
  }
449
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
450
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkCardComponent, isStandalone: true, selector: "ark-card-wrapper", inputs: { testid: "testid", heading: "heading", padding: "padding", rounded: "rounded", theme: "theme" }, ngImport: i0, template: `
465
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
466
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkCardComponent, isStandalone: true, selector: "ark-card-wrapper", inputs: { testid: "testid", heading: "heading", padding: "padding", rounded: "rounded", theme: "theme", headingLevel: "headingLevel", wrapActions: "wrapActions" }, ngImport: i0, template: `
451
467
  <ark-card
452
468
  [attr.testid]="testid"
453
469
  [attr.heading]="heading"
454
470
  [attr.padding]="padding"
455
471
  [attr.rounded]="rounded"
456
- [attr.theme]="theme">
472
+ [attr.theme]="theme"
473
+ [attr.heading-level]="headingLevel"
474
+ [attr.wrap-actions]="wrapActions ? '' : null">
457
475
  <ng-content></ng-content>
458
476
  </ark-card>`, isInline: true }); }
459
477
  }
460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCardComponent, decorators: [{
478
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCardComponent, decorators: [{
461
479
  type: Component,
462
480
  args: [{
463
481
  selector: "ark-card-wrapper",
@@ -469,7 +487,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
469
487
  [attr.heading]="heading"
470
488
  [attr.padding]="padding"
471
489
  [attr.rounded]="rounded"
472
- [attr.theme]="theme">
490
+ [attr.theme]="theme"
491
+ [attr.heading-level]="headingLevel"
492
+ [attr.wrap-actions]="wrapActions ? '' : null">
473
493
  <ng-content></ng-content>
474
494
  </ark-card>`
475
495
  }]
@@ -483,6 +503,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
483
503
  type: Input
484
504
  }], theme: [{
485
505
  type: Input
506
+ }], headingLevel: [{
507
+ type: Input
508
+ }], wrapActions: [{
509
+ type: Input
486
510
  }] } });
487
511
 
488
512
  class ArkCarouselComponent {
@@ -514,8 +538,8 @@ class ArkCarouselComponent {
514
538
  ngOnDestroy() {
515
539
  this.carouselRef?.nativeElement?.removeEventListener("ark-slide-change", this.handler);
516
540
  }
517
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
518
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkCarouselComponent, isStandalone: true, selector: "ark-carousel-wrapper", inputs: { testid: "testid", theme: "theme", intent: "intent", accentColor: "accentColor", slidesPerView: "slidesPerView", gap: "gap", startIndex: "startIndex", loop: "loop", autoplay: "autoplay", autoplayDelay: "autoplayDelay", showDots: "showDots", showArrows: "showArrows", dragFree: "dragFree", snap: "snap" }, outputs: { arkSlideChange: "arkSlideChange" }, viewQueries: [{ propertyName: "carouselRef", first: true, predicate: ["carousel"], descendants: true }], ngImport: i0, template: `
541
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
542
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkCarouselComponent, isStandalone: true, selector: "ark-carousel-wrapper", inputs: { testid: "testid", theme: "theme", intent: "intent", accentColor: "accentColor", slidesPerView: "slidesPerView", gap: "gap", startIndex: "startIndex", loop: "loop", autoplay: "autoplay", autoplayDelay: "autoplayDelay", showDots: "showDots", showArrows: "showArrows", dragFree: "dragFree", snap: "snap" }, outputs: { arkSlideChange: "arkSlideChange" }, viewQueries: [{ propertyName: "carouselRef", first: true, predicate: ["carousel"], descendants: true }], ngImport: i0, template: `
519
543
  <ark-carousel
520
544
  #carousel
521
545
  [attr.testid]="testid"
@@ -535,7 +559,7 @@ class ArkCarouselComponent {
535
559
  <ng-content></ng-content>
536
560
  </ark-carousel>`, isInline: true }); }
537
561
  }
538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCarouselComponent, decorators: [{
562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCarouselComponent, decorators: [{
539
563
  type: Component,
540
564
  args: [{
541
565
  selector: "ark-carousel-wrapper",
@@ -616,8 +640,8 @@ class ArkCheckboxComponent {
616
640
  onChange(event) {
617
641
  this.changed.emit(event);
618
642
  }
619
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
620
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
643
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
644
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
621
645
  <ark-checkbox
622
646
  [attr.testid]="testid"
623
647
  [attr.aria-label]="ariaLabel"
@@ -635,7 +659,7 @@ class ArkCheckboxComponent {
635
659
  <ng-content></ng-content>
636
660
  </ark-checkbox>`, isInline: true }); }
637
661
  }
638
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCheckboxComponent, decorators: [{
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCheckboxComponent, decorators: [{
639
663
  type: Component,
640
664
  args: [{
641
665
  selector: "ark-checkbox-wrapper",
@@ -690,7 +714,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
690
714
  class ArkClockComponent {
691
715
  constructor() {
692
716
  this.host = inject(ElementRef);
693
- this.lang = "en";
694
717
  this.theme = "auto";
695
718
  this.intent = "primary";
696
719
  this.seconds = false;
@@ -709,8 +732,8 @@ class ArkClockComponent {
709
732
  ngOnDestroy() {
710
733
  this.clockRef?.nativeElement?.removeEventListener("ark-change", this.handler);
711
734
  }
712
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkClockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
713
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
735
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkClockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
736
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
714
737
  <ark-clock
715
738
  #clock
716
739
  [attr.testid]="testid"
@@ -724,7 +747,7 @@ class ArkClockComponent {
724
747
  [attr.hours-format]="hoursFormat">
725
748
  </ark-clock>`, isInline: true }); }
726
749
  }
727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkClockComponent, decorators: [{
750
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkClockComponent, decorators: [{
728
751
  type: Component,
729
752
  args: [{
730
753
  selector: "ark-clock-wrapper",
@@ -789,8 +812,8 @@ class ArkColorSwatchesComponent {
789
812
  onChange(event) {
790
813
  this.changed.emit(event);
791
814
  }
792
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkColorSwatchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
793
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
815
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkColorSwatchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
816
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
794
817
  <ark-color-swatches
795
818
  [attr.testid]="testid"
796
819
  [attr.aria-label]="ariaLabel"
@@ -803,7 +826,7 @@ class ArkColorSwatchesComponent {
803
826
  (change)="onChange($event)">
804
827
  </ark-color-swatches>`, isInline: true }); }
805
828
  }
806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkColorSwatchesComponent, decorators: [{
829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkColorSwatchesComponent, decorators: [{
807
830
  type: Component,
808
831
  args: [{
809
832
  selector: "ark-color-swatches-wrapper",
@@ -870,8 +893,8 @@ class ArkCommandPaletteComponent {
870
893
  get element() {
871
894
  return this.host.nativeElement.querySelector(":scope > ark-command-palette");
872
895
  }
873
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
874
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
896
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
897
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
875
898
  <ark-command-palette
876
899
  [attr.testid]="testid"
877
900
  [attr.open]="open ? '' : null"
@@ -894,7 +917,7 @@ class ArkCommandPaletteComponent {
894
917
  <ng-content></ng-content>
895
918
  </ark-command-palette>`, isInline: true }); }
896
919
  }
897
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCommandPaletteComponent, decorators: [{
920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandPaletteComponent, decorators: [{
898
921
  type: Component,
899
922
  args: [{
900
923
  selector: "ark-command-palette-wrapper",
@@ -971,8 +994,8 @@ class ArkCommandItemComponent {
971
994
  get element() {
972
995
  return this.host.nativeElement.querySelector(":scope > ark-command-item");
973
996
  }
974
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
975
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
997
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
998
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
976
999
  <ark-command-item
977
1000
  [attr.testid]="testid"
978
1001
  [attr.value]="value"
@@ -982,7 +1005,7 @@ class ArkCommandItemComponent {
982
1005
  <ng-content></ng-content>
983
1006
  </ark-command-item>`, isInline: true }); }
984
1007
  }
985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCommandItemComponent, decorators: [{
1008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandItemComponent, decorators: [{
986
1009
  type: Component,
987
1010
  args: [{
988
1011
  selector: "ark-command-item-wrapper",
@@ -1037,8 +1060,8 @@ class ArkCopyButtonComponent {
1037
1060
  ngOnDestroy() {
1038
1061
  this.buttonRef?.nativeElement?.removeEventListener("ark-copy", this.copyHandler);
1039
1062
  }
1040
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1041
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
1063
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1064
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
1042
1065
  <ark-copy-button
1043
1066
  #button
1044
1067
  [attr.testid]="testid"
@@ -1062,7 +1085,7 @@ class ArkCopyButtonComponent {
1062
1085
  <ng-content></ng-content>
1063
1086
  </ark-copy-button>`, isInline: true }); }
1064
1087
  }
1065
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkCopyButtonComponent, decorators: [{
1088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCopyButtonComponent, decorators: [{
1066
1089
  type: Component,
1067
1090
  args: [{
1068
1091
  selector: "ark-copy-button-wrapper",
@@ -1135,10 +1158,352 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1135
1158
  args: ["button", { static: false }]
1136
1159
  }] } });
1137
1160
 
1161
+ /**
1162
+ * Conteúdo próprio das células de uma coluna do `ark-data-view-wrapper`, em template do Angular:
1163
+ * `<ng-template arkDataViewCell="name" let-row let-value="value">...</ng-template>`. Vale sobre o `render` da coluna.
1164
+ */
1165
+ class ArkDataViewCellDirective {
1166
+ constructor() {
1167
+ /** `key` da coluna que este template desenha. */
1168
+ this.key = "";
1169
+ this.template = inject(TemplateRef);
1170
+ }
1171
+ static ngTemplateContextGuard(_directive, _context) {
1172
+ return true;
1173
+ }
1174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1175
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.26", type: ArkDataViewCellDirective, isStandalone: true, selector: "ng-template[arkDataViewCell]", inputs: { key: ["arkDataViewCell", "key"] }, ngImport: i0 }); }
1176
+ }
1177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCellDirective, decorators: [{
1178
+ type: Directive,
1179
+ args: [{
1180
+ selector: "ng-template[arkDataViewCell]",
1181
+ standalone: true
1182
+ }]
1183
+ }], propDecorators: { key: [{
1184
+ type: Input,
1185
+ args: ["arkDataViewCell"]
1186
+ }] } });
1187
+ /**
1188
+ * Corpo de cada card do `ark-data-view-wrapper`, em template do Angular, no lugar da grade de campos:
1189
+ * `<ng-template arkDataViewCard let-row let-index="index">...</ng-template>`. Vale sobre o input `cardRender`.
1190
+ */
1191
+ class ArkDataViewCardDirective {
1192
+ constructor() {
1193
+ this.template = inject(TemplateRef);
1194
+ }
1195
+ static ngTemplateContextGuard(_directive, _context) {
1196
+ return true;
1197
+ }
1198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1199
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.26", type: ArkDataViewCardDirective, isStandalone: true, selector: "ng-template[arkDataViewCard]", ngImport: i0 }); }
1200
+ }
1201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCardDirective, decorators: [{
1202
+ type: Directive,
1203
+ args: [{
1204
+ selector: "ng-template[arkDataViewCard]",
1205
+ standalone: true
1206
+ }]
1207
+ }] });
1208
+ class ArkDataViewComponent {
1209
+ constructor() {
1210
+ this.host = inject(ElementRef);
1211
+ this.viewContainer = inject(ViewContainerRef);
1212
+ /** Esconde o seletor de visualização do canto; `view` continua decidindo a apresentação. */
1213
+ this.noViewSelector = false;
1214
+ this.searchable = false;
1215
+ this.selectable = false;
1216
+ this.reorderable = false;
1217
+ this.clickable = false;
1218
+ this.loading = false;
1219
+ this.size = "md";
1220
+ this.theme = "auto";
1221
+ /** Página, itens por página, ordenação ou busca mudaram: detail é a consulta inteira mais `reason`. */
1222
+ this.arkQueryChange = new EventEmitter();
1223
+ /** O usuário trocou a apresentação no seletor. */
1224
+ this.arkViewChange = new EventEmitter();
1225
+ /** Clique, Enter ou Espaço numa linha ou card (com clickable): detail é { row, key, index }. */
1226
+ this.arkRowClick = new EventEmitter();
1227
+ /** A seleção mudou por ação do usuário: detail é { selected, rows }. */
1228
+ this.arkSelectionChange = new EventEmitter();
1229
+ /** Um registro foi movido: detail é { key, from, to, rows }. Persistir é do app. */
1230
+ this.arkReorder = new EventEmitter();
1231
+ /** Views dos templates, pelo nó que o elemento recebeu no lugar do conteúdo da célula (ou do corpo do card). */
1232
+ this.embedded = new Map();
1233
+ this.handlers = [
1234
+ // A cada redesenho do conteúdo o elemento troca os nós de célula: as views dos que saíram do DOM são destruídas.
1235
+ ["ark-render", () => this.pruneViews()],
1236
+ ["ark-query-change", (event) => this.arkQueryChange.emit(event)],
1237
+ ["ark-view-change", (event) => this.arkViewChange.emit(event)],
1238
+ ["ark-row-click", (event) => this.arkRowClick.emit(event)],
1239
+ [
1240
+ "ark-selection-change",
1241
+ (event) => this.arkSelectionChange.emit(event)
1242
+ ],
1243
+ ["ark-reorder", (event) => this.arkReorder.emit(event)]
1244
+ ];
1245
+ ensureTooarkComponentsRegistered();
1246
+ }
1247
+ /** O `ark-data-view` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
1248
+ get element() {
1249
+ return this.host.nativeElement.querySelector(":scope > ark-data-view");
1250
+ }
1251
+ get pageSizesAttr() {
1252
+ return this.pageSizes && this.pageSizes.length > 0 ? this.pageSizes.join(",") : null;
1253
+ }
1254
+ get sortAttr() {
1255
+ const sort = this.sort;
1256
+ return sort && typeof sort === "object" ? `${sort.key}:${sort.direction}` : sort || null;
1257
+ }
1258
+ ngAfterContentInit() {
1259
+ // Um template de célula que entra ou sai depois (um @if em volta dele) muda o que o elemento desenha.
1260
+ this.templatesSubscription = this.cellTemplates?.changes.subscribe(() => this.syncColumns());
1261
+ }
1262
+ ngAfterContentChecked() {
1263
+ // O template de card é um só (ContentChild, sem `changes`): conferido a cada checagem do conteúdo.
1264
+ if (this.viewRef && this.cardTemplate?.template !== this.appliedCard)
1265
+ this.syncCardRender();
1266
+ }
1267
+ ngAfterViewInit() {
1268
+ for (const [name, handler] of this.handlers)
1269
+ this.viewRef?.nativeElement?.addEventListener(name, handler);
1270
+ this.syncColumns();
1271
+ this.syncRows();
1272
+ this.syncSelected();
1273
+ this.syncCardRender();
1274
+ }
1275
+ ngOnChanges(changes) {
1276
+ // Só o que mudou é regravado: `rows` novo não pode ser efeito colateral de outro input mudando.
1277
+ if (changes.columns)
1278
+ this.syncColumns();
1279
+ if (changes.rows)
1280
+ this.syncRows();
1281
+ if (changes.selected)
1282
+ this.syncSelected();
1283
+ if (changes.cardRender)
1284
+ this.syncCardRender();
1285
+ }
1286
+ ngOnDestroy() {
1287
+ this.templatesSubscription?.unsubscribe();
1288
+ for (const [name, handler] of this.handlers)
1289
+ this.viewRef?.nativeElement?.removeEventListener(name, handler);
1290
+ for (const view of this.embedded.values())
1291
+ view.destroy();
1292
+ this.embedded.clear();
1293
+ }
1294
+ // Instância um template para uma célula: a view fica no contêiner do wrapper (entra na detecção de mudanças do
1295
+ // componente que declarou o template) e os nós dela vão para o nó que o elemento põe na célula.
1296
+ createView(template, context) {
1297
+ const view = this.viewContainer.createEmbeddedView(template, context);
1298
+ view.detectChanges();
1299
+ const node = document.createElement("span");
1300
+ node.style.display = "contents";
1301
+ for (const root of view.rootNodes)
1302
+ node.appendChild(root);
1303
+ this.embedded.set(node, view);
1304
+ return node;
1305
+ }
1306
+ pruneViews() {
1307
+ for (const [node, view] of Array.from(this.embedded)) {
1308
+ if (node.isConnected)
1309
+ continue;
1310
+ view.destroy();
1311
+ this.embedded.delete(node);
1312
+ }
1313
+ }
1314
+ // Colunas com um template `arkDataViewCell` de mesma `key` ganham um `render` que instancia o template; as demais
1315
+ // vão como vieram (o `render` delas devolve nó ou texto, como no elemento).
1316
+ syncColumns() {
1317
+ const el = this.viewRef?.nativeElement;
1318
+ if (!el || !this.columns)
1319
+ return;
1320
+ const templates = new Map((this.cellTemplates?.toArray() ?? []).map((cell) => [cell.key, cell.template]));
1321
+ el.columns = this.columns.map((column) => {
1322
+ const template = templates.get(column.key);
1323
+ if (!template)
1324
+ return column;
1325
+ return {
1326
+ ...column,
1327
+ render: (context) => this.createView(template, { $implicit: context.row, ...context })
1328
+ };
1329
+ });
1330
+ }
1331
+ syncRows() {
1332
+ const el = this.viewRef?.nativeElement;
1333
+ if (el && this.rows)
1334
+ el.rows = this.rows;
1335
+ }
1336
+ syncSelected() {
1337
+ const el = this.viewRef?.nativeElement;
1338
+ if (el && this.selected)
1339
+ el.selected = this.selected;
1340
+ }
1341
+ // Função, então propriedade; só é gravada quando o app dá uma (ou o template de card), para a view sem ela não
1342
+ // refazer os cards.
1343
+ syncCardRender() {
1344
+ const el = this.viewRef?.nativeElement;
1345
+ if (!el)
1346
+ return;
1347
+ const template = this.cardTemplate?.template;
1348
+ this.appliedCard = template;
1349
+ if (template) {
1350
+ el.cardRender = (context) => this.createView(template, { $implicit: context.row, ...context });
1351
+ }
1352
+ else if (this.cardRender || el.cardRender) {
1353
+ el.cardRender = this.cardRender ?? null;
1354
+ }
1355
+ }
1356
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1357
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkDataViewComponent, isStandalone: true, selector: "ark-data-view-wrapper", inputs: { testid: "testid", rows: "rows", columns: "columns", rowKey: "rowKey", view: "view", noViewSelector: "noViewSelector", breakpoint: "breakpoint", mode: "mode", page: "page", pageSize: "pageSize", pageSizes: "pageSizes", total: "total", sort: "sort", search: "search", searchable: "searchable", searchPlaceholder: "searchPlaceholder", searchDebounce: "searchDebounce", selectable: "selectable", selected: "selected", reorderable: "reorderable", clickable: "clickable", loading: "loading", cardColumns: "cardColumns", cardRender: "cardRender", label: "label", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkQueryChange: "arkQueryChange", arkViewChange: "arkViewChange", arkRowClick: "arkRowClick", arkSelectionChange: "arkSelectionChange", arkReorder: "arkReorder" }, queries: [{ propertyName: "cardTemplate", first: true, predicate: ArkDataViewCardDirective, descendants: true }, { propertyName: "cellTemplates", predicate: ArkDataViewCellDirective }], viewQueries: [{ propertyName: "viewRef", first: true, predicate: ["dataView"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
1358
+ <ark-data-view
1359
+ #dataView
1360
+ [attr.testid]="testid"
1361
+ [attr.row-key]="rowKey"
1362
+ [attr.view]="view"
1363
+ [attr.no-view-selector]="noViewSelector ? '' : null"
1364
+ [attr.breakpoint]="breakpoint"
1365
+ [attr.mode]="mode"
1366
+ [attr.page]="page"
1367
+ [attr.page-size]="pageSize"
1368
+ [attr.page-sizes]="pageSizesAttr"
1369
+ [attr.total]="total"
1370
+ [attr.sort]="sortAttr"
1371
+ [attr.search]="search || null"
1372
+ [attr.searchable]="searchable ? '' : null"
1373
+ [attr.search-placeholder]="searchPlaceholder"
1374
+ [attr.search-debounce]="searchDebounce"
1375
+ [attr.selectable]="selectable ? '' : null"
1376
+ [attr.reorderable]="reorderable ? '' : null"
1377
+ [attr.clickable]="clickable ? '' : null"
1378
+ [attr.loading]="loading ? '' : null"
1379
+ [attr.card-columns]="cardColumns"
1380
+ [attr.label]="label"
1381
+ [attr.size]="size"
1382
+ [attr.theme]="theme"
1383
+ [attr.lang]="lang"
1384
+ [attr.locale-json]="localeJson">
1385
+ <ng-content></ng-content>
1386
+ </ark-data-view>`, isInline: true }); }
1387
+ }
1388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewComponent, decorators: [{
1389
+ type: Component,
1390
+ args: [{
1391
+ selector: "ark-data-view-wrapper",
1392
+ standalone: true,
1393
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
1394
+ template: `
1395
+ <ark-data-view
1396
+ #dataView
1397
+ [attr.testid]="testid"
1398
+ [attr.row-key]="rowKey"
1399
+ [attr.view]="view"
1400
+ [attr.no-view-selector]="noViewSelector ? '' : null"
1401
+ [attr.breakpoint]="breakpoint"
1402
+ [attr.mode]="mode"
1403
+ [attr.page]="page"
1404
+ [attr.page-size]="pageSize"
1405
+ [attr.page-sizes]="pageSizesAttr"
1406
+ [attr.total]="total"
1407
+ [attr.sort]="sortAttr"
1408
+ [attr.search]="search || null"
1409
+ [attr.searchable]="searchable ? '' : null"
1410
+ [attr.search-placeholder]="searchPlaceholder"
1411
+ [attr.search-debounce]="searchDebounce"
1412
+ [attr.selectable]="selectable ? '' : null"
1413
+ [attr.reorderable]="reorderable ? '' : null"
1414
+ [attr.clickable]="clickable ? '' : null"
1415
+ [attr.loading]="loading ? '' : null"
1416
+ [attr.card-columns]="cardColumns"
1417
+ [attr.label]="label"
1418
+ [attr.size]="size"
1419
+ [attr.theme]="theme"
1420
+ [attr.lang]="lang"
1421
+ [attr.locale-json]="localeJson">
1422
+ <ng-content></ng-content>
1423
+ </ark-data-view>`
1424
+ }]
1425
+ }], ctorParameters: () => [], propDecorators: { testid: [{
1426
+ type: Input
1427
+ }], rows: [{
1428
+ type: Input
1429
+ }], columns: [{
1430
+ type: Input
1431
+ }], rowKey: [{
1432
+ type: Input
1433
+ }], view: [{
1434
+ type: Input
1435
+ }], noViewSelector: [{
1436
+ type: Input
1437
+ }], breakpoint: [{
1438
+ type: Input
1439
+ }], mode: [{
1440
+ type: Input
1441
+ }], page: [{
1442
+ type: Input
1443
+ }], pageSize: [{
1444
+ type: Input
1445
+ }], pageSizes: [{
1446
+ type: Input
1447
+ }], total: [{
1448
+ type: Input
1449
+ }], sort: [{
1450
+ type: Input
1451
+ }], search: [{
1452
+ type: Input
1453
+ }], searchable: [{
1454
+ type: Input
1455
+ }], searchPlaceholder: [{
1456
+ type: Input
1457
+ }], searchDebounce: [{
1458
+ type: Input
1459
+ }], selectable: [{
1460
+ type: Input
1461
+ }], selected: [{
1462
+ type: Input
1463
+ }], reorderable: [{
1464
+ type: Input
1465
+ }], clickable: [{
1466
+ type: Input
1467
+ }], loading: [{
1468
+ type: Input
1469
+ }], cardColumns: [{
1470
+ type: Input
1471
+ }], cardRender: [{
1472
+ type: Input
1473
+ }], label: [{
1474
+ type: Input
1475
+ }], size: [{
1476
+ type: Input
1477
+ }], theme: [{
1478
+ type: Input
1479
+ }], lang: [{
1480
+ type: Input
1481
+ }], localeJson: [{
1482
+ type: Input
1483
+ }], arkQueryChange: [{
1484
+ type: Output
1485
+ }], arkViewChange: [{
1486
+ type: Output
1487
+ }], arkRowClick: [{
1488
+ type: Output
1489
+ }], arkSelectionChange: [{
1490
+ type: Output
1491
+ }], arkReorder: [{
1492
+ type: Output
1493
+ }], viewRef: [{
1494
+ type: ViewChild,
1495
+ args: ["dataView", { static: false }]
1496
+ }], cellTemplates: [{
1497
+ type: ContentChildren,
1498
+ args: [ArkDataViewCellDirective]
1499
+ }], cardTemplate: [{
1500
+ type: ContentChild,
1501
+ args: [ArkDataViewCardDirective]
1502
+ }] } });
1503
+
1138
1504
  class ArkDatepickerComponent {
1139
1505
  constructor() {
1140
1506
  this.host = inject(ElementRef);
1141
- this.lang = "en";
1142
1507
  this.theme = "auto";
1143
1508
  this.intent = "primary";
1144
1509
  this.mode = "datetime";
@@ -1165,8 +1530,8 @@ class ArkDatepickerComponent {
1165
1530
  ngOnDestroy() {
1166
1531
  this.pickerRef?.nativeElement?.removeEventListener("ark-change", this.handler);
1167
1532
  }
1168
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1169
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkDatepickerComponent, isStandalone: true, selector: "ark-datepicker-wrapper", inputs: { testid: "testid", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", accentColor: "accentColor", value: "value", min: "min", max: "max", mode: "mode", input: "input", seconds: "seconds", placeholder: "placeholder", name: "name", format: "format", disabled: "disabled", events: "events", eventDisplay: "eventDisplay", stepMinutes: "stepMinutes", hoursFormat: "hoursFormat" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "pickerRef", first: true, predicate: ["picker"], descendants: true }], ngImport: i0, template: `
1533
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1534
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkDatepickerComponent, isStandalone: true, selector: "ark-datepicker-wrapper", inputs: { testid: "testid", lang: "lang", localeJson: "localeJson", theme: "theme", intent: "intent", accentColor: "accentColor", value: "value", min: "min", max: "max", mode: "mode", input: "input", seconds: "seconds", placeholder: "placeholder", name: "name", format: "format", disabled: "disabled", events: "events", eventDisplay: "eventDisplay", stepMinutes: "stepMinutes", hoursFormat: "hoursFormat" }, outputs: { arkChange: "arkChange" }, viewQueries: [{ propertyName: "pickerRef", first: true, predicate: ["picker"], descendants: true }], ngImport: i0, template: `
1170
1535
  <ark-datepicker
1171
1536
  #picker
1172
1537
  [attr.testid]="testid"
@@ -1191,7 +1556,7 @@ class ArkDatepickerComponent {
1191
1556
  [attr.hours-format]="hoursFormat">
1192
1557
  </ark-datepicker>`, isInline: true }); }
1193
1558
  }
1194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDatepickerComponent, decorators: [{
1559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDatepickerComponent, decorators: [{
1195
1560
  type: Component,
1196
1561
  args: [{
1197
1562
  selector: "ark-datepicker-wrapper",
@@ -1296,8 +1661,8 @@ class ArkDialogComponent {
1296
1661
  get element() {
1297
1662
  return this.host.nativeElement.querySelector(":scope > ark-dialog");
1298
1663
  }
1299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1300
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
1664
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1665
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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", headingLevel: "headingLevel", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
1301
1666
  <ark-dialog
1302
1667
  [attr.testid]="testid"
1303
1668
  [attr.open]="open ? '' : null"
@@ -1309,6 +1674,7 @@ class ArkDialogComponent {
1309
1674
  [attr.width]="width"
1310
1675
  [attr.height]="height"
1311
1676
  [attr.theme]="theme"
1677
+ [attr.heading-level]="headingLevel"
1312
1678
  [attr.lang]="lang"
1313
1679
  [attr.locale-json]="localeJson"
1314
1680
  [attr.aria-label]="ariaLabel"
@@ -1317,7 +1683,7 @@ class ArkDialogComponent {
1317
1683
  <ng-content></ng-content>
1318
1684
  </ark-dialog>`, isInline: true }); }
1319
1685
  }
1320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDialogComponent, decorators: [{
1686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDialogComponent, decorators: [{
1321
1687
  type: Component,
1322
1688
  args: [{
1323
1689
  selector: "ark-dialog-wrapper",
@@ -1335,6 +1701,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1335
1701
  [attr.width]="width"
1336
1702
  [attr.height]="height"
1337
1703
  [attr.theme]="theme"
1704
+ [attr.heading-level]="headingLevel"
1338
1705
  [attr.lang]="lang"
1339
1706
  [attr.locale-json]="localeJson"
1340
1707
  [attr.aria-label]="ariaLabel"
@@ -1363,6 +1730,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1363
1730
  type: Input
1364
1731
  }], theme: [{
1365
1732
  type: Input
1733
+ }], headingLevel: [{
1734
+ type: Input
1366
1735
  }], lang: [{
1367
1736
  type: Input
1368
1737
  }], localeJson: [{
@@ -1404,8 +1773,8 @@ class ArkDrawerComponent {
1404
1773
  get element() {
1405
1774
  return this.host.nativeElement.querySelector(":scope > ark-drawer");
1406
1775
  }
1407
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1408
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
1776
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1777
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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", headingLevel: "headingLevel", lang: "lang", localeJson: "localeJson", ariaLabel: "ariaLabel" }, outputs: { arkOpen: "arkOpen", arkClose: "arkClose" }, ngImport: i0, template: `
1409
1778
  <ark-drawer
1410
1779
  [attr.testid]="testid"
1411
1780
  [attr.open]="open ? '' : null"
@@ -1417,6 +1786,7 @@ class ArkDrawerComponent {
1417
1786
  [attr.persistent]="persistent ? '' : null"
1418
1787
  [attr.no-scroll-lock]="noScrollLock ? '' : null"
1419
1788
  [attr.theme]="theme"
1789
+ [attr.heading-level]="headingLevel"
1420
1790
  [attr.lang]="lang"
1421
1791
  [attr.locale-json]="localeJson"
1422
1792
  [attr.aria-label]="ariaLabel"
@@ -1425,7 +1795,7 @@ class ArkDrawerComponent {
1425
1795
  <ng-content></ng-content>
1426
1796
  </ark-drawer>`, isInline: true }); }
1427
1797
  }
1428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkDrawerComponent, decorators: [{
1798
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDrawerComponent, decorators: [{
1429
1799
  type: Component,
1430
1800
  args: [{
1431
1801
  selector: "ark-drawer-wrapper",
@@ -1443,6 +1813,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1443
1813
  [attr.persistent]="persistent ? '' : null"
1444
1814
  [attr.no-scroll-lock]="noScrollLock ? '' : null"
1445
1815
  [attr.theme]="theme"
1816
+ [attr.heading-level]="headingLevel"
1446
1817
  [attr.lang]="lang"
1447
1818
  [attr.locale-json]="localeJson"
1448
1819
  [attr.aria-label]="ariaLabel"
@@ -1471,6 +1842,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1471
1842
  type: Input
1472
1843
  }], theme: [{
1473
1844
  type: Input
1845
+ }], headingLevel: [{
1846
+ type: Input
1474
1847
  }], lang: [{
1475
1848
  type: Input
1476
1849
  }], localeJson: [{
@@ -1493,17 +1866,18 @@ class ArkEmptyComponent {
1493
1866
  get element() {
1494
1867
  return this.host.nativeElement.querySelector(":scope > ark-empty");
1495
1868
  }
1496
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1497
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkEmptyComponent, isStandalone: true, selector: "ark-empty-wrapper", inputs: { testid: "testid", heading: "heading", description: "description", theme: "theme" }, ngImport: i0, template: `
1869
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1870
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkEmptyComponent, isStandalone: true, selector: "ark-empty-wrapper", inputs: { testid: "testid", heading: "heading", description: "description", theme: "theme", headingLevel: "headingLevel" }, ngImport: i0, template: `
1498
1871
  <ark-empty
1499
1872
  [attr.testid]="testid"
1500
1873
  [attr.heading]="heading"
1501
1874
  [attr.description]="description"
1502
- [attr.theme]="theme">
1875
+ [attr.theme]="theme"
1876
+ [attr.heading-level]="headingLevel">
1503
1877
  <ng-content></ng-content>
1504
1878
  </ark-empty>`, isInline: true }); }
1505
1879
  }
1506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkEmptyComponent, decorators: [{
1880
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkEmptyComponent, decorators: [{
1507
1881
  type: Component,
1508
1882
  args: [{
1509
1883
  selector: "ark-empty-wrapper",
@@ -1514,7 +1888,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1514
1888
  [attr.testid]="testid"
1515
1889
  [attr.heading]="heading"
1516
1890
  [attr.description]="description"
1517
- [attr.theme]="theme">
1891
+ [attr.theme]="theme"
1892
+ [attr.heading-level]="headingLevel">
1518
1893
  <ng-content></ng-content>
1519
1894
  </ark-empty>`
1520
1895
  }]
@@ -1526,6 +1901,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1526
1901
  type: Input
1527
1902
  }], theme: [{
1528
1903
  type: Input
1904
+ }], headingLevel: [{
1905
+ type: Input
1529
1906
  }] } });
1530
1907
 
1531
1908
  class ArkFileInputComponent {
@@ -1553,8 +1930,8 @@ class ArkFileInputComponent {
1553
1930
  onChange(event) {
1554
1931
  this.changed.emit(event);
1555
1932
  }
1556
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1557
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
1933
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1934
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
1558
1935
  <ark-file-input
1559
1936
  [attr.testid]="testid"
1560
1937
  [attr.accept]="accept"
@@ -1576,7 +1953,7 @@ class ArkFileInputComponent {
1576
1953
  (change)="onChange($event)">
1577
1954
  </ark-file-input>`, isInline: true }); }
1578
1955
  }
1579
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkFileInputComponent, decorators: [{
1956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkFileInputComponent, decorators: [{
1580
1957
  type: Component,
1581
1958
  args: [{
1582
1959
  selector: "ark-file-input-wrapper",
@@ -1666,8 +2043,8 @@ class ArkInputComponent {
1666
2043
  get spellcheckAttr() {
1667
2044
  return this.spellcheck === undefined ? null : String(this.spellcheck);
1668
2045
  }
1669
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1670
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkInputComponent, isStandalone: true, selector: "ark-input-wrapper", inputs: { testid: "testid", type: "type", label: "label", placeholder: "placeholder", value: "value", name: "name", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required", readonly: "readonly", reveal: "reveal", lang: "lang", localeJson: "localeJson", autocomplete: "autocomplete", autofocus: "autofocus", inputmode: "inputmode", maxlength: "maxlength", minlength: "minlength", pattern: "pattern", min: "min", max: "max", step: "step", spellcheck: "spellcheck", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
2046
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2047
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkInputComponent, isStandalone: true, selector: "ark-input-wrapper", inputs: { testid: "testid", type: "type", label: "label", placeholder: "placeholder", value: "value", name: "name", size: "size", intent: "intent", theme: "theme", rounded: "rounded", helper: "helper", error: "error", errorMessage: "errorMessage", disabled: "disabled", required: "required", readonly: "readonly", reveal: "reveal", lang: "lang", localeJson: "localeJson", autocomplete: "autocomplete", autofocus: "autofocus", inputmode: "inputmode", list: "list", maxlength: "maxlength", minlength: "minlength", pattern: "pattern", min: "min", max: "max", step: "step", spellcheck: "spellcheck", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
1671
2048
  <ark-input
1672
2049
  [attr.testid]="testid"
1673
2050
  [attr.type]="type"
@@ -1691,6 +2068,7 @@ class ArkInputComponent {
1691
2068
  [attr.autocomplete]="autocomplete"
1692
2069
  [attr.autofocus]="autofocus ? '' : null"
1693
2070
  [attr.inputmode]="inputmode"
2071
+ [attr.list]="list"
1694
2072
  [attr.maxlength]="maxlength"
1695
2073
  [attr.minlength]="minlength"
1696
2074
  [attr.pattern]="pattern"
@@ -1702,7 +2080,7 @@ class ArkInputComponent {
1702
2080
  <ng-content></ng-content>
1703
2081
  </ark-input>`, isInline: true }); }
1704
2082
  }
1705
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkInputComponent, decorators: [{
2083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkInputComponent, decorators: [{
1706
2084
  type: Component,
1707
2085
  args: [{
1708
2086
  selector: "ark-input-wrapper",
@@ -1732,6 +2110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1732
2110
  [attr.autocomplete]="autocomplete"
1733
2111
  [attr.autofocus]="autofocus ? '' : null"
1734
2112
  [attr.inputmode]="inputmode"
2113
+ [attr.list]="list"
1735
2114
  [attr.maxlength]="maxlength"
1736
2115
  [attr.minlength]="minlength"
1737
2116
  [attr.pattern]="pattern"
@@ -1787,6 +2166,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
1787
2166
  type: Input
1788
2167
  }], inputmode: [{
1789
2168
  type: Input
2169
+ }], list: [{
2170
+ type: Input
1790
2171
  }], maxlength: [{
1791
2172
  type: Input
1792
2173
  }], minlength: [{
@@ -1816,8 +2197,8 @@ class ArkKbdComponent {
1816
2197
  get element() {
1817
2198
  return this.host.nativeElement.querySelector(":scope > ark-kbd");
1818
2199
  }
1819
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkKbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1820
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkKbdComponent, isStandalone: true, selector: "ark-kbd-wrapper", inputs: { testid: "testid", size: "size", theme: "theme" }, ngImport: i0, template: `
2200
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2201
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkKbdComponent, isStandalone: true, selector: "ark-kbd-wrapper", inputs: { testid: "testid", size: "size", theme: "theme" }, ngImport: i0, template: `
1821
2202
  <ark-kbd
1822
2203
  [attr.testid]="testid"
1823
2204
  [attr.size]="size"
@@ -1825,7 +2206,7 @@ class ArkKbdComponent {
1825
2206
  <ng-content></ng-content>
1826
2207
  </ark-kbd>`, isInline: true }); }
1827
2208
  }
1828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkKbdComponent, decorators: [{
2209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKbdComponent, decorators: [{
1829
2210
  type: Component,
1830
2211
  args: [{
1831
2212
  selector: "ark-kbd-wrapper",
@@ -1905,8 +2286,8 @@ class ArkKvEditorComponent {
1905
2286
  if (el && (this.valueField || el.valueField))
1906
2287
  el.valueField = this.valueField ?? null;
1907
2288
  }
1908
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkKvEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1909
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkKvEditorComponent, isStandalone: true, selector: "ark-kv-editor-wrapper", inputs: { testid: "testid", rows: "rows", bulk: "bulk", bulkFormat: "bulkFormat", types: "types", description: "description", secret: "secret", keyPlaceholder: "keyPlaceholder", valuePlaceholder: "valuePlaceholder", descriptionPlaceholder: "descriptionPlaceholder", readonly: "readonly", valueField: "valueField", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed", arkAdd: "arkAdd", arkDelete: "arkDelete" }, viewQueries: [{ propertyName: "editorRef", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
2289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKvEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2290
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkKvEditorComponent, isStandalone: true, selector: "ark-kv-editor-wrapper", inputs: { testid: "testid", rows: "rows", bulk: "bulk", bulkFormat: "bulkFormat", types: "types", description: "description", secret: "secret", keyPlaceholder: "keyPlaceholder", valuePlaceholder: "valuePlaceholder", descriptionPlaceholder: "descriptionPlaceholder", readonly: "readonly", valueField: "valueField", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed", arkAdd: "arkAdd", arkDelete: "arkDelete" }, viewQueries: [{ propertyName: "editorRef", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
1910
2291
  <ark-kv-editor
1911
2292
  #editor
1912
2293
  [attr.testid]="testid"
@@ -1926,7 +2307,7 @@ class ArkKvEditorComponent {
1926
2307
  (change)="onChange($event)">
1927
2308
  </ark-kv-editor>`, isInline: true }); }
1928
2309
  }
1929
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkKvEditorComponent, decorators: [{
2310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKvEditorComponent, decorators: [{
1930
2311
  type: Component,
1931
2312
  args: [{
1932
2313
  selector: "ark-kv-editor-wrapper",
@@ -2007,8 +2388,8 @@ class ArkMarkComponent {
2007
2388
  get element() {
2008
2389
  return this.host.nativeElement.querySelector(":scope > ark-mark");
2009
2390
  }
2010
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2011
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkMarkComponent, isStandalone: true, selector: "ark-mark-wrapper", inputs: { testid: "testid", shape: "shape", color: "color", size: "size", label: "label", theme: "theme" }, ngImport: i0, template: `
2391
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2392
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkMarkComponent, isStandalone: true, selector: "ark-mark-wrapper", inputs: { testid: "testid", shape: "shape", color: "color", size: "size", label: "label", theme: "theme" }, ngImport: i0, template: `
2012
2393
  <ark-mark
2013
2394
  [attr.testid]="testid"
2014
2395
  [attr.shape]="shape"
@@ -2018,7 +2399,7 @@ class ArkMarkComponent {
2018
2399
  [attr.theme]="theme">
2019
2400
  </ark-mark>`, isInline: true }); }
2020
2401
  }
2021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMarkComponent, decorators: [{
2402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMarkComponent, decorators: [{
2022
2403
  type: Component,
2023
2404
  args: [{
2024
2405
  selector: "ark-mark-wrapper",
@@ -2074,8 +2455,8 @@ class ArkMenuComponent {
2074
2455
  get element() {
2075
2456
  return this.host.nativeElement.querySelector(":scope > ark-menu");
2076
2457
  }
2077
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2078
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
2458
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2459
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
2079
2460
  <ark-menu
2080
2461
  [attr.testid]="testid"
2081
2462
  [attr.for]="for"
@@ -2091,7 +2472,7 @@ class ArkMenuComponent {
2091
2472
  <ng-content></ng-content>
2092
2473
  </ark-menu>`, isInline: true }); }
2093
2474
  }
2094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMenuComponent, decorators: [{
2475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuComponent, decorators: [{
2095
2476
  type: Component,
2096
2477
  args: [{
2097
2478
  selector: "ark-menu-wrapper",
@@ -2155,8 +2536,8 @@ class ArkMenuItemComponent {
2155
2536
  return null;
2156
2537
  return this.checked ? "" : "false";
2157
2538
  }
2158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2159
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkMenuItemComponent, isStandalone: true, selector: "ark-menu-item-wrapper", inputs: { testid: "testid", value: "value", intent: "intent", disabled: "disabled", checked: "checked", divider: "divider", static: "static" }, ngImport: i0, template: `
2539
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2540
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkMenuItemComponent, isStandalone: true, selector: "ark-menu-item-wrapper", inputs: { testid: "testid", value: "value", intent: "intent", disabled: "disabled", checked: "checked", divider: "divider", static: "static" }, ngImport: i0, template: `
2160
2541
  <ark-menu-item
2161
2542
  [attr.testid]="testid"
2162
2543
  [attr.value]="value"
@@ -2168,7 +2549,7 @@ class ArkMenuItemComponent {
2168
2549
  <ng-content></ng-content>
2169
2550
  </ark-menu-item>`, isInline: true }); }
2170
2551
  }
2171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkMenuItemComponent, decorators: [{
2552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuItemComponent, decorators: [{
2172
2553
  type: Component,
2173
2554
  args: [{
2174
2555
  selector: "ark-menu-item-wrapper",
@@ -2201,6 +2582,370 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
2201
2582
  }], static: [{
2202
2583
  type: Input
2203
2584
  }] } });
2585
+ class ArkMenuGroupComponent {
2586
+ constructor() {
2587
+ this.host = inject(ElementRef);
2588
+ ensureTooarkComponentsRegistered();
2589
+ }
2590
+ /** O `ark-menu-group` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
2591
+ get element() {
2592
+ return this.host.nativeElement.querySelector(":scope > ark-menu-group");
2593
+ }
2594
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2595
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkMenuGroupComponent, isStandalone: true, selector: "ark-menu-group-wrapper", inputs: { testid: "testid", label: "label", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
2596
+ <ark-menu-group [attr.testid]="testid" [attr.label]="label" [attr.aria-label]="ariaLabel">
2597
+ <ng-content></ng-content>
2598
+ </ark-menu-group>`, isInline: true }); }
2599
+ }
2600
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuGroupComponent, decorators: [{
2601
+ type: Component,
2602
+ args: [{
2603
+ selector: "ark-menu-group-wrapper",
2604
+ standalone: true,
2605
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
2606
+ template: `
2607
+ <ark-menu-group [attr.testid]="testid" [attr.label]="label" [attr.aria-label]="ariaLabel">
2608
+ <ng-content></ng-content>
2609
+ </ark-menu-group>`
2610
+ }]
2611
+ }], ctorParameters: () => [], propDecorators: { testid: [{
2612
+ type: Input
2613
+ }], label: [{
2614
+ type: Input
2615
+ }], ariaLabel: [{
2616
+ type: Input
2617
+ }] } });
2618
+
2619
+ class ArkNavComponent {
2620
+ constructor() {
2621
+ this.host = inject(ElementRef);
2622
+ /** sidebar (coluna), navbar (barra) ou tabbar (abas de rodapé). Padrão: "sidebar". */
2623
+ this.variant = "sidebar";
2624
+ /** Borda em que a sidebar encosta. Padrão: "left". */
2625
+ this.side = "left";
2626
+ /** Sidebar recolhida. */
2627
+ this.collapsed = false;
2628
+ /** Botão de recolher e o que resta recolhida: true/"rail" (só ícones) ou "hidden" (só o logo e o botão). */
2629
+ this.collapsible = false;
2630
+ this.size = "md";
2631
+ this.intent = "primary";
2632
+ this.theme = "auto";
2633
+ /** O botão de recolher foi acionado; detail.collapsed é o novo estado, para o app guardar. */
2634
+ this.arkCollapse = new EventEmitter();
2635
+ /** Um item foi acionado (sobe dos itens); preventDefault() cancela a navegação do navegador para o app rotear. */
2636
+ this.arkNavigate = new EventEmitter();
2637
+ this.collapseHandler = (event) => this.arkCollapse.emit(event);
2638
+ this.navigateHandler = (event) => this.arkNavigate.emit(event);
2639
+ ensureTooarkComponentsRegistered();
2640
+ }
2641
+ /** O `ark-nav` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
2642
+ get element() {
2643
+ return this.host.nativeElement.querySelector(":scope > ark-nav");
2644
+ }
2645
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2646
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkNavComponent, isStandalone: true, selector: "ark-nav-wrapper", inputs: { testid: "testid", variant: "variant", side: "side", value: "value", collapsed: "collapsed", collapsible: "collapsible", label: "label", size: "size", intent: "intent", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkCollapse: "arkCollapse", arkNavigate: "arkNavigate" }, ngImport: i0, template: `
2647
+ <ark-nav
2648
+ [attr.testid]="testid"
2649
+ [attr.variant]="variant"
2650
+ [attr.side]="side"
2651
+ [attr.value]="value"
2652
+ [attr.collapsed]="collapsed ? '' : null"
2653
+ [attr.collapsible]="collapsible === true ? '' : (collapsible || null)"
2654
+ [attr.label]="label"
2655
+ [attr.size]="size"
2656
+ [attr.intent]="intent"
2657
+ [attr.theme]="theme"
2658
+ [attr.lang]="lang"
2659
+ [attr.locale-json]="localeJson"
2660
+ (ark-collapse)="collapseHandler($event)"
2661
+ (ark-navigate)="navigateHandler($event)">
2662
+ <ng-content></ng-content>
2663
+ </ark-nav>`, isInline: true }); }
2664
+ }
2665
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavComponent, decorators: [{
2666
+ type: Component,
2667
+ args: [{
2668
+ selector: "ark-nav-wrapper",
2669
+ standalone: true,
2670
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
2671
+ template: `
2672
+ <ark-nav
2673
+ [attr.testid]="testid"
2674
+ [attr.variant]="variant"
2675
+ [attr.side]="side"
2676
+ [attr.value]="value"
2677
+ [attr.collapsed]="collapsed ? '' : null"
2678
+ [attr.collapsible]="collapsible === true ? '' : (collapsible || null)"
2679
+ [attr.label]="label"
2680
+ [attr.size]="size"
2681
+ [attr.intent]="intent"
2682
+ [attr.theme]="theme"
2683
+ [attr.lang]="lang"
2684
+ [attr.locale-json]="localeJson"
2685
+ (ark-collapse)="collapseHandler($event)"
2686
+ (ark-navigate)="navigateHandler($event)">
2687
+ <ng-content></ng-content>
2688
+ </ark-nav>`
2689
+ }]
2690
+ }], ctorParameters: () => [], propDecorators: { testid: [{
2691
+ type: Input
2692
+ }], variant: [{
2693
+ type: Input
2694
+ }], side: [{
2695
+ type: Input
2696
+ }], value: [{
2697
+ type: Input
2698
+ }], collapsed: [{
2699
+ type: Input
2700
+ }], collapsible: [{
2701
+ type: Input
2702
+ }], label: [{
2703
+ type: Input
2704
+ }], size: [{
2705
+ type: Input
2706
+ }], intent: [{
2707
+ type: Input
2708
+ }], theme: [{
2709
+ type: Input
2710
+ }], lang: [{
2711
+ type: Input
2712
+ }], localeJson: [{
2713
+ type: Input
2714
+ }], arkCollapse: [{
2715
+ type: Output
2716
+ }], arkNavigate: [{
2717
+ type: Output
2718
+ }] } });
2719
+ class ArkNavItemComponent {
2720
+ constructor() {
2721
+ this.host = inject(ElementRef);
2722
+ /** Página atual (`aria-current="page"`). */
2723
+ this.current = false;
2724
+ this.disabled = false;
2725
+ /** Linha separadora (role separator). */
2726
+ this.divider = false;
2727
+ /** Este item foi acionado; preventDefault() cancela a navegação do navegador. */
2728
+ this.arkNavigate = new EventEmitter();
2729
+ this.navigateHandler = (event) => this.arkNavigate.emit(event);
2730
+ ensureTooarkComponentsRegistered();
2731
+ }
2732
+ /** O `ark-nav-item` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
2733
+ get element() {
2734
+ return this.host.nativeElement.querySelector(":scope > ark-nav-item");
2735
+ }
2736
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2737
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkNavItemComponent, isStandalone: true, selector: "ark-nav-item-wrapper", inputs: { testid: "testid", href: "href", target: "target", label: "label", value: "value", current: "current", disabled: "disabled", divider: "divider" }, outputs: { arkNavigate: "arkNavigate" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2738
+ <ark-nav-item
2739
+ [attr.testid]="testid"
2740
+ [attr.href]="href"
2741
+ [attr.target]="target"
2742
+ [attr.label]="label"
2743
+ [attr.value]="value"
2744
+ [attr.current]="current ? '' : null"
2745
+ [attr.disabled]="disabled ? '' : null"
2746
+ [attr.divider]="divider ? '' : null"
2747
+ (ark-navigate)="navigateHandler($event)">
2748
+ <ng-content></ng-content>
2749
+ </ark-nav-item>`, isInline: true }); }
2750
+ }
2751
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavItemComponent, decorators: [{
2752
+ type: Component,
2753
+ args: [{
2754
+ selector: "ark-nav-item-wrapper",
2755
+ standalone: true,
2756
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
2757
+ // Sem caixa própria: o item entra no flex do nav (e do grupo), que o ordena e dimensiona.
2758
+ host: { style: "display: contents" },
2759
+ template: `
2760
+ <ark-nav-item
2761
+ [attr.testid]="testid"
2762
+ [attr.href]="href"
2763
+ [attr.target]="target"
2764
+ [attr.label]="label"
2765
+ [attr.value]="value"
2766
+ [attr.current]="current ? '' : null"
2767
+ [attr.disabled]="disabled ? '' : null"
2768
+ [attr.divider]="divider ? '' : null"
2769
+ (ark-navigate)="navigateHandler($event)">
2770
+ <ng-content></ng-content>
2771
+ </ark-nav-item>`
2772
+ }]
2773
+ }], ctorParameters: () => [], propDecorators: { testid: [{
2774
+ type: Input
2775
+ }], href: [{
2776
+ type: Input
2777
+ }], target: [{
2778
+ type: Input
2779
+ }], label: [{
2780
+ type: Input
2781
+ }], value: [{
2782
+ type: Input
2783
+ }], current: [{
2784
+ type: Input
2785
+ }], disabled: [{
2786
+ type: Input
2787
+ }], divider: [{
2788
+ type: Input
2789
+ }], arkNavigate: [{
2790
+ type: Output
2791
+ }] } });
2792
+ class ArkNavGroupComponent {
2793
+ constructor() {
2794
+ this.host = inject(ElementRef);
2795
+ /** O cabeçalho é um botão que abre e fecha os itens. */
2796
+ this.expandable = false;
2797
+ /** Itens à mostra (com `expandable`). */
2798
+ this.open = false;
2799
+ /** O cabeçalho expansível foi acionado; detail.open é o novo estado. */
2800
+ this.arkToggle = new EventEmitter();
2801
+ this.toggleHandler = (event) => this.arkToggle.emit(event);
2802
+ ensureTooarkComponentsRegistered();
2803
+ }
2804
+ /** O `ark-nav-group` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
2805
+ get element() {
2806
+ return this.host.nativeElement.querySelector(":scope > ark-nav-group");
2807
+ }
2808
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2809
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkNavGroupComponent, isStandalone: true, selector: "ark-nav-group-wrapper", inputs: { testid: "testid", label: "label", expandable: "expandable", open: "open" }, outputs: { arkToggle: "arkToggle" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2810
+ <ark-nav-group
2811
+ [attr.testid]="testid"
2812
+ [attr.label]="label"
2813
+ [attr.expandable]="expandable ? '' : null"
2814
+ [attr.open]="open ? '' : null"
2815
+ (ark-toggle)="toggleHandler($event)">
2816
+ <ng-content></ng-content>
2817
+ </ark-nav-group>`, isInline: true }); }
2818
+ }
2819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavGroupComponent, decorators: [{
2820
+ type: Component,
2821
+ args: [{
2822
+ selector: "ark-nav-group-wrapper",
2823
+ standalone: true,
2824
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
2825
+ // Sem caixa própria: o grupo entra no flex do nav.
2826
+ host: { style: "display: contents" },
2827
+ template: `
2828
+ <ark-nav-group
2829
+ [attr.testid]="testid"
2830
+ [attr.label]="label"
2831
+ [attr.expandable]="expandable ? '' : null"
2832
+ [attr.open]="open ? '' : null"
2833
+ (ark-toggle)="toggleHandler($event)">
2834
+ <ng-content></ng-content>
2835
+ </ark-nav-group>`
2836
+ }]
2837
+ }], ctorParameters: () => [], propDecorators: { testid: [{
2838
+ type: Input
2839
+ }], label: [{
2840
+ type: Input
2841
+ }], expandable: [{
2842
+ type: Input
2843
+ }], open: [{
2844
+ type: Input
2845
+ }], arkToggle: [{
2846
+ type: Output
2847
+ }] } });
2848
+
2849
+ class ArkPaginationComponent {
2850
+ constructor() {
2851
+ this.host = inject(ElementRef);
2852
+ this.disabled = false;
2853
+ this.size = "md";
2854
+ this.intent = "primary";
2855
+ this.theme = "auto";
2856
+ /** Página ou itens por página mudaram: detail é { page, pageSize, pageCount }. */
2857
+ this.arkPageChange = new EventEmitter();
2858
+ this.pageHandler = (event) => this.arkPageChange.emit(event);
2859
+ ensureTooarkComponentsRegistered();
2860
+ }
2861
+ /** O `ark-pagination` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
2862
+ get element() {
2863
+ return this.host.nativeElement.querySelector(":scope > ark-pagination");
2864
+ }
2865
+ get pageSizesAttr() {
2866
+ return this.pageSizes && this.pageSizes.length > 0 ? this.pageSizes.join(",") : null;
2867
+ }
2868
+ ngAfterViewInit() {
2869
+ this.paginationRef?.nativeElement?.addEventListener("ark-page-change", this.pageHandler);
2870
+ }
2871
+ ngOnDestroy() {
2872
+ this.paginationRef?.nativeElement?.removeEventListener("ark-page-change", this.pageHandler);
2873
+ }
2874
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2875
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkPaginationComponent, isStandalone: true, selector: "ark-pagination-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", page: "page", pageSize: "pageSize", total: "total", pageSizes: "pageSizes", siblings: "siblings", disabled: "disabled", size: "size", intent: "intent", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkPageChange: "arkPageChange" }, viewQueries: [{ propertyName: "paginationRef", first: true, predicate: ["pagination"], descendants: true }], ngImport: i0, template: `
2876
+ <ark-pagination
2877
+ #pagination
2878
+ [attr.testid]="testid"
2879
+ [attr.aria-label]="ariaLabel"
2880
+ [attr.page]="page"
2881
+ [attr.page-size]="pageSize"
2882
+ [attr.total]="total"
2883
+ [attr.page-sizes]="pageSizesAttr"
2884
+ [attr.siblings]="siblings"
2885
+ [attr.disabled]="disabled ? '' : null"
2886
+ [attr.size]="size"
2887
+ [attr.intent]="intent"
2888
+ [attr.theme]="theme"
2889
+ [attr.lang]="lang"
2890
+ [attr.locale-json]="localeJson">
2891
+ </ark-pagination>`, isInline: true }); }
2892
+ }
2893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkPaginationComponent, decorators: [{
2894
+ type: Component,
2895
+ args: [{
2896
+ selector: "ark-pagination-wrapper",
2897
+ standalone: true,
2898
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
2899
+ template: `
2900
+ <ark-pagination
2901
+ #pagination
2902
+ [attr.testid]="testid"
2903
+ [attr.aria-label]="ariaLabel"
2904
+ [attr.page]="page"
2905
+ [attr.page-size]="pageSize"
2906
+ [attr.total]="total"
2907
+ [attr.page-sizes]="pageSizesAttr"
2908
+ [attr.siblings]="siblings"
2909
+ [attr.disabled]="disabled ? '' : null"
2910
+ [attr.size]="size"
2911
+ [attr.intent]="intent"
2912
+ [attr.theme]="theme"
2913
+ [attr.lang]="lang"
2914
+ [attr.locale-json]="localeJson">
2915
+ </ark-pagination>`
2916
+ }]
2917
+ }], ctorParameters: () => [], propDecorators: { testid: [{
2918
+ type: Input
2919
+ }], ariaLabel: [{
2920
+ type: Input
2921
+ }], page: [{
2922
+ type: Input
2923
+ }], pageSize: [{
2924
+ type: Input
2925
+ }], total: [{
2926
+ type: Input
2927
+ }], pageSizes: [{
2928
+ type: Input
2929
+ }], siblings: [{
2930
+ type: Input
2931
+ }], disabled: [{
2932
+ type: Input
2933
+ }], size: [{
2934
+ type: Input
2935
+ }], intent: [{
2936
+ type: Input
2937
+ }], theme: [{
2938
+ type: Input
2939
+ }], lang: [{
2940
+ type: Input
2941
+ }], localeJson: [{
2942
+ type: Input
2943
+ }], arkPageChange: [{
2944
+ type: Output
2945
+ }], paginationRef: [{
2946
+ type: ViewChild,
2947
+ args: ["pagination", { static: false }]
2948
+ }] } });
2204
2949
 
2205
2950
  class ArkProgressComponent {
2206
2951
  constructor() {
@@ -2218,8 +2963,8 @@ class ArkProgressComponent {
2218
2963
  get element() {
2219
2964
  return this.host.nativeElement.querySelector(":scope > ark-progress");
2220
2965
  }
2221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2222
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkProgressComponent, isStandalone: true, selector: "ark-progress-wrapper", inputs: { testid: "testid", value: "value", max: "max", indeterminate: "indeterminate", label: "label", showValue: "showValue", intent: "intent", size: "size", theme: "theme" }, ngImport: i0, template: `
2966
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2967
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkProgressComponent, isStandalone: true, selector: "ark-progress-wrapper", inputs: { testid: "testid", value: "value", max: "max", indeterminate: "indeterminate", label: "label", showValue: "showValue", intent: "intent", size: "size", theme: "theme" }, ngImport: i0, template: `
2223
2968
  <ark-progress
2224
2969
  [attr.testid]="testid"
2225
2970
  [attr.value]="value"
@@ -2232,7 +2977,7 @@ class ArkProgressComponent {
2232
2977
  [attr.theme]="theme">
2233
2978
  </ark-progress>`, isInline: true }); }
2234
2979
  }
2235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkProgressComponent, decorators: [{
2980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkProgressComponent, decorators: [{
2236
2981
  type: Component,
2237
2982
  args: [{
2238
2983
  selector: "ark-progress-wrapper",
@@ -2290,8 +3035,8 @@ class ArkRadioComponent {
2290
3035
  onChange(event) {
2291
3036
  this.changed.emit(event);
2292
3037
  }
2293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2294
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
3038
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3039
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
2295
3040
  <ark-radio
2296
3041
  [attr.testid]="testid"
2297
3042
  [attr.aria-label]="ariaLabel"
@@ -2308,7 +3053,7 @@ class ArkRadioComponent {
2308
3053
  <ng-content></ng-content>
2309
3054
  </ark-radio>`, isInline: true }); }
2310
3055
  }
2311
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkRadioComponent, decorators: [{
3056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkRadioComponent, decorators: [{
2312
3057
  type: Component,
2313
3058
  args: [{
2314
3059
  selector: "ark-radio-wrapper",
@@ -2361,7 +3106,6 @@ class ArkSchedulerComponent {
2361
3106
  constructor() {
2362
3107
  this.host = inject(ElementRef);
2363
3108
  this.view = "week";
2364
- this.lang = "en";
2365
3109
  this.theme = "auto";
2366
3110
  this.intent = "primary";
2367
3111
  this.arkEventClick = new EventEmitter();
@@ -2399,8 +3143,8 @@ class ArkSchedulerComponent {
2399
3143
  el.removeEventListener("ark-view-change", this.viewChangeHandler);
2400
3144
  el.removeEventListener("ark-range-change", this.rangeChangeHandler);
2401
3145
  }
2402
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2403
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
3146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
2404
3148
  <ark-scheduler
2405
3149
  #scheduler
2406
3150
  [attr.testid]="testid"
@@ -2418,7 +3162,7 @@ class ArkSchedulerComponent {
2418
3162
  [attr.hours-format]="hoursFormat">
2419
3163
  </ark-scheduler>`, isInline: true }); }
2420
3164
  }
2421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSchedulerComponent, decorators: [{
3165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSchedulerComponent, decorators: [{
2422
3166
  type: Component,
2423
3167
  args: [{
2424
3168
  selector: "ark-scheduler-wrapper",
@@ -2504,8 +3248,8 @@ class ArkSelectComponent {
2504
3248
  onChange(event) {
2505
3249
  this.changed.emit(event);
2506
3250
  }
2507
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2508
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
3251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
2509
3253
  <ark-select
2510
3254
  [attr.testid]="testid"
2511
3255
  [attr.aria-label]="ariaLabel"
@@ -2527,7 +3271,7 @@ class ArkSelectComponent {
2527
3271
  <ng-content></ng-content>
2528
3272
  </ark-select>`, isInline: true }); }
2529
3273
  }
2530
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSelectComponent, decorators: [{
3274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSelectComponent, decorators: [{
2531
3275
  type: Component,
2532
3276
  args: [{
2533
3277
  selector: "ark-select-wrapper",
@@ -2613,8 +3357,8 @@ class ArkShapePickerComponent {
2613
3357
  onChange(event) {
2614
3358
  this.changed.emit(event);
2615
3359
  }
2616
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkShapePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2617
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkShapePickerComponent, isStandalone: true, selector: "ark-shape-picker-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", value: "value", shapes: "shapes", color: "color", label: "label", disabled: "disabled", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
3360
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkShapePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3361
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkShapePickerComponent, isStandalone: true, selector: "ark-shape-picker-wrapper", inputs: { testid: "testid", ariaLabel: "ariaLabel", value: "value", shapes: "shapes", color: "color", label: "label", disabled: "disabled", size: "size", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed" }, ngImport: i0, template: `
2618
3362
  <ark-shape-picker
2619
3363
  [attr.testid]="testid"
2620
3364
  [attr.aria-label]="ariaLabel"
@@ -2630,7 +3374,7 @@ class ArkShapePickerComponent {
2630
3374
  (change)="onChange($event)">
2631
3375
  </ark-shape-picker>`, isInline: true }); }
2632
3376
  }
2633
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkShapePickerComponent, decorators: [{
3377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkShapePickerComponent, decorators: [{
2634
3378
  type: Component,
2635
3379
  args: [{
2636
3380
  selector: "ark-shape-picker-wrapper",
@@ -2690,8 +3434,8 @@ class ArkSkeletonComponent {
2690
3434
  get element() {
2691
3435
  return this.host.nativeElement.querySelector(":scope > ark-skeleton");
2692
3436
  }
2693
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2694
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkSkeletonComponent, isStandalone: true, selector: "ark-skeleton-wrapper", inputs: { testid: "testid", rows: "rows", animated: "animated", rounded: "rounded", color: "color", ratio: "ratio", theme: "theme" }, ngImport: i0, template: `
3437
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3438
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkSkeletonComponent, isStandalone: true, selector: "ark-skeleton-wrapper", inputs: { testid: "testid", rows: "rows", animated: "animated", rounded: "rounded", color: "color", ratio: "ratio", theme: "theme" }, ngImport: i0, template: `
2695
3439
  <ark-skeleton
2696
3440
  [attr.testid]="testid"
2697
3441
  [attr.rows]="rows"
@@ -2703,7 +3447,7 @@ class ArkSkeletonComponent {
2703
3447
  <ng-content></ng-content>
2704
3448
  </ark-skeleton>`, isInline: true }); }
2705
3449
  }
2706
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSkeletonComponent, decorators: [{
3450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSkeletonComponent, decorators: [{
2707
3451
  type: Component,
2708
3452
  args: [{
2709
3453
  selector: "ark-skeleton-wrapper",
@@ -2748,8 +3492,8 @@ class ArkSpinnerComponent {
2748
3492
  get element() {
2749
3493
  return this.host.nativeElement.querySelector(":scope > ark-spinner");
2750
3494
  }
2751
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2752
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkSpinnerComponent, isStandalone: true, selector: "ark-spinner-wrapper", inputs: { testid: "testid", size: "size", intent: "intent", label: "label", theme: "theme", lang: "lang", localeJson: "localeJson" }, ngImport: i0, template: `
3495
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3496
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkSpinnerComponent, isStandalone: true, selector: "ark-spinner-wrapper", inputs: { testid: "testid", size: "size", intent: "intent", label: "label", theme: "theme", lang: "lang", localeJson: "localeJson" }, ngImport: i0, template: `
2753
3497
  <ark-spinner
2754
3498
  [attr.testid]="testid"
2755
3499
  [attr.size]="size"
@@ -2760,7 +3504,7 @@ class ArkSpinnerComponent {
2760
3504
  [attr.locale-json]="localeJson">
2761
3505
  </ark-spinner>`, isInline: true }); }
2762
3506
  }
2763
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSpinnerComponent, decorators: [{
3507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSpinnerComponent, decorators: [{
2764
3508
  type: Component,
2765
3509
  args: [{
2766
3510
  selector: "ark-spinner-wrapper",
@@ -2817,8 +3561,8 @@ class ArkSplitPaneComponent {
2817
3561
  ngOnDestroy() {
2818
3562
  this.paneRef?.nativeElement?.removeEventListener("ark-resize", this.resizeHandler);
2819
3563
  }
2820
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSplitPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2821
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkSplitPaneComponent, isStandalone: true, selector: "ark-split-pane-wrapper", inputs: { testid: "testid", direction: "direction", sizes: "sizes", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkResize: "arkResize" }, viewQueries: [{ propertyName: "paneRef", first: true, predicate: ["pane"], descendants: true }], ngImport: i0, template: `
3564
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSplitPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3565
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkSplitPaneComponent, isStandalone: true, selector: "ark-split-pane-wrapper", inputs: { testid: "testid", direction: "direction", sizes: "sizes", theme: "theme", lang: "lang", localeJson: "localeJson" }, outputs: { arkResize: "arkResize" }, viewQueries: [{ propertyName: "paneRef", first: true, predicate: ["pane"], descendants: true }], ngImport: i0, template: `
2822
3566
  <ark-split-pane
2823
3567
  #pane
2824
3568
  [attr.testid]="testid"
@@ -2830,7 +3574,7 @@ class ArkSplitPaneComponent {
2830
3574
  <ng-content></ng-content>
2831
3575
  </ark-split-pane>`, isInline: true }); }
2832
3576
  }
2833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSplitPaneComponent, decorators: [{
3577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSplitPaneComponent, decorators: [{
2834
3578
  type: Component,
2835
3579
  args: [{
2836
3580
  selector: "ark-split-pane-wrapper",
@@ -2880,8 +3624,8 @@ class ArkStatusDotComponent {
2880
3624
  get element() {
2881
3625
  return this.host.nativeElement.querySelector(":scope > ark-status-dot");
2882
3626
  }
2883
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkStatusDotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2884
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkStatusDotComponent, isStandalone: true, selector: "ark-status-dot-wrapper", inputs: { testid: "testid", intent: "intent", label: "label", size: "size", theme: "theme" }, ngImport: i0, template: `
3627
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkStatusDotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3628
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkStatusDotComponent, isStandalone: true, selector: "ark-status-dot-wrapper", inputs: { testid: "testid", intent: "intent", label: "label", size: "size", theme: "theme" }, ngImport: i0, template: `
2885
3629
  <ark-status-dot
2886
3630
  [attr.testid]="testid"
2887
3631
  [attr.intent]="intent"
@@ -2890,7 +3634,7 @@ class ArkStatusDotComponent {
2890
3634
  [attr.theme]="theme">
2891
3635
  </ark-status-dot>`, isInline: true }); }
2892
3636
  }
2893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkStatusDotComponent, decorators: [{
3637
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkStatusDotComponent, decorators: [{
2894
3638
  type: Component,
2895
3639
  args: [{
2896
3640
  selector: "ark-status-dot-wrapper",
@@ -2937,8 +3681,8 @@ class ArkSwitchComponent {
2937
3681
  onChange(event) {
2938
3682
  this.changed.emit(event);
2939
3683
  }
2940
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2941
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
3684
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3685
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
2942
3686
  <ark-switch
2943
3687
  [attr.testid]="testid"
2944
3688
  [attr.aria-label]="ariaLabel"
@@ -2956,9 +3700,10 @@ class ArkSwitchComponent {
2956
3700
  [attr.label-on]="labelOn"
2957
3701
  [attr.label-off]="labelOff"
2958
3702
  (change)="onChange($event)">
3703
+ <ng-content></ng-content>
2959
3704
  </ark-switch>`, isInline: true }); }
2960
3705
  }
2961
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkSwitchComponent, decorators: [{
3706
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSwitchComponent, decorators: [{
2962
3707
  type: Component,
2963
3708
  args: [{
2964
3709
  selector: "ark-switch-wrapper",
@@ -2982,6 +3727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
2982
3727
  [attr.label-on]="labelOn"
2983
3728
  [attr.label-off]="labelOff"
2984
3729
  (change)="onChange($event)">
3730
+ <ng-content></ng-content>
2985
3731
  </ark-switch>`
2986
3732
  }]
2987
3733
  }], ctorParameters: () => [], propDecorators: { testid: [{
@@ -3044,8 +3790,8 @@ class ArkTabsComponent {
3044
3790
  onChange(event) {
3045
3791
  this.changed.emit(event);
3046
3792
  }
3047
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3048
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkTabsComponent, isStandalone: true, selector: "ark-tabs-wrapper", inputs: { testid: "testid", value: "value", variant: "variant", size: "size", intent: "intent", rounded: "rounded", fill: "fill", theme: "theme", label: "label", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed", arkClose: "arkClose" }, viewQueries: [{ propertyName: "tabsRef", first: true, predicate: ["tabs"], descendants: true }], ngImport: i0, template: `
3793
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3794
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTabsComponent, isStandalone: true, selector: "ark-tabs-wrapper", inputs: { testid: "testid", value: "value", variant: "variant", size: "size", intent: "intent", rounded: "rounded", fill: "fill", theme: "theme", label: "label", lang: "lang", localeJson: "localeJson" }, outputs: { changed: "changed", arkClose: "arkClose" }, viewQueries: [{ propertyName: "tabsRef", first: true, predicate: ["tabs"], descendants: true }], ngImport: i0, template: `
3049
3795
  <ark-tabs
3050
3796
  #tabs
3051
3797
  [attr.testid]="testid"
@@ -3063,7 +3809,7 @@ class ArkTabsComponent {
3063
3809
  <ng-content></ng-content>
3064
3810
  </ark-tabs>`, isInline: true }); }
3065
3811
  }
3066
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTabsComponent, decorators: [{
3812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabsComponent, decorators: [{
3067
3813
  type: Component,
3068
3814
  args: [{
3069
3815
  selector: "ark-tabs-wrapper",
@@ -3132,8 +3878,8 @@ class ArkTabComponent {
3132
3878
  get element() {
3133
3879
  return this.host.nativeElement.querySelector(":scope > ark-tab");
3134
3880
  }
3135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3136
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkTabComponent, isStandalone: true, selector: "ark-tab-wrapper", inputs: { testid: "testid", value: "value", disabled: "disabled", controls: "controls", closable: "closable", dirty: "dirty" }, ngImport: i0, template: `
3881
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3882
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTabComponent, isStandalone: true, selector: "ark-tab-wrapper", inputs: { testid: "testid", value: "value", disabled: "disabled", controls: "controls", closable: "closable", dirty: "dirty" }, ngImport: i0, template: `
3137
3883
  <ark-tab
3138
3884
  [attr.testid]="testid"
3139
3885
  [attr.value]="value"
@@ -3144,7 +3890,7 @@ class ArkTabComponent {
3144
3890
  <ng-content></ng-content>
3145
3891
  </ark-tab>`, isInline: true }); }
3146
3892
  }
3147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTabComponent, decorators: [{
3893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabComponent, decorators: [{
3148
3894
  type: Component,
3149
3895
  args: [{
3150
3896
  selector: "ark-tab-wrapper",
@@ -3201,8 +3947,8 @@ class ArkTextareaComponent {
3201
3947
  get spellcheckAttr() {
3202
3948
  return this.spellcheck === undefined ? null : String(this.spellcheck);
3203
3949
  }
3204
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3205
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
3950
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3951
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
3206
3952
  <ark-textarea
3207
3953
  [attr.testid]="testid"
3208
3954
  [attr.label]="label"
@@ -3233,7 +3979,7 @@ class ArkTextareaComponent {
3233
3979
  <ng-content></ng-content>
3234
3980
  </ark-textarea>`, isInline: true }); }
3235
3981
  }
3236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTextareaComponent, decorators: [{
3982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTextareaComponent, decorators: [{
3237
3983
  type: Component,
3238
3984
  args: [{
3239
3985
  selector: "ark-textarea-wrapper",
@@ -3324,6 +4070,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3324
4070
  type: Input
3325
4071
  }] } });
3326
4072
 
4073
+ class ArkTimeComponent {
4074
+ constructor() {
4075
+ this.host = inject(ElementRef);
4076
+ ensureTooarkComponentsRegistered();
4077
+ }
4078
+ /** O `ark-time` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
4079
+ get element() {
4080
+ return this.host.nativeElement.querySelector(":scope > ark-time");
4081
+ }
4082
+ /** `Date` e número viram ISO: o atributo é texto. */
4083
+ get datetimeAttr() {
4084
+ const value = this.datetime;
4085
+ if (value === undefined || value === null || value === "")
4086
+ return null;
4087
+ if (typeof value === "string")
4088
+ return value;
4089
+ const date = new Date(value);
4090
+ return Number.isNaN(date.getTime()) ? null : date.toISOString();
4091
+ }
4092
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4093
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTimeComponent, isStandalone: true, selector: "ark-time-wrapper", inputs: { testid: "testid", datetime: "datetime", format: "format", lang: "lang" }, ngImport: i0, template: `
4094
+ <ark-time
4095
+ [attr.testid]="testid"
4096
+ [attr.datetime]="datetimeAttr"
4097
+ [attr.format]="format"
4098
+ [attr.lang]="lang"></ark-time>`, isInline: true }); }
4099
+ }
4100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTimeComponent, decorators: [{
4101
+ type: Component,
4102
+ args: [{
4103
+ selector: "ark-time-wrapper",
4104
+ standalone: true,
4105
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
4106
+ template: `
4107
+ <ark-time
4108
+ [attr.testid]="testid"
4109
+ [attr.datetime]="datetimeAttr"
4110
+ [attr.format]="format"
4111
+ [attr.lang]="lang"></ark-time>`
4112
+ }]
4113
+ }], ctorParameters: () => [], propDecorators: { testid: [{
4114
+ type: Input
4115
+ }], datetime: [{
4116
+ type: Input
4117
+ }], format: [{
4118
+ type: Input
4119
+ }], lang: [{
4120
+ type: Input
4121
+ }] } });
4122
+
3327
4123
  class ArkToasterComponent {
3328
4124
  constructor() {
3329
4125
  this.host = inject(ElementRef);
@@ -3344,8 +4140,8 @@ class ArkToasterComponent {
3344
4140
  onAction(event) {
3345
4141
  this.arkToastAction.emit(event);
3346
4142
  }
3347
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3348
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
4143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4144
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
3349
4145
  <ark-toaster
3350
4146
  [attr.testid]="testid"
3351
4147
  [attr.theme]="theme"
@@ -3358,7 +4154,7 @@ class ArkToasterComponent {
3358
4154
  (ark-toast-action)="onAction($event)">
3359
4155
  </ark-toaster>`, isInline: true }); }
3360
4156
  }
3361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToasterComponent, decorators: [{
4157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToasterComponent, decorators: [{
3362
4158
  type: Component,
3363
4159
  args: [{
3364
4160
  selector: "ark-toaster-wrapper",
@@ -3415,8 +4211,8 @@ class ArkToggleComponent {
3415
4211
  onChange(event) {
3416
4212
  this.changed.emit(event);
3417
4213
  }
3418
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3419
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", 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: `
4214
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4215
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", 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: `
3420
4216
  <ark-toggle
3421
4217
  [attr.testid]="testid"
3422
4218
  [attr.aria-label]="ariaLabel"
@@ -3430,7 +4226,7 @@ class ArkToggleComponent {
3430
4226
  <ng-content></ng-content>
3431
4227
  </ark-toggle>`, isInline: true }); }
3432
4228
  }
3433
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToggleComponent, decorators: [{
4229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleComponent, decorators: [{
3434
4230
  type: Component,
3435
4231
  args: [{
3436
4232
  selector: "ark-toggle-wrapper",
@@ -3484,8 +4280,8 @@ class ArkToggleGroupComponent {
3484
4280
  onChange(event) {
3485
4281
  this.changed.emit(event);
3486
4282
  }
3487
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToggleGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3488
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkToggleGroupComponent, isStandalone: true, selector: "ark-toggle-group-wrapper", inputs: { testid: "testid", value: "value", multiple: "multiple", disabled: "disabled", intent: "intent", theme: "theme", size: "size" }, outputs: { changed: "changed" }, ngImport: i0, template: `
4283
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4284
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkToggleGroupComponent, isStandalone: true, selector: "ark-toggle-group-wrapper", inputs: { testid: "testid", value: "value", multiple: "multiple", disabled: "disabled", intent: "intent", theme: "theme", size: "size" }, outputs: { changed: "changed" }, ngImport: i0, template: `
3489
4285
  <ark-toggle-group
3490
4286
  [attr.testid]="testid"
3491
4287
  [attr.value]="value"
@@ -3498,7 +4294,7 @@ class ArkToggleGroupComponent {
3498
4294
  <ng-content></ng-content>
3499
4295
  </ark-toggle-group>`, isInline: true }); }
3500
4296
  }
3501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkToggleGroupComponent, decorators: [{
4297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleGroupComponent, decorators: [{
3502
4298
  type: Component,
3503
4299
  args: [{
3504
4300
  selector: "ark-toggle-group-wrapper",
@@ -3549,8 +4345,8 @@ class ArkTooltipComponent {
3549
4345
  get element() {
3550
4346
  return this.host.nativeElement.querySelector(":scope > ark-tooltip");
3551
4347
  }
3552
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3553
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: ArkTooltipComponent, isStandalone: true, selector: "ark-tooltip-wrapper", inputs: { testid: "testid", content: "content", side: "side", delay: "delay", open: "open", theme: "theme" }, ngImport: i0, template: `
4348
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4349
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTooltipComponent, isStandalone: true, selector: "ark-tooltip-wrapper", inputs: { testid: "testid", content: "content", side: "side", delay: "delay", open: "open", theme: "theme" }, ngImport: i0, template: `
3554
4350
  <ark-tooltip
3555
4351
  [attr.testid]="testid"
3556
4352
  [attr.content]="content"
@@ -3561,7 +4357,7 @@ class ArkTooltipComponent {
3561
4357
  <ng-content></ng-content>
3562
4358
  </ark-tooltip>`, isInline: true }); }
3563
4359
  }
3564
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: ArkTooltipComponent, decorators: [{
4360
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTooltipComponent, decorators: [{
3565
4361
  type: Component,
3566
4362
  args: [{
3567
4363
  selector: "ark-tooltip-wrapper",
@@ -3592,9 +4388,182 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
3592
4388
  type: Input
3593
4389
  }] } });
3594
4390
 
4391
+ class ArkTreeComponent {
4392
+ constructor() {
4393
+ this.host = inject(ElementRef);
4394
+ this.checkboxes = false;
4395
+ this.propagate = false;
4396
+ this.arkToggle = new EventEmitter();
4397
+ this.arkSelectionChange = new EventEmitter();
4398
+ this.arkActivate = new EventEmitter();
4399
+ this.toggleHandler = (event) => this.arkToggle.emit(event);
4400
+ this.selectionHandler = (event) => this.arkSelectionChange.emit(event);
4401
+ this.activateHandler = (event) => this.arkActivate.emit(event);
4402
+ ensureTooarkComponentsRegistered();
4403
+ }
4404
+ /** O `ark-tree` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
4405
+ get element() {
4406
+ return this.host.nativeElement.querySelector(":scope > ark-tree");
4407
+ }
4408
+ get valueAttr() {
4409
+ if (Array.isArray(this.value))
4410
+ return this.value.length ? JSON.stringify(this.value) : null;
4411
+ return this.value || null;
4412
+ }
4413
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4414
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTreeComponent, isStandalone: true, selector: "ark-tree-wrapper", inputs: { testid: "testid", selection: "selection", checkboxes: "checkboxes", propagate: "propagate", value: "value", label: "label", ariaLabel: "ariaLabel", icons: "icons", iconColor: "iconColor", size: "size", theme: "theme" }, outputs: { arkToggle: "arkToggle", arkSelectionChange: "arkSelectionChange", arkActivate: "arkActivate" }, ngImport: i0, template: `
4415
+ <ark-tree
4416
+ [attr.testid]="testid"
4417
+ [attr.selection]="selection"
4418
+ [attr.checkboxes]="checkboxes ? '' : null"
4419
+ [attr.propagate]="propagate ? '' : null"
4420
+ [attr.value]="valueAttr"
4421
+ [attr.label]="label"
4422
+ [attr.aria-label]="ariaLabel"
4423
+ [attr.icons]="icons"
4424
+ [attr.icon-color]="iconColor"
4425
+ [attr.size]="size"
4426
+ [attr.theme]="theme"
4427
+ (ark-toggle)="toggleHandler($event)"
4428
+ (ark-selection-change)="selectionHandler($event)"
4429
+ (ark-activate)="activateHandler($event)">
4430
+ <ng-content></ng-content>
4431
+ </ark-tree>`, isInline: true }); }
4432
+ }
4433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeComponent, decorators: [{
4434
+ type: Component,
4435
+ args: [{
4436
+ selector: "ark-tree-wrapper",
4437
+ standalone: true,
4438
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
4439
+ template: `
4440
+ <ark-tree
4441
+ [attr.testid]="testid"
4442
+ [attr.selection]="selection"
4443
+ [attr.checkboxes]="checkboxes ? '' : null"
4444
+ [attr.propagate]="propagate ? '' : null"
4445
+ [attr.value]="valueAttr"
4446
+ [attr.label]="label"
4447
+ [attr.aria-label]="ariaLabel"
4448
+ [attr.icons]="icons"
4449
+ [attr.icon-color]="iconColor"
4450
+ [attr.size]="size"
4451
+ [attr.theme]="theme"
4452
+ (ark-toggle)="toggleHandler($event)"
4453
+ (ark-selection-change)="selectionHandler($event)"
4454
+ (ark-activate)="activateHandler($event)">
4455
+ <ng-content></ng-content>
4456
+ </ark-tree>`
4457
+ }]
4458
+ }], ctorParameters: () => [], propDecorators: { testid: [{
4459
+ type: Input
4460
+ }], selection: [{
4461
+ type: Input
4462
+ }], checkboxes: [{
4463
+ type: Input
4464
+ }], propagate: [{
4465
+ type: Input
4466
+ }], value: [{
4467
+ type: Input
4468
+ }], label: [{
4469
+ type: Input
4470
+ }], ariaLabel: [{
4471
+ type: Input
4472
+ }], icons: [{
4473
+ type: Input
4474
+ }], iconColor: [{
4475
+ type: Input
4476
+ }], size: [{
4477
+ type: Input
4478
+ }], theme: [{
4479
+ type: Input
4480
+ }], arkToggle: [{
4481
+ type: Output
4482
+ }], arkSelectionChange: [{
4483
+ type: Output
4484
+ }], arkActivate: [{
4485
+ type: Output
4486
+ }] } });
4487
+ // Entre a árvore (ou o item pai) e o item: display: contents, para a grid do item pai e a coluna da árvore verem o
4488
+ // ark-tree-item como se o wrapper não existisse. A árvore acha os itens por descendência.
4489
+ class ArkTreeItemComponent {
4490
+ constructor() {
4491
+ this.host = inject(ElementRef);
4492
+ this.expanded = false;
4493
+ /** Mostra o chevron sem filhos: carregue os filhos no `(arkToggle)` com `expanded: true`. */
4494
+ this.lazy = false;
4495
+ this.loading = false;
4496
+ this.selected = false;
4497
+ this.disabled = false;
4498
+ ensureTooarkComponentsRegistered();
4499
+ }
4500
+ /** O `ark-tree-item` que este wrapper renderiza; `null` antes da view. */
4501
+ get element() {
4502
+ return this.host.nativeElement.querySelector(":scope > ark-tree-item");
4503
+ }
4504
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4505
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.26", type: ArkTreeItemComponent, isStandalone: true, selector: "ark-tree-item-wrapper", inputs: { testid: "testid", value: "value", label: "label", icon: "icon", expanded: "expanded", lazy: "lazy", loading: "loading", selected: "selected", checked: "checked", disabled: "disabled" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
4506
+ <ark-tree-item
4507
+ [attr.testid]="testid"
4508
+ [attr.value]="value"
4509
+ [attr.label]="label"
4510
+ [attr.icon]="icon"
4511
+ [attr.expanded]="expanded ? '' : null"
4512
+ [attr.lazy]="lazy ? '' : null"
4513
+ [attr.loading]="loading ? '' : null"
4514
+ [attr.selected]="selected ? '' : null"
4515
+ [attr.checked]="checked === 'mixed' ? 'mixed' : checked ? '' : null"
4516
+ [attr.disabled]="disabled ? '' : null">
4517
+ <ng-content></ng-content>
4518
+ </ark-tree-item>`, isInline: true }); }
4519
+ }
4520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeItemComponent, decorators: [{
4521
+ type: Component,
4522
+ args: [{
4523
+ selector: "ark-tree-item-wrapper",
4524
+ standalone: true,
4525
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
4526
+ host: { style: "display: contents" },
4527
+ template: `
4528
+ <ark-tree-item
4529
+ [attr.testid]="testid"
4530
+ [attr.value]="value"
4531
+ [attr.label]="label"
4532
+ [attr.icon]="icon"
4533
+ [attr.expanded]="expanded ? '' : null"
4534
+ [attr.lazy]="lazy ? '' : null"
4535
+ [attr.loading]="loading ? '' : null"
4536
+ [attr.selected]="selected ? '' : null"
4537
+ [attr.checked]="checked === 'mixed' ? 'mixed' : checked ? '' : null"
4538
+ [attr.disabled]="disabled ? '' : null">
4539
+ <ng-content></ng-content>
4540
+ </ark-tree-item>`
4541
+ }]
4542
+ }], ctorParameters: () => [], propDecorators: { testid: [{
4543
+ type: Input
4544
+ }], value: [{
4545
+ type: Input
4546
+ }], label: [{
4547
+ type: Input
4548
+ }], icon: [{
4549
+ type: Input
4550
+ }], expanded: [{
4551
+ type: Input
4552
+ }], lazy: [{
4553
+ type: Input
4554
+ }], loading: [{
4555
+ type: Input
4556
+ }], selected: [{
4557
+ type: Input
4558
+ }], checked: [{
4559
+ type: Input
4560
+ }], disabled: [{
4561
+ type: Input
4562
+ }] } });
4563
+
3595
4564
  /**
3596
4565
  * Generated bundle index. Do not edit.
3597
4566
  */
3598
4567
 
3599
- export { ArkAlertComponent, ArkAvatarComponent, ArkBadgeComponent, ArkButtonComponent, ArkCalendarComponent, ArkCardComponent, ArkCarouselComponent, ArkCheckboxComponent, ArkClockComponent, ArkColorSwatchesComponent, ArkCommandItemComponent, ArkCommandPaletteComponent, ArkCopyButtonComponent, ArkDatepickerComponent, ArkDialogComponent, ArkDrawerComponent, ArkEmptyComponent, ArkFileInputComponent, ArkInputComponent, ArkKbdComponent, ArkKvEditorComponent, ArkMarkComponent, ArkMenuComponent, ArkMenuItemComponent, ArkProgressComponent, ArkRadioComponent, ArkSchedulerComponent, ArkSelectComponent, ArkShapePickerComponent, ArkSkeletonComponent, ArkSpinnerComponent, ArkSplitPaneComponent, ArkStatusDotComponent, ArkSwitchComponent, ArkTabComponent, ArkTabsComponent, ArkTextareaComponent, ArkToasterComponent, ArkToggleComponent, ArkToggleGroupComponent, ArkTooltipComponent };
4568
+ export { ArkAlertComponent, ArkAvatarComponent, ArkBadgeComponent, ArkButtonComponent, ArkCalendarComponent, ArkCardComponent, ArkCarouselComponent, ArkCheckboxComponent, ArkClockComponent, ArkColorSwatchesComponent, ArkCommandItemComponent, ArkCommandPaletteComponent, ArkCopyButtonComponent, ArkDataViewCardDirective, ArkDataViewCellDirective, ArkDataViewComponent, ArkDatepickerComponent, ArkDialogComponent, ArkDrawerComponent, ArkEmptyComponent, ArkFileInputComponent, ArkInputComponent, ArkKbdComponent, ArkKvEditorComponent, ArkMarkComponent, ArkMenuComponent, ArkMenuGroupComponent, ArkMenuItemComponent, ArkNavComponent, ArkNavGroupComponent, ArkNavItemComponent, ArkPaginationComponent, ArkProgressComponent, ArkRadioComponent, ArkSchedulerComponent, ArkSelectComponent, ArkShapePickerComponent, ArkSkeletonComponent, ArkSpinnerComponent, ArkSplitPaneComponent, ArkStatusDotComponent, ArkSwitchComponent, ArkTabComponent, ArkTabsComponent, ArkTextareaComponent, ArkTimeComponent, ArkToasterComponent, ArkToggleComponent, ArkToggleGroupComponent, ArkTooltipComponent, ArkTreeComponent, ArkTreeItemComponent };
3600
4569
  //# sourceMappingURL=tooark-angular.mjs.map