@kusena/wui-single 18.0.1
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/README.md +24 -0
- package/esm2022/kusena-wui-single.mjs +5 -0
- package/esm2022/lib/components/app/app.component.mjs +63 -0
- package/esm2022/lib/components/app-bar/app-bar.component.mjs +16 -0
- package/esm2022/lib/components/avatar/avatar.component.mjs +35 -0
- package/esm2022/lib/components/dialog/dialog.component.mjs +54 -0
- package/esm2022/lib/components/drawer/drawer-item.component.mjs +41 -0
- package/esm2022/lib/components/drawer/drawer.component.mjs +82 -0
- package/esm2022/lib/components/drawer/drawer.directive.mjs +22 -0
- package/esm2022/lib/components/form-field/wui-form-field.component.mjs +63 -0
- package/esm2022/lib/components/form-field/wui-input.directive.mjs +68 -0
- package/esm2022/lib/components/icon/icon.component.mjs +22 -0
- package/esm2022/lib/components/list/list.component.mjs +31 -0
- package/esm2022/lib/components/loading/loading.component.mjs +60 -0
- package/esm2022/lib/components/loading-dialog/loading-dialog.component.mjs +24 -0
- package/esm2022/lib/components/menu/menu.component.mjs +134 -0
- package/esm2022/lib/components/modal/modal-host.component.mjs +21 -0
- package/esm2022/lib/components/modal/modal-overlay.mjs +63 -0
- package/esm2022/lib/components/modal/modal.component.mjs +38 -0
- package/esm2022/lib/components/nav/nav.component.mjs +85 -0
- package/esm2022/lib/components/page/page-host.component.mjs +21 -0
- package/esm2022/lib/components/page/page-overlay.service.mjs +63 -0
- package/esm2022/lib/components/page/page.component.mjs +23 -0
- package/esm2022/lib/components/snackbar/snackbar.component.mjs +65 -0
- package/esm2022/lib/components/toggle/toggle.component.mjs +79 -0
- package/esm2022/lib/directives/menu.directive.mjs +79 -0
- package/esm2022/lib/directives/nav.directive.mjs +78 -0
- package/esm2022/lib/directives/num-input.directive.mjs +105 -0
- package/esm2022/lib/directives/page-header.directive.mjs +48 -0
- package/esm2022/lib/directives/ripple.directive.mjs +87 -0
- package/esm2022/lib/directives/scroll-end.directive.mjs +27 -0
- package/esm2022/lib/directives/sortable.directive.mjs +99 -0
- package/esm2022/lib/index.mjs +39 -0
- package/esm2022/lib/services/message.service.mjs +22 -0
- package/esm2022/lib/services/modal.service.mjs +26 -0
- package/esm2022/lib/services/nav.service.mjs +55 -0
- package/esm2022/lib/services/page.service.mjs +38 -0
- package/esm2022/lib/services/router.service.mjs +42 -0
- package/esm2022/lib/services/wui.service.mjs +43 -0
- package/esm2022/lib/wui-single.component.mjs +19 -0
- package/esm2022/lib/wui.providers.mjs +20 -0
- package/esm2022/public-api.mjs +5 -0
- package/fesm2022/kusena-wui-single.mjs +1841 -0
- package/fesm2022/kusena-wui-single.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/app/app.component.d.ts +16 -0
- package/lib/components/app-bar/app-bar.component.d.ts +5 -0
- package/lib/components/avatar/avatar.component.d.ts +10 -0
- package/lib/components/dialog/dialog.component.d.ts +9 -0
- package/lib/components/drawer/drawer-item.component.d.ts +8 -0
- package/lib/components/drawer/drawer.component.d.ts +21 -0
- package/lib/components/drawer/drawer.directive.d.ts +7 -0
- package/lib/components/form-field/wui-form-field.component.d.ts +13 -0
- package/lib/components/form-field/wui-input.directive.d.ts +17 -0
- package/lib/components/icon/icon.component.d.ts +7 -0
- package/lib/components/list/list.component.d.ts +9 -0
- package/lib/components/loading/loading.component.d.ts +9 -0
- package/lib/components/loading-dialog/loading-dialog.component.d.ts +8 -0
- package/lib/components/menu/menu.component.d.ts +27 -0
- package/lib/components/modal/modal-host.component.d.ts +10 -0
- package/lib/components/modal/modal-overlay.d.ts +25 -0
- package/lib/components/modal/modal.component.d.ts +11 -0
- package/lib/components/nav/nav.component.d.ts +17 -0
- package/lib/components/page/page-host.component.d.ts +10 -0
- package/lib/components/page/page-overlay.service.d.ts +25 -0
- package/lib/components/page/page.component.d.ts +5 -0
- package/lib/components/snackbar/snackbar.component.d.ts +18 -0
- package/lib/components/toggle/toggle.component.d.ts +21 -0
- package/lib/directives/menu.directive.d.ts +17 -0
- package/lib/directives/nav.directive.d.ts +30 -0
- package/lib/directives/num-input.directive.d.ts +27 -0
- package/lib/directives/page-header.directive.d.ts +13 -0
- package/lib/directives/ripple.directive.d.ts +16 -0
- package/lib/directives/scroll-end.directive.d.ts +9 -0
- package/lib/directives/sortable.directive.d.ts +19 -0
- package/lib/index.d.ts +33 -0
- package/lib/services/message.service.d.ts +9 -0
- package/lib/services/modal.service.d.ts +13 -0
- package/lib/services/nav.service.d.ts +14 -0
- package/lib/services/page.service.d.ts +16 -0
- package/lib/services/router.service.d.ts +16 -0
- package/lib/services/wui.service.d.ts +16 -0
- package/lib/wui-single.component.d.ts +5 -0
- package/lib/wui.providers.d.ts +2 -0
- package/package.json +25 -0
- package/public-api.d.ts +1 -0
- package/scss/screen/appbar.scss +71 -0
- package/scss/screen/avatar.scss +17 -0
- package/scss/screen/backdrop.scss +15 -0
- package/scss/screen/box.scss +67 -0
- package/scss/screen/breadcrumb.scss +34 -0
- package/scss/screen/buttons.scss +177 -0
- package/scss/screen/core.scss +103 -0
- package/scss/screen/drawer.scss +273 -0
- package/scss/screen/formfields.scss +288 -0
- package/scss/screen/icon.scss +33 -0
- package/scss/screen/list.scss +90 -0
- package/scss/screen/loading.scss +169 -0
- package/scss/screen/menu.scss +120 -0
- package/scss/screen/modal.scss +238 -0
- package/scss/screen/normalize.scss +340 -0
- package/scss/screen/page.scss +115 -0
- package/scss/screen/pagination.scss +46 -0
- package/scss/screen/ripple.scss +18 -0
- package/scss/screen/scrollbar.scss +108 -0
- package/scss/screen/searchbox.scss +40 -0
- package/scss/screen/selection.scss +190 -0
- package/scss/screen/snackbar.scss +25 -0
- package/scss/screen/sortable.scss +10 -0
- package/scss/screen/table.scss +199 -0
- package/scss/screen/tabs.scss +71 -0
- package/scss/screen/toogle.scss +79 -0
- package/scss/screen/tooltip.scss +16 -0
- package/scss/screen/utils.scss +140 -0
- package/scss/variables/colors.scss +180 -0
- package/scss/variables/defaults.scss +0 -0
- package/scss/wui.scss +2 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Directionality } from "@angular/cdk/bidi";
|
|
2
|
+
import { Overlay, OverlayContainer, OverlayKeyboardDispatcher, OverlayOutsideClickDispatcher, OverlayPositionBuilder, ScrollStrategyOptions } from "@angular/cdk/overlay";
|
|
3
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector, NgZone } from "@angular/core";
|
|
4
|
+
import { Location as Location_2 } from '@angular/common';
|
|
5
|
+
import { Dialog, DialogConfig } from "@angular/cdk/dialog";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class WuiPageOverlayContainer extends OverlayContainer {
|
|
8
|
+
setContainerElement(containerElement: HTMLElement): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WuiPageOverlayContainer, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WuiPageOverlayContainer>;
|
|
11
|
+
}
|
|
12
|
+
export declare class WuiPageOverlay extends Overlay {
|
|
13
|
+
private _pageOverlayContainer;
|
|
14
|
+
constructor(_scrollStrategies: ScrollStrategyOptions, _overlayContainer: WuiPageOverlayContainer, _componentFactoryResolver: ComponentFactoryResolver, _positionBuilder: OverlayPositionBuilder, _keyboardDispatcher: OverlayKeyboardDispatcher, _appRef: ApplicationRef, _injector: Injector, _ngZone: NgZone, _document: any, _directionality: Directionality, _location: Location_2, _outsideClickDispatcher: OverlayOutsideClickDispatcher);
|
|
15
|
+
setContainerElement(containerElement: HTMLElement): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WuiPageOverlay, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WuiPageOverlay>;
|
|
18
|
+
}
|
|
19
|
+
export declare class WuiPage extends Dialog {
|
|
20
|
+
private _customOverlay;
|
|
21
|
+
constructor(_overlay: WuiPageOverlay, _injector: Injector, _defaultOptions: DialogConfig, _parentDialog: Dialog, _overlayContainer: WuiPageOverlayContainer, _scrollStrategy: any);
|
|
22
|
+
setContainerElement(containerElement: HTMLElement): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WuiPage, [null, null, { optional: true; }, null, null, { optional: true; }]>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WuiPage>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PageComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "wui-page", never, {}, {}, never, ["wui-app-bar", ".wui-page-inner", ".wui-page-footer"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MessageService } from '../../services/message.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SnackbarComponent implements OnInit, OnDestroy {
|
|
5
|
+
private messageService;
|
|
6
|
+
actionItems: any[];
|
|
7
|
+
label: string;
|
|
8
|
+
show: boolean;
|
|
9
|
+
private autocloseTimeoutId;
|
|
10
|
+
private readonly unsub;
|
|
11
|
+
constructor(messageService: MessageService);
|
|
12
|
+
open(label: string, autoclose?: boolean, actionItems?: any[]): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackbarComponent, "wui-snackbar", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToggleComponent implements ControlValueAccessor {
|
|
4
|
+
tabindex: import("@angular/core").InputSignal<number>;
|
|
5
|
+
change: import("@angular/core").OutputEmitterRef<boolean>;
|
|
6
|
+
checked: import("@angular/core").ModelSignal<boolean>;
|
|
7
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
+
private isTouched;
|
|
9
|
+
private onChange;
|
|
10
|
+
private onTouched;
|
|
11
|
+
constructor();
|
|
12
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
13
|
+
toggle(): void;
|
|
14
|
+
writeValue(value: boolean): void;
|
|
15
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
16
|
+
registerOnTouched(fn: () => void): void;
|
|
17
|
+
setDisabledState(isDisabled: boolean): void;
|
|
18
|
+
private markAsTouched;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "wui-toggle", never, { "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; }, { "change": "change"; "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CdkMenu, CdkMenuItem, CdkMenuTrigger } from "@angular/cdk/menu";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ContextMenuDirective extends CdkMenu {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[wuiContextMenu]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
7
|
+
export declare class ContextMenuItemDirective extends CdkMenuItem {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuItemDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuItemDirective, "[wuiContextMenuItem]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ContextMenuTriggerDirective extends CdkMenuTrigger {
|
|
12
|
+
menuPosBehavior: string;
|
|
13
|
+
handleDocumentEvent(event: Event): void;
|
|
14
|
+
open(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTriggerDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTriggerDirective, "[wuiContextMenuTrigger]", ["wuiContextMenuTrigger"], { "menuTemplateRef": { "alias": "wuiContextMenuTrigger"; "required": false; }; "menuPosition": { "alias": "wuiContextMenuPosition"; "required": false; }; "menuData": { "alias": "wuiContextMenuTriggerData"; "required": false; }; "menuPosBehavior": { "alias": "wuiContextMenuPosBehavior"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NavService } from '../services/nav.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavRootDirective {
|
|
4
|
+
private navService;
|
|
5
|
+
name: import("@angular/core").InputSignal<string>;
|
|
6
|
+
params: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
7
|
+
navigated: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
navigateToRoot(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavRootDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavRootDirective, "[wuiNavRoot]", never, { "name": { "alias": "wuiNavRoot"; "required": true; "isSignal": true; }; "params": { "alias": "wuiNavParams"; "required": false; "isSignal": true; }; }, { "navigated": "navigated"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class NavPushDirective {
|
|
13
|
+
private navService;
|
|
14
|
+
name: import("@angular/core").InputSignal<string>;
|
|
15
|
+
params: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
16
|
+
navigated: import("@angular/core").OutputEmitterRef<void>;
|
|
17
|
+
constructor(navService: NavService);
|
|
18
|
+
navigatePush(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavPushDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavPushDirective, "[wuiNavPush]", never, { "name": { "alias": "wuiNavPush"; "required": true; "isSignal": true; }; "params": { "alias": "wuiNavParams"; "required": false; "isSignal": true; }; }, { "navigated": "navigated"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
export declare class NavPopDirective {
|
|
23
|
+
private navService;
|
|
24
|
+
params: import("@angular/core").InputSignal<unknown>;
|
|
25
|
+
navigated: import("@angular/core").OutputEmitterRef<void>;
|
|
26
|
+
constructor(navService: NavService);
|
|
27
|
+
navigatePop(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavPopDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavPopDirective, "[wuiNavPop]", never, { "params": { "alias": "wuiNavParams"; "required": false; "isSignal": true; }; }, { "navigated": "navigated"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NumInputDirective implements ControlValueAccessor {
|
|
4
|
+
private decimalPipe;
|
|
5
|
+
private elementRef;
|
|
6
|
+
format: import("@angular/core").InputSignal<string>;
|
|
7
|
+
value: import("@angular/core").ModelSignal<string | null>;
|
|
8
|
+
isNegative: import("@angular/core").Signal<boolean>;
|
|
9
|
+
isDecimal: import("@angular/core").Signal<boolean>;
|
|
10
|
+
numberPart: import("@angular/core").Signal<number | null>;
|
|
11
|
+
decimalPart: import("@angular/core").Signal<string | null>;
|
|
12
|
+
numericValue: import("@angular/core").Signal<number>;
|
|
13
|
+
formattedValue: import("@angular/core").Signal<string>;
|
|
14
|
+
private allowNumbers;
|
|
15
|
+
private allowFunctional;
|
|
16
|
+
private allowDecimals;
|
|
17
|
+
private allowNegative;
|
|
18
|
+
constructor();
|
|
19
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
20
|
+
handleFocusOut(): void;
|
|
21
|
+
private parseNumber;
|
|
22
|
+
writeValue(obj: number | null): void;
|
|
23
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
24
|
+
registerOnTouched(fn: () => void): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumInputDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumInputDirective, "[wuiNumInput]", never, { "format": { "alias": "format"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PageHeaderDirective {
|
|
4
|
+
private el;
|
|
5
|
+
contentEl: any;
|
|
6
|
+
wuiTitle: any;
|
|
7
|
+
constructor(el: ElementRef);
|
|
8
|
+
getClosest(elem: any, selector: any): any;
|
|
9
|
+
onScroll(e: any): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageHeaderDirective, "[wuiPageHeader]", never, { "wuiTitle": { "alias": "wuiTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RippleDirective implements OnInit {
|
|
4
|
+
private el;
|
|
5
|
+
rippleEl: any;
|
|
6
|
+
interval: any;
|
|
7
|
+
theme: string;
|
|
8
|
+
constructor(el: ElementRef);
|
|
9
|
+
onMouseDown(e: any): void;
|
|
10
|
+
onTouchStart(e: any): void;
|
|
11
|
+
start(x: number, y: number): void;
|
|
12
|
+
animate(size: any, duration: any): void;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RippleDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RippleDirective, "[wuiRipple]", never, { "theme": { "alias": "rippleTheme"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScrollEndDirective {
|
|
4
|
+
scrollEnd: EventEmitter<any>;
|
|
5
|
+
onScroll(e: any): void;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollEndDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollEndDirective, "[wuiScrollEnd]", never, {}, { "scrollEnd": "scrollEnd"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SortableDirective implements AfterViewInit {
|
|
4
|
+
private el;
|
|
5
|
+
change: EventEmitter<any>;
|
|
6
|
+
xFactor: number;
|
|
7
|
+
yFactor: number;
|
|
8
|
+
child: any;
|
|
9
|
+
childOriginRect: any;
|
|
10
|
+
placeholder: any;
|
|
11
|
+
mouseMove(e: any): void;
|
|
12
|
+
mouseUp(e: any): void;
|
|
13
|
+
getElementBefore(container: any, y: any): any;
|
|
14
|
+
constructor(el: ElementRef);
|
|
15
|
+
init(): void;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortableDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SortableDirective, "[wuiSortable]", never, {}, { "change": "wuiSortableChange"; }, never, never, true, never>;
|
|
19
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export * from './wui-single.component';
|
|
2
|
+
export * from './wui.providers';
|
|
3
|
+
export * from './services/message.service';
|
|
4
|
+
export * from './services/wui.service';
|
|
5
|
+
export * from './services/nav.service';
|
|
6
|
+
export * from './services/page.service';
|
|
7
|
+
export * from './services/modal.service';
|
|
8
|
+
export * from './services/router.service';
|
|
9
|
+
export * from './directives/ripple.directive';
|
|
10
|
+
export * from './directives/nav.directive';
|
|
11
|
+
export * from './directives/scroll-end.directive';
|
|
12
|
+
export * from './directives/page-header.directive';
|
|
13
|
+
export * from './directives/num-input.directive';
|
|
14
|
+
export * from './directives/sortable.directive';
|
|
15
|
+
export * from './directives/menu.directive';
|
|
16
|
+
export * from './components/modal/modal.component';
|
|
17
|
+
export * from './components/nav/nav.component';
|
|
18
|
+
export * from './components/loading/loading.component';
|
|
19
|
+
export * from './components/app/app.component';
|
|
20
|
+
export * from './components/form-field/wui-form-field.component';
|
|
21
|
+
export * from './components/form-field/wui-input.directive';
|
|
22
|
+
export * from './components/snackbar/snackbar.component';
|
|
23
|
+
export * from './components/page/page.component';
|
|
24
|
+
export * from './components/modal/modal.component';
|
|
25
|
+
export * from './components/drawer/drawer.component';
|
|
26
|
+
export * from './components/drawer/drawer-item.component';
|
|
27
|
+
export * from './components/drawer/drawer.directive';
|
|
28
|
+
export * from './components/app-bar/app-bar.component';
|
|
29
|
+
export * from './components/list/list.component';
|
|
30
|
+
export * from './components/icon/icon.component';
|
|
31
|
+
export * from './components/menu/menu.component';
|
|
32
|
+
export * from './components/dialog/dialog.component';
|
|
33
|
+
export * from './components/toggle/toggle.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MessageService {
|
|
4
|
+
private handler;
|
|
5
|
+
set(name: string, payload: any): void;
|
|
6
|
+
get(name: string): Observable<any>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
+
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
4
|
+
import { BasePortalOutlet } from '@angular/cdk/portal';
|
|
5
|
+
import { WuiModal } from '../components/modal/modal-overlay';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ModalService {
|
|
8
|
+
wuiModal: WuiModal;
|
|
9
|
+
open<T, D = any, R = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: DialogConfig<D, DialogRef<R, T>, BasePortalOutlet>): DialogRef<R, T>;
|
|
10
|
+
closeAll(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavService {
|
|
4
|
+
lastNavId: number;
|
|
5
|
+
components: Array<any>;
|
|
6
|
+
events: BehaviorSubject<any>;
|
|
7
|
+
constructor();
|
|
8
|
+
willPop(navId: any): boolean;
|
|
9
|
+
setRoot(name: string, params?: any, options?: any): number;
|
|
10
|
+
push(name: string, params?: any, options?: any): number;
|
|
11
|
+
pop(params?: any, options?: any): number;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
3
|
+
import { ComponentType, BasePortalOutlet } from '@angular/cdk/portal';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface PageConfig<D = any, R = any> extends DialogConfig<D, DialogRef<R>, BasePortalOutlet> {
|
|
6
|
+
}
|
|
7
|
+
export declare class PageService {
|
|
8
|
+
private wuiPage;
|
|
9
|
+
isCloseAll: boolean;
|
|
10
|
+
constructor();
|
|
11
|
+
open<T, D = any, R = any>(component: ComponentType<T> | TemplateRef<T>, config?: PageConfig<D, R>): DialogRef<R, T>;
|
|
12
|
+
replace<T, D = any, R = any>(component: ComponentType<T> | TemplateRef<T>, config?: PageConfig<D, R>): DialogRef<R, T>;
|
|
13
|
+
closeAll(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PageService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
+
import { NavService } from './nav.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RouterService {
|
|
5
|
+
private navService;
|
|
6
|
+
private $params;
|
|
7
|
+
eventTrigger: string;
|
|
8
|
+
events: BehaviorSubject<any>;
|
|
9
|
+
navigateUrl: Subject<any>;
|
|
10
|
+
constructor(navService: NavService);
|
|
11
|
+
get routeParams(): import("rxjs").Observable<any>;
|
|
12
|
+
setParams(navId: any, params?: {}): void;
|
|
13
|
+
navigate(url: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MessageService } from './message.service';
|
|
2
|
+
import { Dialog } from '@angular/cdk/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WuiService {
|
|
5
|
+
messageService: MessageService;
|
|
6
|
+
rootDialog: Dialog;
|
|
7
|
+
loadingRef: any;
|
|
8
|
+
dialog(params: any): Promise<unknown>;
|
|
9
|
+
snackbar(params: any): void;
|
|
10
|
+
toggleDrawer(): void;
|
|
11
|
+
openLoading(): void;
|
|
12
|
+
closeLoading(): void;
|
|
13
|
+
actionSheet(params: any): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WuiService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WuiService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WuiSingleComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WuiSingleComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WuiSingleComponent, "lib-wui-single", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kusena/wui-single",
|
|
3
|
+
"version": "18.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/kusena-wui-single.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/kusena-wui-single.mjs",
|
|
21
|
+
"esm": "./esm2022/kusena-wui-single.mjs",
|
|
22
|
+
"default": "./fesm2022/kusena-wui-single.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@import '../variables/colors.scss';
|
|
2
|
+
|
|
3
|
+
wui-app-bar {
|
|
4
|
+
position: sticky;
|
|
5
|
+
top: 0; left: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 4rem;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
flex-grow: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: white;
|
|
13
|
+
padding-left: .25rem;
|
|
14
|
+
padding-right: .25rem;
|
|
15
|
+
z-index: 99;
|
|
16
|
+
|
|
17
|
+
div.wui-app-bar {
|
|
18
|
+
&-leading {
|
|
19
|
+
flex: 0 0 auto;
|
|
20
|
+
padding-right: .5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-title {
|
|
24
|
+
padding-left: .75rem;
|
|
25
|
+
padding-right: .75rem;
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
font-size: 1.25rem;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
|
|
30
|
+
input {
|
|
31
|
+
width: 100%;
|
|
32
|
+
border: none;
|
|
33
|
+
display: block;
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-trailing {
|
|
39
|
+
flex: 0 0 auto;
|
|
40
|
+
padding-left: .5rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.dark {
|
|
45
|
+
background-color: var(--theme-dark-bg, $theme-dark-bg);
|
|
46
|
+
color: var(--theme-dark-text, $theme-dark-text);
|
|
47
|
+
|
|
48
|
+
.button {
|
|
49
|
+
color: var(--theme-dark-button-text, $theme-dark-button-text);
|
|
50
|
+
background-color: var(--theme-dark-button-bg, $theme-dark-button-bg);
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: var(--theme-dark-button-hover-text, $theme-dark-button-hover-text);
|
|
54
|
+
background-color: var(--theme-dark-button-hover-bg, $theme-dark-button-hover-bg);
|
|
55
|
+
border-color: transparent;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.primary {
|
|
62
|
+
background-color: var(--theme-primary, $theme-primary);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media screen and (min-width: 768px) {
|
|
67
|
+
wui-app-bar {
|
|
68
|
+
padding-left: .75rem;
|
|
69
|
+
padding-right: .75rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
wui-avatar {
|
|
2
|
+
min-width: 2rem;
|
|
3
|
+
min-height: 2rem;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
background-color: rgba(#000, .08);
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
display: block;
|
|
9
|
+
|
|
10
|
+
img {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@import '../variables/colors.scss';
|
|
2
|
+
|
|
3
|
+
.wui-box {
|
|
4
|
+
padding: 1.5rem;
|
|
5
|
+
box-sizing:border-box;
|
|
6
|
+
background-color:white;
|
|
7
|
+
display:block;
|
|
8
|
+
border-radius:.5rem;
|
|
9
|
+
transition:box-shadow ease .25s;
|
|
10
|
+
position:relative;
|
|
11
|
+
z-index:0;
|
|
12
|
+
margin-bottom:1.5rem;
|
|
13
|
+
box-shadow: 0 0 .25rem rgba(0,0,0,.35);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.login-box {
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 5rem 1.5rem;
|
|
19
|
+
max-width: 350px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
display: block;
|
|
22
|
+
margin: auto;
|
|
23
|
+
|
|
24
|
+
.logo {
|
|
25
|
+
width: 96px;
|
|
26
|
+
height: 96px;
|
|
27
|
+
border-radius: 1rem;
|
|
28
|
+
display: block;
|
|
29
|
+
margin: auto;
|
|
30
|
+
margin-bottom: 2rem;
|
|
31
|
+
|
|
32
|
+
img {
|
|
33
|
+
width: 96px;
|
|
34
|
+
height: 96px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h1 {
|
|
39
|
+
font-size: 2rem;
|
|
40
|
+
font-family: "Product Sans", "Roboto", "Segoe UI", sans-serif;
|
|
41
|
+
padding: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
margin-bottom: .5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
div.desc {
|
|
47
|
+
margin-bottom: 2rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.btn-google {
|
|
51
|
+
border: none;
|
|
52
|
+
background-color: white;
|
|
53
|
+
width: 4rem;
|
|
54
|
+
height: 4rem;
|
|
55
|
+
border-radius: 2rem;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
margin: auto;
|
|
60
|
+
box-shadow: 0 0 1rem rgba(0,0,0,0.25);
|
|
61
|
+
|
|
62
|
+
svg {
|
|
63
|
+
width: 2.5rem;
|
|
64
|
+
height: 2.5rem;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
ul.wui-breadcrumb {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
list-style: none;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
> li {
|
|
9
|
+
font-size: 0.875rem;
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
align-items: center;
|
|
15
|
+
color: rgba(0,0,0,.87);
|
|
16
|
+
|
|
17
|
+
&:not(:last-child) {
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
&:after {
|
|
21
|
+
content: "\F035F";
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
font-family: 'Material Design Icons';
|
|
27
|
+
font-size: 1.5rem;
|
|
28
|
+
line-height: 1.5rem;
|
|
29
|
+
right: .25rem;
|
|
30
|
+
top: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|