alytus-ff 0.1.9 → 0.1.11

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,2 +1,2 @@
1
1
  export * from './utils';
2
- export * from './components';
2
+ export { PageTitle } from './components';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "alytus-ff",
4
- "version": "0.1.9",
4
+ "version": "0.1.11",
5
5
  "description": "Frontend framework",
6
6
  "main": "src/index.ts",
7
7
  "module": "dist/index.es.js",
@@ -11,12 +11,15 @@
11
11
  "import": "./dist/index.es.js",
12
12
  "require": "./dist/index.cjs.js"
13
13
  },
14
- "./components": "./dist/components",
15
- "./utils": "./dist/utils"
14
+ "./types": "./dist/types/index.d.ts"
16
15
  },
16
+ "files": [
17
+ "dist"
18
+ ],
17
19
  "scripts": {
18
20
  "build": "vite build",
19
- "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types"
21
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
22
+ "type-check": "tsc --noEmit"
20
23
  },
21
24
  "author": "EG",
22
25
  "license": "ISC",
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./styles/main.scss"
2
2
  export * from "./utils"
3
- export * from "./components"
3
+ export {PageTitle} from "./components"
@@ -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>
@@ -1,20 +0,0 @@
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>
6
- </template>
7
-
8
- <script lang="ts">
9
- import {defineComponent} from "vue";
10
-
11
- export default defineComponent({
12
- name: "PageTitle",
13
- props: {
14
- title: {
15
- type: String,
16
- required: true
17
- }
18
- }
19
- })
20
- </script>
@@ -1 +0,0 @@
1
- export { default as PageTitle } from './Page/PageTitle.vue';
@@ -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,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,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
- });