@bildvitta/quasar-ui-asteroid 3.0.0-alpha.2 → 3.0.0-beta.2
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/dist/api/QasDelete.json +5 -0
- package/dist/api/QasFilters.json +4 -0
- package/dist/api/QasFormView.json +6 -4
- package/dist/api/QasInput.json +16 -1
- package/dist/api/QasPasswordInput.json +2 -1
- package/dist/api/QasSignatureUploader.json +7 -0
- package/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +469 -281
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +472 -283
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +472 -283
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +27 -3
- package/dist/vetur/asteroid-tags.json +9 -3
- package/package.json +1 -1
- package/src/asteroid.js +1 -0
- package/src/components/actions-menu/QasActionsMenu.vue +3 -5
- package/src/components/btn/QasBtn.vue +6 -4
- package/src/components/delete/QasDelete.vue +23 -1
- package/src/components/delete/QasDelete.yml +4 -0
- package/src/components/dialog/QasDialog.vue +2 -2
- package/src/components/field/QasField.vue +1 -2
- package/src/components/filters/QasFilters.vue +6 -2
- package/src/components/filters/QasFilters.yml +4 -0
- package/src/components/form-view/QasFormView.vue +10 -10
- package/src/components/form-view/QasFormView.yml +8 -3
- package/src/components/input/QasInput.vue +43 -2
- package/src/components/input/QasInput.yml +13 -1
- package/src/components/nested-fields/QasNestedFields.vue +47 -35
- package/src/components/page-header/QasPageHeader.vue +4 -2
- package/src/components/password-input/QasPasswordInput.vue +17 -26
- package/src/components/password-input/QasPasswordInput.yml +1 -1
- package/src/components/search-box/QasSearchBox.vue +6 -1
- package/src/components/select-list/QasSelectList.vue +10 -8
- package/src/components/signature-uploader/QasSignatureUploader.vue +38 -2
- package/src/components/signature-uploader/QasSignatureUploader.yml +5 -0
- package/src/components/table-generator/QasTableGenerator.vue +2 -2
- package/src/components/transfer/QasTransfer.vue +9 -7
- package/src/components/uploader/QasUploader.vue +1 -2
- package/src/composables/index.js +1 -0
- package/src/composables/useHistory.js +46 -0
- package/src/directives/Test.js +13 -0
- package/src/helpers/filter-list-by-handle.js +31 -0
- package/src/helpers/filter-object-to-array.js +29 -0
- package/src/helpers/filter-object.js +2 -3
- package/src/helpers/index.js +2 -0
- package/src/index.scss +3 -2
- package/src/mixins/view.js +2 -0
- package/src/pages/Forbidden.vue +12 -0
- package/src/pages/NotFound.vue +12 -0
- package/src/plugins/index.js +2 -0
- package/src/plugins/screen/Screen.js +30 -0
- package/src/plugins/screen/Screen.yml +16 -0
- package/src/vue-plugin.js +12 -3
- package/src/css/transitions.scss +0 -12
- package/src/store/history.js +0 -43
- package/src/store/index.js +0 -1
package/src/store/history.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { reactive } from 'vue'
|
|
2
|
-
import { findLastIndex } from 'lodash-es'
|
|
3
|
-
|
|
4
|
-
const history = reactive({ hasPreviousRoute: false, list: [] })
|
|
5
|
-
|
|
6
|
-
function getPreviousRoute (currentRoute) {
|
|
7
|
-
const index = findLastIndex(history.list, item => item.name === currentRoute.name)
|
|
8
|
-
|
|
9
|
-
if (~index) {
|
|
10
|
-
history.list.splice(index, 1)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
history.hasPreviousRoute = history.list.length > 1
|
|
14
|
-
return history.list[history.list.length - 1]
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function addRoute (route) {
|
|
18
|
-
const routeExistsInList = history.list?.[history.list?.length - 1]?.name === route.name
|
|
19
|
-
|
|
20
|
-
if (routeExistsInList) return
|
|
21
|
-
|
|
22
|
-
history.list.push(route)
|
|
23
|
-
history.hasPreviousRoute = history.list.length > 1
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function destroyRoutes (routes) {
|
|
27
|
-
if (!history.list.length) return null
|
|
28
|
-
|
|
29
|
-
routes.forEach(route => {
|
|
30
|
-
const index = history.list.findIndex(item => item.name === route)
|
|
31
|
-
|
|
32
|
-
if (~index) {
|
|
33
|
-
history.list.splice(index, 1)
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
history,
|
|
40
|
-
getPreviousRoute,
|
|
41
|
-
addRoute,
|
|
42
|
-
destroyRoutes
|
|
43
|
-
}
|
package/src/store/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './history.js'
|