@open-xamu-co/ui-components-vue 3.1.0-next.8 → 3.1.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.
- package/CHANGELOG.md +532 -0
- package/dist/components/action/Button.stories.d.ts +4 -4
- package/dist/components/action/Button.vue.d.ts +4 -0
- package/dist/components/action/ButtonToggle.stories.d.ts +2 -0
- package/dist/components/base/Box.vue.d.ts +6 -0
- package/dist/components/base/ErrorBoundary.vue.d.ts +7 -2
- package/dist/components/base/Img.vue.d.ts +15 -56
- package/dist/components/base/Input.vue.d.ts +2 -0
- package/dist/components/base/Wrapper.vue.d.ts +3 -2
- package/dist/components/box/Action.vue.d.ts +1 -1
- package/dist/components/box/Message.stories.d.ts +1 -1
- package/dist/components/dropdown/Simple.stories.d.ts +6 -4
- package/dist/components/form/InputCountriesAPI.vue.d.ts +2 -6
- package/dist/components/form/InputNValues.vue.d.ts +2 -0
- package/dist/components/form/Simple.stories.d.ts +5 -3
- package/dist/components/form/Simple.vue.d.ts +5 -4
- package/dist/components/form/Stages.stories.d.ts +6 -9
- package/dist/components/input/Color.stories.d.ts +3 -3
- package/dist/components/input/Color.vue.d.ts +10 -2
- package/dist/components/input/File.vue.d.ts +4 -0
- package/dist/components/input/Toggle.vue.d.ts +2 -2
- package/dist/components/loader/ContentFetch.vue.d.ts +6 -3
- package/dist/components/modal/Simple.stories.d.ts +13 -4
- package/dist/components/pagination/Content.vue.d.ts +16 -4
- package/dist/components/pagination/ContentTable.stories.d.ts +4 -3
- package/dist/components/pagination/ContentTable.vue.d.ts +43 -14
- package/dist/components/pagination/Simple.stories.d.ts +14 -1
- package/dist/components/select/Choice.stories.d.ts +6 -5
- package/dist/components/select/Filter.stories.d.ts +5 -5
- package/dist/components/table/Body.vue.d.ts +17 -12
- package/dist/components/table/HeadActions.vue.d.ts +26 -0
- package/dist/components/table/HeadContent.vue.d.ts +17 -0
- package/dist/components/table/Simple.stories.d.ts +35 -11
- package/dist/components/table/Simple.vue.d.ts +22 -15
- package/dist/composables/theme.d.ts +8 -1
- package/dist/composables/utils.d.ts +2 -1
- package/dist/index-BeKPWN3w.js +4 -0
- package/dist/index-DPLrKbNp.mjs +8400 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/plugin.js +1 -1
- package/dist/plugin.mjs +143 -133
- package/dist/theme-CChhGSbE.js +1 -0
- package/dist/theme-DWMJmaKP.mjs +83 -0
- package/dist/theme.js +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/types/plugin.d.ts +9 -1
- package/dist/types/props.d.ts +59 -16
- package/package.json +7 -6
- package/dist/components/table/Head.vue.d.ts +0 -25
- package/dist/index-DGrB5TJj.js +0 -4
- package/dist/index-DQNf7V6R.mjs +0 -6745
- package/dist/screens/DropdownWithToggle.stories.d.ts +0 -11
- package/dist/screens/DropdownWithToggle.vue.d.ts +0 -2
- package/dist/screens/FormWithFetch.stories.d.ts +0 -11
- package/dist/screens/FormWithFetch.vue.d.ts +0 -2
- package/dist/screens/ModalWithFormStages.stories.d.ts +0 -11
- package/dist/screens/ModalWithFormStages.vue.d.ts +0 -2
- package/dist/screens/ModalWithToggle.stories.d.ts +0 -11
- package/dist/screens/ModalWithToggle.vue.d.ts +0 -2
- package/dist/screens/PaginationContentWithTable.stories.d.ts +0 -11
- package/dist/screens/PaginationContentWithTable.vue.d.ts +0 -8
- package/dist/screens/TableWithNestedTable.stories.d.ts +0 -11
- package/dist/screens/TableWithNestedTable.vue.d.ts +0 -8
- package/dist/theme-DSVG59vT.js +0 -1
- package/dist/theme-DVpUQx-w.mjs +0 -78
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),A=require("@open-xamu-co/ui-common-helpers"),i=require("@open-xamu-co/ui-common-enums");function h(e){const{countriesUrl:r="https://countries.xamu.com.co/api/v1",...s}=n.inject("xamu")||{};return e({...s,countriesUrl:r})}function g(e){function r(u){return u.map(a=>{if(typeof a!="string")return!1;const l=a.split(":",2),o=l[1]?.toLowerCase?.()==="asc"?"asc":"desc";return[l[0],o]}).filter(a=>!!a)}const s=e;return Array.isArray(s)?r(s):typeof s=="string"?r([s]):[]}async function w(e){const r=await e;return Array.isArray(r)?r:[r]}function m(e){if(Array.isArray(e))return[e[0],e[1]||i.eColors.LIGHT];if(typeof e=="object"&&e!==null){const r=Object.entries(e).filter(([s,u])=>u);return m([r[0][0]])}return m([e])}function b(e,r){return h(s=>{const{getModifierClasses:u,getPropData:a}=A.useUtils(s),l=n.computed(()=>{const[t,c]=m(e.theme??i.eColors.SECONDARY),f=[t,c||i.eColors.LIGHT];return e.invertTheme||f.reverse(),f}),o=n.computed(()=>[l.value[1],l.value[0]]),d=n.computed(()=>[i.eColors.DANGER,o.value[1]===i.eColors.DARK?i.eColors.DARK:i.eColors.LIGHT]),v=n.computed(()=>{let t;if(typeof e.shadow=="boolean")t=e.shadow;else{if(!e.shadow?.length)return[];t=e.shadow.some(c=>o.value[0]===c)}return t?u([{shadow:t}],{prefix:""}):[]}),C=n.computed(()=>{if(!e.theme)return[];const t=r?o.value:[o.value[0]];return u([t.join("-")],{modifier:"tm",divider:"-"})}),y=n.computed(()=>{if(!e.theme)return[];const t=r?d.value:[d.value[0]];return u([t.join("-")],{modifier:"tm",divider:"-"})}),T=n.computed(()=>{const t=e.tooltip&&a(e.tooltip),c=o.value[1]!==i.eColors.LIGHT;return t?{"aria-label":e.ariaLabel??t,"data-tooltip":t,"data-tooltip-position":e.tooltipPosition,"data-tooltip-text":e.tooltipAsText??!0,"data-tooltip-bg":o.value[0],"data-tooltip-color":c?o.value[1]:void 0}:{"aria-label":e.ariaLabel}});return{invertedThemeValues:l,themeValues:o,dangerThemeValues:d,themeClasses:C,dangerThemeClasses:y,shadowClasses:v,tooltipAttributes:T}})}exports.useHelpers=h;exports.useOrderBy=g;exports.useResolveNodeFn=w;exports.useTheme=b;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { inject as T, computed as s } from "vue";
|
|
2
|
+
import { useUtils as g } from "@open-xamu-co/ui-common-helpers";
|
|
3
|
+
import { eColors as i } from "@open-xamu-co/ui-common-enums";
|
|
4
|
+
function w(e) {
|
|
5
|
+
const { countriesUrl: r = "https://countries.xamu.com.co/api/v1", ...n } = T("xamu") || {};
|
|
6
|
+
return e({ ...n, countriesUrl: r });
|
|
7
|
+
}
|
|
8
|
+
function L(e) {
|
|
9
|
+
function r(a) {
|
|
10
|
+
return a.map((u) => {
|
|
11
|
+
if (typeof u != "string") return !1;
|
|
12
|
+
const l = u.split(":", 2), o = l[1]?.toLowerCase?.() === "asc" ? "asc" : "desc";
|
|
13
|
+
return [l[0], o];
|
|
14
|
+
}).filter((u) => !!u);
|
|
15
|
+
}
|
|
16
|
+
const n = e;
|
|
17
|
+
return Array.isArray(n) ? r(n) : typeof n == "string" ? r([n]) : [];
|
|
18
|
+
}
|
|
19
|
+
async function G(e) {
|
|
20
|
+
const r = await e;
|
|
21
|
+
return Array.isArray(r) ? r : [r];
|
|
22
|
+
}
|
|
23
|
+
function d(e) {
|
|
24
|
+
if (Array.isArray(e))
|
|
25
|
+
return [e[0], e[1] || i.LIGHT];
|
|
26
|
+
if (typeof e == "object" && e !== null) {
|
|
27
|
+
const r = Object.entries(e).filter(([n, a]) => a);
|
|
28
|
+
return d([r[0][0]]);
|
|
29
|
+
}
|
|
30
|
+
return d([e]);
|
|
31
|
+
}
|
|
32
|
+
function j(e, r) {
|
|
33
|
+
return w((n) => {
|
|
34
|
+
const { getModifierClasses: a, getPropData: u } = g(n), l = s(() => {
|
|
35
|
+
const [t, c] = d(e.theme ?? i.SECONDARY), m = [t, c || i.LIGHT];
|
|
36
|
+
return e.invertTheme || m.reverse(), m;
|
|
37
|
+
}), o = s(() => [l.value[1], l.value[0]]), f = s(() => [
|
|
38
|
+
i.DANGER,
|
|
39
|
+
o.value[1] === i.DARK ? i.DARK : i.LIGHT
|
|
40
|
+
]), h = s(() => {
|
|
41
|
+
let t;
|
|
42
|
+
if (typeof e.shadow == "boolean") t = e.shadow;
|
|
43
|
+
else {
|
|
44
|
+
if (!e.shadow?.length) return [];
|
|
45
|
+
t = e.shadow.some((c) => o.value[0] === c);
|
|
46
|
+
}
|
|
47
|
+
return t ? a([{ shadow: t }], { prefix: "" }) : [];
|
|
48
|
+
}), v = s(() => {
|
|
49
|
+
if (!e.theme) return [];
|
|
50
|
+
const t = r ? o.value : [o.value[0]];
|
|
51
|
+
return a([t.join("-")], { modifier: "tm", divider: "-" });
|
|
52
|
+
}), y = s(() => {
|
|
53
|
+
if (!e.theme) return [];
|
|
54
|
+
const t = r ? f.value : [f.value[0]];
|
|
55
|
+
return a([t.join("-")], { modifier: "tm", divider: "-" });
|
|
56
|
+
}), A = s(() => {
|
|
57
|
+
const t = e.tooltip && u(e.tooltip), c = o.value[1] !== i.LIGHT;
|
|
58
|
+
return t ? {
|
|
59
|
+
"aria-label": e.ariaLabel ?? t,
|
|
60
|
+
"data-tooltip": t,
|
|
61
|
+
"data-tooltip-position": e.tooltipPosition,
|
|
62
|
+
"data-tooltip-text": e.tooltipAsText ?? !0,
|
|
63
|
+
"data-tooltip-bg": o.value[0],
|
|
64
|
+
"data-tooltip-color": c ? o.value[1] : void 0
|
|
65
|
+
} : { "aria-label": e.ariaLabel };
|
|
66
|
+
});
|
|
67
|
+
return {
|
|
68
|
+
invertedThemeValues: l,
|
|
69
|
+
themeValues: o,
|
|
70
|
+
dangerThemeValues: f,
|
|
71
|
+
themeClasses: v,
|
|
72
|
+
dangerThemeClasses: y,
|
|
73
|
+
shadowClasses: h,
|
|
74
|
+
tooltipAttributes: A
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
j as a,
|
|
80
|
+
L as b,
|
|
81
|
+
G as c,
|
|
82
|
+
w as u
|
|
83
|
+
};
|
package/dist/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vue");require("@open-xamu-co/ui-common-helpers");require("@open-xamu-co/ui-common-enums");const e=require("./theme-
|
|
1
|
+
"use strict";require("vue");require("@open-xamu-co/ui-common-helpers");require("@open-xamu-co/ui-common-enums");const e=require("./theme-CChhGSbE.js");module.exports=e.useTheme;
|
package/dist/theme.mjs
CHANGED
package/dist/types/plugin.d.ts
CHANGED
|
@@ -3,7 +3,15 @@ import type { iPluginOptions } from "@open-xamu-co/ui-common-types";
|
|
|
3
3
|
import type { useAsyncDataFn } from "../composables/async";
|
|
4
4
|
export type vComponent<P extends Record<string, any> = Record<string, any>> = VueComponent<P> | FunctionalComponent<P> | DefineComponent<P>;
|
|
5
5
|
export interface iVuePluginOptions extends iPluginOptions<vComponent> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Override internal behavior
|
|
8
|
+
* Useful to setup nuxt modules
|
|
9
|
+
*/
|
|
10
|
+
internals?: iPluginOptions<vComponent>["internals"] & {
|
|
11
|
+
/**
|
|
12
|
+
* Client only component
|
|
13
|
+
*/
|
|
14
|
+
clientOnly?: vComponent;
|
|
7
15
|
/**
|
|
8
16
|
* Nuxt Async data
|
|
9
17
|
*/
|
package/dist/types/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { iFormOption, tFormAutocomplete, tIndicative, tProp, tProps, tPropsModifier, tThemeModifier, tThemeTuple, tSizeModifier, iProperty, iNodeFn, tOrderBy, tPropertyOrderFn, tOrder } from "@open-xamu-co/ui-common-types";
|
|
1
|
+
import type { iFormOption, tFormAutocomplete, tIndicative, tProp, tProps, tPropsModifier, tThemeModifier, tThemeTuple, tSizeModifier, iProperty, iNodeFn, tOrderBy, tPropertyOrderFn, tOrder, iPageInfo, iPagination } from "@open-xamu-co/ui-common-types";
|
|
2
2
|
import type { AllowedComponentProps, RendererElement } from "vue";
|
|
3
3
|
import type { vComponent } from "./plugin";
|
|
4
4
|
export interface iUseModifiersProps {
|
|
@@ -54,6 +54,7 @@ export interface iUseThemeProps {
|
|
|
54
54
|
shadow?: boolean | tThemeModifier[];
|
|
55
55
|
}
|
|
56
56
|
export interface iUseThemeTooltipProps {
|
|
57
|
+
ariaLabel?: string;
|
|
57
58
|
/**
|
|
58
59
|
* Show given text as tooltip on hover.
|
|
59
60
|
*
|
|
@@ -144,21 +145,30 @@ export interface iModalProps extends iUseThemeProps {
|
|
|
144
145
|
* Are modal requirement meet?
|
|
145
146
|
* This is intended to prevent the usage of certain modals
|
|
146
147
|
*
|
|
147
|
-
*
|
|
148
|
+
* This should not depend on any internal state
|
|
149
|
+
*
|
|
150
|
+
* @example User does not have enough permissions
|
|
148
151
|
*/
|
|
149
152
|
hide?: boolean;
|
|
153
|
+
/** Message to show when modal is hidden */
|
|
150
154
|
hideMessage?: string;
|
|
155
|
+
/** Hides the footer */
|
|
151
156
|
hideFooter?: boolean;
|
|
157
|
+
/** disables modal */
|
|
158
|
+
disabled?: boolean;
|
|
152
159
|
/**
|
|
153
|
-
*
|
|
160
|
+
* Target element to append the modal to
|
|
161
|
+
*
|
|
162
|
+
* Another modal could be the target so it appears nested
|
|
163
|
+
*
|
|
164
|
+
* @default body
|
|
154
165
|
*/
|
|
155
|
-
|
|
166
|
+
target?: string | RendererElement;
|
|
156
167
|
/**
|
|
157
168
|
* Shows/hides the modal
|
|
158
169
|
* @private
|
|
159
170
|
*/
|
|
160
171
|
modelValue?: boolean;
|
|
161
|
-
target?: string | RendererElement;
|
|
162
172
|
}
|
|
163
173
|
export interface iValueComplexProps extends iUseThemeProps {
|
|
164
174
|
/**
|
|
@@ -200,7 +210,7 @@ export interface iTablePropertyMeta<Ti extends Record<string, any>> extends iPro
|
|
|
200
210
|
value: string;
|
|
201
211
|
canSort: boolean;
|
|
202
212
|
}
|
|
203
|
-
export interface iTableProps<Ti extends Record<string, any
|
|
213
|
+
export interface iTableProps<Ti extends Record<string, any>, Tm extends Record<string, any> = Ti> extends iUseThemeProps {
|
|
204
214
|
/**
|
|
205
215
|
* Table nodes
|
|
206
216
|
* an array of nodes
|
|
@@ -208,6 +218,12 @@ export interface iTableProps<Ti extends Record<string, any>> extends iUseThemePr
|
|
|
208
218
|
* @old rows
|
|
209
219
|
*/
|
|
210
220
|
nodes: Ti[];
|
|
221
|
+
/**
|
|
222
|
+
* Map nodes as required
|
|
223
|
+
* Also useful to omit nodes from the array
|
|
224
|
+
*/
|
|
225
|
+
mapNodes?: (nodes: NoInfer<Ti>[]) => Tm[];
|
|
226
|
+
hydrateNodes?: (newNodes: NoInfer<Ti>[] | null, newErrors?: unknown) => void;
|
|
211
227
|
/**
|
|
212
228
|
* Table column names
|
|
213
229
|
* an array of property names
|
|
@@ -273,14 +289,21 @@ export interface iTableProps<Ti extends Record<string, any>> extends iUseThemePr
|
|
|
273
289
|
* @fallback property name
|
|
274
290
|
*/
|
|
275
291
|
childrenName?: string;
|
|
276
|
-
childrenCountKey?: keyof NoInfer<Ti>;
|
|
292
|
+
childrenCountKey?: keyof NoInfer<Ti> | keyof NoInfer<Tm>;
|
|
277
293
|
modalProps?: iModalProps & AllowedComponentProps;
|
|
278
294
|
/**
|
|
279
295
|
* Prevent node functions from triggering refresh event (useful with firebase hydration)
|
|
280
296
|
*/
|
|
281
297
|
omitRefresh?: boolean;
|
|
282
298
|
size?: tSizeModifier;
|
|
283
|
-
|
|
299
|
+
/**
|
|
300
|
+
* Filter & order nodes through the router
|
|
301
|
+
*/
|
|
302
|
+
withRoute?: boolean | iPagination;
|
|
303
|
+
/**
|
|
304
|
+
* Page info
|
|
305
|
+
*/
|
|
306
|
+
pageInfo?: iPageInfo;
|
|
284
307
|
/**
|
|
285
308
|
* Show real node id or given component
|
|
286
309
|
*/
|
|
@@ -288,8 +311,30 @@ export interface iTableProps<Ti extends Record<string, any>> extends iUseThemePr
|
|
|
288
311
|
index: number;
|
|
289
312
|
node: NoInfer<Ti>;
|
|
290
313
|
}>;
|
|
314
|
+
/**
|
|
315
|
+
* Make the table container opaque
|
|
316
|
+
*/
|
|
317
|
+
opaque?: boolean;
|
|
291
318
|
}
|
|
292
|
-
export interface
|
|
319
|
+
export interface iNodeVisibility {
|
|
320
|
+
disableCreateNodeChildren?: boolean;
|
|
321
|
+
showNodeChildren?: boolean;
|
|
322
|
+
childrenCount: number;
|
|
323
|
+
}
|
|
324
|
+
export interface iMappedNode<Ti extends Record<string, any>, Tm extends Record<string, any> = Ti> {
|
|
325
|
+
node: Tm;
|
|
326
|
+
index: number;
|
|
327
|
+
visibility: iNodeVisibility;
|
|
328
|
+
hydrateNode: (newNode: Ti | null, _newErrors?: unknown) => void;
|
|
329
|
+
createNodeChildrenAndRefresh: iNodeFn<Ti>;
|
|
330
|
+
}
|
|
331
|
+
export interface iMappedNodes<Ti extends Record<string, any>, Tm extends Record<string, any> = Ti> {
|
|
332
|
+
nodes: iMappedNode<Ti, Tm>[];
|
|
333
|
+
length: number;
|
|
334
|
+
withChildren: boolean;
|
|
335
|
+
}
|
|
336
|
+
export interface iTableChildProps<Ti extends Record<string, any>, Tm extends Record<string, any> = Ti> extends iTableProps<Ti, Tm> {
|
|
337
|
+
mappedNodes: iMappedNodes<Ti, Tm>;
|
|
293
338
|
/**
|
|
294
339
|
* Table unique identifier
|
|
295
340
|
*
|
|
@@ -314,11 +359,9 @@ export interface iTableChildProps<Ti extends Record<string, any>> extends iTable
|
|
|
314
359
|
selectedNodesCount: number;
|
|
315
360
|
openNodesCount: number;
|
|
316
361
|
/**
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
* node['propertyWithChildren']
|
|
362
|
+
* Can show children
|
|
320
363
|
*/
|
|
321
|
-
|
|
364
|
+
canShowChildren(visibility: iNodeVisibility, mappedIndex: number): boolean;
|
|
322
365
|
/**
|
|
323
366
|
* Set pagination order
|
|
324
367
|
*
|
|
@@ -339,21 +382,21 @@ export interface iTableChildProps<Ti extends Record<string, any>> extends iTable
|
|
|
339
382
|
*
|
|
340
383
|
* @single
|
|
341
384
|
*/
|
|
342
|
-
updateNodeAndRefresh
|
|
385
|
+
updateNodeAndRefresh: iNodeFn<Ti>;
|
|
343
386
|
/**
|
|
344
387
|
* Clones given node
|
|
345
388
|
* sometimes it could fail but still clone (api issue)
|
|
346
389
|
*
|
|
347
390
|
* @single
|
|
348
391
|
*/
|
|
349
|
-
cloneNodeAndRefresh
|
|
392
|
+
cloneNodeAndRefresh: iNodeFn<Ti, [Ti, ((m?: boolean) => any) | undefined, HTMLElement?]>;
|
|
350
393
|
/**
|
|
351
394
|
* Deletes given node
|
|
352
395
|
* sometimes it could fail but still delete (api issue)
|
|
353
396
|
*
|
|
354
397
|
* @single
|
|
355
398
|
*/
|
|
356
|
-
deleteNodeAndRefresh
|
|
399
|
+
deleteNodeAndRefresh: iNodeFn<Ti, [Ti, ((m?: boolean) => any) | undefined, HTMLElement?]>;
|
|
357
400
|
/**
|
|
358
401
|
* Deletes multiple selected nodes
|
|
359
402
|
* sometimes it could fail but still delete (api issue)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xamu-co/ui-components-vue",
|
|
3
|
-
"version": "3.1.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Vue component system for the xamu project",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:entries": "rimraf dist && vite build",
|
|
@@ -58,15 +58,16 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@fortawesome/fontawesome-common-types": "^6.4.0",
|
|
61
|
-
"@open-xamu-co/ui-common-enums": "^3.1.0
|
|
62
|
-
"@open-xamu-co/ui-common-helpers": "^3.0
|
|
61
|
+
"@open-xamu-co/ui-common-enums": "^3.1.0",
|
|
62
|
+
"@open-xamu-co/ui-common-helpers": "^3.1.0",
|
|
63
63
|
"lodash-es": "^4.17.21",
|
|
64
|
-
"sweetalert2": "^11.11.1"
|
|
64
|
+
"sweetalert2": "^11.11.1",
|
|
65
|
+
"vue-color": "^3.3.1"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@chromatic-com/storybook": "1.4.0",
|
|
68
|
-
"@open-xamu-co/ui-common-types": "^3.1.0
|
|
69
|
-
"@open-xamu-co/ui-styles": "^4.
|
|
69
|
+
"@open-xamu-co/ui-common-types": "^3.1.0",
|
|
70
|
+
"@open-xamu-co/ui-styles": "^4.1.0",
|
|
70
71
|
"@storybook/addon-essentials": "^8.1.1",
|
|
71
72
|
"@storybook/addon-interactions": "^8.1.1",
|
|
72
73
|
"@storybook/addon-links": "^8.1.1",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { iTableChildProps } from "../../types/props";
|
|
2
|
-
export interface iTableHeadProps<Ti extends Record<string, any>> extends iTableChildProps<Ti> {
|
|
3
|
-
withDefaultSlot: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}> & iTableHeadProps<T>> & import("vue").PublicProps;
|
|
7
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
|
-
attrs: any;
|
|
9
|
-
slots: {
|
|
10
|
-
headActions?(_: {
|
|
11
|
-
nodes: T[];
|
|
12
|
-
updateNodeAndRefresh: (node: T) => Promise<void>;
|
|
13
|
-
cloneNodeAndRefresh: (node: T, toggleModal?: (m?: boolean) => any) => Promise<void>;
|
|
14
|
-
deleteNodeAndRefresh: (node: T, toggleModal?: (m?: boolean) => any, modalRef?: HTMLElement) => Promise<void>;
|
|
15
|
-
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
16
|
-
}): any;
|
|
17
|
-
};
|
|
18
|
-
emit: {};
|
|
19
|
-
}>) => import("vue").VNode & {
|
|
20
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_PrettifyLocal<T> = {
|
|
24
|
-
[K in keyof T]: T[K];
|
|
25
|
-
} & {};
|