@ngx-smz/core 21.10.0-next.13 → 21.10.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-smz-core.mjs +157 -153
- package/fesm2022/ngx-smz-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-smz-core.d.ts +4 -1
|
@@ -1909,7 +1909,7 @@ class SmzFormViewdata {
|
|
|
1909
1909
|
const response = {
|
|
1910
1910
|
data,
|
|
1911
1911
|
isValid: true,
|
|
1912
|
-
hasUnsavedChanges:
|
|
1912
|
+
hasUnsavedChanges: this.hasChangesFromInitialState,
|
|
1913
1913
|
validationMessagesByField: {}
|
|
1914
1914
|
};
|
|
1915
1915
|
const formFlattenResponse = this.config.behaviors?.flattenResponse ?? false;
|
|
@@ -4323,19 +4323,19 @@ class SmzAutocompleteSelectorComponent {
|
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzAutocompleteSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4326
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: SmzAutocompleteSelectorComponent, isStandalone: true, selector: "smz-autocomplete-selector", inputs: { isRequired: "isRequired", allowCustomValues: "allowCustomValues", option: "option", suggestions: "suggestions" }, outputs: { selectedChange: "selectedChange", suggestionsChanged: "suggestionsChanged", finished: "finished" }, ngImport: i0, template: `
|
|
4327
|
-
<div class="w-full flex-none px-0 flex flex-wrap items-center justify-start gap-2">
|
|
4328
|
-
<ui-auto-complete class="flex-1" styleClass="w-full" [(ngModel)]="option.selected" [suggestions]="suggestions" [dropdown]="true" [emptyMessage]="option.emptyMessage"
|
|
4329
|
-
(completeMethod)="search($event)" (cleared)="onClear()" (blurred)="handleSelection()" (selectedItem)="onSelect()" (keydown)="handleKeyDown($event)">
|
|
4330
|
-
|
|
4331
|
-
<ng-template smzTemplate="header">
|
|
4332
|
-
@if (option.dataSourceDisplayName != null) {
|
|
4333
|
-
<div class="text-blue-500 font-bold text-lg mx-5 mt-4 mb-0">{{ option.dataSourceDisplayName }}</div>
|
|
4334
|
-
}
|
|
4335
|
-
</ng-template>
|
|
4336
|
-
|
|
4337
|
-
</ui-auto-complete>
|
|
4338
|
-
</div>
|
|
4326
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: SmzAutocompleteSelectorComponent, isStandalone: true, selector: "smz-autocomplete-selector", inputs: { isRequired: "isRequired", allowCustomValues: "allowCustomValues", option: "option", suggestions: "suggestions" }, outputs: { selectedChange: "selectedChange", suggestionsChanged: "suggestionsChanged", finished: "finished" }, ngImport: i0, template: `
|
|
4327
|
+
<div class="w-full flex-none px-0 flex flex-wrap items-center justify-start gap-2">
|
|
4328
|
+
<ui-auto-complete class="flex-1" styleClass="w-full" [(ngModel)]="option.selected" [suggestions]="suggestions" [dropdown]="true" [emptyMessage]="option.emptyMessage"
|
|
4329
|
+
(completeMethod)="search($event)" (cleared)="onClear()" (blurred)="handleSelection()" (selectedItem)="onSelect()" (keydown)="handleKeyDown($event)">
|
|
4330
|
+
|
|
4331
|
+
<ng-template smzTemplate="header">
|
|
4332
|
+
@if (option.dataSourceDisplayName != null) {
|
|
4333
|
+
<div class="text-blue-500 font-bold text-lg mx-5 mt-4 mb-0">{{ option.dataSourceDisplayName }}</div>
|
|
4334
|
+
}
|
|
4335
|
+
</ng-template>
|
|
4336
|
+
|
|
4337
|
+
</ui-auto-complete>
|
|
4338
|
+
</div>
|
|
4339
4339
|
`, isInline: true, dependencies: [{ kind: "component", type: SmzAutoCompleteComponent, selector: "ui-auto-complete", inputs: ["suggestions", "field", "dropdown", "emptyMessage", "minLength", "delay", "forceSelection", "showClear", "placeholder", "inputId", "styleClass", "appendTo"], outputs: ["completeMethod", "selectedItem", "cleared", "blurred", "focused"] }, { kind: "directive", type: SmzTemplateDirective, selector: "ng-template[smzTemplate]", inputs: ["smzTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4340
4340
|
}
|
|
4341
4341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: SmzAutocompleteSelectorComponent, decorators: [{
|
|
@@ -4349,19 +4349,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
4349
4349
|
FormsModule
|
|
4350
4350
|
],
|
|
4351
4351
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4352
|
-
template: `
|
|
4353
|
-
<div class="w-full flex-none px-0 flex flex-wrap items-center justify-start gap-2">
|
|
4354
|
-
<ui-auto-complete class="flex-1" styleClass="w-full" [(ngModel)]="option.selected" [suggestions]="suggestions" [dropdown]="true" [emptyMessage]="option.emptyMessage"
|
|
4355
|
-
(completeMethod)="search($event)" (cleared)="onClear()" (blurred)="handleSelection()" (selectedItem)="onSelect()" (keydown)="handleKeyDown($event)">
|
|
4356
|
-
|
|
4357
|
-
<ng-template smzTemplate="header">
|
|
4358
|
-
@if (option.dataSourceDisplayName != null) {
|
|
4359
|
-
<div class="text-blue-500 font-bold text-lg mx-5 mt-4 mb-0">{{ option.dataSourceDisplayName }}</div>
|
|
4360
|
-
}
|
|
4361
|
-
</ng-template>
|
|
4362
|
-
|
|
4363
|
-
</ui-auto-complete>
|
|
4364
|
-
</div>
|
|
4352
|
+
template: `
|
|
4353
|
+
<div class="w-full flex-none px-0 flex flex-wrap items-center justify-start gap-2">
|
|
4354
|
+
<ui-auto-complete class="flex-1" styleClass="w-full" [(ngModel)]="option.selected" [suggestions]="suggestions" [dropdown]="true" [emptyMessage]="option.emptyMessage"
|
|
4355
|
+
(completeMethod)="search($event)" (cleared)="onClear()" (blurred)="handleSelection()" (selectedItem)="onSelect()" (keydown)="handleKeyDown($event)">
|
|
4356
|
+
|
|
4357
|
+
<ng-template smzTemplate="header">
|
|
4358
|
+
@if (option.dataSourceDisplayName != null) {
|
|
4359
|
+
<div class="text-blue-500 font-bold text-lg mx-5 mt-4 mb-0">{{ option.dataSourceDisplayName }}</div>
|
|
4360
|
+
}
|
|
4361
|
+
</ng-template>
|
|
4362
|
+
|
|
4363
|
+
</ui-auto-complete>
|
|
4364
|
+
</div>
|
|
4365
4365
|
`
|
|
4366
4366
|
}]
|
|
4367
4367
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$3.Store }, { type: i0.ChangeDetectorRef }], propDecorators: { isRequired: [{
|
|
@@ -8493,68 +8493,68 @@ class DynamicDialogComponent {
|
|
|
8493
8493
|
this.overlayPanel?.kill();
|
|
8494
8494
|
}
|
|
8495
8495
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: DynamicDialogComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: DynamicDialogConfig }, { token: DynamicDialogRef }, { token: i0.NgZone }, { token: SmzDynamicDialogConfig }, { token: SmzDockService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8496
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: DynamicDialogComponent, isStandalone: false, selector: "smz-dynamicDialog", outputs: { onMaximize: "onMaximize", onMinimize: "onMinimize" }, host: { listeners: { "document:keydown.escape": "onEscapeHandler($event)" }, properties: { "attr.id": "this.domId" }, classAttribute: "p-element" }, viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: DynamicDialogContent, descendants: true }, { propertyName: "insertionFooter", first: true, predicate: DynamicDialogFooter, descendants: true }, { propertyName: "maskViewChild", first: true, predicate: ["mask"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["dialogContainer"], descendants: true }, { propertyName: "highlightPanelViewChild", first: true, predicate: ["highlightPanel"], descendants: true }, { propertyName: "overlayPanelClipViewChild", first: true, predicate: ["overlayPanelClip"], descendants: true }, { propertyName: "overlayBlendClipViewChild", first: true, predicate: ["overlayBlendClip"], descendants: true }], ngImport: i0, template: `
|
|
8497
|
-
|
|
8498
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8499
|
-
<div #overlayBlendClip id="blend-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.overlayBlendStylesClass"></div>
|
|
8500
|
-
}
|
|
8501
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8502
|
-
<div #overlayPanelClip id="overlay-clip" class="fixed inset-0 p-component-overlay p-component-overlay-enter" [ngClass]="dialogConfig.data.overlayPanel?.overlayPanelStylesClass"></div>
|
|
8503
|
-
}
|
|
8504
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8505
|
-
<div #highlightPanel id="highlight-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.hightlightStyleClass"></div>
|
|
8506
|
-
}
|
|
8507
|
-
<div #mask id="dialog-mask" [attr.data-testid]="buildDialogTestId('mask')" [ngClass]="{'p-dialog-mask-free': dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-component-overlay p-component-overlay-enter' : config.modal !== false && !dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-dialog-mask-scrollblocker': config.modal !== false, 'smz-dialog-minimized': minimized }" class="smz_form_grid_container p-dialog-mask">
|
|
8508
|
-
@if (visible) {
|
|
8509
|
-
<div #dialogContainer id="dialog-container" [attr.data-testid]="buildDialogTestId()" [smzAutoFocus]="config.autoFocus" [ngClass]="{'p-dialog p-dynamic-dialog p-component': true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}" [ngStyle]="config.style" class="{{ config.styleClass }} {{ dialogConfig?.data?.containerStyleClass }}"
|
|
8510
|
-
[@animation]="{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}"
|
|
8511
|
-
(@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog"
|
|
8512
|
-
[style.width]="config.width" [style.height]="config.height">
|
|
8513
|
-
@if (config.showHeader === false ? false: true) {
|
|
8514
|
-
<div class="p-dialog-header" [attr.data-testid]="buildDialogTestId('header')" [ngStyle]="config.headerStyle">
|
|
8515
|
-
<div class="p-dialog-title w-full" [attr.data-testid]="buildDialogTestId('title')" [innerHTML]="config.header | safeHtml"></div>
|
|
8516
|
-
<div class="p-dialog-header-icons flex gap-3" [ngClass]="{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }">
|
|
8517
|
-
@for (topbarButton of dialogConfig.data.topbarButtons; track $index) {
|
|
8518
|
-
@if (topbarButton.visible) {
|
|
8519
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildTopbarButtonTestId(topbarButton, $index)" (click)="topbarButton.onClick()" [smzTooltip]="topbarButton.tooltip">
|
|
8520
|
-
<span [ngClass]="topbarButton.class"></span>
|
|
8521
|
-
</button>
|
|
8522
|
-
}
|
|
8523
|
-
}
|
|
8524
|
-
@if (config.minimizable !== false) {
|
|
8525
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('minimize')" (click)="minimize()" (keydown.enter)="minimize()">
|
|
8526
|
-
<span class="p-dialog-header-close-icon fa-solid fa-minus"></span>
|
|
8527
|
-
</button>
|
|
8528
|
-
}
|
|
8529
|
-
@if (config.maximizable !== false && !maximized) {
|
|
8530
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('maximize')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8531
|
-
<span class="p-dialog-header-close-icon" [ngClass]="maximizeIcon"></span>
|
|
8532
|
-
</button>
|
|
8533
|
-
}
|
|
8534
|
-
@if (maximized && !config.blockRestoreButton) {
|
|
8535
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('restore')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8536
|
-
<span class="p-dialog-header-close-icon" [ngClass]="minimizeIcon"></span>
|
|
8537
|
-
</button>
|
|
8538
|
-
}
|
|
8539
|
-
@if (config.closable !== false) {
|
|
8540
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('close')" (click)="hide()" (keydown.enter)="hide()">
|
|
8541
|
-
<span class="p-dialog-header-close-icon fa-solid fa-xmark"></span>
|
|
8542
|
-
</button>
|
|
8543
|
-
}
|
|
8544
|
-
</div>
|
|
8545
|
-
</div>
|
|
8546
|
-
}
|
|
8547
|
-
<div class="p-dialog-content {{ dialogConfig?.data?.contentStyleClass }}" [attr.data-testid]="buildDialogTestId('content')" [ngStyle]="config.contentStyle" [ngClass]="{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }">
|
|
8548
|
-
<ng-template pDynamicDialogContent></ng-template>
|
|
8549
|
-
</div>
|
|
8550
|
-
@if (config.footer) {
|
|
8551
|
-
<div class="p-dialog-footer" [attr.data-testid]="buildDialogTestId('footer')" [ngStyle]="config.footerStyle" [ngClass]="{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }">
|
|
8552
|
-
<ng-template pDynamicDialogFooter></ng-template>
|
|
8553
|
-
</div>
|
|
8554
|
-
}
|
|
8555
|
-
</div>
|
|
8556
|
-
}
|
|
8557
|
-
</div>
|
|
8496
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: DynamicDialogComponent, isStandalone: false, selector: "smz-dynamicDialog", outputs: { onMaximize: "onMaximize", onMinimize: "onMinimize" }, host: { listeners: { "document:keydown.escape": "onEscapeHandler($event)" }, properties: { "attr.id": "this.domId" }, classAttribute: "p-element" }, viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: DynamicDialogContent, descendants: true }, { propertyName: "insertionFooter", first: true, predicate: DynamicDialogFooter, descendants: true }, { propertyName: "maskViewChild", first: true, predicate: ["mask"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["dialogContainer"], descendants: true }, { propertyName: "highlightPanelViewChild", first: true, predicate: ["highlightPanel"], descendants: true }, { propertyName: "overlayPanelClipViewChild", first: true, predicate: ["overlayPanelClip"], descendants: true }, { propertyName: "overlayBlendClipViewChild", first: true, predicate: ["overlayBlendClip"], descendants: true }], ngImport: i0, template: `
|
|
8497
|
+
|
|
8498
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8499
|
+
<div #overlayBlendClip id="blend-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.overlayBlendStylesClass"></div>
|
|
8500
|
+
}
|
|
8501
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8502
|
+
<div #overlayPanelClip id="overlay-clip" class="fixed inset-0 p-component-overlay p-component-overlay-enter" [ngClass]="dialogConfig.data.overlayPanel?.overlayPanelStylesClass"></div>
|
|
8503
|
+
}
|
|
8504
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8505
|
+
<div #highlightPanel id="highlight-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.hightlightStyleClass"></div>
|
|
8506
|
+
}
|
|
8507
|
+
<div #mask id="dialog-mask" [attr.data-testid]="buildDialogTestId('mask')" [ngClass]="{'p-dialog-mask-free': dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-component-overlay p-component-overlay-enter' : config.modal !== false && !dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-dialog-mask-scrollblocker': config.modal !== false, 'smz-dialog-minimized': minimized }" class="smz_form_grid_container p-dialog-mask">
|
|
8508
|
+
@if (visible) {
|
|
8509
|
+
<div #dialogContainer id="dialog-container" [attr.data-testid]="buildDialogTestId()" [smzAutoFocus]="config.autoFocus" [ngClass]="{'p-dialog p-dynamic-dialog p-component': true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}" [ngStyle]="config.style" class="{{ config.styleClass }} {{ dialogConfig?.data?.containerStyleClass }}"
|
|
8510
|
+
[@animation]="{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}"
|
|
8511
|
+
(@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog"
|
|
8512
|
+
[style.width]="config.width" [style.height]="config.height">
|
|
8513
|
+
@if (config.showHeader === false ? false: true) {
|
|
8514
|
+
<div class="p-dialog-header" [attr.data-testid]="buildDialogTestId('header')" [ngStyle]="config.headerStyle">
|
|
8515
|
+
<div class="p-dialog-title w-full" [attr.data-testid]="buildDialogTestId('title')" [innerHTML]="config.header | safeHtml"></div>
|
|
8516
|
+
<div class="p-dialog-header-icons flex gap-3" [ngClass]="{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }">
|
|
8517
|
+
@for (topbarButton of dialogConfig.data.topbarButtons; track $index) {
|
|
8518
|
+
@if (topbarButton.visible) {
|
|
8519
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildTopbarButtonTestId(topbarButton, $index)" (click)="topbarButton.onClick()" [smzTooltip]="topbarButton.tooltip">
|
|
8520
|
+
<span [ngClass]="topbarButton.class"></span>
|
|
8521
|
+
</button>
|
|
8522
|
+
}
|
|
8523
|
+
}
|
|
8524
|
+
@if (config.minimizable !== false) {
|
|
8525
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('minimize')" (click)="minimize()" (keydown.enter)="minimize()">
|
|
8526
|
+
<span class="p-dialog-header-close-icon fa-solid fa-minus"></span>
|
|
8527
|
+
</button>
|
|
8528
|
+
}
|
|
8529
|
+
@if (config.maximizable !== false && !maximized) {
|
|
8530
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('maximize')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8531
|
+
<span class="p-dialog-header-close-icon" [ngClass]="maximizeIcon"></span>
|
|
8532
|
+
</button>
|
|
8533
|
+
}
|
|
8534
|
+
@if (maximized && !config.blockRestoreButton) {
|
|
8535
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('restore')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8536
|
+
<span class="p-dialog-header-close-icon" [ngClass]="minimizeIcon"></span>
|
|
8537
|
+
</button>
|
|
8538
|
+
}
|
|
8539
|
+
@if (config.closable !== false) {
|
|
8540
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('close')" (click)="hide()" (keydown.enter)="hide()">
|
|
8541
|
+
<span class="p-dialog-header-close-icon fa-solid fa-xmark"></span>
|
|
8542
|
+
</button>
|
|
8543
|
+
}
|
|
8544
|
+
</div>
|
|
8545
|
+
</div>
|
|
8546
|
+
}
|
|
8547
|
+
<div class="p-dialog-content {{ dialogConfig?.data?.contentStyleClass }}" [attr.data-testid]="buildDialogTestId('content')" [ngStyle]="config.contentStyle" [ngClass]="{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }">
|
|
8548
|
+
<ng-template pDynamicDialogContent></ng-template>
|
|
8549
|
+
</div>
|
|
8550
|
+
@if (config.footer) {
|
|
8551
|
+
<div class="p-dialog-footer" [attr.data-testid]="buildDialogTestId('footer')" [ngStyle]="config.footerStyle" [ngClass]="{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }">
|
|
8552
|
+
<ng-template pDynamicDialogFooter></ng-template>
|
|
8553
|
+
</div>
|
|
8554
|
+
}
|
|
8555
|
+
</div>
|
|
8556
|
+
}
|
|
8557
|
+
</div>
|
|
8558
8558
|
`, isInline: true, styles: [".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog-mask-free{position:fixed;top:0;left:0;width:100%;height:100%;display:block!important;pointer-events:none}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative;padding:unset}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}.p-component-overlay{background-color:#0006}.p-component-overlay-enter{animation:smz-dialog-mask-enter var(--smz-duration, .15s) forwards}.p-component-overlay-leave{animation:smz-dialog-mask-leave var(--smz-duration, .15s) forwards}@keyframes smz-dialog-mask-enter{0%{background-color:transparent}to{background-color:#0006}}@keyframes smz-dialog-mask-leave{0%{background-color:#0006}to{background-color:transparent}}.p-dialog{background:rgb(var(--smz-color-surface-2));color:rgb(var(--smz-color-fg));font-family:var(--smz-font-sans);font-size:var(--smz-text-md);border:1px solid rgb(var(--smz-color-line));border-radius:var(--smz-radius-overlay);box-shadow:var(--smz-shadow-overlay)}.p-dialog-header{padding:1.25rem;gap:.5rem;background:transparent;color:inherit;border-top-left-radius:var(--smz-radius-overlay);border-top-right-radius:var(--smz-radius-overlay)}.p-dialog-title{font-size:1.25rem;font-weight:600}.p-dialog-content{padding:0 1.25rem 1.25rem;background:transparent;color:inherit}.p-dialog-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:0 1.25rem 1.25rem;background:transparent;border-bottom-left-radius:var(--smz-radius-overlay);border-bottom-right-radius:var(--smz-radius-overlay)}.p-dialog-footer button{width:auto}.p-dialog .p-dialog-header-icon{width:2rem;height:2rem;border:0;border-radius:9999px;background:transparent;color:rgb(var(--smz-color-fg-muted));cursor:pointer;transition:background-color var(--smz-duration)}.p-dialog .p-dialog-header-icon:hover{background:rgb(var(--smz-color-surface-3));color:rgb(var(--smz-color-fg))}.p-dialog .p-dialog-header-icon:focus-visible{outline:2px solid rgb(var(--smz-color-focus))}.p-dialog-footer .p-toolbar,.p-dialog-footer [class*=toolbar],.p-dialog-footer ui-toolbar{border:0!important;background:transparent!important;padding:0!important}.p-dialog-mask[popover]{margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;inset:0;max-width:none;max-height:none;width:100%;height:100%}.p-dialog-mask[popover]::backdrop{display:none}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => SmzTooltipDirective), selector: "[smzTooltip]", inputs: ["smzTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipEvent", "escape", "tooltipStyleClass", "tooltipZIndex", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "directive", type: i0.forwardRef(() => SmzAutoFocusDirective), selector: "[smzAutoFocus]", inputs: ["smzAutoFocus"] }, { kind: "directive", type: i0.forwardRef(() => DynamicDialogContent), selector: "[pDynamicDialogContent]" }, { kind: "directive", type: i0.forwardRef(() => DynamicDialogFooter), selector: "[pDynamicDialogFooter]" }, { kind: "pipe", type: i0.forwardRef(() => SafeHtmlPipe$1), name: "safeHtml" }], animations: [
|
|
8559
8559
|
trigger('animation', [
|
|
8560
8560
|
transition('void => visible', [
|
|
@@ -8568,68 +8568,68 @@ class DynamicDialogComponent {
|
|
|
8568
8568
|
}
|
|
8569
8569
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: DynamicDialogComponent, decorators: [{
|
|
8570
8570
|
type: Component,
|
|
8571
|
-
args: [{ selector: 'smz-dynamicDialog', template: `
|
|
8572
|
-
|
|
8573
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8574
|
-
<div #overlayBlendClip id="blend-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.overlayBlendStylesClass"></div>
|
|
8575
|
-
}
|
|
8576
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8577
|
-
<div #overlayPanelClip id="overlay-clip" class="fixed inset-0 p-component-overlay p-component-overlay-enter" [ngClass]="dialogConfig.data.overlayPanel?.overlayPanelStylesClass"></div>
|
|
8578
|
-
}
|
|
8579
|
-
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8580
|
-
<div #highlightPanel id="highlight-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.hightlightStyleClass"></div>
|
|
8581
|
-
}
|
|
8582
|
-
<div #mask id="dialog-mask" [attr.data-testid]="buildDialogTestId('mask')" [ngClass]="{'p-dialog-mask-free': dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-component-overlay p-component-overlay-enter' : config.modal !== false && !dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-dialog-mask-scrollblocker': config.modal !== false, 'smz-dialog-minimized': minimized }" class="smz_form_grid_container p-dialog-mask">
|
|
8583
|
-
@if (visible) {
|
|
8584
|
-
<div #dialogContainer id="dialog-container" [attr.data-testid]="buildDialogTestId()" [smzAutoFocus]="config.autoFocus" [ngClass]="{'p-dialog p-dynamic-dialog p-component': true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}" [ngStyle]="config.style" class="{{ config.styleClass }} {{ dialogConfig?.data?.containerStyleClass }}"
|
|
8585
|
-
[@animation]="{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}"
|
|
8586
|
-
(@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog"
|
|
8587
|
-
[style.width]="config.width" [style.height]="config.height">
|
|
8588
|
-
@if (config.showHeader === false ? false: true) {
|
|
8589
|
-
<div class="p-dialog-header" [attr.data-testid]="buildDialogTestId('header')" [ngStyle]="config.headerStyle">
|
|
8590
|
-
<div class="p-dialog-title w-full" [attr.data-testid]="buildDialogTestId('title')" [innerHTML]="config.header | safeHtml"></div>
|
|
8591
|
-
<div class="p-dialog-header-icons flex gap-3" [ngClass]="{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }">
|
|
8592
|
-
@for (topbarButton of dialogConfig.data.topbarButtons; track $index) {
|
|
8593
|
-
@if (topbarButton.visible) {
|
|
8594
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildTopbarButtonTestId(topbarButton, $index)" (click)="topbarButton.onClick()" [smzTooltip]="topbarButton.tooltip">
|
|
8595
|
-
<span [ngClass]="topbarButton.class"></span>
|
|
8596
|
-
</button>
|
|
8597
|
-
}
|
|
8598
|
-
}
|
|
8599
|
-
@if (config.minimizable !== false) {
|
|
8600
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('minimize')" (click)="minimize()" (keydown.enter)="minimize()">
|
|
8601
|
-
<span class="p-dialog-header-close-icon fa-solid fa-minus"></span>
|
|
8602
|
-
</button>
|
|
8603
|
-
}
|
|
8604
|
-
@if (config.maximizable !== false && !maximized) {
|
|
8605
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('maximize')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8606
|
-
<span class="p-dialog-header-close-icon" [ngClass]="maximizeIcon"></span>
|
|
8607
|
-
</button>
|
|
8608
|
-
}
|
|
8609
|
-
@if (maximized && !config.blockRestoreButton) {
|
|
8610
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('restore')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8611
|
-
<span class="p-dialog-header-close-icon" [ngClass]="minimizeIcon"></span>
|
|
8612
|
-
</button>
|
|
8613
|
-
}
|
|
8614
|
-
@if (config.closable !== false) {
|
|
8615
|
-
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('close')" (click)="hide()" (keydown.enter)="hide()">
|
|
8616
|
-
<span class="p-dialog-header-close-icon fa-solid fa-xmark"></span>
|
|
8617
|
-
</button>
|
|
8618
|
-
}
|
|
8619
|
-
</div>
|
|
8620
|
-
</div>
|
|
8621
|
-
}
|
|
8622
|
-
<div class="p-dialog-content {{ dialogConfig?.data?.contentStyleClass }}" [attr.data-testid]="buildDialogTestId('content')" [ngStyle]="config.contentStyle" [ngClass]="{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }">
|
|
8623
|
-
<ng-template pDynamicDialogContent></ng-template>
|
|
8624
|
-
</div>
|
|
8625
|
-
@if (config.footer) {
|
|
8626
|
-
<div class="p-dialog-footer" [attr.data-testid]="buildDialogTestId('footer')" [ngStyle]="config.footerStyle" [ngClass]="{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }">
|
|
8627
|
-
<ng-template pDynamicDialogFooter></ng-template>
|
|
8628
|
-
</div>
|
|
8629
|
-
}
|
|
8630
|
-
</div>
|
|
8631
|
-
}
|
|
8632
|
-
</div>
|
|
8571
|
+
args: [{ selector: 'smz-dynamicDialog', template: `
|
|
8572
|
+
|
|
8573
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8574
|
+
<div #overlayBlendClip id="blend-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.overlayBlendStylesClass"></div>
|
|
8575
|
+
}
|
|
8576
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8577
|
+
<div #overlayPanelClip id="overlay-clip" class="fixed inset-0 p-component-overlay p-component-overlay-enter" [ngClass]="dialogConfig.data.overlayPanel?.overlayPanelStylesClass"></div>
|
|
8578
|
+
}
|
|
8579
|
+
@if (dialogConfig.data.behaviors.showAsLinkedOverlayPanel) {
|
|
8580
|
+
<div #highlightPanel id="highlight-clip" class="fixed inset-0" [ngClass]="dialogConfig.data.overlayPanel?.hightlightStyleClass"></div>
|
|
8581
|
+
}
|
|
8582
|
+
<div #mask id="dialog-mask" [attr.data-testid]="buildDialogTestId('mask')" [ngClass]="{'p-dialog-mask-free': dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-component-overlay p-component-overlay-enter' : config.modal !== false && !dialogConfig.data.behaviors.showAsLinkedOverlayPanel, 'p-dialog-mask-scrollblocker': config.modal !== false, 'smz-dialog-minimized': minimized }" class="smz_form_grid_container p-dialog-mask">
|
|
8583
|
+
@if (visible) {
|
|
8584
|
+
<div #dialogContainer id="dialog-container" [attr.data-testid]="buildDialogTestId()" [smzAutoFocus]="config.autoFocus" [ngClass]="{'p-dialog p-dynamic-dialog p-component': true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}" [ngStyle]="config.style" class="{{ config.styleClass }} {{ dialogConfig?.data?.containerStyleClass }}"
|
|
8585
|
+
[@animation]="{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}"
|
|
8586
|
+
(@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog"
|
|
8587
|
+
[style.width]="config.width" [style.height]="config.height">
|
|
8588
|
+
@if (config.showHeader === false ? false: true) {
|
|
8589
|
+
<div class="p-dialog-header" [attr.data-testid]="buildDialogTestId('header')" [ngStyle]="config.headerStyle">
|
|
8590
|
+
<div class="p-dialog-title w-full" [attr.data-testid]="buildDialogTestId('title')" [innerHTML]="config.header | safeHtml"></div>
|
|
8591
|
+
<div class="p-dialog-header-icons flex gap-3" [ngClass]="{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }">
|
|
8592
|
+
@for (topbarButton of dialogConfig.data.topbarButtons; track $index) {
|
|
8593
|
+
@if (topbarButton.visible) {
|
|
8594
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildTopbarButtonTestId(topbarButton, $index)" (click)="topbarButton.onClick()" [smzTooltip]="topbarButton.tooltip">
|
|
8595
|
+
<span [ngClass]="topbarButton.class"></span>
|
|
8596
|
+
</button>
|
|
8597
|
+
}
|
|
8598
|
+
}
|
|
8599
|
+
@if (config.minimizable !== false) {
|
|
8600
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('minimize')" (click)="minimize()" (keydown.enter)="minimize()">
|
|
8601
|
+
<span class="p-dialog-header-close-icon fa-solid fa-minus"></span>
|
|
8602
|
+
</button>
|
|
8603
|
+
}
|
|
8604
|
+
@if (config.maximizable !== false && !maximized) {
|
|
8605
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('maximize')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8606
|
+
<span class="p-dialog-header-close-icon" [ngClass]="maximizeIcon"></span>
|
|
8607
|
+
</button>
|
|
8608
|
+
}
|
|
8609
|
+
@if (maximized && !config.blockRestoreButton) {
|
|
8610
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('restore')" (click)="maximize()" (keydown.enter)="maximize()">
|
|
8611
|
+
<span class="p-dialog-header-close-icon" [ngClass]="minimizeIcon"></span>
|
|
8612
|
+
</button>
|
|
8613
|
+
}
|
|
8614
|
+
@if (config.closable !== false) {
|
|
8615
|
+
<button [ngClass]="'p-dialog-header-icon p-dialog-header-maximize p-link'" type="button" [attr.data-testid]="buildDialogTestId('close')" (click)="hide()" (keydown.enter)="hide()">
|
|
8616
|
+
<span class="p-dialog-header-close-icon fa-solid fa-xmark"></span>
|
|
8617
|
+
</button>
|
|
8618
|
+
}
|
|
8619
|
+
</div>
|
|
8620
|
+
</div>
|
|
8621
|
+
}
|
|
8622
|
+
<div class="p-dialog-content {{ dialogConfig?.data?.contentStyleClass }}" [attr.data-testid]="buildDialogTestId('content')" [ngStyle]="config.contentStyle" [ngClass]="{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }">
|
|
8623
|
+
<ng-template pDynamicDialogContent></ng-template>
|
|
8624
|
+
</div>
|
|
8625
|
+
@if (config.footer) {
|
|
8626
|
+
<div class="p-dialog-footer" [attr.data-testid]="buildDialogTestId('footer')" [ngStyle]="config.footerStyle" [ngClass]="{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }">
|
|
8627
|
+
<ng-template pDynamicDialogFooter></ng-template>
|
|
8628
|
+
</div>
|
|
8629
|
+
}
|
|
8630
|
+
</div>
|
|
8631
|
+
}
|
|
8632
|
+
</div>
|
|
8633
8633
|
`, animations: [
|
|
8634
8634
|
trigger('animation', [
|
|
8635
8635
|
transition('void => visible', [
|
|
@@ -9264,11 +9264,11 @@ class DialogFooterComponent {
|
|
|
9264
9264
|
return response;
|
|
9265
9265
|
}
|
|
9266
9266
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: DialogFooterComponent, deps: [{ token: DynamicDialogRef }, { token: SmzDynamicDialogConfig }, { token: SmzDialogsVisibilityService }, { token: InjectComponentService }, { token: i0.ChangeDetectorRef }, { token: i1$3.Actions }, { token: i1$3.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
9267
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: DialogFooterComponent, isStandalone: false, selector: "smz-dialog-footer", ngImport: i0, template: "@if (dialogConfig.data._context; as context) {\r\n <ui-toolbar class=\"smz-dialog-footer\">\r\n <div class=\"flex flex-wrap items-center justify-end
|
|
9267
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: DialogFooterComponent, isStandalone: false, selector: "smz-dialog-footer", ngImport: i0, template: "@if (dialogConfig.data._context; as context) {\r\n <ui-toolbar class=\"smz-dialog-footer\">\r\n <div class=\"flex flex-wrap items-center justify-end smz-dialog-footer-actions\">\r\n @if (context.customButtonsOrder == null || context.customButtonsOrder === 'first') {\r\n @for (customButton of context.customButtons; track customButton) {\r\n @if (customButton.visible == null || customButton.visible) {\r\n <button smzButton [attr.data-testid]=\"buildCustomButtonTestId(customButton)\" [label]=\"customButton.name\" [icon]=\"customButton.icon\" [styleClass]=\"customButton.class\" [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\" [smzTooltip]=\"customButton.tooltip\" tooltipPosition=\"top\" (click)=\"customClick(customButton)\">\r\n </button>\r\n }\r\n }\r\n }\r\n @if (context.behaviors.showCancelButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('cancel')\" [label]=\"context.builtInButtons.cancelName\" [styleClass]=\"context.builtInButtons.cancelClass\" (click)=\"close()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showConfirmButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('confirm')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.confirmName\" [styleClass]=\"context.builtInButtons.confirmClass\" [disabled]=\"context.isGlobalDisabled\" (click)=\"confirm()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showOkButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('ok')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.okName\" [styleClass]=\"context.builtInButtons.okClass\" [disabled]=\"context.isGlobalDisabled\" (click)=\"ok()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showSaveButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('save')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.saveName\" [styleClass]=\"context.builtInButtons.saveClass\" [icon]=\"context.isLoading ? 'fa-solid fa-spinner fa-spin' : ''\" [disabled]=\"context.isGlobalDisabled\" (click)=\"save()\">\r\n </button>\r\n }\r\n @if (context.customButtonsOrder === 'last') {\r\n @for (customButton of context.customButtons; track customButton) {\r\n <!-- DependsOnValidation -->\r\n @if (customButton.visible == null || customButton.visible) {\r\n <button smzButton [attr.data-testid]=\"buildCustomButtonTestId(customButton)\" [label]=\"customButton.name\" [icon]=\"customButton.icon\" [styleClass]=\"customButton.class\" [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\" [smzTooltip]=\"customButton.tooltip\" tooltipPosition=\"top\" (click)=\"customClick(customButton)\">\r\n </button>\r\n }\r\n }\r\n }\r\n </div>\r\n </ui-toolbar>\r\n}\r\n", styles: [".smz-dialog-footer-actions{gap:var(--smz-dialog-footer-gap, .5rem)}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => i2.SmzButtonComponent), selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "component", type: i0.forwardRef(() => i2.SmzToolbarComponent), selector: "ui-toolbar" }, { kind: "directive", type: i0.forwardRef(() => i2.SmzTooltipDirective), selector: "[smzTooltip]", inputs: ["smzTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipEvent", "escape", "tooltipStyleClass", "tooltipZIndex", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "directive", type: i0.forwardRef(() => ConfirmOnEnterDirective), selector: "[confirmOnEnter]", inputs: ["confirmOnEnter", "clickEvent", "delayConfirmation", "disabled", "dialogId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
9268
9268
|
}
|
|
9269
9269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: DialogFooterComponent, decorators: [{
|
|
9270
9270
|
type: Component,
|
|
9271
|
-
args: [{ selector: 'smz-dialog-footer', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (dialogConfig.data._context; as context) {\r\n <ui-toolbar class=\"smz-dialog-footer\">\r\n <div class=\"flex flex-wrap items-center justify-end
|
|
9271
|
+
args: [{ selector: 'smz-dialog-footer', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (dialogConfig.data._context; as context) {\r\n <ui-toolbar class=\"smz-dialog-footer\">\r\n <div class=\"flex flex-wrap items-center justify-end smz-dialog-footer-actions\">\r\n @if (context.customButtonsOrder == null || context.customButtonsOrder === 'first') {\r\n @for (customButton of context.customButtons; track customButton) {\r\n @if (customButton.visible == null || customButton.visible) {\r\n <button smzButton [attr.data-testid]=\"buildCustomButtonTestId(customButton)\" [label]=\"customButton.name\" [icon]=\"customButton.icon\" [styleClass]=\"customButton.class\" [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\" [smzTooltip]=\"customButton.tooltip\" tooltipPosition=\"top\" (click)=\"customClick(customButton)\">\r\n </button>\r\n }\r\n }\r\n }\r\n @if (context.behaviors.showCancelButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('cancel')\" [label]=\"context.builtInButtons.cancelName\" [styleClass]=\"context.builtInButtons.cancelClass\" (click)=\"close()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showConfirmButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('confirm')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.confirmName\" [styleClass]=\"context.builtInButtons.confirmClass\" [disabled]=\"context.isGlobalDisabled\" (click)=\"confirm()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showOkButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('ok')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.okName\" [styleClass]=\"context.builtInButtons.okClass\" [disabled]=\"context.isGlobalDisabled\" (click)=\"ok()\">\r\n </button>\r\n }\r\n <!-- DependsOnValidation -->\r\n @if (context.behaviors.showSaveButton) {\r\n <button smzButton [attr.data-testid]=\"buildDialogTestId('save')\" [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\" [dialogId]=\"context.id\" [label]=\"context.builtInButtons.saveName\" [styleClass]=\"context.builtInButtons.saveClass\" [icon]=\"context.isLoading ? 'fa-solid fa-spinner fa-spin' : ''\" [disabled]=\"context.isGlobalDisabled\" (click)=\"save()\">\r\n </button>\r\n }\r\n @if (context.customButtonsOrder === 'last') {\r\n @for (customButton of context.customButtons; track customButton) {\r\n <!-- DependsOnValidation -->\r\n @if (customButton.visible == null || customButton.visible) {\r\n <button smzButton [attr.data-testid]=\"buildCustomButtonTestId(customButton)\" [label]=\"customButton.name\" [icon]=\"customButton.icon\" [styleClass]=\"customButton.class\" [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\" [smzTooltip]=\"customButton.tooltip\" tooltipPosition=\"top\" (click)=\"customClick(customButton)\">\r\n </button>\r\n }\r\n }\r\n }\r\n </div>\r\n </ui-toolbar>\r\n}\r\n", styles: [".smz-dialog-footer-actions{gap:var(--smz-dialog-footer-gap, .5rem)}\n"] }]
|
|
9272
9272
|
}], ctorParameters: () => [{ type: DynamicDialogRef }, { type: SmzDynamicDialogConfig }, { type: SmzDialogsVisibilityService }, { type: InjectComponentService }, { type: i0.ChangeDetectorRef }, { type: i1$3.Actions }, { type: i1$3.Store }] });
|
|
9273
9273
|
class ConfirmOnEnterDirective {
|
|
9274
9274
|
el;
|
|
@@ -27882,6 +27882,10 @@ class SmzDialogCustomButtonBuilder {
|
|
|
27882
27882
|
this.button.visible = false;
|
|
27883
27883
|
return this;
|
|
27884
27884
|
}
|
|
27885
|
+
setIcon(icon) {
|
|
27886
|
+
this.button.icon = icon;
|
|
27887
|
+
return this;
|
|
27888
|
+
}
|
|
27885
27889
|
setTooltip(tooltip) {
|
|
27886
27890
|
this.button.tooltip = tooltip;
|
|
27887
27891
|
return this;
|