@messaia/cdk 21.1.0-rc.26 → 21.1.0-rc.28
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/messaia-cdk.mjs +85 -14
- package/fesm2022/messaia-cdk.mjs.map +1 -1
- package/package.json +1 -1
- package/types/messaia-cdk.d.ts +57 -4
package/fesm2022/messaia-cdk.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import * as i1$3 from '@angular/platform-browser';
|
|
|
14
14
|
import { Title } from '@angular/platform-browser';
|
|
15
15
|
import * as i1$2 from '@angular/router';
|
|
16
16
|
import { Router, RouterModule } from '@angular/router';
|
|
17
|
-
import { fromEvent, Subject, switchMap, timer, takeUntil as takeUntil$1, filter, map, tap, merge as merge$1,
|
|
17
|
+
import { fromEvent, Subject, switchMap, timer, takeUntil as takeUntil$1, filter, map, tap, merge as merge$1, of, BehaviorSubject, firstValueFrom, throwError, distinctUntilChanged, debounceTime, Observable } from 'rxjs';
|
|
18
18
|
import * as i2 from '@angular/material/button';
|
|
19
19
|
import { MatButtonModule, MatIconButton } from '@angular/material/button';
|
|
20
20
|
import * as i8 from '@angular/material/icon';
|
|
@@ -1517,13 +1517,7 @@ class BaseComponent {
|
|
|
1517
1517
|
});
|
|
1518
1518
|
/* Merge all event streams to handle concurrent open/close actions */
|
|
1519
1519
|
if (panelStateChanges$.length > 0) {
|
|
1520
|
-
this.matExpansionPanelSubscriptions.push(merge$1(...panelStateChanges$).
|
|
1521
|
-
/*
|
|
1522
|
-
* debounceTime(50) waits for all concurrent synchronous/rapid events
|
|
1523
|
-
* to finish firing before proceeding. If Panel A closes and Panel B
|
|
1524
|
-
* opens instantly, only Panel B's final state triggers navigation.
|
|
1525
|
-
*/
|
|
1526
|
-
debounceTime(50)).subscribe(eventState => {
|
|
1520
|
+
this.matExpansionPanelSubscriptions.push(merge$1(...panelStateChanges$).subscribe(eventState => {
|
|
1527
1521
|
if (this.setUrlHash) {
|
|
1528
1522
|
/* If a valid hash exists, set it as url segment */
|
|
1529
1523
|
if (eventState.hash) {
|
|
@@ -12003,7 +11997,7 @@ function mixinDisabled(base) {
|
|
|
12003
11997
|
};
|
|
12004
11998
|
}
|
|
12005
11999
|
|
|
12006
|
-
class
|
|
12000
|
+
class MsaEnumDisplayComponent {
|
|
12007
12001
|
/**
|
|
12008
12002
|
* The numeric value of the enum to convert.
|
|
12009
12003
|
*/
|
|
@@ -12102,8 +12096,8 @@ class MsEnumDisplayComponent {
|
|
|
12102
12096
|
}
|
|
12103
12097
|
return '';
|
|
12104
12098
|
}, ...(ngDevMode ? [{ debugName: "resolvedText" }] : /* istanbul ignore next */ []));
|
|
12105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type:
|
|
12106
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type:
|
|
12099
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MsaEnumDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: MsaEnumDisplayComponent, isStandalone: true, selector: "msa-enum-display", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, enumType: { classPropertyName: "enumType", publicName: "enumType", isSignal: true, isRequired: false, transformFunction: null }, metadata: { classPropertyName: "metadata", publicName: "metadata", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, entity: { classPropertyName: "entity", publicName: "entity", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
12107
12101
|
@if (resolvedIcon(); as iconConfig) {
|
|
12108
12102
|
<mat-icon
|
|
12109
12103
|
[svgIcon]="iconConfig.svgIcon"
|
|
@@ -12118,9 +12112,9 @@ class MsEnumDisplayComponent {
|
|
|
12118
12112
|
@let text = resolvedText();
|
|
12119
12113
|
<span class="enum-text" i18n="@@selection">{ text, select, type {type} other { {{text}}} }</span>`, isInline: true, styles: [".enum-icon{margin-right:.2rem;vertical-align:middle}.enum-text{vertical-align:middle}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
12120
12114
|
}
|
|
12121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type:
|
|
12115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MsaEnumDisplayComponent, decorators: [{
|
|
12122
12116
|
type: Component,
|
|
12123
|
-
args: [{ selector: '
|
|
12117
|
+
args: [{ selector: 'msa-enum-display', standalone: true, imports: [MatIcon, NgClass], template: `
|
|
12124
12118
|
@if (resolvedIcon(); as iconConfig) {
|
|
12125
12119
|
<mat-icon
|
|
12126
12120
|
[svgIcon]="iconConfig.svgIcon"
|
|
@@ -23036,6 +23030,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
23036
23030
|
args: [MAT_DATE_FORMATS]
|
|
23037
23031
|
}] }, { type: i0.ChangeDetectorRef }] });
|
|
23038
23032
|
|
|
23033
|
+
/**
|
|
23034
|
+
* @component EditFormActionsComponent
|
|
23035
|
+
* @description
|
|
23036
|
+
* Reusable action row for edit forms.
|
|
23037
|
+
* Uses the provided form context to derive button states and trigger
|
|
23038
|
+
* standard form actions (save, apply, cancel/back).
|
|
23039
|
+
*/
|
|
23040
|
+
class MsaEditFormActionsComponent {
|
|
23041
|
+
/**
|
|
23042
|
+
* Reference to the generic form context used by this action row.
|
|
23043
|
+
* @type {IGenericFormBaseComponent<any>}
|
|
23044
|
+
*/
|
|
23045
|
+
context;
|
|
23046
|
+
/**
|
|
23047
|
+
* Determines if the save action is disabled.
|
|
23048
|
+
* Save is disabled while saving is in progress or when form is readonly.
|
|
23049
|
+
* @type {boolean}
|
|
23050
|
+
*/
|
|
23051
|
+
get isSaveDisabled() {
|
|
23052
|
+
return !!(this.context.isSaving || this.context.readonly);
|
|
23053
|
+
}
|
|
23054
|
+
/**
|
|
23055
|
+
* Determines whether the apply button should be displayed.
|
|
23056
|
+
* Apply is only visible when the form is in edit mode.
|
|
23057
|
+
* @type {boolean}
|
|
23058
|
+
*/
|
|
23059
|
+
get isApplyVisible() {
|
|
23060
|
+
return !!this.context.isEditMode;
|
|
23061
|
+
}
|
|
23062
|
+
/**
|
|
23063
|
+
* Determines if the apply action is disabled.
|
|
23064
|
+
* Apply is disabled while saving is in progress or when form is readonly.
|
|
23065
|
+
* @type {boolean}
|
|
23066
|
+
*/
|
|
23067
|
+
get isApplyDisabled() {
|
|
23068
|
+
return !!(this.context.isSaving || this.context.readonly);
|
|
23069
|
+
}
|
|
23070
|
+
/**
|
|
23071
|
+
* Determines if the cancel action is disabled.
|
|
23072
|
+
* Cancel remains enabled by default.
|
|
23073
|
+
* @type {boolean}
|
|
23074
|
+
*/
|
|
23075
|
+
get isCancelDisabled() {
|
|
23076
|
+
return false;
|
|
23077
|
+
}
|
|
23078
|
+
/**
|
|
23079
|
+
* Triggers the context save action.
|
|
23080
|
+
*/
|
|
23081
|
+
onSave() {
|
|
23082
|
+
this.context.save();
|
|
23083
|
+
}
|
|
23084
|
+
/**
|
|
23085
|
+
* Triggers the context apply action.
|
|
23086
|
+
*/
|
|
23087
|
+
onApply() {
|
|
23088
|
+
this.context.apply();
|
|
23089
|
+
}
|
|
23090
|
+
/**
|
|
23091
|
+
* Triggers the context back action.
|
|
23092
|
+
*/
|
|
23093
|
+
onCancel() {
|
|
23094
|
+
this.context.back();
|
|
23095
|
+
}
|
|
23096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MsaEditFormActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: MsaEditFormActionsComponent, isStandalone: true, selector: "[msa-edit-form-actions]", inputs: { context: "context" }, ngImport: i0, template: "<button type=\"button\" mat-flat-button color=\"primary\" [disabled]=\"isSaveDisabled\" (click)=\"onSave()\" i18n=\"@@save\">Save</button>\r\n@if (isApplyVisible) {\r\n <button type=\"button\" mat-button [disabled]=\"isApplyDisabled\" (click)=\"onApply()\" i18n=\"@@apply\">Apply</button>\r\n}\r\n<button type=\"button\" mat-button [disabled]=\"isCancelDisabled\" (click)=\"onCancel()\" i18n=\"@@cancel\">Cancel</button>\r\n<span class=\"spacer\"></span>", styles: [".spacer{flex:1 1 auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatExpansionModule }] });
|
|
23098
|
+
}
|
|
23099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MsaEditFormActionsComponent, decorators: [{
|
|
23100
|
+
type: Component,
|
|
23101
|
+
args: [{ selector: '[msa-edit-form-actions]', imports: [
|
|
23102
|
+
CommonModule,
|
|
23103
|
+
MatButtonModule,
|
|
23104
|
+
MatExpansionModule
|
|
23105
|
+
], template: "<button type=\"button\" mat-flat-button color=\"primary\" [disabled]=\"isSaveDisabled\" (click)=\"onSave()\" i18n=\"@@save\">Save</button>\r\n@if (isApplyVisible) {\r\n <button type=\"button\" mat-button [disabled]=\"isApplyDisabled\" (click)=\"onApply()\" i18n=\"@@apply\">Apply</button>\r\n}\r\n<button type=\"button\" mat-button [disabled]=\"isCancelDisabled\" (click)=\"onCancel()\" i18n=\"@@cancel\">Cancel</button>\r\n<span class=\"spacer\"></span>", styles: [".spacer{flex:1 1 auto}\n"] }]
|
|
23106
|
+
}], propDecorators: { context: [{
|
|
23107
|
+
type: Input
|
|
23108
|
+
}] } });
|
|
23109
|
+
|
|
23039
23110
|
/**
|
|
23040
23111
|
* VdListOptionDirective class
|
|
23041
23112
|
*/
|
|
@@ -28766,5 +28837,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
28766
28837
|
* Generated bundle index. Do not edit.
|
|
28767
28838
|
*/
|
|
28768
28839
|
|
|
28769
|
-
export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe,
|
|
28840
|
+
export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe, MsaEditFormActionsComponent, MsaEnumDisplayComponent, NameNumberProjection, NameProjection, NativeElementInjectorDirective, NumericValueType, OnlyNumberDirective, OrderPipe, Pagination, PaginatorIntl, ParseDecimalDirective, Permission, PlaceholderPipe, PrefixDirective, PrintService, PropertyJoinPipe, ReactiveFormConfig, ReactiveTypedFormsModule, RemoveWhitespaceDirective, ResetFormType, RxFormArray, RxFormBuilder, RxFormControl, RxFormControlDirective, RxFormGroup, RxReactiveFormsModule, RxwebFormDirective, RxwebValidators, SafeHtmlPipe, Salutation, SaveAction, SplitPipe, SubMenuResolve, SuffixButton, Table, TableColumn, TableColumnConfig, TableColumnType, TableConfig, TableDataSource, TableDefinition, TableQueryConfig, TableStaticDataSource, TaskDialogData, Templates, TimePipe, TitleCase, TitleProjection, TruncatePipe, TypedForm, TypedFormBuilder, UniqueValidatorDirective, UrlValidationType, Utils, ValidationAlphabetLocale, ValueAccessorBase, ValuesPipe, VdAlertDialogComponent, VdChipsComponent, VdCodeDirective, VdConfirmDialogComponent, VdCustomDirective, VdDelayedHoverDirective, VdDialogActionsDirective, VdDialogComponent, VdDialogContentDirective, VdDialogHeaderActionsComponent, VdDialogHeaderComponent, VdDialogMaximizeDirective, VdDialogService, VdDialogTitleDirective, VdDynamicMenuComponent, VdDynamicTableComponent, VdDynamicTableConfigDialogComponent, VdEditorDirective, VdFileDirective, VdFileInputComponent, VdFileModule, VdFilterOptionDirective, VdGenericFormComponent, VdGenericFormCustomFieldDirective, VdLayoutCardOverComponent, VdLayoutCloseDirective, VdLayoutCompactComponent, VdLayoutComponent, VdLayoutFooterComponent, VdLayoutManageListCloseDirective, VdLayoutManageListComponent, VdLayoutManageListOpenDirective, VdLayoutManageListToggleDirective, VdLayoutNavComponent, VdLayoutNavListCloseDirective, VdLayoutNavListComponent, VdLayoutNavListOpenDirective, VdLayoutNavListToggleDirective, VdLayoutOpenDirective, VdLayoutToggleDirective, VdListOptionDirective, VdListToolbarComponent, VdMediaService, VdMediaToggleDirective, VdMenuComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdPromptDialogComponent, VdSelectComponent, VdSelectOptionDirective, VdSelectTriggerDirective, VdTableFieldDirective, VdTaskDialogComponent, allOf, allOfAsync, alpha, alphaAsync, alphaNumeric, alphaNumericAsync, and, ascii, async, blacklist, choice, choiceAsync, compare, compose, contains, containsAsync, creditCard, creditCardAsync, cusip, custom, customAsync, dataUri, date, dateAsync, different, digit, disable, elementClass, email, endpointMetadataKey, endsWith, endsWithAsync, error, escape, even, extension, extensionAsync, factor, factorAsync, file, fileAsync, fileSize, fileSizeAsync, formDefinitionMetadataKey, formFieldGroupsMetadataKey, formFieldsMetadataKey, getDisplay, getEndpoint, getFormDefinition, getFormGroups, getTableDefinition, greaterThan, greaterThanAsync, greaterThanEqualTo, greaterThanEqualToAsync, grid, headerMetadataKey, hexColor, iban, ibanAsync, image, imageAsync, json, latLong, latitude, leapYear, lessThan, lessThanAsync, lessThanEqualTo, lessThanEqualToAsync, longitude, lowerCase, ltrim, mac, mask, maxDate, maxDateAsync, maxLength, maxLengthAsync, maxNumber, maxNumberAsync, maxTime, maxTimeAsync, minDate, minDateAsync, minLength, minLengthAsync, minNumber, minNumberAsync, minTime, minTimeAsync, mixinDisableRipple, mixinDisabled, model, noneOf, noneOfAsync, not, notEmpty, numeric, numericAsync, odd, oneOf, oneOfAsync, or, password, passwordAsync, pattern, patternAsync, port, prefix, primeNumber, prop, propArray, propObject, range, rangeAsync, required, requiredTrue, rtrim, rule, sanitize, startsWith, startsWithAsync, stripLow, suffix, tableColumnsMetadataKey, tableDefinitionMetadataKey, time, timeAsync, toBoolean, toDate, toDouble, toFloat, toInt, toString, trim, unique, updateOn, upperCase, url, urlAsync, vdCollapseAnimation, whitelist };
|
|
28770
28841
|
//# sourceMappingURL=messaia-cdk.mjs.map
|