@rt-tools/ui-kit 0.0.5 → 0.0.7
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,8 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, Attribute, Optional, Directive, Pipe, Injectable, inject, InjectionToken, HostBinding, ChangeDetectionStrategy, Component, contentChild, TemplateRef, input, booleanAttribute, output, viewChild, signal, computed, numberAttribute, Injector, ViewEncapsulation, model, DestroyRef, effect, HostListener, ElementRef, forwardRef, ChangeDetectorRef, untracked, ViewContainerRef, afterNextRender } from '@angular/core';
|
|
3
|
-
import { PlatformService, WINDOW, checkIsMatchingValues, SanitizePipe,
|
|
4
|
-
export * from '@rt-tools/utils';
|
|
5
|
-
export * from '@rt-tools/store';
|
|
3
|
+
import { PlatformService, WINDOW, checkIsMatchingValues, SanitizePipe, RtIconOutlinedDirective, RtHideTooltipDirective, transformArrayInput, RtScrollToElementDirective, RtNavigationDirective, isString, isNumber, areArraysEqual, EmptyToDashPipe, isDate, transformStringInput, BreakpointService, DeviceDetectorService, OSTypes, RtScrollDirective, BreakStringPipe, EntityToStringPipe, OVERLAY_POSITIONS, areArraysEqualUnordered, checkIsEntityInArrayByKey, sortByAlphabet, RtEscapeKeyDirective, POSITION_ENUM } from '@rt-tools/utils';
|
|
6
4
|
import { Observable, ReplaySubject, share, Subject, merge, of, noop } from 'rxjs';
|
|
7
5
|
import { NgStyle, NgClass, NgComponentOutlet, NgTemplateOutlet, AsyncPipe, TitleCasePipe, DOCUMENT } from '@angular/common';
|
|
8
6
|
import * as i1 from '@angular/forms';
|
|
@@ -570,8 +568,6 @@ function provideRtStorage() {
|
|
|
570
568
|
];
|
|
571
569
|
}
|
|
572
570
|
|
|
573
|
-
// Re-export from @rt-tools/store for backwards compatibility
|
|
574
|
-
|
|
575
571
|
class IDBStorageService {
|
|
576
572
|
#windowRef = inject(WINDOW);
|
|
577
573
|
#context;
|
|
@@ -737,6 +733,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
737
733
|
args: ['class']
|
|
738
734
|
}] } });
|
|
739
735
|
|
|
736
|
+
// Modal enums
|
|
737
|
+
var MODAL_WINDOW_SIZE_ENUM;
|
|
738
|
+
(function (MODAL_WINDOW_SIZE_ENUM) {
|
|
739
|
+
MODAL_WINDOW_SIZE_ENUM["SM"] = "25rem";
|
|
740
|
+
MODAL_WINDOW_SIZE_ENUM["MD"] = "45rem";
|
|
741
|
+
MODAL_WINDOW_SIZE_ENUM["LG"] = "65rem";
|
|
742
|
+
MODAL_WINDOW_SIZE_ENUM["FULL"] = "100%";
|
|
743
|
+
})(MODAL_WINDOW_SIZE_ENUM || (MODAL_WINDOW_SIZE_ENUM = {}));
|
|
744
|
+
|
|
740
745
|
class RtModalService {
|
|
741
746
|
#dialogRef = inject(MatDialog);
|
|
742
747
|
#defaultConfig = {
|
|
@@ -1026,7 +1031,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
1026
1031
|
args: [{ selector: 'rtui-spinner', imports: [MatProgressSpinnerModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"c-spinner c-spinner__container\" [class.c-spinner__container--bgr-color]=\"showBackground()\">\n <div class=\"c-spinner__wrapper\" [class.c-spinner__wrapper--bgr-color]=\"showBox()\">\n <mat-spinner [diameter]=\"diameter()\" />\n </div>\n</div>\n", styles: [":host{z-index:10000;position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center}:host .c-spinner__container{width:100%;height:100%;display:flex;align-items:center;justify-content:center}:host .c-spinner__container--bgr-color{background-color:#f5f6f8d9}:host .c-spinner__wrapper{display:flex;align-items:center;justify-content:center}:host .c-spinner__wrapper mat-spinner ::ng-deep circle{stroke:var(--clr-base-accent)}:host .c-spinner__wrapper--bgr-color{width:3rem;height:3rem;background:var(--clr-white-100);border-radius:50%;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}\n"] }]
|
|
1027
1032
|
}], propDecorators: { diameter: [{ type: i0.Input, args: [{ isSignal: true, alias: "diameter", required: false }] }], showBox: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBox", required: false }] }], showBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBackground", required: false }] }] } });
|
|
1028
1033
|
|
|
1029
|
-
|
|
1034
|
+
class AsideRef {
|
|
1035
|
+
constructor(answer, overlayRef, component, position, data) {
|
|
1036
|
+
this.answer = answer;
|
|
1037
|
+
this.overlayRef = overlayRef;
|
|
1038
|
+
this.component = component;
|
|
1039
|
+
this.position = position;
|
|
1040
|
+
this.data = data;
|
|
1041
|
+
}
|
|
1042
|
+
close(answer) {
|
|
1043
|
+
this.answer.next(answer ?? null);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
const ASIDE_REF = new InjectionToken('ASIDE_REF');
|
|
1047
|
+
const ddServices = [
|
|
1048
|
+
{ provide: 'ddData', useValue: undefined },
|
|
1049
|
+
{ provide: 'ddAnswer', useValue: undefined },
|
|
1050
|
+
{ provide: 'ddOverlay', useValue: undefined },
|
|
1051
|
+
];
|
|
1052
|
+
|
|
1053
|
+
var ASIDE_BUTTONS_ENUM;
|
|
1054
|
+
(function (ASIDE_BUTTONS_ENUM) {
|
|
1055
|
+
ASIDE_BUTTONS_ENUM["USER_ACTIVE"] = "User active";
|
|
1056
|
+
ASIDE_BUTTONS_ENUM["USER_INACTIVE"] = "User inactive";
|
|
1057
|
+
ASIDE_BUTTONS_ENUM["DELETE"] = "Delete";
|
|
1058
|
+
ASIDE_BUTTONS_ENUM["RESET"] = "Reset";
|
|
1059
|
+
})(ASIDE_BUTTONS_ENUM || (ASIDE_BUTTONS_ENUM = {}));
|
|
1030
1060
|
|
|
1031
1061
|
class RtuiAsidePanelComponent {
|
|
1032
1062
|
constructor() {
|
|
@@ -5139,5 +5169,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
5139
5169
|
* Generated bundle index. Do not edit.
|
|
5140
5170
|
*/
|
|
5141
5171
|
|
|
5142
|
-
export { BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective, FILTER_OPERATORS, FILTER_OPERATOR_TYPE_ENUM, IDBStorageService, IDB_STORAGE_SERVICE_TOKEN, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IN_MEMORY_STORAGE, InMemoryStorageService, JsonConverter, LIST_SORT_ORDER_ENUM, LOCAL_STORAGE, ModDirective, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, RtuiActionBarComponent, RtuiActionBarContainerComponent, RtuiAsideContainerComponent, RtuiAsideContainerHeaderDirective, RtuiButtonComponent, RtuiClearButtonComponent, RtuiCustomTableCellsDirective, RtuiDynamicInputAdditionalControlDirective, RtuiDynamicInputComponent, RtuiDynamicListComponent, RtuiDynamicListCustomTableCellsDirective, RtuiDynamicListRowActionsDirective, RtuiDynamicListRowAdditionalActionsDirective, RtuiDynamicListToolbarActionsDirective, RtuiDynamicListToolbarSelectorsDirective, RtuiDynamicSelectorAdditionalControlDirective, RtuiDynamicSelectorComponent, RtuiDynamicSelectorItemAdditionalControlDirective, RtuiDynamicSelectorListActionsComponent, RtuiDynamicSelectorPlaceholderComponent, RtuiDynamicSelectorSelectedListComponent, RtuiFileUploadComponent, RtuiHeaderCenterDirective, RtuiHeaderComponent, RtuiHeaderLeftDirective, RtuiHeaderRightDirective, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiRoundIconButtonComponent, RtuiScrollableContainerComponent, RtuiScrollableContainerContentDirective, RtuiScrollableContainerFooterDirective, RtuiScrollableContainerHeaderDirective, RtuiSideMenuComponent, RtuiSideMenuFooterDirective, RtuiSideMenuHeaderDirective, RtuiSnackBarComponent, RtuiSpinnerComponent, RtuiStopTableRowClickDirective, RtuiTableAdditionalRowActionsDirective, RtuiTableComponent, RtuiTableRowActionsDirective, RtuiTableRowClickDirective, RtuiToggleComponent, RtuiToolbarCenterDirective, RtuiToolbarComponent, RtuiToolbarLeftDirective, RtuiToolbarRightDirective, SESSION_STORAGE, STORAGE_TYPES_ENUM, StorageService, TABLE_COLUMN_FILTER_TYPES_ENUM, TABLE_COLUMN_TYPES_ENUM, TEXT_CELL_COLOR_ENUM, TOGGLE_SIZE_TYPE_ENUM, darkenHexColor, getColorBasedOnBackground, iDBStorageFactory, inMemoryStorageFactory, localStorageFactory, progressDecreaseAnimation, progressIncreaseAnimation, provideRtIDBStorage, provideRtStorage, provideRtUi, sessionStorageFactory };
|
|
5172
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective, FILTER_OPERATORS, FILTER_OPERATOR_TYPE_ENUM, IDBStorageService, IDB_STORAGE_SERVICE_TOKEN, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IN_MEMORY_STORAGE, InMemoryStorageService, JsonConverter, LIST_SORT_ORDER_ENUM, LOCAL_STORAGE, MODAL_WINDOW_SIZE_ENUM, ModDirective, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, RtuiActionBarComponent, RtuiActionBarContainerComponent, RtuiAsideContainerComponent, RtuiAsideContainerHeaderDirective, RtuiButtonComponent, RtuiClearButtonComponent, RtuiCustomTableCellsDirective, RtuiDynamicInputAdditionalControlDirective, RtuiDynamicInputComponent, RtuiDynamicListComponent, RtuiDynamicListCustomTableCellsDirective, RtuiDynamicListRowActionsDirective, RtuiDynamicListRowAdditionalActionsDirective, RtuiDynamicListToolbarActionsDirective, RtuiDynamicListToolbarSelectorsDirective, RtuiDynamicSelectorAdditionalControlDirective, RtuiDynamicSelectorComponent, RtuiDynamicSelectorItemAdditionalControlDirective, RtuiDynamicSelectorListActionsComponent, RtuiDynamicSelectorPlaceholderComponent, RtuiDynamicSelectorSelectedListComponent, RtuiFileUploadComponent, RtuiHeaderCenterDirective, RtuiHeaderComponent, RtuiHeaderLeftDirective, RtuiHeaderRightDirective, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiRoundIconButtonComponent, RtuiScrollableContainerComponent, RtuiScrollableContainerContentDirective, RtuiScrollableContainerFooterDirective, RtuiScrollableContainerHeaderDirective, RtuiSideMenuComponent, RtuiSideMenuFooterDirective, RtuiSideMenuHeaderDirective, RtuiSnackBarComponent, RtuiSpinnerComponent, RtuiStopTableRowClickDirective, RtuiTableAdditionalRowActionsDirective, RtuiTableComponent, RtuiTableRowActionsDirective, RtuiTableRowClickDirective, RtuiToggleComponent, RtuiToolbarCenterDirective, RtuiToolbarComponent, RtuiToolbarLeftDirective, RtuiToolbarRightDirective, SESSION_STORAGE, STORAGE_TYPES_ENUM, StorageService, TABLE_COLUMN_FILTER_TYPES_ENUM, TABLE_COLUMN_TYPES_ENUM, TEXT_CELL_COLOR_ENUM, TOGGLE_SIZE_TYPE_ENUM, darkenHexColor, ddServices, getColorBasedOnBackground, iDBStorageFactory, inMemoryStorageFactory, localStorageFactory, progressDecreaseAnimation, progressIncreaseAnimation, provideRtIDBStorage, provideRtStorage, provideRtUi, sessionStorageFactory };
|
|
5143
5173
|
//# sourceMappingURL=rt-tools-ui-kit.mjs.map
|