@ulu/frontend-vue 0.1.0-beta.2 → 0.1.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +113 -2
  2. package/dist/{breakpoints-ClT9bfZm.js → breakpoints-DOXmgVoG.js} +1 -1
  3. package/dist/frontend-vue.css +1 -1
  4. package/dist/frontend-vue.js +75 -73
  5. package/dist/index-BpmkfeZb.js +6671 -0
  6. package/lib/components/collapsible/UluAccordion.vue +1 -1
  7. package/lib/components/collapsible/UluModal.vue +4 -5
  8. package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
  9. package/lib/components/elements/UluAlert.vue +1 -2
  10. package/lib/components/elements/UluBadge.vue +27 -28
  11. package/lib/components/elements/UluBadgeStack.vue +8 -13
  12. package/lib/components/elements/UluButton.vue +2 -2
  13. package/lib/components/elements/UluButtonVerbose.vue +119 -0
  14. package/lib/components/elements/UluCard.vue +1 -1
  15. package/lib/components/elements/UluDefinitionList.vue +14 -17
  16. package/lib/components/elements/UluExternalLink.vue +22 -29
  17. package/lib/components/elements/UluIcon.vue +22 -17
  18. package/lib/components/elements/UluList.vue +53 -55
  19. package/lib/components/elements/UluSpokeSpinner.vue +12 -18
  20. package/lib/components/elements/UluTag.vue +35 -35
  21. package/lib/components/forms/UluCheckboxMenu.vue +32 -31
  22. package/lib/components/forms/UluFileDisplay.vue +40 -31
  23. package/lib/components/forms/UluFormFile.vue +22 -24
  24. package/lib/components/forms/UluFormMessage.vue +7 -10
  25. package/lib/components/forms/UluFormSelect.vue +16 -16
  26. package/lib/components/forms/UluFormText.vue +15 -15
  27. package/lib/components/forms/UluSearchForm.vue +8 -10
  28. package/lib/components/index.js +1 -1
  29. package/lib/components/layout/UluAdaptiveLayout.vue +3 -5
  30. package/lib/components/layout/UluTitleRail.vue +9 -5
  31. package/lib/components/layout/UluWhenBreakpoint.vue +71 -77
  32. package/lib/components/navigation/UluBreadcrumb.vue +1 -2
  33. package/lib/components/navigation/UluMenu.vue +3 -3
  34. package/lib/components/navigation/UluPager.vue +102 -0
  35. package/lib/components/systems/facets/ExampleFacetsWithPagination.vue +119 -0
  36. package/lib/components/systems/facets/UluFacetsFilters.vue +73 -0
  37. package/lib/components/systems/facets/UluFacetsList.vue +13 -14
  38. package/lib/components/systems/facets/UluFacetsResults.vue +57 -0
  39. package/lib/components/systems/facets/UluFacetsSearch.vue +26 -49
  40. package/lib/components/systems/facets/UluFacetsSidebarLayout.vue +31 -0
  41. package/lib/components/systems/facets/UluFacetsSort.vue +45 -0
  42. package/lib/components/systems/facets/_facets.scss +2 -3
  43. package/lib/components/systems/facets/_mock-data.js +40 -0
  44. package/lib/components/systems/facets/useFacets.js +221 -0
  45. package/lib/components/systems/index.js +10 -2
  46. package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +2 -1
  47. package/lib/components/systems/skeleton/UluShowSkeleton.vue +9 -8
  48. package/lib/components/systems/skeleton/UluSkeletonContent.vue +39 -43
  49. package/lib/components/systems/skeleton/UluSkeletonMedia.vue +4 -6
  50. package/lib/components/systems/skeleton/UluSkeletonText.vue +27 -0
  51. package/lib/components/systems/slider/UluImageSlideShow.vue +1 -1
  52. package/lib/components/systems/slider/UluSlideShow.vue +8 -3
  53. package/lib/components/systems/table-sticky/UluTableSticky.vue +8 -8
  54. package/lib/components/systems/table-sticky/UluTableStickyTable.vue +3 -3
  55. package/lib/composables/index.js +3 -1
  56. package/lib/composables/useDocumentTitle.js +47 -0
  57. package/lib/composables/usePageTitle.js +37 -0
  58. package/lib/composables/usePagination.js +122 -0
  59. package/lib/composables/useRequiredInject.js +26 -0
  60. package/lib/index.js +1 -1
  61. package/lib/meta.js +14 -0
  62. package/lib/plugins/core/index.js +91 -0
  63. package/lib/plugins/index.js +1 -0
  64. package/lib/plugins/toast/UluToast.vue +2 -2
  65. package/lib/utils/index.js +2 -0
  66. package/lib/utils/{vue-router.js → router.js} +106 -11
  67. package/package.json +37 -14
  68. package/types/components/index.d.ts +2 -0
  69. package/types/components/index.d.ts.map +1 -0
  70. package/types/components/systems/facets/_mock-data.d.ts +18 -0
  71. package/types/components/systems/facets/_mock-data.d.ts.map +1 -0
  72. package/types/components/systems/facets/useFacets.d.ts +39 -0
  73. package/types/components/systems/facets/useFacets.d.ts.map +1 -0
  74. package/types/components/systems/index.d.ts +2 -0
  75. package/types/components/systems/index.d.ts.map +1 -0
  76. package/types/components/systems/scroll-anchors/symbols.d.ts +7 -0
  77. package/types/components/systems/scroll-anchors/symbols.d.ts.map +1 -0
  78. package/types/composables/index.d.ts +7 -0
  79. package/types/composables/index.d.ts.map +1 -0
  80. package/types/composables/useBreakpointManager.d.ts +8 -0
  81. package/types/composables/useBreakpointManager.d.ts.map +1 -0
  82. package/types/composables/useDocumentTitle.d.ts +18 -0
  83. package/types/composables/useDocumentTitle.d.ts.map +1 -0
  84. package/types/composables/useIcon.d.ts +6 -0
  85. package/types/composables/useIcon.d.ts.map +1 -0
  86. package/types/composables/useModifiers.d.ts +69 -0
  87. package/types/composables/useModifiers.d.ts.map +1 -0
  88. package/types/composables/usePageTitle.d.ts +19 -0
  89. package/types/composables/usePageTitle.d.ts.map +1 -0
  90. package/types/composables/usePagination.d.ts +25 -0
  91. package/types/composables/usePagination.d.ts.map +1 -0
  92. package/types/composables/useRequiredInject.d.ts +8 -0
  93. package/types/composables/useRequiredInject.d.ts.map +1 -0
  94. package/types/composables/useWindowResize.d.ts +6 -0
  95. package/types/composables/useWindowResize.d.ts.map +1 -0
  96. package/types/index.d.ts +5 -0
  97. package/types/index.d.ts.map +1 -0
  98. package/types/meta.d.ts +10 -0
  99. package/types/meta.d.ts.map +1 -0
  100. package/types/plugins/breakpoints/index.d.ts +2 -0
  101. package/types/plugins/breakpoints/index.d.ts.map +1 -0
  102. package/types/plugins/core/index.d.ts +3 -0
  103. package/types/plugins/core/index.d.ts.map +1 -0
  104. package/types/plugins/index.d.ts +6 -0
  105. package/types/plugins/index.d.ts.map +1 -0
  106. package/types/plugins/modals/api.d.ts +34 -0
  107. package/types/plugins/modals/api.d.ts.map +1 -0
  108. package/types/plugins/modals/index.d.ts +28 -0
  109. package/types/plugins/modals/index.d.ts.map +1 -0
  110. package/types/plugins/modals/useModals.d.ts +2 -0
  111. package/types/plugins/modals/useModals.d.ts.map +1 -0
  112. package/types/plugins/popovers/defaults.d.ts +14 -0
  113. package/types/plugins/popovers/defaults.d.ts.map +1 -0
  114. package/types/plugins/popovers/directive.d.ts +8 -0
  115. package/types/plugins/popovers/directive.d.ts.map +1 -0
  116. package/types/plugins/popovers/index.d.ts +7 -0
  117. package/types/plugins/popovers/index.d.ts.map +1 -0
  118. package/types/plugins/popovers/manager.d.ts +52 -0
  119. package/types/plugins/popovers/manager.d.ts.map +1 -0
  120. package/types/plugins/popovers/useFollow.d.ts +31 -0
  121. package/types/plugins/popovers/useFollow.d.ts.map +1 -0
  122. package/types/plugins/popovers/utils.d.ts +2 -0
  123. package/types/plugins/popovers/utils.d.ts.map +1 -0
  124. package/types/plugins/toast/defaults.d.ts +15 -0
  125. package/types/plugins/toast/defaults.d.ts.map +1 -0
  126. package/types/plugins/toast/index.d.ts +5 -0
  127. package/types/plugins/toast/index.d.ts.map +1 -0
  128. package/types/plugins/toast/store.d.ts +22 -0
  129. package/types/plugins/toast/store.d.ts.map +1 -0
  130. package/types/plugins/toast/useToast.d.ts +2 -0
  131. package/types/plugins/toast/useToast.d.ts.map +1 -0
  132. package/types/utils/dom.d.ts +8 -0
  133. package/types/utils/dom.d.ts.map +1 -0
  134. package/types/utils/index.d.ts +3 -0
  135. package/types/utils/index.d.ts.map +1 -0
  136. package/types/utils/placeholder.d.ts +8 -0
  137. package/types/utils/placeholder.d.ts.map +1 -0
  138. package/types/utils/router.d.ts +141 -0
  139. package/types/utils/router.d.ts.map +1 -0
  140. package/types/utils/vue-router.d.ts +122 -0
  141. package/types/utils/vue-router.d.ts.map +1 -0
  142. package/dist/frontend-vue.umd.cjs +0 -561
  143. package/dist/index-P5Rwl_Dl.js +0 -7263
  144. package/lib/components/forms/UluFormDropzone.vue +0 -62
  145. package/lib/components/systems/facets/UluFacets.vue +0 -380
  146. package/lib/components/systems/skeleton/UluSkeletonTextInline.vue +0 -9
  147. package/lib/settings.js +0 -119
  148. package/lib/utils/placeholder.js +0 -6
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Manages the document's <title> tag based on the current route's title.
3
+ * It pulls titles from the `usePageTitle` system, falling back to `meta.title`,
4
+ * and formats it with a template.
5
+ *
6
+ * This should be called once in the root App.vue component.
7
+ *
8
+ * @param {object} options
9
+ * @param {string} [options.titleTemplate='%s | My Awesome Site'] - The template for the title.
10
+ * @param {Function} [options.useRoute=defaultUseRoute] - The `useRoute` function, injectable for testing.
11
+ * @param {Function} [options.useHead=defaultUseHead] - The `useHead` function, injectable for testing.
12
+ */
13
+ export function useDocumentTitle(options?: {
14
+ titleTemplate?: string;
15
+ useRoute?: Function;
16
+ useHead?: Function;
17
+ }): void;
18
+ //# sourceMappingURL=useDocumentTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../lib/composables/useDocumentTitle.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AACH,2CAJG;IAAyB,aAAa,GAA9B,MAAM;IACa,QAAQ;IACR,OAAO;CACpC,QA8BA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Utility composable for handling and formatting icon props for UluIcon.
3
+ * @returns {Object} An object with utility functions { getIconProps, getClassesFromDefinition }
4
+ */
5
+ export function useIcon(): any;
6
+ //# sourceMappingURL=useIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIcon.d.ts","sourceRoot":"","sources":["../../lib/composables/useIcon.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,+BAyDC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * A composable to manage and resolve BEM style modifiers for a component,
3
+ * combining user-passed modifiers with internally derived conditional modifiers.
4
+ *
5
+ * @param {object} options - The options for the composable.
6
+ * @param {object} options.props - The component's props object. (Must contain a 'modifiers' prop if user-passed modifiers are expected)
7
+ * @param {string | import('vue').Ref<string>} options.baseClass - The base CSS class name for the component (e.g., 'modal').
8
+ * Can be a string or a ref to a string.
9
+ * @param {string | string[] | Object.<string, any> | import('vue').ComputedRef<string | string[] | Object.<string, any>>} [options.internal={}] -
10
+ * A flexible input for component's internal modifiers. Can be a string, array of strings/objects, or an object mapping modifier names to conditions.
11
+ * @returns {object} An object containing the computed property `resolvedModifiers`
12
+ *
13
+ * @example
14
+ * // In MyComponent.vue:
15
+ * <template>
16
+ * <div :class="[resolvedModifiers, 'other-class']"></div>
17
+ * </template>
18
+ *
19
+ * <script>
20
+ * import { computed, ref } from 'vue';
21
+ * import { useModifiers } from './composables/useModifiers.js'; // Adjust path
22
+ *
23
+ * export default {
24
+ * props: {
25
+ * variant: String, // e.g., 'primary', 'secondary'
26
+ * isActive: Boolean,
27
+ * modifiers: [String, Array, Object] // User-passed modifiers
28
+ * },
29
+ * setup(props) {
30
+ * const isHovered = ref(false);
31
+ *
32
+ * // Define component-internal modifiers based on props or local state
33
+ * const internalModifiers = computed(() => ({
34
+ * [props.variant]: !!props.variant, // Add 'primary' or 'secondary' if prop exists
35
+ * 'active': props.isActive, // Add 'active' if isActive prop is true
36
+ * 'hovered': isHovered.value, // Add 'hovered' if local state is true
37
+ * 'default': !props.variant && !props.isActive // Add 'default' if no variant/active
38
+ * }));
39
+ *
40
+ * // Use the composable to get the combined modifier classes
41
+ * const { resolvedModifiers } = useModifiers({
42
+ * props: props, // Pass component props for 'modifiers' prop
43
+ * baseClass: 'button', // The BEM block name
44
+ * internal: internalModifiers // The computed internal modifiers
45
+ * });
46
+ *
47
+ * return { resolvedModifiers, isHovered };
48
+ * }
49
+ * };
50
+ * </script>
51
+ *
52
+ * // Resulting class examples for 'my-component':
53
+ * // <MyComponent /> => class="my-component my-component--default"
54
+ * // <MyComponent variant="primary" /> => class="my-component my-component--primary"
55
+ * // <MyComponent isActive /> => class="my-component my-component--active"
56
+ * // <MyComponent modifiers="condensed" /> => class="my-component my-component--default my-component--condensed"
57
+ * // <MyComponent variant="secondary" :isActive="true" modifiers="round" />
58
+ * // => class="my-component my-component--secondary my-component--active my-component--round"
59
+ */
60
+ export function useModifiers({ props, baseClass, internal }: {
61
+ props: object;
62
+ baseClass: string | import("vue").Ref<string>;
63
+ internal?: string | string[] | {
64
+ [x: string]: any;
65
+ } | import("vue").ComputedRef<string | string[] | {
66
+ [x: string]: any;
67
+ }>;
68
+ }): object;
69
+ //# sourceMappingURL=useModifiers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModifiers.d.ts","sourceRoot":"","sources":["../../lib/composables/useModifiers.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,6DAtDG;IAAwB,KAAK,EAArB,MAAM;IACsC,SAAS,EAArD,MAAM,GAAG,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;IAEuF,QAAQ,GAAjI,MAAM,GAAG,MAAM,EAAE,GAAG;YAAQ,MAAM,GAAE,GAAG;KAAC,GAAG,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG;YAAQ,MAAM,GAAE,GAAG;KAAC,CAAC;CAEtH,GAAU,MAAM,CA0ElB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A composable to set the title for the current page/route from within its component.
3
+ * This provides a single source of truth for a page's title, which can be
4
+ * consumed by various parts of the application (e.g., breadcrumbs, document title).
5
+ * @param {import('vue').Ref<string> | string} title The title to set for the current page. Can be a ref, computed, or a plain string.
6
+ * @param {{ useRoute: Function }} options For dependency injection in tests/stories.
7
+ */
8
+ export function usePageTitle(title: import("vue").Ref<string> | string, { useRoute }?: {
9
+ useRoute: Function;
10
+ }): void;
11
+ /**
12
+ * Gets the dynamically set page title for a given path.
13
+ * For internal use by consumers like breadcrumb or document title utilities.
14
+ * @param {string} path The route path to look up.
15
+ * @returns {string | undefined}
16
+ */
17
+ export function getPageTitle(path: string): string | undefined;
18
+ export const pageTitles: {};
19
+ //# sourceMappingURL=usePageTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePageTitle.d.ts","sourceRoot":"","sources":["../../lib/composables/usePageTitle.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,oCAHW,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,iBAClC;IAAE,QAAQ,WAAU;CAAE,QAchC;AAED;;;;;GAKG;AACH,mCAHW,MAAM,GACJ,MAAM,GAAG,SAAS,CAI9B;AA/BD,4BAAuC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * A Vue composable for handling pagination logic.
3
+ * It interacts with vue-router to keep the current page in the URL query string.
4
+ *
5
+ * @param {import('vue').Ref<Array<any>>} items - A ref containing the full list of items to be paginated.
6
+ * @param {number} itemsPerPage - The number of items to display per page.
7
+ * @returns {{
8
+ * currentPage: import('vue').ComputedRef<number>,
9
+ * totalPages: import('vue').ComputedRef<number>,
10
+ * paginatedItems: import('vue').ComputedRef<Array<any>>,
11
+ * pagerItems: import('vue').ComputedRef<object|null>,
12
+ * pagerEllipses: import('vue').ComputedRef<{previous: boolean, next: boolean}>
13
+ * }} - An object containing reactive properties for pagination.
14
+ */
15
+ export function usePagination(items: import("vue").Ref<Array<any>>, itemsPerPage: number): {
16
+ currentPage: import("vue").ComputedRef<number>;
17
+ totalPages: import("vue").ComputedRef<number>;
18
+ paginatedItems: import("vue").ComputedRef<Array<any>>;
19
+ pagerItems: import("vue").ComputedRef<object | null>;
20
+ pagerEllipses: import("vue").ComputedRef<{
21
+ previous: boolean;
22
+ next: boolean;
23
+ }>;
24
+ };
25
+ //# sourceMappingURL=usePagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../lib/composables/usePagination.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,qCAVW,OAAO,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,gBAC7B,MAAM,GACJ;IACR,WAAW,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C,UAAU,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9C,cAAc,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,UAAU,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,GAAC,IAAI,CAAC,CAAC;IACnD,aAAa,EAAE,OAAO,KAAK,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CAC7E,CA0GH"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Injects a dependency from a plugin (or other required inject) and throws an error if it's not available.
3
+ *
4
+ * @param {string} key - The injection key (e.g., 'uluBreakpointManager').
5
+ * @returns The injected value.
6
+ */
7
+ export function useRequiredInject(key: string): {};
8
+ //# sourceMappingURL=useRequiredInject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRequiredInject.d.ts","sourceRoot":"","sources":["../../lib/composables/useRequiredInject.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,uCAHW,MAAM,MAchB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Composable function
3
+ * @return {Object} Contains reactive 'resizing' and two methods for calling callbacks (onResizeStart, onResizeEnd)
4
+ */
5
+ export function useWindowResize(): any;
6
+ //# sourceMappingURL=useWindowResize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowResize.d.ts","sourceRoot":"","sources":["../../lib/composables/useWindowResize.js"],"names":[],"mappings":"AAiDA;;;GAGG;AACH,uCAUC"}
@@ -0,0 +1,5 @@
1
+ export * from "./plugins/index.js";
2
+ export * from "./components/index.js";
3
+ export * from "./composables/index.js";
4
+ export * as utils from "./utils/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":""}
@@ -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,2 @@
1
+ export default function install(app: any, userOptions: any): void;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/breakpoints/index.js"],"names":[],"mappings":"AAiBA,kEA6BC"}
@@ -0,0 +1,3 @@
1
+ export default function install(app: any, userSettings?: {}): void;
2
+ export const iconKeys: string[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export function useModals(): any;
2
+ //# sourceMappingURL=useModals.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * Install plugin
3
+ * - Set user options
4
+ * - Add the global directive for the user to trigger tooltips
5
+ */
6
+ export default function install(app: any, userOptions?: {}): void;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -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,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,3 @@
1
+ export * as dom from "./dom.js";
2
+ export * as router from "./router.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.js"],"names":[],"mappings":""}
@@ -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":""}