alytus-ff 0.1.11 → 0.1.13

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/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,27 @@
1
+ import { defineComponent as l, openBlock as p, createElementBlock as a, toDisplayString as c } from "vue";
2
+ const s = l({
3
+ name: "WelcomeText",
4
+ props: {
5
+ fullName: {
6
+ type: String,
7
+ required: !0
8
+ },
9
+ no: {
10
+ type: Number,
11
+ default: 0
12
+ }
13
+ }
14
+ }), u = (e, t) => {
15
+ const r = e.__vccOpts || e;
16
+ for (const [n, o] of t)
17
+ r[n] = o;
18
+ return r;
19
+ };
20
+ function f(e, t, r, n, o, m) {
21
+ return p(), a("h1", null, "Welcome, " + c(e.fullName) + " " + c(e.no), 1);
22
+ }
23
+ const _ = /* @__PURE__ */ u(s, [["render", f], ["__scopeId", "data-v-34d102f4"]]), d = (e) => e ? e.replace(/(?:\r\n|\r|\n)/g, "<br>") : "";
24
+ export {
25
+ _ as WelcomeText,
26
+ d as nl2br
27
+ };
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["Alytus FF"]={},n.Vue))})(this,function(n,e){"use strict";const l=e.defineComponent({name:"WelcomeText",props:{fullName:{type:String,required:!0},no:{type:Number,default:0}}}),f=(t,r)=>{const o=t.__vccOpts||t;for(const[i,c]of r)o[i]=c;return o};function s(t,r,o,i,c,d){return e.openBlock(),e.createElementBlock("h1",null,"Welcome, "+e.toDisplayString(t.fullName)+" "+e.toDisplayString(t.no),1)}const u=f(l,[["render",s],["__scopeId","data-v-34d102f4"]]),p=t=>t?t.replace(/(?:\r\n|\r|\n)/g,"<br>"):"";n.WelcomeText=u,n.nl2br=p,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,22 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ fullName: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ no: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ fullName: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ no: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ no: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ 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-34d102f4]{color:#f354f2}
@@ -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,39 +1,45 @@
1
1
  {
2
- "type": "module",
3
2
  "name": "alytus-ff",
4
- "version": "0.1.11",
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.13",
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
- "./types": "./dist/types/index.d.ts"
18
+ "./dist/style.css": {
19
+ "import": "./dist/style.css",
20
+ "require": "./dist/style.css"
21
+ }
15
22
  },
16
- "files": [
17
- "dist"
18
- ],
19
23
  "scripts": {
20
- "build": "vite build",
21
- "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
22
- "type-check": "tsc --noEmit"
24
+ "dev": "vite",
25
+ "build": "vue-tsc && vite build",
26
+ "preview": "vite preview"
23
27
  },
24
- "author": "EG",
25
- "license": "ISC",
26
28
  "dependencies": {
27
- "vue": "^3.4.38"
29
+ "sass": "^1.62.1",
30
+ "vue": "^3.3.11"
31
+ },
32
+ "peerDependencies": {
33
+ "vue": "^3.0.0"
28
34
  },
29
35
  "devDependencies": {
30
- "@types/node": "^22.5.0",
36
+ "@types/node": "^22.5.5",
31
37
  "@vitejs/plugin-vue": "^5.1.2",
32
- "@vue/compiler-sfc": "^3.4.38",
33
- "sass": "^1.77.8",
34
- "sass-loader": "^16.0.1",
35
- "typescript": "^5.5.4",
36
- "vite": "^5.4.2",
37
- "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"
38
44
  }
39
45
  }
@@ -0,0 +1,27 @@
1
+ <template>
2
+ <h1>Welcome, {{fullName}} {{no}}</h1>
3
+ </template>
4
+
5
+ <script lang="ts">
6
+ import {defineComponent} from "vue";
7
+
8
+ export default defineComponent({
9
+ name: "WelcomeText",
10
+ props: {
11
+ fullName: {
12
+ type: String,
13
+ required: true
14
+ },
15
+ no: {
16
+ type: Number,
17
+ default: 0
18
+ }
19
+ }
20
+ })
21
+ </script>
22
+
23
+ <style lang="scss" scoped>
24
+ h1 {
25
+ color: #f354f2;
26
+ }
27
+ </style>
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
- }
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import "./styles/main.scss"
2
- export * from "./utils"
3
- export {PageTitle} from "./components"