@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
@@ -23,7 +23,7 @@
23
23
  <slot name="icon" :open="open">
24
24
  <span class="accordion__icon" :class="classes.icon">
25
25
  <UluIcon
26
- :type="open ? 'collapse' : 'expand'"
26
+ :icon="open ? 'type:collapse' : 'type:expand'"
27
27
  style="display: inline;"
28
28
  />
29
29
  </span>
@@ -26,7 +26,7 @@
26
26
  <UluIcon
27
27
  v-if="titleIcon"
28
28
  class="modal__title-icon"
29
- :definition="titleIcon"
29
+ :icon="titleIcon"
30
30
  />
31
31
  <span class="modal__title-text">{{ title }}</span>
32
32
  </slot>
@@ -35,8 +35,7 @@
35
35
  <slot name="closeIcon">
36
36
  <UluIcon
37
37
  class="modal__close-icon"
38
- type="close"
39
- :definition="closeIcon"
38
+ :icon="closeIcon || 'type:close'"
40
39
  />
41
40
  </slot>
42
41
  </button>
@@ -56,7 +55,7 @@
56
55
  </div>
57
56
  <button v-if="resizerEnabled" class="modal__resizer" ref="resizer" type="button">
58
57
  <slot name="resizerIcon">
59
- <UluIcon class="modal__resizer-icon" :type="resizerIconType" :definition="resizerIcon" />
58
+ <UluIcon class="modal__resizer-icon" :icon="resizerIcon || resizerIconType" />
60
59
  </slot>
61
60
  </button>
62
61
  </dialog>
@@ -213,7 +212,7 @@
213
212
  });
214
213
 
215
214
  const resizerIconType = computed(() => {
216
- return props.position === 'center' ? 'resizeBoth' : 'resizeHorizontal';
215
+ return props.position === 'center' ? 'type:resizeBoth' : 'type:resizeHorizontal';
217
216
  });
218
217
 
219
218
  // Define the internal modifiers object as a computed property (so it can react to changes)
@@ -9,7 +9,7 @@
9
9
  size="large"
10
10
  >
11
11
  <template #trigger>
12
- <UluIcon type="ellipsis" :definition="triggerIcon"/>
12
+ <UluIcon :icon="triggerIcon || 'type:ellipsis'"/>
13
13
  </template>
14
14
  <template #content>
15
15
  <div class="type-word-break">
@@ -4,8 +4,7 @@
4
4
  <UluIcon
5
5
  class="type-large margin-right-small"
6
6
  :class="`color-${ type }`"
7
- :type="type"
8
- :definition="icon"
7
+ :icon="icon || `type:${type}`"
9
8
  />
10
9
  <div class="type-small">
11
10
  <div>
@@ -22,7 +22,7 @@
22
22
  <slot name="before"/>
23
23
  <UluIcon
24
24
  v-if="icon && (iconBefore || iconOnly)"
25
- :definition="icon"
25
+ :icon="icon"
26
26
  class="button__icon"
27
27
  />
28
28
  <span v-if="($slots.default || text) && !iconOnly">
@@ -32,7 +32,7 @@
32
32
  </span>
33
33
  <UluIcon
34
34
  v-if="icon && (!iconBefore && !iconOnly)"
35
- :definition="icon"
35
+ :icon="icon"
36
36
  class="button__icon"
37
37
  />
38
38
  <slot name="after"/>
@@ -5,8 +5,7 @@
5
5
  </span>
6
6
  <UluIcon
7
7
  class="external-link__icon margin-left-small-x display-inline"
8
- type="externalLink"
9
- :definition="icon"
8
+ :icon="icon || 'type:externalLink'"
10
9
  />
11
10
  </a>
12
11
  </template>
@@ -27,15 +27,11 @@
27
27
  let FaModule;
28
28
 
29
29
  const props = defineProps({
30
- /**
31
- * Semantic type of icon to use, will be resolved from settings
32
- */
33
- type: String,
34
30
  /**
35
31
  * Icon definition can be string (fa classes), or array or object (any prop format FaIcon accepts)
36
32
  * - This will override the 'type' prop if both are provided
37
33
  */
38
- definition: [String, Array, Object, Boolean],
34
+ icon: [String, Array, Object, Boolean],
39
35
  });
