@ulu/frontend-vue 0.1.0-beta.5 → 0.1.0-beta.7

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 (74) hide show
  1. package/README.md +10 -2
  2. package/dist/{breakpoints-DVO2G7-7.js → breakpoints-SWofnYUx.js} +1 -1
  3. package/dist/frontend-vue.js +1 -1
  4. package/dist/{index-BPVCOXRL.js → index-CtdKSn3_.js} +326 -338
  5. package/lib/components/collapsible/UluAccordion.vue +1 -1
  6. package/lib/components/collapsible/UluModal.vue +4 -5
  7. package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
  8. package/lib/components/elements/UluAlert.vue +1 -2
  9. package/lib/components/elements/UluButton.vue +2 -2
  10. package/lib/components/elements/UluExternalLink.vue +1 -2
  11. package/lib/components/elements/UluIcon.vue +6 -11
  12. package/lib/components/elements/UluTag.vue +1 -1
  13. package/lib/components/layout/UluTitleRail.vue +2 -4
  14. package/lib/components/navigation/UluBreadcrumb.vue +1 -2
  15. package/lib/components/navigation/UluMenu.vue +1 -1
  16. package/lib/plugins/core/index.js +5 -5
  17. package/lib/plugins/toast/UluToast.vue +1 -1
  18. package/package.json +15 -5
  19. package/types/components/index.d.ts +2 -0
  20. package/types/components/index.d.ts.map +1 -0
  21. package/types/components/systems/index.d.ts +2 -0
  22. package/types/components/systems/index.d.ts.map +1 -0
  23. package/types/components/systems/scroll-anchors/symbols.d.ts +7 -0
  24. package/types/components/systems/scroll-anchors/symbols.d.ts.map +1 -0
  25. package/types/composables/index.d.ts +5 -0
  26. package/types/composables/index.d.ts.map +1 -0
  27. package/types/composables/useBreakpointManager.d.ts +8 -0
  28. package/types/composables/useBreakpointManager.d.ts.map +1 -0
  29. package/types/composables/useIcon.d.ts +6 -0
  30. package/types/composables/useIcon.d.ts.map +1 -0
  31. package/types/composables/useModifiers.d.ts +69 -0
  32. package/types/composables/useModifiers.d.ts.map +1 -0
  33. package/types/composables/useWindowResize.d.ts +6 -0
  34. package/types/composables/useWindowResize.d.ts.map +1 -0
  35. package/types/index.d.ts +4 -0
  36. package/types/index.d.ts.map +1 -0
  37. package/types/plugins/breakpoints/index.d.ts +2 -0
  38. package/types/plugins/breakpoints/index.d.ts.map +1 -0
  39. package/types/plugins/core/index.d.ts +3 -0
  40. package/types/plugins/core/index.d.ts.map +1 -0
  41. package/types/plugins/index.d.ts +6 -0
  42. package/types/plugins/index.d.ts.map +1 -0
  43. package/types/plugins/modals/api.d.ts +34 -0
  44. package/types/plugins/modals/api.d.ts.map +1 -0
  45. package/types/plugins/modals/index.d.ts +28 -0
  46. package/types/plugins/modals/index.d.ts.map +1 -0
  47. package/types/plugins/modals/useModals.d.ts +2 -0
  48. package/types/plugins/modals/useModals.d.ts.map +1 -0
  49. package/types/plugins/popovers/defaults.d.ts +14 -0
  50. package/types/plugins/popovers/defaults.d.ts.map +1 -0
  51. package/types/plugins/popovers/directive.d.ts +8 -0
  52. package/types/plugins/popovers/directive.d.ts.map +1 -0
  53. package/types/plugins/popovers/index.d.ts +7 -0
  54. package/types/plugins/popovers/index.d.ts.map +1 -0
  55. package/types/plugins/popovers/manager.d.ts +52 -0
  56. package/types/plugins/popovers/manager.d.ts.map +1 -0
  57. package/types/plugins/popovers/useFollow.d.ts +31 -0
  58. package/types/plugins/popovers/useFollow.d.ts.map +1 -0
  59. package/types/plugins/popovers/utils.d.ts +2 -0
  60. package/types/plugins/popovers/utils.d.ts.map +1 -0
  61. package/types/plugins/toast/defaults.d.ts +15 -0
  62. package/types/plugins/toast/defaults.d.ts.map +1 -0
  63. package/types/plugins/toast/index.d.ts +5 -0
  64. package/types/plugins/toast/index.d.ts.map +1 -0
  65. package/types/plugins/toast/store.d.ts +22 -0
  66. package/types/plugins/toast/store.d.ts.map +1 -0
  67. package/types/plugins/toast/useToast.d.ts +2 -0
  68. package/types/plugins/toast/useToast.d.ts.map +1 -0
  69. package/types/utils/dom.d.ts +8 -0
  70. package/types/utils/dom.d.ts.map +1 -0
  71. package/types/utils/placeholder.d.ts +8 -0
  72. package/types/utils/placeholder.d.ts.map +1 -0
  73. package/types/utils/vue-router.d.ts +122 -0
  74. package/types/utils/vue-router.d.ts.map +1 -0
@@ -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,2 @@
1
+ export function newUid(): string;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -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,5 @@
1
+ /**
2
+ * Install plugin
3
+ */
4
+ export default function install(app: any, userOptions?: {}): void;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export function useToast(): object;
2
+ //# sourceMappingURL=useToast.d.ts.map
@@ -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,8 @@
1
+ declare namespace _default {
2
+ let text: string;
3
+ let textSmall: string;
4
+ let paragraph: string;
5
+ let paragraphSmall: string;
6
+ }
7
+ export default _default;
8
+ //# sourceMappingURL=placeholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placeholder.d.ts","sourceRoot":"","sources":["../../lib/utils/placeholder.js"],"names":[],"mappings":""}
@@ -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"}