@indigina/ui-kit 1.1.646 → 1.1.647
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,13 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import { __decorate } from 'tslib';
|
|
4
|
-
import { StateToken, Action, State, Store, Selector, createSelector, provideStates } from '@ngxs/store';
|
|
5
|
-
import { EMPTY, take, tap, catchError, map, forkJoin, BehaviorSubject, filter, Subject, startWith, pairwise, takeUntil, combineLatest, debounceTime, distinctUntilChanged, of, switchMap, finalize, throwError, merge } from 'rxjs';
|
|
2
|
+
import { InjectionToken, Input, ChangeDetectionStrategy, Component, input, EventEmitter, Output, ViewEncapsulation, inject, Injectable, Directive, model, output, viewChild, contentChild, TemplateRef, computed, effect, ElementRef, NgZone, Renderer2, forwardRef, signal, HostListener, ContentChild, ViewChild, DOCUMENT, ViewContainerRef, DestroyRef, afterNextRender, contentChildren, linkedSignal, ContentChildren, viewChildren, QueryList, ViewChildren, Pipe, Injector, runInInjectionContext, ChangeDetectorRef } from '@angular/core';
|
|
6
3
|
import * as i1$7 from '@angular/common';
|
|
7
4
|
import { NgClass, NgTemplateOutlet, CommonModule, DatePipe, AsyncPipe, DecimalPipe, NgComponentOutlet, Location, TitleCasePipe } from '@angular/common';
|
|
8
5
|
import * as i1 from '@progress/kendo-angular-buttons';
|
|
9
6
|
import { ButtonModule, ButtonGroupModule } from '@progress/kendo-angular-buttons';
|
|
10
7
|
import { HttpClient, HttpHeaders, HttpParams, HttpStatusCode } from '@angular/common/http';
|
|
8
|
+
import { map, catchError, EMPTY, forkJoin, BehaviorSubject, filter, Subject, startWith, pairwise, takeUntil, combineLatest, tap, debounceTime, distinctUntilChanged, of, take, switchMap, finalize, throwError, merge } from 'rxjs';
|
|
11
9
|
import * as i1$1 from '@progress/kendo-angular-layout';
|
|
12
10
|
import { ExpansionPanelComponent, ExpansionPanelModule, KENDO_LAYOUT, TileLayoutModule, DrawerComponent } from '@progress/kendo-angular-layout';
|
|
13
11
|
import * as i1$3 from '@progress/kendo-angular-label';
|
|
@@ -48,6 +46,8 @@ import * as i2 from '@progress/kendo-angular-pager';
|
|
|
48
46
|
import { PagerContextService, PagerNavigationService } from '@progress/kendo-angular-pager';
|
|
49
47
|
import * as i3 from '@progress/kendo-angular-utils';
|
|
50
48
|
import { DragTargetContainerDirective, DropTargetContainerDirective, KENDO_DRAGANDDROP } from '@progress/kendo-angular-utils';
|
|
49
|
+
import { StateToken, Action, State, Store, Selector, createSelector, provideStates } from '@ngxs/store';
|
|
50
|
+
import { __decorate } from 'tslib';
|
|
51
51
|
import * as i2$1 from '@progress/kendo-angular-sortable';
|
|
52
52
|
import { KENDO_SORTABLE } from '@progress/kendo-angular-sortable';
|
|
53
53
|
import { saveAs, encodeBase64 } from '@progress/kendo-file-saver';
|
|
@@ -66,45 +66,7 @@ import { ToolbarService, KENDO_SCHEDULER } from '@progress/kendo-angular-schedul
|
|
|
66
66
|
import * as i1$f from '@progress/kendo-angular-treeview';
|
|
67
67
|
import { KENDO_TREEVIEW } from '@progress/kendo-angular-treeview';
|
|
68
68
|
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
class FetchSystemInfo {
|
|
72
|
-
static { this.type = '[KitSystemInfo] Fetch'; }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const KIT_SYSTEM_INFO_STATE_TOKEN = new StateToken('kitSystemInfo');
|
|
76
|
-
let KitSystemInfoState = class KitSystemInfoState {
|
|
77
|
-
constructor() {
|
|
78
|
-
this.source = inject(KIT_SYSTEM_INFO_SOURCE, { optional: true });
|
|
79
|
-
}
|
|
80
|
-
fetchSystemInfo(ctx) {
|
|
81
|
-
const source = this.source;
|
|
82
|
-
if (!source) {
|
|
83
|
-
ctx.patchState({ maxTop: null });
|
|
84
|
-
return EMPTY;
|
|
85
|
-
}
|
|
86
|
-
return source.getSystemInfo().pipe(take(1), tap((info) => ctx.patchState({ maxTop: info.maxTop ?? null })), catchError(() => {
|
|
87
|
-
ctx.patchState({ maxTop: null });
|
|
88
|
-
return EMPTY;
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitSystemInfoState, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
92
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitSystemInfoState }); }
|
|
93
|
-
};
|
|
94
|
-
__decorate([
|
|
95
|
-
Action(FetchSystemInfo)
|
|
96
|
-
], KitSystemInfoState.prototype, "fetchSystemInfo", null);
|
|
97
|
-
KitSystemInfoState = __decorate([
|
|
98
|
-
State({
|
|
99
|
-
name: KIT_SYSTEM_INFO_STATE_TOKEN,
|
|
100
|
-
defaults: {
|
|
101
|
-
maxTop: null,
|
|
102
|
-
},
|
|
103
|
-
})
|
|
104
|
-
], KitSystemInfoState);
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: KitSystemInfoState, decorators: [{
|
|
106
|
-
type: Injectable
|
|
107
|
-
}], propDecorators: { fetchSystemInfo: [] } });
|
|
69
|
+
const KIT_GRID_EXPORT_MAX_TOP = new InjectionToken('KIT_GRID_EXPORT_MAX_TOP', { providedIn: 'root', factory: () => null });
|
|
108
70
|
|
|
109
71
|
class KitSvgIconComponent {
|
|
110
72
|
constructor() {
|
|
@@ -16844,6 +16806,7 @@ class KitGridExportComponent {
|
|
|
16844
16806
|
this.kitExcelExportService = inject(KitExcelExportService);
|
|
16845
16807
|
this.store = inject(Store);
|
|
16846
16808
|
this.injector = inject(Injector);
|
|
16809
|
+
this.maxTop = inject(KIT_GRID_EXPORT_MAX_TOP);
|
|
16847
16810
|
this.getExportedData = input.required(/* @ts-ignore */
|
|
16848
16811
|
...(ngDevMode ? [{ debugName: "getExportedData" }] : /* istanbul ignore next */ []));
|
|
16849
16812
|
this.translationMap = input.required(/* @ts-ignore */
|
|
@@ -16985,7 +16948,7 @@ class KitGridExportComponent {
|
|
|
16985
16948
|
}));
|
|
16986
16949
|
}
|
|
16987
16950
|
getExportLimitError(rowCount, exportFormat) {
|
|
16988
|
-
const maxTop = this.
|
|
16951
|
+
const maxTop = this.maxTop;
|
|
16989
16952
|
if (maxTop === null || rowCount <= maxTop) {
|
|
16990
16953
|
return null;
|
|
16991
16954
|
}
|
|
@@ -19941,11 +19904,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
19941
19904
|
], template: "<div class=\"user-roles\">\n <kit-card-details [cardData$]=\"roles$\"\n [pageSize]=\"10\"\n [title]=\"'kit.userRoles.title' | translate\"\n [cardSkeletonConfig]=\"cardDetailsSkeletonConfig\"\n (dataStateChanged)=\"onDataStateChanged($event)\"\n (cardClicked)=\"selectedCard.set($event)\">\n <ng-template #headerActions>\n <div class=\"header-actions\">\n <kit-button [label]=\"'kit.export.title' | translate\"\n [icon]=\"kitSvgIcon.EXPORT\"\n [iconType]=\"kitSvgIconType.STROKE\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [type]=\"kitButtonType.GHOST\"\n (clicked)=\"exportExcel()\" />\n <kit-button [label]=\"'kit.common.create' | translate\"\n [icon]=\"kitSvgIcon.PLUS\"\n [iconPosition]=\"kitButtonIconPosition.LEADING\"\n [kind]=\"kitButtonKind.MEDIUM\"\n [type]=\"kitButtonType.GHOST\"\n (clicked)=\"createNewRole()\" />\n </div>\n </ng-template>\n\n <ng-template #cardElement\n let-card>\n <p class=\"user-roles-card-name\">\n <kit-truncate-text>{{ card.name }}</kit-truncate-text>\n </p>\n </ng-template>\n\n <ng-template #details\n let-activeId>\n <div class=\"user-roles-details\">\n <kit-user-role-details [roleId]=\"activeId\"\n [allPermissions]=\"(permissions$ | async) || {}\"\n (deleted)=\"deleteRole(activeId)\"\n (updated)=\"updateRole($event)\" />\n </div>\n </ng-template>\n </kit-card-details>\n</div>\n", styles: [".user-roles .header-actions{display:flex;gap:10px}.user-roles-card-name{margin:10px 0}\n"] }]
|
|
19942
19905
|
}], propDecorators: { kitCardDetailsComponent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => KitCardDetailsComponent), { isSignal: true }] }] } });
|
|
19943
19906
|
|
|
19944
|
-
//
|
|
19907
|
+
// KitGridExport
|
|
19945
19908
|
|
|
19946
19909
|
/**
|
|
19947
19910
|
* Generated bundle index. Do not edit.
|
|
19948
19911
|
*/
|
|
19949
19912
|
|
|
19950
|
-
export { AbstractKitCtaPanelConfirmationComponent, AddGridFilter, DeletePartner, FetchApiTokens, FetchPartners,
|
|
19913
|
+
export { AbstractKitCtaPanelConfirmationComponent, AddGridFilter, DeletePartner, FetchApiTokens, FetchPartners, FetchUser, FetchUserIdentities, FetchUserPermissions, FetchUserSettings, HighlightPipe, KIT_ALL_PERMISSIONS_PATH, KIT_API_TOKENS_STATE_TOKEN, KIT_BASE_PATH, KIT_DATETIME_FORMAT_LONG, KIT_DATE_FORMAT, KIT_DATE_FORMAT_SHORT, KIT_ENTITY_CREATE_SERVICE, KIT_GRID_CELL_DATE_FORMAT_CONFIG, KIT_GRID_COLUMN_WIDTH, KIT_GRID_EXPORT_MAX_TOP, KIT_GRID_PAGE_SIZE, KIT_GRID_STATE_TOKEN, KIT_LANGUAGE_LABELS, KIT_PARTNERS_STATE_TOKEN, KIT_SUPPORTED_LANGUAGES, KIT_TIME_FORMAT_SHORT, KIT_USER_APPLICATIONS_PATH, KIT_USER_IDENTITIES_STATE_TOKEN, KIT_USER_PATH, KIT_USER_PERMISSIONS_PATH, KIT_USER_PERMISSIONS_STATE_TOKEN, KIT_USER_STATE_TOKEN, KitAbstractIdPayloadAction, KitAbstractPayloadAction, KitAccountService, KitApiTokenMaintenanceListComponent, KitApiTokenMaintenanceListState, KitApiTokensPermissionCategories, KitAutocompleteComponent, KitAutocompleteDirective, KitAutocompleteSize, KitAvatarComponent, KitAvatarSize, KitBackButtonComponent, KitBadgeDirective, KitBadgeTheme, KitBreadcrumbsComponent, KitBreadcrumbsService, KitButtonComponent, KitButtonIconPosition, KitButtonKind, KitButtonState, KitButtonType, KitCardComponent, KitCardDetailsAppearance, KitCardDetailsComponent, KitCardTheme, KitCheckboxComponent, KitCheckboxState, KitClipboardService, KitCodeEditorComponent, KitCodeEditorLanguage, KitCodeEditorMode, KitCollapsedListComponent, KitCollapsedListDropdownAlign, KitCopyTextComponent, KitCreateEntityDialogComponent, KitCtaPanelAbstractConfirmationComponent, KitCtaPanelActionComponent, KitCtaPanelConfirmationComponent, KitCtaPanelItemComponent, KitCtaPanelItemType, KitDashboardCardComponent, KitDashboardCardTheme, KitDataFieldComponent, KitDataFieldLayout, KitDataFieldState, KitDateRangeSingleInput, KitDatepickerComponent, KitDatepickerSize, KitDaterangeComponent, KitDaterangeType, KitDatetimepickerComponent, KitDeferredFailedRequestService, KitDialogActionsComponent, KitDialogComponent, KitDialogService, KitDialogTitlebarComponent, KitDialogType, KitDrawerComponent, KitDrawerContentTemplateDirective, KitDrawerFooterTemplateDirective, KitDrawerMode, KitDropdownComponent, KitDropdownItemTemplateDirective, KitDropdownSize, KitEmptySectionComponent, KitEmptySectionSize, KitEntityGridComponent, KitEntitySectionComponent, KitEntitySectionContainerComponent, KitEntitySectionEditableActionsTemplateDirective, KitEntitySectionEditableComponent, KitEntitySectionEditableEditTemplateDirective, KitEntitySectionEditableMode, KitEntitySectionEditableViewTemplateDirective, KitEntitySectionLayout, KitEntityTitleComponent, KitExcelExportService, KitExpansionPanelComponent, KitExpansionPanelHeaderTemplateDirective, KitExpansionPanelToggleMode, KitExpansionPanelView, KitFileCardComponent, KitFileCardInfoTemplateDirective, KitFileCardMessagesComponent, KitFileCardSize, KitFileUploadComponent, KitFileUploadTemplateType, KitFilterCheckboxComponent, KitFilterDateRange, KitFilterLogic, KitFilterOperator, KitFilterType, KitForbiddenComponent, KitFormErrors, KitFormFieldComponent, KitFormLabelComponent, KitFormMessageComponent, KitGlobalSearchComponent, KitGridActionComponent, KitGridArchiveToggle, KitGridCellComponent, KitGridCellService, KitGridCellTemplateDirective, KitGridCheckboxColumnComponent, KitGridCheckboxColumnType, KitGridColumnComponent, KitGridColumnManagerComponent, KitGridComponent, KitGridDetailTemplateDirective, KitGridDetailsButtonComponent, KitGridDropPosition, KitGridExportComponent, KitGridFiltersComponent, KitGridFiltersToggleComponent, KitGridLiveUpdatesControlComponent, KitGridSearchComponent, KitGridSortSettingsMode, KitGridState, KitGridUrlStateService, KitGridViewType, KitGridViewsComponent, KitGridViewsState, KitHttpErrorHandlerService, KitLanguage, KitListComponent, KitLoaderComponent, KitLocationStepperComponent, KitLocationStepperIconTheme, KitLocationStepperTheme, KitMobileHeaderComponent, KitMobileMenuComponent, KitMobileMenuState, KitMultiselectComponent, KitMultiselectGroupTagTemplateDirective, KitMultiselectItemsDirection, KitMultiselectSize, KitNavigationMenuComponent, KitNavigationMenuService, KitNavigationMenuSubmenuComponent, KitNavigationTabsComponent, KitNavigationTabsType, KitNotFoundComponent, KitNoteComponent, KitNotificationComponent, KitNotificationService, KitNotificationType, KitNumericTextboxComponent, KitNumericTextboxSize, KitNumericTextboxState, KitOptionToggleComponent, KitOptionToggleSize, KitPageLayoutComponent, KitPartnerComponent, KitPartnerService, KitPartnerState, KitPermissionDirective, KitPillComponent, KitPillTheme, KitPillType, KitPopoverAnchorDirective, KitPopoverComponent, KitPopoverPosition, KitPopoverShowOption, KitPopupAlignHorizontal, KitPopupAlignVertical, KitPopupComponent, KitPopupPositionMode, KitProfileMenuComponent, KitQueryParamsName, KitQueryParamsService, KitRadioButtonComponent, KitRadioButtonType, KitRoutePathComponent, KitSchedulerAgendaTimeTemplateDirective, KitSchedulerComponent, KitSchedulerCustomViewTemplateDirective, KitSchedulerMonthEventTemplateDirective, KitSchedulerMonthHeaderCellTemplateDirective, KitSchedulerToolbarTemplateDirective, KitSchedulerWeekEventTemplateDirective, KitScrollNavigationComponent, KitScrollNavigationSectionComponent, KitSearchBarComponent, KitSelectableCardComponent, KitShipmentContainerCardComponent, KitShipmentRoutingCardComponent, KitShipmentRoutingOverviewComponent, KitSidebarComponent, KitSkeletonAnimation, KitSkeletonComponent, KitSkeletonGridComponent, KitSkeletonSectionComponent, KitSkeletonShape, KitSortDirection, KitSortableComponent, KitSplitContainerComponent, KitStatusLabelColor, KitStatusLabelComponent, KitStatusLabelSize, KitSvgIcon, KitSvgIconComponent, KitSvgIconType, KitSvgSpriteComponent, KitSwitchComponent, KitSwitchMode, KitSwitchState, KitTabComponent, KitTabContentDirective, KitTabsComponent, KitTabsSize, KitTabsType, KitTextLabelComponent, KitTextLabelState, KitTextareaComponent, KitTextareaState, KitTextboxActionsComponent, KitTextboxComponent, KitTextboxSize, KitTextboxState, KitThemeService, KitThemes, KitTileLayoutComponent, KitTileLayoutItemComponent, KitTimelineCardComponent, KitTimelineCompactComponent, KitTimelineCompactItemTheme, KitTimelineCompactLineTheme, KitTimelineComponent, KitTimelineTheme, KitTimelineType, KitTimepickerComponent, KitTitleTemplateDirective, KitToggleComponent, KitToggleSize, KitTooltipDirective, KitTooltipPosition, KitTopBarComponent, KitTopBarCustomContentTemplateDirective, KitTrackingCardComponent, KitTrackingTimelineComponent, KitTranslateLoader, KitTranslateService, KitTreeComponent, KitTreeContentDirective, KitTreeContentFormat, KitTreeViewMode, KitTruncateTextComponent, KitUnitsTextboxComponent, KitUnitsTextboxDropdownPosition, KitUnitsTextboxType, KitUserApiService, KitUserApplicationsState, KitUserIdentitiesInterceptor, KitUserIdentitiesSelector, KitUserIdentitiesState, KitUserPermissionsState, KitUserRoleDetailsComponent, KitUserRolesComponent, KitUserRolesService, KitUserRolesState, KitUserSettingsComponent, KitUserSettingsKeys, KitUserSettingsState, KitUserState, KitUserType, KitUsersService, KitUsersSettingsComponent, KitUsersSettingsEntitlementType, KitUsersSettingsEntitlementsService, KitUsersSettingsEntitlementsState, KitUsersSettingsReferenceService, KitUsersSettingsState, RemoveGridFilter, SetGridColumns, SetGridFilters, SetGridSearch, SetGridSkip, SetGridSort, SetGridTake, SetUserIdentity, UpdateGridFilter, UpdatePartnerName, UpdateUserPreferences, buildRandomUUID, buildRoutePorts, calculateCurrentLegProgress, calculateDurationInDays, calculateMainRouteProgressPercent, changeFilterField, createDataFetcherFactory, findMatches, getLegArrivalDate, getLegDepartureDate, getMainRouteActiveLegIndex, getTextboxState, getTransportIconLegIndex, isKitFilterDescriptor, isKitLanguageSupported, isLegReachedDestination, kitApiResponseDefaultEntities, kitApiResponseDefaultEntity, kitApiTokenMaintenanceConfig, kitApiTokenMaintenanceRoutes, kitBuildFilterBooleanOptions, kitBuildFilterListOptions, kitBuildFilters, kitBuildGridColumn, kitBuildGridDataResults, kitBuildHttpParams, kitBuildOdataFilter, kitBuildSortString, kitDataStateToODataString, kitEmailValidator, kitEncodeViewNameToUrl, kitFetchExportGridData, kitFetchGridData, kitFilterBy, kitFormatStringForSearch, kitGetPermissionTypesByCategory, kitHasPermission, kitNormalizeDateToUtc, kitShouldResetGridState, kitTranslations, kitUserPermissionsGuard, kitUserRolesConfig, kitUsersSettingsConfig, kitWhitespaceValidator, mapGlobalSearchResult, toUtcIsoString, trimTrailingSlash };
|
|
19951
19914
|
//# sourceMappingURL=indigina-ui-kit.mjs.map
|