@sebgroup/green-angular 1.6.0 → 1.7.1
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/esm2020/index.mjs +2 -1
- package/esm2020/lib/context-menu/context-menu.component.mjs +36 -8
- package/esm2020/lib/context-menu/context-menu.module.mjs +2 -2
- package/esm2020/lib/dropdown/dropdown-button.directive.mjs +16 -0
- package/esm2020/lib/dropdown/dropdown.component.mjs +10 -3
- package/esm2020/lib/dropdown/dropdown.module.mjs +17 -4
- package/esm2020/lib/dropdown/index.mjs +2 -1
- package/esm2020/lib/green-angular.module.mjs +10 -6
- package/esm2020/lib/shared/index.mjs +3 -0
- package/esm2020/lib/shared/on-scroll.directive.mjs +47 -0
- package/esm2020/lib/shared/shared.module.mjs +18 -0
- package/fesm2015/sebgroup-green-angular.mjs +312 -186
- package/fesm2015/sebgroup-green-angular.mjs.map +1 -1
- package/fesm2020/sebgroup-green-angular.mjs +304 -184
- package/fesm2020/sebgroup-green-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/context-menu/context-menu.component.d.ts +13 -5
- package/lib/dropdown/dropdown-button.directive.d.ts +8 -0
- package/lib/dropdown/dropdown.component.d.ts +4 -1
- package/lib/dropdown/dropdown.module.d.ts +3 -2
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/green-angular.module.d.ts +2 -1
- package/lib/shared/index.d.ts +2 -0
- package/lib/shared/on-scroll.directive.d.ts +14 -0
- package/lib/shared/shared.module.d.ts +8 -0
- package/package.json +3 -3
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, ContentChildren, NgModule, ChangeDetectionStrategy, HostBinding, Directive, Injector, Inject, ViewChild, ContentChild, HostListener } from '@angular/core';
|
|
3
1
|
import * as i1 from '@angular/common';
|
|
4
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { EventEmitter, Component, Input, Output, ContentChildren, NgModule, ChangeDetectionStrategy, HostBinding, InjectionToken, Directive, Optional, Inject, ViewChild, HostListener, Injector, ContentChild } from '@angular/core';
|
|
5
5
|
import { randomId, dropdownValues, createDropdown, months, years, createDatepicker, calculateDegrees, sliderColors, getSliderTrackBackground, PaginationI18n } from '@sebgroup/extract';
|
|
6
|
-
import * as i2 from '
|
|
6
|
+
import * as i2 from 'rxjs';
|
|
7
|
+
import { Subject, fromEvent, interval } from 'rxjs';
|
|
8
|
+
import { takeUntil, throttle } from 'rxjs/operators';
|
|
9
|
+
import * as i2$1 from '@angular/forms';
|
|
7
10
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
8
11
|
import { startOfDay, endOfDay } from 'date-fns';
|
|
9
12
|
import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock';
|
|
@@ -269,6 +272,192 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
269
272
|
}]
|
|
270
273
|
}] });
|
|
271
274
|
|
|
275
|
+
const ON_SCROLL_TOKEN = new InjectionToken('ON_SCROLL_TOKEN');
|
|
276
|
+
class NggOnScrollDirective {
|
|
277
|
+
constructor(elementRef) {
|
|
278
|
+
this.elementRef = elementRef;
|
|
279
|
+
this.onScroll$ = new Subject();
|
|
280
|
+
this.destroy$ = new Subject();
|
|
281
|
+
}
|
|
282
|
+
ngAfterViewInit() {
|
|
283
|
+
var _a;
|
|
284
|
+
if (this.elementRef) {
|
|
285
|
+
fromEvent((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement, 'scroll')
|
|
286
|
+
.pipe(takeUntil(this.destroy$), throttle(() => interval(30)))
|
|
287
|
+
.subscribe(() => {
|
|
288
|
+
this.onScroll$.next();
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
ngOnDestroy() {
|
|
293
|
+
this.destroy$.next(null);
|
|
294
|
+
this.destroy$.complete();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
NggOnScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggOnScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
298
|
+
NggOnScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NggOnScrollDirective, selector: "[nggOnScroll]", providers: [
|
|
299
|
+
{
|
|
300
|
+
provide: ON_SCROLL_TOKEN,
|
|
301
|
+
useFactory: (component) => component === null || component === void 0 ? void 0 : component.onScroll$,
|
|
302
|
+
deps: [NggOnScrollDirective],
|
|
303
|
+
},
|
|
304
|
+
], ngImport: i0 });
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggOnScrollDirective, decorators: [{
|
|
306
|
+
type: Directive,
|
|
307
|
+
args: [{
|
|
308
|
+
selector: '[nggOnScroll]',
|
|
309
|
+
providers: [
|
|
310
|
+
{
|
|
311
|
+
provide: ON_SCROLL_TOKEN,
|
|
312
|
+
useFactory: (component) => component === null || component === void 0 ? void 0 : component.onScroll$,
|
|
313
|
+
deps: [NggOnScrollDirective],
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
}]
|
|
317
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
318
|
+
|
|
319
|
+
class NggContextMenuComponent {
|
|
320
|
+
constructor(elementRef, closeContextMenu) {
|
|
321
|
+
this.elementRef = elementRef;
|
|
322
|
+
this.closeContextMenu = closeContextMenu;
|
|
323
|
+
this.direction = 'ltr';
|
|
324
|
+
this.menuItems = [];
|
|
325
|
+
this.menuItemTemplate = null;
|
|
326
|
+
this.menuAnchorTemplate = null;
|
|
327
|
+
this.closeOnScroll = false;
|
|
328
|
+
this.contextMenuItemClicked = new EventEmitter();
|
|
329
|
+
this.isActive = false;
|
|
330
|
+
this.top = '0px';
|
|
331
|
+
this.left = '0px';
|
|
332
|
+
}
|
|
333
|
+
onDocumentClick(target) {
|
|
334
|
+
if (!this.isActive) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
const contextMenuElement = this.elementRef.nativeElement;
|
|
338
|
+
if (!contextMenuElement.contains(target)) {
|
|
339
|
+
this.close();
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
ngOnInit() {
|
|
343
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
344
|
+
this.close();
|
|
345
|
+
});
|
|
346
|
+
this.resizeObserver.observe(document.body);
|
|
347
|
+
}
|
|
348
|
+
ngAfterViewInit() {
|
|
349
|
+
var _a;
|
|
350
|
+
if (this.closeOnScroll) {
|
|
351
|
+
this.menuCloseSubscription = (_a = this.closeContextMenu) === null || _a === void 0 ? void 0 : _a.subscribe(() => this.close());
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
ngOnDestroy() {
|
|
355
|
+
var _a, _b;
|
|
356
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.unobserve(document.body);
|
|
357
|
+
(_b = this.menuCloseSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
358
|
+
}
|
|
359
|
+
open() {
|
|
360
|
+
var _a;
|
|
361
|
+
if (this.isActive) {
|
|
362
|
+
this.close();
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
const anchor = (_a = this.anchor) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
366
|
+
const buttonRect = anchor.getBoundingClientRect();
|
|
367
|
+
const left = this.calculateLeft(this.direction, buttonRect);
|
|
368
|
+
const top = this.calculateTop(buttonRect.bottom);
|
|
369
|
+
const gapBetweenButtonAndPopover = 3;
|
|
370
|
+
this.left = `${left}px`;
|
|
371
|
+
this.top = `${top + gapBetweenButtonAndPopover}px`;
|
|
372
|
+
this.isActive = true;
|
|
373
|
+
}
|
|
374
|
+
close() {
|
|
375
|
+
this.isActive = false;
|
|
376
|
+
}
|
|
377
|
+
onItemClick(item) {
|
|
378
|
+
this.contextMenuItemClicked.emit(item);
|
|
379
|
+
this.close();
|
|
380
|
+
}
|
|
381
|
+
onMenuItemKeyDown(event, menuItem) {
|
|
382
|
+
switch (event.key) {
|
|
383
|
+
case 'Enter':
|
|
384
|
+
case ' ':
|
|
385
|
+
event.preventDefault();
|
|
386
|
+
this.onItemClick(menuItem);
|
|
387
|
+
break;
|
|
388
|
+
default:
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
calculateTop(buttonRectBottom) {
|
|
393
|
+
return buttonRectBottom + window.pageYOffset;
|
|
394
|
+
}
|
|
395
|
+
calculateLeft(direction, buttonRect) {
|
|
396
|
+
var _a;
|
|
397
|
+
const popover = (_a = this.popover) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
398
|
+
const popoverWidth = (popover === null || popover === void 0 ? void 0 : popover.offsetWidth) || 0;
|
|
399
|
+
switch (direction) {
|
|
400
|
+
case 'rtl':
|
|
401
|
+
return popoverWidth <= buttonRect.left
|
|
402
|
+
? buttonRect.right - popoverWidth
|
|
403
|
+
: buttonRect.left;
|
|
404
|
+
case 'ltr':
|
|
405
|
+
default:
|
|
406
|
+
return buttonRect.right + popoverWidth <= window.innerWidth
|
|
407
|
+
? buttonRect.left
|
|
408
|
+
: buttonRect.right - popoverWidth;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
NggContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, deps: [{ token: i0.ElementRef }, { token: ON_SCROLL_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
413
|
+
NggContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NggContextMenuComponent, selector: "ngg-context-menu", inputs: { direction: "direction", menuItems: "menuItems", menuItemTemplate: "menuItemTemplate", menuAnchorTemplate: "menuAnchorTemplate", closeOnScroll: "closeOnScroll" }, outputs: { contextMenuItemClicked: "contextMenuItemClicked" }, host: { listeners: { "document:click": "onDocumentClick($event.target)" } }, viewQueries: [{ propertyName: "popover", first: true, predicate: ["contextMenuPopover"], descendants: true }, { propertyName: "anchor", first: true, predicate: ["contextMenuAnchor"], descendants: true }], ngImport: i0, template: "<button\n #contextMenuAnchor\n class=\"ghost small\"\n [class.active]=\"isActive\"\n (click)=\"open()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuAnchorTemplate ?? defaultButtonTemplate\"\n >\n </ng-container>\n</button>\n\n<div\n class=\"popover popover-context-menu\"\n [class.active]=\"isActive\"\n [style.top]=\"top\"\n [style.left]=\"left\"\n #contextMenuPopover\n>\n <ul role=\"listbox\">\n <li\n *ngFor=\"let menuItem of menuItems\"\n (click)=\"onItemClick(menuItem)\"\n tabindex=\"0\"\n (keydown)=\"onMenuItemKeyDown($event, menuItem)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuItemTemplate ?? defaultMenuItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"\n >\n </ng-container>\n </li>\n </ul>\n</div>\n\n<ng-template #defaultMenuItemTemplate let-menuItem>\n <span>{{ menuItem.label }}</span>\n</ng-template>\n\n<ng-template #defaultButtonTemplate>\n <i class=\"sg-icon sg-icon-ellipsis\">Open context menu</i>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, decorators: [{
|
|
415
|
+
type: Component,
|
|
416
|
+
args: [{ selector: 'ngg-context-menu', template: "<button\n #contextMenuAnchor\n class=\"ghost small\"\n [class.active]=\"isActive\"\n (click)=\"open()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuAnchorTemplate ?? defaultButtonTemplate\"\n >\n </ng-container>\n</button>\n\n<div\n class=\"popover popover-context-menu\"\n [class.active]=\"isActive\"\n [style.top]=\"top\"\n [style.left]=\"left\"\n #contextMenuPopover\n>\n <ul role=\"listbox\">\n <li\n *ngFor=\"let menuItem of menuItems\"\n (click)=\"onItemClick(menuItem)\"\n tabindex=\"0\"\n (keydown)=\"onMenuItemKeyDown($event, menuItem)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuItemTemplate ?? defaultMenuItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"\n >\n </ng-container>\n </li>\n </ul>\n</div>\n\n<ng-template #defaultMenuItemTemplate let-menuItem>\n <span>{{ menuItem.label }}</span>\n</ng-template>\n\n<ng-template #defaultButtonTemplate>\n <i class=\"sg-icon sg-icon-ellipsis\">Open context menu</i>\n</ng-template>\n" }]
|
|
417
|
+
}], ctorParameters: function () {
|
|
418
|
+
return [{ type: i0.ElementRef }, { type: i2.Subject, decorators: [{
|
|
419
|
+
type: Optional
|
|
420
|
+
}, {
|
|
421
|
+
type: Inject,
|
|
422
|
+
args: [ON_SCROLL_TOKEN]
|
|
423
|
+
}] }];
|
|
424
|
+
}, propDecorators: { direction: [{
|
|
425
|
+
type: Input
|
|
426
|
+
}], menuItems: [{
|
|
427
|
+
type: Input
|
|
428
|
+
}], menuItemTemplate: [{
|
|
429
|
+
type: Input
|
|
430
|
+
}], menuAnchorTemplate: [{
|
|
431
|
+
type: Input
|
|
432
|
+
}], closeOnScroll: [{
|
|
433
|
+
type: Input
|
|
434
|
+
}], contextMenuItemClicked: [{
|
|
435
|
+
type: Output
|
|
436
|
+
}], popover: [{
|
|
437
|
+
type: ViewChild,
|
|
438
|
+
args: ['contextMenuPopover']
|
|
439
|
+
}], anchor: [{
|
|
440
|
+
type: ViewChild,
|
|
441
|
+
args: ['contextMenuAnchor']
|
|
442
|
+
}], onDocumentClick: [{
|
|
443
|
+
type: HostListener,
|
|
444
|
+
args: ['document:click', ['$event.target']]
|
|
445
|
+
}] } });
|
|
446
|
+
|
|
447
|
+
class NggContextMenuModule {
|
|
448
|
+
}
|
|
449
|
+
NggContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
450
|
+
NggContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, declarations: [NggContextMenuComponent], imports: [CommonModule], exports: [NggContextMenuComponent] });
|
|
451
|
+
NggContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, imports: [CommonModule] });
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, decorators: [{
|
|
453
|
+
type: NgModule,
|
|
454
|
+
args: [{
|
|
455
|
+
declarations: [NggContextMenuComponent],
|
|
456
|
+
imports: [CommonModule],
|
|
457
|
+
exports: [NggContextMenuComponent],
|
|
458
|
+
}]
|
|
459
|
+
}] });
|
|
460
|
+
|
|
272
461
|
class NggDropdownOptionDirective {
|
|
273
462
|
constructor(templateRef) {
|
|
274
463
|
this.templateRef = templateRef;
|
|
@@ -283,6 +472,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
283
472
|
}]
|
|
284
473
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
285
474
|
|
|
475
|
+
class NggDropdownButtonDirective {
|
|
476
|
+
constructor(templateRef) {
|
|
477
|
+
this.templateRef = templateRef;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
NggDropdownButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownButtonDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
481
|
+
NggDropdownButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NggDropdownButtonDirective, selector: "[nggDropdownButton]", ngImport: i0 });
|
|
482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownButtonDirective, decorators: [{
|
|
483
|
+
type: Directive,
|
|
484
|
+
args: [{
|
|
485
|
+
selector: '[nggDropdownButton]',
|
|
486
|
+
}]
|
|
487
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
488
|
+
|
|
286
489
|
class NggDropdownComponent {
|
|
287
490
|
constructor(cd, injector) {
|
|
288
491
|
var _a, _b, _c;
|
|
@@ -322,6 +525,10 @@ class NggDropdownComponent {
|
|
|
322
525
|
get value() {
|
|
323
526
|
return this._value;
|
|
324
527
|
}
|
|
528
|
+
get selectedOption() {
|
|
529
|
+
var _a;
|
|
530
|
+
return (_a = this.handler) === null || _a === void 0 ? void 0 : _a.dropdown.options.find((o) => o.selected);
|
|
531
|
+
}
|
|
325
532
|
get control() {
|
|
326
533
|
return this.injector.get(NgControl);
|
|
327
534
|
}
|
|
@@ -401,7 +608,7 @@ NggDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
401
608
|
useExisting: NggDropdownComponent,
|
|
402
609
|
multi: true,
|
|
403
610
|
},
|
|
404
|
-
], queries: [{ propertyName: "customOption", first: true, predicate: NggDropdownOptionDirective, descendants: true }], viewQueries: [{ propertyName: "togglerRef", first: true, predicate: ["togglerRef"], descendants: true }, { propertyName: "listboxRef", first: true, predicate: ["listboxRef"], descendants: true }, { propertyName: "fieldsetRef", first: true, predicate: ["fieldsetRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <span class=\"label\" *ngIf=\"label\" [id]=\"toggler?.attributes?.id + '_label'\">{{\n label\n }}</span>\n <button\n [attr.aria-labelledby]=\"label ? toggler?.attributes?.id + '_label' : null\"\n [attr.aria-describedby]=\"\n formInfo?.textContent && (formInfo?.textContent?.length ?? 0 > 0)\n ? toggler?.attributes?.id + '_info'\n : null\n \"\n type=\"button\"\n #togglerRef\n [id]=\"toggler?.attributes?.id\"\n [attr.aria-haspopup]=\"toggler?.attributes?.['aria-haspopup']\"\n [attr.aria-expanded]=\"toggler?.attributes?.['aria-expanded']\"\n [attr.aria-owns]=\"toggler?.attributes?.['aria-owns']\"\n [tabindex]=\"toggler?.attributes?.tabIndex\"\n [style]=\"toggler?.attributes?.style\"\n [class]=\"toggler?.classes\"\n (click)=\"handler?.toggle()\"\n [class.is-valid]=\"valid\"\n [class.is-invalid]=\"invalid\"\n >\n <
|
|
611
|
+
], queries: [{ propertyName: "customOption", first: true, predicate: NggDropdownOptionDirective, descendants: true }, { propertyName: "customButton", first: true, predicate: NggDropdownButtonDirective, descendants: true }], viewQueries: [{ propertyName: "togglerRef", first: true, predicate: ["togglerRef"], descendants: true }, { propertyName: "listboxRef", first: true, predicate: ["listboxRef"], descendants: true }, { propertyName: "fieldsetRef", first: true, predicate: ["fieldsetRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <span class=\"label\" *ngIf=\"label\" [id]=\"toggler?.attributes?.id + '_label'\">{{\n label\n }}</span>\n <button\n [attr.aria-labelledby]=\"label ? toggler?.attributes?.id + '_label' : null\"\n [attr.aria-describedby]=\"\n formInfo?.textContent && (formInfo?.textContent?.length ?? 0 > 0)\n ? toggler?.attributes?.id + '_info'\n : null\n \"\n type=\"button\"\n role=\"combobox\"\n #togglerRef\n [id]=\"toggler?.attributes?.id\"\n [attr.aria-haspopup]=\"toggler?.attributes?.['aria-haspopup']\"\n [attr.aria-expanded]=\"toggler?.attributes?.['aria-expanded']\"\n [attr.aria-owns]=\"toggler?.attributes?.['aria-owns']\"\n [tabindex]=\"toggler?.attributes?.tabIndex\"\n [style]=\"toggler?.attributes?.style\"\n [class]=\"toggler?.classes\"\n (click)=\"handler?.toggle()\"\n [class.is-valid]=\"valid\"\n [class.is-invalid]=\"invalid\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n customButton?.templateRef && !multiSelect && selectedOption\n ? customButton!.templateRef\n : defaultButton;\n context: { option: selectedOption }\n \"\n ></ng-container>\n </button>\n <span\n class=\"form-info\"\n #formInfo\n [attr.id]=\"toggler?.attributes?.id + '_info'\"\n ><ng-content select=\"[data-form-info]\"></ng-content\n ></span>\n <div\n #listboxRef\n [id]=\"listbox?.attributes?.id\"\n [attr.role]=\"listbox?.attributes?.role\"\n [attr.aria-activedescendant]=\"\n listbox?.attributes?.['aria-activedescendant']\n \"\n [tabindex]=\"listbox?.attributes?.tabIndex\"\n [style]=\"listbox?.attributes?.style\"\n [class]=\"listbox?.classes\"\n >\n <div class=\"d-flex d-sm-none align-items-center\">\n <span class=\"flex-grow-1 ps-4 fs-2 fw-bolder\">{{ label }}</span>\n <button\n type=\"button\"\n class=\"close m-4 m-sm-2 d-block d-sm-none\"\n [attr.aria-label]=\"dropdown?.texts?.close\"\n (click)=\"handler?.close()\"\n >\n <i></i>\n </button>\n </div>\n <ul role=\"listbox\" *ngIf=\"!dropdown?.isMultiSelect\">\n <ng-container *ngTemplateOutlet=\"searchInput\"></ng-container>\n <li\n *ngFor=\"\n let option of dropdown?.options;\n let index = index;\n trackBy: trackByKey\n \"\n [id]=\"option.attributes.id\"\n [attr.role]=\"option.attributes.role\"\n [attr.aria-selected]=\"option.attributes['aria-selected']\"\n [style]=\"option.attributes.style\"\n [class]=\"option.classes\"\n (click)=\"handler?.select(option)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n customOption?.templateRef\n ? customOption!.templateRef\n : defaultOption;\n context: { option: option, index: index }\n \"\n ></ng-container>\n </li>\n </ul>\n <div *ngIf=\"dropdown?.isMultiSelect\" class=\"sg-fieldset-container\">\n <ng-container *ngTemplateOutlet=\"searchInput\"></ng-container>\n <!--TODO: Improve checkboxes in dropdown angular-->\n <fieldset\n #fieldsetRef\n [attr.aria-describedby]=\"fieldset?.attributes?.id\"\n role=\"listbox\"\n tabIndex=\"-1\"\n aria-multiselectable=\"true\"\n >\n <legend class=\"sr-only\" [id]=\"fieldset?.attributes?.id\">Options</legend>\n <label\n class=\"form-control\"\n [attr.role]=\"option.attributes.role\"\n [id]=\"option.attributes.id\"\n [attr.aria-selected]=\"option.attributes['aria-selected']\"\n [class]=\"option.classes\"\n *ngFor=\"\n let option of dropdown?.options;\n let index = index;\n trackBy: trackByKey\n \"\n >\n <input\n type=\"checkbox\"\n (change)=\"handler?.select(option, false)\"\n [checked]=\"option.selected\"\n tabIndex=\"-1\"\n />\n <ng-container\n *ngTemplateOutlet=\"\n customOption?.templateRef\n ? customOption!.templateRef\n : defaultOption;\n context: { option: option, index: index }\n \"\n ></ng-container>\n <i></i>\n </label>\n </fieldset>\n </div>\n </div>\n</div>\n\n<ng-template #defaultButton let-selected=\"selected\">\n <span>{{ dropdown?.texts?.select }}</span>\n</ng-template>\n\n<ng-template #defaultOption let-option=\"option\">\n {{ option[dropdown!.display] }}\n</ng-template>\n\n<ng-template #searchInput>\n <input\n *ngIf=\"dropdown?.isSearchable\"\n [id]=\"toggler?.attributes?.id + '_search-input'\"\n type=\"search\"\n (input)=\"search($event)\"\n placeholder=\"{{ dropdown?.texts?.searchPlaceholder }}\"\n class=\"rounded-0 rounded-top border-0 border-bottom border-info\"\n />\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
405
612
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownComponent, decorators: [{
|
|
406
613
|
type: Component,
|
|
407
614
|
args: [{ selector: 'ngg-dropdown', providers: [
|
|
@@ -410,7 +617,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
410
617
|
useExisting: NggDropdownComponent,
|
|
411
618
|
multi: true,
|
|
412
619
|
},
|
|
413
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-group\">\n <span class=\"label\" *ngIf=\"label\" [id]=\"toggler?.attributes?.id + '_label'\">{{\n label\n }}</span>\n <button\n [attr.aria-labelledby]=\"label ? toggler?.attributes?.id + '_label' : null\"\n [attr.aria-describedby]=\"\n formInfo?.textContent && (formInfo?.textContent?.length ?? 0 > 0)\n ? toggler?.attributes?.id + '_info'\n : null\n \"\n type=\"button\"\n #togglerRef\n [id]=\"toggler?.attributes?.id\"\n [attr.aria-haspopup]=\"toggler?.attributes?.['aria-haspopup']\"\n [attr.aria-expanded]=\"toggler?.attributes?.['aria-expanded']\"\n [attr.aria-owns]=\"toggler?.attributes?.['aria-owns']\"\n [tabindex]=\"toggler?.attributes?.tabIndex\"\n [style]=\"toggler?.attributes?.style\"\n [class]=\"toggler?.classes\"\n (click)=\"handler?.toggle()\"\n [class.is-valid]=\"valid\"\n [class.is-invalid]=\"invalid\"\n >\n <
|
|
620
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-group\">\n <span class=\"label\" *ngIf=\"label\" [id]=\"toggler?.attributes?.id + '_label'\">{{\n label\n }}</span>\n <button\n [attr.aria-labelledby]=\"label ? toggler?.attributes?.id + '_label' : null\"\n [attr.aria-describedby]=\"\n formInfo?.textContent && (formInfo?.textContent?.length ?? 0 > 0)\n ? toggler?.attributes?.id + '_info'\n : null\n \"\n type=\"button\"\n role=\"combobox\"\n #togglerRef\n [id]=\"toggler?.attributes?.id\"\n [attr.aria-haspopup]=\"toggler?.attributes?.['aria-haspopup']\"\n [attr.aria-expanded]=\"toggler?.attributes?.['aria-expanded']\"\n [attr.aria-owns]=\"toggler?.attributes?.['aria-owns']\"\n [tabindex]=\"toggler?.attributes?.tabIndex\"\n [style]=\"toggler?.attributes?.style\"\n [class]=\"toggler?.classes\"\n (click)=\"handler?.toggle()\"\n [class.is-valid]=\"valid\"\n [class.is-invalid]=\"invalid\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n customButton?.templateRef && !multiSelect && selectedOption\n ? customButton!.templateRef\n : defaultButton;\n context: { option: selectedOption }\n \"\n ></ng-container>\n </button>\n <span\n class=\"form-info\"\n #formInfo\n [attr.id]=\"toggler?.attributes?.id + '_info'\"\n ><ng-content select=\"[data-form-info]\"></ng-content\n ></span>\n <div\n #listboxRef\n [id]=\"listbox?.attributes?.id\"\n [attr.role]=\"listbox?.attributes?.role\"\n [attr.aria-activedescendant]=\"\n listbox?.attributes?.['aria-activedescendant']\n \"\n [tabindex]=\"listbox?.attributes?.tabIndex\"\n [style]=\"listbox?.attributes?.style\"\n [class]=\"listbox?.classes\"\n >\n <div class=\"d-flex d-sm-none align-items-center\">\n <span class=\"flex-grow-1 ps-4 fs-2 fw-bolder\">{{ label }}</span>\n <button\n type=\"button\"\n class=\"close m-4 m-sm-2 d-block d-sm-none\"\n [attr.aria-label]=\"dropdown?.texts?.close\"\n (click)=\"handler?.close()\"\n >\n <i></i>\n </button>\n </div>\n <ul role=\"listbox\" *ngIf=\"!dropdown?.isMultiSelect\">\n <ng-container *ngTemplateOutlet=\"searchInput\"></ng-container>\n <li\n *ngFor=\"\n let option of dropdown?.options;\n let index = index;\n trackBy: trackByKey\n \"\n [id]=\"option.attributes.id\"\n [attr.role]=\"option.attributes.role\"\n [attr.aria-selected]=\"option.attributes['aria-selected']\"\n [style]=\"option.attributes.style\"\n [class]=\"option.classes\"\n (click)=\"handler?.select(option)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n customOption?.templateRef\n ? customOption!.templateRef\n : defaultOption;\n context: { option: option, index: index }\n \"\n ></ng-container>\n </li>\n </ul>\n <div *ngIf=\"dropdown?.isMultiSelect\" class=\"sg-fieldset-container\">\n <ng-container *ngTemplateOutlet=\"searchInput\"></ng-container>\n <!--TODO: Improve checkboxes in dropdown angular-->\n <fieldset\n #fieldsetRef\n [attr.aria-describedby]=\"fieldset?.attributes?.id\"\n role=\"listbox\"\n tabIndex=\"-1\"\n aria-multiselectable=\"true\"\n >\n <legend class=\"sr-only\" [id]=\"fieldset?.attributes?.id\">Options</legend>\n <label\n class=\"form-control\"\n [attr.role]=\"option.attributes.role\"\n [id]=\"option.attributes.id\"\n [attr.aria-selected]=\"option.attributes['aria-selected']\"\n [class]=\"option.classes\"\n *ngFor=\"\n let option of dropdown?.options;\n let index = index;\n trackBy: trackByKey\n \"\n >\n <input\n type=\"checkbox\"\n (change)=\"handler?.select(option, false)\"\n [checked]=\"option.selected\"\n tabIndex=\"-1\"\n />\n <ng-container\n *ngTemplateOutlet=\"\n customOption?.templateRef\n ? customOption!.templateRef\n : defaultOption;\n context: { option: option, index: index }\n \"\n ></ng-container>\n <i></i>\n </label>\n </fieldset>\n </div>\n </div>\n</div>\n\n<ng-template #defaultButton let-selected=\"selected\">\n <span>{{ dropdown?.texts?.select }}</span>\n</ng-template>\n\n<ng-template #defaultOption let-option=\"option\">\n {{ option[dropdown!.display] }}\n</ng-template>\n\n<ng-template #searchInput>\n <input\n *ngIf=\"dropdown?.isSearchable\"\n [id]=\"toggler?.attributes?.id + '_search-input'\"\n type=\"search\"\n (input)=\"search($event)\"\n placeholder=\"{{ dropdown?.texts?.searchPlaceholder }}\"\n class=\"rounded-0 rounded-top border-0 border-bottom border-info\"\n />\n</ng-template>\n" }]
|
|
414
621
|
}], ctorParameters: function () {
|
|
415
622
|
return [{ type: i0.ChangeDetectorRef }, { type: i0.Injector, decorators: [{
|
|
416
623
|
type: Inject,
|
|
@@ -460,6 +667,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
460
667
|
}], customOption: [{
|
|
461
668
|
type: ContentChild,
|
|
462
669
|
args: [NggDropdownOptionDirective]
|
|
670
|
+
}], customButton: [{
|
|
671
|
+
type: ContentChild,
|
|
672
|
+
args: [NggDropdownButtonDirective]
|
|
463
673
|
}] } });
|
|
464
674
|
|
|
465
675
|
class NggDatepickerComponent {
|
|
@@ -657,14 +867,26 @@ function dateValidator(dates) {
|
|
|
657
867
|
class NggDropdownModule {
|
|
658
868
|
}
|
|
659
869
|
NggDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
660
|
-
NggDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownModule, declarations: [NggDropdownComponent,
|
|
870
|
+
NggDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownModule, declarations: [NggDropdownComponent,
|
|
871
|
+
NggDropdownOptionDirective,
|
|
872
|
+
NggDropdownButtonDirective], imports: [CommonModule], exports: [NggDropdownComponent,
|
|
873
|
+
NggDropdownOptionDirective,
|
|
874
|
+
NggDropdownButtonDirective] });
|
|
661
875
|
NggDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownModule, imports: [CommonModule] });
|
|
662
876
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggDropdownModule, decorators: [{
|
|
663
877
|
type: NgModule,
|
|
664
878
|
args: [{
|
|
665
|
-
declarations: [
|
|
879
|
+
declarations: [
|
|
880
|
+
NggDropdownComponent,
|
|
881
|
+
NggDropdownOptionDirective,
|
|
882
|
+
NggDropdownButtonDirective,
|
|
883
|
+
],
|
|
666
884
|
imports: [CommonModule],
|
|
667
|
-
exports: [
|
|
885
|
+
exports: [
|
|
886
|
+
NggDropdownComponent,
|
|
887
|
+
NggDropdownOptionDirective,
|
|
888
|
+
NggDropdownButtonDirective,
|
|
889
|
+
],
|
|
668
890
|
}]
|
|
669
891
|
}] });
|
|
670
892
|
|
|
@@ -682,6 +904,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
682
904
|
}]
|
|
683
905
|
}] });
|
|
684
906
|
|
|
907
|
+
class NggInPageWizardStepCardComponent {
|
|
908
|
+
constructor() {
|
|
909
|
+
this.handleNextClick = new EventEmitter();
|
|
910
|
+
this.handleEditClick = new EventEmitter();
|
|
911
|
+
this.stepText = '';
|
|
912
|
+
this.title = '';
|
|
913
|
+
this.editBtnText = '';
|
|
914
|
+
this.nextBtnText = '';
|
|
915
|
+
this.isCompleted = false;
|
|
916
|
+
this.disableNext = false;
|
|
917
|
+
this.isActive = false;
|
|
918
|
+
}
|
|
919
|
+
handleOnEditBtnClick(event) {
|
|
920
|
+
this.isActive = !this.isActive;
|
|
921
|
+
this.handleEditClick.emit(event);
|
|
922
|
+
}
|
|
923
|
+
handleOnNextBtnClick(event) {
|
|
924
|
+
this.isActive = false;
|
|
925
|
+
this.isCompleted = true;
|
|
926
|
+
this.handleNextClick.emit(event);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
NggInPageWizardStepCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
930
|
+
NggInPageWizardStepCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NggInPageWizardStepCardComponent, selector: "ngg-in-page-wizard-step-card", inputs: { stepText: "stepText", title: "title", editBtnText: "editBtnText", nextBtnText: "nextBtnText", isCompleted: "isCompleted", disableNext: "disableNext", isActive: "isActive" }, outputs: { handleNextClick: "handleNextClick", handleEditClick: "handleEditClick" }, ngImport: i0, template: "<section\n class=\"gds-in-page-wizard-step-card card\"\n data-testid=\"in-page-wizard-step-card-root\"\n [class.active]=\"!!isActive\"\n [class.completed]=\"!!isCompleted\"\n>\n <header class=\"gds-in-page-wizard-step-card__header\">\n <div class=\"gds-in-page-wizard-step-card__header__icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->\n <path\n d=\"M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z\"\n />\n </svg>\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__progress\"\n data-testid=\"in-page-wizard-step-card-step-text\"\n >\n {{ stepText }}\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__title\"\n data-testid=\"in-page-wizard-step-card-title\"\n >\n <h2 class=\"h4\">{{ title }}</h2>\n </div>\n\n <div\n class=\"gds-in-page-wizard-step-card__header__edit\"\n *ngIf=\"!!isCompleted && !isActive\"\n >\n <button\n class=\"secondary small\"\n (click)=\"handleOnEditBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-edit-btn\"\n >\n {{ editBtnText }}\n </button>\n </div>\n </header>\n\n <div\n class=\"gds-in-page-wizard-step-card__content\"\n *ngIf=\"!!isActive || !!isCompleted\"\n data-testid=\"in-page-wizard-step-card-content\"\n >\n <ng-content></ng-content>\n </div>\n <footer class=\"gds-in-page-wizard-step-card__footer\" *ngIf=\"isActive\">\n <button\n class=\"primary\"\n [disabled]=\"disableNext\"\n (click)=\"handleOnNextBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-next-btn\"\n >\n {{ nextBtnText }}\n </button>\n </footer>\n</section>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, decorators: [{
|
|
932
|
+
type: Component,
|
|
933
|
+
args: [{ selector: 'ngg-in-page-wizard-step-card', template: "<section\n class=\"gds-in-page-wizard-step-card card\"\n data-testid=\"in-page-wizard-step-card-root\"\n [class.active]=\"!!isActive\"\n [class.completed]=\"!!isCompleted\"\n>\n <header class=\"gds-in-page-wizard-step-card__header\">\n <div class=\"gds-in-page-wizard-step-card__header__icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->\n <path\n d=\"M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z\"\n />\n </svg>\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__progress\"\n data-testid=\"in-page-wizard-step-card-step-text\"\n >\n {{ stepText }}\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__title\"\n data-testid=\"in-page-wizard-step-card-title\"\n >\n <h2 class=\"h4\">{{ title }}</h2>\n </div>\n\n <div\n class=\"gds-in-page-wizard-step-card__header__edit\"\n *ngIf=\"!!isCompleted && !isActive\"\n >\n <button\n class=\"secondary small\"\n (click)=\"handleOnEditBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-edit-btn\"\n >\n {{ editBtnText }}\n </button>\n </div>\n </header>\n\n <div\n class=\"gds-in-page-wizard-step-card__content\"\n *ngIf=\"!!isActive || !!isCompleted\"\n data-testid=\"in-page-wizard-step-card-content\"\n >\n <ng-content></ng-content>\n </div>\n <footer class=\"gds-in-page-wizard-step-card__footer\" *ngIf=\"isActive\">\n <button\n class=\"primary\"\n [disabled]=\"disableNext\"\n (click)=\"handleOnNextBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-next-btn\"\n >\n {{ nextBtnText }}\n </button>\n </footer>\n</section>\n" }]
|
|
934
|
+
}], propDecorators: { handleNextClick: [{
|
|
935
|
+
type: Output
|
|
936
|
+
}], handleEditClick: [{
|
|
937
|
+
type: Output
|
|
938
|
+
}], stepText: [{
|
|
939
|
+
type: Input
|
|
940
|
+
}], title: [{
|
|
941
|
+
type: Input
|
|
942
|
+
}], editBtnText: [{
|
|
943
|
+
type: Input
|
|
944
|
+
}], nextBtnText: [{
|
|
945
|
+
type: Input
|
|
946
|
+
}], isCompleted: [{
|
|
947
|
+
type: Input
|
|
948
|
+
}], disableNext: [{
|
|
949
|
+
type: Input
|
|
950
|
+
}], isActive: [{
|
|
951
|
+
type: Input
|
|
952
|
+
}] } });
|
|
953
|
+
|
|
954
|
+
class NggInPageWizardModule {
|
|
955
|
+
}
|
|
956
|
+
NggInPageWizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
957
|
+
NggInPageWizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, declarations: [NggInPageWizardStepCardComponent], imports: [CommonModule], exports: [NggInPageWizardStepCardComponent] });
|
|
958
|
+
NggInPageWizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, imports: [CommonModule] });
|
|
959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, decorators: [{
|
|
960
|
+
type: NgModule,
|
|
961
|
+
args: [{
|
|
962
|
+
declarations: [NggInPageWizardStepCardComponent],
|
|
963
|
+
imports: [CommonModule],
|
|
964
|
+
exports: [NggInPageWizardStepCardComponent],
|
|
965
|
+
}]
|
|
966
|
+
}] });
|
|
967
|
+
|
|
685
968
|
class NggModalComponent {
|
|
686
969
|
constructor(ref, configurableFocusTrapFactory) {
|
|
687
970
|
this.ref = ref;
|
|
@@ -996,6 +1279,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
996
1279
|
}]
|
|
997
1280
|
}] });
|
|
998
1281
|
|
|
1282
|
+
class NggSharedModule {
|
|
1283
|
+
}
|
|
1284
|
+
NggSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1285
|
+
NggSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, declarations: [NggOnScrollDirective], imports: [CommonModule], exports: [NggOnScrollDirective] });
|
|
1286
|
+
NggSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, imports: [CommonModule] });
|
|
1287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, decorators: [{
|
|
1288
|
+
type: NgModule,
|
|
1289
|
+
args: [{
|
|
1290
|
+
declarations: [NggOnScrollDirective],
|
|
1291
|
+
imports: [CommonModule],
|
|
1292
|
+
exports: [NggOnScrollDirective],
|
|
1293
|
+
}]
|
|
1294
|
+
}] });
|
|
1295
|
+
|
|
999
1296
|
class NggSliderComponent {
|
|
1000
1297
|
constructor() {
|
|
1001
1298
|
this.name = `${randomId()}-slider`;
|
|
@@ -1062,7 +1359,7 @@ NggSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
1062
1359
|
useExisting: NggSliderComponent,
|
|
1063
1360
|
multi: true,
|
|
1064
1361
|
},
|
|
1065
|
-
], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"!!label\" class=\"gds-slider-label-container\">\n <div>\n <label [attr.for]=\"name\">{{ label }}</label>\n <p *ngIf=\"!!instruction\">{{ instruction }}</p>\n </div>\n <ng-container *ngIf=\"hasTextbox\">\n <ng-container *ngIf=\"!!unitLabel\">\n <div class=\"group group-border\">\n <ng-container *ngTemplateOutlet=\"inputField\"></ng-container>\n <span class=\"form-text\">{{ unitLabel }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!unitLabel\">\n <ng-container *ngTemplateOutlet=\"inputField\"></ng-container>\n </ng-container>\n </ng-container>\n</div>\n\n<input\n type=\"range\"\n [attr.id]=\"name\"\n [attr.name]=\"name\"\n [attr.min]=\"min\"\n [attr.max]=\"max\"\n [attr.step]=\"step\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [ngStyle]=\"style\"\n (blur)=\"onBlur()\"\n (input)=\"handleChange()\"\n/>\n\n<p *ngIf=\"!!errorMessage\" class=\"gds-slider-error-info\">\n {{ errorMessage }}\n</p>\n\n<ng-template #inputField>\n <input\n type=\"number\"\n [(ngModel)]=\"value\"\n [class.is-invalid]=\"!!errorMessage\"\n [attr.name]=\"name\"\n [attr.id]=\"name + '-textbox'\"\n [attr.placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n (blur)=\"onBlur()\"\n (input)=\"handleChange()\"\n />\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1362
|
+
], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"!!label\" class=\"gds-slider-label-container\">\n <div>\n <label [attr.for]=\"name\">{{ label }}</label>\n <p *ngIf=\"!!instruction\">{{ instruction }}</p>\n </div>\n <ng-container *ngIf=\"hasTextbox\">\n <ng-container *ngIf=\"!!unitLabel\">\n <div class=\"group group-border\">\n <ng-container *ngTemplateOutlet=\"inputField\"></ng-container>\n <span class=\"form-text\">{{ unitLabel }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!unitLabel\">\n <ng-container *ngTemplateOutlet=\"inputField\"></ng-container>\n </ng-container>\n </ng-container>\n</div>\n\n<input\n type=\"range\"\n [attr.id]=\"name\"\n [attr.name]=\"name\"\n [attr.min]=\"min\"\n [attr.max]=\"max\"\n [attr.step]=\"step\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [ngStyle]=\"style\"\n (blur)=\"onBlur()\"\n (input)=\"handleChange()\"\n/>\n\n<p *ngIf=\"!!errorMessage\" class=\"gds-slider-error-info\">\n {{ errorMessage }}\n</p>\n\n<ng-template #inputField>\n <input\n type=\"number\"\n [(ngModel)]=\"value\"\n [class.is-invalid]=\"!!errorMessage\"\n [attr.name]=\"name\"\n [attr.id]=\"name + '-textbox'\"\n [attr.placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n (blur)=\"onBlur()\"\n (input)=\"handleChange()\"\n />\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$1.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1066
1363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSliderComponent, decorators: [{
|
|
1067
1364
|
type: Component,
|
|
1068
1365
|
args: [{ selector: 'ngg-slider', providers: [
|
|
@@ -1116,180 +1413,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1116
1413
|
}]
|
|
1117
1414
|
}] });
|
|
1118
1415
|
|
|
1119
|
-
class NggContextMenuComponent {
|
|
1120
|
-
constructor(elementRef) {
|
|
1121
|
-
this.elementRef = elementRef;
|
|
1122
|
-
this.direction = 'ltr';
|
|
1123
|
-
this.menuItems = [];
|
|
1124
|
-
this.menuItemTemplate = null;
|
|
1125
|
-
this.menuAnchorTemplate = null;
|
|
1126
|
-
this.contextMenuItemClicked = new EventEmitter();
|
|
1127
|
-
this.isActive = false;
|
|
1128
|
-
this.top = '0px';
|
|
1129
|
-
this.left = '0px';
|
|
1130
|
-
}
|
|
1131
|
-
onDocumentClick(target) {
|
|
1132
|
-
if (!this.isActive) {
|
|
1133
|
-
return;
|
|
1134
|
-
}
|
|
1135
|
-
const contextMenuElement = this.elementRef.nativeElement;
|
|
1136
|
-
if (!contextMenuElement.contains(target)) {
|
|
1137
|
-
this.close();
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
open() {
|
|
1141
|
-
var _a;
|
|
1142
|
-
if (this.isActive) {
|
|
1143
|
-
this.close();
|
|
1144
|
-
return;
|
|
1145
|
-
}
|
|
1146
|
-
const anchor = (_a = this.anchor) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1147
|
-
const buttonRect = anchor.getBoundingClientRect();
|
|
1148
|
-
const left = this.calculateLeft(this.direction, buttonRect);
|
|
1149
|
-
const top = this.calculateTop(buttonRect.bottom);
|
|
1150
|
-
this.left = `${left}px`;
|
|
1151
|
-
this.top = `${top}px`;
|
|
1152
|
-
this.isActive = true;
|
|
1153
|
-
}
|
|
1154
|
-
close() {
|
|
1155
|
-
this.isActive = false;
|
|
1156
|
-
}
|
|
1157
|
-
onItemClick(item) {
|
|
1158
|
-
this.contextMenuItemClicked.emit(item);
|
|
1159
|
-
this.close();
|
|
1160
|
-
}
|
|
1161
|
-
onMenuItemKeyDown(event, menuItem) {
|
|
1162
|
-
switch (event.key) {
|
|
1163
|
-
case 'Enter':
|
|
1164
|
-
case ' ':
|
|
1165
|
-
event.preventDefault();
|
|
1166
|
-
this.onItemClick(menuItem);
|
|
1167
|
-
break;
|
|
1168
|
-
default:
|
|
1169
|
-
break;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
calculateTop(buttonRectBottom) {
|
|
1173
|
-
return buttonRectBottom + window.pageYOffset;
|
|
1174
|
-
}
|
|
1175
|
-
calculateLeft(direction, buttonRect) {
|
|
1176
|
-
var _a;
|
|
1177
|
-
const popover = (_a = this.popover) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1178
|
-
const popoverWidth = (popover === null || popover === void 0 ? void 0 : popover.offsetWidth) || 0;
|
|
1179
|
-
switch (direction) {
|
|
1180
|
-
case 'rtl':
|
|
1181
|
-
return popoverWidth <= buttonRect.left
|
|
1182
|
-
? buttonRect.right - popoverWidth
|
|
1183
|
-
: buttonRect.left;
|
|
1184
|
-
case 'ltr':
|
|
1185
|
-
default:
|
|
1186
|
-
return buttonRect.right + popoverWidth <= window.innerWidth
|
|
1187
|
-
? buttonRect.left
|
|
1188
|
-
: buttonRect.right - popoverWidth;
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
NggContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1193
|
-
NggContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NggContextMenuComponent, selector: "ngg-context-menu", inputs: { direction: "direction", menuItems: "menuItems", menuItemTemplate: "menuItemTemplate", menuAnchorTemplate: "menuAnchorTemplate" }, outputs: { contextMenuItemClicked: "contextMenuItemClicked" }, host: { listeners: { "document:click": "onDocumentClick($event.target)" } }, viewQueries: [{ propertyName: "popover", first: true, predicate: ["contextMenuPopover"], descendants: true }, { propertyName: "anchor", first: true, predicate: ["contextMenuAnchor"], descendants: true }], ngImport: i0, template: "<button #contextMenuAnchor class=\"ghost small\" (click)=\"open()\">\n <ng-container\n [ngTemplateOutlet]=\"menuAnchorTemplate ?? defaultButtonTemplate\"\n >\n </ng-container>\n</button>\n\n<div\n class=\"popover popover-context-menu\"\n [class.active]=\"isActive\"\n [style.top]=\"top\"\n [style.left]=\"left\"\n #contextMenuPopover\n>\n <ul role=\"listbox\">\n <li\n *ngFor=\"let menuItem of menuItems\"\n (click)=\"onItemClick(menuItem)\"\n tabindex=\"0\"\n (keydown)=\"onMenuItemKeyDown($event, menuItem)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuItemTemplate ?? defaultMenuItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"\n >\n </ng-container>\n </li>\n </ul>\n</div>\n\n<ng-template #defaultMenuItemTemplate let-menuItem>\n <span>{{ menuItem.label }}</span>\n</ng-template>\n\n<ng-template #defaultButtonTemplate>\n <i class=\"sg-icon sg-icon-ellipsis\">Open context menu</i>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, decorators: [{
|
|
1195
|
-
type: Component,
|
|
1196
|
-
args: [{ selector: 'ngg-context-menu', template: "<button #contextMenuAnchor class=\"ghost small\" (click)=\"open()\">\n <ng-container\n [ngTemplateOutlet]=\"menuAnchorTemplate ?? defaultButtonTemplate\"\n >\n </ng-container>\n</button>\n\n<div\n class=\"popover popover-context-menu\"\n [class.active]=\"isActive\"\n [style.top]=\"top\"\n [style.left]=\"left\"\n #contextMenuPopover\n>\n <ul role=\"listbox\">\n <li\n *ngFor=\"let menuItem of menuItems\"\n (click)=\"onItemClick(menuItem)\"\n tabindex=\"0\"\n (keydown)=\"onMenuItemKeyDown($event, menuItem)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"menuItemTemplate ?? defaultMenuItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: menuItem }\"\n >\n </ng-container>\n </li>\n </ul>\n</div>\n\n<ng-template #defaultMenuItemTemplate let-menuItem>\n <span>{{ menuItem.label }}</span>\n</ng-template>\n\n<ng-template #defaultButtonTemplate>\n <i class=\"sg-icon sg-icon-ellipsis\">Open context menu</i>\n</ng-template>\n" }]
|
|
1197
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { direction: [{
|
|
1198
|
-
type: Input
|
|
1199
|
-
}], menuItems: [{
|
|
1200
|
-
type: Input
|
|
1201
|
-
}], menuItemTemplate: [{
|
|
1202
|
-
type: Input
|
|
1203
|
-
}], menuAnchorTemplate: [{
|
|
1204
|
-
type: Input
|
|
1205
|
-
}], contextMenuItemClicked: [{
|
|
1206
|
-
type: Output
|
|
1207
|
-
}], popover: [{
|
|
1208
|
-
type: ViewChild,
|
|
1209
|
-
args: ['contextMenuPopover']
|
|
1210
|
-
}], anchor: [{
|
|
1211
|
-
type: ViewChild,
|
|
1212
|
-
args: ['contextMenuAnchor']
|
|
1213
|
-
}], onDocumentClick: [{
|
|
1214
|
-
type: HostListener,
|
|
1215
|
-
args: ['document:click', ['$event.target']]
|
|
1216
|
-
}] } });
|
|
1217
|
-
|
|
1218
|
-
class NggContextMenuModule {
|
|
1219
|
-
}
|
|
1220
|
-
NggContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1221
|
-
NggContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, declarations: [NggContextMenuComponent], imports: [CommonModule], exports: [NggContextMenuComponent] });
|
|
1222
|
-
NggContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, imports: [CommonModule] });
|
|
1223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, decorators: [{
|
|
1224
|
-
type: NgModule,
|
|
1225
|
-
args: [{
|
|
1226
|
-
declarations: [NggContextMenuComponent],
|
|
1227
|
-
imports: [CommonModule],
|
|
1228
|
-
exports: [NggContextMenuComponent],
|
|
1229
|
-
}]
|
|
1230
|
-
}] });
|
|
1231
|
-
|
|
1232
|
-
class NggInPageWizardStepCardComponent {
|
|
1233
|
-
constructor() {
|
|
1234
|
-
this.handleNextClick = new EventEmitter();
|
|
1235
|
-
this.handleEditClick = new EventEmitter();
|
|
1236
|
-
this.stepText = '';
|
|
1237
|
-
this.title = '';
|
|
1238
|
-
this.editBtnText = '';
|
|
1239
|
-
this.nextBtnText = '';
|
|
1240
|
-
this.isCompleted = false;
|
|
1241
|
-
this.disableNext = false;
|
|
1242
|
-
this.isActive = false;
|
|
1243
|
-
}
|
|
1244
|
-
handleOnEditBtnClick(event) {
|
|
1245
|
-
this.isActive = !this.isActive;
|
|
1246
|
-
this.handleEditClick.emit(event);
|
|
1247
|
-
}
|
|
1248
|
-
handleOnNextBtnClick(event) {
|
|
1249
|
-
this.isActive = false;
|
|
1250
|
-
this.isCompleted = true;
|
|
1251
|
-
this.handleNextClick.emit(event);
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
NggInPageWizardStepCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1255
|
-
NggInPageWizardStepCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NggInPageWizardStepCardComponent, selector: "ngg-in-page-wizard-step-card", inputs: { stepText: "stepText", title: "title", editBtnText: "editBtnText", nextBtnText: "nextBtnText", isCompleted: "isCompleted", disableNext: "disableNext", isActive: "isActive" }, outputs: { handleNextClick: "handleNextClick", handleEditClick: "handleEditClick" }, ngImport: i0, template: "<section\n class=\"gds-in-page-wizard-step-card card\"\n data-testid=\"in-page-wizard-step-card-root\"\n [class.active]=\"!!isActive\"\n [class.completed]=\"!!isCompleted\"\n>\n <header class=\"gds-in-page-wizard-step-card__header\">\n <div class=\"gds-in-page-wizard-step-card__header__icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->\n <path\n d=\"M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z\"\n />\n </svg>\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__progress\"\n data-testid=\"in-page-wizard-step-card-step-text\"\n >\n {{ stepText }}\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__title\"\n data-testid=\"in-page-wizard-step-card-title\"\n >\n <h2 class=\"h4\">{{ title }}</h2>\n </div>\n\n <div\n class=\"gds-in-page-wizard-step-card__header__edit\"\n *ngIf=\"!!isCompleted && !isActive\"\n >\n <button\n class=\"secondary small\"\n (click)=\"handleOnEditBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-edit-btn\"\n >\n {{ editBtnText }}\n </button>\n </div>\n </header>\n\n <div\n class=\"gds-in-page-wizard-step-card__content\"\n *ngIf=\"!!isActive || !!isCompleted\"\n data-testid=\"in-page-wizard-step-card-content\"\n >\n <ng-content></ng-content>\n </div>\n <footer class=\"gds-in-page-wizard-step-card__footer\" *ngIf=\"isActive\">\n <button\n class=\"primary\"\n [disabled]=\"disableNext\"\n (click)=\"handleOnNextBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-next-btn\"\n >\n {{ nextBtnText }}\n </button>\n </footer>\n</section>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, decorators: [{
|
|
1257
|
-
type: Component,
|
|
1258
|
-
args: [{ selector: 'ngg-in-page-wizard-step-card', template: "<section\n class=\"gds-in-page-wizard-step-card card\"\n data-testid=\"in-page-wizard-step-card-root\"\n [class.active]=\"!!isActive\"\n [class.completed]=\"!!isCompleted\"\n>\n <header class=\"gds-in-page-wizard-step-card__header\">\n <div class=\"gds-in-page-wizard-step-card__header__icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->\n <path\n d=\"M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z\"\n />\n </svg>\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__progress\"\n data-testid=\"in-page-wizard-step-card-step-text\"\n >\n {{ stepText }}\n </div>\n <div\n class=\"gds-in-page-wizard-step-card__header__title\"\n data-testid=\"in-page-wizard-step-card-title\"\n >\n <h2 class=\"h4\">{{ title }}</h2>\n </div>\n\n <div\n class=\"gds-in-page-wizard-step-card__header__edit\"\n *ngIf=\"!!isCompleted && !isActive\"\n >\n <button\n class=\"secondary small\"\n (click)=\"handleOnEditBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-edit-btn\"\n >\n {{ editBtnText }}\n </button>\n </div>\n </header>\n\n <div\n class=\"gds-in-page-wizard-step-card__content\"\n *ngIf=\"!!isActive || !!isCompleted\"\n data-testid=\"in-page-wizard-step-card-content\"\n >\n <ng-content></ng-content>\n </div>\n <footer class=\"gds-in-page-wizard-step-card__footer\" *ngIf=\"isActive\">\n <button\n class=\"primary\"\n [disabled]=\"disableNext\"\n (click)=\"handleOnNextBtnClick($event)\"\n data-testid=\"in-page-wizard-step-card-next-btn\"\n >\n {{ nextBtnText }}\n </button>\n </footer>\n</section>\n" }]
|
|
1259
|
-
}], propDecorators: { handleNextClick: [{
|
|
1260
|
-
type: Output
|
|
1261
|
-
}], handleEditClick: [{
|
|
1262
|
-
type: Output
|
|
1263
|
-
}], stepText: [{
|
|
1264
|
-
type: Input
|
|
1265
|
-
}], title: [{
|
|
1266
|
-
type: Input
|
|
1267
|
-
}], editBtnText: [{
|
|
1268
|
-
type: Input
|
|
1269
|
-
}], nextBtnText: [{
|
|
1270
|
-
type: Input
|
|
1271
|
-
}], isCompleted: [{
|
|
1272
|
-
type: Input
|
|
1273
|
-
}], disableNext: [{
|
|
1274
|
-
type: Input
|
|
1275
|
-
}], isActive: [{
|
|
1276
|
-
type: Input
|
|
1277
|
-
}] } });
|
|
1278
|
-
|
|
1279
|
-
class NggInPageWizardModule {
|
|
1280
|
-
}
|
|
1281
|
-
NggInPageWizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1282
|
-
NggInPageWizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, declarations: [NggInPageWizardStepCardComponent], imports: [CommonModule], exports: [NggInPageWizardStepCardComponent] });
|
|
1283
|
-
NggInPageWizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, imports: [CommonModule] });
|
|
1284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, decorators: [{
|
|
1285
|
-
type: NgModule,
|
|
1286
|
-
args: [{
|
|
1287
|
-
declarations: [NggInPageWizardStepCardComponent],
|
|
1288
|
-
imports: [CommonModule],
|
|
1289
|
-
exports: [NggInPageWizardStepCardComponent],
|
|
1290
|
-
}]
|
|
1291
|
-
}] });
|
|
1292
|
-
|
|
1293
1416
|
class NggModule {
|
|
1294
1417
|
}
|
|
1295
1418
|
NggModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1303,7 +1426,8 @@ NggModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
|
1303
1426
|
NggSegmentedControlModule,
|
|
1304
1427
|
NggSliderModule,
|
|
1305
1428
|
NggContextMenuModule,
|
|
1306
|
-
NggInPageWizardModule
|
|
1429
|
+
NggInPageWizardModule,
|
|
1430
|
+
NggSharedModule] });
|
|
1307
1431
|
NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, imports: [CommonModule, NggAccordionModule,
|
|
1308
1432
|
NggBadgeModule,
|
|
1309
1433
|
NggButtonModule,
|
|
@@ -1314,7 +1438,8 @@ NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
|
1314
1438
|
NggSegmentedControlModule,
|
|
1315
1439
|
NggSliderModule,
|
|
1316
1440
|
NggContextMenuModule,
|
|
1317
|
-
NggInPageWizardModule
|
|
1441
|
+
NggInPageWizardModule,
|
|
1442
|
+
NggSharedModule] });
|
|
1318
1443
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, decorators: [{
|
|
1319
1444
|
type: NgModule,
|
|
1320
1445
|
args: [{
|
|
@@ -1332,6 +1457,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1332
1457
|
NggSliderModule,
|
|
1333
1458
|
NggContextMenuModule,
|
|
1334
1459
|
NggInPageWizardModule,
|
|
1460
|
+
NggSharedModule,
|
|
1335
1461
|
],
|
|
1336
1462
|
}]
|
|
1337
1463
|
}] });
|
|
@@ -1525,5 +1651,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1525
1651
|
* Generated bundle index. Do not edit.
|
|
1526
1652
|
*/
|
|
1527
1653
|
|
|
1528
|
-
export { NggAccordionComponent, NggAccordionListItemComponent, NggAccordionModule, NggBadgeComponent, NggBadgeModule, NggButtonComponent, NggButtonModule, NggContextMenuComponent, NggContextMenuModule, NggDatepickerComponent, NggDatepickerModule, NggDropdownComponent, NggDropdownModule, NggDropdownOptionDirective, NggInPageWizardModule, NggInPageWizardStepCardComponent, NggModalBodyComponent, NggModalComponent, NggModalFooterComponent, NggModalHeaderComponent, NggModalModule, NggModule, NggPaginationComponent, NggPaginationModule, NggProgressCircleComponent, NggProgressCircleModule, NggSegmentedControlComponent, NggSegmentedControlModule, NggSliderComponent, NggSliderModule, dateValidator };
|
|
1654
|
+
export { NggAccordionComponent, NggAccordionListItemComponent, NggAccordionModule, NggBadgeComponent, NggBadgeModule, NggButtonComponent, NggButtonModule, NggContextMenuComponent, NggContextMenuModule, NggDatepickerComponent, NggDatepickerModule, NggDropdownButtonDirective, NggDropdownComponent, NggDropdownModule, NggDropdownOptionDirective, NggInPageWizardModule, NggInPageWizardStepCardComponent, NggModalBodyComponent, NggModalComponent, NggModalFooterComponent, NggModalHeaderComponent, NggModalModule, NggModule, NggOnScrollDirective, NggPaginationComponent, NggPaginationModule, NggProgressCircleComponent, NggProgressCircleModule, NggSegmentedControlComponent, NggSegmentedControlModule, NggSharedModule, NggSliderComponent, NggSliderModule, ON_SCROLL_TOKEN, dateValidator };
|
|
1529
1655
|
//# sourceMappingURL=sebgroup-green-angular.mjs.map
|