@rt-tools/ui-kit 0.0.7 → 0.0.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rt-tools/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Yauheni Krumin",
|
|
6
6
|
"type": "module",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"tslib": "^2.8.0",
|
|
9
9
|
"@rt-tools/core": "^0.0.2",
|
|
10
10
|
"@rt-tools/store": "^0.0.4",
|
|
11
|
-
"@rt-tools/utils": "^0.0.
|
|
11
|
+
"@rt-tools/utils": "^0.0.5"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@rt-tools/core": "^0.0.2",
|
|
15
15
|
"@rt-tools/store": "^0.0.4",
|
|
16
|
-
"@rt-tools/utils": "^0.0.
|
|
16
|
+
"@rt-tools/utils": "^0.0.5",
|
|
17
17
|
"@angular/animations": "^21.0.0",
|
|
18
18
|
"@angular/cdk": "^21.0.0",
|
|
19
19
|
"@angular/common": "^21.0.0",
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnChanges, ElementRef, Renderer2, PipeTransform, Provider, InjectionToken, Type, OnInit, Signal, TemplateRef, WritableSignal, InputSignal, InputSignalWithTransform, OutputEmitterRef, ModelSignal, AfterViewInit, AfterViewChecked, AfterContentChecked, OnDestroy } from '@angular/core';
|
|
3
|
-
import { Nullable, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
3
|
+
import { Nullable, PageModel, SortModel, FilterOperatorType, FilterModel, FILTER_OPERATOR_TYPE_ENUM, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { FormControl, ControlValueAccessor, Validator, FormGroup, ValidationErrors } from '@angular/forms';
|
|
6
6
|
import { ThemePalette } from '@angular/material/core';
|
|
@@ -712,51 +712,6 @@ declare class RtuiClearButtonComponent {
|
|
|
712
712
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiClearButtonComponent, "rtui-clear-button", never, { "isMobile": { "alias": "isMobile"; "required": false; "isSignal": true; }; "isButtonShown": { "alias": "isButtonShown"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, { "keydownAction": "keydownAction"; "clickAction": "clickAction"; }, never, never, true, never>;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
declare enum LIST_SORT_ORDER_ENUM {
|
|
716
|
-
ASC = "asc",
|
|
717
|
-
DESC = "desc"
|
|
718
|
-
}
|
|
719
|
-
type ListSortOrderType = LIST_SORT_ORDER_ENUM.ASC | LIST_SORT_ORDER_ENUM.DESC;
|
|
720
|
-
|
|
721
|
-
interface ListState<T extends string, M extends object> {
|
|
722
|
-
pageModel: PageModel;
|
|
723
|
-
sortModel: SortModel<T>;
|
|
724
|
-
filterModel: M;
|
|
725
|
-
searchTerm: string;
|
|
726
|
-
}
|
|
727
|
-
interface SortModel<T = string> {
|
|
728
|
-
propertyName: T;
|
|
729
|
-
sortDirection: ListSortOrderType;
|
|
730
|
-
}
|
|
731
|
-
interface PageModel {
|
|
732
|
-
pageNumber: number;
|
|
733
|
-
pageSize: number;
|
|
734
|
-
totalCount: number;
|
|
735
|
-
endIndex?: number;
|
|
736
|
-
hasNext?: boolean;
|
|
737
|
-
hasPrev?: boolean;
|
|
738
|
-
isFirstPage?: boolean;
|
|
739
|
-
isLastPage?: boolean;
|
|
740
|
-
startIndex?: number;
|
|
741
|
-
}
|
|
742
|
-
interface FilterModel<M = string> {
|
|
743
|
-
operatorType: FilterOperatorType;
|
|
744
|
-
propertyName: M;
|
|
745
|
-
value?: string | number | boolean;
|
|
746
|
-
values?: Array<string | number>;
|
|
747
|
-
}
|
|
748
|
-
declare enum FILTER_OPERATOR_TYPE_ENUM {
|
|
749
|
-
EQUALS = "equals",
|
|
750
|
-
NOT_EQUALS = "notEquals",
|
|
751
|
-
STARTS_WITH = "startsWith",
|
|
752
|
-
ENDS_WITH = "endsWith",
|
|
753
|
-
CONTAINS = "contains",
|
|
754
|
-
GREATER_THAN = "greaterThan",
|
|
755
|
-
LESS_THAN = "lessThan"
|
|
756
|
-
}
|
|
757
|
-
type FilterOperatorType = FILTER_OPERATOR_TYPE_ENUM.EQUALS | FILTER_OPERATOR_TYPE_ENUM.NOT_EQUALS | FILTER_OPERATOR_TYPE_ENUM.STARTS_WITH | FILTER_OPERATOR_TYPE_ENUM.ENDS_WITH | FILTER_OPERATOR_TYPE_ENUM.CONTAINS | FILTER_OPERATOR_TYPE_ENUM.GREATER_THAN | FILTER_OPERATOR_TYPE_ENUM.LESS_THAN;
|
|
758
|
-
declare const FILTER_OPERATORS: ReadonlyArray<FilterOperatorType>;
|
|
759
|
-
|
|
760
715
|
declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
761
716
|
#private;
|
|
762
717
|
/** Current Page Model */
|
|
@@ -1568,6 +1523,8 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1568
1523
|
searchTerm: InputSignal<string>;
|
|
1569
1524
|
/** Indicates that an additional control has been changed */
|
|
1570
1525
|
additionalControlChanged: InputSignal<boolean>;
|
|
1526
|
+
/** Custom sort function for entities list in popup */
|
|
1527
|
+
sortFn: InputSignal<Nullable<(a: ENTITY, b: ENTITY) => number>>;
|
|
1571
1528
|
/** Output search action */
|
|
1572
1529
|
readonly searchAction: OutputEmitterRef<string>;
|
|
1573
1530
|
/** Output scroll action, needed for lazy loading */
|
|
@@ -1621,7 +1578,7 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1621
1578
|
/** Proceed move items in list */
|
|
1622
1579
|
onDrop(event: CdkDragDrop<ENTITY[]>): void;
|
|
1623
1580
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorComponent<any, any>, never>;
|
|
1624
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiDynamicSelectorComponent<any, any>, "rtui-dynamic-selector", never, { "keyExp": { "alias": "keyExp"; "required": true; "isSignal": true; }; "displayExp": { "alias": "displayExp"; "required": true; "isSignal": true; }; "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "navigateButtonTitle": { "alias": "navigateButtonTitle"; "required": false; "isSignal": true; }; "navigateLink": { "alias": "navigateLink"; "required": false; "isSignal": true; }; "readonlyEntitiesKeys": { "alias": "readonlyEntitiesKeys"; "required": false; "isSignal": true; }; "chosenEntities": { "alias": "chosenEntities"; "required": false; "isSignal": true; }; "isSelectionAvailable": { "alias": "isSelectionAvailable"; "required": false; "isSignal": true; }; "isPlaceholderShown": { "alias": "isPlaceholderShown"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; "isLazyLoad": { "alias": "isLazyLoad"; "required": false; "isSignal": true; }; "isLocalSearch": { "alias": "isLocalSearch"; "required": false; "isSignal": true; }; "isMultiToggleShown": { "alias": "isMultiToggleShown"; "required": false; "isSignal": true; }; "isSelectAllButtonShown": { "alias": "isSelectAllButtonShown"; "required": false; "isSignal": true; }; "isOpenPopupButtonShown": { "alias": "isOpenPopupButtonShown"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "additionalControlChanged": { "alias": "additionalControlChanged"; "required": false; "isSignal": true; }; }, { "chosenEntities": "chosenEntitiesChange"; "searchAction": "searchAction"; "scrollAction": "scrollAction"; "temporarySelectAction": "temporarySelectAction"; "resetAction": "resetAction"; "selectionChangeAction": "selectionChangeAction"; }, ["additionalControlTpl"], never, true, never>;
|
|
1581
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiDynamicSelectorComponent<any, any>, "rtui-dynamic-selector", never, { "keyExp": { "alias": "keyExp"; "required": true; "isSignal": true; }; "displayExp": { "alias": "displayExp"; "required": true; "isSignal": true; }; "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "navigateButtonTitle": { "alias": "navigateButtonTitle"; "required": false; "isSignal": true; }; "navigateLink": { "alias": "navigateLink"; "required": false; "isSignal": true; }; "readonlyEntitiesKeys": { "alias": "readonlyEntitiesKeys"; "required": false; "isSignal": true; }; "chosenEntities": { "alias": "chosenEntities"; "required": false; "isSignal": true; }; "isSelectionAvailable": { "alias": "isSelectionAvailable"; "required": false; "isSignal": true; }; "isPlaceholderShown": { "alias": "isPlaceholderShown"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; "isLazyLoad": { "alias": "isLazyLoad"; "required": false; "isSignal": true; }; "isLocalSearch": { "alias": "isLocalSearch"; "required": false; "isSignal": true; }; "isMultiToggleShown": { "alias": "isMultiToggleShown"; "required": false; "isSignal": true; }; "isSelectAllButtonShown": { "alias": "isSelectAllButtonShown"; "required": false; "isSignal": true; }; "isOpenPopupButtonShown": { "alias": "isOpenPopupButtonShown"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "additionalControlChanged": { "alias": "additionalControlChanged"; "required": false; "isSignal": true; }; "sortFn": { "alias": "sortFn"; "required": false; "isSignal": true; }; }, { "chosenEntities": "chosenEntitiesChange"; "searchAction": "searchAction"; "scrollAction": "scrollAction"; "temporarySelectAction": "temporarySelectAction"; "resetAction": "resetAction"; "selectionChangeAction": "selectionChangeAction"; }, ["additionalControlTpl"], never, true, never>;
|
|
1625
1582
|
}
|
|
1626
1583
|
|
|
1627
1584
|
interface FormModel {
|
|
@@ -1941,5 +1898,5 @@ declare class RtActionBarService {
|
|
|
1941
1898
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtActionBarService>;
|
|
1942
1899
|
}
|
|
1943
1900
|
|
|
1944
|
-
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective,
|
|
1945
|
-
export type { AsideButtonsType, AsidePositions, ButtonAppearanceType, ButtonColorType, ButtonSizeType,
|
|
1901
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, BlockDirective, CUSTOM_STORAGE, ConcatClassesPipe, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, ElemDirective, IAside, IDBStorageService, IDB_STORAGE_SERVICE_TOKEN, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IN_MEMORY_STORAGE, IRtActionBar, IRtSnackBar, ISideMenu, ITable, 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 };
|
|
1902
|
+
export type { AsideButtonsType, AsidePositions, ButtonAppearanceType, ButtonColorType, ButtonSizeType, IBemConfig, IIDBStorageServiceInterface, IImageUploadFormat, IInfoBadgeSizeType, IModsObject, IRtuiTable, IStorageConfig, IStorageConverter, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType, NameValueType, Select, StorageType, ToggleSizeType };
|
|
Binary file
|