@kris701/ez-ui 1.1.0 → 1.1.2
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/kris701-ez-ui.mjs +385 -10
- package/fesm2022/kris701-ez-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/kris701-ez-ui.d.ts +48 -10
package/package.json
CHANGED
package/types/kris701-ez-ui.d.ts
CHANGED
|
@@ -10,16 +10,17 @@ declare class EzUIDateInput implements OnChanges {
|
|
|
10
10
|
label: string;
|
|
11
11
|
size: "l" | "m" | "s";
|
|
12
12
|
disabled: boolean;
|
|
13
|
-
min: Date | null;
|
|
14
|
-
max: Date | null;
|
|
13
|
+
min: Date | string | null;
|
|
14
|
+
max: Date | string | null;
|
|
15
15
|
TuiDay: typeof TuiDay;
|
|
16
|
-
value: Date | null;
|
|
17
|
-
valueChange: EventEmitter<Date | null>;
|
|
16
|
+
value: Date | string | null;
|
|
17
|
+
valueChange: EventEmitter<string | Date | null>;
|
|
18
18
|
internalValue: i0.WritableSignal<TuiDay | null>;
|
|
19
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
20
20
|
updateValue(): void;
|
|
21
21
|
toTuiDate(date: Date | null): TuiDay | null;
|
|
22
22
|
fromTuiDate(date: TuiDay | null): Date | null;
|
|
23
|
+
toDateOrNull(value: Date | string | null): Date | null;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<EzUIDateInput, never>;
|
|
24
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<EzUIDateInput, "ezui-dateinput", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
25
26
|
}
|
|
@@ -29,13 +30,13 @@ declare class EzUIDateTimeInput implements OnChanges {
|
|
|
29
30
|
label: string;
|
|
30
31
|
size: "l" | "m" | "s";
|
|
31
32
|
disabled: boolean;
|
|
32
|
-
min: Date | null;
|
|
33
|
-
max: Date | null;
|
|
33
|
+
min: Date | string | null;
|
|
34
|
+
max: Date | string | null;
|
|
34
35
|
TuiDay: typeof TuiDay;
|
|
35
36
|
TuiTime: typeof TuiTime;
|
|
36
37
|
showDate: i0.WritableSignal<boolean>;
|
|
37
|
-
value: Date | null;
|
|
38
|
-
valueChange: EventEmitter<Date | null>;
|
|
38
|
+
value: Date | string | null;
|
|
39
|
+
valueChange: EventEmitter<string | Date | null>;
|
|
39
40
|
internalValue: i0.WritableSignal<[TuiDay, TuiTime] | null>;
|
|
40
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
41
42
|
updateValue(): void;
|
|
@@ -43,6 +44,7 @@ declare class EzUIDateTimeInput implements OnChanges {
|
|
|
43
44
|
fromTuiDateTime(date: [TuiDay, TuiTime] | null): Date | null;
|
|
44
45
|
setHours(value: number): void;
|
|
45
46
|
setMinutes(value: number): void;
|
|
47
|
+
toDateOrNull(value: Date | string | null): Date | null;
|
|
46
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<EzUIDateTimeInput, never>;
|
|
47
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<EzUIDateTimeInput, "ezui-datetimeinput", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
48
50
|
}
|
|
@@ -397,5 +399,41 @@ interface IIdentifiable {
|
|
|
397
399
|
id: string;
|
|
398
400
|
}
|
|
399
401
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
+
interface MenuItem {
|
|
403
|
+
label: string;
|
|
404
|
+
icon: string | null;
|
|
405
|
+
routerLink: string | null;
|
|
406
|
+
queryParams: {
|
|
407
|
+
[id: string]: string;
|
|
408
|
+
};
|
|
409
|
+
items: MenuItem[] | null;
|
|
410
|
+
command?(): Promise<any>;
|
|
411
|
+
visible: boolean;
|
|
412
|
+
expanded: boolean;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare class EzUILayout {
|
|
416
|
+
sidebarItems: i0.WritableSignal<MenuItem[]>;
|
|
417
|
+
sidebarFooterItems: i0.WritableSignal<MenuItem[]>;
|
|
418
|
+
topbarright: TemplateRef<any> | undefined;
|
|
419
|
+
topbarlogo: TemplateRef<any> | undefined;
|
|
420
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EzUILayout, never>;
|
|
421
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EzUILayout, "ezui-layout", never, { "sidebarItems": { "alias": "sidebarItems"; "required": false; }; "sidebarFooterItems": { "alias": "sidebarFooterItems"; "required": false; }; }, {}, ["topbarright", "topbarlogo"], never, true, never>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare class EzUILayoutService {
|
|
425
|
+
protected readonly darkMode: i0.WritableSignal<boolean> & {
|
|
426
|
+
reset(): void;
|
|
427
|
+
};
|
|
428
|
+
isDarkMode: i0.WritableSignal<boolean>;
|
|
429
|
+
isDesktop: i0.WritableSignal<boolean>;
|
|
430
|
+
isMenuExpanded: i0.WritableSignal<boolean>;
|
|
431
|
+
constructor();
|
|
432
|
+
ToggleDarkMode(): void;
|
|
433
|
+
ToggleMenu(): void;
|
|
434
|
+
SetMenu(to: boolean): void;
|
|
435
|
+
saveState(): void;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export { BaseCRUDInterface, BaseListInterface, EzUIDateInput, EzUIDateTimeInput, EzUIFileInput, EzUIFilterHelpers, EzUIIconSelector, EzUILayout, EzUILayoutService, EzUIMarkdownEditor, EzUIMenuBar, EzUIMenuBarSubDataList, EzUIMultiSelect, EzUINumberInput, EzUIPasswordInput, EzUITTableSortableColumn, EzUITable, EzUITableDateFilter, EzUITableFilterService, EzUITableSelectFilter, EzUITableTextFilter, EzUITextInput, compressImage };
|
|
439
|
+
export type { EzUITableFilter, EzUITableFilterMethod, EzUITableSort, EzUITableSortFilterPreset, EzUITableSortFilterPresetSave, EzUITableSortMethod, IIdentifiable, MenuBarItem, MenuItem };
|