@haloduck/ui 2.0.35 → 2.0.37
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/fesm2022/haloduck-ui.mjs +271 -27
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +51 -8
- package/package.json +1 -1
- package/public/i18n/haloduck/en.json +4 -1
- package/public/i18n/haloduck/ko.json +5 -2
package/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { LngLat, MenuItemEx, SearchParams, TableRowProperty } from '@haloduck/co
|
|
|
8
8
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
9
9
|
import * as THREE from 'three';
|
|
10
10
|
import { STLLoader, OrbitControls } from 'three-stdlib';
|
|
11
|
-
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
12
11
|
import * as _haloduck_ui from '@haloduck/ui';
|
|
12
|
+
import { OverlayRef, Overlay } from '@angular/cdk/overlay';
|
|
13
13
|
import * as _jsverse_transloco from '@jsverse/transloco';
|
|
14
14
|
|
|
15
15
|
declare class AuthenticateComponent {
|
|
@@ -560,11 +560,13 @@ interface TableRow extends TableRowProperty {
|
|
|
560
560
|
}
|
|
561
561
|
declare class TableComponent implements OnInit, AfterViewInit {
|
|
562
562
|
private readonly coreService;
|
|
563
|
+
private readonly tableSettingService;
|
|
563
564
|
loadMoreRowRef?: ElementRef;
|
|
564
565
|
tableLayout: 'fixed' | 'auto';
|
|
565
|
-
|
|
566
|
-
showHeader: boolean;
|
|
566
|
+
tableName: string;
|
|
567
567
|
useLoadMore: boolean;
|
|
568
|
+
private defaultAutoLoad;
|
|
569
|
+
private defaultShowHeader;
|
|
568
570
|
columns: TableColumn[];
|
|
569
571
|
rows: Observable<TableRow[]>;
|
|
570
572
|
isLoading: Observable<boolean>;
|
|
@@ -579,6 +581,9 @@ declare class TableComponent implements OnInit, AfterViewInit {
|
|
|
579
581
|
onLoadMore: EventEmitter<any>;
|
|
580
582
|
onRowClick: EventEmitter<TableRow>;
|
|
581
583
|
onRowDblClick: EventEmitter<TableRow>;
|
|
584
|
+
settings$: Observable<_haloduck_ui.TableSettings>;
|
|
585
|
+
showHeader$: Observable<boolean>;
|
|
586
|
+
autoLoad$: Observable<boolean>;
|
|
582
587
|
getColumnValue(row: TableRow, column: TableColumn): Observable<string>;
|
|
583
588
|
getColumnValueRaw(row: TableRow, column: TableColumn): any;
|
|
584
589
|
getColumnValueRawWithArrayKey(row: TableRow, column: TableColumn): any;
|
|
@@ -593,10 +598,46 @@ declare class TableComponent implements OnInit, AfterViewInit {
|
|
|
593
598
|
onRowClicked(row: TableRow): void;
|
|
594
599
|
onRowDblClicked(row: TableRow): void;
|
|
595
600
|
ngOnInit(): void;
|
|
601
|
+
openSettings(): void;
|
|
596
602
|
ngAfterViewInit(): void;
|
|
597
|
-
constructor();
|
|
598
603
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
599
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "haloduck-table", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "
|
|
604
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "haloduck-table", never, { "tableLayout": { "alias": "tableLayout"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; "useLoadMore": { "alias": "useLoadMore"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isPaging": { "alias": "isPaging"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "expandedTemplate": { "alias": "expandedTemplate"; "required": false; }; "customTemplates": { "alias": "customTemplates"; "required": false; }; "lastEvaluatedKey": { "alias": "lastEvaluatedKey"; "required": false; }; }, { "onSortChange": "onSortChange"; "onLoadMore": "onLoadMore"; "onRowClick": "onRowClick"; "onRowDblClick": "onRowDblClick"; }, never, never, true, never>;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
interface TableSettings {
|
|
608
|
+
showHeader: boolean;
|
|
609
|
+
autoLoad: boolean;
|
|
610
|
+
}
|
|
611
|
+
declare class TableSettingService {
|
|
612
|
+
private dialogService;
|
|
613
|
+
private currentOverlayRef?;
|
|
614
|
+
private currentTableNameSubject;
|
|
615
|
+
private settingsSubjects;
|
|
616
|
+
private defaultSettings;
|
|
617
|
+
get currentTableName$(): Observable<string>;
|
|
618
|
+
show(tableName: string): void;
|
|
619
|
+
hide(): void;
|
|
620
|
+
getSettings(tableName: string): Observable<TableSettings>;
|
|
621
|
+
setCurrentTableName(tableName: string): void;
|
|
622
|
+
updateSettings(tableName: string, settings: TableSettings): void;
|
|
623
|
+
private loadSettingsFromStorage;
|
|
624
|
+
private saveSettingsToStorage;
|
|
625
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSettingService, never>;
|
|
626
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableSettingService>;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare class TableSettingComponent implements OnInit {
|
|
630
|
+
private readonly tableSettingService;
|
|
631
|
+
context?: {
|
|
632
|
+
tableName: string;
|
|
633
|
+
overlayRef: OverlayRef;
|
|
634
|
+
};
|
|
635
|
+
get currentSettings$(): rxjs.Observable<TableSettings>;
|
|
636
|
+
ngOnInit(): void;
|
|
637
|
+
close(): void;
|
|
638
|
+
onSettingChange(settings: TableSettings): void;
|
|
639
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSettingComponent, never>;
|
|
640
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSettingComponent, "haloduck-table-setting", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
600
641
|
}
|
|
601
642
|
|
|
602
643
|
declare class ToggleComponent implements ControlValueAccessor, AfterViewInit {
|
|
@@ -713,7 +754,7 @@ declare class GroupedDirective implements OnInit {
|
|
|
713
754
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupedDirective, "[haloduckGrouped]", never, { "haloduckGrouped": { "alias": "haloduckGrouped"; "required": false; }; "layoutClasses": { "alias": "layoutClasses"; "required": false; }; "bgClasses": { "alias": "bgClasses"; "required": false; }; "borderClasses": { "alias": "borderClasses"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelClasses": { "alias": "labelClasses"; "required": false; }; "labelOffset": { "alias": "labelOffset"; "required": false; }; }, {}, never, never, true, never>;
|
|
714
755
|
}
|
|
715
756
|
|
|
716
|
-
declare class AutoLoadDirective implements OnInit, OnDestroy {
|
|
757
|
+
declare class AutoLoadDirective implements OnInit, OnDestroy, OnChanges {
|
|
717
758
|
private readonly elementRef;
|
|
718
759
|
private readonly ngZone;
|
|
719
760
|
private observer?;
|
|
@@ -723,7 +764,9 @@ declare class AutoLoadDirective implements OnInit, OnDestroy {
|
|
|
723
764
|
autoLoadRootMargin: string;
|
|
724
765
|
autoLoadTrigger: EventEmitter<void>;
|
|
725
766
|
ngOnInit(): void;
|
|
767
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
726
768
|
ngOnDestroy(): void;
|
|
769
|
+
private setupObserver;
|
|
727
770
|
private initializeObserver;
|
|
728
771
|
private triggerLoad;
|
|
729
772
|
private temporarilyDisableObserver;
|
|
@@ -806,5 +849,5 @@ declare const provideHaloduckTransloco: () => {
|
|
|
806
849
|
multi: boolean;
|
|
807
850
|
}[];
|
|
808
851
|
|
|
809
|
-
export { AuthenticateComponent, AutoLoadDirective, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
810
|
-
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, GroupedConfig, Location, Notification, NotificationType, Option, TabItem, TableColumn, TableRow };
|
|
852
|
+
export { AuthenticateComponent, AutoLoadDirective, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, GroupedDirective, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TableSettingComponent, TableSettingService, TabsComponent, TagInputComponent, TagViewerComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
853
|
+
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, GroupedConfig, Location, Notification, NotificationType, Option, TabItem, TableColumn, TableRow, TableSettings };
|
package/package.json
CHANGED
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"ui.file.Uploading...": "Uploading...",
|
|
48
48
|
"ui.select.Keyword...": "Keyword...",
|
|
49
49
|
"ui.select.Select...": "Select...",
|
|
50
|
+
"ui.table.Auto load": "Auto load",
|
|
50
51
|
"ui.table.Load More...": "Load More...",
|
|
51
|
-
"ui.table.No data available.": "No data available."
|
|
52
|
+
"ui.table.No data available.": "No data available.",
|
|
53
|
+
"ui.table.Show headers": "Show headers",
|
|
54
|
+
"ui.table.settings": "Table settings"
|
|
52
55
|
}
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"ui.file.Uploading...": "업로드 중...",
|
|
48
48
|
"ui.select.Keyword...": "검색어...",
|
|
49
49
|
"ui.select.Select...": "선택...",
|
|
50
|
+
"ui.table.Auto load": "자동 불러오기",
|
|
50
51
|
"ui.table.Load More...": "더보기...",
|
|
51
|
-
"ui.table.No data available.": "데이터가 없습니다."
|
|
52
|
-
|
|
52
|
+
"ui.table.No data available.": "데이터가 없습니다.",
|
|
53
|
+
"ui.table.Show headers": "헤더 표시",
|
|
54
|
+
"ui.table.settings": "테이블 설정"
|
|
55
|
+
}
|