@kumori/aurora-wui-components 0.0.48 → 0.0.49
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/dist/components/axebow-footer/axebow-footer.d.ts +21 -0
- package/dist/components/axebow-footer/axebow-footer.d.ts.map +1 -0
- package/dist/components/axebow-header/axebow-header.d.ts +70 -0
- package/dist/components/axebow-header/axebow-header.d.ts.map +1 -0
- package/dist/components/axebow-sidebar/axebow-sidebar.d.ts +36 -0
- package/dist/components/axebow-sidebar/axebow-sidebar.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +521 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface FooterLink {
|
|
3
|
+
label: string;
|
|
4
|
+
url: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Purely presentational site footer. Receives already-filtered, already
|
|
9
|
+
* translated links; owns only the footer-height broadcast used by
|
|
10
|
+
* axebow-sidebar to reserve bottom padding.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AxebowFooter extends LitElement {
|
|
13
|
+
static styles: import('lit').CSSResult[];
|
|
14
|
+
links: FooterLink[];
|
|
15
|
+
private resizeObserver?;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
private emitFooterHeight;
|
|
19
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=axebow-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axebow-footer.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-footer/axebow-footer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAEvC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,4BAWX;IAEyB,KAAK,EAAE,UAAU,EAAE,CAAM;IAEpD,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC,iBAAiB;IAWjB,oBAAoB;IAOpB,OAAO,CAAC,gBAAgB,CAiBtB;IAEF,MAAM;CAmBP"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface QuickAction {
|
|
3
|
+
icon: string;
|
|
4
|
+
label: string;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface ProfileMenuItem {
|
|
9
|
+
name: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface NotificationAction {
|
|
13
|
+
label: string;
|
|
14
|
+
color: string;
|
|
15
|
+
action: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface FormattedNotificationVM {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
color: string;
|
|
23
|
+
status: 'read' | 'unread';
|
|
24
|
+
date: string;
|
|
25
|
+
callToAction: boolean;
|
|
26
|
+
actions?: NotificationAction[];
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Purely presentational app header. Receives fully-resolved data and
|
|
31
|
+
* callback props; owns only quick-actions dropdown open state and the
|
|
32
|
+
* unread-only notifications filter toggle.
|
|
33
|
+
*/
|
|
34
|
+
export declare class AxebowHeader extends LitElement {
|
|
35
|
+
minimal: boolean;
|
|
36
|
+
logoUrl: string;
|
|
37
|
+
logoAlt: string;
|
|
38
|
+
onLogoClick: () => void;
|
|
39
|
+
userName: string;
|
|
40
|
+
quickActionsLabel: string;
|
|
41
|
+
quickActions: QuickAction[];
|
|
42
|
+
profileMenuItems: ProfileMenuItem[];
|
|
43
|
+
logoutLabel: string;
|
|
44
|
+
onLogout: () => void;
|
|
45
|
+
notificationsLabel: string;
|
|
46
|
+
notifications: FormattedNotificationVM[];
|
|
47
|
+
actionNeededNotifications: FormattedNotificationVM[];
|
|
48
|
+
myNotificationsTabLabel: string;
|
|
49
|
+
actionNeededTabLabel: string;
|
|
50
|
+
noNotificationsLabel: string;
|
|
51
|
+
noUnreadNotificationsLabel: string;
|
|
52
|
+
noActionNotificationsLabel: string;
|
|
53
|
+
showUnreadOnlyLabel: string;
|
|
54
|
+
onLabel: string;
|
|
55
|
+
offLabel: string;
|
|
56
|
+
markAllAsReadLabel: string;
|
|
57
|
+
onMarkAllAsRead: () => void;
|
|
58
|
+
private quickActionsOpen;
|
|
59
|
+
private showUnreadOnly;
|
|
60
|
+
static styles: import('lit').CSSResult[];
|
|
61
|
+
connectedCallback(): void;
|
|
62
|
+
disconnectedCallback(): void;
|
|
63
|
+
private handleClickOutside;
|
|
64
|
+
private toggleQuickActions;
|
|
65
|
+
private handleQuickActionClick;
|
|
66
|
+
private handleShowUnreadOnlyChange;
|
|
67
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
68
|
+
private renderNotificationCard;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=axebow-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axebow-header.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-header/axebow-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,+DAA+D,CAAC;AACvE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,2DAA2D,CAAC;AACnE,OAAO,iEAAiE,CAAC;AACzE,OAAO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oBAAoB,SAAM;IAC1B,0BAA0B,SAAM;IAChC,0BAA0B,SAAM;IAChC,mBAAmB,SAAM;IACzB,OAAO,SAAM;IACb,QAAQ,SAAM;IACd,kBAAkB,SAAM;IACpB,eAAe,EAAE,MAAM,IAAI,CAAY;IAE9D,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,cAAc,CAAS;IAExC,MAAM,CAAC,MAAM,4BAgBX;IAEF,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,kBAAkB,CASxB;IAEF,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,0BAA0B;IAIlC,MAAM;IA0MN,OAAO,CAAC,sBAAsB;CA0C/B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
isRoot?: boolean;
|
|
8
|
+
openInNewTab?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NavDivider {
|
|
11
|
+
divider: true;
|
|
12
|
+
}
|
|
13
|
+
export type SidebarEntry = NavItem | NavDivider;
|
|
14
|
+
/**
|
|
15
|
+
* Purely presentational app sidebar. Receives fully-resolved nav entries,
|
|
16
|
+
* the currently-selected item key, and the reserved bottom padding (driven
|
|
17
|
+
* by the app's own footer-height tracking); owns only hover-tooltip UI
|
|
18
|
+
* state.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AxebowSidebar extends LitElement {
|
|
21
|
+
static styles: import('lit').CSSResult[];
|
|
22
|
+
items: SidebarEntry[];
|
|
23
|
+
bottomItems: NavItem[];
|
|
24
|
+
selectedKey: string | null;
|
|
25
|
+
paddingBottom: number;
|
|
26
|
+
private hoveredItem;
|
|
27
|
+
private tooltipTop;
|
|
28
|
+
private tooltipLeft;
|
|
29
|
+
private handleMouseEnter;
|
|
30
|
+
private handleMouseLeave;
|
|
31
|
+
private _isSelected;
|
|
32
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
33
|
+
private _renderNavItem;
|
|
34
|
+
private _renderBottomItem;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=axebow-sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axebow-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-sidebar/axebow-sidebar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AACvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,6DAA6D,CAAC;AAErE,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhD;;;;;GAKG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAQX;IAEyB,KAAK,EAAE,YAAY,EAAE,CAAM;IAC3B,WAAW,EAAE,OAAO,EAAE,CAAM;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,aAAa,SAAM;IAEtC,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,WAAW,CAAK;IAEjC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,WAAW;IAInB,MAAM;IAoCN,OAAO,CAAC,cAAc;IA2BtB,OAAO,CAAC,iBAAiB;CAwB1B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './styles/axebow-theme.js';
|
|
2
2
|
export * from './components/axebow-icon/axebow-icon.js';
|
|
3
3
|
export * from './components/axebow-filter-bar/axebow-filter-bar.js';
|
|
4
|
+
export * from './components/axebow-header/axebow-header.js';
|
|
5
|
+
export * from './components/axebow-sidebar/axebow-sidebar.js';
|
|
6
|
+
export * from './components/axebow-footer/axebow-footer.js';
|
|
4
7
|
export * from './components/cards/card.models.js';
|
|
5
8
|
export * from './components/axebow-more-actions/axebow-more-actions.js';
|
|
6
9
|
export * from './components/cards/axebow-base-card.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mCAAmC,CAAC;AAClD,cAAc,yDAAyD,CAAC;AACxE,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oDAAoD,CAAC;AACnE,cAAc,0DAA0D,CAAC;AACzE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,sDAAsD,CAAC;AACrE,cAAc,0DAA0D,CAAC;AACzE,cAAc,uDAAuD,CAAC;AACtE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,c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