alytus-ff 0.1.10 → 0.1.12

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.
Files changed (59) hide show
  1. package/README.md +3 -12
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/alytus-ff.js +23 -0
  4. package/dist/alytus-ff.umd.cjs +1 -0
  5. package/dist/components/WelcomeText.vue.d.ts +12 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/main.d.ts +0 -0
  8. package/dist/style.css +1 -1
  9. package/dist/types/Base.d.ts +4 -0
  10. package/dist/utils/HtmlUtils.d.ts +1 -0
  11. package/dist/vite.svg +1 -0
  12. package/package.json +31 -23
  13. package/src/components/{Page/PageTitle.vue → WelcomeText.vue} +9 -6
  14. package/.idea/alytus-ff.iml +0 -8
  15. package/.idea/compiler.xml +0 -8
  16. package/.idea/inspectionProfiles/Project_Default.xml +0 -31
  17. package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
  18. package/.idea/misc.xml +0 -7
  19. package/.idea/modules.xml +0 -8
  20. package/dist/index.cjs.js +0 -1
  21. package/dist/index.es.js +0 -52
  22. package/dist/types/components/Page/PageTitle.vue.d.ts +0 -12
  23. package/dist/types/components/index.d.ts +0 -1
  24. package/dist/types/index.d.ts +0 -2
  25. package/dist/types/types/base.d.ts +0 -3
  26. package/dist/types/utils/data_sync.d.ts +0 -6
  27. package/dist/types/utils/date.d.ts +0 -1
  28. package/dist/types/utils/index.d.ts +0 -2
  29. package/dist/types/vue-shims.d.ts +0 -5
  30. package/src/components/index.js +0 -2
  31. package/src/components/index.js.map +0 -1
  32. package/src/components/index.ts +0 -1
  33. package/src/index.js +0 -4
  34. package/src/index.js.map +0 -1
  35. package/src/index.ts +0 -3
  36. package/src/styles/Page.scss +0 -12
  37. package/src/styles/main.scss +0 -1
  38. package/src/types/base.js +0 -2
  39. package/src/types/base.js.map +0 -1
  40. package/src/types/base.ts +0 -4
  41. package/src/utils/data_sync.js +0 -24
  42. package/src/utils/data_sync.js.map +0 -1
  43. package/src/utils/data_sync.ts +0 -25
  44. package/src/utils/date.js +0 -7
  45. package/src/utils/date.js.map +0 -1
  46. package/src/utils/date.ts +0 -6
  47. package/src/utils/index.js +0 -3
  48. package/src/utils/index.js.map +0 -1
  49. package/src/utils/index.ts +0 -2
  50. package/src/vue-shims.d.ts +0 -5
  51. package/tsconfig.json +0 -22
  52. package/types/components/index.d.ts +0 -1
  53. package/types/index.d.ts +0 -3
  54. package/types/types/base.d.ts +0 -3
  55. package/types/utils/data_sync.d.ts +0 -6
  56. package/types/utils/date.d.ts +0 -1
  57. package/types/utils/index.d.ts +0 -2
  58. package/types/vite.config.d.ts +0 -2
  59. package/vite.config.ts +0 -31
package/README.md CHANGED
@@ -1,14 +1,5 @@
1
+ # Vue 3 + TypeScript + Vite
1
2
 
2
- # Alytus-ff
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3
4
 
4
- ## Publish
5
-
6
- ````commandline
7
- npm version patch # For patch updates (1.0.1 -> 1.0.2)
8
- npm version minor # For minor updates (1.0.1 -> 1.1.0)
9
- npm version major # For major updates (1.0.1 -> 2.0.0)
10
-
11
- npm run build
12
-
13
- npm publish
14
- ````
5
+ Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { defineComponent as c, openBlock as l, createElementBlock as p, toDisplayString as a } from "vue";
2
+ const s = c({
3
+ name: "WelcomeText",
4
+ props: {
5
+ fullName: {
6
+ type: String,
7
+ required: !0
8
+ }
9
+ }
10
+ }), m = (e, t) => {
11
+ const r = e.__vccOpts || e;
12
+ for (const [n, o] of t)
13
+ r[n] = o;
14
+ return r;
15
+ };
16
+ function u(e, t, r, n, o, _) {
17
+ return l(), p("h1", null, "Welcome, " + a(e.fullName), 1);
18
+ }
19
+ const i = /* @__PURE__ */ m(s, [["render", u], ["__scopeId", "data-v-74232325"]]), d = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "";
20
+ export {
21
+ i as WelcomeText,
22
+ d as nl2br
23
+ };
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["Alytus FF"]={},e.Vue))})(this,function(e,n){"use strict";const l=n.defineComponent({name:"WelcomeText",props:{fullName:{type:String,required:!0}}}),s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,i]of r)o[c]=i;return o};function u(t,r,o,c,i,d){return n.openBlock(),n.createElementBlock("h1",null,"Welcome, "+n.toDisplayString(t.fullName),1)}const f=s(l,[["render",u],["__scopeId","data-v-74232325"]]),p=t=>t?t.replace(/(?:\r\n|\r|\n)/g,"<br>"):"";e.WelcomeText=f,e.nl2br=p,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ fullName: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ fullName: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as WelcomeText } from './components/WelcomeText.vue';
2
+ import { nl2br } from './utils/HtmlUtils.ts';
3
+ import { NameValuePair } from './types/Base.ts';
4
+ export { WelcomeText, nl2br, NameValuePair };
package/dist/main.d.ts ADDED
File without changes
package/dist/style.css CHANGED
@@ -1 +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}
1
+ h1[data-v-74232325]{color:#ff5f33}
@@ -0,0 +1,4 @@
1
+ export type NameValuePair = {
2
+ name: string;
3
+ value: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const nl2br: (str: string) => string;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json CHANGED
@@ -1,37 +1,45 @@
1
1
  {
2
- "type": "module",
3
2
  "name": "alytus-ff",
4
- "version": "0.1.10",
5
- "description": "Frontend framework",
6
- "main": "src/index.ts",
7
- "module": "dist/index.es.js",
8
- "types": "dist/types/index.d.ts",
3
+ "private": false,
4
+ "version": "0.1.12",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "src/components/"
9
+ ],
10
+ "main": "./dist/alytus-ff.umd.cjs",
11
+ "module": "./dist/alytus-ff.js",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./dist/index.es.js",
12
- "require": "./dist/index.cjs.js"
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/alytus-ff.js",
16
+ "require": "./dist/alytus-ff.umd.cjs"
13
17
  },
14
- "./components": "./dist/components",
15
- "./utils": "./dist/utils"
18
+ "./dist/style.css": {
19
+ "import": "./dist/style.css",
20
+ "require": "./dist/style.css"
21
+ }
16
22
  },
17
23
  "scripts": {
18
- "build": "vite build",
19
- "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
20
- "type-check": "tsc --noEmit"
24
+ "dev": "vite",
25
+ "build": "vue-tsc && vite build",
26
+ "preview": "vite preview"
21
27
  },
22
- "author": "EG",
23
- "license": "ISC",
24
28
  "dependencies": {
25
- "vue": "^3.4.38"
29
+ "sass": "^1.62.1",
30
+ "vue": "^3.3.11"
31
+ },
32
+ "peerDependencies": {
33
+ "vue": "^3.0.0"
26
34
  },
27
35
  "devDependencies": {
28
- "@types/node": "^22.5.0",
36
+ "@types/node": "^22.5.5",
29
37
  "@vitejs/plugin-vue": "^5.1.2",
30
- "@vue/compiler-sfc": "^3.4.38",
31
- "sass": "^1.77.8",
32
- "sass-loader": "^16.0.1",
33
- "typescript": "^5.5.4",
34
- "vite": "^5.4.2",
35
- "vite-plugin-dts": "^4.2.1"
38
+ "path": "^0.12.7",
39
+ "typescript": "^5.5.3",
40
+ "vite": "^5.4.1",
41
+ "vite-plugin-dts": "^4.2.1",
42
+ "vue-tsc": "^2.0.29",
43
+ "vue": "^3.3.11"
36
44
  }
37
45
  }
@@ -1,20 +1,23 @@
1
1
  <template>
2
- <div class="mt-6 mb-3 ec-page-title">
3
- <span class="text-h5 font-weight-bold">{{ title }}</span>
4
- <div><slot name="buttons"></slot></div>
5
- </div>
2
+ <h1>Welcome, {{fullName}}</h1>
6
3
  </template>
7
4
 
8
5
  <script lang="ts">
9
6
  import {defineComponent} from "vue";
10
7
 
11
8
  export default defineComponent({
12
- name: "PageTitle",
9
+ name: "WelcomeText",
13
10
  props: {
14
- title: {
11
+ fullName: {
15
12
  type: String,
16
13
  required: true
17
14
  }
18
15
  }
19
16
  })
20
17
  </script>
18
+
19
+ <style lang="scss" scoped>
20
+ h1 {
21
+ color: #ff5f33;
22
+ }
23
+ </style>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="PYTHON_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="jdk" jdkName="Remote Python 3.12.1 Docker Compose (django at [/Users/eivinas/Dev/CafeMenu/docker-compose.yml])" jdkType="Python SDK" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="TypeScriptCompiler">
4
- <option name="nodeInterpreterTextField" value="$USER_HOME$/.nvm/versions/node/v20.17.0/bin/node" />
5
- <option name="recompileOnChanges" value="true" />
6
- <option name="versionType" value="EMBEDDED" />
7
- </component>
8
- </project>
@@ -1,31 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- <inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
6
- <option name="myValues">
7
- <value>
8
- <list size="15">
9
- <item index="0" class="java.lang.String" itemvalue="nobr" />
10
- <item index="1" class="java.lang.String" itemvalue="noembed" />
11
- <item index="2" class="java.lang.String" itemvalue="comment" />
12
- <item index="3" class="java.lang.String" itemvalue="noscript" />
13
- <item index="4" class="java.lang.String" itemvalue="embed" />
14
- <item index="5" class="java.lang.String" itemvalue="script" />
15
- <item index="6" class="java.lang.String" itemvalue="fieldgroupchilds" />
16
- <item index="7" class="java.lang.String" itemvalue="innertaskslist" />
17
- <item index="8" class="java.lang.String" itemvalue="creditlimitrequestdialog" />
18
- <item index="9" class="java.lang.String" itemvalue="datefield" />
19
- <item index="10" class="java.lang.String" itemvalue="vuesignaturepad" />
20
- <item index="11" class="java.lang.String" itemvalue="filesfield" />
21
- <item index="12" class="java.lang.String" itemvalue="contractcalculationsummary" />
22
- <item index="13" class="java.lang.String" itemvalue="creditlimitrequireddocumentscomment" />
23
- <item index="14" class="java.lang.String" itemvalue="ServiceDescription" />
24
- </list>
25
- </value>
26
- </option>
27
- <option name="myCustomValuesEnabled" value="true" />
28
- </inspection_tool>
29
- <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
30
- </profile>
31
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <settings>
3
- <option name="USE_PROJECT_PROFILE" value="false" />
4
- <version value="1.0" />
5
- </settings>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Black">
4
- <option name="sdkName" value="Python 2.7" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="Remote Python 3.12.1 Docker Compose (django at [/Users/eivinas/Dev/CafeMenu/docker-compose.yml])" project-jdk-type="Python SDK" />
7
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/alytus-ff.iml" filepath="$PROJECT_DIR$/.idea/alytus-ff.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/dist/index.cjs.js DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1,52 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- title: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
- title: {
8
- type: StringConstructor;
9
- required: true;
10
- };
11
- }>>, {}, {}>;
12
- export default _default;
@@ -1 +0,0 @@
1
- export { default as PageTitle } from './Page/PageTitle.vue';
@@ -1,2 +0,0 @@
1
- export * from './utils';
2
- export { PageTitle } from './components';
@@ -1,3 +0,0 @@
1
- export type Dict = {
2
- [name: string]: any;
3
- };
@@ -1,6 +0,0 @@
1
- import { Dict } from '../types/base';
2
- export declare const syncToList: (collection: Dict[], item: Dict) => void;
3
- export declare const syncItemChanges: (obj: Dict, changes: Dict) => void;
4
- export declare const removeFromListById: (collection: {
5
- id: number;
6
- }[], item_id: number) => void;
@@ -1 +0,0 @@
1
- export declare const parseSysDate: (d_str: string) => Date;
@@ -1,2 +0,0 @@
1
- export * from './date';
2
- export * from './data_sync';
@@ -1,5 +0,0 @@
1
- declare module '*.vue' {
2
- import { DefineComponent } from 'vue';
3
- const component: DefineComponent<{}, {}, any>;
4
- export default component;
5
- }
@@ -1,2 +0,0 @@
1
- export { default as PageTitle } from './Page/PageTitle.vue';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- export { default as PageTitle } from './Page/PageTitle.vue';
package/src/index.js DELETED
@@ -1,4 +0,0 @@
1
- import "./styles/main.scss";
2
- export * from "./utils";
3
- export { PageTitle } from "./components";
4
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA"}
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import "./styles/main.scss"
2
- export * from "./utils"
3
- export {PageTitle} from "./components"
@@ -1,12 +0,0 @@
1
-
2
- .ec-page-title, .ec-page-subtitle {
3
- display: flex;
4
- justify-content: space-between;
5
- align-items: center;
6
-
7
- .v-btn {
8
- text-transform: unset;
9
- letter-spacing: 0.045em;
10
- }
11
- }
12
-
@@ -1 +0,0 @@
1
- @import "Page";
package/src/types/base.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["base.ts"],"names":[],"mappings":""}
package/src/types/base.ts DELETED
@@ -1,4 +0,0 @@
1
-
2
- export type Dict = {
3
- [name: string]: any
4
- }
@@ -1,24 +0,0 @@
1
- export const syncToList = (collection, item) => {
2
- for (const i in collection) {
3
- if (collection[i].id === item.id) {
4
- collection[i] = item;
5
- return;
6
- }
7
- }
8
- collection.push(item);
9
- };
10
- export const syncItemChanges = (obj, changes) => {
11
- for (const prop in changes) {
12
- if (Object.prototype.hasOwnProperty.call(changes, prop))
13
- obj[prop] = changes[prop];
14
- }
15
- };
16
- export const removeFromListById = (collection, item_id) => {
17
- for (let i = 0; i < collection.length; i++) {
18
- if (collection[i].id === item_id) {
19
- collection.splice(i, 1);
20
- return;
21
- }
22
- }
23
- };
24
- //# sourceMappingURL=data_sync.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data_sync.js","sourceRoot":"","sources":["data_sync.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAkB,EAAE,IAAU,EAAE,EAAE;IACzD,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;QACxB,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,EAAE;YAC9B,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;YACpB,OAAM;SACT;KACJ;IACD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAS,EAAE,OAAa,EAAE,EAAE;IACxD,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE;QACxB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;YACnD,GAAG,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACjC;AACL,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAA4B,EAAE,OAAe,EAAE,EAAE;IAChF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,EAAE;YAC9B,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACxB,OAAO;SACV;KACJ;AACL,CAAC,CAAA"}
@@ -1,25 +0,0 @@
1
- import {Dict} from "@/types/base";
2
-
3
- export const syncToList = (collection: Dict[], item: Dict) => {
4
- for (const i in collection) {
5
- if (collection[i].id === item.id) {
6
- collection[i] = item
7
- return
8
- }
9
- }
10
- collection.push(item);
11
- }
12
- export const syncItemChanges = (obj: Dict, changes: Dict) => {
13
- for (const prop in changes) {
14
- if (Object.prototype.hasOwnProperty.call(changes, prop))
15
- obj[prop] = changes[prop];
16
- }
17
- }
18
- export const removeFromListById = (collection: { id: number }[], item_id: number) => {
19
- for (let i = 0; i < collection.length; i++) {
20
- if (collection[i].id === item_id) {
21
- collection.splice(i, 1);
22
- return;
23
- }
24
- }
25
- }
package/src/utils/date.js DELETED
@@ -1,7 +0,0 @@
1
- export const parseSysDate = (d_str) => {
2
- if (typeof (d_str) === "object")
3
- return d_str;
4
- const arr = d_str.substr(0, 10).split("-");
5
- return new Date(parseInt(arr[0], 10), parseInt(arr[1], 10) - 1, arr.length <= 2 ? 1 : parseInt(arr[2], 10));
6
- };
7
- //# sourceMappingURL=date.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.js","sourceRoot":"","sources":["date.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE;IAC1C,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC7C,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAChH,CAAC,CAAA"}
package/src/utils/date.ts DELETED
@@ -1,6 +0,0 @@
1
-
2
- export const parseSysDate = (d_str: string) => {
3
- if (typeof(d_str) === "object") return d_str;
4
- const arr = d_str.substr(0, 10).split("-");
5
- return new Date(parseInt(arr[0], 10), parseInt(arr[1], 10) - 1, arr.length <= 2 ? 1 : parseInt(arr[2], 10));
6
- }
@@ -1,3 +0,0 @@
1
- export * from "./date";
2
- export * from "./data_sync";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from "./date"
2
- export * from "./data_sync"
@@ -1,5 +0,0 @@
1
- declare module '*.vue' {
2
- import { DefineComponent } from 'vue';
3
- const component: DefineComponent<{}, {}, any>;
4
- export default component;
5
- }
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true, // Generate declaration files (.d.ts)
4
- "declarationDir": "types", // Specify the output directory for declaration files
5
- // "emitDeclarationOnly": true, // Only emit .d.ts files, no JavaScript
6
- "target": "esnext",
7
- "module": "esnext",
8
- "moduleResolution": "node",
9
- "strict": true,
10
- "jsx": "preserve",
11
- "esModuleInterop": true,
12
- "allowSyntheticDefaultImports": true,
13
- "sourceMap": true,
14
- "baseUrl": ".",
15
- "paths": {
16
- "@/*": ["src/*"]
17
- },
18
- "types": ["node", "vite/client"]
19
- },
20
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
21
- "exclude": ["node_modules", "dist"]
22
- }
@@ -1 +0,0 @@
1
- export { default as PageTitle } from './Page/PageTitle.vue';
package/types/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import "./styles/main.scss";
2
- export * from "./utils";
3
- export { PageTitle } from "./components";
@@ -1,3 +0,0 @@
1
- export type Dict = {
2
- [name: string]: any;
3
- };
@@ -1,6 +0,0 @@
1
- import { Dict } from "@/types/base";
2
- export declare const syncToList: (collection: Dict[], item: Dict) => void;
3
- export declare const syncItemChanges: (obj: Dict, changes: Dict) => void;
4
- export declare const removeFromListById: (collection: {
5
- id: number;
6
- }[], item_id: number) => void;
@@ -1 +0,0 @@
1
- export declare const parseSysDate: (d_str: string) => Date;
@@ -1,2 +0,0 @@
1
- export * from "./date";
2
- export * from "./data_sync";
@@ -1,2 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
package/vite.config.ts DELETED
@@ -1,31 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import vue from '@vitejs/plugin-vue';
3
- import dts from 'vite-plugin-dts';
4
-
5
- export default defineConfig({
6
- plugins: [
7
- vue(),
8
- dts({
9
- // outputDir: 'dist/types', // Output directory for .d.ts files
10
- outDir: 'dist/types', // Output directory for .d.ts files
11
- insertTypesEntry: true, // Generates an entry file for types
12
- copyDtsFiles: true, // Copies .d.ts files to the output directory
13
- })
14
- ],
15
- build: {
16
- lib: {
17
- entry: './src/index.ts',
18
- name: 'Alytus-FF',
19
- formats: ['es', 'cjs'],
20
- fileName: (format) => `index.${format}.js`,
21
- },
22
- rollupOptions: {
23
- external: ['vue'],
24
- output: {
25
- globals: {
26
- vue: 'Vue'
27
- }
28
- }
29
- }
30
- }
31
- });