@base-framework/ui 0.0.0

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.
Files changed (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -0
  3. package/dist/aside-template-D0KANPjh.js +35 -0
  4. package/dist/atoms.es.js +39 -0
  5. package/dist/bside-template-CDbINL4X.js +15 -0
  6. package/dist/calendar-DR_svCOR.js +424 -0
  7. package/dist/confirmation-D1Y_SgzE.js +1526 -0
  8. package/dist/icon-B9QUT2NY.js +47 -0
  9. package/dist/icons.es.js +658 -0
  10. package/dist/index.es.js +154 -0
  11. package/dist/inputs-BF3C3KfF.js +204 -0
  12. package/dist/mobile-nav-wrapper-7Qul1-mt.js +578 -0
  13. package/dist/molecules.es.js +45 -0
  14. package/dist/organisms.es.js +55 -0
  15. package/dist/pages.es.js +12 -0
  16. package/dist/sidebar-menu-page-M8hr9onX.js +224 -0
  17. package/dist/style.css +1 -0
  18. package/dist/tab-C_dZb2qH.js +1425 -0
  19. package/dist/templates.es.js +10 -0
  20. package/dist/tooltip-DCszmsxe.js +324 -0
  21. package/dist/types/components/atoms/atoms.d.ts +15 -0
  22. package/dist/types/components/atoms/badges/badge.d.ts +8 -0
  23. package/dist/types/components/atoms/buttons/buttons.d.ts +17 -0
  24. package/dist/types/components/atoms/cards/card.d.ts +8 -0
  25. package/dist/types/components/atoms/form/fieldset.d.ts +9 -0
  26. package/dist/types/components/atoms/form/inputs/checkbox.d.ts +10 -0
  27. package/dist/types/components/atoms/form/inputs/input-classes.d.ts +30 -0
  28. package/dist/types/components/atoms/form/inputs/inputs.d.ts +113 -0
  29. package/dist/types/components/atoms/form/inputs/range-slider.d.ts +10 -0
  30. package/dist/types/components/atoms/form/legend.d.ts +9 -0
  31. package/dist/types/components/atoms/form/select.d.ts +8 -0
  32. package/dist/types/components/atoms/icon.d.ts +8 -0
  33. package/dist/types/components/atoms/progress/circle-graph.d.ts +7 -0
  34. package/dist/types/components/atoms/progress/progress-bar.d.ts +9 -0
  35. package/dist/types/components/atoms/progress/semi-circle-graph.d.ts +7 -0
  36. package/dist/types/components/atoms/skeleton.d.ts +2 -0
  37. package/dist/types/components/atoms/tooltip.d.ts +12 -0
  38. package/dist/types/components/atoms/veil.d.ts +26 -0
  39. package/dist/types/components/icons/icons.d.ts +10 -0
  40. package/dist/types/components/molecules/alert.d.ts +7 -0
  41. package/dist/types/components/molecules/avatars/avatar.d.ts +15 -0
  42. package/dist/types/components/molecules/avatars/static-status-indicator.d.ts +2 -0
  43. package/dist/types/components/molecules/avatars/status-indicator.d.ts +2 -0
  44. package/dist/types/components/molecules/avatars/statuses.d.ts +13 -0
  45. package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +11 -0
  46. package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +12 -0
  47. package/dist/types/components/molecules/combobox/combobox.d.ts +10 -0
  48. package/dist/types/components/molecules/counters/atoms.d.ts +3 -0
  49. package/dist/types/components/molecules/counters/counter.d.ts +11 -0
  50. package/dist/types/components/molecules/date-time/date-picker.d.ts +11 -0
  51. package/dist/types/components/molecules/date-time/time-frame.d.ts +1 -0
  52. package/dist/types/components/molecules/date-time/time-picker.d.ts +10 -0
  53. package/dist/types/components/molecules/delay-component.d.ts +18 -0
  54. package/dist/types/components/molecules/dialogs/confirmation.d.ts +27 -0
  55. package/dist/types/components/molecules/dialogs/dialog-container.d.ts +8 -0
  56. package/dist/types/components/molecules/dialogs/dialog.d.ts +78 -0
  57. package/dist/types/components/molecules/dropdowns/dropdown-item.d.ts +1 -0
  58. package/dist/types/components/molecules/dropdowns/dropdown-menu.d.ts +61 -0
  59. package/dist/types/components/molecules/dropdowns/dropdown.d.ts +1 -0
  60. package/dist/types/components/molecules/form/form-atoms.d.ts +40 -0
  61. package/dist/types/components/molecules/form/form-control.d.ts +10 -0
  62. package/dist/types/components/molecules/form/form-field.d.ts +10 -0
  63. package/dist/types/components/molecules/form/form.d.ts +14 -0
  64. package/dist/types/components/molecules/modals/atoms.d.ts +17 -0
  65. package/dist/types/components/molecules/modals/modal-container.d.ts +8 -0
  66. package/dist/types/components/molecules/modals/modal.d.ts +124 -0
  67. package/dist/types/components/molecules/molecules.d.ts +31 -0
  68. package/dist/types/components/molecules/notifications/notification-container.d.ts +31 -0
  69. package/dist/types/components/molecules/notifications/notification.d.ts +79 -0
  70. package/dist/types/components/molecules/popover.d.ts +57 -0
  71. package/dist/types/components/molecules/theme-toggle.d.ts +8 -0
  72. package/dist/types/components/molecules/toggle/toggle.d.ts +11 -0
  73. package/dist/types/components/organisms/button-group.d.ts +23 -0
  74. package/dist/types/components/organisms/calendar/calendar.d.ts +77 -0
  75. package/dist/types/components/organisms/calendar/month/calendar-cells.d.ts +1 -0
  76. package/dist/types/components/organisms/calendar/month/day-cell.d.ts +1 -0
  77. package/dist/types/components/organisms/calendar/month/day-header.d.ts +1 -0
  78. package/dist/types/components/organisms/calendar/month/month-calendar.d.ts +1 -0
  79. package/dist/types/components/organisms/calendar/month/navigation-button.d.ts +1 -0
  80. package/dist/types/components/organisms/calendar/utils.d.ts +3 -0
  81. package/dist/types/components/organisms/calendar/week/utils.d.ts +6 -0
  82. package/dist/types/components/organisms/calendar/week/week-calendar.d.ts +90 -0
  83. package/dist/types/components/organisms/calendar/week/week-cell.d.ts +1 -0
  84. package/dist/types/components/organisms/calendar/week/week-cells.d.ts +1 -0
  85. package/dist/types/components/organisms/calendar/week/week-header.d.ts +1 -0
  86. package/dist/types/components/organisms/lists/checkbox-col.d.ts +1 -0
  87. package/dist/types/components/organisms/lists/data-table-body.d.ts +5 -0
  88. package/dist/types/components/organisms/lists/data-table.d.ts +13 -0
  89. package/dist/types/components/organisms/lists/header-col.d.ts +2 -0
  90. package/dist/types/components/organisms/lists/table-header.d.ts +5 -0
  91. package/dist/types/components/organisms/lists/user-list.d.ts +15 -0
  92. package/dist/types/components/organisms/navigation/inline-navigation.d.ts +75 -0
  93. package/dist/types/components/organisms/navigation/main-link.d.ts +81 -0
  94. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/mobile-nav-wrapper.d.ts +14 -0
  95. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/navigation-popover.d.ts +36 -0
  96. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/popup-header.d.ts +1 -0
  97. package/dist/types/components/organisms/navigation/mobile/nav-wrapper/title-header.d.ts +2 -0
  98. package/dist/types/components/organisms/navigation/nav-button-link.d.ts +44 -0
  99. package/dist/types/components/organisms/navigation/navigation-atoms.d.ts +8 -0
  100. package/dist/types/components/organisms/navigation/navigation-menu/navigation-menu.d.ts +58 -0
  101. package/dist/types/components/organisms/navigation/navigation.d.ts +58 -0
  102. package/dist/types/components/organisms/navigation/sidebar-menu/sidebar-menu.d.ts +2 -0
  103. package/dist/types/components/organisms/organisms.d.ts +38 -0
  104. package/dist/types/components/organisms/overlays/dockable-overlay.d.ts +38 -0
  105. package/dist/types/components/organisms/overlays/inline-overlay.d.ts +18 -0
  106. package/dist/types/components/organisms/overlays/overlay.d.ts +73 -0
  107. package/dist/types/components/organisms/panel.d.ts +22 -0
  108. package/dist/types/components/organisms/search/dropdown.d.ts +8 -0
  109. package/dist/types/components/organisms/search/search-dropdown.d.ts +10 -0
  110. package/dist/types/components/organisms/search/search-input.d.ts +7 -0
  111. package/dist/types/components/organisms/tabs/button-tab.d.ts +65 -0
  112. package/dist/types/components/organisms/tabs/tab-group.d.ts +48 -0
  113. package/dist/types/components/organisms/tabs/tab-navigation.d.ts +62 -0
  114. package/dist/types/components/organisms/tabs/tab.d.ts +35 -0
  115. package/dist/types/components/pages/basic-page.d.ts +19 -0
  116. package/dist/types/components/pages/blank-page.d.ts +17 -0
  117. package/dist/types/components/pages/center-page.d.ts +17 -0
  118. package/dist/types/components/pages/full-contain-page.d.ts +17 -0
  119. package/dist/types/components/pages/full-page.d.ts +25 -0
  120. package/dist/types/components/pages/fullscreen-page.d.ts +17 -0
  121. package/dist/types/components/pages/main-section.d.ts +8 -0
  122. package/dist/types/components/pages/page.d.ts +16 -0
  123. package/dist/types/components/pages/pages.d.ts +10 -0
  124. package/dist/types/components/pages/sidebar-menu-page.d.ts +70 -0
  125. package/dist/types/components/pages/templates/aside-template.d.ts +8 -0
  126. package/dist/types/components/pages/templates/bside-template.d.ts +8 -0
  127. package/dist/types/components/pages/templates/full-template.d.ts +8 -0
  128. package/dist/types/components/pages/templates/row.d.ts +8 -0
  129. package/dist/types/components/pages/templates/template-atoms.d.ts +16 -0
  130. package/dist/types/components/pages/templates/template.d.ts +8 -0
  131. package/dist/types/components/pages/templates/templates.d.ts +5 -0
  132. package/dist/types/ui.d.ts +6 -0
  133. package/dist/veil-B9GQfH0d.js +29 -0
  134. package/package.json +57 -0
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Notification
3
+ *
4
+ * A component that displays notifications.
5
+ *
6
+ * @class
7
+ * @extends DelayComponent
8
+ */
9
+ export class Notification extends DelayComponent {
10
+ /**
11
+ * @member {function|null} secondaryAction
12
+ */
13
+ secondaryAction: any;
14
+ /**
15
+ * @member {function|null} primaryAction
16
+ */
17
+ primaryAction: any;
18
+ /**
19
+ * @member {boolean} primary
20
+ */
21
+ primary: boolean;
22
+ /**
23
+ * @member {boolean} secondary
24
+ */
25
+ secondary: boolean;
26
+ /**
27
+ * @member {string} title
28
+ */
29
+ title: any;
30
+ /**
31
+ * @member {string} description
32
+ */
33
+ description: any;
34
+ /**
35
+ * @member {string} icon
36
+ */
37
+ icon: any;
38
+ /**
39
+ * @member {function} onClick
40
+ */
41
+ onClick: any;
42
+ duration: any;
43
+ /**
44
+ * This will render the component.
45
+ *
46
+ * @returns {object}
47
+ */
48
+ render(): object;
49
+ timer: Timer;
50
+ /**
51
+ * This will get the style properties based on the notification type.
52
+ *
53
+ * @returns {object}
54
+ */
55
+ getTypeStyles(): object;
56
+ /**
57
+ * This will get the buttons for the notification.
58
+ *
59
+ * @returns {array}
60
+ */
61
+ getButtons(): any[];
62
+ /**
63
+ * This will get the children for the notification.
64
+ *
65
+ * @param {string} iconColor
66
+ * @returns {array}
67
+ */
68
+ getChildren(iconColor: string): any[];
69
+ /**
70
+ * This will close the notification.
71
+ *
72
+ * @param {object} e The event object.
73
+ * @returns {void}
74
+ */
75
+ close(e: object): void;
76
+ }
77
+ export default Notification;
78
+ import { DelayComponent } from "../delay-component.js";
79
+ import { Timer } from "@base-framework/organisms";
@@ -0,0 +1,57 @@
1
+ export function getPosition(button: object, container: object): object;
2
+ /**
3
+ * PopOver
4
+ *
5
+ * This will create a absolute cotnainer component.
6
+ *
7
+ * @export
8
+ * @class PopOver
9
+ * @extends {Component}
10
+ */
11
+ export class PopOver extends Component {
12
+ /**
13
+ * This will set up the data.
14
+ *
15
+ * @returns {object}
16
+ */
17
+ setData(): object;
18
+ /**
19
+ * This will get the class size.
20
+ *
21
+ * @returns {string}
22
+ */
23
+ getSize(): string;
24
+ /**
25
+ * This will render the modal component.
26
+ *
27
+ * @returns {object}
28
+ */
29
+ render(): object;
30
+ /**
31
+ * This will setup the states.
32
+ *
33
+ * @returns {object}
34
+ */
35
+ setupStates(): object;
36
+ /**
37
+ * Updates the dropdown position.
38
+ *
39
+ * @returns {void}
40
+ */
41
+ updatePosition(): void;
42
+ /**
43
+ * This will check if the element clicked was in the
44
+ * component of the button.
45
+ *
46
+ * @param {object} element
47
+ * @returns {boolean}
48
+ */
49
+ isOutsideClick(element: object): boolean;
50
+ /**
51
+ * This will override the set up to use the app shell.
52
+ *
53
+ * @param {object} container
54
+ */
55
+ setContainer(container: object): void;
56
+ }
57
+ import { Component } from '@base-framework/base';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ButtonGroup
3
+ *
4
+ * This will create a button group.
5
+ *
6
+ * @class
7
+ */
8
+ export const ThemeToggle: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Toggle
3
+ *
4
+ * This will create a toggle switch component.
5
+ *
6
+ * @param {object} props
7
+ * @param {array} children
8
+ * @returns {ComponentConstructor}
9
+ */
10
+ export const Toggle: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
11
+ export default Toggle;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * ButtonGroup
3
+ *
4
+ * This will create a button group.
5
+ *
6
+ * @class
7
+ * @extends Component
8
+ */
9
+ export default class ButtonGroup extends Component {
10
+ /**
11
+ * This will render the component.
12
+ *
13
+ * @returns {object}
14
+ */
15
+ render(): object;
16
+ /**
17
+ * This will setup the states.
18
+ *
19
+ * @returns {object}
20
+ */
21
+ setupStates(): object;
22
+ }
23
+ import { Component } from '@base-framework/base';
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Calendar
3
+ *
4
+ * This will create a calendar component.
5
+ *
6
+ * @class Calendar
7
+ */
8
+ export class Calendar extends Component {
9
+ /**
10
+ * This will set the selected date.
11
+ * @member {string} selectedDate
12
+ * @default null
13
+ */
14
+ selectedDate: any;
15
+ /**
16
+ * This will set the selected call back.
17
+ * @member {function} selectedCallBack
18
+ * @default null
19
+ */
20
+ selectedCallBack: any;
21
+ /**
22
+ * This will get the selected data.
23
+ *
24
+ * @param {object} today
25
+ * @returns {Date}
26
+ */
27
+ getSelectedDate(today: object): Date;
28
+ /**
29
+ * This will set up the data for the calendar.
30
+ *
31
+ * @returns {Data}
32
+ */
33
+ setData(): Data;
34
+ /**
35
+ * This will get the name of the month.
36
+ *
37
+ * @param {number} month
38
+ * @returns {string}
39
+ */
40
+ getMonthName(month: number): string;
41
+ /**
42
+ * This will go to the previous month.
43
+ *
44
+ * @returns {void}
45
+ */
46
+ goToPreviousMonth(): void;
47
+ /**
48
+ * This will go to the next month.
49
+ *
50
+ * @returns {void}
51
+ */
52
+ goToNextMonth(): void;
53
+ /**
54
+ * This will set the current month and year.
55
+ *
56
+ * @param {number} month
57
+ * @param {number} year
58
+ * @param {number} [date=null]
59
+ * @returns {void}
60
+ */
61
+ setCurrentDate(month: number, year: number, date?: number): void;
62
+ /**
63
+ * This will select a date.
64
+ *
65
+ * @param {string} date
66
+ * @returns {void}
67
+ */
68
+ selectDate(date: string): void;
69
+ /**
70
+ * This will render the calendar.
71
+ *
72
+ * @returns {object}
73
+ */
74
+ render(): object;
75
+ }
76
+ import { Component } from '@base-framework/base';
77
+ import { Data } from '@base-framework/base';
@@ -0,0 +1 @@
1
+ export function CalendarCells(current: object, today: object, selectCallBack: Function): object;
@@ -0,0 +1 @@
1
+ export function DayCell({ day, currentDate, date, isToday, isOutsideMonth, select }: object): object;
@@ -0,0 +1 @@
1
+ export function DayHeader(day: string | number): object;
@@ -0,0 +1 @@
1
+ export function MonthCalendar(props: object): object;
@@ -0,0 +1 @@
1
+ export function NavigationButton({ label, click }: object): object;
@@ -0,0 +1,3 @@
1
+ export function pad(number: number): string;
2
+ export function addTime(date: string): string;
3
+ export function FormatDate(year: number, month: number, day: number): string;
@@ -0,0 +1,6 @@
1
+ export function calculateWeekNumber(date: Date): object;
2
+ export function getPreviousMonthDays(year: number, month: number, firstDay: number): Date[];
3
+ export function getNextMonthDays(year: number, month: number, remainingDays: number): Date[];
4
+ export function getDateFromWeek(week: number, year: number): Date;
5
+ export function generateWeeks(year: number, month: number): any[];
6
+ export function getMonthDays(year: number, month: number): Array<Array<Date>>;
@@ -0,0 +1,90 @@
1
+ /**
2
+ * WeekCalendar
3
+ *
4
+ * A navigable calendar focusing on weeks.
5
+ *
6
+ * @class
7
+ */
8
+ export class WeekCalendar extends Component {
9
+ /**
10
+ * The selected date.
11
+ * @member {string} selectedDate
12
+ * @default null
13
+ */
14
+ selectedDate: any;
15
+ /**
16
+ * The selected week.
17
+ * @member {number} selectedWeek
18
+ * @default null
19
+ */
20
+ selectedWeek: any;
21
+ /**
22
+ * The selected call back.
23
+ * @member {function} selectedCallBack
24
+ * @default null
25
+ */
26
+ selectedCallBack: any;
27
+ /**
28
+ * Initializes the calendar data.
29
+ *
30
+ * @returns {Data}
31
+ */
32
+ setData(): Data;
33
+ /**
34
+ * Determines the current selected date.
35
+ *
36
+ * @param {Date} today
37
+ * @returns {Date}
38
+ */
39
+ getSelectedDate(today: Date): Date;
40
+ /**
41
+ * Calculates the ISO week number for a given date.
42
+ *
43
+ * @param {Date} date
44
+ * @returns {number}
45
+ */
46
+ calculateCurrentWeek(date: Date): number;
47
+ /**
48
+ * Gets the name of the month.
49
+ *
50
+ * @param {number} month
51
+ * @returns {string}
52
+ */
53
+ getMonthName(month: number): string;
54
+ /**
55
+ * Updates the calendar to show the previous month.
56
+ *
57
+ * @returns {void}
58
+ */
59
+ goToPreviousMonth(): void;
60
+ /**
61
+ * Updates the calendar to show the next month.
62
+ *
63
+ * @returns {void}
64
+ */
65
+ goToNextMonth(): void;
66
+ /**
67
+ * Sets the selected date.
68
+ *
69
+ * @param {number} month
70
+ * @param {number} year
71
+ * @param {number|null} [date=null]
72
+ * @returns {void}
73
+ */
74
+ setDate(month: number, year: number, date?: number | null): void;
75
+ /**
76
+ * Handles week selection.
77
+ *
78
+ * @param {number} weekNumber
79
+ * @returns {void}
80
+ */
81
+ selectWeek(weekNumber: number, year: any): void;
82
+ /**
83
+ * Renders the WeekCalendar component.
84
+ *
85
+ * @returns {object}
86
+ */
87
+ render(): object;
88
+ }
89
+ import { Component } from '@base-framework/base';
90
+ import { Data } from '@base-framework/base';
@@ -0,0 +1 @@
1
+ export function WeekCell({ day, month, year, weekNumber, selectWeek }: object): object;
@@ -0,0 +1 @@
1
+ export function WeekCells({ selectWeek }: object): object;
@@ -0,0 +1 @@
1
+ export function WeekHeader({ next, previous }: object): object;
@@ -0,0 +1 @@
1
+ export function CheckboxCol(props: object): object;
@@ -0,0 +1,5 @@
1
+ export function DataTableBody({ key, rows, selectRow, rowItem }: object): object;
2
+ import { CheckboxCol } from './table-header.js';
3
+ import { HeaderCol } from './table-header.js';
4
+ import { TableHeader } from './table-header.js';
5
+ export { CheckboxCol, HeaderCol, TableHeader };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * DataTable Component
3
+ *
4
+ * Manages data, filtering, pagination, and selection within a table.
5
+ *
6
+ * @param {object} props
7
+ * @returns {object}
8
+ */
9
+ export const DataTable: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
10
+ import { CheckboxCol } from './table-header.js';
11
+ import { HeaderCol } from './table-header.js';
12
+ import { TableHeader } from './table-header.js';
13
+ export { CheckboxCol, HeaderCol, TableHeader };
@@ -0,0 +1,2 @@
1
+ export function HeaderCol({ align, sortable, key, label, sort, class: className }: object): object;
2
+ export default HeaderCol;
@@ -0,0 +1,5 @@
1
+ export function TableHeader(props: object): object;
2
+ export default TableHeader;
3
+ import { CheckboxCol } from './checkbox-col.js';
4
+ import { HeaderCol } from './header-col.js';
5
+ export { CheckboxCol, HeaderCol };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * User List Item Atom.
3
+ *
4
+ * @param {object} user
5
+ * @returns {object}
6
+ */
7
+ export const UserListItem: Function;
8
+ /**
9
+ * User List Atom
10
+ *
11
+ * @param {object} props
12
+ * @returns {object}
13
+ */
14
+ export const UserList: Function;
15
+ export default UserList;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * InlineNavigation
3
+ *
4
+ * This will create a navigation that has sub
5
+ * navigations. The sub navigations items will
6
+ * display below the parent.
7
+ *
8
+ * @class
9
+ * @augments Navigation
10
+ */
11
+ export class InlineNavigation extends Navigation {
12
+ links: any[];
13
+ /**
14
+ * This will set up the sub nav.
15
+ *
16
+ * @param {object} link
17
+ * @returns {object}
18
+ */
19
+ setupSubNav(link: object): object;
20
+ /**
21
+ * This will add a sub navigation.
22
+ *
23
+ * @param {object} link
24
+ * @returns {object}
25
+ */
26
+ addSubNav(link: object): object;
27
+ }
28
+ /**
29
+ * SubNavigation
30
+ *
31
+ * This will create a nested navigation.
32
+ * @class
33
+ * @augments InlineNavigation
34
+ */
35
+ export class SubNavigation extends InlineNavigation {
36
+ /**
37
+ * This will set the parent link.
38
+ * @member {object} parentLink
39
+ * @default null
40
+ */
41
+ parentLink: any;
42
+ /**
43
+ * This will set the main class name.
44
+ * @member {string} mainClassName
45
+ * @default ''
46
+ */
47
+ mainClassName: string;
48
+ /**
49
+ * This will add awatcher to update the links
50
+ * when the path changes.
51
+ *
52
+ * @returns {object}
53
+ */
54
+ addWatcher(): object;
55
+ /**
56
+ * This will set up the on state.
57
+ *
58
+ * @returns {array}
59
+ */
60
+ onState(): any[];
61
+ /**
62
+ * This will set up the states.
63
+ *
64
+ * @returns {object}
65
+ */
66
+ setupStates(): object;
67
+ /**
68
+ * This will update the links.
69
+ *
70
+ * @param {string} value
71
+ * @returns {void}
72
+ */
73
+ updateLinks(value: string): void;
74
+ }
75
+ import { Navigation } from './navigation.js';
@@ -0,0 +1,81 @@
1
+ /**
2
+ * MainLink
3
+ *
4
+ * This will setup a navigation link.
5
+ *
6
+ * @class
7
+ */
8
+ export class MainLink extends Component {
9
+ /**
10
+ * This will set the label.
11
+ * @member {string} label
12
+ * @default ''
13
+ */
14
+ label: string;
15
+ /**
16
+ * This will set the icon.
17
+ * @member {string} icon
18
+ * @default null
19
+ */
20
+ icon: any;
21
+ /**
22
+ * This will set the href.
23
+ * @member {string} href
24
+ * @default null
25
+ */
26
+ href: any;
27
+ /**
28
+ * This will set the exact.
29
+ * @member {boolean} exact
30
+ * @default false
31
+ */
32
+ exact: boolean;
33
+ /**
34
+ * This will set the options.
35
+ * @member {array} options
36
+ */
37
+ options: any[];
38
+ /**
39
+ * This will set the content.
40
+ * @member {array} content
41
+ * @default null
42
+ */
43
+ content: any;
44
+ /**
45
+ * This will set the call back.
46
+ * @member {function} callBack
47
+ */
48
+ callBack: any;
49
+ /**
50
+ * This will set the check call back.
51
+ * @member {function} checkCallBack
52
+ */
53
+ checkCallBack: any;
54
+ /**
55
+ * This will set the link.
56
+ * @member {object} link
57
+ */
58
+ link: any;
59
+ /**
60
+ * This will render the component.
61
+ *
62
+ * @override
63
+ * @returns {object}
64
+ */
65
+ override render(): object;
66
+ /**
67
+ * This will add the link.
68
+ *
69
+ * @returns {object}
70
+ * @protected
71
+ */
72
+ protected addLink(): object;
73
+ /**
74
+ * This will check if the link is selected.
75
+ *
76
+ * @returns {boolean}
77
+ */
78
+ isSelected(): boolean;
79
+ update(selected: any): void;
80
+ }
81
+ import { Component } from '@base-framework/base';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This will create a mobile navigation button.
3
+ *
4
+ * @param {object} props
5
+ * @return {object}
6
+ */
7
+ export const MobileNavButton: Function;
8
+ /**
9
+ * This will create a mobile navigation wrapper.
10
+ *
11
+ * @param {object} props
12
+ * @return {object}
13
+ */
14
+ export const MobileNavWrapper: Function;
@@ -0,0 +1,36 @@
1
+ export function Backdrop(): object;
2
+ /**
3
+ * PopOver
4
+ *
5
+ * This will create a absolute cotnainer component.
6
+ *
7
+ * @export
8
+ * @class PopOver
9
+ * @extends {Component}
10
+ */
11
+ export class NavigationPopover extends Component {
12
+ /**
13
+ * This will set the title.
14
+ * @member {string} title
15
+ */
16
+ title: string;
17
+ /**
18
+ * This will render the modal component.
19
+ *
20
+ * @returns {object}
21
+ */
22
+ render(): object;
23
+ /**
24
+ * This will setup the states.
25
+ *
26
+ * @returns {object}
27
+ */
28
+ setupStates(): object;
29
+ /**
30
+ * This will override the set up to use the body.
31
+ *
32
+ * @param {object} container
33
+ */
34
+ setContainer(container: object): void;
35
+ }
36
+ import { Component } from "@base-framework/base";
@@ -0,0 +1 @@
1
+ export function PopupHeader(props: object): object;
@@ -0,0 +1,2 @@
1
+ export function NavButton(props: object): object;
2
+ export function TitleHeader(props: object): object;