@ulu/frontend-vue 0.1.0-beta.3 → 0.1.0-beta.31
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 +113 -2
- package/dist/{breakpoints-Cq2oSdYS.js → breakpoints-BJNvnXsD.js} +1 -1
- package/dist/frontend-vue.css +1 -1
- package/dist/frontend-vue.js +78 -72
- package/dist/index-BjwifaTk.js +6946 -0
- package/lib/components/collapsible/UluAccordion.vue +1 -1
- package/lib/components/collapsible/UluModal.vue +4 -5
- package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
- package/lib/components/elements/UluAlert.vue +1 -2
- package/lib/components/elements/UluBadge.vue +27 -28
- package/lib/components/elements/UluBadgeStack.vue +8 -13
- package/lib/components/elements/UluButton.vue +2 -2
- package/lib/components/elements/UluButtonVerbose.vue +119 -0
- package/lib/components/elements/UluCard.vue +1 -1
- package/lib/components/elements/UluDefinitionList.vue +14 -17
- package/lib/components/elements/UluExternalLink.vue +22 -29
- package/lib/components/elements/UluIcon.vue +22 -17
- package/lib/components/elements/UluList.vue +53 -55
- package/lib/components/elements/UluSpokeSpinner.vue +12 -18
- package/lib/components/elements/UluTag.vue +35 -35
- package/lib/components/forms/UluFileDisplay.vue +40 -31
- package/lib/components/forms/UluFormFile.vue +22 -24
- package/lib/components/forms/UluFormMessage.vue +7 -10
- package/lib/components/forms/UluFormSelect.vue +16 -16
- package/lib/components/forms/UluFormText.vue +15 -15
- package/lib/components/forms/UluSearchForm.vue +8 -10
- package/lib/components/forms/UluSelectableMenu.vue +78 -0
- package/lib/components/index.js +2 -2
- package/lib/components/layout/UluAdaptiveLayout.vue +3 -5
- package/lib/components/layout/UluTitleRail.vue +9 -5
- package/lib/components/layout/UluWhenBreakpoint.vue +71 -77
- package/lib/components/navigation/UluBreadcrumb.vue +10 -4
- package/lib/components/navigation/UluMenu.vue +3 -3
- package/lib/components/navigation/UluPager.vue +102 -0
- package/lib/components/systems/facets/ExampleFacetsWithPagination.vue +119 -0
- package/lib/components/systems/facets/UluFacetsFilterLists.vue +84 -0
- package/lib/components/systems/facets/UluFacetsFilterPopovers.vue +114 -0
- package/lib/components/systems/facets/UluFacetsFilterSelects.vue +71 -0
- package/lib/components/systems/facets/UluFacetsHeaderLayout.vue +24 -0
- package/lib/components/systems/facets/UluFacetsList.vue +61 -33
- package/lib/components/systems/facets/UluFacetsResults.vue +63 -0
- package/lib/components/systems/facets/UluFacetsSearch.vue +26 -49
- package/lib/components/systems/facets/UluFacetsSidebarLayout.vue +31 -0
- package/lib/components/systems/facets/UluFacetsSort.vue +45 -0
- package/lib/components/systems/facets/_facets.scss +2 -3
- package/lib/components/systems/facets/_mock-data.js +40 -0
- package/lib/components/systems/facets/useFacets.js +229 -0
- package/lib/components/systems/index.js +13 -2
- package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +2 -1
- package/lib/components/systems/skeleton/UluShowSkeleton.vue +9 -8
- package/lib/components/systems/skeleton/UluSkeletonContent.vue +39 -43
- package/lib/components/systems/skeleton/UluSkeletonMedia.vue +4 -6
- package/lib/components/systems/skeleton/UluSkeletonText.vue +27 -0
- package/lib/components/systems/slider/UluImageSlideShow.vue +1 -1
- package/lib/components/systems/slider/UluSlideShow.vue +8 -3
- package/lib/components/systems/table-sticky/UluTableSticky.vue +8 -8
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +3 -3
- package/lib/composables/index.js +4 -1
- package/lib/composables/useDocumentTitle.js +61 -0
- package/lib/composables/usePagination.js +122 -0
- package/lib/composables/useRequiredInject.js +26 -0
- package/lib/index.js +1 -1
- package/lib/meta.js +14 -0
- package/lib/plugins/core/index.js +91 -0
- package/lib/plugins/index.js +1 -0
- package/lib/plugins/popovers/UluPopover.vue +3 -1
- package/lib/plugins/toast/UluToast.vue +2 -2
- package/lib/utils/index.js +2 -0
- package/lib/utils/{vue-router.js → router.js} +114 -30
- package/package.json +38 -13
- package/types/components/index.d.ts +2 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/systems/facets/_mock-data.d.ts +18 -0
- package/types/components/systems/facets/_mock-data.d.ts.map +1 -0
- package/types/components/systems/facets/useFacets.d.ts +39 -0
- package/types/components/systems/facets/useFacets.d.ts.map +1 -0
- package/types/components/systems/index.d.ts +2 -0
- package/types/components/systems/index.d.ts.map +1 -0
- package/types/components/systems/scroll-anchors/symbols.d.ts +7 -0
- package/types/components/systems/scroll-anchors/symbols.d.ts.map +1 -0
- package/types/composables/index.d.ts +8 -0
- package/types/composables/index.d.ts.map +1 -0
- package/types/composables/useBreakpointManager.d.ts +8 -0
- package/types/composables/useBreakpointManager.d.ts.map +1 -0
- package/types/composables/useDocumentTitle.d.ts +22 -0
- package/types/composables/useDocumentTitle.d.ts.map +1 -0
- package/types/composables/useIcon.d.ts +6 -0
- package/types/composables/useIcon.d.ts.map +1 -0
- package/types/composables/useModifiers.d.ts +69 -0
- package/types/composables/useModifiers.d.ts.map +1 -0
- package/types/composables/usePageTitle.d.ts +19 -0
- package/types/composables/usePageTitle.d.ts.map +1 -0
- package/types/composables/usePagination.d.ts +25 -0
- package/types/composables/usePagination.d.ts.map +1 -0
- package/types/composables/useRequiredInject.d.ts +8 -0
- package/types/composables/useRequiredInject.d.ts.map +1 -0
- package/types/composables/useWindowResize.d.ts +6 -0
- package/types/composables/useWindowResize.d.ts.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/meta.d.ts +10 -0
- package/types/meta.d.ts.map +1 -0
- package/types/plugins/breakpoints/index.d.ts +2 -0
- package/types/plugins/breakpoints/index.d.ts.map +1 -0
- package/types/plugins/core/index.d.ts +3 -0
- package/types/plugins/core/index.d.ts.map +1 -0
- package/types/plugins/index.d.ts +6 -0
- package/types/plugins/index.d.ts.map +1 -0
- package/types/plugins/modals/api.d.ts +34 -0
- package/types/plugins/modals/api.d.ts.map +1 -0
- package/types/plugins/modals/index.d.ts +28 -0
- package/types/plugins/modals/index.d.ts.map +1 -0
- package/types/plugins/modals/useModals.d.ts +2 -0
- package/types/plugins/modals/useModals.d.ts.map +1 -0
- package/types/plugins/popovers/defaults.d.ts +14 -0
- package/types/plugins/popovers/defaults.d.ts.map +1 -0
- package/types/plugins/popovers/directive.d.ts +8 -0
- package/types/plugins/popovers/directive.d.ts.map +1 -0
- package/types/plugins/popovers/index.d.ts +7 -0
- package/types/plugins/popovers/index.d.ts.map +1 -0
- package/types/plugins/popovers/manager.d.ts +52 -0
- package/types/plugins/popovers/manager.d.ts.map +1 -0
- package/types/plugins/popovers/useFollow.d.ts +31 -0
- package/types/plugins/popovers/useFollow.d.ts.map +1 -0
- package/types/plugins/popovers/utils.d.ts +2 -0
- package/types/plugins/popovers/utils.d.ts.map +1 -0
- package/types/plugins/toast/defaults.d.ts +15 -0
- package/types/plugins/toast/defaults.d.ts.map +1 -0
- package/types/plugins/toast/index.d.ts +5 -0
- package/types/plugins/toast/index.d.ts.map +1 -0
- package/types/plugins/toast/store.d.ts +22 -0
- package/types/plugins/toast/store.d.ts.map +1 -0
- package/types/plugins/toast/useToast.d.ts +2 -0
- package/types/plugins/toast/useToast.d.ts.map +1 -0
- package/types/utils/dom.d.ts +8 -0
- package/types/utils/dom.d.ts.map +1 -0
- package/types/utils/index.d.ts +3 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/placeholder.d.ts +8 -0
- package/types/utils/placeholder.d.ts.map +1 -0
- package/types/utils/router.d.ts +144 -0
- package/types/utils/router.d.ts.map +1 -0
- package/types/utils/vue-router.d.ts +122 -0
- package/types/utils/vue-router.d.ts.map +1 -0
- package/dist/index-CMGxe_M1.js +0 -6466
- package/lib/components/forms/UluCheckboxMenu.vue +0 -36
- package/lib/components/forms/UluFormDropzone.vue +0 -62
- package/lib/components/systems/facets/UluFacets.vue +0 -380
- package/lib/components/systems/skeleton/UluSkeletonTextInline.vue +0 -9
- package/lib/settings.js +0 -119
- package/lib/utils/placeholder.js +0 -6
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":""}
|
package/types/meta.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export namespace injectRegistry {
|
|
2
|
+
let uluCore: string;
|
|
3
|
+
let uluIsMobile: string;
|
|
4
|
+
let uluBreakpointActive: string;
|
|
5
|
+
let uluBreakpointDirection: string;
|
|
6
|
+
let uluBreakpointManager: string;
|
|
7
|
+
let uluModals: string;
|
|
8
|
+
let uluToast: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../lib/meta.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/breakpoints/index.js"],"names":[],"mappings":"AAiBA,kEA6BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/core/index.js"],"names":[],"mappings":"AAiCA,mEAyDC;AA3DD,gCAA0D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as corePlugin } from "./core/index.js";
|
|
2
|
+
export { default as popoversPlugin } from "./popovers/index.js";
|
|
3
|
+
export { default as modalsPlugin } from "./modals/index.js";
|
|
4
|
+
export { default as toastPlugin } from "./toast/index.js";
|
|
5
|
+
export { default as breakpointsPlugin } from "./breakpoints/index.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/plugins/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export namespace modalsState {
|
|
2
|
+
export { data };
|
|
3
|
+
export { modals };
|
|
4
|
+
}
|
|
5
|
+
export function createApi(resolveModalOptions: any): {
|
|
6
|
+
open(name: any, props?: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Close the active modal
|
|
9
|
+
* @param {String|Node} focusTo The element or selector for an element to programmatically focus after modal close
|
|
10
|
+
* @see https://www.deque.com/blog/accessible-routing-in-javascript-frameworks/
|
|
11
|
+
*/
|
|
12
|
+
close(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Get a modal's config object by name
|
|
15
|
+
* @return {Object} Modal config object
|
|
16
|
+
*/
|
|
17
|
+
get(name: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* Add a modal config
|
|
20
|
+
*/
|
|
21
|
+
add(config: any): void;
|
|
22
|
+
/**
|
|
23
|
+
* Removes a modal config by name
|
|
24
|
+
* @return {Object} Modal that was removed
|
|
25
|
+
*/
|
|
26
|
+
remove(name: any): any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Reactive data from state
|
|
30
|
+
*/
|
|
31
|
+
declare const data: any;
|
|
32
|
+
declare const modals: any[];
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../lib/plugins/modals/api.js"],"names":[],"mappings":";;;;AA6BO;;IAML;;;;OAIG;;IAKH;;;OAGG;;IASH;;OAEG;;IAKH;;;OAGG;;EASH;AAxDF;;GAEG;AACH,wBAAyB;AAnBzB,4BAAkB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modals Vue Plugin
|
|
3
|
+
* @param {Object} App Vue app instance passed to plugin
|
|
4
|
+
* @param {UluModalsPluginOptions} userOptions Options to change (see defaults)
|
|
5
|
+
*/
|
|
6
|
+
export default function install(app: any, userOptions: UluModalsPluginOptions): void;
|
|
7
|
+
/**
|
|
8
|
+
* Default plugin options
|
|
9
|
+
*/
|
|
10
|
+
export type UluModalsPluginOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Name for modals component that displays app-wide modals
|
|
13
|
+
*/
|
|
14
|
+
componentNameDisplay: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name for modal component
|
|
17
|
+
*/
|
|
18
|
+
componentNameModal: string;
|
|
19
|
+
/**
|
|
20
|
+
* Modals configs [{ name, component, props }]
|
|
21
|
+
*/
|
|
22
|
+
modals: any[];
|
|
23
|
+
/**
|
|
24
|
+
* Options to merge into individual modal options (to serve as defaults for each modal, see UluModalOptions)
|
|
25
|
+
*/
|
|
26
|
+
modalOptions: UluModalOptions;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/modals/index.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AACH,uDAFW,sBAAsB,QA8BhC;;;;;;;;;;;;;;;;;;;;kBA1Ca,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModals.d.ts","sourceRoot":"","sources":["../../../lib/plugins/modals/useModals.js"],"names":[],"mappings":"AAEO,iCAMN"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let plugin: any;
|
|
3
|
+
namespace popover {
|
|
4
|
+
let inline: boolean;
|
|
5
|
+
let delay: number;
|
|
6
|
+
let placement: string;
|
|
7
|
+
let strategy: string;
|
|
8
|
+
let offset: number;
|
|
9
|
+
let arrow: boolean;
|
|
10
|
+
}
|
|
11
|
+
let tooltip: any;
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/defaults.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function mounted(trigger: any, binding: any): void;
|
|
3
|
+
function beforeUpdate(trigger: any): void;
|
|
4
|
+
function updated(trigger: any, binding: any): void;
|
|
5
|
+
function umounted(trigger: any): void;
|
|
6
|
+
}
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/directive.js"],"names":[],"mappings":";IAgBE,mDAEC;IACD,0CAEC;IACD,mDAEC;IACD,sCAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/index.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,kEAOC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Setup the store options
|
|
3
|
+
* @param {Object} userOptions
|
|
4
|
+
* @param {Object} options Resolved options
|
|
5
|
+
*/
|
|
6
|
+
export function init(userOptions?: any): {
|
|
7
|
+
plugin: any;
|
|
8
|
+
popover: {
|
|
9
|
+
inline: boolean;
|
|
10
|
+
delay: number;
|
|
11
|
+
placement: string;
|
|
12
|
+
strategy: string;
|
|
13
|
+
offset: number;
|
|
14
|
+
arrow: boolean;
|
|
15
|
+
};
|
|
16
|
+
tooltip: any;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Config for a single tooltip instance
|
|
20
|
+
*/
|
|
21
|
+
export function createConfig(userConfig: any): any;
|
|
22
|
+
/**
|
|
23
|
+
* Show a tooltip
|
|
24
|
+
* - Set by directive
|
|
25
|
+
*/
|
|
26
|
+
export function show(config: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* Hide a tooltip
|
|
29
|
+
* - Set by directive
|
|
30
|
+
*/
|
|
31
|
+
export function hide(): void;
|
|
32
|
+
export namespace options {
|
|
33
|
+
let plugin: any;
|
|
34
|
+
let popover: {
|
|
35
|
+
inline: boolean;
|
|
36
|
+
delay: number;
|
|
37
|
+
placement: string;
|
|
38
|
+
strategy: string;
|
|
39
|
+
offset: number;
|
|
40
|
+
arrow: boolean;
|
|
41
|
+
};
|
|
42
|
+
let tooltip: any;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Whether or not the tooltip is active
|
|
46
|
+
*/
|
|
47
|
+
export const active: import("vue").Ref<boolean, boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Current tooltip config
|
|
50
|
+
*/
|
|
51
|
+
export const activeConfig: import("vue").Ref<any, any>;
|
|
52
|
+
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/manager.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH;;;;;;;;;;;EAKC;AAED;;KAEK;AACL,mDAEC;AAED;;;GAGG;AACH,wCAGC;AAED;;;GAGG;AACH,6BAGC;;;;;;;;;;;;;AA5CD;;GAEG;AACH,yDAAiC;AACjC;;GAEG;AACH,uDAAsC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default function useFollowPoint(userOptions: any): {
|
|
2
|
+
/**
|
|
3
|
+
* Reactive X value
|
|
4
|
+
* @type {Object}
|
|
5
|
+
*/
|
|
6
|
+
x: any;
|
|
7
|
+
/**
|
|
8
|
+
* Reactive Y value
|
|
9
|
+
* @type {Object}
|
|
10
|
+
*/
|
|
11
|
+
y: any;
|
|
12
|
+
/**
|
|
13
|
+
* Show follow tooltip
|
|
14
|
+
*/
|
|
15
|
+
show(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Hide follow tooltip
|
|
18
|
+
*/
|
|
19
|
+
hide(): void;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} changes Updates for virtual element
|
|
23
|
+
* @param {Object} changes.x New 'x' value
|
|
24
|
+
* @param {Object} changes.y New 'y' value
|
|
25
|
+
*/
|
|
26
|
+
update(changes: {
|
|
27
|
+
x: any;
|
|
28
|
+
y: any;
|
|
29
|
+
}): void;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=useFollow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFollow.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/useFollow.js"],"names":[],"mappings":"AAOA;IAoCI;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAIH;;OAEG;;IAIH;;;;;OAKG;oBAFA;QAAwB,CAAC;QACD,CAAC;KAC3B;EASJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../lib/plugins/popovers/utils.js"],"names":[],"mappings":"AAEA,iCAEC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace toastOptions {
|
|
3
|
+
let component: any;
|
|
4
|
+
let duration: number;
|
|
5
|
+
let actions: any[];
|
|
6
|
+
}
|
|
7
|
+
namespace pluginOptions {
|
|
8
|
+
let componentName: string;
|
|
9
|
+
let componentNameDisplay: string;
|
|
10
|
+
let teleportTo: string;
|
|
11
|
+
let position: string[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/defaults.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/index.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,kEASC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive State Object (used inside global components, and as API globally)
|
|
3
|
+
*/
|
|
4
|
+
export const store: any;
|
|
5
|
+
export namespace api {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {Object} options Toast options
|
|
9
|
+
* @returns Toast object (to be used to remove)
|
|
10
|
+
*/
|
|
11
|
+
function add(options: any): any;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} toast Toast uid
|
|
15
|
+
*/
|
|
16
|
+
function remove(uid: any): void;
|
|
17
|
+
/**
|
|
18
|
+
* Remove all toasts
|
|
19
|
+
*/
|
|
20
|
+
function removeAll(): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/store.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAwBG;;IAMD;;;;OAIG;IACH,gCASC;IACD;;;OAGG;IACH,gCAKC;IACD;;OAEG;IACH,2BAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/useToast.js"],"names":[],"mappings":"AAWO,4BAPM,MAAM,CAalB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a Vue template ref's unwrapped value to its underlying DOM element
|
|
3
|
+
*
|
|
4
|
+
* @param {HTMLElement|Object} value - The unwrapped value from a template ref (e.g., `this.$refs.myElement` or `this.$refs.myComponent`)
|
|
5
|
+
* @returns {HTMLElement} The HTMLElement or undefined if not found/resolved.
|
|
6
|
+
*/
|
|
7
|
+
export function refToElement(value: HTMLElement | any): HTMLElement;
|
|
8
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../lib/utils/dom.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCAHW,WAAW,MAAO,GAChB,WAAW,CASvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder.d.ts","sourceRoot":"","sources":["../../lib/utils/placeholder.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Module Creates Menus from route or router config
|
|
3
|
+
* - Note: Functions prefixed with "$" work with $route objects (running application, provided by vue-router ie $router, useRoute, etc),
|
|
4
|
+
* @module router-utils
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Resolves a route's title from its meta.
|
|
8
|
+
* - If `meta.title` is a function, it's called with the `currentRoute` (or the route itself).
|
|
9
|
+
* - Otherwise, `meta.title` is returned.
|
|
10
|
+
* This function is the single source of truth for resolving titles from route configuration.
|
|
11
|
+
* @param {object} route The route or route match object.
|
|
12
|
+
* @param {object} [currentRoute] The current route from `useRoute()`, passed to functional titles.
|
|
13
|
+
* @returns {string|undefined} The resolved title, or undefined if not found.
|
|
14
|
+
*/
|
|
15
|
+
export function getRouteTitle(route: object, currentRoute?: object): string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Route Menu Item
|
|
18
|
+
* @typedef {Object} RouteMenuItem
|
|
19
|
+
* @property {String} path - Menu item route path
|
|
20
|
+
* @property {String} title - Menu item title
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Get root/base static routes as menu items
|
|
24
|
+
* @param {*} routes Routes to build menu from (not router instance)
|
|
25
|
+
* @param {Object} options Options
|
|
26
|
+
* @param {Object} options.qualifier Callback to qualify as a base route (defaults to isStaticBaseRoute)
|
|
27
|
+
* @param {Object} options.item Options for createMenuItem
|
|
28
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
29
|
+
*/
|
|
30
|
+
export function createBaseMenu(routes: any, options: {
|
|
31
|
+
qualifier: any;
|
|
32
|
+
item: any;
|
|
33
|
+
}): Array<RouteMenuItem>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns menu flat (no parent children)
|
|
36
|
+
*/
|
|
37
|
+
export function flattenMenu(menu: any): any;
|
|
38
|
+
/**
|
|
39
|
+
* Print out a section's menu based on path
|
|
40
|
+
* @param {*} routes All routes
|
|
41
|
+
* @param {*} sectionPath Path for section to create menu
|
|
42
|
+
* @param {Object} options Options
|
|
43
|
+
* @param {Boolean} options.includeIndex Include the parent/index in the menu items ie ({ path: "" })
|
|
44
|
+
* @param {Object} options.item Options to be passed to createMenuItem
|
|
45
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
46
|
+
*/
|
|
47
|
+
export function createSectionMenu(routes: any, sectionPath: any, options: {
|
|
48
|
+
includeIndex: boolean;
|
|
49
|
+
item: any;
|
|
50
|
+
}): Array<RouteMenuItem>;
|
|
51
|
+
/**
|
|
52
|
+
* For a given array of child routes return the index
|
|
53
|
+
* @param {Array} children Children array of routes
|
|
54
|
+
* @returns {Object} Route
|
|
55
|
+
*/
|
|
56
|
+
export function getChildIndexRoute(children: any[]): any;
|
|
57
|
+
/**
|
|
58
|
+
* Creates common menu item structure from route, pulls title and weight from meta (on route or index child)
|
|
59
|
+
* @param {Object} route Route
|
|
60
|
+
* @param {Object} routePath The final path for the menu item
|
|
61
|
+
* @param {Object} options Function to allow alterering the menu item (adding meta, etc)
|
|
62
|
+
* @param {Function} options.modify Function to allow alterering the menu item (adding meta, etc) (args: item, route)
|
|
63
|
+
* @param {Function} options.indexMeta Include the routes index child's meta (merged on top of route meta)
|
|
64
|
+
* @returns {RouteMenuItem} Menu item
|
|
65
|
+
*/
|
|
66
|
+
export function createMenuItem(route: any, routePath: any, options: {
|
|
67
|
+
modify: Function;
|
|
68
|
+
indexMeta: Function;
|
|
69
|
+
}): RouteMenuItem;
|
|
70
|
+
/**
|
|
71
|
+
* Test if route is static (doesn't include parameters)
|
|
72
|
+
* @param {Object} route Route object to test
|
|
73
|
+
* @returns {Boolean} Whether or not this route is static (not dynamic)
|
|
74
|
+
*/
|
|
75
|
+
export function isStaticRoute(route: any): boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param {Object} route Route object to test
|
|
79
|
+
* @returns {Boolean} Whether or not this route is a static base route
|
|
80
|
+
*/
|
|
81
|
+
export function isStaticBaseRoute(route: any): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Function to make normal <a> behave as router links instread of page reload
|
|
84
|
+
* @param {Object} router Router instance (ie src/router) to push routes to
|
|
85
|
+
* @param {Object} event The event object that triggered route change (ie. onclick) pass event object
|
|
86
|
+
*/
|
|
87
|
+
export function nativeLinkRouter(router: any, event: any): void;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the child routes for base route
|
|
90
|
+
* @param {Object} route Route Object
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
export function $getRouteChildren(route: any, parent?: any): any;
|
|
94
|
+
/**
|
|
95
|
+
* Returns the route's parent
|
|
96
|
+
* @param {Object} route Route Object
|
|
97
|
+
* @param {Object} deepest By default this returns the routes parent, if deepest it will return it's base route (top level parent)
|
|
98
|
+
* @return {Object|Null} Parent route, if there is no parent route for the given route this will return null
|
|
99
|
+
*/
|
|
100
|
+
export function $getParentRoute(route: any, deepest: any): any | null;
|
|
101
|
+
/**
|
|
102
|
+
* For a given $route will return all it's children as menu items,
|
|
103
|
+
* using the route's meta.title property for the title. This is for sections only (routes with children)
|
|
104
|
+
* - Useful for dynamic menus (menus within some unknown section) where you don't want to write static paths
|
|
105
|
+
* @param {Object} route Actual $route object
|
|
106
|
+
* @param {Object} options Options
|
|
107
|
+
* @param {Object} options.parent Route parent object, defaults to parent of route
|
|
108
|
+
* @param {Boolean} options.includeIndex Include the parent/index in the menu items ie ({ path: "" })
|
|
109
|
+
* @param {Object} options.item Options for createMenuItem
|
|
110
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
111
|
+
*/
|
|
112
|
+
export function $createSectionMenu(route: any, options: {
|
|
113
|
+
parent: any;
|
|
114
|
+
includeIndex: boolean;
|
|
115
|
+
item: any;
|
|
116
|
+
}): Array<RouteMenuItem>;
|
|
117
|
+
/**
|
|
118
|
+
* For a given $route, this will generate a breadcrumb trail.
|
|
119
|
+
* It iterates through `route.matched` to build the trail.
|
|
120
|
+
* - Falls back to `meta.title` (string or function).
|
|
121
|
+
* - Skips routes where `meta.breadcrumb` is set to `false`.
|
|
122
|
+
* - Avoids duplicate crumbs for nested routes with empty paths.
|
|
123
|
+
* @param {Object} route The Vue Router `$route` object.
|
|
124
|
+
* @returns {Array.<{title: String, to: Object, current: Boolean}>} An array of breadcrumb items.
|
|
125
|
+
*/
|
|
126
|
+
export function $createBreadcrumb(route: any): Array<{
|
|
127
|
+
title: string;
|
|
128
|
+
to: any;
|
|
129
|
+
current: boolean;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* Route Menu Item
|
|
133
|
+
*/
|
|
134
|
+
export type RouteMenuItem = {
|
|
135
|
+
/**
|
|
136
|
+
* - Menu item route path
|
|
137
|
+
*/
|
|
138
|
+
path: string;
|
|
139
|
+
/**
|
|
140
|
+
* - Menu item title
|
|
141
|
+
*/
|
|
142
|
+
title: string;
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../lib/utils/router.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;GAQG;AACH,qCAJW,MAAM,iBACN,MAAM,GACJ,MAAM,GAAC,SAAS,CAW5B;AAED;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,uCANW,GAAC,WAET;IAAwB,SAAS;IACT,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CAgCjC;AAED;;GAEG;AACH,4CAcC;AAED;;;;;;;;GAQG;AACH,0CAPW,GAAC,eACD,GAAC,WAET;IAAyB,YAAY;IACb,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CA4BjC;AAED;;;;GAIG;AACH,yDAEC;AAED;;;;;;;;GAQG;AACH,oEAJG;IAA0B,MAAM;IACN,SAAS;CACnC,GAAU,aAAa,CAuBzB;AAED;;;;GAIG;AACH,mDAEC;AAED;;;;GAIG;AACH,uDAGC;AAED;;;;GAIG;AACH,gEAUC;AAED;;;;GAIG;AACH,iEAEC;AAED;;;;;GAKG;AACH,2DAFY,UAAW,CAUtB;AAUD;;;;;;;;;;GAUG;AACH,wDALG;IAAwB,MAAM;IACL,YAAY;IACb,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CAgBjC;AAED;;;;;;;;GAQG;AACH,+CAFa,KAAK,CAAE;IAAC,KAAK,SAAS;IAAC,EAAE,MAAS;IAAC,OAAO,UAAS;CAAC,CAAC,CA6BjE"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Module Creates Menus from route or router config
|
|
3
|
+
* - Note: Functions prefixed with "$" work with $route objects (running application, provided by vue-router ie $router, useRoute, etc),
|
|
4
|
+
* @module utils/router-utils
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Route Menu Item
|
|
8
|
+
* @typedef {Object} RouteMenuItem
|
|
9
|
+
* @property {String} path - Menu item route path
|
|
10
|
+
* @property {String} title - Menu item title
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Get root/base static routes as menu items
|
|
14
|
+
* @param {*} routes Routes to build menu from (not router instance)
|
|
15
|
+
* @param {Object} options Options
|
|
16
|
+
* @param {Object} options.qualifier Callback to qualify as a base route (defaults to isStaticBaseRoute)
|
|
17
|
+
* @param {Object} options.item Options for createMenuItem
|
|
18
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
19
|
+
*/
|
|
20
|
+
export function createBaseMenu(routes: any, options: {
|
|
21
|
+
qualifier: any;
|
|
22
|
+
item: any;
|
|
23
|
+
}): Array<RouteMenuItem>;
|
|
24
|
+
/**
|
|
25
|
+
* Print out a section's menu based on path
|
|
26
|
+
* @param {*} routes All routes
|
|
27
|
+
* @param {*} sectionPath Path for section to create menu
|
|
28
|
+
* @param {Object} options Options
|
|
29
|
+
* @param {Boolean} options.includeIndex Include the parent/index in the menu items ie ({ path: "" })
|
|
30
|
+
* @param {Object} options.item Options to be passed to createMenuItem
|
|
31
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
32
|
+
*/
|
|
33
|
+
export function createSectionMenu(routes: any, sectionPath: any, options: {
|
|
34
|
+
includeIndex: boolean;
|
|
35
|
+
item: any;
|
|
36
|
+
}): Array<RouteMenuItem>;
|
|
37
|
+
/**
|
|
38
|
+
* For a given route this will return the route that renders. For routes without
|
|
39
|
+
* children this is the route itself for those with children (first child with empty path)
|
|
40
|
+
* @param {Object} route Route object to resolve
|
|
41
|
+
* @returns {Object} Resolved route
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* For a given array of child routes return the index
|
|
45
|
+
* @param {Array} children Children array of routes
|
|
46
|
+
* @returns {Object} Route
|
|
47
|
+
*/
|
|
48
|
+
export function getChildIndexRoute(children: any[]): any;
|
|
49
|
+
/**
|
|
50
|
+
* Creates common menu item structure from route, pulls title and weight from meta (on route or index child)
|
|
51
|
+
* @param {Object} route Route
|
|
52
|
+
* @param {Object} routePath The final path for the menu item
|
|
53
|
+
* @param {Object} options Function to allow alterering the menu item (adding meta, etc)
|
|
54
|
+
* @param {Function} options.modify Function to allow alterering the menu item (adding meta, etc) (args: item, route)
|
|
55
|
+
* @param {Function} options.indexMeta Include the routes index child's meta (merged on top of route meta)
|
|
56
|
+
* @returns {RouteMenuItem} Menu item
|
|
57
|
+
*/
|
|
58
|
+
export function createMenuItem(route: any, routePath: any, options: {
|
|
59
|
+
modify: Function;
|
|
60
|
+
indexMeta: Function;
|
|
61
|
+
}): RouteMenuItem;
|
|
62
|
+
/**
|
|
63
|
+
* Test if route is static (doesn't incude parameters)
|
|
64
|
+
* @param {Object} route Route object to test
|
|
65
|
+
* @returns {Boolean} Whether or not this route is static (not dynamic)
|
|
66
|
+
*/
|
|
67
|
+
export function isStaticRoute(route: any): boolean;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @param {Object} route Route object to test
|
|
71
|
+
* @returns {Boolean} Whether or not this route is a static base route
|
|
72
|
+
*/
|
|
73
|
+
export function isStaticBaseRoute(route: any): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Function to make normal <a> behave as router links instread of page reload
|
|
76
|
+
* @param {Object} router Router instance (ie src/router) to push routes to
|
|
77
|
+
* @param {Object} event The event object that triggered route change (ie. onclick) pass event object
|
|
78
|
+
*/
|
|
79
|
+
export function nativeLinkRouter(router: any, event: any): void;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the child routes for base route
|
|
82
|
+
* @param {Object} route Route Object
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
export function $getRouteChildren(route: any, parent?: any): any;
|
|
86
|
+
/**
|
|
87
|
+
* Returns the route's parent
|
|
88
|
+
* @param {Object} route Route Object
|
|
89
|
+
* @param {Object} deepest By default this returns the routes parent, if deepest it will return it's base route (top level parent)
|
|
90
|
+
* @return {Object|Null} Parent route, if there is no parent route for the given route this will return null
|
|
91
|
+
*/
|
|
92
|
+
export function $getParentRoute(route: any, deepest: any): any | null;
|
|
93
|
+
/**
|
|
94
|
+
* For a given $route will return all it's children as menu items,
|
|
95
|
+
* using the route's meta.title property for the title. This is for sections only (routes with children)
|
|
96
|
+
* - Useful for dynamic menus (menus within some unknown section) where you don't want to write static paths
|
|
97
|
+
* @param {Object} route Actual $route object
|
|
98
|
+
* @param {Object} options Options
|
|
99
|
+
* @param {Object} options.parent Route parent object, defaults to parent of route
|
|
100
|
+
* @param {Boolean} options.includeIndex Include the parent/index in the menu items ie ({ path: "" })
|
|
101
|
+
* @param {Object} options.item Options for createMenuItem
|
|
102
|
+
* @returns {Array.<RouteMenuItem>} Array of menu items
|
|
103
|
+
*/
|
|
104
|
+
export function $createSectionMenu(route: any, options: {
|
|
105
|
+
parent: any;
|
|
106
|
+
includeIndex: boolean;
|
|
107
|
+
item: any;
|
|
108
|
+
}): Array<RouteMenuItem>;
|
|
109
|
+
/**
|
|
110
|
+
* Route Menu Item
|
|
111
|
+
*/
|
|
112
|
+
export type RouteMenuItem = {
|
|
113
|
+
/**
|
|
114
|
+
* - Menu item route path
|
|
115
|
+
*/
|
|
116
|
+
path: string;
|
|
117
|
+
/**
|
|
118
|
+
* - Menu item title
|
|
119
|
+
*/
|
|
120
|
+
title: string;
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=vue-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue-router.d.ts","sourceRoot":"","sources":["../../lib/utils/vue-router.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,uCANW,GAAC,WAET;IAAwB,SAAS;IACT,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CAiBjC;AAED;;;;;;;;GAQG;AACH,0CAPW,GAAC,eACD,GAAC,WAET;IAAyB,YAAY;IACb,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CA6BjC;AAED;;;;;GAKG;AASH;;;;GAIG;AACH,yDAEC;AACD;;;;;;;;GAQG;AACH,oEAJG;IAA0B,MAAM;IACN,SAAS;CACnC,GAAU,aAAa,CAsBzB;AACD;;;;GAIG;AACH,mDAEC;AACD;;;;GAIG;AACH,uDAGC;AACD;;;;GAIG;AACH,gEAUC;AACD;;;;GAIG;AACH,iEAEC;AACD;;;;;GAKG;AACH,2DAFY,UAAW,CAUtB;AAUD;;;;;;;;;;GAUG;AACH,wDALG;IAAwB,MAAM;IACL,YAAY;IACb,IAAI;CAC5B,GAAU,KAAK,CAAE,aAAa,CAAC,CAgBjC"}
|