@lucca-front/ng 8.1.0-rc.2 → 8.1.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,44 +1,19 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, Inject, ChangeDetectionStrategy, LOCALE_ID, Directive, ViewChild, Component, HostBinding, Injector, NgModule } from '@angular/core';
3
- import { LuPopup, ALuPopupRef } from '@lucca-front/ng/popup';
4
- import * as i3 from '@angular/cdk/portal';
5
- import { CdkPortalOutlet, ComponentPortal, PortalModule } from '@angular/cdk/portal';
6
- import { Subject, Subscription, Observable, timer } from 'rxjs';
7
- import { tap, delay } from 'rxjs/operators';
8
- import { ALuIntl } from '@lucca-front/ng/core';
9
1
  import * as i2 from '@angular/cdk/a11y';
10
2
  import { A11yModule } from '@angular/cdk/a11y';
11
- import * as i4 from '@angular/common';
12
- import { CommonModule } from '@angular/common';
13
3
  import * as i1 from '@angular/cdk/overlay';
14
4
  import { OverlayModule } from '@angular/cdk/overlay';
15
-
16
- /** Injection token that can be used to access the data that was passed in to a dialog. */
17
- const LU_MODAL_DATA = new InjectionToken('LuModalData');
18
- const LU_MODAL_CONFIG = new InjectionToken('LuModalDefaultConfig');
19
- const LU_MODAL_REF_FACTORY = new InjectionToken('LuModalRefFactory');
20
- const LU_MODAL_TRANSLATIONS = new InjectionToken('LuModalTranslations');
21
-
22
- class LuModal extends LuPopup {
23
- constructor(_factory, _config) {
24
- super(_factory, _config);
25
- this._factory = _factory;
26
- this._config = _config;
27
- }
28
- }
29
- LuModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal, deps: [{ token: LU_MODAL_REF_FACTORY }, { token: LU_MODAL_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
30
- LuModal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal, decorators: [{
32
- type: Injectable
33
- }], ctorParameters: function () {
34
- return [{ type: undefined, decorators: [{
35
- type: Inject,
36
- args: [LU_MODAL_REF_FACTORY]
37
- }] }, { type: undefined, decorators: [{
38
- type: Inject,
39
- args: [LU_MODAL_CONFIG]
40
- }] }];
41
- } });
5
+ import * as i4 from '@angular/cdk/portal';
6
+ import { CdkPortalOutlet, ComponentPortal, PortalModule } from '@angular/cdk/portal';
7
+ import * as i5 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i0 from '@angular/core';
10
+ import { ChangeDetectionStrategy, InjectionToken, LOCALE_ID, Injectable, Inject, Directive, ViewChild, Component, HostBinding, Injector, NgModule } from '@angular/core';
11
+ import * as i3 from '@lucca-front/ng/tooltip';
12
+ import { LuTooltipModule } from '@lucca-front/ng/tooltip';
13
+ import { Subject, Subscription, Observable, timer } from 'rxjs';
14
+ import { tap, delay } from 'rxjs/operators';
15
+ import { ALuIntl } from '@lucca-front/ng/core';
16
+ import { ALuPopupRef, LuPopup } from '@lucca-front/ng/popup';
42
17
 
