@ulu/frontend-vue 0.2.0-beta.9 → 0.3.0

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 (171) hide show
  1. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
  2. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
  3. package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
  4. package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
  5. package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
  6. package/dist/components/collapsible/UluDropdown.vue.js +22 -15
  7. package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
  8. package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
  9. package/dist/components/collapsible/UluModal.vue.js +139 -191
  10. package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
  11. package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
  12. package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
  13. package/dist/components/elements/UluAlert.vue.d.ts +29 -144
  14. package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
  15. package/dist/components/elements/UluAlert.vue.js +39 -50
  16. package/dist/components/elements/UluBadge.vue.d.ts +6 -6
  17. package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
  18. package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
  19. package/dist/components/elements/UluBadgeStack.vue.js +12 -9
  20. package/dist/components/elements/UluButton.vue.d.ts +47 -177
  21. package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
  22. package/dist/components/elements/UluButton.vue.js +59 -72
  23. package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
  24. package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
  25. package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
  26. package/dist/components/elements/UluCallout.vue.d.ts +20 -25
  27. package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
  28. package/dist/components/elements/UluCallout.vue.js +11 -16
  29. package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
  30. package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
  31. package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
  32. package/dist/components/elements/UluCard.vue.d.ts +2 -2
  33. package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
  34. package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
  35. package/dist/components/elements/UluDefinitionList.vue.js +32 -28
  36. package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
  37. package/dist/components/elements/UluImage.vue.d.ts +14 -0
  38. package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
  39. package/dist/components/elements/UluImage.vue.js +53 -0
  40. package/dist/components/elements/UluList.vue.d.ts.map +1 -1
  41. package/dist/components/elements/UluList.vue.js +14 -13
  42. package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
  43. package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
  44. package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
  45. package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
  46. package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
  47. package/dist/components/elements/UluScrollSlider.vue.js +146 -0
  48. package/dist/components/elements/UluSlider.vue.d.ts +57 -0
  49. package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
  50. package/dist/components/elements/UluSlider.vue.js +277 -0
  51. package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
  52. package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
  53. package/dist/components/index.d.ts +6 -0
  54. package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
  55. package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
  56. package/dist/components/layout/UluTitleRail.vue.js +51 -46
  57. package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
  58. package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
  59. package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
  60. package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
  61. package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
  62. package/dist/components/navigation/UluMenu.vue.js +85 -84
  63. package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
  64. package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
  65. package/dist/components/navigation/UluMenuStack.vue.js +26 -18
  66. package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
  67. package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
  68. package/dist/components/navigation/UluNavStrip.vue.js +43 -31
  69. package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
  70. package/dist/components/systems/facets/useFacets.d.ts +3 -0
  71. package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
  72. package/dist/components/systems/facets/useFacets.js +124 -112
  73. package/dist/components/systems/index.d.ts +0 -3
  74. package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
  75. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
  76. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
  77. package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
  78. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
  79. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
  80. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
  81. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
  82. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
  83. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
  84. package/dist/components/utils/UluAction.vue.d.ts +36 -0
  85. package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
  86. package/dist/components/utils/UluAction.vue.js +59 -0
  87. package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
  88. package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
  89. package/dist/components/utils/UluConditionalText.vue.js +12 -14
  90. package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
  91. package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
  92. package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
  93. package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
  94. package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
  95. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
  96. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
  97. package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
  98. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
  99. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
  100. package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
  101. package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
  102. package/dist/composables/useModifiers.d.ts +20 -25
  103. package/dist/composables/useModifiers.d.ts.map +1 -1
  104. package/dist/index.js +206 -200
  105. package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
  106. package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
  107. package/dist/plugins/modals/index.js +6 -6
  108. package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
  109. package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
  110. package/dist/plugins/toast/UluToast.vue.js +68 -77
  111. package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
  112. package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
  113. package/dist/plugins/toast/defaults.d.ts +40 -35
  114. package/dist/plugins/toast/defaults.js +2 -2
  115. package/dist/plugins/toast/index.js +4 -4
  116. package/dist/plugins/toast/store.d.ts +40 -35
  117. package/dist/plugins/toast/store.d.ts.map +1 -1
  118. package/dist/utils/props.d.ts +7 -0
  119. package/dist/utils/props.d.ts.map +1 -0
  120. package/dist/utils/props.js +6 -0
  121. package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
  122. package/lib/components/collapsible/UluDropdown.vue +5 -1
  123. package/lib/components/collapsible/UluModal.vue +278 -298
  124. package/lib/components/collapsible/UluTabGroup.vue +21 -6
  125. package/lib/components/elements/UluAlert.vue +38 -51
  126. package/lib/components/elements/UluBadgeStack.vue +4 -1
  127. package/lib/components/elements/UluButton.vue +105 -129
  128. package/lib/components/elements/UluButtonVerbose.vue +67 -89
  129. package/lib/components/elements/UluCallout.vue +15 -19
  130. package/lib/components/elements/UluCaptionedFigure.vue +40 -0
  131. package/lib/components/elements/UluDefinitionList.vue +27 -6
  132. package/lib/components/elements/UluImage.vue +56 -0
  133. package/lib/components/elements/UluList.vue +1 -0
  134. package/lib/components/elements/UluOverflowScroller.vue +140 -0
  135. package/lib/components/elements/UluScrollSlider.vue +150 -0
  136. package/lib/components/elements/UluSlider.vue +488 -0
  137. package/lib/components/index.js +10 -0
  138. package/lib/components/layout/UluTitleRail.vue +55 -48
  139. package/lib/components/navigation/UluBreadcrumb.vue +29 -34
  140. package/lib/components/navigation/UluMenu.vue +60 -71
  141. package/lib/components/navigation/UluMenuStack.vue +6 -1
  142. package/lib/components/navigation/UluNavStrip.vue +43 -31
  143. package/lib/components/systems/facets/useFacets.js +33 -17
  144. package/lib/components/systems/index.js +0 -4
  145. package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
  146. package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
  147. package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
  148. package/lib/components/utils/UluAction.vue +81 -0
  149. package/lib/components/utils/UluConditionalText.vue +13 -16
  150. package/lib/components/utils/UluPlaceholderImage.vue +44 -46
  151. package/lib/components/utils/UluPlaceholderText.vue +10 -13
  152. package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
  153. package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
  154. package/lib/composables/useModifiers.js +21 -26
  155. package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
  156. package/lib/plugins/toast/UluToast.vue +28 -34
  157. package/lib/plugins/toast/UluToastDisplay.vue +9 -15
  158. package/lib/utils/props.js +8 -0
  159. package/package.json +9 -5
  160. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
  161. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
  162. package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
  163. package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
  164. package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
  165. package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
  166. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
  167. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
  168. package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
  169. package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
  170. package/lib/components/systems/slider/UluSlideShow.vue +0 -336
  171. package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
