@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,44 @@
1
+ /**
2
+ * NavButtonLink
3
+ *
4
+ * This will create a button to open and close
5
+ * nested navigations.
6
+ * @class
7
+ */
8
+ export class NavButtonLink extends Component {
9
+ /**
10
+ * This will set the class.
11
+ * @member {string} class
12
+ * @default ''
13
+ */
14
+ class: string;
15
+ /**
16
+ * This will set the check callback.
17
+ * @member {function} checkCallBack
18
+ * @default null
19
+ */
20
+ checkCallBack: any;
21
+ /**
22
+ * This will render the component.
23
+ *
24
+ * @override
25
+ * @returns {object}
26
+ */
27
+ override render(): object;
28
+ /**
29
+ * This will set up the states.
30
+ *
31
+ * @override
32
+ * @protected
33
+ * @returns {object}
34
+ */
35
+ protected override setupStates(): object;
36
+ /**
37
+ * This will update the states.
38
+ *
39
+ * @param {object} selected
40
+ * @returns {void}
41
+ */
42
+ update(selected: object): void;
43
+ }
44
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will return a navigation group.
3
+ *
4
+ * @param {object} props
5
+ * @param {object} children
6
+ * @returns {object}
7
+ */
8
+ export const NavigationGroup: Function;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * NavigationMenu
3
+ *
4
+ * This will create a tab navigation component.
5
+ *
6
+ * @class
7
+ */
8
+ export class NavigationMenu extends Component {
9
+ /**
10
+ * This will set the options.
11
+ * @member {array} options
12
+ * @default []
13
+ */
14
+ options: any[];
15
+ /**
16
+ * This will set the class.
17
+ * @member {string} class
18
+ * @default ''
19
+ */
20
+ class: string;
21
+ links: any[];
22
+ /**
23
+ * This will render the component.
24
+ *
25
+ * @returns {object}
26
+ */
27
+ render(): object;
28
+ /**
29
+ * This will update the links based on the current path.
30
+ *
31
+ * @param {string} path
32
+ * @returns {void}
33
+ */
34
+ updateLinks(path: string): void;
35
+ /**
36
+ * This will deactivate all links.
37
+ *
38
+ * @returns {void}
39
+ */
40
+ deactivateAllLinks(): void;
41
+ /**
42
+ * This will update the link's active state.
43
+ *
44
+ * @param {object} link
45
+ * @param {boolean} selected
46
+ * @returns {void}
47
+ */
48
+ updateLink(link: object, selected: boolean): void;
49
+ /**
50
+ * This will add a link to the navigation.
51
+ *
52
+ * @param {object} option
53
+ * @returns {object}
54
+ */
55
+ addLink({ label: text, href, exact, hidden }: object): object;
56
+ }
57
+ export default NavigationMenu;
58
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Navigation
3
+ *
4
+ * This will create a navigation component.
5
+ * @class
6
+ */
7
+ export class Navigation extends Component {
8
+ /**
9
+ * This will set the options.
10
+ * @member {array} options
11
+ */
12
+ options: any[];
13
+ /**
14
+ * This will set the class.
15
+ * @member {string} class
16
+ */
17
+ class: string;
18
+ /**
19
+ * This will set the mobile border.
20
+ * @member {boolean} mobileBorder
21
+ * @default false
22
+ */
23
+ mobileBorder: boolean;
24
+ /**
25
+ * This will render the component.
26
+ *
27
+ * @returns {object}
28
+ */
29
+ render(): object;
30
+ /**
31
+ * This will get the options.
32
+ *
33
+ * @param {array} options
34
+ * @returns {array}
35
+ */
36
+ mapOptions(options?: any[]): any[];
37
+ /**
38
+ * This will get the subs.
39
+ *
40
+ * @returns {array}
41
+ */
42
+ addSubs(): any[];
43
+ /**
44
+ * This will add a group.
45
+ *
46
+ * @param {object} option
47
+ * @returns {object}
48
+ */
49
+ addGroup(option: object): object;
50
+ /**
51
+ * This will add a link.
52
+ *
53
+ * @param {object} option
54
+ * @returns {object}
55
+ */
56
+ addLink(option: object): object;
57
+ }
58
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,2 @@
1
+ export function SidebarMenu({ title, options, class: className, mobileBorder, sticky }: object): object;
2
+ export default SidebarMenu;
@@ -0,0 +1,38 @@
1
+ export * from "./button-group.js";
2
+ export * from "./panel.js";
3
+ export * from "./calendar/month/calendar-cells.js";
4
+ export * from "./calendar/month/day-cell.js";
5
+ export * from "./calendar/month/day-header.js";
6
+ export * from "./calendar/month/month-calendar.js";
7
+ export * from "./calendar/week/utils.js";
8
+ export * from "./calendar/week/week-calendar.js";
9
+ export * from "./calendar/week/week-cell.js";
10
+ export * from "./calendar/week/week-cells.js";
11
+ export * from "./calendar/week/week-header.js";
12
+ export * from "./calendar/calendar.js";
13
+ export * from "./calendar/utils.js";
14
+ export * from "./lists/checkbox-col.js";
15
+ export * from "./lists/data-table-body.js";
16
+ export * from "./lists/data-table.js";
17
+ export * from "./lists/header-col.js";
18
+ export * from "./lists/table-header.js";
19
+ export * from "./lists/user-list.js";
20
+ export * from "./navigation/inline-navigation.js";
21
+ export * from "./navigation/main-link.js";
22
+ export * from "./navigation/nav-button-link.js";
23
+ export * from "./navigation/navigation-atoms.js";
24
+ export * from "./navigation/navigation-menu/navigation-menu.js";
25
+ export * from "./navigation/navigation.js";
26
+ export * from "./navigation/sidebar-menu/sidebar-menu.js";
27
+ export * from "./navigation/mobile/nav-wrapper/mobile-nav-wrapper.js";
28
+ export * from "./navigation/mobile/nav-wrapper/navigation-popover.js";
29
+ export * from "./navigation/mobile/nav-wrapper/popup-header.js";
30
+ export * from "./navigation/mobile/nav-wrapper/title-header.js";
31
+ export * from "./overlays/dockable-overlay.js";
32
+ export * from "./overlays/inline-overlay.js";
33
+ export * from "./overlays/overlay.js";
34
+ export * from "./search/search-dropdown.js";
35
+ export * from "./tabs/button-tab.js";
36
+ export * from "./tabs/tab-group.js";
37
+ export * from "./tabs/tab-navigation.js";
38
+ export * from "./tabs/tab.js";
@@ -0,0 +1,38 @@
1
+ /**
2
+ * DockableOverlay
3
+ *
4
+ * This will create an dockable overlay.
5
+ *
6
+ * @class
7
+ * @extends Overlay
8
+ */
9
+ export class DockableOverlay extends Overlay {
10
+ dockSize: any;
11
+ /**
12
+ * This will get the docked className.
13
+ *
14
+ * @returns {string}
15
+ */
16
+ getDockedClassName(): string;
17
+ /**
18
+ * This will setup and render the component.
19
+ *
20
+ * @param {object} container
21
+ * @returns {void}
22
+ */
23
+ setup(container: object): void;
24
+ /**
25
+ * This will check if the overlay can dock.
26
+ *
27
+ * @returns {boolean}
28
+ */
29
+ canDock(): boolean;
30
+ /**
31
+ * This will handle the overlay resize.
32
+ *
33
+ * @returns {void}
34
+ */
35
+ onResize(): void;
36
+ }
37
+ export default Overlay;
38
+ import { Overlay } from "./overlay.js";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * InlineOverlay
3
+ *
4
+ * This will create an inline overlay.
5
+ *
6
+ * @class
7
+ * @extends Overlay
8
+ */
9
+ export class InlineOverlay extends Overlay {
10
+ /**
11
+ * This will setup and render the component.
12
+ *
13
+ * @param {object} container
14
+ * @returns {void}
15
+ */
16
+ setup(container: object): void;
17
+ }
18
+ import { Overlay } from './overlay.js';
@@ -0,0 +1,73 @@
1
+ /**
2
+ * This will create an overlay back button.
3
+ *
4
+ * @param {object} props
5
+ * @returns {object}
6
+ */
7
+ export const BackButton: Function;
8
+ /**
9
+ * Overlay
10
+ *
11
+ * This will create an overlay.
12
+ *
13
+ * @class
14
+ * @extends Component
15
+ */
16
+ export class Overlay extends Component {
17
+ /**
18
+ * @member {string} class
19
+ * @default ''
20
+ */
21
+ class: string;
22
+ /**
23
+ * This will render the component.
24
+ *
25
+ * @returns {object}
26
+ */
27
+ render(): object;
28
+ /**
29
+ * This will get the overlay className.
30
+ *
31
+ * @returns {string}
32
+ */
33
+ getClassName(): string;
34
+ /**
35
+ * This will setup and render the component.
36
+ *
37
+ * @param {object} container
38
+ * @returns {void}
39
+ */
40
+ setContainer(container: object): void;
41
+ /**
42
+ * This will setup the overlay states.
43
+ *
44
+ * @returns {object}
45
+ */
46
+ setupStates(): object;
47
+ /**
48
+ * This will set the loading state.= to true.
49
+ *
50
+ * @returns {void}
51
+ */
52
+ addLoading(): void;
53
+ /**
54
+ * This will set the loading state to false.
55
+ *
56
+ * @returns {void}
57
+ */
58
+ removeLoading(): void;
59
+ /**
60
+ * This will add the body of the overlay.
61
+ *
62
+ * @returns {object}
63
+ */
64
+ addBody(): object;
65
+ /**
66
+ * This will get the body contents.
67
+ *
68
+ * @returns {array|null}
69
+ */
70
+ getContents(): any[] | null;
71
+ }
72
+ export default Overlay;
73
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Panel
3
+ *
4
+ * This will create a panel.
5
+ *
6
+ * @class
7
+ * @extends Component
8
+ */
9
+ export class Panel extends Component {
10
+ /**
11
+ * @member {string} class
12
+ */
13
+ class: any;
14
+ /**
15
+ * This will render the component.
16
+ *
17
+ * @returns {object}
18
+ */
19
+ render(): object;
20
+ }
21
+ export default Panel;
22
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This will create a dropdown.
3
+ *
4
+ * @param {object} props - The properties of the component.
5
+ * @returns {object} - The dropdown component.
6
+ */
7
+ export const Dropdown: Function;
8
+ export default Dropdown;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * SearchDropdown
3
+ *
4
+ * This will create a search dropdown.
5
+ *
6
+ * @param {object} props - The properties of the component.
7
+ * @returns {ComponentConstructor} - The search dropdown component.
8
+ */
9
+ export const SearchDropdown: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
10
+ export default SearchDropdown;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This will create a search input.
3
+ *
4
+ * @param {object} props - The properties of the component.
5
+ * @returns {object} - The search input component.
6
+ */
7
+ export const SearchInput: Function;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * ButtonTab
3
+ *
4
+ * This will create a button tabs component.
5
+ *
6
+ * @class
7
+ */
8
+ export class ButtonTab extends Component {
9
+ /**
10
+ * This will set the options.
11
+ * @member {array} options
12
+ * @default []
13
+ */
14
+ options: any[];
15
+ /**
16
+ * This will set the class.
17
+ * @member {string} class
18
+ * @default ''
19
+ */
20
+ class: string;
21
+ /**
22
+ * This will set the call back.
23
+ * @member {function} callBack
24
+ */
25
+ callBack: any;
26
+ /**
27
+ * This will render the component.
28
+ *
29
+ * @returns {object}
30
+ */
31
+ render(): object;
32
+ /**
33
+ * This will get the first value.
34
+ *
35
+ * @returns {*}
36
+ */
37
+ getFirstValue(): any;
38
+ /**
39
+ * This will update the component.
40
+ *
41
+ * @returns {void}
42
+ */
43
+ update(): void;
44
+ /**
45
+ * This will select a value.
46
+ *
47
+ * @param {*} value
48
+ * @returns {void}
49
+ */
50
+ select(value: any): void;
51
+ /**
52
+ * This will update the content.
53
+ *
54
+ * @param {*} value
55
+ * @returns {object}
56
+ */
57
+ updateContent(value: any): object;
58
+ /**
59
+ * This will setup the states.
60
+ *
61
+ * @returns {object}
62
+ */
63
+ setupStates(): object;
64
+ }
65
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,48 @@
1
+ /**
2
+ * TabGroup
3
+ *
4
+ * This will create a tab group.
5
+ *
6
+ * @class
7
+ * @extends Component
8
+ */
9
+ export class TabGroup extends Component {
10
+ /**
11
+ * This will set the options.
12
+ * @member {array} options
13
+ * @default []
14
+ */
15
+ options: any[];
16
+ /**
17
+ * This will set the class.
18
+ * @member {string} class
19
+ * @default ''
20
+ */
21
+ class: string;
22
+ /**
23
+ * This will set the on select call back.
24
+ * @member {function} onSelect
25
+ */
26
+ onSelect: any;
27
+ /**
28
+ * This will render the component.
29
+ *
30
+ * @returns {object}
31
+ */
32
+ render(): object;
33
+ /**
34
+ * This will select a value.
35
+ *
36
+ * @param {*} value
37
+ * @returns {void}
38
+ */
39
+ select(value: any): void;
40
+ /**
41
+ * This will setup the states.
42
+ *
43
+ * @returns {object}
44
+ */
45
+ setupStates(): object;
46
+ }
47
+ export default TabGroup;
48
+ import { Component } from '@base-framework/base';
@@ -0,0 +1,62 @@
1
+ /**
2
+ * TabNavigation
3
+ *
4
+ * This will create a tab navigation component.
5
+ *
6
+ * @class
7
+ */
8
+ export class TabNavigation extends Component {
9
+ /**
10
+ * This will set the options.
11
+ * @member {array} options
12
+ * @default []
13
+ */
14
+ options: any[];
15
+ /**
16
+ * This will set the class.
17
+ * @member {string} class
18
+ * @default ''
19
+ */
20
+ class: string;
21
+ /**
22
+ * This will set the on select call back.
23
+ * @member {function} onSelect
24
+ */
25
+ onSelect: any;
26
+ links: any[];
27
+ /**
28
+ * This will render the component.
29
+ *
30
+ * @returns {object}
31
+ */
32
+ render(): object;
33
+ /**
34
+ * This will update the links.
35
+ *
36
+ * @param {string} value
37
+ * @returns {void}
38
+ */
39
+ updateLinks(value: string): void;
40
+ /**
41
+ * This will deactivate all links.
42
+ *
43
+ * @returns {void}
44
+ */
45
+ deactivateAllLinks(): void;
46
+ /**
47
+ * This will update the link.
48
+ *
49
+ * @param {object} link
50
+ * @param {boolean} selected
51
+ * @returns {void}
52
+ */
53
+ updateLink(link: object, selected: boolean): void;
54
+ /**
55
+ * This will add a link.
56
+ *
57
+ * @param {object} option
58
+ * @returns {object}
59
+ */
60
+ addLink({ label: text, href, exact }: object): object;
61
+ }
62
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Tab
3
+ *
4
+ * This will create a tab component that can route
5
+ * to tab panels.
6
+ *
7
+ * @class
8
+ */
9
+ export class Tab extends Component {
10
+ /**
11
+ * This will set the options.
12
+ * @member {array} options
13
+ * @default []
14
+ */
15
+ options: any[];
16
+ /**
17
+ * This will set the class.
18
+ * @member {string} class
19
+ * @default ''
20
+ */
21
+ class: string;
22
+ /**
23
+ * This will render the component.
24
+ *
25
+ * @returns {object}
26
+ */
27
+ render(): object;
28
+ /**
29
+ * This will add the group.
30
+ *
31
+ * @returns {array}
32
+ */
33
+ addGroup(): any[];
34
+ }
35
+ import { Component } from "@base-framework/base";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * BasicPage
3
+ *
4
+ * This will create a basic module to extend
5
+ * to all child modules.
6
+ *
7
+ * @class
8
+ * @extends Page
9
+ */
10
+ export class BasicPage extends Page {
11
+ /**
12
+ * This will be called every time the route
13
+ * is activated.
14
+ *
15
+ * @param {object} params
16
+ */
17
+ update(params: object): void;
18
+ }
19
+ import { Page } from './page.js';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * BlankPage
3
+ *
4
+ * This will create a blank page.
5
+ *
6
+ * @class
7
+ * @extends BasicPage
8
+ */
9
+ export class BlankPage extends BasicPage {
10
+ /**
11
+ * This will render the page.
12
+ *
13
+ * @returns {object}
14
+ */
15
+ render(): object;
16
+ }
17
+ import { BasicPage } from './basic-page.js';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * CenterPage
3
+ *
4
+ * This will create a center page.
5
+ *
6
+ * @class
7
+ * @extends BasicPage
8
+ */
9
+ export class CenterPage extends BasicPage {
10
+ /**
11
+ * This will render the page.
12
+ *
13
+ * @returns {object}
14
+ */
15
+ render(): object;
16
+ }
17
+ import { BasicPage } from './basic-page.js';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * FullContainPage
3
+ *
4
+ * This will create a full contained page.
5
+ *
6
+ * @class
7
+ * @extends BasicPage
8
+ */
9
+ export class FullContainPage extends BasicPage {
10
+ /**
11
+ * This will render the page.
12
+ *
13
+ * @returns {object}
14
+ */
15
+ render(): object;
16
+ }
17
+ import { BasicPage } from './basic-page.js';