alytus-ff 0.1.5 → 0.1.7
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/index.d.ts +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +52 -0
- package/package.json +11 -2
- package/src/components/index.ts +1 -1
- package/types/components/index.d.ts +1 -1
- package/types/index.d.ts +3 -1
- package/vite.config.ts +2 -1
- package/dist/alytus-ff.es.js +0 -38
- package/dist/alytus-ff.umd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as PageTitle } from './Page/PageTitle.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),i=e=>{if(typeof e=="object")return e;const t=e.substr(0,10).split("-");return new Date(parseInt(t[0],10),parseInt(t[1],10)-1,t.length<=2?1:parseInt(t[2],10))},a=(e,t)=>{for(const r in e)if(e[r].id===t.id){e[r]=t;return}e.push(t)},p=(e,t)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c=(e,t)=>{for(let r=0;r<e.length;r++)if(e[r].id===t){e.splice(r,1);return}},l=s.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0}}}),u=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},d={class:"mt-6 mb-3 ec-page-title"},f={class:"text-h5 font-weight-bold"};function y(e,t,r,n,o,g){return s.openBlock(),s.createElementBlock("div",d,[s.createElementVNode("span",f,s.toDisplayString(e.title),1),s.createElementVNode("div",null,[s.renderSlot(e.$slots,"buttons")])])}const m=u(l,[["render",y]]);exports.PageTitle=m;exports.parseSysDate=i;exports.removeFromListById=c;exports.syncItemChanges=p;exports.syncToList=a;
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as i, createElementBlock as a, createElementVNode as o, toDisplayString as c, renderSlot as f } from "vue";
|
|
2
|
+
const h = (t) => {
|
|
3
|
+
if (typeof t == "object")
|
|
4
|
+
return t;
|
|
5
|
+
const e = t.substr(0, 10).split("-");
|
|
6
|
+
return new Date(parseInt(e[0], 10), parseInt(e[1], 10) - 1, e.length <= 2 ? 1 : parseInt(e[2], 10));
|
|
7
|
+
}, b = (t, e) => {
|
|
8
|
+
for (const r in t)
|
|
9
|
+
if (t[r].id === e.id) {
|
|
10
|
+
t[r] = e;
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
t.push(e);
|
|
14
|
+
}, v = (t, e) => {
|
|
15
|
+
for (const r in e)
|
|
16
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
17
|
+
}, I = (t, e) => {
|
|
18
|
+
for (let r = 0; r < t.length; r++)
|
|
19
|
+
if (t[r].id === e) {
|
|
20
|
+
t.splice(r, 1);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
}, l = p({
|
|
24
|
+
name: "PageTitle",
|
|
25
|
+
props: {
|
|
26
|
+
title: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: !0
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}), d = (t, e) => {
|
|
32
|
+
const r = t.__vccOpts || t;
|
|
33
|
+
for (const [n, s] of e)
|
|
34
|
+
r[n] = s;
|
|
35
|
+
return r;
|
|
36
|
+
}, u = { class: "mt-6 mb-3 ec-page-title" }, m = { class: "text-h5 font-weight-bold" };
|
|
37
|
+
function y(t, e, r, n, s, _) {
|
|
38
|
+
return i(), a("div", u, [
|
|
39
|
+
o("span", m, c(t.title), 1),
|
|
40
|
+
o("div", null, [
|
|
41
|
+
f(t.$slots, "buttons")
|
|
42
|
+
])
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
const $ = /* @__PURE__ */ d(l, [["render", y]]);
|
|
46
|
+
export {
|
|
47
|
+
$ as PageTitle,
|
|
48
|
+
h as parseSysDate,
|
|
49
|
+
I as removeFromListById,
|
|
50
|
+
v as syncItemChanges,
|
|
51
|
+
b as syncToList
|
|
52
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "alytus-ff",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"description": "Frontend framework",
|
|
6
|
-
"main": "index.ts",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"module": "dist/index.es.js",
|
|
7
8
|
"types": "dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.es.js",
|
|
12
|
+
"require": "./dist/index.cjs.js"
|
|
13
|
+
},
|
|
14
|
+
"./components": "./dist/components",
|
|
15
|
+
"./utils": "./dist/utils"
|
|
16
|
+
},
|
|
8
17
|
"scripts": {
|
|
9
18
|
"build": "vite build",
|
|
10
19
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types"
|
package/src/components/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as PageTitle } from './Page/PageTitle.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as PageTitle } from './Page/PageTitle.vue';
|
package/types/index.d.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -15,7 +15,8 @@ export default defineConfig({
|
|
|
15
15
|
lib: {
|
|
16
16
|
entry: './src/index.ts',
|
|
17
17
|
name: 'Alytus-FF',
|
|
18
|
-
|
|
18
|
+
formats: ['es', 'cjs'],
|
|
19
|
+
fileName: (format) => `index.${format}.js`,
|
|
19
20
|
},
|
|
20
21
|
rollupOptions: {
|
|
21
22
|
external: ['vue'],
|
package/dist/alytus-ff.es.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n } from "vue";
|
|
2
|
-
const p = (r) => {
|
|
3
|
-
if (typeof r == "object")
|
|
4
|
-
return r;
|
|
5
|
-
const t = r.substr(0, 10).split("-");
|
|
6
|
-
return new Date(parseInt(t[0], 10), parseInt(t[1], 10) - 1, t.length <= 2 ? 1 : parseInt(t[2], 10));
|
|
7
|
-
}, o = (r, t) => {
|
|
8
|
-
for (const e in r)
|
|
9
|
-
if (r[e].id === t.id) {
|
|
10
|
-
r[e] = t;
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
r.push(t);
|
|
14
|
-
}, i = (r, t) => {
|
|
15
|
-
for (const e in t)
|
|
16
|
-
Object.prototype.hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
17
|
-
}, a = (r, t) => {
|
|
18
|
-
for (let e = 0; e < r.length; e++)
|
|
19
|
-
if (r[e].id === t) {
|
|
20
|
-
r.splice(e, 1);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
n({
|
|
25
|
-
name: "PageTitle",
|
|
26
|
-
props: {
|
|
27
|
-
title: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: !0
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
p as parseSysDate,
|
|
35
|
-
a as removeFromListById,
|
|
36
|
-
i as syncItemChanges,
|
|
37
|
-
o as syncToList
|
|
38
|
-
};
|
package/dist/alytus-ff.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(r,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(r=typeof globalThis<"u"?globalThis:r||self,s(r["Alytus-FF"]={},r.Vue))})(this,function(r,s){"use strict";const i=e=>{if(typeof e=="object")return e;const t=e.substr(0,10).split("-");return new Date(parseInt(t[0],10),parseInt(t[1],10)-1,t.length<=2?1:parseInt(t[2],10))},o=(e,t)=>{for(const n in e)if(e[n].id===t.id){e[n]=t;return}e.push(t)},p=(e,t)=>{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},u=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].id===t){e.splice(n,1);return}};s.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0}}}),r.parseSysDate=i,r.removeFromListById=u,r.syncItemChanges=p,r.syncToList=o,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|