@rt-tools/ui-kit 0.0.6 → 0.0.8
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,6 +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,
|
|
3
|
+
import { PlatformService, WINDOW, checkIsMatchingValues, SanitizePipe, RtIconOutlinedDirective, RtHideTooltipDirective, transformArrayInput, RtScrollToElementDirective, RtNavigationDirective, isString, isNumber, areArraysEqual, EmptyToDashPipe, LIST_SORT_ORDER_ENUM, FILTER_OPERATOR_TYPE_ENUM, FILTER_OPERATORS, isDate, transformStringInput, BreakpointService, DeviceDetectorService, OSTypes, RtScrollDirective, BreakStringPipe, EntityToStringPipe, OVERLAY_POSITIONS, areArraysEqualUnordered, checkIsEntityInArrayByKey, sortByAlphabet, RtEscapeKeyDirective, POSITION_ENUM } from '@rt-tools/utils';
|
|
4
4
|
import { Observable, ReplaySubject, share, Subject, merge, of, noop } from 'rxjs';
|
|
5
5
|
import { NgStyle, NgClass, NgComponentOutlet, NgTemplateOutlet, AsyncPipe, TitleCasePipe, DOCUMENT } from '@angular/common';
|
|
6
6
|
import * as i1 from '@angular/forms';
|
|
@@ -733,6 +733,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
733
733
|
args: ['class']
|
|
734
734
|
}] } });
|
|
735
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
|
+
|
|
736
745
|
class RtModalService {
|
|
737
746
|
#dialogRef = inject(MatDialog);
|
|
738
747
|
#defaultConfig = {
|
|
@@ -1022,6 +1031,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
1022
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"] }]
|
|
1023
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 }] }] } });
|
|
1024
1033
|
|
|
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 = {}));
|
|
1060
|
+
|
|
1025
1061
|
class RtuiAsidePanelComponent {
|
|
1026
1062
|
constructor() {
|
|
1027
1063
|
this.#asideRef = inject(ASIDE_REF);
|
|
@@ -1720,32 +1756,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
1720
1756
|
|
|
1721
1757
|
const RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE = 'rtui-table-stop-row-click-attribute';
|
|
1722
1758
|
|
|
1723
|
-
var LIST_SORT_ORDER_ENUM;
|
|
1724
|
-
(function (LIST_SORT_ORDER_ENUM) {
|
|
1725
|
-
LIST_SORT_ORDER_ENUM["ASC"] = "asc";
|
|
1726
|
-
LIST_SORT_ORDER_ENUM["DESC"] = "desc";
|
|
1727
|
-
})(LIST_SORT_ORDER_ENUM || (LIST_SORT_ORDER_ENUM = {}));
|
|
1728
|
-
|
|
1729
|
-
var FILTER_OPERATOR_TYPE_ENUM;
|
|
1730
|
-
(function (FILTER_OPERATOR_TYPE_ENUM) {
|
|
1731
|
-
FILTER_OPERATOR_TYPE_ENUM["EQUALS"] = "equals";
|
|
1732
|
-
FILTER_OPERATOR_TYPE_ENUM["NOT_EQUALS"] = "notEquals";
|
|
1733
|
-
FILTER_OPERATOR_TYPE_ENUM["STARTS_WITH"] = "startsWith";
|
|
1734
|
-
FILTER_OPERATOR_TYPE_ENUM["ENDS_WITH"] = "endsWith";
|
|
1735
|
-
FILTER_OPERATOR_TYPE_ENUM["CONTAINS"] = "contains";
|
|
1736
|
-
FILTER_OPERATOR_TYPE_ENUM["GREATER_THAN"] = "greaterThan";
|
|
1737
|
-
FILTER_OPERATOR_TYPE_ENUM["LESS_THAN"] = "lessThan";
|
|
1738
|
-
})(FILTER_OPERATOR_TYPE_ENUM || (FILTER_OPERATOR_TYPE_ENUM = {}));
|
|
1739
|
-
const FILTER_OPERATORS = Object.freeze([
|
|
1740
|
-
FILTER_OPERATOR_TYPE_ENUM.EQUALS,
|
|
1741
|
-
FILTER_OPERATOR_TYPE_ENUM.NOT_EQUALS,
|
|
1742
|
-
FILTER_OPERATOR_TYPE_ENUM.STARTS_WITH,
|
|
1743
|
-
FILTER_OPERATOR_TYPE_ENUM.ENDS_WITH,
|
|
1744
|
-
FILTER_OPERATOR_TYPE_ENUM.CONTAINS,
|
|
1745
|
-
FILTER_OPERATOR_TYPE_ENUM.GREATER_THAN,
|
|
1746
|
-
FILTER_OPERATOR_TYPE_ENUM.LESS_THAN,
|
|
1747
|
-
]);
|
|
1748
|
-
|
|
1749
1759
|
var TABLE_COLUMN_TYPES_ENUM;
|
|
1750
1760
|
(function (TABLE_COLUMN_TYPES_ENUM) {
|
|
1751
1761
|
TABLE_COLUMN_TYPES_ENUM["DATE"] = "date";
|
|
@@ -5133,5 +5143,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
|
|
|
5133
5143
|
* Generated bundle index. Do not edit.
|
|
5134
5144
|
*/
|
|
5135
5145
|
|
|
5136
|
-
export { BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective,
|
|
5146
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective, IDBStorageService, IDB_STORAGE_SERVICE_TOKEN, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IN_MEMORY_STORAGE, InMemoryStorageService, JsonConverter, 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 };
|
|
5137
5147
|
//# sourceMappingURL=rt-tools-ui-kit.mjs.map
|