@ulu/frontend-vue 0.1.3-beta.3 → 0.1.3-beta.5

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.
@@ -29,6 +29,15 @@ export { default as UluFormMessage } from "./forms/UluFormMessage.vue";
29
29
  export { default as UluFormSelect } from "./forms/UluFormSelect.vue";
30
30
  export { default as UluFormText } from "./forms/UluFormText.vue";
31
31
  export { default as UluSearchForm } from "./forms/UluSearchForm.vue";
32
+ export { default as UluForm } from "./forms/UluForm.vue";
33
+ export { default as UluFormActions } from "./forms/UluFormActions.vue";
34
+ export { default as UluFormCheckbox } from "./forms/UluFormCheckbox.vue";
35
+ export { default as UluFormFieldset } from "./forms/UluFormFieldset.vue";
36
+ export { default as UluFormItem } from "./forms/UluFormItem.vue";
37
+ export { default as UluFormItemsInline } from "./forms/UluFormItemsInline.vue";
38
+ export { default as UluFormRadio } from "./forms/UluFormRadio.vue";
39
+ export { default as UluFormRequiredChar } from "./forms/UluFormRequiredChar.vue";
40
+ export { default as UluFormTextarea } from "./forms/UluFormTextarea.vue";
32
41
  export { default as UluAdaptiveLayout } from "./layout/UluAdaptiveLayout.vue";
33
42
  export { default as UluDataGrid } from "./layout/UluDataGrid.vue";
34
43
  export { default as UluTitleRail } from "./layout/UluTitleRail.vue";
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../lib/plugins/popovers/defaults.js"],"names":[],"mappings":";gBAGY,MAAM;;;;;;;;;iBAuDN,MAAM"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../lib/plugins/popovers/defaults.js"],"names":[],"mappings":";gBAGY,MAAM;;;;;;;;;iBA8CN,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/plugins/popovers/index.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH,qCAHW,MAAM,gBACN,MAAM,QAuIhB;AArLD;;GAEG;AACH,kCAAmC,mBAAmB,CAAC;AAEvD;;GAEG;AACH,gCAAiC,iBAAiB,CAAC;AAEnD;;GAEG;AACH,yBAA0B,oBAAoB,CAAC;;;AAcxC,gDAJI,GAAC,mBACD,MAAM,GACJ,MAAM,GAAC,IAAI,CAgBvB;2BA3C0B,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/plugins/popovers/index.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH,qCAHW,MAAM,gBACN,MAAM,QAgJhB;AA9LD;;GAEG;AACH,kCAAmC,mBAAmB,CAAC;AAEvD;;GAEG;AACH,gCAAiC,iBAAiB,CAAC;AAEnD;;GAEG;AACH,yBAA0B,oBAAoB,CAAC;;;AAcxC,gDAJI,GAAC,mBACD,MAAM,GACJ,MAAM,GAAC,IAAI,CAgBvB;2BA3C0B,iBAAiB"}
@@ -34,6 +34,15 @@ export { default as UluFormMessage } from './forms/UluFormMessage.vue';
34
34
  export { default as UluFormSelect } from './forms/UluFormSelect.vue';
35
35
  export { default as UluFormText } from './forms/UluFormText.vue';
36
36
  export { default as UluSearchForm } from './forms/UluSearchForm.vue';
37
+ export { default as UluForm } from './forms/UluForm.vue';
38
+ export { default as UluFormActions } from './forms/UluFormActions.vue';
39
+ export { default as UluFormCheckbox } from './forms/UluFormCheckbox.vue';
40
+ export { default as UluFormFieldset } from './forms/UluFormFieldset.vue';
41
+ export { default as UluFormItem } from './forms/UluFormItem.vue';
42
+ export { default as UluFormItemsInline } from './forms/UluFormItemsInline.vue';
43
+ export { default as UluFormRadio } from './forms/UluFormRadio.vue';
44
+ export { default as UluFormRequiredChar } from './forms/UluFormRequiredChar.vue';
45
+ export { default as UluFormTextarea } from './forms/UluFormTextarea.vue';
37
46
  export { default as UluAdaptiveLayout } from './layout/UluAdaptiveLayout.vue';
38
47
  export { default as UluDataGrid } from './layout/UluDataGrid.vue';
39
48
  export { default as UluTitleRail } from './layout/UluTitleRail.vue';
@@ -9,16 +9,7 @@ export default {
9
9
  * @type {String}
10
10
  */
11
11
  directiveName: "ulu-tooltip",
12
- /**
13
- * The element that the tooltip should be rendered within
14
- * - Default bottom of the body (on top of everything)
15
- * - Doesn't need to be inline for accessibility since tooltips are just an enhancement
16
- * content displayed within them should be hidden for assistive devices,
17
- * they are not visible to assistive devices
18
- * @type {String}
19
- */
20
- tooltipTeleportTo: "body",
21
- },
12
+ },
22
13
  /**
23
14
  * Default Popover Options
24
15
  */
@@ -59,6 +50,15 @@ export default {
59
50
  * @type {Object}
60
51
  */
61
52
  tooltip: {
53
+ /**
54
+ * The element that the tooltip should be rendered within
55
+ * - Default bottom of the body if this is unset
56
+ * - Doesn't need to be inline for accessibility since tooltips are just an enhancement
57
+ * content displayed within them should be hidden for assistive devices,
58
+ * they are not visible to assistive devices
59
+ * @type {String}
60
+ */
61
+ teleportTo: null,
62
62
  /**
63
63
  * Optional class binding for tooltip element
64
64
  * @type {String|Object|Array}
@@ -70,6 +70,15 @@ export default function install(app, userOptions = {}) {
70
70
  config: {},
71
71
  });
72
72
  const showTooltip = (triggerEl, configObj) => {
73
+ // If a teleport target isn't already specified in the config,
74
+ // try to find a parent dialog to teleport to automatically.
75
+ if (triggerEl && !configObj.teleportTo) {
76
+ const dialog = triggerEl.closest("dialog");
77
+ if (dialog) {
78
+ configObj.teleportTo = dialog;
79
+ }
80
+ }
81
+
73
82
  // If a tooltip is already active for a different element, remove its attribute.
74
83
  if (tooltipState.trigger && tooltipState.trigger !== triggerEl) {
75
84
  if (tooltipState.trigger?.removeAttribute) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.1.3-beta.3",
3
+ "version": "0.1.3-beta.5",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [