alytus-ff 0.1.4 → 0.1.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.
@@ -1,27 +1,26 @@
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;
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
11
  return;
12
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);
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
21
  return;
22
22
  }
23
- };
24
- n({
23
+ }, l = p({
25
24
  name: "PageTitle",
26
25
  props: {
27
26
  title: {
@@ -29,10 +28,25 @@ n({
29
28
  required: !0
30
29
  }
31
30
  }
32
- });
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]]);
33
46
  export {
34
- p as parseSysDate,
35
- a as removeFromListById,
36
- i as syncItemChanges,
37
- o as syncToList
47
+ $ as PageTitle,
48
+ h as parseSysDate,
49
+ I as removeFromListById,
50
+ v as syncItemChanges,
51
+ b as syncToList
38
52
  };
@@ -1 +1 @@
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"})});
1
+ (function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["Alytus-FF"]={},s.Vue))})(this,function(s,o){"use strict";const p=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 n in e)if(e[n].id===t.id){e[n]=t;return}e.push(t)},c=(e,t)=>{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].id===t){e.splice(n,1);return}},f=o.defineComponent({name:"PageTitle",props:{title:{type:String,required:!0}}}),u=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},l={class:"mt-6 mb-3 ec-page-title"},y={class:"text-h5 font-weight-bold"};function m(e,t,n,r,i,g){return o.openBlock(),o.createElementBlock("div",l,[o.createElementVNode("span",y,o.toDisplayString(e.title),1),o.createElementVNode("div",null,[o.renderSlot(e.$slots,"buttons")])])}const h=u(f,[["render",m]]);s.PageTitle=h,s.parseSysDate=p,s.removeFromListById=d,s.syncItemChanges=c,s.syncToList=a,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- export * from './Page/PageTitle.vue';
1
+ export { default as PageTitle } from './Page/PageTitle.vue';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './utils';
2
- export * from './components';
2
+ export { default as PageTitle } from './components/Page/PageTitle.vue';
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .ec-page-title,.ec-page-subtitle{display:flex;justify-content:space-between;align-items:center}.ec-page-title .v-btn,.ec-page-subtitle .v-btn{text-transform:unset;letter-spacing:.045em}
@@ -0,0 +1,5 @@
1
+ declare module '*.vue' {
2
+ import { DefineComponent } from 'vue';
3
+ const component: DefineComponent<{}, {}, any>;
4
+ export default component;
5
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "alytus-ff",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Frontend framework",
6
6
  "main": "index.ts",
7
7
  "types": "dist/types/index.d.ts",
@@ -1 +1 @@
1
- export * from "./Page/PageTitle.vue"
1
+ export { default as PageTitle } from './Page/PageTitle.vue';
package/src/index.ts CHANGED
@@ -1,2 +1,4 @@
1
+ import "./styles/main.scss"
1
2
  export * from "./utils"
2
- export * from "./components"
3
+ //export * from "./components"
4
+ export { default as PageTitle } from './components/Page/PageTitle.vue';
@@ -0,0 +1,5 @@
1
+ declare module '*.vue' {
2
+ import { DefineComponent } from 'vue';
3
+ const component: DefineComponent<{}, {}, any>;
4
+ export default component;
5
+ }
@@ -1 +1 @@
1
- export * from "./Page/PageTitle.vue";
1
+ export { default as PageTitle } from './Page/PageTitle.vue';
package/types/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ import "./styles/main.scss";
1
2
  export * from "./utils";
2
- export * from "./components";
3
+ export { default as PageTitle } from './components/Page/PageTitle.vue';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
package/vite.config.ts CHANGED
@@ -6,7 +6,7 @@ export default defineConfig({
6
6
  plugins: [
7
7
  vue(),
8
8
  dts({
9
- outputDir: 'dist/types', // Output directory for .d.ts files
9
+ //outputDir: 'dist/types', // Output directory for .d.ts files
10
10
  insertTypesEntry: true, // Generates an entry file for types
11
11
  copyDtsFiles: true, // Copies .d.ts files to the output directory
12
12
  })