@ulu/frontend-vue 0.5.3 → 0.5.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.
- package/dist/components/elements/UluCounterList.vue.d.ts +32 -0
- package/dist/components/elements/UluCounterList.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCounterList.vue.js +77 -0
- package/dist/components/elements/UluDataTable.vue.d.ts +43 -0
- package/dist/components/elements/UluDataTable.vue.d.ts.map +1 -0
- package/dist/components/elements/UluDataTable.vue.js +114 -0
- package/dist/components/elements/UluDefinitionList.vue.d.ts +2 -2
- package/dist/components/elements/UluList.vue.d.ts +4 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +40 -23
- package/dist/components/elements/UluListItem.vue.d.ts +4 -2
- package/dist/components/elements/UluListItem.vue.d.ts.map +1 -1
- package/dist/components/elements/UluListItem.vue.js +17 -10
- package/dist/components/elements/UluTable.vue.d.ts +48 -0
- package/dist/components/elements/UluTable.vue.d.ts.map +1 -0
- package/dist/components/elements/UluTable.vue.js +211 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +104 -104
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +218 -256
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +4 -4
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +12 -12
- package/dist/components/utils/UluAction.vue.js +1 -1
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +2 -2
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useTableData.d.ts +30 -0
- package/dist/composables/useTableData.d.ts.map +1 -0
- package/dist/composables/useTableData.js +68 -0
- package/dist/index.js +190 -182
- package/lib/components/elements/UluCounterList.vue +77 -0
- package/lib/components/elements/UluDataTable.vue +115 -0
- package/lib/components/elements/UluDefinitionList.vue +1 -1
- package/lib/components/elements/UluList.vue +23 -8
- package/lib/components/elements/UluListItem.vue +11 -6
- package/lib/components/elements/UluTable.vue +217 -0
- package/lib/components/index.js +3 -0
- package/lib/components/systems/table-sticky/UluTableSticky.vue +26 -171
- package/lib/components/utils/UluAction.vue +1 -1
- package/lib/composables/index.js +1 -0
- package/lib/composables/useTableData.js +189 -0
- package/package.json +3 -3
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
classes: Record<string, any>;
|
|
8
|
+
element: string;
|
|
9
|
+
itemElement: string;
|
|
10
|
+
alphabetical: boolean;
|
|
11
|
+
noReset: boolean;
|
|
12
|
+
modifiers?: string | unknown[] | undefined;
|
|
13
|
+
items?: unknown[] | undefined;
|
|
14
|
+
$props: {
|
|
15
|
+
readonly classes?: Record<string, any> | undefined;
|
|
16
|
+
readonly element?: string | undefined;
|
|
17
|
+
readonly itemElement?: string | undefined;
|
|
18
|
+
readonly alphabetical?: boolean | undefined;
|
|
19
|
+
readonly noReset?: boolean | undefined;
|
|
20
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
21
|
+
readonly items?: unknown[] | undefined;
|
|
22
|
+
};
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
type __VLS_TemplateResult = {
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
slots: {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {};
|
|
30
|
+
rootEl: any;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=UluCounterList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UluCounterList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluCounterList.vue"],"names":[],"mappings":"AAcA;wBA4NqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;2OAQG"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { computed as l, createBlock as r, openBlock as o, normalizeClass as m, unref as c, createSlots as u, withCtx as f, renderSlot as d, normalizeProps as p, guardReactiveProps as y } from "vue";
|
|
2
|
+
import { useModifiers as b } from "../../composables/useModifiers.js";
|
|
3
|
+
import h from "./UluList.vue.js";
|
|
4
|
+
const B = {
|
|
5
|
+
__name: "UluCounterList",
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* Array of list items, output as is or use slot to template the item
|
|
9
|
+
* - Note item can add classes by defining { classes: { item } }
|
|
10
|
+
*/
|
|
11
|
+
items: Array,
|
|
12
|
+
/**
|
|
13
|
+
* HTML element for the list
|
|
14
|
+
*/
|
|
15
|
+
element: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "ol"
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* HTML element for the list items (when using items array)
|
|
21
|
+
*/
|
|
22
|
+
itemElement: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "li"
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* Classes object (keys are { list, item } to be applied to list and item elements)
|
|
28
|
+
*/
|
|
29
|
+
classes: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => ({})
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Use alphabetical counter
|
|
35
|
+
*/
|
|
36
|
+
alphabetical: Boolean,
|
|
37
|
+
/**
|
|
38
|
+
* Remove counter reset
|
|
39
|
+
*/
|
|
40
|
+
noReset: Boolean,
|
|
41
|
+
/**
|
|
42
|
+
* Modifiers (to add any modifier classes based on base class [ie. 'alphabetical'])
|
|
43
|
+
*/
|
|
44
|
+
modifiers: [String, Array]
|
|
45
|
+
},
|
|
46
|
+
setup(t) {
|
|
47
|
+
const e = t, { resolvedModifiers: a } = b({
|
|
48
|
+
props: e,
|
|
49
|
+
baseClass: "counter-list",
|
|
50
|
+
internal: l(() => ({
|
|
51
|
+
alphabetical: e.alphabetical,
|
|
52
|
+
"no-reset": e.noReset
|
|
53
|
+
}))
|
|
54
|
+
}), i = l(() => ({
|
|
55
|
+
list: e.classes.list,
|
|
56
|
+
item: ["counter-list__item", e.classes.item]
|
|
57
|
+
}));
|
|
58
|
+
return (s, C) => (o(), r(h, {
|
|
59
|
+
class: m(["counter-list", c(a)]),
|
|
60
|
+
items: t.items,
|
|
61
|
+
element: t.element,
|
|
62
|
+
itemElement: t.itemElement,
|
|
63
|
+
classes: i.value
|
|
64
|
+
}, u({ _: 2 }, [
|
|
65
|
+
s.$slots.default ? {
|
|
66
|
+
name: "default",
|
|
67
|
+
fn: f((n) => [
|
|
68
|
+
d(s.$slots, "default", p(y(n)))
|
|
69
|
+
]),
|
|
70
|
+
key: "0"
|
|
71
|
+
} : void 0
|
|
72
|
+
]), 1032, ["class", "items", "element", "itemElement", "classes"]));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
B as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
classes: Record<string, any>;
|
|
8
|
+
striped: boolean;
|
|
9
|
+
largeFirst: boolean;
|
|
10
|
+
modifiers?: string | unknown[] | undefined;
|
|
11
|
+
columns?: unknown[] | undefined;
|
|
12
|
+
rows?: unknown[] | undefined;
|
|
13
|
+
footerRows?: unknown[] | undefined;
|
|
14
|
+
idPrefix?: string | undefined;
|
|
15
|
+
caption?: string | undefined;
|
|
16
|
+
getRowValue?: Function | undefined;
|
|
17
|
+
getColumnTitle?: Function | undefined;
|
|
18
|
+
$props: {
|
|
19
|
+
readonly classes?: Record<string, any> | undefined;
|
|
20
|
+
readonly striped?: boolean | undefined;
|
|
21
|
+
readonly largeFirst?: boolean | undefined;
|
|
22
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
23
|
+
readonly columns?: unknown[] | undefined;
|
|
24
|
+
readonly rows?: unknown[] | undefined;
|
|
25
|
+
readonly footerRows?: unknown[] | undefined;
|
|
26
|
+
readonly idPrefix?: string | undefined;
|
|
27
|
+
readonly caption?: string | undefined;
|
|
28
|
+
readonly getRowValue?: Function | undefined;
|
|
29
|
+
readonly getColumnTitle?: Function | undefined;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableElement>;
|
|
32
|
+
type __VLS_TemplateResult = {
|
|
33
|
+
attrs: Partial<{}>;
|
|
34
|
+
slots: Partial<Record<number, (_: {
|
|
35
|
+
row: any;
|
|
36
|
+
column: any;
|
|
37
|
+
rowIndex: number;
|
|
38
|
+
index: number;
|
|
39
|
+
}) => any>>;
|
|
40
|
+
refs: {};
|
|
41
|
+
rootEl: HTMLTableElement;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=UluDataTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UluDataTable.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluDataTable.vue"],"names":[],"mappings":"AAqBA;wBA6SqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;;;;;;;wPAQG"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { computed as l, createBlock as n, openBlock as c, mergeProps as u, unref as f, createSlots as m, renderList as d, withCtx as g, renderSlot as w, normalizeProps as y, guardReactiveProps as R } from "vue";
|
|
2
|
+
import { useModifiers as b } from "../../composables/useModifiers.js";
|
|
3
|
+
import p from "./UluTable.vue.js";
|
|
4
|
+
import { isArrayOfObjects as o } from "../../utils/props.js";
|
|
5
|
+
const x = {
|
|
6
|
+
__name: "UluDataTable",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* Array of column configurations to convert to list output
|
|
10
|
+
*
|
|
11
|
+
* @property {Object} column A column config
|
|
12
|
+
* @property {String|Boolean} column.title The title to output for the column if set to a falsey value nothing will print
|
|
13
|
+
* @property {Array} column.columns Array of child columns
|
|
14
|
+
* @property {String} column.key The key that should be usec to grab column's value from rows
|
|
15
|
+
* @property {Function} column.value A function that returns the column's value used instead of key passed (row, column)
|
|
16
|
+
* @property {String} column.slot Register custom slot name to use as a template for this column. Passing a slot with this name will link them. The slot are passed the ({row, column}). Note this will disable output of the column's value
|
|
17
|
+
* @property {String} column.slotHeader Register custom slot name to use in the header
|
|
18
|
+
* @property {String} column.classHeader Custom class(s) to be set to column <th>
|
|
19
|
+
* @property {String} column.class Custom class(s) to be set to column's value <td>
|
|
20
|
+
* @property {String} column.html Use v-html output for value
|
|
21
|
+
* @property {String} column.rowHeader When this column is printed in the <tbody> it should be a header for the row. Note supports multiple row headers from left to right only. No rowspan support for rowHeaders.
|
|
22
|
+
*/
|
|
23
|
+
columns: {
|
|
24
|
+
type: Array,
|
|
25
|
+
validator: o
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* Array of tables rows (tbody)
|
|
29
|
+
* - Each row is an object who's value will be matched to columns
|
|
30
|
+
*/
|
|
31
|
+
rows: {
|
|
32
|
+
type: Array,
|
|
33
|
+
validator: o
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Array of rows for footer (tfoot)
|
|
37
|
+
*/
|
|
38
|
+
footerRows: {
|
|
39
|
+
type: Array,
|
|
40
|
+
validator: o
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Hidden caption for accessibility (or visible depending on styles). Can also be passed via slot.
|
|
44
|
+
*/
|
|
45
|
+
caption: String,
|
|
46
|
+
/**
|
|
47
|
+
* Prefix used for id generation
|
|
48
|
+
*/
|
|
49
|
+
idPrefix: String,
|
|
50
|
+
/**
|
|
51
|
+
* Optional user overridden value getter (for rows)
|
|
52
|
+
* @param {Object} row The current row
|
|
53
|
+
* @param {Object} column The current column in the row
|
|
54
|
+
*/
|
|
55
|
+
getRowValue: Function,
|
|
56
|
+
/**
|
|
57
|
+
* Optional user overridden title getter (for headers)
|
|
58
|
+
* @param {Object} column The current column
|
|
59
|
+
*/
|
|
60
|
+
getColumnTitle: Function,
|
|
61
|
+
/**
|
|
62
|
+
* Applies striped row styling
|
|
63
|
+
*/
|
|
64
|
+
striped: Boolean,
|
|
65
|
+
/**
|
|
66
|
+
* Enhances the first column's visual prominence
|
|
67
|
+
*/
|
|
68
|
+
largeFirst: Boolean,
|
|
69
|
+
/**
|
|
70
|
+
* Additional style modifiers
|
|
71
|
+
*/
|
|
72
|
+
modifiers: [String, Array],
|
|
73
|
+
/**
|
|
74
|
+
* Allows user to pass classes object to add custom classes to parts of the component
|
|
75
|
+
*/
|
|
76
|
+
classes: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: () => ({})
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
setup(e) {
|
|
82
|
+
const t = e, { resolvedModifiers: s } = b({
|
|
83
|
+
props: t,
|
|
84
|
+
baseClass: "data-table",
|
|
85
|
+
internal: l(() => ({
|
|
86
|
+
striped: t.striped,
|
|
87
|
+
"large-first": t.largeFirst
|
|
88
|
+
}))
|
|
89
|
+
});
|
|
90
|
+
return (r, P) => (c(), n(p, u({ class: "data-table" }, r.$attrs, {
|
|
91
|
+
columns: e.columns,
|
|
92
|
+
rows: e.rows,
|
|
93
|
+
footerRows: e.footerRows,
|
|
94
|
+
caption: e.caption,
|
|
95
|
+
idPrefix: e.idPrefix,
|
|
96
|
+
getRowValue: e.getRowValue,
|
|
97
|
+
getColumnTitle: e.getColumnTitle,
|
|
98
|
+
classes: {
|
|
99
|
+
...e.classes,
|
|
100
|
+
table: [f(s), e.classes?.table]
|
|
101
|
+
}
|
|
102
|
+
}), m({ _: 2 }, [
|
|
103
|
+
d(r.$slots, (C, a) => ({
|
|
104
|
+
name: a,
|
|
105
|
+
fn: g((i) => [
|
|
106
|
+
w(r.$slots, a, y(R(i)))
|
|
107
|
+
])
|
|
108
|
+
}))
|
|
109
|
+
]), 1040, ["columns", "rows", "footerRows", "caption", "idPrefix", "getRowValue", "getColumnTitle", "classes"]));
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
x as default
|
|
114
|
+
};
|
|
@@ -6,9 +6,9 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
classes: Record<string, any>;
|
|
8
8
|
compact: boolean;
|
|
9
|
+
table: boolean;
|
|
9
10
|
inline: boolean;
|
|
10
11
|
inlineAll: boolean;
|
|
11
|
-
table: boolean;
|
|
12
12
|
separated: boolean;
|
|
13
13
|
separatedFirst: boolean;
|
|
14
14
|
separatedLast: boolean;
|
|
@@ -17,9 +17,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
17
17
|
$props: {
|
|
18
18
|
readonly classes?: Record<string, any> | undefined;
|
|
19
19
|
readonly compact?: boolean | undefined;
|
|
20
|
+
readonly table?: boolean | undefined;
|
|
20
21
|
readonly inline?: boolean | undefined;
|
|
21
22
|
readonly inlineAll?: boolean | undefined;
|
|
22
|
-
readonly table?: boolean | undefined;
|
|
23
23
|
readonly separated?: boolean | undefined;
|
|
24
24
|
readonly separatedFirst?: boolean | undefined;
|
|
25
25
|
readonly separatedLast?: boolean | undefined;
|
|
@@ -11,8 +11,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
11
11
|
lines: boolean;
|
|
12
12
|
forceOrdered: boolean;
|
|
13
13
|
reversed: boolean;
|
|
14
|
+
itemElement: string;
|
|
14
15
|
start?: string | undefined;
|
|
15
16
|
items?: unknown[] | undefined;
|
|
17
|
+
element?: string | undefined;
|
|
16
18
|
listStyleType?: string | undefined;
|
|
17
19
|
$props: {
|
|
18
20
|
readonly classes?: Record<string, any> | undefined;
|
|
@@ -22,8 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
22
24
|
readonly lines?: boolean | undefined;
|
|
23
25
|
readonly forceOrdered?: boolean | undefined;
|
|
24
26
|
readonly reversed?: boolean | undefined;
|
|
27
|
+
readonly itemElement?: string | undefined;
|
|
25
28
|
readonly start?: string | undefined;
|
|
26
29
|
readonly items?: unknown[] | undefined;
|
|
30
|
+
readonly element?: string | undefined;
|
|
27
31
|
readonly listStyleType?: string | undefined;
|
|
28
32
|
};
|
|
29
33
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UluList.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluList.vue"],"names":[],"mappings":"AAqCA;wBA0SqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;;;;;;;;;;;;;;;2OAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { provide as
|
|
2
|
-
const
|
|
1
|
+
import { provide as f, computed as r, createBlock as i, createCommentVNode as v, openBlock as n, resolveDynamicComponent as o, normalizeStyle as S, normalizeClass as c, withCtx as m, createElementBlock as B, renderSlot as u, Fragment as g, renderList as k, createTextVNode as E, toDisplayString as C } from "vue";
|
|
2
|
+
const h = {
|
|
3
3
|
__name: "UluList",
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ const L = {
|
|
|
8
8
|
*/
|
|
9
9
|
items: Array,
|
|
10
10
|
/**
|
|
11
|
-
* Classes object (keys are { list, item } to be applied to
|
|
11
|
+
* Classes object (keys are { list, item } to be applied to list and item elements)
|
|
12
12
|
* - Any valid class binding for each
|
|
13
13
|
*/
|
|
14
14
|
classes: {
|
|
@@ -47,15 +47,29 @@ const L = {
|
|
|
47
47
|
/**
|
|
48
48
|
* Define list style type (ie. disc, decimal, etc)
|
|
49
49
|
*/
|
|
50
|
-
listStyleType: String
|
|
50
|
+
listStyleType: String,
|
|
51
|
+
/**
|
|
52
|
+
* Element to render the list as (overrides ul/ol)
|
|
53
|
+
*/
|
|
54
|
+
element: String,
|
|
55
|
+
/**
|
|
56
|
+
* Element to render items as when using items array
|
|
57
|
+
*/
|
|
58
|
+
itemElement: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: "li"
|
|
61
|
+
}
|
|
51
62
|
},
|
|
52
63
|
setup(e) {
|
|
53
64
|
const t = e;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
f("uluListContext", r(() => ({
|
|
66
|
+
classes: t.classes,
|
|
67
|
+
itemElement: t.itemElement
|
|
68
|
+
})));
|
|
69
|
+
const a = r(() => t.ordered || t.forceOrdered), y = r(() => t.element || (a.value ? "ol" : "ul"));
|
|
70
|
+
return (l, O) => (e.items !== void 0 ? e.items.length : l.$slots.default) ? (n(), i(o(y.value), {
|
|
57
71
|
key: 0,
|
|
58
|
-
class:
|
|
72
|
+
class: c([
|
|
59
73
|
{
|
|
60
74
|
"list-ordered": e.ordered,
|
|
61
75
|
"list-unordered": e.unordered,
|
|
@@ -64,32 +78,35 @@ const L = {
|
|
|
64
78
|
},
|
|
65
79
|
e.classes.list
|
|
66
80
|
]),
|
|
67
|
-
style:
|
|
81
|
+
style: S({
|
|
68
82
|
listStyleType: e.listStyleType
|
|
69
83
|
}),
|
|
70
|
-
reversed:
|
|
84
|
+
reversed: a.value ? e.reversed : null,
|
|
71
85
|
start: e.start
|
|
72
86
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
e.items !== void 0 ? (
|
|
87
|
+
default: m(() => [
|
|
88
|
+
e.items !== void 0 ? (n(!0), B(g, { key: 0 }, k(e.items, (s, d) => (n(), i(o(e.itemElement), {
|
|
75
89
|
key: d,
|
|
76
|
-
class:
|
|
90
|
+
class: c([
|
|
77
91
|
e.classes.item,
|
|
78
92
|
s?.classes?.item
|
|
79
93
|
])
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
94
|
+
}, {
|
|
95
|
+
default: m(() => [
|
|
96
|
+
u(l.$slots, "default", {
|
|
97
|
+
item: s,
|
|
98
|
+
index: d
|
|
99
|
+
}, () => [
|
|
100
|
+
E(C(s), 1)
|
|
101
|
+
])
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1032, ["class"]))), 128)) : u(l.$slots, "default", { key: 1 })
|
|
88
105
|
]),
|
|
89
106
|
_: 3
|
|
90
|
-
}, 8, ["class", "style", "reversed", "start"])) :
|
|
107
|
+
}, 8, ["class", "style", "reversed", "start"])) : v("", !0);
|
|
91
108
|
}
|
|
92
109
|
};
|
|
93
110
|
export {
|
|
94
|
-
|
|
111
|
+
h as default
|
|
95
112
|
};
|
|
@@ -5,16 +5,18 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
classes?: string | Record<string, any> | unknown[] | undefined;
|
|
8
|
+
element?: string | undefined;
|
|
8
9
|
$props: {
|
|
9
10
|
readonly classes?: string | Record<string, any> | unknown[] | undefined;
|
|
11
|
+
readonly element?: string | undefined;
|
|
10
12
|
};
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
14
|
type __VLS_TemplateResult = {
|
|
13
15
|
attrs: Partial<{}>;
|
|
14
16
|
slots: {
|
|
15
17
|
default?(_: {}): any;
|
|
16
18
|
};
|
|
17
19
|
refs: {};
|
|
18
|
-
rootEl:
|
|
20
|
+
rootEl: any;
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=UluListItem.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluListItem.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluListItem.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"UluListItem.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluListItem.vue"],"names":[],"mappings":"AAKA;wBAqGqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;2OAQG"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
const
|
|
1
|
+
import { inject as c, computed as s, createBlock as r, openBlock as i, resolveDynamicComponent as m, normalizeClass as u, withCtx as p, renderSlot as d } from "vue";
|
|
2
|
+
const f = {
|
|
3
3
|
__name: "UluListItem",
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
6
6
|
* Optional class binding to append to the injected parent classes
|
|
7
7
|
*/
|
|
8
|
-
classes: [String, Array, Object]
|
|
8
|
+
classes: [String, Array, Object],
|
|
9
|
+
/**
|
|
10
|
+
* The HTML element to render the item as
|
|
11
|
+
*/
|
|
12
|
+
element: String
|
|
9
13
|
},
|
|
10
14
|
setup(e) {
|
|
11
|
-
const
|
|
12
|
-
return (
|
|
13
|
-
class:
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const l = e, t = c("uluListContext", { value: {} }), n = s(() => t.value?.classes || {}), a = s(() => l.element || t.value?.itemElement || "li");
|
|
16
|
+
return (o, v) => (i(), r(m(a.value), {
|
|
17
|
+
class: u([n.value.item, e.classes])
|
|
18
|
+
}, {
|
|
19
|
+
default: p(() => [
|
|
20
|
+
d(o.$slots, "default")
|
|
21
|
+
]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 8, ["class"]));
|
|
17
24
|
}
|
|
18
25
|
};
|
|
19
26
|
export {
|
|
20
|
-
|
|
27
|
+
f as default
|
|
21
28
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
classes: Record<string, any>;
|
|
8
|
+
idPrefix: string;
|
|
9
|
+
columns?: unknown[] | undefined;
|
|
10
|
+
rows?: unknown[] | undefined;
|
|
11
|
+
footerRows?: unknown[] | undefined;
|
|
12
|
+
caption?: string | undefined;
|
|
13
|
+
getRowValue?: Function | undefined;
|
|
14
|
+
getColumnTitle?: Function | undefined;
|
|
15
|
+
$props: {
|
|
16
|
+
readonly classes?: Record<string, any> | undefined;
|
|
17
|
+
readonly idPrefix?: string | undefined;
|
|
18
|
+
readonly columns?: unknown[] | undefined;
|
|
19
|
+
readonly rows?: unknown[] | undefined;
|
|
20
|
+
readonly footerRows?: unknown[] | undefined;
|
|
21
|
+
readonly caption?: string | undefined;
|
|
22
|
+
readonly getRowValue?: Function | undefined;
|
|
23
|
+
readonly getColumnTitle?: Function | undefined;
|
|
24
|
+
};
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableElement>;
|
|
26
|
+
type __VLS_TemplateResult = {
|
|
27
|
+
attrs: Partial<{}>;
|
|
28
|
+
slots: Partial<Record<any, (_: {
|
|
29
|
+
column: never;
|
|
30
|
+
index: number;
|
|
31
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
32
|
+
row: any;
|
|
33
|
+
column: any;
|
|
34
|
+
rowIndex: number;
|
|
35
|
+
index: number;
|
|
36
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
37
|
+
row: any;
|
|
38
|
+
column: any;
|
|
39
|
+
rowIndex: number;
|
|
40
|
+
index: number;
|
|
41
|
+
}) => any>> & {
|
|
42
|
+
caption?(_: {}): any;
|
|
43
|
+
default?(_: {}): any;
|
|
44
|
+
};
|
|
45
|
+
refs: {};
|
|
46
|
+
rootEl: HTMLTableElement;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=UluTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UluTable.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluTable.vue"],"names":[],"mappings":"AAwGA;wBAshBqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;;;;;wPAQG"}
|