43
18
  const luDefaultModalConfig = {
44
19
  position: 'center',
@@ -50,6 +25,12 @@ const luDefaultModalConfig = {
50
25
  changeDetection: ChangeDetectionStrategy.OnPush,
51
26
  };
52
27
 
28
+ /** Injection token that can be used to access the data that was passed in to a dialog. */
29
+ const LU_MODAL_DATA = new InjectionToken('LuModalData');
30
+ const LU_MODAL_CONFIG = new InjectionToken('LuModalDefaultConfig');
31
+ const LU_MODAL_REF_FACTORY = new InjectionToken('LuModalRefFactory');
32
+ const LU_MODAL_TRANSLATIONS = new InjectionToken('LuModalTranslations');
33
+
53
34
  class LuModalIntl extends ALuIntl {
54
35
  constructor(translations, locale) {
55
36
  super(translations, locale);
@@ -90,6 +71,9 @@ class ALuModalPanelComponent {
90
71
  get cancelLabel() {
91
72
  return this._componentInstance.cancelLabel || this.intl.cancel;
92
73
  }
74
+ get closeLabel() {
75
+ return this.intl.close;
76
+ }
93
77
  get isSubmitDisabled() {
94
78
  return this._componentInstance.submitDisabled;
95
79
  }
@@ -172,10 +156,10 @@ class LuModalPanelComponent extends ALuModalPanelComponent {
172
156
  }
173
157
  }
174
158
  LuModalPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalPanelComponent, deps: [{ token: ALuModalRef }, { token: i0.ChangeDetectorRef }, { token: LuModalIntl }], target: i0.ɵɵFactoryTarget.Component });
175
- LuModalPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuModalPanelComponent, selector: "lu-modal-panel", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
159
+ LuModalPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuModalPanelComponent, selector: "lu-modal-panel", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipPosition"], outputs: ["luTooltipOnOpen", "luTooltipOnClose"] }, { type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
176
160
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalPanelComponent, decorators: [{
177
161
  type: Component,
178
- args: [{ selector: 'lu-modal-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
162
+ args: [{ selector: 'lu-modal-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
179
163
  }], ctorParameters: function () {
180
164
  return [{ type: ALuModalRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
181
165
  type: Inject,
@@ -193,10 +177,10 @@ class LuModalPanelComponentDefaultCD extends ALuModalPanelComponent {
193
177
  }
194
178
  }
195
179
  LuModalPanelComponentDefaultCD.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalPanelComponentDefaultCD, deps: [{ token: ALuModalRef }, { token: i0.ChangeDetectorRef }, { token: LuModalIntl }], target: i0.ɵɵFactoryTarget.Component });
196
- LuModalPanelComponentDefaultCD.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuModalPanelComponentDefaultCD, selector: "lu-modal-panel-default", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
180
+ LuModalPanelComponentDefaultCD.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuModalPanelComponentDefaultCD, selector: "lu-modal-panel-default", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipPosition"], outputs: ["luTooltipOnOpen", "luTooltipOnClose"] }, { type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
197
181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalPanelComponentDefaultCD, decorators: [{
198
182
  type: Component,
199
- args: [{ selector: 'lu-modal-panel-default', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
183
+ args: [{ selector: 'lu-modal-panel-default', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
200
184
  }], ctorParameters: function () {
201
185
  return [{ type: ALuModalRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
202
186
  type: Inject,
@@ -255,38 +239,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
255
239
  type: Injectable
256
240
  }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }]; } });
257
241
 
242
+ class LuModal extends LuPopup {
243
+ constructor(_factory, _config) {
244
+ super(_factory, _config);
245
+ this._factory = _factory;
246
+ this._config = _config;
247
+ }
248
+ }
249
+ LuModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal, deps: [{ token: LU_MODAL_REF_FACTORY }, { token: LU_MODAL_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
250
+ LuModal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal });
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModal, decorators: [{
252
+ type: Injectable
253
+ }], ctorParameters: function () {
254
+ return [{ type: undefined, decorators: [{
255
+ type: Inject,
256
+ args: [LU_MODAL_REF_FACTORY]
257
+ }] }, { type: undefined, decorators: [{
258
+ type: Inject,
259
+ args: [LU_MODAL_CONFIG]
260
+ }] }];
261
+ } });
262
+
258
263
  class ALuModalLabel {
259
264
  }
260
265
  const luModalTranslations = {
261
266
  en: {
262
267
  submit: 'Ok',
263
268
  cancel: 'Cancel',
269
+ close: 'Close',
264
270
  },
265
271
  fr: {
266
272
  submit: 'Ok',
267
273
  cancel: 'Annuler',
274
+ close: 'Fermer',
268
275
  },
269
276
  es: {
270
277
  submit: 'Ok',
271
278
  cancel: 'Cancelar',
279
+ close: 'Cerrar',
272
280
  },
273
281
  };
274
282
 
275
283
  class LuModalModule {
276
284
  }
277
285
  LuModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
278
- LuModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalModule, declarations: [LuModalPanelComponent, LuModalPanelComponentDefaultCD], imports: [OverlayModule, PortalModule, CommonModule, A11yModule], exports: [LuModalPanelComponent, LuModalPanelComponentDefaultCD] });
286
+ LuModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalModule, declarations: [LuModalPanelComponent, LuModalPanelComponentDefaultCD], imports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule], exports: [LuModalPanelComponent, LuModalPanelComponentDefaultCD] });
279
287
  LuModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalModule, providers: [
280
288
  LuModal,
281
289
  LuModalIntl,
282
290
  { provide: LU_MODAL_CONFIG, useValue: luDefaultModalConfig },
283
291
  { provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory },
284
292
  { provide: LU_MODAL_TRANSLATIONS, useValue: luModalTranslations },
285
- ], imports: [[OverlayModule, PortalModule, CommonModule, A11yModule]] });
293
+ ], imports: [[OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule]] });
286
294
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuModalModule, decorators: [{
287
295
  type: NgModule,
288
296
  args: [{
289
- imports: [OverlayModule, PortalModule, CommonModule, A11yModule],
297
+ imports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule],
290
298
  declarations: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],
291
299
  entryComponents: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],
292
300
  exports: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-modal.mjs","sources":["../../../packages/ng/modal/src/lib/modal.token.ts","../../../packages/ng/modal/src/lib/modal.service.ts","../../../packages/ng/modal/src/lib/modal-config.default.ts","../../../packages/ng/modal/src/lib/modal.intl.ts","../../../packages/ng/modal/src/lib/modal-ref.model.ts","../../../packages/ng/modal/src/lib/modal-panel.component.ts","../../../packages/ng/modal/src/lib/modal-panel.component.html","../../../packages/ng/modal/src/lib/modal-ref.factory.ts","../../../packages/ng/modal/src/lib/modal.translate.ts","../../../packages/ng/modal/src/lib/modal.module.ts","../../../packages/ng/modal/src/public-api.ts","../../../packages/ng/modal/src/lucca-front-ng-modal.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\nimport { ILuTranslation } from '@lucca-front/ng/core';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig, ILuModalLabel } from '.';\r\n\r\n/** Injection token that can be used to access the data that was passed in to a dialog. */\r\nexport const LU_MODAL_DATA = new InjectionToken<unknown>('LuModalData');\r\nexport const LU_MODAL_CONFIG = new InjectionToken<ILuModalConfig>('LuModalDefaultConfig');\r\nexport const LU_MODAL_REF_FACTORY = new InjectionToken<ILuPopupRefFactory>('LuModalRefFactory');\r\nexport const LU_MODAL_TRANSLATIONS = new InjectionToken<ILuTranslation<ILuModalLabel>>('LuModalTranslations');\r\n","import { Injectable, Inject } from '@angular/core';\r\nimport { LuPopup, ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig } from './modal-config.model';\r\nimport { LU_MODAL_CONFIG, LU_MODAL_REF_FACTORY } from './modal.token';\r\n\r\n@Injectable()\r\nexport class LuModal<C extends ILuModalConfig = ILuModalConfig> extends LuPopup<C> {\r\n\tconstructor(\r\n\t\t@Inject(LU_MODAL_REF_FACTORY)\r\n\t\tprotected override _factory: ILuPopupRefFactory,\r\n\t\t@Inject(LU_MODAL_CONFIG) protected override _config: ILuModalConfig,\r\n\t) {\r\n\t\tsuper(_factory, _config);\r\n\t}\r\n}\r\n","import { ILuModalConfig } from './modal-config.model';\r\nimport { ChangeDetectionStrategy } from '@angular/core';\r\n\r\nexport const luDefaultModalConfig: ILuModalConfig = {\r\n\tposition: 'center',\r\n\tnoBackdrop: false,\r\n\tundismissable: false,\r\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\r\n\tpanelClass: 'lu-popup-panel',\r\n\tsize: 'standard',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n};\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_MODAL_TRANSLATIONS } from './modal.token';\r\nimport { ILuModalLabel } from './modal.translate';\r\n\r\n@Injectable()\r\nexport class LuModalIntl extends ALuIntl<ILuModalLabel> {\r\n\tconstructor(@Inject(LU_MODAL_TRANSLATIONS) translations: ILuTranslation<ILuModalLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { ALuPopupRef, ILuPopupRef } from '@lucca-front/ng/popup';\r\nimport { ILuModalContent } from './modal.model';\r\n\r\nexport type ILuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> = ILuPopupRef<T, D, R>;\r\nexport abstract class ALuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> extends ALuPopupRef<T, D, R> implements ILuModalRef<T, D, R> {}\r\n","import { CdkPortalOutlet, Portal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentRef, Directive, HostBinding, Inject, OnDestroy, ViewChild } from '@angular/core';\r\nimport { Observable, Subject, Subscription, timer } from 'rxjs';\r\nimport { delay, tap } from 'rxjs/operators';\r\nimport { ALuModalRef } from './modal-ref.model';\r\nimport { LuModalIntl } from './modal.intl';\r\nimport { ILuModalContent } from './modal.model';\r\nimport { LU_MODAL_TRANSLATIONS } from './modal.token';\r\nimport { ILuModalLabel } from './modal.translate';\r\n\r\n@Directive()\r\nexport abstract class ALuModalPanelComponent<T extends ILuModalContent> implements PortalOutlet, OnDestroy {\r\n\t@ViewChild('outlet', { read: CdkPortalOutlet, static: true })\r\n\tprotected _outlet: PortalOutlet;\r\n\tprotected _componentInstance: T;\r\n\tget title() {\r\n\t\treturn this._componentInstance.title;\r\n\t}\r\n\tget submitLabel() {\r\n\t\treturn this._componentInstance.submitLabel || this.intl.submit;\r\n\t}\r\n\tget cancelLabel() {\r\n\t\treturn this._componentInstance.cancelLabel || this.intl.cancel;\r\n\t}\r\n\tget isSubmitDisabled() {\r\n\t\treturn this._componentInstance.submitDisabled;\r\n\t}\r\n\tget isSubmitHidden() {\r\n\t\treturn !this._componentInstance.submitAction;\r\n\t}\r\n\tget submitPalette() {\r\n\t\treturn this._componentInstance.submitPalette || 'primary';\r\n\t}\r\n\tget hasSubmitCounter() {\r\n\t\treturn !!this._componentInstance.submitCounter;\r\n\t}\r\n\tget submitCounter() {\r\n\t\treturn this._componentInstance.submitCounter || 0;\r\n\t}\r\n\r\n\tsubmitClass$ = new Subject();\r\n\terror$ = new Subject();\r\n\r\n\tprivate _subs = new Subscription();\r\n\r\n\tconstructor(protected _ref: ALuModalRef<LuModalPanelComponent<T>>, protected _cdr: ChangeDetectorRef, @Inject(LU_MODAL_TRANSLATIONS) public intl: ILuModalLabel) {}\r\n\tattach<U extends T = T>(portal: Portal<U>) {\r\n\t\tconst ref = this._outlet.attach(portal) as ComponentRef<U>;\r\n\t\tthis._componentInstance = ref.instance;\r\n\t\treturn ref;\r\n\t}\r\n\tdetach() {\r\n\t\tthis._outlet.detach();\r\n\t}\r\n\tdispose() {\r\n\t\treturn this._outlet.dispose();\r\n\t}\r\n\thasAttached() {\r\n\t\treturn this._outlet.hasAttached();\r\n\t}\r\n\tngOnDestroy() {\r\n\t\tthis._subs.unsubscribe();\r\n\t\tthis.detach();\r\n\t\tthis.dispose();\r\n\t}\r\n\tdismiss() {\r\n\t\tthis._ref.dismiss();\r\n\t}\r\n\tsubmit() {\r\n\t\tthis.error$.next(undefined);\r\n\t\tthis.submitClass$.next('is-loading');\r\n\t\tconst result$ = this._componentInstance.submitAction();\r\n\t\tif (result$ instanceof Observable) {\r\n\t\t\tthis._subs.add(\r\n\t\t\t\tresult$\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\ttap((_) => this.submitClass$.next('is-success')),\r\n\t\t\t\t\t\ttap(() => this._cdr.markForCheck()),\r\n\t\t\t\t\t\tdelay(500),\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.subscribe(\r\n\t\t\t\t\t\t(result) => {\r\n\t\t\t\t\t\t\tthis._ref.close(result);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t(err) => {\r\n\t\t\t\t\t\t\tthis.submitClass$.next('is-error');\r\n\t\t\t\t\t\t\tthis.error$.next(err);\r\n\t\t\t\t\t\t\tthis._cdr.markForCheck();\r\n\t\t\t\t\t\t\ttimer(2000).subscribe((_) => {\r\n\t\t\t\t\t\t\t\tthis.submitClass$.next('');\r\n\t\t\t\t\t\t\t\tthis._cdr.markForCheck();\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t),\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tconst result = result$;\r\n\t\t\tthis._ref.close(result);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@Component({\r\n\tselector: 'lu-modal-panel',\r\n\ttemplateUrl: './modal-panel.component.html',\r\n\tstyleUrls: ['./modal-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class LuModalPanelComponent<T extends ILuModalContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-modal-panel') class = true;\r\n\tconstructor(_ref: ALuModalRef<LuModalPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuModalIntl) intl: ILuModalLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n@Component({\r\n\tselector: 'lu-modal-panel-default',\r\n\ttemplateUrl: './modal-panel.component.html',\r\n\tstyleUrls: ['./modal-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.Default,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuModalPanelComponentDefaultCD<T extends ILuModalContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-modal-panel') class = true;\r\n\tconstructor(_ref: ALuModalRef<LuModalPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuModalIntl) intl: ILuModalLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n","<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ComponentRef, Injectable, Injector } from '@angular/core';\r\nimport { ALuPopupRef, ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig } from './modal-config.model';\r\nimport { ALuModalPanelComponent, LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\r\nimport { ALuModalRef, ILuModalRef } from './modal-ref.model';\r\nimport { ILuModalContent } from './modal.model';\r\nimport { LU_MODAL_DATA } from './modal.token';\r\n\r\nclass LuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> extends ALuPopupRef<T, D, R> implements ILuModalRef<T, D, R> {\r\n\tprotected _containerRef: ComponentRef<ALuModalPanelComponent<T>>;\r\n\tprotected _containerOutlet: PortalOutlet;\r\n\tconstructor(protected override _overlay: Overlay, protected override _injector: Injector, protected override _component: ComponentType<T>, protected override _config: ILuModalConfig) {\r\n\t\tsuper(_overlay, _injector, _component, _config);\r\n\t}\r\n\tprotected override _openPopup(data?: D) {\r\n\t\tconst injector = Injector.create({\r\n\t\t\tproviders: [\r\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\r\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: data },\r\n\t\t\t],\r\n\t\t\tparent: this._injector,\r\n\t\t});\r\n\t\tif (this._config.changeDetection === ChangeDetectionStrategy.OnPush) {\r\n\t\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(LuModalPanelComponent, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\r\n\t\t} else {\r\n\t\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(LuModalPanelComponentDefaultCD, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\r\n\t\t}\r\n\t\tthis._containerOutlet = this._containerRef.instance;\r\n\t\tconst portal = new ComponentPortal(this._component, undefined, injector);\r\n\t\tthis._componentRef = this._containerOutlet.attach(portal) as ComponentRef<T>;\r\n\t}\r\n\tprotected override _closePopup() {\r\n\t\tthis._componentRef.destroy();\r\n\t\tthis._containerRef.destroy();\r\n\t}\r\n}\r\n\r\n@Injectable()\r\nexport class LuModalRefFactory implements ILuPopupRefFactory<ILuModalContent, ILuModalConfig> {\r\n\tconstructor(protected _overlay: Overlay, protected _injector: Injector) {}\r\n\tforge<T extends ILuModalContent, C extends ILuModalConfig, D, R>(component: ComponentType<T>, config: C) {\r\n\t\treturn new LuModalRef<T, D, R>(this._overlay, this._injector, component, config);\r\n\t}\r\n}\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuModalLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n}\r\nexport abstract class ALuModalLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n}\r\n\r\nexport const luModalTranslations: ILuTranslation<ILuModalLabel> = {\r\n\ten: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancel',\r\n\t},\r\n\tfr: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Annuler',\r\n\t},\r\n\tes: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancelar',\r\n\t},\r\n};\r\n","import { NgModule } from '@angular/core';\r\nimport { LuModal } from './modal.service';\r\nimport { LU_MODAL_CONFIG, LU_MODAL_TRANSLATIONS, LU_MODAL_REF_FACTORY } from './modal.token';\r\nimport { luDefaultModalConfig } from './modal-config.default';\r\nimport { LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { LuModalRefFactory } from './modal-ref.factory';\r\nimport { LuModalIntl } from './modal.intl';\r\nimport { luModalTranslations } from './modal.translate';\r\nimport { CommonModule } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\n\r\n@NgModule({\r\n\timports: [OverlayModule, PortalModule, CommonModule, A11yModule],\r\n\tdeclarations: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\tentryComponents: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\texports: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\tproviders: [\r\n\t\tLuModal,\r\n\t\tLuModalIntl,\r\n\t\t{ provide: LU_MODAL_CONFIG, useValue: luDefaultModalConfig },\r\n\t\t{ provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory },\r\n\t\t{ provide: LU_MODAL_TRANSLATIONS, useValue: luModalTranslations },\r\n\t],\r\n})\r\nexport class LuModalModule {}\r\n","/*\r\n * Public API Surface of safe-content\r\n */\r\n\r\nex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AAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC;oBAChE,YAAY,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBACrE,eAAe,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBACxE,OAAO,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBAChE,SAAS,EAAE;wBACV,OAAO;wBACP,WAAW;wBACX,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE;wBAC5D,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;wBAC9D,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;qBACjE;iBACD;;;ACzBD;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-modal.mjs","sources":["../../../packages/ng/modal/src/lib/modal-config.default.ts","../../../packages/ng/modal/src/lib/modal.token.ts","../../../packages/ng/modal/src/lib/modal.intl.ts","../../../packages/ng/modal/src/lib/modal-ref.model.ts","../../../packages/ng/modal/src/lib/modal-panel.component.ts","../../../packages/ng/modal/src/lib/modal-panel.component.html","../../../packages/ng/modal/src/lib/modal-ref.factory.ts","../../../packages/ng/modal/src/lib/modal.service.ts","../../../packages/ng/modal/src/lib/modal.translate.ts","../../../packages/ng/modal/src/lib/modal.module.ts","../../../packages/ng/modal/src/public-api.ts","../../../packages/ng/modal/src/lucca-front-ng-modal.ts"],"sourcesContent":["import { ILuModalConfig } from './modal-config.model';\r\nimport { ChangeDetectionStrategy } from '@angular/core';\r\n\r\nexport const luDefaultModalConfig: ILuModalConfig = {\r\n\tposition: 'center',\r\n\tnoBackdrop: false,\r\n\tundismissable: false,\r\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\r\n\tpanelClass: 'lu-popup-panel',\r\n\tsize: 'standard',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n};\r\n","import { InjectionToken } from '@angular/core';\r\nimport { ILuTranslation } from '@lucca-front/ng/core';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig, ILuModalLabel } from '.';\r\n\r\n/** Injection token that can be used to access the data that was passed in to a dialog. */\r\nexport const LU_MODAL_DATA = new InjectionToken<unknown>('LuModalData');\r\nexport const LU_MODAL_CONFIG = new InjectionToken<ILuModalConfig>('LuModalDefaultConfig');\r\nexport const LU_MODAL_REF_FACTORY = new InjectionToken<ILuPopupRefFactory>('LuModalRefFactory');\r\nexport const LU_MODAL_TRANSLATIONS = new InjectionToken<ILuTranslation<ILuModalLabel>>('LuModalTranslations');\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_MODAL_TRANSLATIONS } from './modal.token';\r\nimport { ILuModalLabel } from './modal.translate';\r\n\r\n@Injectable()\r\nexport class LuModalIntl extends ALuIntl<ILuModalLabel> {\r\n\tconstructor(@Inject(LU_MODAL_TRANSLATIONS) translations: ILuTranslation<ILuModalLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { ALuPopupRef, ILuPopupRef } from '@lucca-front/ng/popup';\r\nimport { ILuModalContent } from './modal.model';\r\n\r\nexport type ILuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> = ILuPopupRef<T, D, R>;\r\nexport abstract class ALuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> extends ALuPopupRef<T, D, R> implements ILuModalRef<T, D, R> {}\r\n","import { CdkPortalOutlet, Portal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentRef, Directive, HostBinding, Inject, OnDestroy, ViewChild } from '@angular/core';\r\nimport { Observable, Subject, Subscription, timer } from 'rxjs';\r\nimport { delay, tap } from 'rxjs/operators';\r\nimport { ALuModalRef } from './modal-ref.model';\r\nimport { LuModalIntl } from './modal.intl';\r\nimport { ILuModalContent } from './modal.model';\r\nimport { LU_MODAL_TRANSLATIONS } from './modal.token';\r\nimport { ILuModalLabel } from './modal.translate';\r\n\r\n@Directive()\r\nexport abstract class ALuModalPanelComponent<T extends ILuModalContent> implements PortalOutlet, OnDestroy {\r\n\t@ViewChild('outlet', { read: CdkPortalOutlet, static: true })\r\n\tprotected _outlet: PortalOutlet;\r\n\tprotected _componentInstance: T;\r\n\tget title() {\r\n\t\treturn this._componentInstance.title;\r\n\t}\r\n\tget submitLabel() {\r\n\t\treturn this._componentInstance.submitLabel || this.intl.submit;\r\n\t}\r\n\tget cancelLabel() {\r\n\t\treturn this._componentInstance.cancelLabel || this.intl.cancel;\r\n\t}\r\n\tget closeLabel() {\r\n\t\treturn this.intl.close;\r\n\t}\r\n\tget isSubmitDisabled() {\r\n\t\treturn this._componentInstance.submitDisabled;\r\n\t}\r\n\tget isSubmitHidden() {\r\n\t\treturn !this._componentInstance.submitAction;\r\n\t}\r\n\tget submitPalette() {\r\n\t\treturn this._componentInstance.submitPalette || 'primary';\r\n\t}\r\n\tget hasSubmitCounter() {\r\n\t\treturn !!this._componentInstance.submitCounter;\r\n\t}\r\n\tget submitCounter() {\r\n\t\treturn this._componentInstance.submitCounter || 0;\r\n\t}\r\n\r\n\tsubmitClass$ = new Subject();\r\n\terror$ = new Subject();\r\n\r\n\tprivate _subs = new Subscription();\r\n\r\n\tconstructor(protected _ref: ALuModalRef<LuModalPanelComponent<T>>, protected _cdr: ChangeDetectorRef, @Inject(LU_MODAL_TRANSLATIONS) public intl: ILuModalLabel) {}\r\n\tattach<U extends T = T>(portal: Portal<U>) {\r\n\t\tconst ref = this._outlet.attach(portal) as ComponentRef<U>;\r\n\t\tthis._componentInstance = ref.instance;\r\n\t\treturn ref;\r\n\t}\r\n\tdetach() {\r\n\t\tthis._outlet.detach();\r\n\t}\r\n\tdispose() {\r\n\t\treturn this._outlet.dispose();\r\n\t}\r\n\thasAttached() {\r\n\t\treturn this._outlet.hasAttached();\r\n\t}\r\n\tngOnDestroy() {\r\n\t\tthis._subs.unsubscribe();\r\n\t\tthis.detach();\r\n\t\tthis.dispose();\r\n\t}\r\n\tdismiss() {\r\n\t\tthis._ref.dismiss();\r\n\t}\r\n\tsubmit() {\r\n\t\tthis.error$.next(undefined);\r\n\t\tthis.submitClass$.next('is-loading');\r\n\t\tconst result$ = this._componentInstance.submitAction();\r\n\t\tif (result$ instanceof Observable) {\r\n\t\t\tthis._subs.add(\r\n\t\t\t\tresult$\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\ttap((_) => this.submitClass$.next('is-success')),\r\n\t\t\t\t\t\ttap(() => this._cdr.markForCheck()),\r\n\t\t\t\t\t\tdelay(500),\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.subscribe(\r\n\t\t\t\t\t\t(result) => {\r\n\t\t\t\t\t\t\tthis._ref.close(result);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t(err) => {\r\n\t\t\t\t\t\t\tthis.submitClass$.next('is-error');\r\n\t\t\t\t\t\t\tthis.error$.next(err);\r\n\t\t\t\t\t\t\tthis._cdr.markForCheck();\r\n\t\t\t\t\t\t\ttimer(2000).subscribe((_) => {\r\n\t\t\t\t\t\t\t\tthis.submitClass$.next('');\r\n\t\t\t\t\t\t\t\tthis._cdr.markForCheck();\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t),\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tconst result = result$;\r\n\t\t\tthis._ref.close(result);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@Component({\r\n\tselector: 'lu-modal-panel',\r\n\ttemplateUrl: './modal-panel.component.html',\r\n\tstyleUrls: ['./modal-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class LuModalPanelComponent<T extends ILuModalContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-modal-panel') class = true;\r\n\tconstructor(_ref: ALuModalRef<LuModalPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuModalIntl) intl: ILuModalLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n@Component({\r\n\tselector: 'lu-modal-panel-default',\r\n\ttemplateUrl: './modal-panel.component.html',\r\n\tstyleUrls: ['./modal-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.Default,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuModalPanelComponentDefaultCD<T extends ILuModalContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-modal-panel') class = true;\r\n\tconstructor(_ref: ALuModalRef<LuModalPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuModalIntl) intl: ILuModalLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n","<div class=\"lu-modal-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ComponentRef, Injectable, Injector } from '@angular/core';\r\nimport { ALuPopupRef, ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig } from './modal-config.model';\r\nimport { ALuModalPanelComponent, LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\r\nimport { ALuModalRef, ILuModalRef } from './modal-ref.model';\r\nimport { ILuModalContent } from './modal.model';\r\nimport { LU_MODAL_DATA } from './modal.token';\r\n\r\nclass LuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown> extends ALuPopupRef<T, D, R> implements ILuModalRef<T, D, R> {\r\n\tprotected _containerRef: ComponentRef<ALuModalPanelComponent<T>>;\r\n\tprotected _containerOutlet: PortalOutlet;\r\n\tconstructor(protected override _overlay: Overlay, protected override _injector: Injector, protected override _component: ComponentType<T>, protected override _config: ILuModalConfig) {\r\n\t\tsuper(_overlay, _injector, _component, _config);\r\n\t}\r\n\tprotected override _openPopup(data?: D) {\r\n\t\tconst injector = Injector.create({\r\n\t\t\tproviders: [\r\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\r\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: data },\r\n\t\t\t],\r\n\t\t\tparent: this._injector,\r\n\t\t});\r\n\t\tif (this._config.changeDetection === ChangeDetectionStrategy.OnPush) {\r\n\t\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(LuModalPanelComponent, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\r\n\t\t} else {\r\n\t\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(LuModalPanelComponentDefaultCD, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\r\n\t\t}\r\n\t\tthis._containerOutlet = this._containerRef.instance;\r\n\t\tconst portal = new ComponentPortal(this._component, undefined, injector);\r\n\t\tthis._componentRef = this._containerOutlet.attach(portal) as ComponentRef<T>;\r\n\t}\r\n\tprotected override _closePopup() {\r\n\t\tthis._componentRef.destroy();\r\n\t\tthis._containerRef.destroy();\r\n\t}\r\n}\r\n\r\n@Injectable()\r\nexport class LuModalRefFactory implements ILuPopupRefFactory<ILuModalContent, ILuModalConfig> {\r\n\tconstructor(protected _overlay: Overlay, protected _injector: Injector) {}\r\n\tforge<T extends ILuModalContent, C extends ILuModalConfig, D, R>(component: ComponentType<T>, config: C) {\r\n\t\treturn new LuModalRef<T, D, R>(this._overlay, this._injector, component, config);\r\n\t}\r\n}\r\n","import { Injectable, Inject } from '@angular/core';\r\nimport { LuPopup, ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuModalConfig } from './modal-config.model';\r\nimport { LU_MODAL_CONFIG, LU_MODAL_REF_FACTORY } from './modal.token';\r\n\r\n@Injectable()\r\nexport class LuModal<C extends ILuModalConfig = ILuModalConfig> extends LuPopup<C> {\r\n\tconstructor(\r\n\t\t@Inject(LU_MODAL_REF_FACTORY)\r\n\t\tprotected override _factory: ILuPopupRefFactory,\r\n\t\t@Inject(LU_MODAL_CONFIG) protected override _config: ILuModalConfig,\r\n\t) {\r\n\t\tsuper(_factory, _config);\r\n\t}\r\n}\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuModalLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n\tclose: string;\r\n}\r\nexport abstract class ALuModalLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n\tclose: string;\r\n}\r\n\r\nexport const luModalTranslations: ILuTranslation<ILuModalLabel> = {\r\n\ten: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancel',\r\n\t\tclose: 'Close',\r\n\t},\r\n\tfr: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Annuler',\r\n\t\tclose: 'Fermer',\r\n\t},\r\n\tes: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancelar',\r\n\t\tclose: 'Cerrar',\r\n\t},\r\n};\r\n","import { A11yModule } from '@angular/cdk/a11y';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\r\nimport { luDefaultModalConfig } from './modal-config.default';\r\nimport { LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\r\nimport { LuModalRefFactory } from './modal-ref.factory';\r\nimport { LuModalIntl } from './modal.intl';\r\nimport { LuModal } from './modal.service';\r\nimport { LU_MODAL_CONFIG, LU_MODAL_REF_FACTORY, LU_MODAL_TRANSLATIONS } from './modal.token';\r\nimport { luModalTranslations } from './modal.translate';\r\n\r\n@NgModule({\r\n\timports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule],\r\n\tdeclarations: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\tentryComponents: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\texports: [LuModalPanelComponent, LuModalPanelComponentDefaultCD],\r\n\tproviders: [\r\n\t\tLuModal,\r\n\t\tLuModalIntl,\r\n\t\t{ provide: LU_MODAL_CONFIG, useValue: luDefaultModalConfig },\r\n\t\t{ provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory },\r\n\t\t{ provide: LU_MODAL_TRANSLATIONS, useValue: luModalTranslations },\r\n\t],\r\n})\r\nexport class LuModalModule {}\r\n","/*\r\n * Public API Surface of safe-content\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAGa,oBAAoB,GAAmB;IACnD,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,CAAC,2BAA2B,EAAE,mBAAmB,CAAC;IACjE,UAAU,EAAE,gBAAgB;IAC5B,IAAI,EAAE,UAAU;IAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;;;ACLhD;MACa,aAAa,GAAG,IAAI,cAAc,CAAU,aAAa,EAAE;MAC3D,eAAe,GAAG,IAAI,cAAc,CAAiB,sBAAsB,EAAE;MAC7E,oBAAoB,GAAG,IAAI,cAAc,CAAqB,mBAAmB,EAAE;MACnF,qBAAqB,GAAG,IAAI,cAAc,CAAgC,qBAAqB;;MCH/F,oBAAoB,OAAsB;IACtD,YAA2C,YAA2C,EAAqB,MAAc;QACxH,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;KAC5B;;wGAHW,WAAW,kBACH,qBAAqB,aAAuD,SAAS;4GAD7F,WAAW;2FAAX,WAAW;kBADvB,UAAU;;;8BAEG,MAAM;+BAAC,qBAAqB;;8BAAgD,MAAM;+BAAC,SAAS;;;;MCHpF,oBAA2F,WAAoB;;;MCO/G,sBAAsB;IAqC3C,YAAsB,IAA2C,EAAY,IAAuB,EAAwC,IAAmB;QAAzI,SAAI,GAAJ,IAAI,CAAuC;QAAY,SAAI,GAAJ,IAAI,CAAmB;QAAwC,SAAI,GAAJ,IAAI,CAAe;QAL/J,iBAAY,GAAG,IAAI,OAAO,EAAE,CAAC;QAC7B,WAAM,GAAG,IAAI,OAAO,EAAE,CAAC;QAEf,UAAK,GAAG,IAAI,YAAY,EAAE,CAAC;KAEgI;IAjCnK,IAAI,KAAK;QACR,OAAO,IA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QAAQ,EAAE,iBAAiB,EAAE;QAC9D,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;KACjE,YAVQ,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,CAAC;2FAYrE,aAAa;kBAbzB,QAAQ;mBAAC;oBACT,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,CAAC;oBACjF,YAAY,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBACrE,eAAe,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBACxE,OAAO,EAAE,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;oBAChE,SAAS,EAAE;wBACV,OAAO;wBACP,WAAW;wBACX,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE;wBAC5D,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;wBAC9D,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;qBACjE;iBACD;;;AC1BD;;;;ACAA;;;;;;"}
@@ -46,9 +46,6 @@ class LuQualificationSelectInputComponent extends ALuSelectInputComponent {
46
46
  this.byId = (option1, option2) => option1 && option2 && option1.id === option2.id;
47
47
  this.isSearching = false;
48
48
  }
49
- get allFilters() {
50
- return this.filters == null ? ['sort=job.name,level.position'] : [...this.filters, 'sort=job.name,level.position'];
51
- }
52
49
  onIsSearchingChanged(isSearching) {
53
50
  this.isSearching = isSearching;
54
51
  this._changeDetectorRef.detectChanges();
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-qualification.mjs","sources":["../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.token.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.intl.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.component.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.component.html","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.translate.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.module.ts","../../../packages/ng/qualification/src/lib/select/qualification-select.module.ts","../../../packages/ng/qualification/src/lib/qualification.module.ts","../../../packages/ng/qualification/src/public-api.ts","../../../packages/ng/qualification/src/lucca-front-ng-qualification.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport const LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS = new InjectionToken('LuQualificationSelectTranslations');\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS } from './qualification-select-input.token';\r\nimport { ILuQualificationSelectInputLabel } from './qualification-select-input.translate';\r\n\r\n@Injectable()\r\nexport class LuQualificationSelectInputIntl extends ALuIntl<ILuQualificationSelectInputLabel> {\r\n\tconstructor(@Inject(LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS) translations: ILuTranslation<ILuQualificationSelectInputLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { Overlay } from '@angular/cdk/overlay';\r\nimport { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, Inject, Input, Renderer2, ViewContainerRef } from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { ILuOptionPickerPanel, LuOptionComparer } from '@lucca-front/ng/option';\r\nimport { ILuInputWithPicker } from '@lucca-front/ng/picker';\r\nimport { ALuSelectInputComponent } from '@lucca-front/ng/select';\r\nimport { ILuQualification } from '../../qualification.model';\r\nimport { LuQualificationSelectInputIntl } from './qualification-select-input.intl';\r\nimport { ILuQualificationSelectInputLabel } from './qualification-select-input.translate';\r\n\r\n@Component({\r\n\tselector: 'lu-qualification-select',\r\n\ttemplateUrl: './qualification-select-input.component.html',\r\n\tstyleUrls: ['./qualification-select-input.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: NG_VALUE_ACCESSOR,\r\n\t\t\tuseExisting: forwardRef(() => LuQualificationSelectInputComponent),\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t],\r\n})\r\nexport class LuQualificationSelectInputComponent<\r\n\t\tD extends import('../../qualification.model').ILuQualification = import('../../qualification.model').ILuQualification,\r\n\t\tP extends ILuOptionPickerPanel<D> = ILuOptionPickerPanel<D>,\r\n\t>\r\n\textends ALuSelectInputComponent<D, P>\r\n\timplements ControlValueAccessor, ILuInputWithPicker<D>, AfterViewInit\r\n{\r\n\tbyId: LuOptionComparer<D> = (option1: D, option2: D) => option1 && option2 && option1.id === option2.id;\r\n\r\n\t@Input() filters: string[];\r\n\tpublic get allFilters(): string[] {\r\n\t\treturn this.filters == null ? ['sort=job.name,level.position'] : [...this.filters, 'sort=job.name,level.position'];\r\n\t}\r\n\r\n\tisSearching = false;\r\n\r\n\tconstructor(\r\n\t\tprotected override _changeDetectorRef: ChangeDetectorRef,\r\n\t\tprotected override _overlay: Overlay,\r\n\t\tprotected override _elementRef: ElementRef<HTMLElement>,\r\n\t\tprotected override _viewContainerRef: ViewContainerRef,\r\n\t\tprotected override _renderer: Renderer2,\r\n\t\t@Inject(LuQualificationSelectInputIntl)\r\n\t\tpublic intl: ILuQualificationSelectInputLabel,\r\n\t) {\r\n\t\tsuper(_changeDetectorRef, _overlay, _elementRef, _viewContainerRef, _renderer);\r\n\t}\r\n\r\n\tonIsSearchingChanged(isSearching: boolean) {\r\n\t\tthis.isSearching = isSearching;\r\n\t\tthis._changeDetectorRef.detectChanges();\r\n\t}\r\n\r\n\ttrackById(_: number, item: ILuQualification): number {\r\n\t\treturn item.id;\r\n\t}\r\n\r\n\tgroupByJobName(qualification: ILuQualification): string {\r\n\t\treturn qualification.job.name;\r\n\t}\r\n}\r\n","<div class=\"lu-select-placeholder\">{{ placeholder }}</div>\r\n<div class=\"lu-select-value\">\r\n\t<div class=\"lu-select-display-wrapper\">\r\n\t\t<ng-container #display></ng-container>\r\n\t</div>\r\n</div>\r\n<div class=\"lu-select-suffix\">\r\n\t<lu-input-clearer></lu-input-clearer>\r\n</div>\r\n\r\n<ng-template luDisplayer [luDisplayerMultiple]=\"true\" let-values>\r\n\t<span *ngIf=\"multiple && values?.length > 1; else singleView\"\r\n\t\t><span class=\"chip mod-unkillable\">{{ values.length }}</span> {{ intl.qualifications }}</span\r\n\t>\r\n\t<ng-template #singleView>{{ (values[0] || values).name }}</ng-template>\r\n</ng-template>\r\n\r\n<lu-option-picker-advanced [option-comparer]=\"byId\">\r\n\t<lu-api-paged-searcher\r\n\t\tapi=\"/organization/structure/api/job-qualifications\"\r\n\t\tstandard=\"v4\"\r\n\t\t[filters]=\"filters\"\r\n\t\tsort=\"job.name,level.position\"\r\n\t></lu-api-paged-searcher>\r\n\t<ng-template luForGroups let-group [luForGroupsGroupBy]=\"groupByJobName\">\r\n\t\t<h4 class=\"optionItem-groupKey\">{{ group.key }}</h4>\r\n\t\t<lu-option *ngFor=\"let qualification of group.items; trackBy: trackById\" [value]=\"qualification\"> {{ qualification.name }} </lu-option>\r\n\t</ng-template>\r\n</lu-option-picker-advanced>\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuQualificationSelectInputLabel {\r\n\tqualifications: string;\r\n}\r\nexport abstract class ALuQualificationSelectInputLabel {\r\n\tqualifications: string;\r\n}\r\n\r\nexport const luQualificationSelectInputTranslations: ILuTranslation<ILuQualificationSelectInputLabel> = {\r\n\ten: {\r\n\t\tqualifications: 'qualifications',\r\n\t},\r\n\tfr: {\r\n\t\tqualifications: 'qualifications',\r\n\t},\r\n\tes: {\r\n\t\tqualifications: 'calificaciones',\r\n\t},\r\n};\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { LuApiSearcherModule } from '@lucca-front/ng/api';\r\nimport { LuInputModule } from '@lucca-front/ng/input';\r\nimport { LuForGroupsModule, LuOptionModule } from '@lucca-front/ng/option';\r\nimport { LuSelectInputModule } from '@lucca-front/ng/select';\r\nimport { LuQualificationSelectInputComponent } from './qualification-select-input.component';\r\nimport { LuQualificationSelectInputIntl } from './qualification-select-input.intl';\r\nimport { LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS } from './qualification-select-input.token';\r\nimport { luQualificationSelectInputTranslations } from './qualification-select-input.translate';\r\n\r\n@NgModule({\r\n\timports: [CommonModule, LuInputModule, LuOptionModule, LuSelectInputModule, LuForGroupsModule, LuApiSearcherModule],\r\n\tdeclarations: [LuQualificationSelectInputComponent],\r\n\texports: [LuQualificationSelectInputComponent],\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS,\r\n\t\t\tuseValue: luQualificationSelectInputTranslations,\r\n\t\t},\r\n\t\tLuQualificationSelectInputIntl,\r\n\t],\r\n})\r\nexport class LuQualificationSelectInputModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { LuQualificationSelectInputModule } from './input/index';\r\n\r\n@NgModule({\r\n\timports: [LuQualificationSelectInputModule],\r\n\texports: [LuQualificationSelectInputModule],\r\n})\r\nexport class LuQualificationSelectModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { LuQualificationSelectModule } from './select/qualification-select.module';\r\n\r\n@NgModule({\r\n\timports: [LuQualificationSelectModule],\r\n\texports: [LuQualificationSelectModule],\r\n})\r\nexport class LuQualificationModule {}\r\n","/*\r\n * Public API Surface of qualification\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAEa,0CAA0C,GAAG,IAAI,cAAc,CAAC,mCAAmC;;MCInG,uCAAuC,OAAyC;IAC5F,YAAgE,YAA8D,EAAq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C;oBAC9C,SAAS,EAAE;wBACV;4BACC,OAAO,EAAE,0CAA0C;4BACnD,QAAQ,EAAE,sCAAsC;yBAChD;wBACD,8BAA8B;qBAC9B;iBACD;;;MCfY,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,YAH7B,gCAAgC,aAChC,gCAAgC;yHAE9B,2BAA2B,YAH9B,CAAC,gCAAgC,CAAC,EACjC,gCAAgC;2FAE9B,2BAA2B;kBAJvC,QAAQ;mBAAC;oBACT,OAAO,EAAE,CAAC,gCAAgC,CAAC;oBAC3C,OAAO,EAAE,CAAC,gCAAgC,CAAC;iBAC3C;;;MCCY,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,YAHvB,2BAA2B,aAC3B,2BAA2B;mHAEzB,qBAAqB,YAHxB,CAAC,2BAA2B,CAAC,EAC5B,2BAA2B;2FAEzB,qBAAqB;kBAJjC,QAAQ;mBAAC;oBACT,OAAO,EAAE,CAAC,2BAA2B,CAAC;oBACtC,OAAO,EAAE,CAAC,2BAA2B,CAAC;iBACtC;;;ACND;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-qualification.mjs","sources":["../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.token.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.intl.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.component.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.component.html","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.translate.ts","../../../packages/ng/qualification/src/lib/select/input/qualification-select-input.module.ts","../../../packages/ng/qualification/src/lib/select/qualification-select.module.ts","../../../packages/ng/qualification/src/lib/qualification.module.ts","../../../packages/ng/qualification/src/public-api.ts","../../../packages/ng/qualification/src/lucca-front-ng-qualification.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport const LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS = new InjectionToken('LuQualificationSelectTranslations');\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS } from './qualification-select-input.token';\r\nimport { ILuQualificationSelectInputLabel } from './qualification-select-input.translate';\r\n\r\n@Injectable()\r\nexport class LuQualificationSelectInputIntl extends ALuIntl<ILuQualificationSelectInputLabel> {\r\n\tconstructor(@Inject(LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS) translations: ILuTranslation<ILuQualificationSelectInputLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { Overlay } from '@angular/cdk/overlay';\r\nimport { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, Inject, Input, Renderer2, ViewContainerRef } from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { ILuOptionPickerPanel, LuOptionComparer } from '@lucca-front/ng/option';\r\nimport { ILuInputWithPicker } from '@lucca-front/ng/picker';\r\nimport { ALuSelectInputComponent } from '@lucca-front/ng/select';\r\nimport { ILuQualification } from '../../qualification.model';\r\nimport { LuQualificationSelectInputIntl } from './qualification-select-input.intl';\r\nimport { ILuQualificationSelectInputLabel } from './qualification-select-input.translate';\r\n\r\n@Component({\r\n\tselector: 'lu-qualification-select',\r\n\ttemplateUrl: './qualification-select-input.component.html',\r\n\tstyleUrls: ['./qualification-select-input.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: NG_VALUE_ACCESSOR,\r\n\t\t\tuseExisting: forwardRef(() => LuQualificationSelectInputComponent),\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t],\r\n})\r\nexport class LuQualificationSelectInputComponent<\r\n\t\tD extends import('../../qualification.model').ILuQualification = import('../../qualification.model').ILuQualification,\r\n\t\tP extends ILuOptionPickerPanel<D> = ILuOptionPickerPanel<D>,\r\n\t>\r\n\textends ALuSelectInputComponent<D, P>\r\n\timplements ControlValueAccessor, ILuInputWithPicker<D>, AfterViewInit\r\n{\r\n\tbyId: LuOptionComparer<D> = (option1: D, option2: D) => option1 && option2 && option1.id === option2.id;\r\n\r\n\t@Input() filters: string[];\r\n\r\n\tisSearching = false;\r\n\r\n\tconstructor(\r\n\t\tprotected override _changeDetectorRef: ChangeDetectorRef,\r\n\t\tprotected override _overlay: Overlay,\r\n\t\tprotected override _elementRef: ElementRef<HTMLElement>,\r\n\t\tprotected override _viewContainerRef: ViewContainerRef,\r\n\t\tprotected override _renderer: Renderer2,\r\n\t\t@Inject(LuQualificationSelectInputIntl)\r\n\t\tpublic intl: ILuQualificationSelectInputLabel,\r\n\t) {\r\n\t\tsuper(_changeDetectorRef, _overlay, _elementRef, _viewContainerRef, _renderer);\r\n\t}\r\n\r\n\tonIsSearchingChanged(isSearching: boolean) {\r\n\t\tthis.isSearching = isSearching;\r\n\t\tthis._changeDetectorRef.detectChanges();\r\n\t}\r\n\r\n\ttrackById(_: number, item: ILuQualification): number {\r\n\t\treturn item.id;\r\n\t}\r\n\r\n\tgroupByJobName(qualification: ILuQualification): string {\r\n\t\treturn qualification.job.name;\r\n\t}\r\n}\r\n","<div class=\"lu-select-placeholder\">{{ placeholder }}</div>\r\n<div class=\"lu-select-value\">\r\n\t<div class=\"lu-select-display-wrapper\">\r\n\t\t<ng-container #display></ng-container>\r\n\t</div>\r\n</div>\r\n<div class=\"lu-select-suffix\">\r\n\t<lu-input-clearer></lu-input-clearer>\r\n</div>\r\n\r\n<ng-template luDisplayer [luDisplayerMultiple]=\"true\" let-values>\r\n\t<span *ngIf=\"multiple && values?.length > 1; else singleView\"\r\n\t\t><span class=\"chip mod-unkillable\">{{ values.length }}</span> {{ intl.qualifications }}</span\r\n\t>\r\n\t<ng-template #singleView>{{ (values[0] || values).name }}</ng-template>\r\n</ng-template>\r\n\r\n<lu-option-picker-advanced [option-comparer]=\"byId\">\r\n\t<lu-api-paged-searcher\r\n\t\tapi=\"/organization/structure/api/job-qualifications\"\r\n\t\tstandard=\"v4\"\r\n\t\t[filters]=\"filters\"\r\n\t\tsort=\"job.name,level.position\"\r\n\t></lu-api-paged-searcher>\r\n\t<ng-template luForGroups let-group [luForGroupsGroupBy]=\"groupByJobName\">\r\n\t\t<h4 class=\"optionItem-groupKey\">{{ group.key }}</h4>\r\n\t\t<lu-option *ngFor=\"let qualification of group.items; trackBy: trackById\" [value]=\"qualification\"> {{ qualification.name }} </lu-option>\r\n\t</ng-template>\r\n</lu-option-picker-advanced>\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuQualificationSelectInputLabel {\r\n\tqualifications: string;\r\n}\r\nexport abstract class ALuQualificationSelectInputLabel {\r\n\tqualifications: string;\r\n}\r\n\r\nexport const luQualificationSelectInputTranslations: ILuTranslation<ILuQualificationSelectInputLabel> = {\r\n\ten: {\r\n\t\tqualifications: 'qualifications',\r\n\t},\r\n\tfr: {\r\n\t\tqualifications: 'qualifications',\r\n\t},\r\n\tes: {\r\n\t\tqualifications: 'calificaciones',\r\n\t},\r\n};\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { LuApiSearcherModule } from '@lucca-front/ng/api';\r\nimport { LuInputModule } from '@lucca-front/ng/input';\r\nimport { LuForGroupsModule, LuOptionModule } from '@lucca-front/ng/option';\r\nimport { LuSelectInputModule } from '@lucca-front/ng/select';\r\nimport { LuQualificationSelectInputComponent } from './qualification-select-input.component';\r\nimport { LuQualificationSelectInputIntl } from './qualification-select-input.intl';\r\nimport { LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS } from './qualification-select-input.token';\r\nimport { luQualificationSelectInputTranslations } from './qualification-select-input.translate';\r\n\r\n@NgModule({\r\n\timports: [CommonModule, LuInputModule, LuOptionModule, LuSelectInputModule, LuForGroupsModule, LuApiSearcherModule],\r\n\tdeclarations: [LuQualificationSelectInputComponent],\r\n\texports: [LuQualificationSelectInputComponent],\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: LU_QUALIFICATION_SELECT_INPUT_TRANSLATIONS,\r\n\t\t\tuseValue: luQualificationSelectInputTranslations,\r\n\t\t},\r\n\t\tLuQualificationSelectInputIntl,\r\n\t],\r\n})\r\nexport class LuQualificationSelectInputModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { LuQualificationSelectInputModule } from './input/index';\r\n\r\n@NgModule({\r\n\timports: [LuQualificationSelectInputModule],\r\n\texports: [LuQualificationSelectInputModule],\r\n})\r\nexport class LuQualificationSelectModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { LuQualificationSelectModule } from './select/qualification-select.module';\r\n\r\n@NgModule({\r\n\timports: [LuQualificationSelectModule],\r\n\texports: [LuQualificationSelectModule],\r\n})\r\nexport class LuQualificationModule {}\r\n","/*\r\n * Public API Surface of qualification\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAEa,0CAA0C,GAAG,IAAI,cAAc,CAAC,mCAAmC;;MCInG,uCAAuC,OAAyC;IAC5F,YAAgE,YAA8D,EAAqB,MAAc;QAChK,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;KAC5B;;2HAHW,8BAA8B,kBACtB,0CAA0C,aAA0E,SAAS;+HADrI,8BAA8B;2FAA9B,8BAA8B;kBAD1C,UAAU;;;8BAEG,MAAM;+BAAC,0CAA0C;;8BAAmE,MAAM;+BAAC,SAAS;;;;MCgBrI,4CAIJ,uBAA6B;IASrC,YACoB,kBAAqC,EACrC,QAAiB,EACjB,WAAoC,EACpC,iBAAmC,EACnC,SAAoB,EAEhC,IAAsC;QAE7C,KAAK,CAAC,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;QAR5D,uBAAkB,GAAlB,kBAAkB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O,EAAE,CAAC,2BAA2B,CAAC;iBACtC;;;ACND;;;;ACAA;;;;;;"}
@@ -2,12 +2,14 @@ import * as i2 from '@angular/cdk/a11y';
2
2
  import { A11yModule } from '@angular/cdk/a11y';
3
3
  import * as i1 from '@angular/cdk/overlay';
4
4
  import { OverlayModule } from '@angular/cdk/overlay';
5
- import * as i3 from '@angular/cdk/portal';
5
+ import * as i4 from '@angular/cdk/portal';
6
6
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
7
- import * as i4 from '@angular/common';
7
+ import * as i5 from '@angular/common';
8
8
  import { CommonModule } from '@angular/common';
9
9
  import * as i0 from '@angular/core';
10
10
  import { ChangeDetectionStrategy, InjectionToken, LOCALE_ID, Injectable, Inject, Component, HostBinding, Injector, NgModule } from '@angular/core';
11
+ import * as i3 from '@lucca-front/ng/tooltip';
12
+ import { LuTooltipModule } from '@lucca-front/ng/tooltip';
11
13
  import { ALuModalRef, ALuModalPanelComponent, LuModal } from '@lucca-front/ng/modal';
12
14
  import { ALuIntl } from '@lucca-front/ng/core';
13
15
 
@@ -57,10 +59,10 @@ class LuSidepanelPanelComponent extends ALuModalPanelComponent {
57
59
  }
58
60
  }
59
61
  LuSidepanelPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelPanelComponent, deps: [{ token: ALuSidepanelRef }, { token: i0.ChangeDetectorRef }, { token: LuSidepanelIntl }], target: i0.ɵɵFactoryTarget.Component });
60
- LuSidepanelPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuSidepanelPanelComponent, selector: "lu-sidepanel-panel", host: { properties: { "class.lu-sidepanel-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
+ LuSidepanelPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuSidepanelPanelComponent, selector: "lu-sidepanel-panel", host: { properties: { "class.lu-sidepanel-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipPosition"], outputs: ["luTooltipOnOpen", "luTooltipOnClose"] }, { type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelPanelComponent, decorators: [{
62
64
  type: Component,
63
- args: [{ selector: 'lu-sidepanel-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
65
+ args: [{ selector: 'lu-sidepanel-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
64
66
  }], ctorParameters: function () {
65
67
  return [{ type: ALuSidepanelRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
66
68
  type: Inject,
@@ -78,10 +80,10 @@ class LuSidepanelPanelComponentDefaultCD extends ALuModalPanelComponent {
78
80
  }
79
81
  }
80
82
  LuSidepanelPanelComponentDefaultCD.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelPanelComponentDefaultCD, deps: [{ token: ALuSidepanelRef }, { token: i0.ChangeDetectorRef }, { token: LuSidepanelIntl }], target: i0.ɵɵFactoryTarget.Component });
81
- LuSidepanelPanelComponentDefaultCD.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuSidepanelPanelComponentDefaultCD, selector: "lu-sidepanel-panel-default", host: { properties: { "class.lu-sidepanel-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
83
+ LuSidepanelPanelComponentDefaultCD.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: LuSidepanelPanelComponentDefaultCD, selector: "lu-sidepanel-panel-default", host: { properties: { "class.lu-sidepanel-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipPosition"], outputs: ["luTooltipOnOpen", "luTooltipOnClose"] }, { type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i5.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default });
82
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelPanelComponentDefaultCD, decorators: [{
83
85
  type: Component,
84
- args: [{ selector: 'lu-sidepanel-panel-default', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
86
+ args: [{ selector: 'lu-sidepanel-panel-default', changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n", styles: [""] }]
85
87
  }], ctorParameters: function () {
86
88
  return [{ type: ALuSidepanelRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
87
89
  type: Inject,
@@ -167,32 +169,35 @@ const luSidepanelTranslations = {
167
169
  en: {
168
170
  submit: 'Ok',
169
171
  cancel: 'Cancel',
172
+ close: 'Close',
170
173
  },
171
174
  fr: {
172
175
  submit: 'Ok',
173
176
  cancel: 'Annuler',
177
+ close: 'Fermer',
174
178
  },
175
179
  es: {
176
180
  submit: 'Ok',
177
181
  cancel: 'Cancelar',
182
+ close: 'Cerrar',
178
183
  },
179
184
  };
180
185
 
181
186
  class LuSidepanelModule {
182
187
  }
183
188
  LuSidepanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
184
- LuSidepanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelModule, declarations: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD], imports: [OverlayModule, PortalModule, CommonModule, A11yModule], exports: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD] });
189
+ LuSidepanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelModule, declarations: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD], imports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule], exports: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD] });
185
190
  LuSidepanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelModule, providers: [
186
191
  LuSidepanel,
187
192
  LuSidepanelIntl,
188
193
  { provide: LU_SIDEPANEL_CONFIG, useValue: luDefaultSidepanelConfig },
189
194
  { provide: LU_SIDEPANEL_REF_FACTORY, useClass: LuSidepanelRefFactory },
190
195
  { provide: LU_SIDEPANEL_TRANSLATIONS, useValue: luSidepanelTranslations },
191
- ], imports: [[OverlayModule, PortalModule, CommonModule, A11yModule]] });
196
+ ], imports: [[OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule]] });
192
197
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LuSidepanelModule, decorators: [{
193
198
  type: NgModule,
194
199
  args: [{
195
- imports: [OverlayModule, PortalModule, CommonModule, A11yModule],
200
+ imports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule],
196
201
  declarations: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],
197
202
  entryComponents: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],
198
203
  exports: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-sidepanel.mjs","sources":["../../../packages/ng/sidepanel/src/lib/sidepanel-config.default.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.token.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.intl.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-ref.model.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-panel.component.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-panel.component.html","../../../packages/ng/sidepanel/src/lib/sidepanel-ref.factory.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.service.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.translate.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.module.ts","../../../packages/ng/sidepanel/src/public-api.ts","../../../packages/ng/sidepanel/src/lucca-front-ng-sidepanel.ts"],"sourcesContent":["import { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { ChangeDetectionStrategy } from '@angular/core';\r\n\r\nexport const luDefaultSidepanelConfig: ILuSidepanelConfig = {\r\n\tposition: 'right',\r\n\tnoBackdrop: false,\r\n\tundismissable: false,\r\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\r\n\tpanelClass: ['lu-popup-panel', 'mod-sidepanel'],\r\n\tsize: 'standard',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n};\r\n","import { InjectionToken } from '@angular/core';\r\nimport { ILuTranslation } from '@lucca-front/ng/core';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LuSidepanelRefFactory } from './sidepanel-ref.factory';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n/** Injection token that can be used to access the data that was passed in to a dialog. */\r\nexport const LU_SIDEPANEL_DATA = new InjectionToken<unknown>('LuSidepanelData');\r\nexport const LU_SIDEPANEL_CONFIG = new InjectionToken<ILuSidepanelConfig>('LuSidepanelDefaultConfig');\r\nexport const LU_SIDEPANEL_TRANSLATIONS = new InjectionToken<ILuTranslation<ILuSidepanelLabel>>('LuSidepanelTranslations');\r\nexport const LU_SIDEPANEL_REF_FACTORY = new InjectionToken<LuSidepanelRefFactory>('LuSidepanelRefFactory');\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_SIDEPANEL_TRANSLATIONS } from './sidepanel.token';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n@Injectable()\r\nexport class LuSidepanelIntl extends ALuIntl<ILuSidepanelLabel> {\r\n\tconstructor(@Inject(LU_SIDEPANEL_TRANSLATIONS) translations: ILuTranslation<ILuSidepanelLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { ALuModalRef, ILuModalRef } from '@lucca-front/ng/modal';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\n\r\nexport type ILuSidepanelRef<T extends ILuSidepanelContent = ILuSidepanelContent, D = unknown, R = unknown> = ILuModalRef<T, D, R>;\r\nexport abstract class ALuSidepanelRef<T extends ILuSidepanelContent = ILuSidepanelContent, D = unknown, R = unknown> extends ALuModalRef<T, D, R> implements ILuSidepanelRef<T, D, R> {}\r\n","/* eslint-disable max-len */\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Inject } from '@angular/core';\r\nimport { ALuModalPanelComponent } from '@lucca-front/ng/modal';\r\nimport { ALuSidepanelRef } from './sidepanel-ref.model';\r\nimport { LuSidepanelIntl } from './sidepanel.intl';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n@Component({\r\n\tselector: 'lu-sidepanel-panel',\r\n\ttemplateUrl: './sidepanel-panel.component.html',\r\n\tstyleUrls: ['./sidepanel-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class LuSidepanelPanelComponent<T extends ILuSidepanelContent = ILuSidepanelContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-sidepanel-panel') public class = true;\r\n\r\n\tconstructor(_ref: ALuSidepanelRef<LuSidepanelPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuSidepanelIntl) intl: ILuSidepanelLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n\r\n@Component({\r\n\tselector: 'lu-sidepanel-panel-default',\r\n\ttemplateUrl: './sidepanel-panel.component.html',\r\n\tstyleUrls: ['./sidepanel-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.Default,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuSidepanelPanelComponentDefaultCD<T extends ILuSidepanelContent = ILuSidepanelContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-sidepanel-panel') public class = true;\r\n\tconstructor(_ref: ALuSidepanelRef<LuSidepanelPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuSidepanelIntl) intl: ILuSidepanelLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n","<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\">\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">cross</span><span class=\"u-mask\">Close</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ComponentRef, Injectable, Injector } from '@angular/core';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD } from './sidepanel-panel.component';\r\nimport { ALuSidepanelRef, ILuSidepanelRef } from './sidepanel-ref.model';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\nimport { LU_SIDEPANEL_DATA } from './sidepanel.token';\r\n\r\nclass LuSidepanelRef<T extends ILuSidepanelContent<unknown> = ILuSidepanelContent<unknown>, D = unknown, R = unknown> extends ALuSidepanelRef<T, D, R> implements ILuSidepanelRef<T, D, R> {\r\n\tprotected _containerRef: ComponentRef<LuSidepanelPanelComponent>;\r\n\tprotected _containerOutlet: PortalOutlet;\r\n\tconstructor(protected override _overlay: Overlay, protected override _injector: Injector, protected override _component: ComponentType<T>, protected override _config: ILuSidepanelConfig) {\r\n\t\tsuper(_overlay, _injector, _component, _config);\r\n\t}\r\n\tprotected override _openPopup(data?: D) {\r\n\t\tconst injector = Injector.create({\r\n\t\t\tproviders: [\r\n\t\t\t\t{ provide: ALuSidepanelRef, useValue: this },\r\n\t\t\t\t{ provide: LU_SIDEPANEL_DATA, useValue: data },\r\n\t\t\t],\r\n\t\t\tparent: this._injector,\r\n\t\t});\r\n\t\tif (this._config.changeDetection === ChangeDetectionStrategy.OnPush) {\r\n\t\t\tconst containerPortal = new ComponentPortal(LuSidepanelPanelComponent, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<LuSidepanelPanelComponent>(containerPortal);\r\n\t\t} else {\r\n\t\t\tconst containerPortal = new ComponentPortal(LuSidepanelPanelComponentDefaultCD, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<LuSidepanelPanelComponent>(containerPortal);\r\n\t\t}\r\n\t\tthis._containerOutlet = this._containerRef.instance as unknown as PortalOutlet;\r\n\t\tconst portal = new ComponentPortal(this._component, undefined, injector);\r\n\t\tthis._componentRef = this._containerOutlet.attach(portal) as ComponentRef<T>;\r\n\t}\r\n\tprotected override _closePopup() {\r\n\t\tthis._componentRef.destroy();\r\n\t\tthis._containerRef.destroy();\r\n\t}\r\n}\r\n\r\n@Injectable()\r\nexport class LuSidepanelRefFactory implements ILuPopupRefFactory<ILuSidepanelContent<unknown>, ILuSidepanelConfig> {\r\n\tconstructor(protected _overlay: Overlay, protected _injector: Injector) {}\r\n\tforge<T extends ILuSidepanelContent<unknown>, C extends ILuSidepanelConfig, D, R>(component: ComponentType<T>, config: C) {\r\n\t\treturn new LuSidepanelRef<T, D, R>(this._overlay, this._injector, component, config);\r\n\t}\r\n}\r\n","import { Injectable, Inject } from '@angular/core';\r\nimport { LuModal } from '@lucca-front/ng/modal';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LU_SIDEPANEL_CONFIG, LU_SIDEPANEL_REF_FACTORY } from './sidepanel.token';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\n\r\n@Injectable()\r\nexport class LuSidepanel<C extends ILuSidepanelConfig = ILuSidepanelConfig> extends LuModal<C> {\r\n\tconstructor(\r\n\t\t@Inject(LU_SIDEPANEL_REF_FACTORY)\r\n\t\tprotected override _factory: ILuPopupRefFactory,\r\n\t\t@Inject(LU_SIDEPANEL_CONFIG) protected override _config: ILuSidepanelConfig,\r\n\t) {\r\n\t\tsuper(_factory, _config);\r\n\t}\r\n}\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuSidepanelLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n}\r\nexport abstract class ALuSidepanelLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n}\r\n\r\nexport const luSidepanelTranslations: ILuTranslation<ILuSidepanelLabel> = {\r\n\ten: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancel',\r\n\t},\r\n\tfr: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Annuler',\r\n\t},\r\n\tes: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancelar',\r\n\t},\r\n};\r\n","import { A11yModule } from '@angular/cdk/a11y';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { luDefaultSidepanelConfig } from './sidepanel-config.default';\r\nimport { LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD } from './sidepanel-panel.component';\r\nimport { LuSidepanelRefFactory } from './sidepanel-ref.factory';\r\nimport { LuSidepanelIntl } from './sidepanel.intl';\r\nimport { LuSidepanel } from './sidepanel.service';\r\nimport { LU_SIDEPANEL_CONFIG, LU_SIDEPANEL_REF_FACTORY, LU_SIDEPANEL_TRANSLATIONS } from './sidepanel.token';\r\nimport { luSidepanelTranslations } from './sidepanel.translate';\r\n\r\n@NgModule({\r\n\timports: [OverlayModule, PortalModule, CommonModule, A11yModule],\r\n\tdeclarations: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\tentryComponents: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\texports: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\tproviders: [\r\n\t\tLuSidepanel,\r\n\t\tLuSidepanelIntl,\r\n\t\t{ provide: LU_SIDEPANEL_CONFIG, useValue: luDefaultSidepanelConfig },\r\n\t\t{ provide: LU_SIDEPANEL_REF_FACTORY, useClass: LuSidepanelRefFactory },\r\n\t\t{ provide: LU_SIDEPANEL_TRANSLATIONS, useValue: luSidepanelTranslations },\r\n\t],\r\n})\r\nexport class LuSidepanelModule {}\r\n","/*\r\n * Public API Surface of safe-content\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAGa,wBAAwB,GAAuB;IAC3D,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,CAAC,2BAA2B,EAAE,mBAAmB,CAAC;IACjE,UAAU,EAAE,C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,UAAU;KAClB;;;MCGW,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAXd,yBAAyB,EAAE,kCAAkC,aADlE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,aAGrD,yBAAyB,EAAE,kCAAkC;+GAS3D,iBAAiB,aARlB;QACV,WAAW;QACX,eAAe;QACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;QACpE,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,qBAAqB,EAAE;QACtE,EAAE,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,uBAAuB,EAAE;KACzE,YAVQ,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC;2FAYpD,iBAAiB;kBAb7B,QAAQ;mBAAC;oBACT,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC;oBAChE,YAAY,EAAE,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;oBAC7E,eAAe,EAAE,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;oBAChF,OAAO,EAAE,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;oBACxE,SAAS,EAAE;wBACV,WAAW;wBACX,eAAe;wBACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,wBAAwB,EAAE;wBACpE,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,qBAAqB,EAAE;wBACtE,EAAE,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,uBAAuB,EAAE;qBACzE;iBACD;;;ACzBD;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-sidepanel.mjs","sources":["../../../packages/ng/sidepanel/src/lib/sidepanel-config.default.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.token.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.intl.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-ref.model.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-panel.component.ts","../../../packages/ng/sidepanel/src/lib/sidepanel-panel.component.html","../../../packages/ng/sidepanel/src/lib/sidepanel-ref.factory.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.service.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.translate.ts","../../../packages/ng/sidepanel/src/lib/sidepanel.module.ts","../../../packages/ng/sidepanel/src/public-api.ts","../../../packages/ng/sidepanel/src/lucca-front-ng-sidepanel.ts"],"sourcesContent":["import { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { ChangeDetectionStrategy } from '@angular/core';\r\n\r\nexport const luDefaultSidepanelConfig: ILuSidepanelConfig = {\r\n\tposition: 'right',\r\n\tnoBackdrop: false,\r\n\tundismissable: false,\r\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\r\n\tpanelClass: ['lu-popup-panel', 'mod-sidepanel'],\r\n\tsize: 'standard',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n};\r\n","import { InjectionToken } from '@angular/core';\r\nimport { ILuTranslation } from '@lucca-front/ng/core';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LuSidepanelRefFactory } from './sidepanel-ref.factory';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n/** Injection token that can be used to access the data that was passed in to a dialog. */\r\nexport const LU_SIDEPANEL_DATA = new InjectionToken<unknown>('LuSidepanelData');\r\nexport const LU_SIDEPANEL_CONFIG = new InjectionToken<ILuSidepanelConfig>('LuSidepanelDefaultConfig');\r\nexport const LU_SIDEPANEL_TRANSLATIONS = new InjectionToken<ILuTranslation<ILuSidepanelLabel>>('LuSidepanelTranslations');\r\nexport const LU_SIDEPANEL_REF_FACTORY = new InjectionToken<LuSidepanelRefFactory>('LuSidepanelRefFactory');\r\n","import { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { ALuIntl, ILuTranslation } from '@lucca-front/ng/core';\r\nimport { LU_SIDEPANEL_TRANSLATIONS } from './sidepanel.token';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n@Injectable()\r\nexport class LuSidepanelIntl extends ALuIntl<ILuSidepanelLabel> {\r\n\tconstructor(@Inject(LU_SIDEPANEL_TRANSLATIONS) translations: ILuTranslation<ILuSidepanelLabel>, @Inject(LOCALE_ID) locale: string) {\r\n\t\tsuper(translations, locale);\r\n\t}\r\n}\r\n","import { ALuModalRef, ILuModalRef } from '@lucca-front/ng/modal';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\n\r\nexport type ILuSidepanelRef<T extends ILuSidepanelContent = ILuSidepanelContent, D = unknown, R = unknown> = ILuModalRef<T, D, R>;\r\nexport abstract class ALuSidepanelRef<T extends ILuSidepanelContent = ILuSidepanelContent, D = unknown, R = unknown> extends ALuModalRef<T, D, R> implements ILuSidepanelRef<T, D, R> {}\r\n","/* eslint-disable max-len */\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Inject } from '@angular/core';\r\nimport { ALuModalPanelComponent } from '@lucca-front/ng/modal';\r\nimport { ALuSidepanelRef } from './sidepanel-ref.model';\r\nimport { LuSidepanelIntl } from './sidepanel.intl';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\nimport { ILuSidepanelLabel } from './sidepanel.translate';\r\n\r\n@Component({\r\n\tselector: 'lu-sidepanel-panel',\r\n\ttemplateUrl: './sidepanel-panel.component.html',\r\n\tstyleUrls: ['./sidepanel-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class LuSidepanelPanelComponent<T extends ILuSidepanelContent = ILuSidepanelContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-sidepanel-panel') public class = true;\r\n\r\n\tconstructor(_ref: ALuSidepanelRef<LuSidepanelPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuSidepanelIntl) intl: ILuSidepanelLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n\r\n@Component({\r\n\tselector: 'lu-sidepanel-panel-default',\r\n\ttemplateUrl: './sidepanel-panel.component.html',\r\n\tstyleUrls: ['./sidepanel-panel.component.scss'],\r\n\tchangeDetection: ChangeDetectionStrategy.Default,\r\n})\r\n// eslint-disable-next-line @angular-eslint/component-class-suffix\r\nexport class LuSidepanelPanelComponentDefaultCD<T extends ILuSidepanelContent = ILuSidepanelContent> extends ALuModalPanelComponent<T> {\r\n\t@HostBinding('class.lu-sidepanel-panel') public class = true;\r\n\tconstructor(_ref: ALuSidepanelRef<LuSidepanelPanelComponent<T>>, _cdr: ChangeDetectorRef, @Inject(LuSidepanelIntl) intl: ILuSidepanelLabel) {\r\n\t\tsuper(_ref, _cdr, intl);\r\n\t}\r\n}\r\n","<div class=\"lu-sidepanel-panel-inner\" cdkTrapFocus=\"true\" cdkTrapFocusAutoCapture=\"true\" role=\"dialog\" aria-modal=\"true\">\r\n\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\r\n\t\t<h3 class=\"lu-modal-header-title\">{{ title }}</h3>\r\n\t\t<button class=\"lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\r\n\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-cross\"></span>\r\n\t\t\t<span class=\"u-mask\">{{ closeLabel }}</span>\r\n\t\t</button>\r\n\t</div>\r\n\t<div class=\"lu-modal-content\">\r\n\t\t<ng-container cdkPortalOutlet #outlet></ng-container>\r\n\t</div>\r\n\t<div class=\"lu-modal-footer\">\r\n\t\t<button\r\n\t\t\t*ngIf=\"!isSubmitHidden\"\r\n\t\t\tclass=\"button palette-{{ submitPalette }}\"\r\n\t\t\t[disabled]=\"isSubmitDisabled\"\r\n\t\t\t[class.mod-counter]=\"hasSubmitCounter\"\r\n\t\t\t[ngClass]=\"submitClass$ | async\"\r\n\t\t\t(click)=\"submit()\"\r\n\t\t>\r\n\t\t\t{{ submitLabel }}\r\n\t\t\t<label class=\"button-counter\" *ngIf=\"hasSubmitCounter\">{{ submitCounter }}</label>\r\n\t\t</button>\r\n\t\t<button class=\"button mod-link\" (click)=\"dismiss()\">{{ cancelLabel }}</button>\r\n\t</div>\r\n</div>\r\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal, PortalOutlet } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ComponentRef, Injectable, Injector } from '@angular/core';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD } from './sidepanel-panel.component';\r\nimport { ALuSidepanelRef, ILuSidepanelRef } from './sidepanel-ref.model';\r\nimport { ILuSidepanelContent } from './sidepanel.model';\r\nimport { LU_SIDEPANEL_DATA } from './sidepanel.token';\r\n\r\nclass LuSidepanelRef<T extends ILuSidepanelContent<unknown> = ILuSidepanelContent<unknown>, D = unknown, R = unknown> extends ALuSidepanelRef<T, D, R> implements ILuSidepanelRef<T, D, R> {\r\n\tprotected _containerRef: ComponentRef<LuSidepanelPanelComponent>;\r\n\tprotected _containerOutlet: PortalOutlet;\r\n\tconstructor(protected override _overlay: Overlay, protected override _injector: Injector, protected override _component: ComponentType<T>, protected override _config: ILuSidepanelConfig) {\r\n\t\tsuper(_overlay, _injector, _component, _config);\r\n\t}\r\n\tprotected override _openPopup(data?: D) {\r\n\t\tconst injector = Injector.create({\r\n\t\t\tproviders: [\r\n\t\t\t\t{ provide: ALuSidepanelRef, useValue: this },\r\n\t\t\t\t{ provide: LU_SIDEPANEL_DATA, useValue: data },\r\n\t\t\t],\r\n\t\t\tparent: this._injector,\r\n\t\t});\r\n\t\tif (this._config.changeDetection === ChangeDetectionStrategy.OnPush) {\r\n\t\t\tconst containerPortal = new ComponentPortal(LuSidepanelPanelComponent, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<LuSidepanelPanelComponent>(containerPortal);\r\n\t\t} else {\r\n\t\t\tconst containerPortal = new ComponentPortal(LuSidepanelPanelComponentDefaultCD, undefined, injector);\r\n\t\t\tthis._containerRef = this._overlayRef.attach<LuSidepanelPanelComponent>(containerPortal);\r\n\t\t}\r\n\t\tthis._containerOutlet = this._containerRef.instance as unknown as PortalOutlet;\r\n\t\tconst portal = new ComponentPortal(this._component, undefined, injector);\r\n\t\tthis._componentRef = this._containerOutlet.attach(portal) as ComponentRef<T>;\r\n\t}\r\n\tprotected override _closePopup() {\r\n\t\tthis._componentRef.destroy();\r\n\t\tthis._containerRef.destroy();\r\n\t}\r\n}\r\n\r\n@Injectable()\r\nexport class LuSidepanelRefFactory implements ILuPopupRefFactory<ILuSidepanelContent<unknown>, ILuSidepanelConfig> {\r\n\tconstructor(protected _overlay: Overlay, protected _injector: Injector) {}\r\n\tforge<T extends ILuSidepanelContent<unknown>, C extends ILuSidepanelConfig, D, R>(component: ComponentType<T>, config: C) {\r\n\t\treturn new LuSidepanelRef<T, D, R>(this._overlay, this._injector, component, config);\r\n\t}\r\n}\r\n","import { Injectable, Inject } from '@angular/core';\r\nimport { LuModal } from '@lucca-front/ng/modal';\r\nimport { ILuSidepanelConfig } from './sidepanel-config.model';\r\nimport { LU_SIDEPANEL_CONFIG, LU_SIDEPANEL_REF_FACTORY } from './sidepanel.token';\r\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\r\n\r\n@Injectable()\r\nexport class LuSidepanel<C extends ILuSidepanelConfig = ILuSidepanelConfig> extends LuModal<C> {\r\n\tconstructor(\r\n\t\t@Inject(LU_SIDEPANEL_REF_FACTORY)\r\n\t\tprotected override _factory: ILuPopupRefFactory,\r\n\t\t@Inject(LU_SIDEPANEL_CONFIG) protected override _config: ILuSidepanelConfig,\r\n\t) {\r\n\t\tsuper(_factory, _config);\r\n\t}\r\n}\r\n","import { ILuTranslation } from '@lucca-front/ng/core';\r\n\r\nexport interface ILuSidepanelLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n\tclose: string;\r\n}\r\nexport abstract class ALuSidepanelLabel {\r\n\tsubmit: string;\r\n\tcancel: string;\r\n\tclose: string;\r\n}\r\n\r\nexport const luSidepanelTranslations: ILuTranslation<ILuSidepanelLabel> = {\r\n\ten: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancel',\r\n\t\tclose: 'Close',\r\n\t},\r\n\tfr: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Annuler',\r\n\t\tclose: 'Fermer',\r\n\t},\r\n\tes: {\r\n\t\tsubmit: 'Ok',\r\n\t\tcancel: 'Cancelar',\r\n\t\tclose: 'Cerrar',\r\n\t},\r\n};\r\n","import { A11yModule } from '@angular/cdk/a11y';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\r\nimport { luDefaultSidepanelConfig } from './sidepanel-config.default';\r\nimport { LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD } from './sidepanel-panel.component';\r\nimport { LuSidepanelRefFactory } from './sidepanel-ref.factory';\r\nimport { LuSidepanelIntl } from './sidepanel.intl';\r\nimport { LuSidepanel } from './sidepanel.service';\r\nimport { LU_SIDEPANEL_CONFIG, LU_SIDEPANEL_REF_FACTORY, LU_SIDEPANEL_TRANSLATIONS } from './sidepanel.token';\r\nimport { luSidepanelTranslations } from './sidepanel.translate';\r\n\r\n@NgModule({\r\n\timports: [OverlayModule, PortalModule, CommonModule, A11yModule, LuTooltipModule],\r\n\tdeclarations: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\tentryComponents: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\texports: [LuSidepanelPanelComponent, LuSidepanelPanelComponentDefaultCD],\r\n\tproviders: [\r\n\t\tLuSidepanel,\r\n\t\tLuSidepanelIntl,\r\n\t\t{ provide: LU_SIDEPANEL_CONFIG, useValue: luDefaultSidepanelConfig },\r\n\t\t{ provide: LU_SIDEPANEL_REF_FACTORY, useClass: LuSidepanelRefFactory },\r\n\t\t{ provide: LU_SIDEPANEL_TRANSLATIONS, useValue: luSidepanelTranslations },\r\n\t],\r\n})\r\nexport class LuSidepanelModule {}\r\n","/*\r\n * Public API Surface of safe-content\r\n */\r\n\r\nexport * from './index';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAGa,wBAAwB,GAAuB;IAC3D,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,CAAC,2BAA2B,EAAE,mBAAmB,CAAC;IACjE,UAAU,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAC/C,IAAI,EAAE,UAAU;IAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;;;ACJhD;MACa,iBAAiB,GAAG,IAAI,cAAc,CAAU,iBAAiB,EAAE;MACnE,mBAAmB,GAAG,IAAI,cAAc,CAAqB,0BAA0B,EAAE;MACzF,yBAAyB,GAAG,IAAI,cAAc,CAAoC,yBAAyB,EAAE;MAC7G,wBAAwB,GAAG,IAAI,cAAc,CAAwB,uBAAuB;;MCJ5F,wBAAwB,OAA0B;IAC9D,YAA+C,YAA+C,EAAqB,MAAc;QAChI,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;KAC5B;;4GAHW,eAAe,kBACP,yBAAyB,aAA2D,SAAS;gHADrG,eAAe;2FAAf,eAAe;kBAD3B,UAAU;;;8BAEG,MAAM;+BAAC,yBAAyB;;8BAAoD,MAAM;+BAAC,SAAS;;;;MCH5F,wBAAuG,WAAoB;;;ACJjJ;MAca,kCAAuF,sBAAyB;IAG5H,YAAY,IAAmD,EAAE,IAAuB,EAA2B,IAAuB;QACzI,KAAK,C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