@enso-ui/services 5.1.0 → 5.3.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 laravel-enso
3
+ Copyright (c) 2026 laravel-enso
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,28 +1,11 @@
1
1
  # Services
2
2
 
3
- ![npm license](https://img.shields.io/npm/l/@enso-ui/services.svg)
4
- ![npm download](https://img.shields.io/npm/dm/@enso-ui/services.svg)
5
- ![GitHub top language](https://img.shields.io/github/languages/top/enso-ui/services.svg)
6
- ![GitHub issues](https://img.shields.io/github/issues/enso-ui/services.svg)
7
- ![npm version](https://img.shields.io/npm/v/@enso-ui/services.svg)
3
+ Basic services package for the Enso ecosystem.
8
4
 
9
5
  ## Usage
10
- The component cannot be used outside of the Enso ecosystem.
11
-
12
- ### Demo
13
-
14
- For live examples and demos, you may visit [laravel-enso.com](https://www.laravel-enso.com)
15
-
16
- ### Installation, Configuration & Usage
17
6
 
18
- Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/services.html)
19
-
20
- ## Contributions
21
-
22
- are welcome. Pull requests are great, but issues are good too.
23
-
24
- Thank you to all the people who already contributed to Enso!
7
+ The component cannot be used outside of the Enso ecosystem.
25
8
 
26
9
  ## License
27
10
 
28
- [ISC](https://opensource.org/licenses/ISC)
11
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@enso-ui/services",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "Basic services package",
5
5
  "main": "src/bulma/pages/administration/services/Index.vue",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/enso-ui/services.git"
@@ -15,28 +12,18 @@
15
12
  "vue"
16
13
  ],
17
14
  "author": "Adrian Ocneanu <aocneanu@gmail.com>",
18
- "license": "ISC",
15
+ "license": "MIT",
19
16
  "bugs": {
20
17
  "url": "https://github.com/enso-ui/services/issues"
21
18
  },
22
19
  "homepage": "https://github.com/enso-ui/services#readme",
23
20
  "dependencies": {
24
- "@enso-ui/forms": "^3.0",
25
- "@enso-ui/tables": "^3.0",
26
- "@enso-ui/ui": "^6.0",
27
- "@fortawesome/fontawesome-svg-core": "^1.2.2",
28
- "@fortawesome/free-solid-svg-icons": "^5.11.2",
21
+ "@enso-ui/filters": "^3.2.0",
22
+ "@enso-ui/forms": "^4.0.0",
23
+ "@enso-ui/tables": "^4.0.0",
24
+ "@enso-ui/ui": "^7.0.0",
25
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
26
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
29
27
  "vue": "^3.0"
30
- },
31
- "devDependencies": {
32
- "@vue/cli-plugin-babel": "5.0.0-beta.6",
33
- "@vue/cli-plugin-eslint": "5.0.0-beta.6",
34
- "@vue/eslint-config-airbnb": "^5.0.0",
35
- "autoprefixer": "^9.6.1",
36
- "babel-eslint": "^10.0.1",
37
- "cross-env": "^6.0.0",
38
- "eslint": "^7.0.0",
39
- "eslint-import-resolver-alias": "^1.1.2",
40
- "eslint-plugin-vue": "^8.0.3"
41
28
  }
42
29
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="columns is-centered">
3
3
  <div class="column is-three-quarters-desktop is-full-touch">
4
- <enso-form class="box form-box has-background-light raises-on-hover"/>
4
+ <enso-form class="box form-box"/>
5
5
  </div>
6
6
  </div>
7
7
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="columns is-centered">
3
3
  <div class="column is-three-quarters-desktop is-full-touch">
4
- <enso-form class="box form-box has-background-light raises-on-hover"
4
+ <enso-form class="box form-box"
5
5
  @ready="form = $event.form">
6
6
  <template #suppliers>
7
7
  <div class="wrapper is-block">
@@ -1,15 +1,40 @@
1
1
  <template>
2
- <enso-table class="box is-paddingless raises-on-hover"
3
- id="services"/>
2
+ <div class="wrapper">
3
+ <div class="columns is-centered is-multiline">
4
+ <div class="column is-narrow">
5
+ <boolean-filter class="box"
6
+ :name="i18n('Active')"
7
+ v-model="filters.services.is_active"/>
8
+ </div>
9
+ <div class="column is-narrow">
10
+ <boolean-filter class="box"
11
+ :name="i18n('Additional')"
12
+ v-model="filters.services.is_additional"/>
13
+ </div>
14
+ <div class="column is-narrow">
15
+ <boolean-filter class="box"
16
+ :name="i18n('Contractor Exclusive')"
17
+ v-model="filters.services.is_contractor_exclusive"/>
18
+ </div>
19
+ </div>
20
+ <enso-table class="box p-0"
21
+ v-model:filters="filters"
22
+ :filter-version="1.1"
23
+ id="services"/>
24
+ </div>
4
25
  </template>
5
26
 
6
- <script>
7
-
27
+ <script setup>
28
+ import { ref, inject } from 'vue';
29
+ import { BooleanFilter } from '@enso-ui/filters/bulma';
8
30
  import { EnsoTable } from '@enso-ui/tables/bulma';
9
31
 
10
- export default {
11
- name: 'Index',
12
-
13
- components: { EnsoTable },
14
- };
32
+ const i18n = inject('i18n');
33
+ const filters = ref({
34
+ services: {
35
+ is_active: null,
36
+ is_additional: null,
37
+ is_contractor_exclusive: null,
38
+ },
39
+ });
15
40
  </script>
@@ -1,6 +1,6 @@
1
1
  import routeImporter from '@enso-ui/ui/src/modules/importers/routeImporter';
2
2
 
3
- const routes = routeImporter(require.context('./services', false, /.*\.js$/));
3
+ const routes = routeImporter.fromGlob(import.meta.glob('./services/*.js', { eager: true }));
4
4
  const RouterView = () => import('@enso-ui/ui/src/bulma/pages/Router.vue');
5
5
 
6
6
  export default {