@tooark/angular 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -13
- package/README.pt-BR.md +20 -13
- package/fesm2022/tooark-angular-chart.mjs +77 -0
- package/fesm2022/tooark-angular-chart.mjs.map +1 -0
- package/fesm2022/tooark-angular-code.mjs +165 -0
- package/fesm2022/tooark-angular-code.mjs.map +1 -0
- package/fesm2022/tooark-angular-wysiwyg.mjs +163 -0
- package/fesm2022/tooark-angular-wysiwyg.mjs.map +1 -0
- package/fesm2022/tooark-angular.mjs +1085 -136
- package/fesm2022/tooark-angular.mjs.map +1 -1
- package/package.json +43 -4
- package/types/tooark-angular-chart.d.ts +31 -0
- package/types/tooark-angular-code.d.ts +63 -0
- package/types/tooark-angular-wysiwyg.d.ts +61 -0
- package/types/tooark-angular.d.ts +361 -15
|
@@ -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.
|
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
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.
|
|
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.
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
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.
|
|
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.
|
|
190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
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.
|
|
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,14 +245,17 @@ 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.
|
|
255
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
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", 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"
|
|
@@ -269,13 +272,15 @@ class ArkButtonComponent {
|
|
|
269
272
|
[attr.rounded]="rounded"
|
|
270
273
|
[attr.href]="href"
|
|
271
274
|
[attr.target]="target"
|
|
275
|
+
[attr.download]="download === true ? '' : download || null"
|
|
272
276
|
[attr.color]="color"
|
|
273
277
|
[attr.text-color]="textColor"
|
|
274
|
-
[attr.size]="size"
|
|
278
|
+
[attr.size]="size"
|
|
279
|
+
(ark-navigate)="navigateHandler($event)">
|
|
275
280
|
<ng-content></ng-content>
|
|
276
281
|
</ark-button>`, isInline: true }); }
|
|
277
282
|
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkButtonComponent, decorators: [{
|
|
279
284
|
type: Component,
|
|
280
285
|
args: [{
|
|
281
286
|
selector: "ark-button-wrapper",
|
|
@@ -298,9 +303,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
298
303
|
[attr.rounded]="rounded"
|
|
299
304
|
[attr.href]="href"
|
|
300
305
|
[attr.target]="target"
|
|
306
|
+
[attr.download]="download === true ? '' : download || null"
|
|
301
307
|
[attr.color]="color"
|
|
302
308
|
[attr.text-color]="textColor"
|
|
303
|
-
[attr.size]="size"
|
|
309
|
+
[attr.size]="size"
|
|
310
|
+
(ark-navigate)="navigateHandler($event)">
|
|
304
311
|
<ng-content></ng-content>
|
|
305
312
|
</ark-button>`
|
|
306
313
|
}]
|
|
@@ -336,16 +343,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
336
343
|
type: Input
|
|
337
344
|
}], target: [{
|
|
338
345
|
type: Input
|
|
346
|
+
}], download: [{
|
|
347
|
+
type: Input
|
|
339
348
|
}], color: [{
|
|
340
349
|
type: Input
|
|
341
350
|
}], textColor: [{
|
|
342
351
|
type: Input
|
|
352
|
+
}], arkNavigate: [{
|
|
353
|
+
type: Output
|
|
343
354
|
}] } });
|
|
344
355
|
|
|
345
356
|
class ArkCalendarComponent {
|
|
346
357
|
constructor() {
|
|
347
358
|
this.host = inject(ElementRef);
|
|
348
|
-
this.lang = "en";
|
|
349
359
|
this.theme = "auto";
|
|
350
360
|
this.intent = "primary";
|
|
351
361
|
this.arkChange = new EventEmitter();
|
|
@@ -368,8 +378,8 @@ class ArkCalendarComponent {
|
|
|
368
378
|
ngOnDestroy() {
|
|
369
379
|
this.calendarRef?.nativeElement?.removeEventListener("ark-change", this.handler);
|
|
370
380
|
}
|
|
371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
381
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
382
|
+
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
383
|
<ark-calendar
|
|
374
384
|
#calendar
|
|
375
385
|
[attr.testid]="testid"
|
|
@@ -385,7 +395,7 @@ class ArkCalendarComponent {
|
|
|
385
395
|
[attr.event-display]="eventDisplay">
|
|
386
396
|
</ark-calendar>`, isInline: true }); }
|
|
387
397
|
}
|
|
388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCalendarComponent, decorators: [{
|
|
389
399
|
type: Component,
|
|
390
400
|
args: [{
|
|
391
401
|
selector: "ark-calendar-wrapper",
|
|
@@ -440,24 +450,28 @@ class ArkCardComponent {
|
|
|
440
450
|
constructor() {
|
|
441
451
|
this.host = inject(ElementRef);
|
|
442
452
|
this.theme = "auto";
|
|
453
|
+
/** Ações que não cabem quebram em mais linhas, sem esmagar o título. */
|
|
454
|
+
this.wrapActions = false;
|
|
443
455
|
ensureTooarkComponentsRegistered();
|
|
444
456
|
}
|
|
445
457
|
/** O `ark-card` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
446
458
|
get element() {
|
|
447
459
|
return this.host.nativeElement.querySelector(":scope > ark-card");
|
|
448
460
|
}
|
|
449
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
450
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
461
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
462
|
+
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
463
|
<ark-card
|
|
452
464
|
[attr.testid]="testid"
|
|
453
465
|
[attr.heading]="heading"
|
|
454
466
|
[attr.padding]="padding"
|
|
455
467
|
[attr.rounded]="rounded"
|
|
456
|
-
[attr.theme]="theme"
|
|
468
|
+
[attr.theme]="theme"
|
|
469
|
+
[attr.heading-level]="headingLevel"
|
|
470
|
+
[attr.wrap-actions]="wrapActions ? '' : null">
|
|
457
471
|
<ng-content></ng-content>
|
|
458
472
|
</ark-card>`, isInline: true }); }
|
|
459
473
|
}
|
|
460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCardComponent, decorators: [{
|
|
461
475
|
type: Component,
|
|
462
476
|
args: [{
|
|
463
477
|
selector: "ark-card-wrapper",
|
|
@@ -469,7 +483,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
469
483
|
[attr.heading]="heading"
|
|
470
484
|
[attr.padding]="padding"
|
|
471
485
|
[attr.rounded]="rounded"
|
|
472
|
-
[attr.theme]="theme"
|
|
486
|
+
[attr.theme]="theme"
|
|
487
|
+
[attr.heading-level]="headingLevel"
|
|
488
|
+
[attr.wrap-actions]="wrapActions ? '' : null">
|
|
473
489
|
<ng-content></ng-content>
|
|
474
490
|
</ark-card>`
|
|
475
491
|
}]
|
|
@@ -483,6 +499,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
483
499
|
type: Input
|
|
484
500
|
}], theme: [{
|
|
485
501
|
type: Input
|
|
502
|
+
}], headingLevel: [{
|
|
503
|
+
type: Input
|
|
504
|
+
}], wrapActions: [{
|
|
505
|
+
type: Input
|
|
486
506
|
}] } });
|
|
487
507
|
|
|
488
508
|
class ArkCarouselComponent {
|
|
@@ -514,8 +534,8 @@ class ArkCarouselComponent {
|
|
|
514
534
|
ngOnDestroy() {
|
|
515
535
|
this.carouselRef?.nativeElement?.removeEventListener("ark-slide-change", this.handler);
|
|
516
536
|
}
|
|
517
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
518
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
538
|
+
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
539
|
<ark-carousel
|
|
520
540
|
#carousel
|
|
521
541
|
[attr.testid]="testid"
|
|
@@ -535,7 +555,7 @@ class ArkCarouselComponent {
|
|
|
535
555
|
<ng-content></ng-content>
|
|
536
556
|
</ark-carousel>`, isInline: true }); }
|
|
537
557
|
}
|
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCarouselComponent, decorators: [{
|
|
539
559
|
type: Component,
|
|
540
560
|
args: [{
|
|
541
561
|
selector: "ark-carousel-wrapper",
|
|
@@ -616,8 +636,8 @@ class ArkCheckboxComponent {
|
|
|
616
636
|
onChange(event) {
|
|
617
637
|
this.changed.emit(event);
|
|
618
638
|
}
|
|
619
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
620
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
640
|
+
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
641
|
<ark-checkbox
|
|
622
642
|
[attr.testid]="testid"
|
|
623
643
|
[attr.aria-label]="ariaLabel"
|
|
@@ -635,7 +655,7 @@ class ArkCheckboxComponent {
|
|
|
635
655
|
<ng-content></ng-content>
|
|
636
656
|
</ark-checkbox>`, isInline: true }); }
|
|
637
657
|
}
|
|
638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCheckboxComponent, decorators: [{
|
|
639
659
|
type: Component,
|
|
640
660
|
args: [{
|
|
641
661
|
selector: "ark-checkbox-wrapper",
|
|
@@ -690,7 +710,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
690
710
|
class ArkClockComponent {
|
|
691
711
|
constructor() {
|
|
692
712
|
this.host = inject(ElementRef);
|
|
693
|
-
this.lang = "en";
|
|
694
713
|
this.theme = "auto";
|
|
695
714
|
this.intent = "primary";
|
|
696
715
|
this.seconds = false;
|
|
@@ -709,8 +728,8 @@ class ArkClockComponent {
|
|
|
709
728
|
ngOnDestroy() {
|
|
710
729
|
this.clockRef?.nativeElement?.removeEventListener("ark-change", this.handler);
|
|
711
730
|
}
|
|
712
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
713
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
731
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkClockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
732
|
+
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
733
|
<ark-clock
|
|
715
734
|
#clock
|
|
716
735
|
[attr.testid]="testid"
|
|
@@ -724,7 +743,7 @@ class ArkClockComponent {
|
|
|
724
743
|
[attr.hours-format]="hoursFormat">
|
|
725
744
|
</ark-clock>`, isInline: true }); }
|
|
726
745
|
}
|
|
727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkClockComponent, decorators: [{
|
|
728
747
|
type: Component,
|
|
729
748
|
args: [{
|
|
730
749
|
selector: "ark-clock-wrapper",
|
|
@@ -789,8 +808,8 @@ class ArkColorSwatchesComponent {
|
|
|
789
808
|
onChange(event) {
|
|
790
809
|
this.changed.emit(event);
|
|
791
810
|
}
|
|
792
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
793
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
811
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkColorSwatchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
812
|
+
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
813
|
<ark-color-swatches
|
|
795
814
|
[attr.testid]="testid"
|
|
796
815
|
[attr.aria-label]="ariaLabel"
|
|
@@ -803,7 +822,7 @@ class ArkColorSwatchesComponent {
|
|
|
803
822
|
(change)="onChange($event)">
|
|
804
823
|
</ark-color-swatches>`, isInline: true }); }
|
|
805
824
|
}
|
|
806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkColorSwatchesComponent, decorators: [{
|
|
807
826
|
type: Component,
|
|
808
827
|
args: [{
|
|
809
828
|
selector: "ark-color-swatches-wrapper",
|
|
@@ -870,8 +889,8 @@ class ArkCommandPaletteComponent {
|
|
|
870
889
|
get element() {
|
|
871
890
|
return this.host.nativeElement.querySelector(":scope > ark-command-palette");
|
|
872
891
|
}
|
|
873
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
874
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
892
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
893
|
+
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
894
|
<ark-command-palette
|
|
876
895
|
[attr.testid]="testid"
|
|
877
896
|
[attr.open]="open ? '' : null"
|
|
@@ -894,7 +913,7 @@ class ArkCommandPaletteComponent {
|
|
|
894
913
|
<ng-content></ng-content>
|
|
895
914
|
</ark-command-palette>`, isInline: true }); }
|
|
896
915
|
}
|
|
897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandPaletteComponent, decorators: [{
|
|
898
917
|
type: Component,
|
|
899
918
|
args: [{
|
|
900
919
|
selector: "ark-command-palette-wrapper",
|
|
@@ -971,8 +990,8 @@ class ArkCommandItemComponent {
|
|
|
971
990
|
get element() {
|
|
972
991
|
return this.host.nativeElement.querySelector(":scope > ark-command-item");
|
|
973
992
|
}
|
|
974
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
975
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
993
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
994
|
+
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
995
|
<ark-command-item
|
|
977
996
|
[attr.testid]="testid"
|
|
978
997
|
[attr.value]="value"
|
|
@@ -982,7 +1001,7 @@ class ArkCommandItemComponent {
|
|
|
982
1001
|
<ng-content></ng-content>
|
|
983
1002
|
</ark-command-item>`, isInline: true }); }
|
|
984
1003
|
}
|
|
985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCommandItemComponent, decorators: [{
|
|
986
1005
|
type: Component,
|
|
987
1006
|
args: [{
|
|
988
1007
|
selector: "ark-command-item-wrapper",
|
|
@@ -1037,8 +1056,8 @@ class ArkCopyButtonComponent {
|
|
|
1037
1056
|
ngOnDestroy() {
|
|
1038
1057
|
this.buttonRef?.nativeElement?.removeEventListener("ark-copy", this.copyHandler);
|
|
1039
1058
|
}
|
|
1040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1041
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1060
|
+
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
1061
|
<ark-copy-button
|
|
1043
1062
|
#button
|
|
1044
1063
|
[attr.testid]="testid"
|
|
@@ -1062,7 +1081,7 @@ class ArkCopyButtonComponent {
|
|
|
1062
1081
|
<ng-content></ng-content>
|
|
1063
1082
|
</ark-copy-button>`, isInline: true }); }
|
|
1064
1083
|
}
|
|
1065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkCopyButtonComponent, decorators: [{
|
|
1066
1085
|
type: Component,
|
|
1067
1086
|
args: [{
|
|
1068
1087
|
selector: "ark-copy-button-wrapper",
|
|
@@ -1135,10 +1154,352 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1135
1154
|
args: ["button", { static: false }]
|
|
1136
1155
|
}] } });
|
|
1137
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* Conteúdo próprio das células de uma coluna do `ark-data-view-wrapper`, em template do Angular:
|
|
1159
|
+
* `<ng-template arkDataViewCell="name" let-row let-value="value">...</ng-template>`. Vale sobre o `render` da coluna.
|
|
1160
|
+
*/
|
|
1161
|
+
class ArkDataViewCellDirective {
|
|
1162
|
+
constructor() {
|
|
1163
|
+
/** `key` da coluna que este template desenha. */
|
|
1164
|
+
this.key = "";
|
|
1165
|
+
this.template = inject(TemplateRef);
|
|
1166
|
+
}
|
|
1167
|
+
static ngTemplateContextGuard(_directive, _context) {
|
|
1168
|
+
return true;
|
|
1169
|
+
}
|
|
1170
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1171
|
+
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 }); }
|
|
1172
|
+
}
|
|
1173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCellDirective, decorators: [{
|
|
1174
|
+
type: Directive,
|
|
1175
|
+
args: [{
|
|
1176
|
+
selector: "ng-template[arkDataViewCell]",
|
|
1177
|
+
standalone: true
|
|
1178
|
+
}]
|
|
1179
|
+
}], propDecorators: { key: [{
|
|
1180
|
+
type: Input,
|
|
1181
|
+
args: ["arkDataViewCell"]
|
|
1182
|
+
}] } });
|
|
1183
|
+
/**
|
|
1184
|
+
* Corpo de cada card do `ark-data-view-wrapper`, em template do Angular, no lugar da grade de campos:
|
|
1185
|
+
* `<ng-template arkDataViewCard let-row let-index="index">...</ng-template>`. Vale sobre o input `cardRender`.
|
|
1186
|
+
*/
|
|
1187
|
+
class ArkDataViewCardDirective {
|
|
1188
|
+
constructor() {
|
|
1189
|
+
this.template = inject(TemplateRef);
|
|
1190
|
+
}
|
|
1191
|
+
static ngTemplateContextGuard(_directive, _context) {
|
|
1192
|
+
return true;
|
|
1193
|
+
}
|
|
1194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1195
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.26", type: ArkDataViewCardDirective, isStandalone: true, selector: "ng-template[arkDataViewCard]", ngImport: i0 }); }
|
|
1196
|
+
}
|
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewCardDirective, decorators: [{
|
|
1198
|
+
type: Directive,
|
|
1199
|
+
args: [{
|
|
1200
|
+
selector: "ng-template[arkDataViewCard]",
|
|
1201
|
+
standalone: true
|
|
1202
|
+
}]
|
|
1203
|
+
}] });
|
|
1204
|
+
class ArkDataViewComponent {
|
|
1205
|
+
constructor() {
|
|
1206
|
+
this.host = inject(ElementRef);
|
|
1207
|
+
this.viewContainer = inject(ViewContainerRef);
|
|
1208
|
+
/** Esconde o seletor de visualização do canto; `view` continua decidindo a apresentação. */
|
|
1209
|
+
this.noViewSelector = false;
|
|
1210
|
+
this.searchable = false;
|
|
1211
|
+
this.selectable = false;
|
|
1212
|
+
this.reorderable = false;
|
|
1213
|
+
this.clickable = false;
|
|
1214
|
+
this.loading = false;
|
|
1215
|
+
this.size = "md";
|
|
1216
|
+
this.theme = "auto";
|
|
1217
|
+
/** Página, itens por página, ordenação ou busca mudaram: detail é a consulta inteira mais `reason`. */
|
|
1218
|
+
this.arkQueryChange = new EventEmitter();
|
|
1219
|
+
/** O usuário trocou a apresentação no seletor. */
|
|
1220
|
+
this.arkViewChange = new EventEmitter();
|
|
1221
|
+
/** Clique, Enter ou Espaço numa linha ou card (com clickable): detail é { row, key, index }. */
|
|
1222
|
+
this.arkRowClick = new EventEmitter();
|
|
1223
|
+
/** A seleção mudou por ação do usuário: detail é { selected, rows }. */
|
|
1224
|
+
this.arkSelectionChange = new EventEmitter();
|
|
1225
|
+
/** Um registro foi movido: detail é { key, from, to, rows }. Persistir é do app. */
|
|
1226
|
+
this.arkReorder = new EventEmitter();
|
|
1227
|
+
/** Views dos templates, pelo nó que o elemento recebeu no lugar do conteúdo da célula (ou do corpo do card). */
|
|
1228
|
+
this.embedded = new Map();
|
|
1229
|
+
this.handlers = [
|
|
1230
|
+
// 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.
|
|
1231
|
+
["ark-render", () => this.pruneViews()],
|
|
1232
|
+
["ark-query-change", (event) => this.arkQueryChange.emit(event)],
|
|
1233
|
+
["ark-view-change", (event) => this.arkViewChange.emit(event)],
|
|
1234
|
+
["ark-row-click", (event) => this.arkRowClick.emit(event)],
|
|
1235
|
+
[
|
|
1236
|
+
"ark-selection-change",
|
|
1237
|
+
(event) => this.arkSelectionChange.emit(event)
|
|
1238
|
+
],
|
|
1239
|
+
["ark-reorder", (event) => this.arkReorder.emit(event)]
|
|
1240
|
+
];
|
|
1241
|
+
ensureTooarkComponentsRegistered();
|
|
1242
|
+
}
|
|
1243
|
+
/** O `ark-data-view` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
1244
|
+
get element() {
|
|
1245
|
+
return this.host.nativeElement.querySelector(":scope > ark-data-view");
|
|
1246
|
+
}
|
|
1247
|
+
get pageSizesAttr() {
|
|
1248
|
+
return this.pageSizes && this.pageSizes.length > 0 ? this.pageSizes.join(",") : null;
|
|
1249
|
+
}
|
|
1250
|
+
get sortAttr() {
|
|
1251
|
+
const sort = this.sort;
|
|
1252
|
+
return sort && typeof sort === "object" ? `${sort.key}:${sort.direction}` : sort || null;
|
|
1253
|
+
}
|
|
1254
|
+
ngAfterContentInit() {
|
|
1255
|
+
// Um template de célula que entra ou sai depois (um @if em volta dele) muda o que o elemento desenha.
|
|
1256
|
+
this.templatesSubscription = this.cellTemplates?.changes.subscribe(() => this.syncColumns());
|
|
1257
|
+
}
|
|
1258
|
+
ngAfterContentChecked() {
|
|
1259
|
+
// O template de card é um só (ContentChild, sem `changes`): conferido a cada checagem do conteúdo.
|
|
1260
|
+
if (this.viewRef && this.cardTemplate?.template !== this.appliedCard)
|
|
1261
|
+
this.syncCardRender();
|
|
1262
|
+
}
|
|
1263
|
+
ngAfterViewInit() {
|
|
1264
|
+
for (const [name, handler] of this.handlers)
|
|
1265
|
+
this.viewRef?.nativeElement?.addEventListener(name, handler);
|
|
1266
|
+
this.syncColumns();
|
|
1267
|
+
this.syncRows();
|
|
1268
|
+
this.syncSelected();
|
|
1269
|
+
this.syncCardRender();
|
|
1270
|
+
}
|
|
1271
|
+
ngOnChanges(changes) {
|
|
1272
|
+
// Só o que mudou é regravado: `rows` novo não pode ser efeito colateral de outro input mudando.
|
|
1273
|
+
if (changes.columns)
|
|
1274
|
+
this.syncColumns();
|
|
1275
|
+
if (changes.rows)
|
|
1276
|
+
this.syncRows();
|
|
1277
|
+
if (changes.selected)
|
|
1278
|
+
this.syncSelected();
|
|
1279
|
+
if (changes.cardRender)
|
|
1280
|
+
this.syncCardRender();
|
|
1281
|
+
}
|
|
1282
|
+
ngOnDestroy() {
|
|
1283
|
+
this.templatesSubscription?.unsubscribe();
|
|
1284
|
+
for (const [name, handler] of this.handlers)
|
|
1285
|
+
this.viewRef?.nativeElement?.removeEventListener(name, handler);
|
|
1286
|
+
for (const view of this.embedded.values())
|
|
1287
|
+
view.destroy();
|
|
1288
|
+
this.embedded.clear();
|
|
1289
|
+
}
|
|
1290
|
+
// Instância um template para uma célula: a view fica no contêiner do wrapper (entra na detecção de mudanças do
|
|
1291
|
+
// componente que declarou o template) e os nós dela vão para o nó que o elemento põe na célula.
|
|
1292
|
+
createView(template, context) {
|
|
1293
|
+
const view = this.viewContainer.createEmbeddedView(template, context);
|
|
1294
|
+
view.detectChanges();
|
|
1295
|
+
const node = document.createElement("span");
|
|
1296
|
+
node.style.display = "contents";
|
|
1297
|
+
for (const root of view.rootNodes)
|
|
1298
|
+
node.appendChild(root);
|
|
1299
|
+
this.embedded.set(node, view);
|
|
1300
|
+
return node;
|
|
1301
|
+
}
|
|
1302
|
+
pruneViews() {
|
|
1303
|
+
for (const [node, view] of Array.from(this.embedded)) {
|
|
1304
|
+
if (node.isConnected)
|
|
1305
|
+
continue;
|
|
1306
|
+
view.destroy();
|
|
1307
|
+
this.embedded.delete(node);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
// Colunas com um template `arkDataViewCell` de mesma `key` ganham um `render` que instancia o template; as demais
|
|
1311
|
+
// vão como vieram (o `render` delas devolve nó ou texto, como no elemento).
|
|
1312
|
+
syncColumns() {
|
|
1313
|
+
const el = this.viewRef?.nativeElement;
|
|
1314
|
+
if (!el || !this.columns)
|
|
1315
|
+
return;
|
|
1316
|
+
const templates = new Map((this.cellTemplates?.toArray() ?? []).map((cell) => [cell.key, cell.template]));
|
|
1317
|
+
el.columns = this.columns.map((column) => {
|
|
1318
|
+
const template = templates.get(column.key);
|
|
1319
|
+
if (!template)
|
|
1320
|
+
return column;
|
|
1321
|
+
return {
|
|
1322
|
+
...column,
|
|
1323
|
+
render: (context) => this.createView(template, { $implicit: context.row, ...context })
|
|
1324
|
+
};
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
syncRows() {
|
|
1328
|
+
const el = this.viewRef?.nativeElement;
|
|
1329
|
+
if (el && this.rows)
|
|
1330
|
+
el.rows = this.rows;
|
|
1331
|
+
}
|
|
1332
|
+
syncSelected() {
|
|
1333
|
+
const el = this.viewRef?.nativeElement;
|
|
1334
|
+
if (el && this.selected)
|
|
1335
|
+
el.selected = this.selected;
|
|
1336
|
+
}
|
|
1337
|
+
// Função, então propriedade; só é gravada quando o app dá uma (ou o template de card), para a view sem ela não
|
|
1338
|
+
// refazer os cards.
|
|
1339
|
+
syncCardRender() {
|
|
1340
|
+
const el = this.viewRef?.nativeElement;
|
|
1341
|
+
if (!el)
|
|
1342
|
+
return;
|
|
1343
|
+
const template = this.cardTemplate?.template;
|
|
1344
|
+
this.appliedCard = template;
|
|
1345
|
+
if (template) {
|
|
1346
|
+
el.cardRender = (context) => this.createView(template, { $implicit: context.row, ...context });
|
|
1347
|
+
}
|
|
1348
|
+
else if (this.cardRender || el.cardRender) {
|
|
1349
|
+
el.cardRender = this.cardRender ?? null;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1353
|
+
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: `
|
|
1354
|
+
<ark-data-view
|
|
1355
|
+
#dataView
|
|
1356
|
+
[attr.testid]="testid"
|
|
1357
|
+
[attr.row-key]="rowKey"
|
|
1358
|
+
[attr.view]="view"
|
|
1359
|
+
[attr.no-view-selector]="noViewSelector ? '' : null"
|
|
1360
|
+
[attr.breakpoint]="breakpoint"
|
|
1361
|
+
[attr.mode]="mode"
|
|
1362
|
+
[attr.page]="page"
|
|
1363
|
+
[attr.page-size]="pageSize"
|
|
1364
|
+
[attr.page-sizes]="pageSizesAttr"
|
|
1365
|
+
[attr.total]="total"
|
|
1366
|
+
[attr.sort]="sortAttr"
|
|
1367
|
+
[attr.search]="search || null"
|
|
1368
|
+
[attr.searchable]="searchable ? '' : null"
|
|
1369
|
+
[attr.search-placeholder]="searchPlaceholder"
|
|
1370
|
+
[attr.search-debounce]="searchDebounce"
|
|
1371
|
+
[attr.selectable]="selectable ? '' : null"
|
|
1372
|
+
[attr.reorderable]="reorderable ? '' : null"
|
|
1373
|
+
[attr.clickable]="clickable ? '' : null"
|
|
1374
|
+
[attr.loading]="loading ? '' : null"
|
|
1375
|
+
[attr.card-columns]="cardColumns"
|
|
1376
|
+
[attr.label]="label"
|
|
1377
|
+
[attr.size]="size"
|
|
1378
|
+
[attr.theme]="theme"
|
|
1379
|
+
[attr.lang]="lang"
|
|
1380
|
+
[attr.locale-json]="localeJson">
|
|
1381
|
+
<ng-content></ng-content>
|
|
1382
|
+
</ark-data-view>`, isInline: true }); }
|
|
1383
|
+
}
|
|
1384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDataViewComponent, decorators: [{
|
|
1385
|
+
type: Component,
|
|
1386
|
+
args: [{
|
|
1387
|
+
selector: "ark-data-view-wrapper",
|
|
1388
|
+
standalone: true,
|
|
1389
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1390
|
+
template: `
|
|
1391
|
+
<ark-data-view
|
|
1392
|
+
#dataView
|
|
1393
|
+
[attr.testid]="testid"
|
|
1394
|
+
[attr.row-key]="rowKey"
|
|
1395
|
+
[attr.view]="view"
|
|
1396
|
+
[attr.no-view-selector]="noViewSelector ? '' : null"
|
|
1397
|
+
[attr.breakpoint]="breakpoint"
|
|
1398
|
+
[attr.mode]="mode"
|
|
1399
|
+
[attr.page]="page"
|
|
1400
|
+
[attr.page-size]="pageSize"
|
|
1401
|
+
[attr.page-sizes]="pageSizesAttr"
|
|
1402
|
+
[attr.total]="total"
|
|
1403
|
+
[attr.sort]="sortAttr"
|
|
1404
|
+
[attr.search]="search || null"
|
|
1405
|
+
[attr.searchable]="searchable ? '' : null"
|
|
1406
|
+
[attr.search-placeholder]="searchPlaceholder"
|
|
1407
|
+
[attr.search-debounce]="searchDebounce"
|
|
1408
|
+
[attr.selectable]="selectable ? '' : null"
|
|
1409
|
+
[attr.reorderable]="reorderable ? '' : null"
|
|
1410
|
+
[attr.clickable]="clickable ? '' : null"
|
|
1411
|
+
[attr.loading]="loading ? '' : null"
|
|
1412
|
+
[attr.card-columns]="cardColumns"
|
|
1413
|
+
[attr.label]="label"
|
|
1414
|
+
[attr.size]="size"
|
|
1415
|
+
[attr.theme]="theme"
|
|
1416
|
+
[attr.lang]="lang"
|
|
1417
|
+
[attr.locale-json]="localeJson">
|
|
1418
|
+
<ng-content></ng-content>
|
|
1419
|
+
</ark-data-view>`
|
|
1420
|
+
}]
|
|
1421
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
1422
|
+
type: Input
|
|
1423
|
+
}], rows: [{
|
|
1424
|
+
type: Input
|
|
1425
|
+
}], columns: [{
|
|
1426
|
+
type: Input
|
|
1427
|
+
}], rowKey: [{
|
|
1428
|
+
type: Input
|
|
1429
|
+
}], view: [{
|
|
1430
|
+
type: Input
|
|
1431
|
+
}], noViewSelector: [{
|
|
1432
|
+
type: Input
|
|
1433
|
+
}], breakpoint: [{
|
|
1434
|
+
type: Input
|
|
1435
|
+
}], mode: [{
|
|
1436
|
+
type: Input
|
|
1437
|
+
}], page: [{
|
|
1438
|
+
type: Input
|
|
1439
|
+
}], pageSize: [{
|
|
1440
|
+
type: Input
|
|
1441
|
+
}], pageSizes: [{
|
|
1442
|
+
type: Input
|
|
1443
|
+
}], total: [{
|
|
1444
|
+
type: Input
|
|
1445
|
+
}], sort: [{
|
|
1446
|
+
type: Input
|
|
1447
|
+
}], search: [{
|
|
1448
|
+
type: Input
|
|
1449
|
+
}], searchable: [{
|
|
1450
|
+
type: Input
|
|
1451
|
+
}], searchPlaceholder: [{
|
|
1452
|
+
type: Input
|
|
1453
|
+
}], searchDebounce: [{
|
|
1454
|
+
type: Input
|
|
1455
|
+
}], selectable: [{
|
|
1456
|
+
type: Input
|
|
1457
|
+
}], selected: [{
|
|
1458
|
+
type: Input
|
|
1459
|
+
}], reorderable: [{
|
|
1460
|
+
type: Input
|
|
1461
|
+
}], clickable: [{
|
|
1462
|
+
type: Input
|
|
1463
|
+
}], loading: [{
|
|
1464
|
+
type: Input
|
|
1465
|
+
}], cardColumns: [{
|
|
1466
|
+
type: Input
|
|
1467
|
+
}], cardRender: [{
|
|
1468
|
+
type: Input
|
|
1469
|
+
}], label: [{
|
|
1470
|
+
type: Input
|
|
1471
|
+
}], size: [{
|
|
1472
|
+
type: Input
|
|
1473
|
+
}], theme: [{
|
|
1474
|
+
type: Input
|
|
1475
|
+
}], lang: [{
|
|
1476
|
+
type: Input
|
|
1477
|
+
}], localeJson: [{
|
|
1478
|
+
type: Input
|
|
1479
|
+
}], arkQueryChange: [{
|
|
1480
|
+
type: Output
|
|
1481
|
+
}], arkViewChange: [{
|
|
1482
|
+
type: Output
|
|
1483
|
+
}], arkRowClick: [{
|
|
1484
|
+
type: Output
|
|
1485
|
+
}], arkSelectionChange: [{
|
|
1486
|
+
type: Output
|
|
1487
|
+
}], arkReorder: [{
|
|
1488
|
+
type: Output
|
|
1489
|
+
}], viewRef: [{
|
|
1490
|
+
type: ViewChild,
|
|
1491
|
+
args: ["dataView", { static: false }]
|
|
1492
|
+
}], cellTemplates: [{
|
|
1493
|
+
type: ContentChildren,
|
|
1494
|
+
args: [ArkDataViewCellDirective]
|
|
1495
|
+
}], cardTemplate: [{
|
|
1496
|
+
type: ContentChild,
|
|
1497
|
+
args: [ArkDataViewCardDirective]
|
|
1498
|
+
}] } });
|
|
1499
|
+
|
|
1138
1500
|
class ArkDatepickerComponent {
|
|
1139
1501
|
constructor() {
|
|
1140
1502
|
this.host = inject(ElementRef);
|
|
1141
|
-
this.lang = "en";
|
|
1142
1503
|
this.theme = "auto";
|
|
1143
1504
|
this.intent = "primary";
|
|
1144
1505
|
this.mode = "datetime";
|
|
@@ -1165,8 +1526,8 @@ class ArkDatepickerComponent {
|
|
|
1165
1526
|
ngOnDestroy() {
|
|
1166
1527
|
this.pickerRef?.nativeElement?.removeEventListener("ark-change", this.handler);
|
|
1167
1528
|
}
|
|
1168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1529
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1530
|
+
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
1531
|
<ark-datepicker
|
|
1171
1532
|
#picker
|
|
1172
1533
|
[attr.testid]="testid"
|
|
@@ -1191,7 +1552,7 @@ class ArkDatepickerComponent {
|
|
|
1191
1552
|
[attr.hours-format]="hoursFormat">
|
|
1192
1553
|
</ark-datepicker>`, isInline: true }); }
|
|
1193
1554
|
}
|
|
1194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDatepickerComponent, decorators: [{
|
|
1195
1556
|
type: Component,
|
|
1196
1557
|
args: [{
|
|
1197
1558
|
selector: "ark-datepicker-wrapper",
|
|
@@ -1296,8 +1657,8 @@ class ArkDialogComponent {
|
|
|
1296
1657
|
get element() {
|
|
1297
1658
|
return this.host.nativeElement.querySelector(":scope > ark-dialog");
|
|
1298
1659
|
}
|
|
1299
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1300
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1661
|
+
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
1662
|
<ark-dialog
|
|
1302
1663
|
[attr.testid]="testid"
|
|
1303
1664
|
[attr.open]="open ? '' : null"
|
|
@@ -1309,6 +1670,7 @@ class ArkDialogComponent {
|
|
|
1309
1670
|
[attr.width]="width"
|
|
1310
1671
|
[attr.height]="height"
|
|
1311
1672
|
[attr.theme]="theme"
|
|
1673
|
+
[attr.heading-level]="headingLevel"
|
|
1312
1674
|
[attr.lang]="lang"
|
|
1313
1675
|
[attr.locale-json]="localeJson"
|
|
1314
1676
|
[attr.aria-label]="ariaLabel"
|
|
@@ -1317,7 +1679,7 @@ class ArkDialogComponent {
|
|
|
1317
1679
|
<ng-content></ng-content>
|
|
1318
1680
|
</ark-dialog>`, isInline: true }); }
|
|
1319
1681
|
}
|
|
1320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDialogComponent, decorators: [{
|
|
1321
1683
|
type: Component,
|
|
1322
1684
|
args: [{
|
|
1323
1685
|
selector: "ark-dialog-wrapper",
|
|
@@ -1335,6 +1697,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1335
1697
|
[attr.width]="width"
|
|
1336
1698
|
[attr.height]="height"
|
|
1337
1699
|
[attr.theme]="theme"
|
|
1700
|
+
[attr.heading-level]="headingLevel"
|
|
1338
1701
|
[attr.lang]="lang"
|
|
1339
1702
|
[attr.locale-json]="localeJson"
|
|
1340
1703
|
[attr.aria-label]="ariaLabel"
|
|
@@ -1363,6 +1726,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1363
1726
|
type: Input
|
|
1364
1727
|
}], theme: [{
|
|
1365
1728
|
type: Input
|
|
1729
|
+
}], headingLevel: [{
|
|
1730
|
+
type: Input
|
|
1366
1731
|
}], lang: [{
|
|
1367
1732
|
type: Input
|
|
1368
1733
|
}], localeJson: [{
|
|
@@ -1404,8 +1769,8 @@ class ArkDrawerComponent {
|
|
|
1404
1769
|
get element() {
|
|
1405
1770
|
return this.host.nativeElement.querySelector(":scope > ark-drawer");
|
|
1406
1771
|
}
|
|
1407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1772
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1773
|
+
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
1774
|
<ark-drawer
|
|
1410
1775
|
[attr.testid]="testid"
|
|
1411
1776
|
[attr.open]="open ? '' : null"
|
|
@@ -1417,6 +1782,7 @@ class ArkDrawerComponent {
|
|
|
1417
1782
|
[attr.persistent]="persistent ? '' : null"
|
|
1418
1783
|
[attr.no-scroll-lock]="noScrollLock ? '' : null"
|
|
1419
1784
|
[attr.theme]="theme"
|
|
1785
|
+
[attr.heading-level]="headingLevel"
|
|
1420
1786
|
[attr.lang]="lang"
|
|
1421
1787
|
[attr.locale-json]="localeJson"
|
|
1422
1788
|
[attr.aria-label]="ariaLabel"
|
|
@@ -1425,7 +1791,7 @@ class ArkDrawerComponent {
|
|
|
1425
1791
|
<ng-content></ng-content>
|
|
1426
1792
|
</ark-drawer>`, isInline: true }); }
|
|
1427
1793
|
}
|
|
1428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkDrawerComponent, decorators: [{
|
|
1429
1795
|
type: Component,
|
|
1430
1796
|
args: [{
|
|
1431
1797
|
selector: "ark-drawer-wrapper",
|
|
@@ -1443,6 +1809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1443
1809
|
[attr.persistent]="persistent ? '' : null"
|
|
1444
1810
|
[attr.no-scroll-lock]="noScrollLock ? '' : null"
|
|
1445
1811
|
[attr.theme]="theme"
|
|
1812
|
+
[attr.heading-level]="headingLevel"
|
|
1446
1813
|
[attr.lang]="lang"
|
|
1447
1814
|
[attr.locale-json]="localeJson"
|
|
1448
1815
|
[attr.aria-label]="ariaLabel"
|
|
@@ -1471,6 +1838,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1471
1838
|
type: Input
|
|
1472
1839
|
}], theme: [{
|
|
1473
1840
|
type: Input
|
|
1841
|
+
}], headingLevel: [{
|
|
1842
|
+
type: Input
|
|
1474
1843
|
}], lang: [{
|
|
1475
1844
|
type: Input
|
|
1476
1845
|
}], localeJson: [{
|
|
@@ -1493,17 +1862,18 @@ class ArkEmptyComponent {
|
|
|
1493
1862
|
get element() {
|
|
1494
1863
|
return this.host.nativeElement.querySelector(":scope > ark-empty");
|
|
1495
1864
|
}
|
|
1496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1497
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1866
|
+
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
1867
|
<ark-empty
|
|
1499
1868
|
[attr.testid]="testid"
|
|
1500
1869
|
[attr.heading]="heading"
|
|
1501
1870
|
[attr.description]="description"
|
|
1502
|
-
[attr.theme]="theme"
|
|
1871
|
+
[attr.theme]="theme"
|
|
1872
|
+
[attr.heading-level]="headingLevel">
|
|
1503
1873
|
<ng-content></ng-content>
|
|
1504
1874
|
</ark-empty>`, isInline: true }); }
|
|
1505
1875
|
}
|
|
1506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkEmptyComponent, decorators: [{
|
|
1507
1877
|
type: Component,
|
|
1508
1878
|
args: [{
|
|
1509
1879
|
selector: "ark-empty-wrapper",
|
|
@@ -1514,7 +1884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1514
1884
|
[attr.testid]="testid"
|
|
1515
1885
|
[attr.heading]="heading"
|
|
1516
1886
|
[attr.description]="description"
|
|
1517
|
-
[attr.theme]="theme"
|
|
1887
|
+
[attr.theme]="theme"
|
|
1888
|
+
[attr.heading-level]="headingLevel">
|
|
1518
1889
|
<ng-content></ng-content>
|
|
1519
1890
|
</ark-empty>`
|
|
1520
1891
|
}]
|
|
@@ -1526,6 +1897,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1526
1897
|
type: Input
|
|
1527
1898
|
}], theme: [{
|
|
1528
1899
|
type: Input
|
|
1900
|
+
}], headingLevel: [{
|
|
1901
|
+
type: Input
|
|
1529
1902
|
}] } });
|
|
1530
1903
|
|
|
1531
1904
|
class ArkFileInputComponent {
|
|
@@ -1553,8 +1926,8 @@ class ArkFileInputComponent {
|
|
|
1553
1926
|
onChange(event) {
|
|
1554
1927
|
this.changed.emit(event);
|
|
1555
1928
|
}
|
|
1556
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1557
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1929
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1930
|
+
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
1931
|
<ark-file-input
|
|
1559
1932
|
[attr.testid]="testid"
|
|
1560
1933
|
[attr.accept]="accept"
|
|
@@ -1576,7 +1949,7 @@ class ArkFileInputComponent {
|
|
|
1576
1949
|
(change)="onChange($event)">
|
|
1577
1950
|
</ark-file-input>`, isInline: true }); }
|
|
1578
1951
|
}
|
|
1579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkFileInputComponent, decorators: [{
|
|
1580
1953
|
type: Component,
|
|
1581
1954
|
args: [{
|
|
1582
1955
|
selector: "ark-file-input-wrapper",
|
|
@@ -1666,8 +2039,8 @@ class ArkInputComponent {
|
|
|
1666
2039
|
get spellcheckAttr() {
|
|
1667
2040
|
return this.spellcheck === undefined ? null : String(this.spellcheck);
|
|
1668
2041
|
}
|
|
1669
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1670
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2042
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2043
|
+
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", maxlength: "maxlength", minlength: "minlength", pattern: "pattern", min: "min", max: "max", step: "step", spellcheck: "spellcheck", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
|
|
1671
2044
|
<ark-input
|
|
1672
2045
|
[attr.testid]="testid"
|
|
1673
2046
|
[attr.type]="type"
|
|
@@ -1702,7 +2075,7 @@ class ArkInputComponent {
|
|
|
1702
2075
|
<ng-content></ng-content>
|
|
1703
2076
|
</ark-input>`, isInline: true }); }
|
|
1704
2077
|
}
|
|
1705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkInputComponent, decorators: [{
|
|
1706
2079
|
type: Component,
|
|
1707
2080
|
args: [{
|
|
1708
2081
|
selector: "ark-input-wrapper",
|
|
@@ -1816,8 +2189,8 @@ class ArkKbdComponent {
|
|
|
1816
2189
|
get element() {
|
|
1817
2190
|
return this.host.nativeElement.querySelector(":scope > ark-kbd");
|
|
1818
2191
|
}
|
|
1819
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1820
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2193
|
+
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
2194
|
<ark-kbd
|
|
1822
2195
|
[attr.testid]="testid"
|
|
1823
2196
|
[attr.size]="size"
|
|
@@ -1825,7 +2198,7 @@ class ArkKbdComponent {
|
|
|
1825
2198
|
<ng-content></ng-content>
|
|
1826
2199
|
</ark-kbd>`, isInline: true }); }
|
|
1827
2200
|
}
|
|
1828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKbdComponent, decorators: [{
|
|
1829
2202
|
type: Component,
|
|
1830
2203
|
args: [{
|
|
1831
2204
|
selector: "ark-kbd-wrapper",
|
|
@@ -1905,8 +2278,8 @@ class ArkKvEditorComponent {
|
|
|
1905
2278
|
if (el && (this.valueField || el.valueField))
|
|
1906
2279
|
el.valueField = this.valueField ?? null;
|
|
1907
2280
|
}
|
|
1908
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1909
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2281
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKvEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2282
|
+
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
2283
|
<ark-kv-editor
|
|
1911
2284
|
#editor
|
|
1912
2285
|
[attr.testid]="testid"
|
|
@@ -1926,7 +2299,7 @@ class ArkKvEditorComponent {
|
|
|
1926
2299
|
(change)="onChange($event)">
|
|
1927
2300
|
</ark-kv-editor>`, isInline: true }); }
|
|
1928
2301
|
}
|
|
1929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkKvEditorComponent, decorators: [{
|
|
1930
2303
|
type: Component,
|
|
1931
2304
|
args: [{
|
|
1932
2305
|
selector: "ark-kv-editor-wrapper",
|
|
@@ -2007,8 +2380,8 @@ class ArkMarkComponent {
|
|
|
2007
2380
|
get element() {
|
|
2008
2381
|
return this.host.nativeElement.querySelector(":scope > ark-mark");
|
|
2009
2382
|
}
|
|
2010
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2011
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2384
|
+
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
2385
|
<ark-mark
|
|
2013
2386
|
[attr.testid]="testid"
|
|
2014
2387
|
[attr.shape]="shape"
|
|
@@ -2018,7 +2391,7 @@ class ArkMarkComponent {
|
|
|
2018
2391
|
[attr.theme]="theme">
|
|
2019
2392
|
</ark-mark>`, isInline: true }); }
|
|
2020
2393
|
}
|
|
2021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMarkComponent, decorators: [{
|
|
2022
2395
|
type: Component,
|
|
2023
2396
|
args: [{
|
|
2024
2397
|
selector: "ark-mark-wrapper",
|
|
@@ -2074,8 +2447,8 @@ class ArkMenuComponent {
|
|
|
2074
2447
|
get element() {
|
|
2075
2448
|
return this.host.nativeElement.querySelector(":scope > ark-menu");
|
|
2076
2449
|
}
|
|
2077
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2078
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2451
|
+
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
2452
|
<ark-menu
|
|
2080
2453
|
[attr.testid]="testid"
|
|
2081
2454
|
[attr.for]="for"
|
|
@@ -2091,7 +2464,7 @@ class ArkMenuComponent {
|
|
|
2091
2464
|
<ng-content></ng-content>
|
|
2092
2465
|
</ark-menu>`, isInline: true }); }
|
|
2093
2466
|
}
|
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuComponent, decorators: [{
|
|
2095
2468
|
type: Component,
|
|
2096
2469
|
args: [{
|
|
2097
2470
|
selector: "ark-menu-wrapper",
|
|
@@ -2155,8 +2528,8 @@ class ArkMenuItemComponent {
|
|
|
2155
2528
|
return null;
|
|
2156
2529
|
return this.checked ? "" : "false";
|
|
2157
2530
|
}
|
|
2158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2532
|
+
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
2533
|
<ark-menu-item
|
|
2161
2534
|
[attr.testid]="testid"
|
|
2162
2535
|
[attr.value]="value"
|
|
@@ -2168,7 +2541,7 @@ class ArkMenuItemComponent {
|
|
|
2168
2541
|
<ng-content></ng-content>
|
|
2169
2542
|
</ark-menu-item>`, isInline: true }); }
|
|
2170
2543
|
}
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuItemComponent, decorators: [{
|
|
2172
2545
|
type: Component,
|
|
2173
2546
|
args: [{
|
|
2174
2547
|
selector: "ark-menu-item-wrapper",
|
|
@@ -2201,6 +2574,370 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2201
2574
|
}], static: [{
|
|
2202
2575
|
type: Input
|
|
2203
2576
|
}] } });
|
|
2577
|
+
class ArkMenuGroupComponent {
|
|
2578
|
+
constructor() {
|
|
2579
|
+
this.host = inject(ElementRef);
|
|
2580
|
+
ensureTooarkComponentsRegistered();
|
|
2581
|
+
}
|
|
2582
|
+
/** O `ark-menu-group` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
2583
|
+
get element() {
|
|
2584
|
+
return this.host.nativeElement.querySelector(":scope > ark-menu-group");
|
|
2585
|
+
}
|
|
2586
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2587
|
+
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: `
|
|
2588
|
+
<ark-menu-group [attr.testid]="testid" [attr.label]="label" [attr.aria-label]="ariaLabel">
|
|
2589
|
+
<ng-content></ng-content>
|
|
2590
|
+
</ark-menu-group>`, isInline: true }); }
|
|
2591
|
+
}
|
|
2592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkMenuGroupComponent, decorators: [{
|
|
2593
|
+
type: Component,
|
|
2594
|
+
args: [{
|
|
2595
|
+
selector: "ark-menu-group-wrapper",
|
|
2596
|
+
standalone: true,
|
|
2597
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
2598
|
+
template: `
|
|
2599
|
+
<ark-menu-group [attr.testid]="testid" [attr.label]="label" [attr.aria-label]="ariaLabel">
|
|
2600
|
+
<ng-content></ng-content>
|
|
2601
|
+
</ark-menu-group>`
|
|
2602
|
+
}]
|
|
2603
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
2604
|
+
type: Input
|
|
2605
|
+
}], label: [{
|
|
2606
|
+
type: Input
|
|
2607
|
+
}], ariaLabel: [{
|
|
2608
|
+
type: Input
|
|
2609
|
+
}] } });
|
|
2610
|
+
|
|
2611
|
+
class ArkNavComponent {
|
|
2612
|
+
constructor() {
|
|
2613
|
+
this.host = inject(ElementRef);
|
|
2614
|
+
/** sidebar (coluna), navbar (barra) ou tabbar (abas de rodapé). Padrão: "sidebar". */
|
|
2615
|
+
this.variant = "sidebar";
|
|
2616
|
+
/** Borda em que a sidebar encosta. Padrão: "left". */
|
|
2617
|
+
this.side = "left";
|
|
2618
|
+
/** Sidebar recolhida. */
|
|
2619
|
+
this.collapsed = false;
|
|
2620
|
+
/** Botão de recolher e o que resta recolhida: true/"rail" (só ícones) ou "hidden" (só o logo e o botão). */
|
|
2621
|
+
this.collapsible = false;
|
|
2622
|
+
this.size = "md";
|
|
2623
|
+
this.intent = "primary";
|
|
2624
|
+
this.theme = "auto";
|
|
2625
|
+
/** O botão de recolher foi acionado; detail.collapsed é o novo estado, para o app guardar. */
|
|
2626
|
+
this.arkCollapse = new EventEmitter();
|
|
2627
|
+
/** Um item foi acionado (sobe dos itens); preventDefault() cancela a navegação do navegador para o app rotear. */
|
|
2628
|
+
this.arkNavigate = new EventEmitter();
|
|
2629
|
+
this.collapseHandler = (event) => this.arkCollapse.emit(event);
|
|
2630
|
+
this.navigateHandler = (event) => this.arkNavigate.emit(event);
|
|
2631
|
+
ensureTooarkComponentsRegistered();
|
|
2632
|
+
}
|
|
2633
|
+
/** O `ark-nav` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
2634
|
+
get element() {
|
|
2635
|
+
return this.host.nativeElement.querySelector(":scope > ark-nav");
|
|
2636
|
+
}
|
|
2637
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2638
|
+
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: `
|
|
2639
|
+
<ark-nav
|
|
2640
|
+
[attr.testid]="testid"
|
|
2641
|
+
[attr.variant]="variant"
|
|
2642
|
+
[attr.side]="side"
|
|
2643
|
+
[attr.value]="value"
|
|
2644
|
+
[attr.collapsed]="collapsed ? '' : null"
|
|
2645
|
+
[attr.collapsible]="collapsible === true ? '' : (collapsible || null)"
|
|
2646
|
+
[attr.label]="label"
|
|
2647
|
+
[attr.size]="size"
|
|
2648
|
+
[attr.intent]="intent"
|
|
2649
|
+
[attr.theme]="theme"
|
|
2650
|
+
[attr.lang]="lang"
|
|
2651
|
+
[attr.locale-json]="localeJson"
|
|
2652
|
+
(ark-collapse)="collapseHandler($event)"
|
|
2653
|
+
(ark-navigate)="navigateHandler($event)">
|
|
2654
|
+
<ng-content></ng-content>
|
|
2655
|
+
</ark-nav>`, isInline: true }); }
|
|
2656
|
+
}
|
|
2657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavComponent, decorators: [{
|
|
2658
|
+
type: Component,
|
|
2659
|
+
args: [{
|
|
2660
|
+
selector: "ark-nav-wrapper",
|
|
2661
|
+
standalone: true,
|
|
2662
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
2663
|
+
template: `
|
|
2664
|
+
<ark-nav
|
|
2665
|
+
[attr.testid]="testid"
|
|
2666
|
+
[attr.variant]="variant"
|
|
2667
|
+
[attr.side]="side"
|
|
2668
|
+
[attr.value]="value"
|
|
2669
|
+
[attr.collapsed]="collapsed ? '' : null"
|
|
2670
|
+
[attr.collapsible]="collapsible === true ? '' : (collapsible || null)"
|
|
2671
|
+
[attr.label]="label"
|
|
2672
|
+
[attr.size]="size"
|
|
2673
|
+
[attr.intent]="intent"
|
|
2674
|
+
[attr.theme]="theme"
|
|
2675
|
+
[attr.lang]="lang"
|
|
2676
|
+
[attr.locale-json]="localeJson"
|
|
2677
|
+
(ark-collapse)="collapseHandler($event)"
|
|
2678
|
+
(ark-navigate)="navigateHandler($event)">
|
|
2679
|
+
<ng-content></ng-content>
|
|
2680
|
+
</ark-nav>`
|
|
2681
|
+
}]
|
|
2682
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
2683
|
+
type: Input
|
|
2684
|
+
}], variant: [{
|
|
2685
|
+
type: Input
|
|
2686
|
+
}], side: [{
|
|
2687
|
+
type: Input
|
|
2688
|
+
}], value: [{
|
|
2689
|
+
type: Input
|
|
2690
|
+
}], collapsed: [{
|
|
2691
|
+
type: Input
|
|
2692
|
+
}], collapsible: [{
|
|
2693
|
+
type: Input
|
|
2694
|
+
}], label: [{
|
|
2695
|
+
type: Input
|
|
2696
|
+
}], size: [{
|
|
2697
|
+
type: Input
|
|
2698
|
+
}], intent: [{
|
|
2699
|
+
type: Input
|
|
2700
|
+
}], theme: [{
|
|
2701
|
+
type: Input
|
|
2702
|
+
}], lang: [{
|
|
2703
|
+
type: Input
|
|
2704
|
+
}], localeJson: [{
|
|
2705
|
+
type: Input
|
|
2706
|
+
}], arkCollapse: [{
|
|
2707
|
+
type: Output
|
|
2708
|
+
}], arkNavigate: [{
|
|
2709
|
+
type: Output
|
|
2710
|
+
}] } });
|
|
2711
|
+
class ArkNavItemComponent {
|
|
2712
|
+
constructor() {
|
|
2713
|
+
this.host = inject(ElementRef);
|
|
2714
|
+
/** Página atual (`aria-current="page"`). */
|
|
2715
|
+
this.current = false;
|
|
2716
|
+
this.disabled = false;
|
|
2717
|
+
/** Linha separadora (role separator). */
|
|
2718
|
+
this.divider = false;
|
|
2719
|
+
/** Este item foi acionado; preventDefault() cancela a navegação do navegador. */
|
|
2720
|
+
this.arkNavigate = new EventEmitter();
|
|
2721
|
+
this.navigateHandler = (event) => this.arkNavigate.emit(event);
|
|
2722
|
+
ensureTooarkComponentsRegistered();
|
|
2723
|
+
}
|
|
2724
|
+
/** O `ark-nav-item` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
2725
|
+
get element() {
|
|
2726
|
+
return this.host.nativeElement.querySelector(":scope > ark-nav-item");
|
|
2727
|
+
}
|
|
2728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2729
|
+
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: `
|
|
2730
|
+
<ark-nav-item
|
|
2731
|
+
[attr.testid]="testid"
|
|
2732
|
+
[attr.href]="href"
|
|
2733
|
+
[attr.target]="target"
|
|
2734
|
+
[attr.label]="label"
|
|
2735
|
+
[attr.value]="value"
|
|
2736
|
+
[attr.current]="current ? '' : null"
|
|
2737
|
+
[attr.disabled]="disabled ? '' : null"
|
|
2738
|
+
[attr.divider]="divider ? '' : null"
|
|
2739
|
+
(ark-navigate)="navigateHandler($event)">
|
|
2740
|
+
<ng-content></ng-content>
|
|
2741
|
+
</ark-nav-item>`, isInline: true }); }
|
|
2742
|
+
}
|
|
2743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavItemComponent, decorators: [{
|
|
2744
|
+
type: Component,
|
|
2745
|
+
args: [{
|
|
2746
|
+
selector: "ark-nav-item-wrapper",
|
|
2747
|
+
standalone: true,
|
|
2748
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
2749
|
+
// Sem caixa própria: o item entra no flex do nav (e do grupo), que o ordena e dimensiona.
|
|
2750
|
+
host: { style: "display: contents" },
|
|
2751
|
+
template: `
|
|
2752
|
+
<ark-nav-item
|
|
2753
|
+
[attr.testid]="testid"
|
|
2754
|
+
[attr.href]="href"
|
|
2755
|
+
[attr.target]="target"
|
|
2756
|
+
[attr.label]="label"
|
|
2757
|
+
[attr.value]="value"
|
|
2758
|
+
[attr.current]="current ? '' : null"
|
|
2759
|
+
[attr.disabled]="disabled ? '' : null"
|
|
2760
|
+
[attr.divider]="divider ? '' : null"
|
|
2761
|
+
(ark-navigate)="navigateHandler($event)">
|
|
2762
|
+
<ng-content></ng-content>
|
|
2763
|
+
</ark-nav-item>`
|
|
2764
|
+
}]
|
|
2765
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
2766
|
+
type: Input
|
|
2767
|
+
}], href: [{
|
|
2768
|
+
type: Input
|
|
2769
|
+
}], target: [{
|
|
2770
|
+
type: Input
|
|
2771
|
+
}], label: [{
|
|
2772
|
+
type: Input
|
|
2773
|
+
}], value: [{
|
|
2774
|
+
type: Input
|
|
2775
|
+
}], current: [{
|
|
2776
|
+
type: Input
|
|
2777
|
+
}], disabled: [{
|
|
2778
|
+
type: Input
|
|
2779
|
+
}], divider: [{
|
|
2780
|
+
type: Input
|
|
2781
|
+
}], arkNavigate: [{
|
|
2782
|
+
type: Output
|
|
2783
|
+
}] } });
|
|
2784
|
+
class ArkNavGroupComponent {
|
|
2785
|
+
constructor() {
|
|
2786
|
+
this.host = inject(ElementRef);
|
|
2787
|
+
/** O cabeçalho é um botão que abre e fecha os itens. */
|
|
2788
|
+
this.expandable = false;
|
|
2789
|
+
/** Itens à mostra (com `expandable`). */
|
|
2790
|
+
this.open = false;
|
|
2791
|
+
/** O cabeçalho expansível foi acionado; detail.open é o novo estado. */
|
|
2792
|
+
this.arkToggle = new EventEmitter();
|
|
2793
|
+
this.toggleHandler = (event) => this.arkToggle.emit(event);
|
|
2794
|
+
ensureTooarkComponentsRegistered();
|
|
2795
|
+
}
|
|
2796
|
+
/** O `ark-nav-group` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
2797
|
+
get element() {
|
|
2798
|
+
return this.host.nativeElement.querySelector(":scope > ark-nav-group");
|
|
2799
|
+
}
|
|
2800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2801
|
+
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: `
|
|
2802
|
+
<ark-nav-group
|
|
2803
|
+
[attr.testid]="testid"
|
|
2804
|
+
[attr.label]="label"
|
|
2805
|
+
[attr.expandable]="expandable ? '' : null"
|
|
2806
|
+
[attr.open]="open ? '' : null"
|
|
2807
|
+
(ark-toggle)="toggleHandler($event)">
|
|
2808
|
+
<ng-content></ng-content>
|
|
2809
|
+
</ark-nav-group>`, isInline: true }); }
|
|
2810
|
+
}
|
|
2811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkNavGroupComponent, decorators: [{
|
|
2812
|
+
type: Component,
|
|
2813
|
+
args: [{
|
|
2814
|
+
selector: "ark-nav-group-wrapper",
|
|
2815
|
+
standalone: true,
|
|
2816
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
2817
|
+
// Sem caixa própria: o grupo entra no flex do nav.
|
|
2818
|
+
host: { style: "display: contents" },
|
|
2819
|
+
template: `
|
|
2820
|
+
<ark-nav-group
|
|
2821
|
+
[attr.testid]="testid"
|
|
2822
|
+
[attr.label]="label"
|
|
2823
|
+
[attr.expandable]="expandable ? '' : null"
|
|
2824
|
+
[attr.open]="open ? '' : null"
|
|
2825
|
+
(ark-toggle)="toggleHandler($event)">
|
|
2826
|
+
<ng-content></ng-content>
|
|
2827
|
+
</ark-nav-group>`
|
|
2828
|
+
}]
|
|
2829
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
2830
|
+
type: Input
|
|
2831
|
+
}], label: [{
|
|
2832
|
+
type: Input
|
|
2833
|
+
}], expandable: [{
|
|
2834
|
+
type: Input
|
|
2835
|
+
}], open: [{
|
|
2836
|
+
type: Input
|
|
2837
|
+
}], arkToggle: [{
|
|
2838
|
+
type: Output
|
|
2839
|
+
}] } });
|
|
2840
|
+
|
|
2841
|
+
class ArkPaginationComponent {
|
|
2842
|
+
constructor() {
|
|
2843
|
+
this.host = inject(ElementRef);
|
|
2844
|
+
this.disabled = false;
|
|
2845
|
+
this.size = "md";
|
|
2846
|
+
this.intent = "primary";
|
|
2847
|
+
this.theme = "auto";
|
|
2848
|
+
/** Página ou itens por página mudaram: detail é { page, pageSize, pageCount }. */
|
|
2849
|
+
this.arkPageChange = new EventEmitter();
|
|
2850
|
+
this.pageHandler = (event) => this.arkPageChange.emit(event);
|
|
2851
|
+
ensureTooarkComponentsRegistered();
|
|
2852
|
+
}
|
|
2853
|
+
/** O `ark-pagination` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
2854
|
+
get element() {
|
|
2855
|
+
return this.host.nativeElement.querySelector(":scope > ark-pagination");
|
|
2856
|
+
}
|
|
2857
|
+
get pageSizesAttr() {
|
|
2858
|
+
return this.pageSizes && this.pageSizes.length > 0 ? this.pageSizes.join(",") : null;
|
|
2859
|
+
}
|
|
2860
|
+
ngAfterViewInit() {
|
|
2861
|
+
this.paginationRef?.nativeElement?.addEventListener("ark-page-change", this.pageHandler);
|
|
2862
|
+
}
|
|
2863
|
+
ngOnDestroy() {
|
|
2864
|
+
this.paginationRef?.nativeElement?.removeEventListener("ark-page-change", this.pageHandler);
|
|
2865
|
+
}
|
|
2866
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2867
|
+
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: `
|
|
2868
|
+
<ark-pagination
|
|
2869
|
+
#pagination
|
|
2870
|
+
[attr.testid]="testid"
|
|
2871
|
+
[attr.aria-label]="ariaLabel"
|
|
2872
|
+
[attr.page]="page"
|
|
2873
|
+
[attr.page-size]="pageSize"
|
|
2874
|
+
[attr.total]="total"
|
|
2875
|
+
[attr.page-sizes]="pageSizesAttr"
|
|
2876
|
+
[attr.siblings]="siblings"
|
|
2877
|
+
[attr.disabled]="disabled ? '' : null"
|
|
2878
|
+
[attr.size]="size"
|
|
2879
|
+
[attr.intent]="intent"
|
|
2880
|
+
[attr.theme]="theme"
|
|
2881
|
+
[attr.lang]="lang"
|
|
2882
|
+
[attr.locale-json]="localeJson">
|
|
2883
|
+
</ark-pagination>`, isInline: true }); }
|
|
2884
|
+
}
|
|
2885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkPaginationComponent, decorators: [{
|
|
2886
|
+
type: Component,
|
|
2887
|
+
args: [{
|
|
2888
|
+
selector: "ark-pagination-wrapper",
|
|
2889
|
+
standalone: true,
|
|
2890
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
2891
|
+
template: `
|
|
2892
|
+
<ark-pagination
|
|
2893
|
+
#pagination
|
|
2894
|
+
[attr.testid]="testid"
|
|
2895
|
+
[attr.aria-label]="ariaLabel"
|
|
2896
|
+
[attr.page]="page"
|
|
2897
|
+
[attr.page-size]="pageSize"
|
|
2898
|
+
[attr.total]="total"
|
|
2899
|
+
[attr.page-sizes]="pageSizesAttr"
|
|
2900
|
+
[attr.siblings]="siblings"
|
|
2901
|
+
[attr.disabled]="disabled ? '' : null"
|
|
2902
|
+
[attr.size]="size"
|
|
2903
|
+
[attr.intent]="intent"
|
|
2904
|
+
[attr.theme]="theme"
|
|
2905
|
+
[attr.lang]="lang"
|
|
2906
|
+
[attr.locale-json]="localeJson">
|
|
2907
|
+
</ark-pagination>`
|
|
2908
|
+
}]
|
|
2909
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
2910
|
+
type: Input
|
|
2911
|
+
}], ariaLabel: [{
|
|
2912
|
+
type: Input
|
|
2913
|
+
}], page: [{
|
|
2914
|
+
type: Input
|
|
2915
|
+
}], pageSize: [{
|
|
2916
|
+
type: Input
|
|
2917
|
+
}], total: [{
|
|
2918
|
+
type: Input
|
|
2919
|
+
}], pageSizes: [{
|
|
2920
|
+
type: Input
|
|
2921
|
+
}], siblings: [{
|
|
2922
|
+
type: Input
|
|
2923
|
+
}], disabled: [{
|
|
2924
|
+
type: Input
|
|
2925
|
+
}], size: [{
|
|
2926
|
+
type: Input
|
|
2927
|
+
}], intent: [{
|
|
2928
|
+
type: Input
|
|
2929
|
+
}], theme: [{
|
|
2930
|
+
type: Input
|
|
2931
|
+
}], lang: [{
|
|
2932
|
+
type: Input
|
|
2933
|
+
}], localeJson: [{
|
|
2934
|
+
type: Input
|
|
2935
|
+
}], arkPageChange: [{
|
|
2936
|
+
type: Output
|
|
2937
|
+
}], paginationRef: [{
|
|
2938
|
+
type: ViewChild,
|
|
2939
|
+
args: ["pagination", { static: false }]
|
|
2940
|
+
}] } });
|
|
2204
2941
|
|
|
2205
2942
|
class ArkProgressComponent {
|
|
2206
2943
|
constructor() {
|
|
@@ -2218,8 +2955,8 @@ class ArkProgressComponent {
|
|
|
2218
2955
|
get element() {
|
|
2219
2956
|
return this.host.nativeElement.querySelector(":scope > ark-progress");
|
|
2220
2957
|
}
|
|
2221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2222
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2958
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2959
|
+
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
2960
|
<ark-progress
|
|
2224
2961
|
[attr.testid]="testid"
|
|
2225
2962
|
[attr.value]="value"
|
|
@@ -2232,7 +2969,7 @@ class ArkProgressComponent {
|
|
|
2232
2969
|
[attr.theme]="theme">
|
|
2233
2970
|
</ark-progress>`, isInline: true }); }
|
|
2234
2971
|
}
|
|
2235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkProgressComponent, decorators: [{
|
|
2236
2973
|
type: Component,
|
|
2237
2974
|
args: [{
|
|
2238
2975
|
selector: "ark-progress-wrapper",
|
|
@@ -2290,8 +3027,8 @@ class ArkRadioComponent {
|
|
|
2290
3027
|
onChange(event) {
|
|
2291
3028
|
this.changed.emit(event);
|
|
2292
3029
|
}
|
|
2293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2294
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3030
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3031
|
+
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
3032
|
<ark-radio
|
|
2296
3033
|
[attr.testid]="testid"
|
|
2297
3034
|
[attr.aria-label]="ariaLabel"
|
|
@@ -2308,7 +3045,7 @@ class ArkRadioComponent {
|
|
|
2308
3045
|
<ng-content></ng-content>
|
|
2309
3046
|
</ark-radio>`, isInline: true }); }
|
|
2310
3047
|
}
|
|
2311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkRadioComponent, decorators: [{
|
|
2312
3049
|
type: Component,
|
|
2313
3050
|
args: [{
|
|
2314
3051
|
selector: "ark-radio-wrapper",
|
|
@@ -2361,7 +3098,6 @@ class ArkSchedulerComponent {
|
|
|
2361
3098
|
constructor() {
|
|
2362
3099
|
this.host = inject(ElementRef);
|
|
2363
3100
|
this.view = "week";
|
|
2364
|
-
this.lang = "en";
|
|
2365
3101
|
this.theme = "auto";
|
|
2366
3102
|
this.intent = "primary";
|
|
2367
3103
|
this.arkEventClick = new EventEmitter();
|
|
@@ -2399,8 +3135,8 @@ class ArkSchedulerComponent {
|
|
|
2399
3135
|
el.removeEventListener("ark-view-change", this.viewChangeHandler);
|
|
2400
3136
|
el.removeEventListener("ark-range-change", this.rangeChangeHandler);
|
|
2401
3137
|
}
|
|
2402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2403
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3139
|
+
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
3140
|
<ark-scheduler
|
|
2405
3141
|
#scheduler
|
|
2406
3142
|
[attr.testid]="testid"
|
|
@@ -2418,7 +3154,7 @@ class ArkSchedulerComponent {
|
|
|
2418
3154
|
[attr.hours-format]="hoursFormat">
|
|
2419
3155
|
</ark-scheduler>`, isInline: true }); }
|
|
2420
3156
|
}
|
|
2421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSchedulerComponent, decorators: [{
|
|
2422
3158
|
type: Component,
|
|
2423
3159
|
args: [{
|
|
2424
3160
|
selector: "ark-scheduler-wrapper",
|
|
@@ -2504,8 +3240,8 @@ class ArkSelectComponent {
|
|
|
2504
3240
|
onChange(event) {
|
|
2505
3241
|
this.changed.emit(event);
|
|
2506
3242
|
}
|
|
2507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2508
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3243
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3244
|
+
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
3245
|
<ark-select
|
|
2510
3246
|
[attr.testid]="testid"
|
|
2511
3247
|
[attr.aria-label]="ariaLabel"
|
|
@@ -2527,7 +3263,7 @@ class ArkSelectComponent {
|
|
|
2527
3263
|
<ng-content></ng-content>
|
|
2528
3264
|
</ark-select>`, isInline: true }); }
|
|
2529
3265
|
}
|
|
2530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSelectComponent, decorators: [{
|
|
2531
3267
|
type: Component,
|
|
2532
3268
|
args: [{
|
|
2533
3269
|
selector: "ark-select-wrapper",
|
|
@@ -2613,8 +3349,8 @@ class ArkShapePickerComponent {
|
|
|
2613
3349
|
onChange(event) {
|
|
2614
3350
|
this.changed.emit(event);
|
|
2615
3351
|
}
|
|
2616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2617
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkShapePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3353
|
+
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
3354
|
<ark-shape-picker
|
|
2619
3355
|
[attr.testid]="testid"
|
|
2620
3356
|
[attr.aria-label]="ariaLabel"
|
|
@@ -2630,7 +3366,7 @@ class ArkShapePickerComponent {
|
|
|
2630
3366
|
(change)="onChange($event)">
|
|
2631
3367
|
</ark-shape-picker>`, isInline: true }); }
|
|
2632
3368
|
}
|
|
2633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkShapePickerComponent, decorators: [{
|
|
2634
3370
|
type: Component,
|
|
2635
3371
|
args: [{
|
|
2636
3372
|
selector: "ark-shape-picker-wrapper",
|
|
@@ -2690,8 +3426,8 @@ class ArkSkeletonComponent {
|
|
|
2690
3426
|
get element() {
|
|
2691
3427
|
return this.host.nativeElement.querySelector(":scope > ark-skeleton");
|
|
2692
3428
|
}
|
|
2693
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2694
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3429
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3430
|
+
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
3431
|
<ark-skeleton
|
|
2696
3432
|
[attr.testid]="testid"
|
|
2697
3433
|
[attr.rows]="rows"
|
|
@@ -2703,7 +3439,7 @@ class ArkSkeletonComponent {
|
|
|
2703
3439
|
<ng-content></ng-content>
|
|
2704
3440
|
</ark-skeleton>`, isInline: true }); }
|
|
2705
3441
|
}
|
|
2706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSkeletonComponent, decorators: [{
|
|
2707
3443
|
type: Component,
|
|
2708
3444
|
args: [{
|
|
2709
3445
|
selector: "ark-skeleton-wrapper",
|
|
@@ -2748,8 +3484,8 @@ class ArkSpinnerComponent {
|
|
|
2748
3484
|
get element() {
|
|
2749
3485
|
return this.host.nativeElement.querySelector(":scope > ark-spinner");
|
|
2750
3486
|
}
|
|
2751
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2752
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3487
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3488
|
+
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
3489
|
<ark-spinner
|
|
2754
3490
|
[attr.testid]="testid"
|
|
2755
3491
|
[attr.size]="size"
|
|
@@ -2760,7 +3496,7 @@ class ArkSpinnerComponent {
|
|
|
2760
3496
|
[attr.locale-json]="localeJson">
|
|
2761
3497
|
</ark-spinner>`, isInline: true }); }
|
|
2762
3498
|
}
|
|
2763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSpinnerComponent, decorators: [{
|
|
2764
3500
|
type: Component,
|
|
2765
3501
|
args: [{
|
|
2766
3502
|
selector: "ark-spinner-wrapper",
|
|
@@ -2817,8 +3553,8 @@ class ArkSplitPaneComponent {
|
|
|
2817
3553
|
ngOnDestroy() {
|
|
2818
3554
|
this.paneRef?.nativeElement?.removeEventListener("ark-resize", this.resizeHandler);
|
|
2819
3555
|
}
|
|
2820
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2821
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSplitPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3557
|
+
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
3558
|
<ark-split-pane
|
|
2823
3559
|
#pane
|
|
2824
3560
|
[attr.testid]="testid"
|
|
@@ -2830,7 +3566,7 @@ class ArkSplitPaneComponent {
|
|
|
2830
3566
|
<ng-content></ng-content>
|
|
2831
3567
|
</ark-split-pane>`, isInline: true }); }
|
|
2832
3568
|
}
|
|
2833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSplitPaneComponent, decorators: [{
|
|
2834
3570
|
type: Component,
|
|
2835
3571
|
args: [{
|
|
2836
3572
|
selector: "ark-split-pane-wrapper",
|
|
@@ -2880,8 +3616,8 @@ class ArkStatusDotComponent {
|
|
|
2880
3616
|
get element() {
|
|
2881
3617
|
return this.host.nativeElement.querySelector(":scope > ark-status-dot");
|
|
2882
3618
|
}
|
|
2883
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2884
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkStatusDotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3620
|
+
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
3621
|
<ark-status-dot
|
|
2886
3622
|
[attr.testid]="testid"
|
|
2887
3623
|
[attr.intent]="intent"
|
|
@@ -2890,7 +3626,7 @@ class ArkStatusDotComponent {
|
|
|
2890
3626
|
[attr.theme]="theme">
|
|
2891
3627
|
</ark-status-dot>`, isInline: true }); }
|
|
2892
3628
|
}
|
|
2893
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkStatusDotComponent, decorators: [{
|
|
2894
3630
|
type: Component,
|
|
2895
3631
|
args: [{
|
|
2896
3632
|
selector: "ark-status-dot-wrapper",
|
|
@@ -2937,8 +3673,8 @@ class ArkSwitchComponent {
|
|
|
2937
3673
|
onChange(event) {
|
|
2938
3674
|
this.changed.emit(event);
|
|
2939
3675
|
}
|
|
2940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2941
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3677
|
+
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
3678
|
<ark-switch
|
|
2943
3679
|
[attr.testid]="testid"
|
|
2944
3680
|
[attr.aria-label]="ariaLabel"
|
|
@@ -2956,9 +3692,10 @@ class ArkSwitchComponent {
|
|
|
2956
3692
|
[attr.label-on]="labelOn"
|
|
2957
3693
|
[attr.label-off]="labelOff"
|
|
2958
3694
|
(change)="onChange($event)">
|
|
3695
|
+
<ng-content></ng-content>
|
|
2959
3696
|
</ark-switch>`, isInline: true }); }
|
|
2960
3697
|
}
|
|
2961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkSwitchComponent, decorators: [{
|
|
2962
3699
|
type: Component,
|
|
2963
3700
|
args: [{
|
|
2964
3701
|
selector: "ark-switch-wrapper",
|
|
@@ -2982,6 +3719,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2982
3719
|
[attr.label-on]="labelOn"
|
|
2983
3720
|
[attr.label-off]="labelOff"
|
|
2984
3721
|
(change)="onChange($event)">
|
|
3722
|
+
<ng-content></ng-content>
|
|
2985
3723
|
</ark-switch>`
|
|
2986
3724
|
}]
|
|
2987
3725
|
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
@@ -3044,8 +3782,8 @@ class ArkTabsComponent {
|
|
|
3044
3782
|
onChange(event) {
|
|
3045
3783
|
this.changed.emit(event);
|
|
3046
3784
|
}
|
|
3047
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3048
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3786
|
+
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
3787
|
<ark-tabs
|
|
3050
3788
|
#tabs
|
|
3051
3789
|
[attr.testid]="testid"
|
|
@@ -3063,7 +3801,7 @@ class ArkTabsComponent {
|
|
|
3063
3801
|
<ng-content></ng-content>
|
|
3064
3802
|
</ark-tabs>`, isInline: true }); }
|
|
3065
3803
|
}
|
|
3066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabsComponent, decorators: [{
|
|
3067
3805
|
type: Component,
|
|
3068
3806
|
args: [{
|
|
3069
3807
|
selector: "ark-tabs-wrapper",
|
|
@@ -3132,8 +3870,8 @@ class ArkTabComponent {
|
|
|
3132
3870
|
get element() {
|
|
3133
3871
|
return this.host.nativeElement.querySelector(":scope > ark-tab");
|
|
3134
3872
|
}
|
|
3135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3136
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3874
|
+
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
3875
|
<ark-tab
|
|
3138
3876
|
[attr.testid]="testid"
|
|
3139
3877
|
[attr.value]="value"
|
|
@@ -3144,7 +3882,7 @@ class ArkTabComponent {
|
|
|
3144
3882
|
<ng-content></ng-content>
|
|
3145
3883
|
</ark-tab>`, isInline: true }); }
|
|
3146
3884
|
}
|
|
3147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTabComponent, decorators: [{
|
|
3148
3886
|
type: Component,
|
|
3149
3887
|
args: [{
|
|
3150
3888
|
selector: "ark-tab-wrapper",
|
|
@@ -3201,8 +3939,8 @@ class ArkTextareaComponent {
|
|
|
3201
3939
|
get spellcheckAttr() {
|
|
3202
3940
|
return this.spellcheck === undefined ? null : String(this.spellcheck);
|
|
3203
3941
|
}
|
|
3204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3205
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3942
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3943
|
+
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
3944
|
<ark-textarea
|
|
3207
3945
|
[attr.testid]="testid"
|
|
3208
3946
|
[attr.label]="label"
|
|
@@ -3233,7 +3971,7 @@ class ArkTextareaComponent {
|
|
|
3233
3971
|
<ng-content></ng-content>
|
|
3234
3972
|
</ark-textarea>`, isInline: true }); }
|
|
3235
3973
|
}
|
|
3236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTextareaComponent, decorators: [{
|
|
3237
3975
|
type: Component,
|
|
3238
3976
|
args: [{
|
|
3239
3977
|
selector: "ark-textarea-wrapper",
|
|
@@ -3324,6 +4062,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3324
4062
|
type: Input
|
|
3325
4063
|
}] } });
|
|
3326
4064
|
|
|
4065
|
+
class ArkTimeComponent {
|
|
4066
|
+
constructor() {
|
|
4067
|
+
this.host = inject(ElementRef);
|
|
4068
|
+
ensureTooarkComponentsRegistered();
|
|
4069
|
+
}
|
|
4070
|
+
/** O `ark-time` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
4071
|
+
get element() {
|
|
4072
|
+
return this.host.nativeElement.querySelector(":scope > ark-time");
|
|
4073
|
+
}
|
|
4074
|
+
/** `Date` e número viram ISO: o atributo é texto. */
|
|
4075
|
+
get datetimeAttr() {
|
|
4076
|
+
const value = this.datetime;
|
|
4077
|
+
if (value === undefined || value === null || value === "")
|
|
4078
|
+
return null;
|
|
4079
|
+
if (typeof value === "string")
|
|
4080
|
+
return value;
|
|
4081
|
+
const date = new Date(value);
|
|
4082
|
+
return Number.isNaN(date.getTime()) ? null : date.toISOString();
|
|
4083
|
+
}
|
|
4084
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4085
|
+
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: `
|
|
4086
|
+
<ark-time
|
|
4087
|
+
[attr.testid]="testid"
|
|
4088
|
+
[attr.datetime]="datetimeAttr"
|
|
4089
|
+
[attr.format]="format"
|
|
4090
|
+
[attr.lang]="lang"></ark-time>`, isInline: true }); }
|
|
4091
|
+
}
|
|
4092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTimeComponent, decorators: [{
|
|
4093
|
+
type: Component,
|
|
4094
|
+
args: [{
|
|
4095
|
+
selector: "ark-time-wrapper",
|
|
4096
|
+
standalone: true,
|
|
4097
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
4098
|
+
template: `
|
|
4099
|
+
<ark-time
|
|
4100
|
+
[attr.testid]="testid"
|
|
4101
|
+
[attr.datetime]="datetimeAttr"
|
|
4102
|
+
[attr.format]="format"
|
|
4103
|
+
[attr.lang]="lang"></ark-time>`
|
|
4104
|
+
}]
|
|
4105
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
4106
|
+
type: Input
|
|
4107
|
+
}], datetime: [{
|
|
4108
|
+
type: Input
|
|
4109
|
+
}], format: [{
|
|
4110
|
+
type: Input
|
|
4111
|
+
}], lang: [{
|
|
4112
|
+
type: Input
|
|
4113
|
+
}] } });
|
|
4114
|
+
|
|
3327
4115
|
class ArkToasterComponent {
|
|
3328
4116
|
constructor() {
|
|
3329
4117
|
this.host = inject(ElementRef);
|
|
@@ -3344,8 +4132,8 @@ class ArkToasterComponent {
|
|
|
3344
4132
|
onAction(event) {
|
|
3345
4133
|
this.arkToastAction.emit(event);
|
|
3346
4134
|
}
|
|
3347
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3348
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
4135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4136
|
+
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
4137
|
<ark-toaster
|
|
3350
4138
|
[attr.testid]="testid"
|
|
3351
4139
|
[attr.theme]="theme"
|
|
@@ -3358,7 +4146,7 @@ class ArkToasterComponent {
|
|
|
3358
4146
|
(ark-toast-action)="onAction($event)">
|
|
3359
4147
|
</ark-toaster>`, isInline: true }); }
|
|
3360
4148
|
}
|
|
3361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToasterComponent, decorators: [{
|
|
3362
4150
|
type: Component,
|
|
3363
4151
|
args: [{
|
|
3364
4152
|
selector: "ark-toaster-wrapper",
|
|
@@ -3415,8 +4203,8 @@ class ArkToggleComponent {
|
|
|
3415
4203
|
onChange(event) {
|
|
3416
4204
|
this.changed.emit(event);
|
|
3417
4205
|
}
|
|
3418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
4206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4207
|
+
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
4208
|
<ark-toggle
|
|
3421
4209
|
[attr.testid]="testid"
|
|
3422
4210
|
[attr.aria-label]="ariaLabel"
|
|
@@ -3430,7 +4218,7 @@ class ArkToggleComponent {
|
|
|
3430
4218
|
<ng-content></ng-content>
|
|
3431
4219
|
</ark-toggle>`, isInline: true }); }
|
|
3432
4220
|
}
|
|
3433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleComponent, decorators: [{
|
|
3434
4222
|
type: Component,
|
|
3435
4223
|
args: [{
|
|
3436
4224
|
selector: "ark-toggle-wrapper",
|
|
@@ -3484,8 +4272,8 @@ class ArkToggleGroupComponent {
|
|
|
3484
4272
|
onChange(event) {
|
|
3485
4273
|
this.changed.emit(event);
|
|
3486
4274
|
}
|
|
3487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3488
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
4275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4276
|
+
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
4277
|
<ark-toggle-group
|
|
3490
4278
|
[attr.testid]="testid"
|
|
3491
4279
|
[attr.value]="value"
|
|
@@ -3498,7 +4286,7 @@ class ArkToggleGroupComponent {
|
|
|
3498
4286
|
<ng-content></ng-content>
|
|
3499
4287
|
</ark-toggle-group>`, isInline: true }); }
|
|
3500
4288
|
}
|
|
3501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkToggleGroupComponent, decorators: [{
|
|
3502
4290
|
type: Component,
|
|
3503
4291
|
args: [{
|
|
3504
4292
|
selector: "ark-toggle-group-wrapper",
|
|
@@ -3549,8 +4337,8 @@ class ArkTooltipComponent {
|
|
|
3549
4337
|
get element() {
|
|
3550
4338
|
return this.host.nativeElement.querySelector(":scope > ark-tooltip");
|
|
3551
4339
|
}
|
|
3552
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3553
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
4340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4341
|
+
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
4342
|
<ark-tooltip
|
|
3555
4343
|
[attr.testid]="testid"
|
|
3556
4344
|
[attr.content]="content"
|
|
@@ -3561,7 +4349,7 @@ class ArkTooltipComponent {
|
|
|
3561
4349
|
<ng-content></ng-content>
|
|
3562
4350
|
</ark-tooltip>`, isInline: true }); }
|
|
3563
4351
|
}
|
|
3564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTooltipComponent, decorators: [{
|
|
3565
4353
|
type: Component,
|
|
3566
4354
|
args: [{
|
|
3567
4355
|
selector: "ark-tooltip-wrapper",
|
|
@@ -3592,9 +4380,170 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3592
4380
|
type: Input
|
|
3593
4381
|
}] } });
|
|
3594
4382
|
|
|
4383
|
+
class ArkTreeComponent {
|
|
4384
|
+
constructor() {
|
|
4385
|
+
this.host = inject(ElementRef);
|
|
4386
|
+
this.checkboxes = false;
|
|
4387
|
+
this.propagate = false;
|
|
4388
|
+
this.arkToggle = new EventEmitter();
|
|
4389
|
+
this.arkSelectionChange = new EventEmitter();
|
|
4390
|
+
this.arkActivate = new EventEmitter();
|
|
4391
|
+
this.toggleHandler = (event) => this.arkToggle.emit(event);
|
|
4392
|
+
this.selectionHandler = (event) => this.arkSelectionChange.emit(event);
|
|
4393
|
+
this.activateHandler = (event) => this.arkActivate.emit(event);
|
|
4394
|
+
ensureTooarkComponentsRegistered();
|
|
4395
|
+
}
|
|
4396
|
+
/** O `ark-tree` que este wrapper renderiza, com os métodos e propriedades do elemento; `null` antes da view. */
|
|
4397
|
+
get element() {
|
|
4398
|
+
return this.host.nativeElement.querySelector(":scope > ark-tree");
|
|
4399
|
+
}
|
|
4400
|
+
get valueAttr() {
|
|
4401
|
+
if (Array.isArray(this.value))
|
|
4402
|
+
return this.value.length ? JSON.stringify(this.value) : null;
|
|
4403
|
+
return this.value || null;
|
|
4404
|
+
}
|
|
4405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4406
|
+
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", size: "size", theme: "theme" }, outputs: { arkToggle: "arkToggle", arkSelectionChange: "arkSelectionChange", arkActivate: "arkActivate" }, ngImport: i0, template: `
|
|
4407
|
+
<ark-tree
|
|
4408
|
+
[attr.testid]="testid"
|
|
4409
|
+
[attr.selection]="selection"
|
|
4410
|
+
[attr.checkboxes]="checkboxes ? '' : null"
|
|
4411
|
+
[attr.propagate]="propagate ? '' : null"
|
|
4412
|
+
[attr.value]="valueAttr"
|
|
4413
|
+
[attr.label]="label"
|
|
4414
|
+
[attr.aria-label]="ariaLabel"
|
|
4415
|
+
[attr.size]="size"
|
|
4416
|
+
[attr.theme]="theme"
|
|
4417
|
+
(ark-toggle)="toggleHandler($event)"
|
|
4418
|
+
(ark-selection-change)="selectionHandler($event)"
|
|
4419
|
+
(ark-activate)="activateHandler($event)">
|
|
4420
|
+
<ng-content></ng-content>
|
|
4421
|
+
</ark-tree>`, isInline: true }); }
|
|
4422
|
+
}
|
|
4423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeComponent, decorators: [{
|
|
4424
|
+
type: Component,
|
|
4425
|
+
args: [{
|
|
4426
|
+
selector: "ark-tree-wrapper",
|
|
4427
|
+
standalone: true,
|
|
4428
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
4429
|
+
template: `
|
|
4430
|
+
<ark-tree
|
|
4431
|
+
[attr.testid]="testid"
|
|
4432
|
+
[attr.selection]="selection"
|
|
4433
|
+
[attr.checkboxes]="checkboxes ? '' : null"
|
|
4434
|
+
[attr.propagate]="propagate ? '' : null"
|
|
4435
|
+
[attr.value]="valueAttr"
|
|
4436
|
+
[attr.label]="label"
|
|
4437
|
+
[attr.aria-label]="ariaLabel"
|
|
4438
|
+
[attr.size]="size"
|
|
4439
|
+
[attr.theme]="theme"
|
|
4440
|
+
(ark-toggle)="toggleHandler($event)"
|
|
4441
|
+
(ark-selection-change)="selectionHandler($event)"
|
|
4442
|
+
(ark-activate)="activateHandler($event)">
|
|
4443
|
+
<ng-content></ng-content>
|
|
4444
|
+
</ark-tree>`
|
|
4445
|
+
}]
|
|
4446
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
4447
|
+
type: Input
|
|
4448
|
+
}], selection: [{
|
|
4449
|
+
type: Input
|
|
4450
|
+
}], checkboxes: [{
|
|
4451
|
+
type: Input
|
|
4452
|
+
}], propagate: [{
|
|
4453
|
+
type: Input
|
|
4454
|
+
}], value: [{
|
|
4455
|
+
type: Input
|
|
4456
|
+
}], label: [{
|
|
4457
|
+
type: Input
|
|
4458
|
+
}], ariaLabel: [{
|
|
4459
|
+
type: Input
|
|
4460
|
+
}], size: [{
|
|
4461
|
+
type: Input
|
|
4462
|
+
}], theme: [{
|
|
4463
|
+
type: Input
|
|
4464
|
+
}], arkToggle: [{
|
|
4465
|
+
type: Output
|
|
4466
|
+
}], arkSelectionChange: [{
|
|
4467
|
+
type: Output
|
|
4468
|
+
}], arkActivate: [{
|
|
4469
|
+
type: Output
|
|
4470
|
+
}] } });
|
|
4471
|
+
// 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
|
|
4472
|
+
// ark-tree-item como se o wrapper não existisse. A árvore acha os itens por descendência.
|
|
4473
|
+
class ArkTreeItemComponent {
|
|
4474
|
+
constructor() {
|
|
4475
|
+
this.host = inject(ElementRef);
|
|
4476
|
+
this.expanded = false;
|
|
4477
|
+
/** Mostra o chevron sem filhos: carregue os filhos no `(arkToggle)` com `expanded: true`. */
|
|
4478
|
+
this.lazy = false;
|
|
4479
|
+
this.loading = false;
|
|
4480
|
+
this.selected = false;
|
|
4481
|
+
this.disabled = false;
|
|
4482
|
+
ensureTooarkComponentsRegistered();
|
|
4483
|
+
}
|
|
4484
|
+
/** O `ark-tree-item` que este wrapper renderiza; `null` antes da view. */
|
|
4485
|
+
get element() {
|
|
4486
|
+
return this.host.nativeElement.querySelector(":scope > ark-tree-item");
|
|
4487
|
+
}
|
|
4488
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4489
|
+
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", expanded: "expanded", lazy: "lazy", loading: "loading", selected: "selected", checked: "checked", disabled: "disabled" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
|
|
4490
|
+
<ark-tree-item
|
|
4491
|
+
[attr.testid]="testid"
|
|
4492
|
+
[attr.value]="value"
|
|
4493
|
+
[attr.label]="label"
|
|
4494
|
+
[attr.expanded]="expanded ? '' : null"
|
|
4495
|
+
[attr.lazy]="lazy ? '' : null"
|
|
4496
|
+
[attr.loading]="loading ? '' : null"
|
|
4497
|
+
[attr.selected]="selected ? '' : null"
|
|
4498
|
+
[attr.checked]="checked === 'mixed' ? 'mixed' : checked ? '' : null"
|
|
4499
|
+
[attr.disabled]="disabled ? '' : null">
|
|
4500
|
+
<ng-content></ng-content>
|
|
4501
|
+
</ark-tree-item>`, isInline: true }); }
|
|
4502
|
+
}
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: ArkTreeItemComponent, decorators: [{
|
|
4504
|
+
type: Component,
|
|
4505
|
+
args: [{
|
|
4506
|
+
selector: "ark-tree-item-wrapper",
|
|
4507
|
+
standalone: true,
|
|
4508
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
4509
|
+
host: { style: "display: contents" },
|
|
4510
|
+
template: `
|
|
4511
|
+
<ark-tree-item
|
|
4512
|
+
[attr.testid]="testid"
|
|
4513
|
+
[attr.value]="value"
|
|
4514
|
+
[attr.label]="label"
|
|
4515
|
+
[attr.expanded]="expanded ? '' : null"
|
|
4516
|
+
[attr.lazy]="lazy ? '' : null"
|
|
4517
|
+
[attr.loading]="loading ? '' : null"
|
|
4518
|
+
[attr.selected]="selected ? '' : null"
|
|
4519
|
+
[attr.checked]="checked === 'mixed' ? 'mixed' : checked ? '' : null"
|
|
4520
|
+
[attr.disabled]="disabled ? '' : null">
|
|
4521
|
+
<ng-content></ng-content>
|
|
4522
|
+
</ark-tree-item>`
|
|
4523
|
+
}]
|
|
4524
|
+
}], ctorParameters: () => [], propDecorators: { testid: [{
|
|
4525
|
+
type: Input
|
|
4526
|
+
}], value: [{
|
|
4527
|
+
type: Input
|
|
4528
|
+
}], label: [{
|
|
4529
|
+
type: Input
|
|
4530
|
+
}], expanded: [{
|
|
4531
|
+
type: Input
|
|
4532
|
+
}], lazy: [{
|
|
4533
|
+
type: Input
|
|
4534
|
+
}], loading: [{
|
|
4535
|
+
type: Input
|
|
4536
|
+
}], selected: [{
|
|
4537
|
+
type: Input
|
|
4538
|
+
}], checked: [{
|
|
4539
|
+
type: Input
|
|
4540
|
+
}], disabled: [{
|
|
4541
|
+
type: Input
|
|
4542
|
+
}] } });
|
|
4543
|
+
|
|
3595
4544
|
/**
|
|
3596
4545
|
* Generated bundle index. Do not edit.
|
|
3597
4546
|
*/
|
|
3598
4547
|
|
|
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 };
|
|
4548
|
+
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
4549
|
//# sourceMappingURL=tooark-angular.mjs.map
|