40
36
 
41
37
  const useStaticFa = computed(() => {
@@ -52,18 +48,17 @@
52
48
 
53
49
  // Resolve the final icon definition, giving precedence to the `definition` prop
54
50
  const resolvedDefinition = computed(() => {
55
- if (props.definition) {
56
- return props.definition;
57
- }
58
- if (props.type) {
51
+ const { icon } = props;
52
+ if (typeof icon === 'string' && icon.startsWith('type:')) {
59
53
  try {
60
- return uluCore.getIcon(props.type);
54
+ const type = icon.substring(5);
55
+ return uluCore.getIcon(type);
61
56
  } catch (e) {
62
57
  console.warn(e);
63
58
  return null;
64
59
  }
65
60
  }
66
- return null;
61
+ return icon;
67
62
  });
68
63
 
69
64
  const customIconProps = computed(() => {
@@ -10,7 +10,7 @@
10
10
  resolvedModifiers
11
11
  ]"
12
12
  >
13
- <UluIcon v-if="icon" :definition="icon" />
13
+ <UluIcon v-if="icon" :icon="icon" />
14
14
  <slot>
15
15
  {{ text }}
16
16
  </slot>
@@ -8,10 +8,9 @@
8
8
  :style="{ alignItems: iconAlign }"
9
9
  >
10
10
  <UluIcon
11
- v-if="icon || iconType"
11
+ v-if="icon"
12
12
  :class="classes.icon"
13
- :type="iconType"
14
- :definition="icon"
13
+ :icon="icon"
15
14
  />
16
15
  <slot>
17
16
  {{ title }}
@@ -38,7 +37,6 @@
38
37
  type: String,
39
38
  default: "baseline"
40
39
  },
41
- iconType: String,
42
40
  classes: {
43
41
  type: Object,
44
42
  default: () => ({
@@ -19,8 +19,7 @@
19
19
  <slot name="separator">
20
20
  <UluIcon
21
21
  :class="classes.separator"
22
- type="pathSeparator"
23
- :definition="separatorIcon"
22
+ :icon="separatorIcon || 'type:pathSeparator'"
24
23
  />
25
24
  </slot>
26
25
  </template>
@@ -26,7 +26,7 @@
26
26
  <slot :item="item" :index="index">
27
27
  <UluIcon
28
28
  v-if="item.icon"
29
- :definition="item.icon"
29
+ :icon="item.icon"
30
30
  :class="[classes.linkIcon, item?.classes?.linkIcon]"
31
31
  />
32
32
  <span :class="[classes.linkText, item?.classes?.linkText]">{{ item.title }}</span>
@@ -8,7 +8,7 @@ const defaults = {
8
8
  fontAwesomeStatic: false,
9
9
  iconComponent: null,
10
10
  iconPropResolver: (definition) => ({ icon: definition }),
11
- icons: {
11
+ iconsByType: {
12
12
  danger: "fas fa-triangle-exclamation",
13
13
  warning: "fas fa-circle-exclamation",
14
14
  info: "fas fa-circle-info",
@@ -25,14 +25,14 @@ const defaults = {
25
25
  }
26
26
  };
27
27
 
28
- export const iconKeys = Object.keys(defaults.icons);
28
+ export const iconKeys = Object.keys(defaults.iconsByType);
29
29
 
30
30
  export default function install(app, userSettings = {}) {
31
31
  // A single reactive object for all settings
32
32
  const settings = reactive({ ...defaults });
33
33
 
34
34
  // Separate icon overrides from other options to handle them safely
35
- const { icons: iconOverrides, ...otherOptions } = userSettings || {};
35
+ const { iconsByType: iconOverrides, ...otherOptions } = userSettings || {};
36
36
 
37
37
  // Merge any user-provided options during installation
38
38
  if (otherOptions) {
@@ -64,14 +64,14 @@ export default function install(app, userSettings = {}) {
64
64
  settings[key] = value;
65
65
  },
66
66
  getIcon(type) {
67
- const icons = settings.icons;
67
+ const icons = settings.iconsByType;
68
68
  if (!icons[type]) {
69
69
  throw new Error(`Icon type "${type}" not found!`);
70
70
  }
71
71
  return icons[type];
72
72
  },
73
73
  setIcon(type, definition) {
74
- settings.icons[type] = definition;
74
+ settings.iconsByType[type] = definition;
75
75
  }
76
76
  };
77
77
 
@@ -43,7 +43,7 @@
43
43
  </button>
44
44
  </div>
45
45
  <button class="toast__close" :class="classes.closeButton" @click="toast.close">
46
- <UluIcon type="close"/>
46
+ <UluIcon :icon="'type:close'"/>
47
47
  </button>
48
48
  </div>
49
49
  </template>
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.1.0-beta.5",
3
+ "version": "0.1.0-beta.7",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "lib",
8
- "dist"
8
+ "dist",
9
+ "types"
9
10
  ],
10
11
  "module": "./lib/index.js",
11
12
  "exports": {
@@ -18,15 +19,23 @@
18
19
  "./*": "./lib/*",
19
20
  "./scss": "./lib/_index.scss"
20
21
  },
22
+ "typesVersions": {
23
+ "*": {
24
+ "lib/*": [
25
+ "./types/*"
26
+ ]
27
+ }
28
+ },
21
29
  "repository": {
22
30
  "type": "git",
23
31
  "url": "git+https://github.com/Jscherbe/frontend-vue.git"
24
32
  },
25
33
  "scripts": {
26
34
  "dev": "storybook dev -p 6006",
27
- "docs:build": "storybook build -o docs --docs",
35
+ "docs:build": "storybook build -o docs",
28
36
  "build": "vite build",
29
- "deploy": "npm run build && npm run docs:build"
37
+ "types": "npx tsc",
38
+ "deploy": "npm run types && npm run build && npm run docs:build"
30
39
  },
31
40
  "keywords": [
32
41
  "vue",
@@ -78,7 +87,8 @@
78
87
  "storybook": "^9.1.1",
79
88
  "storybook-addon-vue-mdx": "^2.0.2",
80
89
  "vite": "^7.0.0",
81
- "vue-router": "^4.5.1"
90
+ "vue-router": "^4.5.1",
91
+ "typescript": "^5.3.3"
82
92
  },
83
93
  "volta": {
84
94
  "node": "22.17.0"
@@ -0,0 +1,2 @@
1
+ export * from "./systems/index.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/systems/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Symbol for register provide/inject
3
+ */
4
+ export const REGISTER: any;
5
+ export const UNREGISTER: any;
6
+ export const SECTIONS: any;
7
+ //# sourceMappingURL=symbols.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/scroll-anchors/symbols.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,2BAAiC;AACjC,6BAAmC;AACnC,2BAAiC"}
@@ -0,0 +1,5 @@
1
+ export { useIcon } from "./useIcon.js";
2
+ export { useModifiers } from "./useModifiers.js";
3
+ export { useWindowResize } from "./useWindowResize.js";
4
+ export { useBreakpointManager } from "./useBreakpointManager.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/composables/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Use the CssBreakpoints module in Vue
3
+ * - Normally use only once, unless you have different sets of breakpoints
4
+ * @param {Object} options Configuration options overrides
5
+ * @return {Object} { manager, active, direction } (all are null in SSR environment until init)
6
+ */
7
+ export function useBreakpointManager(options: any): any;
8
+ //# sourceMappingURL=useBreakpointManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpointManager.d.ts","sourceRoot":"","sources":["../../lib/composables/useBreakpointManager.js"],"names":[],"mappings":"AAoBA;;;;;GAKG;AACH,wDAyCC"}
@@ -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,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,4 @@
1
+ export * from "./plugins/index.js";
2
+ export * from "./components/index.js";
3
+ export * from "./composables/index.js";
4
+ //# 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,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":"AA6BA,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"}