@maro-tech/card 0.1.2 → 0.1.4
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,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Type, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Type, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { HttpParams } from '@angular/common/http';
|
|
5
5
|
import * as lucide_angular from 'lucide-angular';
|
|
@@ -233,17 +233,32 @@ declare class CardSectionHeaderComponent {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
declare class ImagesViewerComponent {
|
|
236
|
+
readonly downloadIcon: lucide_angular.LucideIconData;
|
|
236
237
|
readonly urls: _angular_core.InputSignal<string[]>;
|
|
237
238
|
readonly initialIndex: _angular_core.InputSignal<number>;
|
|
238
239
|
readonly currentIndex: _angular_core.WritableSignal<number>;
|
|
240
|
+
readonly isOriginalVisible: _angular_core.WritableSignal<boolean>;
|
|
241
|
+
readonly thumbnailButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
239
242
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
243
|
+
private touchStartX;
|
|
244
|
+
private touchStartY;
|
|
245
|
+
private lastImagesKey;
|
|
240
246
|
constructor();
|
|
241
247
|
onEscape(): void;
|
|
242
248
|
onArrowLeft(): void;
|
|
243
249
|
onArrowRight(): void;
|
|
244
250
|
closeViewer(): void;
|
|
251
|
+
onTouchStart(event: TouchEvent): void;
|
|
252
|
+
onTouchEnd(event: TouchEvent): void;
|
|
245
253
|
showPreviousImage(): void;
|
|
246
254
|
showNextImage(): void;
|
|
255
|
+
toggleOriginal(): void;
|
|
256
|
+
selectImage(index: number, event: MouseEvent): void;
|
|
257
|
+
private blurActiveElement;
|
|
258
|
+
get currentUrl(): string;
|
|
259
|
+
get currentImageUrl(): string;
|
|
260
|
+
isPreloadIndex(index: number): boolean;
|
|
261
|
+
getImageUrl(url: string, index: number): string;
|
|
247
262
|
get imageViewerTransform(): string;
|
|
248
263
|
get imageViewerTransitionStyle(): string;
|
|
249
264
|
getThumbnailUrl(url: string): string;
|
|
@@ -418,7 +433,7 @@ declare class HistoryTabComponent {
|
|
|
418
433
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HistoryTabComponent, "app-history-tab", never, { "entity": { "alias": "entity"; "required": false; "isSignal": true; }; "primaryEntity": { "alias": "primaryEntity"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "entityLabels": { "alias": "entityLabels"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
419
434
|
}
|
|
420
435
|
|
|
421
|
-
declare class
|
|
436
|
+
declare class TableComponent implements OnChanges {
|
|
422
437
|
config: UiCardTabConfig;
|
|
423
438
|
data: Record<string, unknown> | null;
|
|
424
439
|
private readonly http;
|
|
@@ -426,10 +441,10 @@ declare class StandardTableComponent implements OnChanges {
|
|
|
426
441
|
private readonly columnsSignal;
|
|
427
442
|
private readonly rowsSignal;
|
|
428
443
|
private readonly paginationSignal;
|
|
444
|
+
readonly pageSizeOptionsSignal: _angular_core.WritableSignal<number[]>;
|
|
429
445
|
private readonly headerActionsSignal;
|
|
430
446
|
private readonly loadingSignal;
|
|
431
447
|
private readonly errorSignal;
|
|
432
|
-
private readonly editableOptionsSignal;
|
|
433
448
|
readonly columns: _angular_core.Signal<UiTableColumnConfig[]>;
|
|
434
449
|
readonly rows: _angular_core.Signal<Record<string, unknown>[]>;
|
|
435
450
|
readonly headerActions: _angular_core.Signal<UiEntityCardAction[]>;
|
|
@@ -458,7 +473,6 @@ declare class StandardTableComponent implements OnChanges {
|
|
|
458
473
|
private emitAction;
|
|
459
474
|
private load;
|
|
460
475
|
private setColumns;
|
|
461
|
-
private loadEditableOptions;
|
|
462
476
|
private rowsFrom;
|
|
463
477
|
private tableName;
|
|
464
478
|
private editableColumns;
|
|
@@ -468,9 +482,9 @@ declare class StandardTableComponent implements OnChanges {
|
|
|
468
482
|
private resolveObject;
|
|
469
483
|
private resolve;
|
|
470
484
|
private resolveValue;
|
|
471
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
472
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
485
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
486
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "app-card-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
473
487
|
}
|
|
474
488
|
|
|
475
|
-
export { CARD_ACTION_COMPLETED, CARD_ACTION_FINISHED, CARD_ACTION_REQUESTED, CARD_ACTION_STARTED, CardComponent, CardCurrentUserService, CardDictionaryService, CardImageService, CardSectionHeaderComponent, DocumentsComponent, ENTITY_UPDATED, HistoryTabComponent, ImagesViewerComponent,
|
|
489
|
+
export { CARD_ACTION_COMPLETED, CARD_ACTION_FINISHED, CARD_ACTION_REQUESTED, CARD_ACTION_STARTED, CardComponent, CardCurrentUserService, CardDictionaryService, CardImageService, CardSectionHeaderComponent, DocumentsComponent, ENTITY_UPDATED, HistoryTabComponent, ImagesViewerComponent, TableComponent, UI_CARD_API_BASE_URL, UI_CARD_TAB_REGISTRY, UI_ENTITY_CARD_HOST, UiEntityDocumentsService, cardApiParams, cardApiResourceUrl, normalizeCardConfig, resolveCardConfig };
|
|
476
490
|
export type { ApiPluginConfig, ApiPluginMethod, CardAction, CardActionContext, CardActionLifecycleEvent, CardActionRequestedEvent, CardConfig, CardData, CardDictionarySuggestItem, CardField, CardPanelInput, CardSection, CardTab, EntityUpdatedEvent, UiCardLayout, UiCardLayoutInput, UiCardTabComponent, UiCardTabConfig, UiCardTabField, UiCardTabRegistration, UiEntityCardAction, UiEntityCardHost, UiEntityCardResponse, UiEntityCardTab, UiEntityDocumentFile, UiEntityDocumentRecognitionStatus };
|