@@ -1,11 +1,13 @@
1
- import F from "./UluTableStickyRows.vue.js";
2
- import { resolveComponent as W, createElementBlock as i, openBlock as r, normalizeClass as f, createCommentVNode as C, createElementVNode as _, toDisplayString as k, Fragment as h, renderList as g, normalizeStyle as b, createBlock as B, resolveDynamicComponent as V, withCtx as v, renderSlot as A, createTextVNode as w, createVNode as T, createSlots as m, normalizeProps as R, guardReactiveProps as S } from "vue";
3
- import L from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const U = {
5
- name: "UluTableStickyTable",
6
- components: {
7
- UluTableStickyRows: F
8
- },
1
+ import { createElementBlock as o, openBlock as r, normalizeClass as A, createCommentVNode as C, createElementVNode as w, toDisplayString as k, Fragment as c, renderList as y, normalizeStyle as F, createBlock as j, resolveDynamicComponent as z, withCtx as v, renderSlot as u, createTextVNode as $, createVNode as S, createSlots as W, normalizeProps as B, guardReactiveProps as V } from "vue";
2
+ import L from "./UluTableStickyRows.vue.js";
3
+ const P = ["aria-hidden"], D = {
4
+ key: 0,
5
+ class: "table-sticky__caption"
6
+ }, E = ["id"], q = ["id", "rowspan", "colspan", "data-child-columns", "aria-sort", "scope", "headers"], O = ["innerHTML"], U = {
7
+ class: "table-sticky__sort-icon",
8
+ "aria-hidden": "true"
9
+ }, G = { class: "table-sticky__sort-icon-inner" }, J = ["innerHTML"], K = { key: 1 }, Q = { key: 2 }, Z = {
10
+ __name: "UluTableStickyTable",
9
11
  props: {
10
12
  resolveClasses: Function,
11
13
  classes: {
@@ -37,7 +39,7 @@ const U = {
37
39
  */
38
40
  getRowValue: {
39
41
  type: Function,
40
- default: ({ row: s, column: a }) => s[a.key]
42
+ default: ({ row: e, column: f }) => e[f.key]
41
43
  },
42
44
  /**
43
45
  * Optional user overridden value getter (for rows)
@@ -46,181 +48,160 @@ const U = {
46
48
  */
47
49
  getColumnTitle: {
48
50
  type: Function,
49
- default: ({ column: s }) => s.title
51
+ default: ({ column: e }) => e.title
50
52
  }
51
53
  },
52
- data() {
53
- return {
54
- headerRefs: {}
55
- };
56
- },
57
- methods: {
58
- handleSortFocus(s, a) {
59
- this.isActual && (s.sortFocused = a);
60
- },
61
- addHeaderRef(s, a) {
62
- const { headerRefs: e, isActual: n } = this;
63
- if (!n || !a) return;
64
- const { id: u } = s, l = e[u];
65
- l && this.$emit("actual-header-removed", l), this.$emit("actual-header-added", a), e[u] = a;
66
- },
67
- /**
68
- * False is no longer not printed
69
- */
70
- optionalAttr(s) {
71
- return s || null;
72
- },
73
- value({ row: s, column: a, rowIndex: e }) {
74
- const n = a.value;
75
- return n ? n({ row: s.data, column: a, rowIndex: e }) : this.getRowValue({ row: s.data, column: a, rowIndex: e });
76
- },
77
- getCellHeaders(s, a) {
78
- const e = s.headers.join(" "), n = s.getRowHeaders(a), u = n.length ? " " : "";
79
- return `${e}${u}${n}`;
80
- },
81
- getHeaderHeaders(s) {
82
- const a = s.headers.filter((e) => e !== s.id);
54
+ emits: [
55
+ "column-sorted",
56
+ "actual-header-removed",
57
+ "actual-header-added"
58
+ ],
59
+ setup(e, { emit: f }) {
60
+ const H = f, g = e, b = {}, m = (s, a) => {
61
+ g.isActual && (s.sortFocused = a);
62
+ }, M = (s, a) => {
63
+ if (!g.isActual || !a) return;
64
+ const { id: i } = s, l = b[i];
65
+ l && H("actual-header-removed", l), H("actual-header-added", a), b[i] = a;
66
+ }, d = (s) => s || null, T = ({ row: s, column: a, rowIndex: i }) => {
67
+ const l = a.value;
68
+ return l ? l({ row: s.data, column: a, rowIndex: i }) : g.getRowValue({ row: s.data, column: a, rowIndex: i });
69
+ }, R = (s, a) => {
70
+ const i = s.headers.join(" "), l = s.getRowHeaders(a), t = l.length ? " " : "";
71
+ return `${i}${t}${l}`;
72
+ }, N = (s) => {
73
+ const a = s.headers.filter((i) => i !== s.id);
83
74
  if (a.length)
84
75
  return a.join(" ");
85
- }
86
- }
87
- }, M = ["aria-hidden"], N = {
88
- key: 0,
89
- class: "table-sticky__caption"
90
- }, j = ["id"], z = ["id", "rowspan", "colspan", "data-child-columns", "aria-sort", "scope", "headers"], P = ["innerHTML"], D = {
91
- class: "table-sticky__sort-icon",
92
- "aria-hidden": "true"
93
- }, E = { class: "table-sticky__sort-icon-inner" }, q = ["innerHTML"], O = { key: 1 }, G = { key: 2 };
94
- function J(s, a, e, n, u, l) {
95
- const H = W("UluTableStickyRows");
96
- return r(), i("table", {
97
- class: f(e.resolveClasses(e.classes.table, { isActual: e.isActual })),
98
- "aria-hidden": e.isActual ? "false" : "true"
99
- }, [
100
- e.caption ? (r(), i("caption", N, k(e.caption), 1)) : C("", !0),
101
- _("thead", null, [
102
- (r(!0), i(h, null, g(e.headerRows, (c, o) => (r(), i("tr", {
103
- key: `hr-${o}`,
104
- id: l.optionalAttr(e.isActual && c.id),
105
- class: f(e.resolveClasses(e.classes.rowHeader, { row: c, rowIndex: o, isActual: e.isActual })),
106
- style: b({
107
- height: c.height
108
- })
109
- }, [
110
- (r(!0), i(h, null, g(c.columns, (t, d) => (r(), i("th", {
111
- key: `hc-${d}`,
112
- id: l.optionalAttr(e.isActual && t.id),
113
- rowspan: t.rowspan,
114
- colspan: t.colspan,
115
- "data-child-columns": t.columns && t.columns.length,
116
- class: f([
117
- {
118
- "sort-active": t.sortApplied,
119
- "sort-ascending": t.sortApplied && t.sortAscending,
120
- "sort-descending": t.sortApplied && !t.sortAscending
121
- },
122
- e.resolveClasses(t.classHeader, { column: t, index: d, isActual: e.isActual })
123
- ]),
124
- style: b({
125
- width: t.width
126
- }),
127
- "aria-sort": t.sort ? t.sortAscending ? "ascending" : "descending" : null,
128
- scope: l.optionalAttr(e.isActual && (t.colspan > 1 ? "colgroup" : "col")),
129
- headers: l.optionalAttr(e.isActual && l.getHeaderHeaders(t, o)),
130
- ref_for: !0,
131
- ref: (y) => l.addHeaderRef(t, y)
76
+ };
77
+ return (s, a) => (r(), o("table", {
78
+ class: A(e.resolveClasses(e.classes.table, { isActual: e.isActual })),
79
+ "aria-hidden": e.isActual ? "false" : "true"
80
+ }, [
81
+ e.caption ? (r(), o("caption", D, k(e.caption), 1)) : C("", !0),
82
+ w("thead", null, [
83
+ (r(!0), o(c, null, y(e.headerRows, (i, l) => (r(), o("tr", {
84
+ key: `hr-${l}`,
85
+ id: d(e.isActual && i.id),
86
+ class: A(e.resolveClasses(e.classes.rowHeader, { row: i, rowIndex: l, isActual: e.isActual })),
87
+ style: F({
88
+ height: i.height
89
+ })
132
90
  }, [
133
- t.sortable ? (r(), B(V(e.isActual ? "button" : "div"), {
134
- key: 0,
135
- class: f(["table-sticky__sort-button", {
136
- "table-sticky__sort-button--focused": t.sortFocused
137
- }]),
138
- onClick: (y) => s.$emit("column-sorted", t),
139
- onFocus: (y) => l.handleSortFocus(t, !0),
140
- onBlur: (y) => l.handleSortFocus(t, !1),
141
- "aria-pressed": t.sortApplied ? "true" : "false"
142
- }, {
143
- default: v(() => [
144
- s.$slots[t.slotHeader] ? A(s.$slots, t.slotHeader, {
91
+ (r(!0), o(c, null, y(i.columns, (t, n) => (r(), o("th", {
92
+ key: `hc-${n}`,
93
+ id: d(e.isActual && t.id),
94
+ rowspan: t.rowspan,
95
+ colspan: t.colspan,
96
+ "data-child-columns": t.columns && t.columns.length,
97
+ class: A([
98
+ {
99
+ "sort-active": t.sortApplied,
100
+ "sort-ascending": t.sortApplied && t.sortAscending,
101
+ "sort-descending": t.sortApplied && !t.sortAscending
102
+ },
103
+ e.resolveClasses(t.classHeader, { column: t, index: n, isActual: e.isActual })
104
+ ]),
105
+ style: F({
106
+ width: t.width
107
+ }),
108
+ "aria-sort": t.sort ? t.sortAscending ? "ascending" : "descending" : null,
109
+ scope: d(e.isActual && (t.colspan > 1 ? "colgroup" : "col")),
110
+ headers: d(e.isActual && N(t)),
111
+ ref_for: !0,
112
+ ref: (h) => M(t, h)
113
+ }, [
114
+ t.sortable ? (r(), j(z(e.isActual ? "button" : "div"), {
115
+ key: 0,
116
+ class: A(["table-sticky__sort-button", {
117
+ "table-sticky__sort-button--focused": t.sortFocused
118
+ }]),
119
+ onClick: (h) => s.$emit("column-sorted", t),
120
+ onFocus: (h) => m(t, !0),
121
+ onBlur: (h) => m(t, !1),
122
+ "aria-pressed": t.sortApplied ? "true" : "false"
123
+ }, {
124
+ default: v(() => [
125
+ s.$slots[t.slotHeader] ? u(s.$slots, t.slotHeader, {
126
+ key: 0,
127
+ isActual: e.isActual,
128
+ column: t,
129
+ index: n
130
+ }) : t.htmlTitle ? (r(), o("div", {
131
+ key: 1,
132
+ innerHTML: e.getColumnTitle({ column: t, index: n, isActual: e.isActual })
133
+ }, null, 8, O)) : (r(), o(c, { key: 2 }, [
134
+ $(k(e.getColumnTitle({ column: t, index: n, isActual: e.isActual })), 1)
135
+ ], 64)),
136
+ w("span", U, [
137
+ w("span", G, [
138
+ u(s.$slots, "sortIcon", {}, () => [
139
+ a[0] || (a[0] = $("▼", -1))
140
+ ])
141
+ ])
142
+ ])
143
+ ]),
144
+ _: 2
145
+ }, 1064, ["class", "onClick", "onFocus", "onBlur", "aria-pressed"])) : (r(), o(c, { key: 1 }, [
146
+ s.$slots[t.slotHeader] ? u(s.$slots, t.slotHeader, {
145
147
  key: 0,
146
148
  isActual: e.isActual,
147
149
  column: t,
148
- index: d
149
- }) : t.htmlTitle ? (r(), i("div", {
150
+ index: n
151
+ }) : t.htmlTitle ? (r(), o("div", {
150
152
  key: 1,
151
- innerHTML: e.getColumnTitle({ column: t, index: d, isActual: e.isActual })
152
- }, null, 8, P)) : (r(), i(h, { key: 2 }, [
153
- w(k(e.getColumnTitle({ column: t, index: d, isActual: e.isActual })), 1)
154
- ], 64)),
155
- _("span", D, [
156
- _("span", E, [
157
- A(s.$slots, "sortIcon", {}, () => [
158
- a[0] || (a[0] = w("▼", -1))
159
- ])
160
- ])
161
- ])
162
- ]),
163
- _: 2
164
- }, 1064, ["class", "onClick", "onFocus", "onBlur", "aria-pressed"])) : (r(), i(h, { key: 1 }, [
165
- s.$slots[t.slotHeader] ? A(s.$slots, t.slotHeader, {
166
- key: 0,
167
- isActual: e.isActual,
168
- column: t,
169
- index: d
170
- }) : t.htmlTitle ? (r(), i("div", {
171
- key: 1,
172
- innerHTML: e.getColumnTitle({ column: t, index: d, isActual: e.isActual })
173
- }, null, 8, q)) : (r(), i(h, { key: 2 }, [
174
- w(k(e.getColumnTitle({ column: t, index: d, isActual: e.isActual })), 1)
153
+ innerHTML: e.getColumnTitle({ column: t, index: n, isActual: e.isActual })
154
+ }, null, 8, J)) : (r(), o(c, { key: 2 }, [
155
+ $(k(e.getColumnTitle({ column: t, index: n, isActual: e.isActual })), 1)
156
+ ], 64))
175
157
  ], 64))
176
- ], 64))
177
- ], 14, z))), 128))
178
- ], 14, j))), 128))
179
- ]),
180
- e.rows ? (r(), i("tbody", O, [
181
- T(H, {
182
- rows: e.rows,
183
- rowColumns: e.rowColumns,
184
- optionalAttr: l.optionalAttr,
185
- resolveClasses: e.resolveClasses,
186
- getCellHeaders: l.getCellHeaders,
187
- isActual: e.isActual,
188
- columnWidth: e.columnWidth,
189
- classes: e.classes,
190
- value: l.value
191
- }, m({ _: 2 }, [
192
- g(s.$slots, (c, o) => ({
193
- name: o,
194
- fn: v((t) => [
195
- A(s.$slots, o, R(S(t)))
196
- ])
197
- }))
198
- ]), 1032, ["rows", "rowColumns", "optionalAttr", "resolveClasses", "getCellHeaders", "isActual", "columnWidth", "classes", "value"])
199
- ])) : C("", !0),
200
- e.footerRows ? (r(), i("tfoot", G, [
201
- T(H, {
202
- rows: e.footerRows,
203
- rowColumns: e.rowColumns,
204
- optionalAttr: l.optionalAttr,
205
- resolveClasses: e.resolveClasses,
206
- getCellHeaders: l.getCellHeaders,
207
- isActual: e.isActual,
208
- columnWidth: e.columnWidth,
209
- classes: e.classes,
210
- value: l.value,
211
- foot: ""
212
- }, m({ _: 2 }, [
213
- g(s.$slots, (c, o) => ({
214
- name: o,
215
- fn: v((t) => [
216
- A(s.$slots, o, R(S(t)))
217
- ])
218
- }))
219
- ]), 1032, ["rows", "rowColumns", "optionalAttr", "resolveClasses", "getCellHeaders", "isActual", "columnWidth", "classes", "value"])
220
- ])) : C("", !0)
221
- ], 10, M);
222
- }
223
- const Y = /* @__PURE__ */ L(U, [["render", J]]);
158
+ ], 14, q))), 128))
159
+ ], 14, E))), 128))
160
+ ]),
161
+ e.rows ? (r(), o("tbody", K, [
162
+ S(L, {
163
+ rows: e.rows,
164
+ rowColumns: e.rowColumns,
165
+ optionalAttr: d,
166
+ resolveClasses: e.resolveClasses,
167
+ getCellHeaders: R,
168
+ isActual: e.isActual,
169
+ columnWidth: e.columnWidth,
170
+ classes: e.classes,
171
+ value: T
172
+ }, W({ _: 2 }, [
173
+ y(s.$slots, (i, l) => ({
174
+ name: l,
175
+ fn: v((t) => [
176
+ u(s.$slots, l, B(V(t)))
177
+ ])
178
+ }))
179
+ ]), 1032, ["rows", "rowColumns", "resolveClasses", "isActual", "columnWidth", "classes"])
180
+ ])) : C("", !0),
181
+ e.footerRows ? (r(), o("tfoot", Q, [
182
+ S(L, {
183
+ rows: e.footerRows,
184
+ rowColumns: e.rowColumns,
185
+ optionalAttr: d,
186
+ resolveClasses: e.resolveClasses,
187
+ getCellHeaders: R,
188
+ isActual: e.isActual,
189
+ columnWidth: e.columnWidth,
190
+ classes: e.classes,
191
+ value: T,
192
+ foot: ""
193
+ }, W({ _: 2 }, [
194
+ y(s.$slots, (i, l) => ({
195
+ name: l,
196
+ fn: v((t) => [
197
+ u(s.$slots, l, B(V(t)))
198
+ ])
199
+ }))
200
+ ]), 1032, ["rows", "rowColumns", "resolveClasses", "isActual", "columnWidth", "classes"])
201
+ ])) : C("", !0)
202
+ ], 10, P));
203
+ }
204
+ };
224
205
  export {
225
- Y as default
206
+ Z as default
226
207
  };
@@ -0,0 +1,36 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ activeClass?: string | undefined;
8
+ to?: string | Record<string, any> | undefined;
9
+ target?: string | undefined;
10
+ path?: string | undefined;
11
+ href?: string | undefined;
12
+ download?: string | boolean | undefined;
13
+ element?: string | undefined;
14
+ exactActiveClass?: string | undefined;
15
+ click?: Function | undefined;
16
+ $props: {
17
+ readonly activeClass?: string | undefined;
18
+ readonly to?: string | Record<string, any> | undefined;
19
+ readonly target?: string | undefined;
20
+ readonly path?: string | undefined;
21
+ readonly href?: string | undefined;
22
+ readonly download?: string | boolean | undefined;
23
+ readonly element?: string | undefined;
24
+ readonly exactActiveClass?: string | undefined;
25
+ readonly click?: Function | undefined;
26
+ };
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ type __VLS_TemplateResult = {
29
+ attrs: Partial<{}>;
30
+ slots: {
31
+ default?(_: {}): any;
32
+ };
33
+ refs: {};
34
+ rootEl: any;
35
+ };
36
+ //# sourceMappingURL=UluAction.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UluAction.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluAction.vue"],"names":[],"mappings":"AAQA;wBAqNqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;;;2OAQG"}
@@ -0,0 +1,59 @@
1
+ import { computed as r, createBlock as i, openBlock as s, resolveDynamicComponent as l, normalizeProps as c, guardReactiveProps as f, withCtx as u, renderSlot as p } from "vue";
2
+ import { RouterLink as d } from "vue-router";
3
+ const h = {
4
+ __name: "UluAction",
5
+ props: {
6
+ /**
7
+ * Router link target.
8
+ */
9
+ to: [String, Object],
10
+ /**
11
+ * Alternative to 'to' (used in some legacy or specific data structures like UluMenu items).
12
+ */
13
+ path: String,
14
+ /**
15
+ * Standard URL for native anchor tags.
16
+ */
17
+ href: String,
18
+ /**
19
+ * Target attribute for anchor tags (e.g. '_blank').
20
+ */
21
+ target: String,
22
+ /**
23
+ * Download attribute for anchor tags.
24
+ */
25
+ download: [Boolean, String],
26
+ /**
27
+ * Optional explicit element to use (e.g., if you need 'div' or 'span' instead of a button).
28
+ */
29
+ element: String,
30
+ /**
31
+ * Vue Router active class override.
32
+ */
33
+ activeClass: String,
34
+ /**
35
+ * Vue Router exact active class override.
36
+ */
37
+ exactActiveClass: String,
38
+ /**
39
+ * Allows passing 'click' as a prop to signify this is an action (used in UluMenu data objects).
40
+ * Note: The actual @click listener should be attached via fallthrough attrs, this is just for logic routing.
41
+ */
42
+ click: Function
43
+ },
44
+ setup(o) {
45
+ const t = o, n = r(() => t.element ? t.element : t.to || t.path ? d : t.href ? "a" : "button"), a = r(() => {
46
+ const e = {};
47
+ return t.to || t.path ? (e.to = t.to || t.path, t.activeClass && (e.activeClass = t.activeClass), t.exactActiveClass && (e.exactActiveClass = t.exactActiveClass)) : t.href ? (e.href = t.href, t.target && (e.target = t.target), t.download && (e.download = typeof t.download == "string" ? t.download : !0)) : (!t.element || t.element === "button") && (e.type = "button"), e;
48
+ });
49
+ return (e, m) => (s(), i(l(n.value), c(f(a.value)), {
50
+ default: u(() => [
51
+ p(e.$slots, "default")
52
+ ]),
53
+ _: 3
54
+ }, 16));
55
+ }
56
+ };
57
+ export {
58
+ h as default
59
+ };
@@ -1,29 +1,10 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- /**
3
- * Text to print in element
4
- */
5
- text: (ObjectConstructor | StringConstructor | ArrayConstructor | NumberConstructor)[];
6
- /**
7
- * Element type to render (ie. h1, h2, p, etc)
8
- */
9
- element: {
10
- type: StringConstructor;
11
- default: string;
12
- };
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
- /**
15
- * Text to print in element
16
- */
17
- text: (ObjectConstructor | StringConstructor | ArrayConstructor | NumberConstructor)[];
18
- /**
19
- * Element type to render (ie. h1, h2, p, etc)
20
- */
21
- element: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- }>> & Readonly<{}>, {
1
+ declare const _default: import('vue').DefineComponent<{}, {
26
2
  element: string;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
3
+ text?: string | number | Record<string, any> | unknown[] | undefined;
4
+ $props: {
5
+ readonly element?: string | undefined;
6
+ readonly text?: string | number | Record<string, any> | unknown[] | undefined;
7
+ };
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
9
  export default _default;
29
10
  //# sourceMappingURL=UluConditionalText.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluConditionalText.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalText.vue"],"names":[],"mappings":"AAMA;;IAmCM;;OAEG;;IAEH;;OAEG;;;;;;IANH;;OAEG;;IAEH;;OAEG"}
1
+ {"version":3,"file":"UluConditionalText.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalText.vue"],"names":[],"mappings":"AAMA;"}
@@ -1,7 +1,6 @@
1
- import { createBlock as t, createCommentVNode as n, openBlock as o, resolveDynamicComponent as r, withCtx as a, createTextVNode as c, toDisplayString as i } from "vue";
2
- import l from "../../_virtual/_plugin-vue_export-helper.js";
3
- const m = {
4
- name: "UluConditionalText",
1
+ import { createBlock as t, createCommentVNode as n, openBlock as r, resolveDynamicComponent as o, withCtx as a, createTextVNode as l, toDisplayString as c } from "vue";
2
+ const x = {
3
+ __name: "UluConditionalText",
5
4
  props: {
6
5
  /**
7
6
  * Text to print in element
@@ -14,17 +13,16 @@ const m = {
14
13
  type: String,
15
14
  default: "p"
16
15
  }
16
+ },
17
+ setup(e) {
18
+ return (m, i) => e.text != null ? (r(), t(o(e.element), { key: 0 }, {
19
+ default: a(() => [
20
+ l(c(e.text), 1)
21
+ ]),
22
+ _: 1
23
+ })) : n("", !0);
17
24
  }
18
25
  };
19
- function u(d, x, e, f, p, s) {
20
- return e.text != null ? (o(), t(r(e.element), { key: 0 }, {
21
- default: a(() => [
22
- c(i(e.text), 1)
23
- ]),
24
- _: 1
25
- })) : n("", !0);
26
- }
27
- const C = /* @__PURE__ */ l(m, [["render", u]]);
28
26
  export {
29
- C as default
27
+ x as default
30
28
  };
@@ -1,61 +1,16 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- imageId: StringConstructor;
3
- /**
4
- * Width of the image
5
- */
6
- width: {
7
- type: (StringConstructor | NumberConstructor)[];
8
- default: string;
9
- };
10
- /**
11
- * Height of the image
12
- */
13
- height: {
14
- type: (StringConstructor | NumberConstructor)[];
15
- default: string;
16
- };
17
- /**
18
- * Alt text for placeholder image
19
- */
20
- alt: StringConstructor;
21
- /**
22
- * Random size
23
- */
24
- random: BooleanConstructor;
25
- }>, {}, {}, {
26
- src(): string;
27
- size(): {
28
- width: any;
29
- height: any;
30
- };
31
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
32
- imageId: StringConstructor;
33
- /**
34
- * Width of the image
35
- */
36
- width: {
37
- type: (StringConstructor | NumberConstructor)[];
38
- default: string;
39
- };
40
- /**
41
- * Height of the image
42
- */
43
- height: {
44
- type: (StringConstructor | NumberConstructor)[];
45
- default: string;
46
- };
47
- /**
48
- * Alt text for placeholder image
49
- */
50
- alt: StringConstructor;
51
- /**
52
- * Random size
53
- */
54
- random: BooleanConstructor;
55
- }>> & Readonly<{}>, {
56
- random: boolean;
1
+ declare const _default: import('vue').DefineComponent<{}, {
57
2
  width: string | number;
58
3
  height: string | number;
59
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ random: boolean;
5
+ alt?: string | undefined;
6
+ imageId?: string | undefined;
7
+ $props: {
8
+ readonly width?: string | number | undefined;
9
+ readonly height?: string | number | undefined;
10
+ readonly random?: boolean | undefined;
11
+ readonly alt?: string | undefined;
12
+ readonly imageId?: string | undefined;
13
+ };
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLImageElement>;
60
15
  export default _default;
61
16
  //# sourceMappingURL=UluPlaceholderImage.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluPlaceholderImage.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluPlaceholderImage.vue"],"names":[],"mappings":"AAGA;;;IA2DM;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;IAEH;;OAEG;;;;;;;;;;IApBH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;IAEH;;OAEG"}
1
+ {"version":3,"file":"UluPlaceholderImage.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluPlaceholderImage.vue"],"names":[],"mappings":"AAGA;"}