@hcd-bsas/list-documents-adapter 0.0.8 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hcd-bsas/list-documents-adapter",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,28 +9,28 @@
9
9
  "license": "MIT",
10
10
  "devDependencies": {
11
11
  "@hcd-bsas/bootstrap5": "^0.0.2",
12
- "@hcd-bsas/list-documents-plugin": "^0.0.5",
13
- "babel-loader": "^8.2.5",
14
- "browserify": "^17.0.0",
15
- "css-loader": "^6.7.1",
12
+ "@hcd-bsas/list-documents-plugin": "^0.0.12",
13
+ "babel-loader": "^10.1.1",
14
+ "browserify": "^17.0.1",
15
+ "css-loader": "^7.1.5",
16
16
  "file-loader": "^6.2.0",
17
- "html-loader": "^4.1.0",
18
- "mini-css-extract-plugin": "^2.6.1",
19
- "postcss": "^8.4.14",
20
- "postcss-loader": "^7.0.1",
21
- "sass-loader": "^13.0.2",
22
- "style-loader": "^3.3.1",
17
+ "html-loader": "^5.1.0",
18
+ "mini-css-extract-plugin": "^2.10.2",
19
+ "postcss": "^8.5.32",
20
+ "postcss-loader": "^8.2.1",
21
+ "sass-loader": "^17.1.0",
22
+ "style-loader": "^4.0.0",
23
23
  "uglifyjs-webpack-plugin": "^2.2.0",
24
24
  "url-loader": "^4.1.1",
25
- "vue": "^3.2.37",
26
- "vue-loader": "^17.0.0",
25
+ "vue": "^3.5.44",
26
+ "vue-loader": "^17.4.2",
27
27
  "vue-style-loader": "^4.1.3",
28
- "vue-template-compiler": "^2.7.8",
29
- "webpack": "^5.74.0",
30
- "webpack-cli": "^4.9.2"
28
+ "vue-template-compiler": "^2.7.16",
29
+ "webpack": "^5.112.2",
30
+ "webpack-cli": "^7.3.1"
31
31
  },
32
32
  "dependencies": {
33
- "vue-sweetalert2": "^5.0.5"
33
+ "vue-sweetalert2": "^5.0.11"
34
34
  },
35
35
  "scripts": {
36
36
  "serve": "webpack --mode=development",
package/src/App.vue CHANGED
@@ -1,32 +1,32 @@
1
- <template>
2
- <list-files
3
- ref="list"
4
- @lastDocEscanRemoved="lastDocEscanRemoved"
5
- />
6
- </template>
7
-
8
- <script>
9
- export default {
10
- name: "App",
11
- props: {},
12
- data() {
13
- return {
14
- is_last_removed: false
15
- };
16
- },
17
- created() {
18
- },
19
- methods: {
20
- showModal(app_config, params) {
21
- this.is_last_removed = false;
22
- return this.$refs['list'].show(app_config, params);
23
- },
24
- isLastDocEscanRemoved() {
25
- return this.is_last_removed;
26
- },
27
- lastDocEscanRemoved() {
28
- this.is_last_removed = true;
29
- }
30
- }
31
- };
1
+ <template>
2
+ <list-files
3
+ ref="list"
4
+ @lastDocEscanRemoved="lastDocEscanRemoved"
5
+ />
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ name: "App",
11
+ props: {},
12
+ data() {
13
+ return {
14
+ is_last_removed: false
15
+ };
16
+ },
17
+ created() {
18
+ },
19
+ methods: {
20
+ showModal(app_config, params) {
21
+ this.is_last_removed = false;
22
+ return this.$refs['list'].show(app_config, params);
23
+ },
24
+ isLastDocEscanRemoved() {
25
+ return this.is_last_removed;
26
+ },
27
+ lastDocEscanRemoved() {
28
+ this.is_last_removed = true;
29
+ }
30
+ }
31
+ };
32
32
  </script>
package/src/index.js CHANGED
@@ -1,35 +1,35 @@
1
- import { createApp } from 'vue'
2
- import App from './App.vue'
3
- import hcdListPlugin from '@hcd-bsas/list-documents-plugin'
4
- import VueSweetalert2 from 'vue-sweetalert2';
5
-
6
- export default class ImagesList {
7
-
8
- #imagesListId = "hcd-list-plugin-id";
9
- #app = null
10
- #root = null;
11
-
12
- constructor(config) {
13
- try {
14
- config['sweetalert'] = VueSweetalert2;
15
- this.#render();
16
- this.#app = createApp(App);
17
- this.#app.use(hcdListPlugin, config)
18
- this.#root = this.#app.mount("#"+this.#imagesListId);
19
- } catch (error) {
20
- throw error;
21
- }
22
- }
23
-
24
- #render(){
25
- var body = document.body;
26
- var layout = document.createElement('div');
27
- layout.id = this.#imagesListId
28
- body.prepend(layout);
29
- }
30
-
31
- open(app_config, params){
32
- return this.#root.showModal(app_config, params);
33
- }
34
-
35
- }
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+ import hcdListPlugin from '@hcd-bsas/list-documents-plugin'
4
+ import VueSweetalert2 from 'vue-sweetalert2';
5
+
6
+ export default class ImagesList {
7
+
8
+ #imagesListId = "hcd-list-plugin-id";
9
+ #app = null
10
+ #root = null;
11
+
12
+ constructor(config) {
13
+ try {
14
+ config['sweetalert'] = VueSweetalert2;
15
+ this.#render();
16
+ this.#app = createApp(App);
17
+ this.#app.use(hcdListPlugin, config)
18
+ this.#root = this.#app.mount("#"+this.#imagesListId);
19
+ } catch (error) {
20
+ throw error;
21
+ }
22
+ }
23
+
24
+ #render(){
25
+ var body = document.body;
26
+ var layout = document.createElement('div');
27
+ layout.id = this.#imagesListId
28
+ body.prepend(layout);
29
+ }
30
+
31
+ open(app_config, params){
32
+ return this.#root.showModal(app_config, params);
33
+ }
34
+
35
+ }