@jsg-developer/vue-pack 0.0.1

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 (111) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +154 -0
  3. package/dist/DEPENDENCY-LICENSES.txt +1170 -0
  4. package/dist/TabelData-C_eyn6Uq.cjs +1 -0
  5. package/dist/TabelData-fKFaSnkC.js +2142 -0
  6. package/dist/TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-Dtm1AO8H.js +13685 -0
  7. package/dist/TabelData.vue_vue_type_style_index_0_scoped_76b9b7a6_lang-jjKlGR9H.cjs +64 -0
  8. package/dist/config.cjs.js +1 -0
  9. package/dist/config.es.js +6 -0
  10. package/dist/init.cjs.js +1 -0
  11. package/dist/init.es.js +24 -0
  12. package/dist/jsgd-vue-pack.cjs.js +1 -0
  13. package/dist/jsgd-vue-pack.css +7 -0
  14. package/dist/jsgd-vue-pack.es.js +388 -0
  15. package/dist/plugin/vue.cjs.js +1 -0
  16. package/dist/plugin/vue.es.js +51 -0
  17. package/dist/types/components/Form/FormFieldRenderer.vue.d.ts +23 -0
  18. package/dist/types/components/Form/FormModal.vue.d.ts +11 -0
  19. package/dist/types/components/Form/composables/index.d.ts +2 -0
  20. package/dist/types/components/Form/composables/useFormFieldRenderer.d.ts +22 -0
  21. package/dist/types/components/Form/composables/useFormModal.d.ts +19 -0
  22. package/dist/types/components/Form/index.d.ts +2 -0
  23. package/dist/types/components/Tabel/TabelData.vue.d.ts +62 -0
  24. package/dist/types/components/Tabel/composables/index.d.ts +4 -0
  25. package/dist/types/components/Tabel/composables/useDataNormalization.d.ts +7 -0
  26. package/dist/types/components/Tabel/composables/useDisplayHelpers.d.ts +8 -0
  27. package/dist/types/components/Tabel/composables/useFormHandling.d.ts +23 -0
  28. package/dist/types/components/Tabel/composables/useTableLogic.d.ts +35 -0
  29. package/dist/types/components/Tabel/index.d.ts +1 -0
  30. package/dist/types/components/UI/Display/BaseImage.vue.d.ts +6 -0
  31. package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +20 -0
  32. package/dist/types/components/UI/Display/FieldDetailRenderer.vue.d.ts +16 -0
  33. package/dist/types/components/UI/Display/ImagePreview.vue.d.ts +12 -0
  34. package/dist/types/components/UI/Display/ModalDetailData.vue.d.ts +17 -0
  35. package/dist/types/components/UI/Display/SafeHtml.vue.d.ts +5 -0
  36. package/dist/types/components/UI/Display/Tooltip.vue.d.ts +62 -0
  37. package/dist/types/components/UI/Display/index.d.ts +7 -0
  38. package/dist/types/components/UI/Feedback/AlertApp.vue.d.ts +14 -0
  39. package/dist/types/components/UI/Feedback/LoaderSuccessError.vue.d.ts +12 -0
  40. package/dist/types/components/UI/Feedback/WarningForm.vue.d.ts +17 -0
  41. package/dist/types/components/UI/Feedback/index.d.ts +3 -0
  42. package/dist/types/components/UI/Inputs/ArrayObject.vue.d.ts +9 -0
  43. package/dist/types/components/UI/Inputs/ColorPicker.vue.d.ts +13 -0
  44. package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +33 -0
  45. package/dist/types/components/UI/Inputs/DateInput.vue.d.ts +13 -0
  46. package/dist/types/components/UI/Inputs/DateTimeInput.vue.d.ts +67 -0
  47. package/dist/types/components/UI/Inputs/EmailInput.vue.d.ts +13 -0
  48. package/dist/types/components/UI/Inputs/FileArrayInput.vue.d.ts +14 -0
  49. package/dist/types/components/UI/Inputs/FileInput.vue.d.ts +13 -0
  50. package/dist/types/components/UI/Inputs/GroupRenderer.vue.d.ts +17 -0
  51. package/dist/types/components/UI/Inputs/ImageArrayInput.vue.d.ts +14 -0
  52. package/dist/types/components/UI/Inputs/ImageInput.vue.d.ts +13 -0
  53. package/dist/types/components/UI/Inputs/NumberInput.vue.d.ts +13 -0
  54. package/dist/types/components/UI/Inputs/ObjectInput.vue.d.ts +17 -0
  55. package/dist/types/components/UI/Inputs/PasswordInput.vue.d.ts +13 -0
  56. package/dist/types/components/UI/Inputs/TagInput.vue.d.ts +16 -0
  57. package/dist/types/components/UI/Inputs/TextAreaInput.vue.d.ts +13 -0
  58. package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +13 -0
  59. package/dist/types/components/UI/Inputs/TextInput.vue.d.ts +13 -0
  60. package/dist/types/components/UI/Inputs/TimeInput.vue.d.ts +13 -0
  61. package/dist/types/components/UI/Inputs/ToggleInput.vue.d.ts +9 -0
  62. package/dist/types/components/UI/Inputs/UrlInput.vue.d.ts +13 -0
  63. package/dist/types/components/UI/Inputs/composables/index.d.ts +3 -0
  64. package/dist/types/components/UI/Inputs/composables/useArrayObject.d.ts +17 -0
  65. package/dist/types/components/UI/Inputs/composables/useSchemaGroupRenderer.d.ts +14 -0
  66. package/dist/types/components/UI/Inputs/composables/useSingleObject.d.ts +11 -0
  67. package/dist/types/components/UI/Inputs/index.d.ts +21 -0
  68. package/dist/types/components/UI/index.d.ts +3 -0
  69. package/dist/types/components/index.d.ts +3 -0
  70. package/dist/types/config.d.ts +2 -0
  71. package/dist/types/configs/defaults/index.d.ts +1 -0
  72. package/dist/types/configs/defaults/table.d.ts +8 -0
  73. package/dist/types/configs/i18n/errors.d.ts +2 -0
  74. package/dist/types/configs/i18n/index.d.ts +4 -0
  75. package/dist/types/configs/i18n/inputs.d.ts +2 -0
  76. package/dist/types/configs/i18n/labels.d.ts +2 -0
  77. package/dist/types/configs/i18n/register.d.ts +4 -0
  78. package/dist/types/configs/index.d.ts +3 -0
  79. package/dist/types/configs/types/base.types.d.ts +8 -0
  80. package/dist/types/configs/types/date.types.d.ts +10 -0
  81. package/dist/types/configs/types/field.types.d.ts +255 -0
  82. package/dist/types/configs/types/globalText.types.d.ts +94 -0
  83. package/dist/types/configs/types/index.d.ts +10 -0
  84. package/dist/types/configs/types/modal-text.types.d.ts +42 -0
  85. package/dist/types/configs/types/plugin-config.types.d.ts +28 -0
  86. package/dist/types/configs/types/props.types.d.ts +355 -0
  87. package/dist/types/configs/types/schema.types.d.ts +20 -0
  88. package/dist/types/configs/types/submit-options.types.d.ts +31 -0
  89. package/dist/types/configs/types/table-data.types.d.ts +130 -0
  90. package/dist/types/fetch/index.d.ts +1 -0
  91. package/dist/types/fetch/submitData.d.ts +2 -0
  92. package/dist/types/helpers/clientInfo.d.ts +5 -0
  93. package/dist/types/helpers/index.d.ts +3 -0
  94. package/dist/types/helpers/locale.d.ts +3 -0
  95. package/dist/types/helpers/message.d.ts +2 -0
  96. package/dist/types/index.d.ts +8 -0
  97. package/dist/types/init.d.ts +2 -0
  98. package/dist/types/lib/index.d.ts +2 -0
  99. package/dist/types/lib/indexedDB.d.ts +29 -0
  100. package/dist/types/lib/secureFetch.d.ts +8 -0
  101. package/dist/types/plugin/vue.plugin.d.ts +3 -0
  102. package/dist/types/schemas/TestSchema.d.ts +2 -0
  103. package/dist/types/schemas/index.d.ts +1 -0
  104. package/dist/types/untils/index.d.ts +4 -0
  105. package/dist/types/untils/math.d.ts +28 -0
  106. package/dist/types/untils/misc.d.ts +3 -0
  107. package/dist/types/untils/objectPath.d.ts +5 -0
  108. package/dist/types/untils/regex.d.ts +8 -0
  109. package/dist/types/validate/index.d.ts +1 -0
  110. package/dist/types/validate/validate.d.ts +27 -0
  111. package/package.json +70 -0
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Joko Susilo
2
+
3
+ This license applies separately to the compiled Software (build) and the Source Code.
4
+
5
+ --- Compiled Software (Build/Dist) ---
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the compiled Software (files located in the 'dist' directory) to use and modify said copy for personal or internal purposes.
8
+
9
+ Redistribution of the modified compiled Software must retain the original copyright notice.
10
+
11
+ --- Original Source Code ---
12
+
13
+ ALL RIGHTS RESERVED.
14
+
15
+ It is strictly forbidden, without written permission from the copyright holder, to view, use, copy, modify, merge, publish, distribute, or sell copies of the Original Source Code of this software.
16
+
17
+ --- Warranty ---
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,154 @@
1
+ # jsgd-vue-pack
2
+
3
+ [![NPM Version](https://img.shields.io/npm/v/jsgd-vue-pack?style=flat-square)](https://www.npmjs.com/package/jsgd-vue-pack)
4
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/JSGDevelompent/jsgd-vue-pack/main.yml?branch=main&style=flat-square)](https://github.com/JSGDevelompent/jsgd-vue-pack/actions)
5
+ [![License](https://img.shields.io/badge/license-Custom-blue?style=flat-square)](./LICENSE)
6
+
7
+ **jsgd-vue-pack** is a comprehensive Vue 3 component library, built with TypeScript and Vite.
8
+ It is designed to accelerate development by providing a rich set of ready-to-use UI components, ranging from complex data tables and modal forms to various types of input fields.
9
+
10
+ ---
11
+
12
+ ## ✨ Features
13
+
14
+ - **Complete Component Collection**: Includes `TabelData`, `FormModal`, `FormFieldRenderer`, and more than 30+ other UI and input components.
15
+ - **TypeScript First**: Fully built with TypeScript for _type-safety_ and a great development experience with _auto-complete_ support.
16
+ - **Highly Configurable**: Easily customize the behavior of the library through a `jsgd.config.ts` file.
17
+ - **Internationalization (i18n)**: Built-in support for multiple languages including English, Indonesian, Spanish, French, German, and more.
18
+ - **Modern Automation**: Uses a custom Vite plugin to auto-generate module entries, making maintenance easier.
19
+ - **Styling with UnoCSS**: Integrated with UnoCSS for fast and efficient utility-first styling.
20
+
21
+ ---
22
+
23
+ ## 🚀 Installation
24
+
25
+ Install this package using npm:
26
+
27
+ ```bash
28
+ npm install jsgd-vue-pack
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Usage
34
+
35
+ Here’s how to integrate and use `jsgd-vue-pack` in your Vite + Vue 3 project.
36
+
37
+ ### 1. Configure the Plugin
38
+
39
+ Update your `vite.config.ts` file to include the Vite plugin from this library.
40
+
41
+ ```typescript
42
+ // vite.config.ts
43
+ import { defineConfig } from 'vite'
44
+ import vue from '@vitejs/plugin-vue'
45
+ import JsgdVuePack from 'jsgd-vue-pack/vite' // <-- Import Vite plugin
46
+
47
+ export default defineConfig({
48
+ plugins: [
49
+ vue(),
50
+ JsgdVuePack(), // <-- Use the plugin
51
+ ],
52
+ })
53
+ ```
54
+
55
+ ### 2. Register Global Components
56
+
57
+ In your main entry file (`main.ts`), use the Vue plugin to register all components globally.
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import { createApp } from 'vue'
62
+ import App from './App.vue'
63
+ import JsgdComponents from 'jsgd-vue-pack/vue' // <-- Import Vue plugin
64
+
65
+ const app = createApp(App)
66
+
67
+ app.use(JsgdComponents) // <-- Register all components
68
+ app.mount('#app')
69
+ ```
70
+
71
+ ### 3. Customization (Optional)
72
+
73
+ Create a `jsgd.config.ts` file in your project root to customize behavior, e.g., adding new languages.
74
+
75
+ ```typescript
76
+ // jsgd.config.ts
77
+ import { defineConfig } from 'jsgd-vue-pack/config'
78
+
79
+ export default defineConfig({
80
+ i18n: {
81
+ // Add or override languages
82
+ languages: [
83
+ {
84
+ lang: 'id',
85
+ config: {
86
+ // ...Indonesian language config here
87
+ },
88
+ },
89
+ ],
90
+ },
91
+ })
92
+ ```
93
+
94
+ ### 4. Using Components
95
+
96
+ Now you can directly use components inside your `.vue` files.
97
+
98
+ ```vue
99
+ <template>
100
+ <div>
101
+ <TabelData :base="tableBaseConfig" :feature="tableFeatures" :endpoints="apiEndpoints" />
102
+ </div>
103
+ </template>
104
+
105
+ <script setup lang="ts">
106
+ // Import components manually if you don’t want global registration
107
+ // import { TabelData } from 'jsgd-vue-pack';
108
+
109
+ // Config for TabelData
110
+ const tableBaseConfig = {
111
+ // ...
112
+ }
113
+ const tableFeatures = {
114
+ // ...
115
+ }
116
+ const apiEndpoints = {
117
+ // ...
118
+ }
119
+ </script>
120
+ ```
121
+
122
+ ---
123
+
124
+ ## 📦 Available Components
125
+
126
+ This library covers a wide range of component categories, including:
127
+
128
+ - **Data Display**: `TabelData`, `FieldDetailRenderer`, `BaseImage`, `ModalDetailData`
129
+ - **Forms & Modals**: `FormModal`, `FormFieldRenderer`
130
+ - **Feedback**: `AlertApp`, `Loader`, `WarningForm`
131
+ - **Inputs**: `TextInput`, `NumberInput`, `ImageInput`, `ColorPicker`, `TextAreaQuill`, `ComboboxComponent`, `TagInput`, and many more.
132
+
133
+ ---
134
+
135
+ ## 📜 License
136
+
137
+ This project is released under a **custom license**. Please see the [LICENSE](./LICENSE) file for full details.
138
+
139
+ - **Compiled Software (Build/Dist)**: Free to use and modify for personal or internal purposes.
140
+ - **Original Source Code**: All rights reserved. Viewing, modifying, or redistributing the original source code without written permission is strictly prohibited.
141
+
142
+ ---
143
+
144
+ ## ⚖️ Third-Party Licenses
145
+
146
+ This project utilizes third-party open-source software. The licenses for these dependencies are available in the [THIRD_PARTY_LICENSES.md](./THIRD_PARTY_LICENSES.md) file.
147
+
148
+ ---
149
+
150
+ ## 🧑‍💻 Author
151
+
152
+ Developed by **JSGDevelompent**.
153
+
154
+ - **GitHub**: [JSGDevelompent](https://github.com/JSGDevelompent)