@sebgroup/green-angular 1.7.0 → 1.7.2
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 +38 -8
- package/esm2020/lib/context-menu/context-menu.module.mjs +2 -2
- 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 +276 -181
- package/fesm2015/sebgroup-green-angular.mjs.map +1 -1
- package/fesm2020/sebgroup-green-angular.mjs +269 -179
- package/fesm2020/sebgroup-green-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/context-menu/context-menu.component.d.ts +14 -5
- 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 +4 -4
|
@@ -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 * as i1$1 from '@angular/cdk/a11y';
|
|
@@ -267,6 +270,187 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
267
270
|
}]
|
|
268
271
|
}] });
|
|
269
272
|
|
|
273
|
+
const ON_SCROLL_TOKEN = new InjectionToken('ON_SCROLL_TOKEN');
|
|
274
|
+
class NggOnScrollDirective {
|
|
275
|
+
constructor(elementRef) {
|
|
276
|
+
this.elementRef = elementRef;
|
|
277
|
+
this.onScroll$ = new Subject();
|
|
278
|
+
this.destroy$ = new Subject();
|
|
279
|
+
}
|
|
280
|
+
ngAfterViewInit() {
|
|
281
|
+
if (this.elementRef) {
|
|
282
|
+
fromEvent(this.elementRef?.nativeElement, 'scroll')
|
|
283
|
+
.pipe(takeUntil(this.destroy$), throttle(() => interval(30)))
|
|
284
|
+
.subscribe(() => {
|
|
285
|
+
this.onScroll$.next();
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
ngOnDestroy() {
|
|
290
|
+
this.destroy$.next(null);
|
|
291
|
+
this.destroy$.complete();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
NggOnScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggOnScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
295
|
+
NggOnScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NggOnScrollDirective, selector: "[nggOnScroll]", providers: [
|
|
296
|
+
{
|
|
297
|
+
provide: ON_SCROLL_TOKEN,
|
|
298
|
+
useFactory: (component) => component?.onScroll$,
|
|
299
|
+
deps: [NggOnScrollDirective],
|
|
300
|
+
},
|
|
301
|
+
], ngImport: i0 });
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggOnScrollDirective, decorators: [{
|
|
303
|
+
type: Directive,
|
|
304
|
+
args: [{
|
|
305
|
+
selector: '[nggOnScroll]',
|
|
306
|
+
providers: [
|
|
307
|
+
{
|
|
308
|
+
provide: ON_SCROLL_TOKEN,
|
|
309
|
+
useFactory: (component) => component?.onScroll$,
|
|
310
|
+
deps: [NggOnScrollDirective],
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
}]
|
|
314
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
315
|
+
|
|
316
|
+
class NggContextMenuComponent {
|
|
317
|
+
constructor(changeDetectorRef, elementRef, closeContextMenu) {
|
|
318
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
319
|
+
this.elementRef = elementRef;
|
|
320
|
+
this.closeContextMenu = closeContextMenu;
|
|
321
|
+
this.direction = 'ltr';
|
|
322
|
+
this.menuItems = [];
|
|
323
|
+
this.menuItemTemplate = null;
|
|
324
|
+
this.menuAnchorTemplate = null;
|
|
325
|
+
this.closeOnScroll = false;
|
|
326
|
+
this.contextMenuItemClicked = new EventEmitter();
|
|
327
|
+
this.isActive = false;
|
|
328
|
+
this.top = '0px';
|
|
329
|
+
this.left = '0px';
|
|
330
|
+
}
|
|
331
|
+
onDocumentClick(target) {
|
|
332
|
+
if (!this.isActive) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
const contextMenuElement = this.elementRef.nativeElement;
|
|
336
|
+
if (!contextMenuElement.contains(target)) {
|
|
337
|
+
this.close();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
ngOnInit() {
|
|
341
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
342
|
+
this.close();
|
|
343
|
+
});
|
|
344
|
+
this.resizeObserver.observe(document.body);
|
|
345
|
+
}
|
|
346
|
+
ngAfterViewInit() {
|
|
347
|
+
if (this.closeOnScroll) {
|
|
348
|
+
this.menuCloseSubscription = this.closeContextMenu?.subscribe(() => this.close());
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
ngOnDestroy() {
|
|
352
|
+
this.resizeObserver?.unobserve(document.body);
|
|
353
|
+
this.menuCloseSubscription?.unsubscribe();
|
|
354
|
+
}
|
|
355
|
+
open() {
|
|
356
|
+
if (this.isActive) {
|
|
357
|
+
this.close();
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
const anchor = this.anchor?.nativeElement;
|
|
361
|
+
const buttonRect = anchor.getBoundingClientRect();
|
|
362
|
+
const left = this.calculateLeft(this.direction, buttonRect);
|
|
363
|
+
const top = this.calculateTop(buttonRect.bottom);
|
|
364
|
+
const gapBetweenButtonAndPopover = 3;
|
|
365
|
+
this.left = `${left}px`;
|
|
366
|
+
this.top = `${top + gapBetweenButtonAndPopover}px`;
|
|
367
|
+
this.isActive = true;
|
|
368
|
+
}
|
|
369
|
+
close() {
|
|
370
|
+
this.isActive = false;
|
|
371
|
+
this.changeDetectorRef.markForCheck();
|
|
372
|
+
}
|
|
373
|
+
onItemClick(item) {
|
|
374
|
+
this.contextMenuItemClicked.emit(item);
|
|
375
|
+
this.close();
|
|
376
|
+
}
|
|
377
|
+
onMenuItemKeyDown(event, menuItem) {
|
|
378
|
+
switch (event.key) {
|
|
379
|
+
case 'Enter':
|
|
380
|
+
case ' ':
|
|
381
|
+
event.preventDefault();
|
|
382
|
+
this.onItemClick(menuItem);
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
calculateTop(buttonRectBottom) {
|
|
389
|
+
return buttonRectBottom + window.pageYOffset;
|
|
390
|
+
}
|
|
391
|
+
calculateLeft(direction, buttonRect) {
|
|
392
|
+
const popover = this.popover?.nativeElement;
|
|
393
|
+
const popoverWidth = popover?.offsetWidth || 0;
|
|
394
|
+
switch (direction) {
|
|
395
|
+
case 'rtl':
|
|
396
|
+
return popoverWidth <= buttonRect.left
|
|
397
|
+
? buttonRect.right - popoverWidth
|
|
398
|
+
: buttonRect.left;
|
|
399
|
+
case 'ltr':
|
|
400
|
+
default:
|
|
401
|
+
return buttonRect.right + popoverWidth <= window.innerWidth
|
|
402
|
+
? buttonRect.left
|
|
403
|
+
: buttonRect.right - popoverWidth;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
NggContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: ON_SCROLL_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
408
|
+
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 px-3\"\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"] }] });
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, decorators: [{
|
|
410
|
+
type: Component,
|
|
411
|
+
args: [{ selector: 'ngg-context-menu', template: "<button\n #contextMenuAnchor\n class=\"ghost small px-3\"\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" }]
|
|
412
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2.Subject, decorators: [{
|
|
413
|
+
type: Optional
|
|
414
|
+
}, {
|
|
415
|
+
type: Inject,
|
|
416
|
+
args: [ON_SCROLL_TOKEN]
|
|
417
|
+
}] }]; }, propDecorators: { direction: [{
|
|
418
|
+
type: Input
|
|
419
|
+
}], menuItems: [{
|
|
420
|
+
type: Input
|
|
421
|
+
}], menuItemTemplate: [{
|
|
422
|
+
type: Input
|
|
423
|
+
}], menuAnchorTemplate: [{
|
|
424
|
+
type: Input
|
|
425
|
+
}], closeOnScroll: [{
|
|
426
|
+
type: Input
|
|
427
|
+
}], contextMenuItemClicked: [{
|
|
428
|
+
type: Output
|
|
429
|
+
}], popover: [{
|
|
430
|
+
type: ViewChild,
|
|
431
|
+
args: ['contextMenuPopover']
|
|
432
|
+
}], anchor: [{
|
|
433
|
+
type: ViewChild,
|
|
434
|
+
args: ['contextMenuAnchor']
|
|
435
|
+
}], onDocumentClick: [{
|
|
436
|
+
type: HostListener,
|
|
437
|
+
args: ['document:click', ['$event.target']]
|
|
438
|
+
}] } });
|
|
439
|
+
|
|
440
|
+
class NggContextMenuModule {
|
|
441
|
+
}
|
|
442
|
+
NggContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
443
|
+
NggContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, declarations: [NggContextMenuComponent], imports: [CommonModule], exports: [NggContextMenuComponent] });
|
|
444
|
+
NggContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, imports: [CommonModule] });
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, decorators: [{
|
|
446
|
+
type: NgModule,
|
|
447
|
+
args: [{
|
|
448
|
+
declarations: [NggContextMenuComponent],
|
|
449
|
+
imports: [CommonModule],
|
|
450
|
+
exports: [NggContextMenuComponent],
|
|
451
|
+
}]
|
|
452
|
+
}] });
|
|
453
|
+
|
|
270
454
|
class NggDropdownOptionDirective {
|
|
271
455
|
constructor(templateRef) {
|
|
272
456
|
this.templateRef = templateRef;
|
|
@@ -700,6 +884,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
700
884
|
}]
|
|
701
885
|
}] });
|
|
702
886
|
|
|
887
|
+
class NggInPageWizardStepCardComponent {
|
|
888
|
+
constructor() {
|
|
889
|
+
this.handleNextClick = new EventEmitter();
|
|
890
|
+
this.handleEditClick = new EventEmitter();
|
|
891
|
+
this.stepText = '';
|
|
892
|
+
this.title = '';
|
|
893
|
+
this.editBtnText = '';
|
|
894
|
+
this.nextBtnText = '';
|
|
895
|
+
this.isCompleted = false;
|
|
896
|
+
this.disableNext = false;
|
|
897
|
+
this.isActive = false;
|
|
898
|
+
}
|
|
899
|
+
handleOnEditBtnClick(event) {
|
|
900
|
+
this.isActive = !this.isActive;
|
|
901
|
+
this.handleEditClick.emit(event);
|
|
902
|
+
}
|
|
903
|
+
handleOnNextBtnClick(event) {
|
|
904
|
+
this.isActive = false;
|
|
905
|
+
this.isCompleted = true;
|
|
906
|
+
this.handleNextClick.emit(event);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
NggInPageWizardStepCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
910
|
+
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"] }] });
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, decorators: [{
|
|
912
|
+
type: Component,
|
|
913
|
+
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" }]
|
|
914
|
+
}], propDecorators: { handleNextClick: [{
|
|
915
|
+
type: Output
|
|
916
|
+
}], handleEditClick: [{
|
|
917
|
+
type: Output
|
|
918
|
+
}], stepText: [{
|
|
919
|
+
type: Input
|
|
920
|
+
}], title: [{
|
|
921
|
+
type: Input
|
|
922
|
+
}], editBtnText: [{
|
|
923
|
+
type: Input
|
|
924
|
+
}], nextBtnText: [{
|
|
925
|
+
type: Input
|
|
926
|
+
}], isCompleted: [{
|
|
927
|
+
type: Input
|
|
928
|
+
}], disableNext: [{
|
|
929
|
+
type: Input
|
|
930
|
+
}], isActive: [{
|
|
931
|
+
type: Input
|
|
932
|
+
}] } });
|
|
933
|
+
|
|
934
|
+
class NggInPageWizardModule {
|
|
935
|
+
}
|
|
936
|
+
NggInPageWizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
937
|
+
NggInPageWizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, declarations: [NggInPageWizardStepCardComponent], imports: [CommonModule], exports: [NggInPageWizardStepCardComponent] });
|
|
938
|
+
NggInPageWizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, imports: [CommonModule] });
|
|
939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, decorators: [{
|
|
940
|
+
type: NgModule,
|
|
941
|
+
args: [{
|
|
942
|
+
declarations: [NggInPageWizardStepCardComponent],
|
|
943
|
+
imports: [CommonModule],
|
|
944
|
+
exports: [NggInPageWizardStepCardComponent],
|
|
945
|
+
}]
|
|
946
|
+
}] });
|
|
947
|
+
|
|
703
948
|
class NggModalComponent {
|
|
704
949
|
constructor(ref, configurableFocusTrapFactory) {
|
|
705
950
|
this.ref = ref;
|
|
@@ -1012,6 +1257,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1012
1257
|
}]
|
|
1013
1258
|
}] });
|
|
1014
1259
|
|
|
1260
|
+
class NggSharedModule {
|
|
1261
|
+
}
|
|
1262
|
+
NggSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1263
|
+
NggSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, declarations: [NggOnScrollDirective], imports: [CommonModule], exports: [NggOnScrollDirective] });
|
|
1264
|
+
NggSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, imports: [CommonModule] });
|
|
1265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSharedModule, decorators: [{
|
|
1266
|
+
type: NgModule,
|
|
1267
|
+
args: [{
|
|
1268
|
+
declarations: [NggOnScrollDirective],
|
|
1269
|
+
imports: [CommonModule],
|
|
1270
|
+
exports: [NggOnScrollDirective],
|
|
1271
|
+
}]
|
|
1272
|
+
}] });
|
|
1273
|
+
|
|
1015
1274
|
class NggSliderComponent {
|
|
1016
1275
|
constructor() {
|
|
1017
1276
|
this.name = `${randomId()}-slider`;
|
|
@@ -1077,7 +1336,7 @@ NggSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
1077
1336
|
useExisting: NggSliderComponent,
|
|
1078
1337
|
multi: true,
|
|
1079
1338
|
},
|
|
1080
|
-
], 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 });
|
|
1339
|
+
], 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 });
|
|
1081
1340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggSliderComponent, decorators: [{
|
|
1082
1341
|
type: Component,
|
|
1083
1342
|
args: [{ selector: 'ngg-slider', providers: [
|
|
@@ -1131,178 +1390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1131
1390
|
}]
|
|
1132
1391
|
}] });
|
|
1133
1392
|
|
|
1134
|
-
class NggContextMenuComponent {
|
|
1135
|
-
constructor(elementRef) {
|
|
1136
|
-
this.elementRef = elementRef;
|
|
1137
|
-
this.direction = 'ltr';
|
|
1138
|
-
this.menuItems = [];
|
|
1139
|
-
this.menuItemTemplate = null;
|
|
1140
|
-
this.menuAnchorTemplate = null;
|
|
1141
|
-
this.contextMenuItemClicked = new EventEmitter();
|
|
1142
|
-
this.isActive = false;
|
|
1143
|
-
this.top = '0px';
|
|
1144
|
-
this.left = '0px';
|
|
1145
|
-
}
|
|
1146
|
-
onDocumentClick(target) {
|
|
1147
|
-
if (!this.isActive) {
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
const contextMenuElement = this.elementRef.nativeElement;
|
|
1151
|
-
if (!contextMenuElement.contains(target)) {
|
|
1152
|
-
this.close();
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
open() {
|
|
1156
|
-
if (this.isActive) {
|
|
1157
|
-
this.close();
|
|
1158
|
-
return;
|
|
1159
|
-
}
|
|
1160
|
-
const anchor = this.anchor?.nativeElement;
|
|
1161
|
-
const buttonRect = anchor.getBoundingClientRect();
|
|
1162
|
-
const left = this.calculateLeft(this.direction, buttonRect);
|
|
1163
|
-
const top = this.calculateTop(buttonRect.bottom);
|
|
1164
|
-
this.left = `${left}px`;
|
|
1165
|
-
this.top = `${top}px`;
|
|
1166
|
-
this.isActive = true;
|
|
1167
|
-
}
|
|
1168
|
-
close() {
|
|
1169
|
-
this.isActive = false;
|
|
1170
|
-
}
|
|
1171
|
-
onItemClick(item) {
|
|
1172
|
-
this.contextMenuItemClicked.emit(item);
|
|
1173
|
-
this.close();
|
|
1174
|
-
}
|
|
1175
|
-
onMenuItemKeyDown(event, menuItem) {
|
|
1176
|
-
switch (event.key) {
|
|
1177
|
-
case 'Enter':
|
|
1178
|
-
case ' ':
|
|
1179
|
-
event.preventDefault();
|
|
1180
|
-
this.onItemClick(menuItem);
|
|
1181
|
-
break;
|
|
1182
|
-
default:
|
|
1183
|
-
break;
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
calculateTop(buttonRectBottom) {
|
|
1187
|
-
return buttonRectBottom + window.pageYOffset;
|
|
1188
|
-
}
|
|
1189
|
-
calculateLeft(direction, buttonRect) {
|
|
1190
|
-
const popover = this.popover?.nativeElement;
|
|
1191
|
-
const popoverWidth = popover?.offsetWidth || 0;
|
|
1192
|
-
switch (direction) {
|
|
1193
|
-
case 'rtl':
|
|
1194
|
-
return popoverWidth <= buttonRect.left
|
|
1195
|
-
? buttonRect.right - popoverWidth
|
|
1196
|
-
: buttonRect.left;
|
|
1197
|
-
case 'ltr':
|
|
1198
|
-
default:
|
|
1199
|
-
return buttonRect.right + popoverWidth <= window.innerWidth
|
|
1200
|
-
? buttonRect.left
|
|
1201
|
-
: buttonRect.right - popoverWidth;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
NggContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1206
|
-
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"] }] });
|
|
1207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuComponent, decorators: [{
|
|
1208
|
-
type: Component,
|
|
1209
|
-
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" }]
|
|
1210
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { direction: [{
|
|
1211
|
-
type: Input
|
|
1212
|
-
}], menuItems: [{
|
|
1213
|
-
type: Input
|
|
1214
|
-
}], menuItemTemplate: [{
|
|
1215
|
-
type: Input
|
|
1216
|
-
}], menuAnchorTemplate: [{
|
|
1217
|
-
type: Input
|
|
1218
|
-
}], contextMenuItemClicked: [{
|
|
1219
|
-
type: Output
|
|
1220
|
-
}], popover: [{
|
|
1221
|
-
type: ViewChild,
|
|
1222
|
-
args: ['contextMenuPopover']
|
|
1223
|
-
}], anchor: [{
|
|
1224
|
-
type: ViewChild,
|
|
1225
|
-
args: ['contextMenuAnchor']
|
|
1226
|
-
}], onDocumentClick: [{
|
|
1227
|
-
type: HostListener,
|
|
1228
|
-
args: ['document:click', ['$event.target']]
|
|
1229
|
-
}] } });
|
|
1230
|
-
|
|
1231
|
-
class NggContextMenuModule {
|
|
1232
|
-
}
|
|
1233
|
-
NggContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1234
|
-
NggContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, declarations: [NggContextMenuComponent], imports: [CommonModule], exports: [NggContextMenuComponent] });
|
|
1235
|
-
NggContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, imports: [CommonModule] });
|
|
1236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggContextMenuModule, decorators: [{
|
|
1237
|
-
type: NgModule,
|
|
1238
|
-
args: [{
|
|
1239
|
-
declarations: [NggContextMenuComponent],
|
|
1240
|
-
imports: [CommonModule],
|
|
1241
|
-
exports: [NggContextMenuComponent],
|
|
1242
|
-
}]
|
|
1243
|
-
}] });
|
|
1244
|
-
|
|
1245
|
-
class NggInPageWizardStepCardComponent {
|
|
1246
|
-
constructor() {
|
|
1247
|
-
this.handleNextClick = new EventEmitter();
|
|
1248
|
-
this.handleEditClick = new EventEmitter();
|
|
1249
|
-
this.stepText = '';
|
|
1250
|
-
this.title = '';
|
|
1251
|
-
this.editBtnText = '';
|
|
1252
|
-
this.nextBtnText = '';
|
|
1253
|
-
this.isCompleted = false;
|
|
1254
|
-
this.disableNext = false;
|
|
1255
|
-
this.isActive = false;
|
|
1256
|
-
}
|
|
1257
|
-
handleOnEditBtnClick(event) {
|
|
1258
|
-
this.isActive = !this.isActive;
|
|
1259
|
-
this.handleEditClick.emit(event);
|
|
1260
|
-
}
|
|
1261
|
-
handleOnNextBtnClick(event) {
|
|
1262
|
-
this.isActive = false;
|
|
1263
|
-
this.isCompleted = true;
|
|
1264
|
-
this.handleNextClick.emit(event);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
NggInPageWizardStepCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1268
|
-
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"] }] });
|
|
1269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardStepCardComponent, decorators: [{
|
|
1270
|
-
type: Component,
|
|
1271
|
-
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" }]
|
|
1272
|
-
}], propDecorators: { handleNextClick: [{
|
|
1273
|
-
type: Output
|
|
1274
|
-
}], handleEditClick: [{
|
|
1275
|
-
type: Output
|
|
1276
|
-
}], stepText: [{
|
|
1277
|
-
type: Input
|
|
1278
|
-
}], title: [{
|
|
1279
|
-
type: Input
|
|
1280
|
-
}], editBtnText: [{
|
|
1281
|
-
type: Input
|
|
1282
|
-
}], nextBtnText: [{
|
|
1283
|
-
type: Input
|
|
1284
|
-
}], isCompleted: [{
|
|
1285
|
-
type: Input
|
|
1286
|
-
}], disableNext: [{
|
|
1287
|
-
type: Input
|
|
1288
|
-
}], isActive: [{
|
|
1289
|
-
type: Input
|
|
1290
|
-
}] } });
|
|
1291
|
-
|
|
1292
|
-
class NggInPageWizardModule {
|
|
1293
|
-
}
|
|
1294
|
-
NggInPageWizardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1295
|
-
NggInPageWizardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, declarations: [NggInPageWizardStepCardComponent], imports: [CommonModule], exports: [NggInPageWizardStepCardComponent] });
|
|
1296
|
-
NggInPageWizardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, imports: [CommonModule] });
|
|
1297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggInPageWizardModule, decorators: [{
|
|
1298
|
-
type: NgModule,
|
|
1299
|
-
args: [{
|
|
1300
|
-
declarations: [NggInPageWizardStepCardComponent],
|
|
1301
|
-
imports: [CommonModule],
|
|
1302
|
-
exports: [NggInPageWizardStepCardComponent],
|
|
1303
|
-
}]
|
|
1304
|
-
}] });
|
|
1305
|
-
|
|
1306
1393
|
class NggModule {
|
|
1307
1394
|
}
|
|
1308
1395
|
NggModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1316,7 +1403,8 @@ NggModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
|
1316
1403
|
NggSegmentedControlModule,
|
|
1317
1404
|
NggSliderModule,
|
|
1318
1405
|
NggContextMenuModule,
|
|
1319
|
-
NggInPageWizardModule
|
|
1406
|
+
NggInPageWizardModule,
|
|
1407
|
+
NggSharedModule] });
|
|
1320
1408
|
NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, imports: [CommonModule, NggAccordionModule,
|
|
1321
1409
|
NggBadgeModule,
|
|
1322
1410
|
NggButtonModule,
|
|
@@ -1327,7 +1415,8 @@ NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
|
1327
1415
|
NggSegmentedControlModule,
|
|
1328
1416
|
NggSliderModule,
|
|
1329
1417
|
NggContextMenuModule,
|
|
1330
|
-
NggInPageWizardModule
|
|
1418
|
+
NggInPageWizardModule,
|
|
1419
|
+
NggSharedModule] });
|
|
1331
1420
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NggModule, decorators: [{
|
|
1332
1421
|
type: NgModule,
|
|
1333
1422
|
args: [{
|
|
@@ -1345,6 +1434,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1345
1434
|
NggSliderModule,
|
|
1346
1435
|
NggContextMenuModule,
|
|
1347
1436
|
NggInPageWizardModule,
|
|
1437
|
+
NggSharedModule,
|
|
1348
1438
|
],
|
|
1349
1439
|
}]
|
|
1350
1440
|
}] });
|
|
@@ -1538,5 +1628,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1538
1628
|
* Generated bundle index. Do not edit.
|
|
1539
1629
|
*/
|
|
1540
1630
|
|
|
1541
|
-
export { NggAccordionComponent, NggAccordionListItemComponent, NggAccordionModule, NggBadgeComponent, NggBadgeModule, NggButtonComponent, NggButtonModule, NggContextMenuComponent, NggContextMenuModule, NggDatepickerComponent, NggDatepickerModule, NggDropdownButtonDirective, NggDropdownComponent, NggDropdownModule, NggDropdownOptionDirective, NggInPageWizardModule, NggInPageWizardStepCardComponent, NggModalBodyComponent, NggModalComponent, NggModalFooterComponent, NggModalHeaderComponent, NggModalModule, NggModule, NggPaginationComponent, NggPaginationModule, NggProgressCircleComponent, NggProgressCircleModule, NggSegmentedControlComponent, NggSegmentedControlModule, NggSliderComponent, NggSliderModule, dateValidator };
|
|
1631
|
+
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 };
|
|
1542
1632
|
//# sourceMappingURL=sebgroup-green-angular.mjs.map
|