@kompasid/lit-web-components 0.9.19 → 0.9.21
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/src/components/kompasid-menu-side-bar/KompasMenuSideBar.d.ts +22 -61
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js +261 -475
- package/dist/src/components/kompasid-menu-side-bar/KompasMenuSideBar.js.map +1 -1
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.d.ts +32 -0
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.js +72 -0
- package/dist/src/components/kompasid-menu-side-bar/SidebarDataController.js.map +1 -0
- package/dist/tailwind/tailwind.js +9 -0
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/kompasid-menu-side-bar/KompasMenuSideBar.ts +299 -607
- package/src/components/kompasid-menu-side-bar/SidebarDataController.ts +113 -0
- package/tailwind/tailwind.ts +9 -0
|
@@ -1,69 +1,30 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
external?: boolean;
|
|
4
|
-
gtmClass?: string;
|
|
5
|
-
icon: object | null;
|
|
6
|
-
iconify: string | null;
|
|
7
|
-
isNew: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
url: string;
|
|
10
|
-
}
|
|
11
|
-
interface dataType {
|
|
12
|
-
href: string;
|
|
13
|
-
external?: boolean;
|
|
14
|
-
icon: object | null;
|
|
15
|
-
iconify: string | null;
|
|
16
|
-
name: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
redDot: [
|
|
19
|
-
{
|
|
20
|
-
start: string;
|
|
21
|
-
end: string;
|
|
22
|
-
}
|
|
23
|
-
];
|
|
24
|
-
children: [
|
|
25
|
-
{
|
|
26
|
-
href: string;
|
|
27
|
-
external: boolean;
|
|
28
|
-
icon: string;
|
|
29
|
-
iconify: string | null;
|
|
30
|
-
name: string;
|
|
31
|
-
slug: string;
|
|
32
|
-
redDot: [
|
|
33
|
-
{
|
|
34
|
-
start: string;
|
|
35
|
-
end: string;
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
interface DataSideBarLink {
|
|
42
|
-
feature: dataType[];
|
|
43
|
-
category: dataType[];
|
|
44
|
-
lainnya: dataType[];
|
|
45
|
-
}
|
|
2
|
+
import { DataExternalLink, DataSideBarLink } from './SidebarDataController.js';
|
|
46
3
|
export declare class KompasMenuSideBar extends LitElement {
|
|
47
|
-
hasSlotContent: boolean;
|
|
48
|
-
shadowRoot: any;
|
|
49
|
-
firstUpdated(): void;
|
|
50
4
|
static styles: import("lit").CSSResult[];
|
|
51
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Props
|
|
7
|
+
* property kompasProSubscription untuk menghandle apakah user sudah login atau belum
|
|
8
|
+
*/
|
|
52
9
|
isDark: boolean;
|
|
53
|
-
|
|
54
|
-
|
|
10
|
+
isProductionMode: boolean;
|
|
11
|
+
subscriptionPackage: string;
|
|
12
|
+
dataExternal: DataExternalLink[];
|
|
55
13
|
dataSidebar: DataSideBarLink;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
private
|
|
14
|
+
showNavBar: boolean;
|
|
15
|
+
expandedSlug: string | null;
|
|
16
|
+
hasSlotContent: boolean;
|
|
17
|
+
connectedCallback(): Promise<void>;
|
|
18
|
+
private hasKompasOnePackage;
|
|
19
|
+
private hasKompasProPackage;
|
|
20
|
+
private filterBundles;
|
|
21
|
+
private loadData;
|
|
22
|
+
private toggleNavSidebar;
|
|
23
|
+
private rubricClicked;
|
|
24
|
+
private hasChildren;
|
|
64
25
|
private toggleChildren;
|
|
65
|
-
private
|
|
66
|
-
|
|
26
|
+
private renderItem;
|
|
27
|
+
private renderSection;
|
|
28
|
+
private renderChips;
|
|
67
29
|
render(): import("lit-html").TemplateResult<1>;
|
|
68
30
|
}
|
|
69
|
-
export {};
|