whelk-ui 0.0.4 → 0.0.6
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/index.d.ts +70 -0
- package/dist/whelk-ui.js +50 -25
- package/dist/whelk-ui.umd.cjs +1 -1
- package/package.json +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { Component } from 'vue';
|
|
2
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
3
4
|
import { ComponentProvideOptions } from 'vue';
|
|
4
5
|
import { DefineComponent } from 'vue';
|
|
@@ -47,4 +48,73 @@ declare const _default: {
|
|
|
47
48
|
};
|
|
48
49
|
export default _default;
|
|
49
50
|
|
|
51
|
+
export declare interface DocumentItemInterface {
|
|
52
|
+
documentKey: string;
|
|
53
|
+
filename: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare interface DropDownItemsInterface {
|
|
58
|
+
ariaLabel: string;
|
|
59
|
+
icon: Component;
|
|
60
|
+
label: string;
|
|
61
|
+
trigger: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare interface FolderItemInterface {
|
|
65
|
+
folderId: number;
|
|
66
|
+
folderName: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare interface MenuItemInterface {
|
|
70
|
+
ariaLabel: string;
|
|
71
|
+
destination: string;
|
|
72
|
+
icon: Component;
|
|
73
|
+
route: string;
|
|
74
|
+
routeNew: string;
|
|
75
|
+
title: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare const ObjectStateEnum: {
|
|
79
|
+
readonly Disable: "DISABLE";
|
|
80
|
+
readonly Error: "ERROR";
|
|
81
|
+
readonly Loading: "LOADING";
|
|
82
|
+
readonly LoggingIn: "LOGGING_IN";
|
|
83
|
+
readonly LoggingOut: "LOGGING_OUT";
|
|
84
|
+
readonly NoAction: "NO_ACTION";
|
|
85
|
+
readonly Saving: "SAVING";
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type ObjectStateEnum = (typeof ObjectStateEnum)[keyof typeof ObjectStateEnum];
|
|
89
|
+
|
|
90
|
+
export declare const ObjectTitleCaseEnums: {
|
|
91
|
+
customer: string;
|
|
92
|
+
group: string;
|
|
93
|
+
kanban_board: string;
|
|
94
|
+
kanban_card: string;
|
|
95
|
+
organisation: string;
|
|
96
|
+
request_for_change: string;
|
|
97
|
+
requirement: string;
|
|
98
|
+
requirement_item: string;
|
|
99
|
+
project: string;
|
|
100
|
+
task: string;
|
|
101
|
+
user: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export declare type ObjectTitleCaseEnums = (typeof ObjectTitleCaseEnums[keyof typeof ObjectTitleCaseEnums]);
|
|
105
|
+
|
|
106
|
+
export declare const ObjectTypeEnums: {
|
|
107
|
+
customer: string;
|
|
108
|
+
kanban_board: string;
|
|
109
|
+
kanban_card: string;
|
|
110
|
+
organisation: string;
|
|
111
|
+
request_for_change: string;
|
|
112
|
+
requirement: string;
|
|
113
|
+
requirement_item: string;
|
|
114
|
+
project: string;
|
|
115
|
+
task: string;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export declare type ObjectTypeEnums = (typeof ObjectTypeEnums)[keyof typeof ObjectTypeEnums];
|
|
119
|
+
|
|
50
120
|
export { }
|
package/dist/whelk-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as m, openBlock as a, createElementBlock as c, unref as r, renderSlot as d, createCommentVNode as s, toDisplayString as _ } from "vue";
|
|
2
|
+
const o = {
|
|
3
3
|
Disable: "DISABLE",
|
|
4
4
|
Error: "ERROR",
|
|
5
5
|
Loading: "LOADING",
|
|
@@ -7,42 +7,67 @@ const n = {
|
|
|
7
7
|
LoggingOut: "LOGGING_OUT",
|
|
8
8
|
NoAction: "NO_ACTION",
|
|
9
9
|
Saving: "SAVING"
|
|
10
|
-
},
|
|
10
|
+
}, b = ["disabled"], l = { key: 1 }, g = /* @__PURE__ */ m({
|
|
11
11
|
__name: "ButtonComponent",
|
|
12
12
|
props: {
|
|
13
13
|
objectState: {
|
|
14
14
|
type: String,
|
|
15
|
-
default:
|
|
15
|
+
default: o.NoAction,
|
|
16
16
|
required: !1,
|
|
17
|
-
validator: function(
|
|
18
|
-
return Object.values(
|
|
17
|
+
validator: function(e) {
|
|
18
|
+
return Object.values(o).includes(e);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
return (
|
|
24
|
-
disabled:
|
|
22
|
+
setup(e) {
|
|
23
|
+
return (t, n) => (a(), c("button", {
|
|
24
|
+
disabled: e.objectState !== r(o).NoAction
|
|
25
25
|
}, [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
], 8,
|
|
26
|
+
e.objectState === r(o).NoAction ? d(t.$slots, "default", { key: 0 }, void 0, !0) : s("", !0),
|
|
27
|
+
e.objectState !== r(o).NoAction ? (a(), c("span", l, _(e.objectState), 1)) : s("", !0)
|
|
28
|
+
], 8, b));
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
31
|
-
const
|
|
32
|
-
for (const [i, u] of
|
|
33
|
-
|
|
34
|
-
return
|
|
35
|
-
},
|
|
30
|
+
}), p = (e, t) => {
|
|
31
|
+
const n = e.__vccOpts || e;
|
|
32
|
+
for (const [i, u] of t)
|
|
33
|
+
n[i] = u;
|
|
34
|
+
return n;
|
|
35
|
+
}, f = /* @__PURE__ */ p(g, [["__scopeId", "data-v-3de7a432"]]), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
36
36
|
__proto__: null,
|
|
37
|
-
ButtonComponent:
|
|
38
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
ButtonComponent: f
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), k = {
|
|
39
|
+
customer: "Customer",
|
|
40
|
+
group: "Group",
|
|
41
|
+
kanban_board: "Kanban Board",
|
|
42
|
+
kanban_card: "Kanban Card",
|
|
43
|
+
organisation: "Organisation",
|
|
44
|
+
request_for_change: "Request For Change",
|
|
45
|
+
requirement: "Requirement",
|
|
46
|
+
requirement_item: "Requirement Item",
|
|
47
|
+
project: "Project",
|
|
48
|
+
task: "Task",
|
|
49
|
+
user: "User"
|
|
50
|
+
}, S = {
|
|
51
|
+
customer: "customer",
|
|
52
|
+
kanban_board: "kanban_board",
|
|
53
|
+
kanban_card: "kanban_card",
|
|
54
|
+
organisation: "organisation",
|
|
55
|
+
request_for_change: "request_for_change",
|
|
56
|
+
requirement: "requirement",
|
|
57
|
+
requirement_item: "requirement_item",
|
|
58
|
+
project: "project",
|
|
59
|
+
task: "task"
|
|
60
|
+
}, q = {
|
|
61
|
+
install(e) {
|
|
62
|
+
Object.entries(O).forEach(([t, n]) => {
|
|
63
|
+
e.component(t, n);
|
|
42
64
|
});
|
|
43
65
|
}
|
|
44
66
|
};
|
|
45
67
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
68
|
+
f as ButtonComponent,
|
|
69
|
+
o as ObjectStateEnum,
|
|
70
|
+
k as ObjectTitleCaseEnums,
|
|
71
|
+
S as ObjectTypeEnums,
|
|
72
|
+
q as default
|
|
48
73
|
};
|
package/dist/whelk-ui.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WhelkUI={},t.Vue))})(this,(function(t,e){"use strict";const o={Disable:"DISABLE",Error:"ERROR",Loading:"LOADING",LoggingIn:"LOGGING_IN",LoggingOut:"LOGGING_OUT",NoAction:"NO_ACTION",Saving:"SAVING"},i=["disabled"],s={key:1},u=e.defineComponent({__name:"ButtonComponent",props:{objectState:{type:String,default:o.NoAction,required:!1,validator:function(n){return Object.values(o).includes(n)}}},setup(n){return(r,a)=>(e.openBlock(),e.createElementBlock("button",{disabled:n.objectState!==e.unref(o).NoAction},[n.objectState===e.unref(o).NoAction?e.renderSlot(r.$slots,"default",{key:0},void 0,!0):e.createCommentVNode("",!0),n.objectState!==e.unref(o).NoAction?(e.openBlock(),e.createElementBlock("span",s,e.toDisplayString(n.objectState),1)):e.createCommentVNode("",!0)],8,i))}}),c=((n,r)=>{const a=n.__vccOpts||n;for(const[b,f]of r)a[b]=f;return a})(u,[["__scopeId","data-v-3de7a432"]]),d=Object.freeze(Object.defineProperty({__proto__:null,ButtonComponent:c},Symbol.toStringTag,{value:"Module"})),m={customer:"Customer",group:"Group",kanban_board:"Kanban Board",kanban_card:"Kanban Card",organisation:"Organisation",request_for_change:"Request For Change",requirement:"Requirement",requirement_item:"Requirement Item",project:"Project",task:"Task",user:"User"},l={customer:"customer",kanban_board:"kanban_board",kanban_card:"kanban_card",organisation:"organisation",request_for_change:"request_for_change",requirement:"requirement",requirement_item:"requirement_item",project:"project",task:"task"},_={install(n){Object.entries(d).forEach(([r,a])=>{n.component(r,a)})}};t.ButtonComponent=c,t.ObjectStateEnum=o,t.ObjectTitleCaseEnums=m,t.ObjectTypeEnums=l,t.default=_,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Robotichead",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"private": false,
|
|
13
|
-
"version": "0.0.
|
|
13
|
+
"version": "0.0.6",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "./dist/whelk-ui.umd.cjs",
|
|
16
16
|
"module": "./dist/whelk-ui.js",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"import": "./dist/whelk-ui.js",
|
|
22
22
|
"require": "./dist/whelk-ui.umd.cjs"
|
|
23
23
|
},
|
|
24
|
+
"./utils": {
|
|
25
|
+
"types": "./dist/utils/index.d.ts",
|
|
26
|
+
"import": "./dist/whelk-ui.js",
|
|
27
|
+
"require": "./dist/whelk-ui.umd.cjs"
|
|
28
|
+
},
|
|
24
29
|
"./dist/style.css": "./dist/style.css"
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
@@ -40,9 +45,6 @@
|
|
|
40
45
|
"peerDependencies": {
|
|
41
46
|
"vue": "^3.5.24"
|
|
42
47
|
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"@vuepress/theme-default": "^2.0.0-rc.121"
|
|
45
|
-
},
|
|
46
48
|
"devDependencies": {
|
|
47
49
|
"@csstools/postcss-global-data": "^3.1.0",
|
|
48
50
|
"@playwright/test": "^1.58.0",
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
"vitest": "^4.0.18",
|
|
67
69
|
"vitest-browser-vue": "^2.0.1",
|
|
68
70
|
"vue-tsc": "^3.2.3",
|
|
69
|
-
"vuepress": "^2.0.0-rc.26"
|
|
71
|
+
"vuepress": "^2.0.0-rc.26",
|
|
72
|
+
"@vuepress/theme-default": "^2.0.0-rc.121"
|
|
70
73
|
}
|
|
71
74
|
}
|