@stonecrop/desktop 0.2.24 → 0.2.26
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/desktop.d.ts +20 -0
- package/dist/desktop.js +2308 -2235
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.tsbuildinfo +1 -0
- package/dist/desktop.umd.cjs +23 -17
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/plugins/index.js +15 -0
- package/dist/router.js +6 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugins/index.d.ts +4 -0
- package/dist/src/plugins/index.d.ts.map +1 -0
- package/dist/src/router.d.ts +8 -0
- package/dist/src/router.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +20 -23
- package/src/components/ActionSet.vue +1 -1
- package/src/components/Desktop.vue +2 -2
- package/src/components/Doctype.vue +3 -3
- package/src/plugins/index.ts +4 -2
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ActionSet from '@/components/ActionSet.vue';
|
|
2
|
+
import CommandPalette from '@/components/CommandPalette.vue';
|
|
3
|
+
import Doctype from '@/components/Doctype.vue';
|
|
4
|
+
import Records from '@/components/Records.vue';
|
|
5
|
+
import SheetNav from '@/components/SheetNav.vue';
|
|
6
|
+
import StonecropDesktop from '@/plugins';
|
|
7
|
+
export { ActionSet, CommandPalette, Doctype, Records, SheetNav, StonecropDesktop };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ActionSet from '@/components/ActionSet.vue';
|
|
2
|
+
import CommandPalette from '@/components/CommandPalette.vue';
|
|
3
|
+
import Doctype from '@/components/Doctype.vue';
|
|
4
|
+
import Records from '@/components/Records.vue';
|
|
5
|
+
import SheetNav from '@/components/SheetNav.vue';
|
|
6
|
+
const plugin = {
|
|
7
|
+
install: (app) => {
|
|
8
|
+
app.component('ActionSet', ActionSet);
|
|
9
|
+
app.component('CommandPalette', CommandPalette);
|
|
10
|
+
app.component('Doctype', Doctype);
|
|
11
|
+
app.component('Records', Records);
|
|
12
|
+
app.component('SheetNav', SheetNav);
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default plugin;
|
package/dist/router.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ActionSet from '@/components/ActionSet.vue';
|
|
2
|
+
import CommandPalette from '@/components/CommandPalette.vue';
|
|
3
|
+
import Doctype from '@/components/Doctype.vue';
|
|
4
|
+
import Records from '@/components/Records.vue';
|
|
5
|
+
import SheetNav from '@/components/SheetNav.vue';
|
|
6
|
+
import StonecropDesktop from '@/plugins';
|
|
7
|
+
export { ActionSet, CommandPalette, Doctype, Records, SheetNav, StonecropDesktop };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAChD,OAAO,gBAAgB,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,MAAM,EAAE,MAAM,KAAK,CAAA;AAQtC,QAAA,MAAM,MAAM,EAAE,MAQb,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,6BAGV,CAAA;AAEF,eAAe,MAAM,CAAA;AAErB,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,SAAS;QAClB,UAAU,CAAC,EAAE,MAAM,CAAA;KACnB;CACD"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#chevron[data-v-
|
|
1
|
+
#chevron[data-v-3ce59358]{position:relative;transform:rotate(90deg)}.leftBar[data-v-3ce59358],.rightBar[data-v-3ce59358]{transition-duration:.225s;transition-property:transform}.leftBar[data-v-3ce59358],.action-set.collapse.hovered-and-closed:hover .leftBar[data-v-3ce59358]{transform-origin:33.4% 50%;transform:rotate(90deg)}.rightBar[data-v-3ce59358],.action-set.collapse.hovered-and-closed:hover .rightBar[data-v-3ce59358]{transform-origin:67% 50%;transform:rotate(-90deg)}.rightBar[data-v-3ce59358]{position:absolute;top:0;left:0}.action-set.collapse:hover .leftBar[data-v-3ce59358],.action-set.collapse:hover .rightBar[data-v-3ce59358]{transform:rotate(0)}.action-set[data-v-3ce59358]{position:fixed;top:10px;right:10px;padding:20px;box-shadow:0 1px 2px #1927340d,0 0 4px #1927341a;border-radius:10px;display:flex;flex-direction:row-reverse;background-color:#fff;overflow:hidden}.action-menu-icon[data-v-3ce59358]{position:absolute;top:6px;right:8px}.action-menu-icon svg[data-v-3ce59358]{fill:#333}.action-set.collapse[data-v-3ce59358],.action-set.collapse.hovered-and-closed[data-v-3ce59358]:hover{max-width:25px;overflow:hidden;-webkit-transition:max-width .5s ease-in-out;-moz-transition:max-width .5s ease-in-out;-o-transition:max-width .5s ease-in-out;transition:max-width .5s ease-in-out}.action-set.collapse .action-element[data-v-3ce59358],.action-set.collapse.hovered-and-closed:hover .action-element[data-v-3ce59358]{opacity:0;-webkit-transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-o-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out;transition-delay:0s}.action-set.collapse[data-v-3ce59358]:hover{max-width:500px}.action-set.collapse.open-set[data-v-3ce59358]:hover{overflow:visible!important}.action-set.collapse.hovered-and-closed:hover .action-element[data-v-3ce59358]{opacity:0!important}.action-set.collapse:hover .action-element[data-v-3ce59358]{opacity:100!important}.action-element[data-v-3ce59358]{margin-left:5px;margin-right:5px}button.button-default[data-v-3ce59358]{background-color:#fff;padding:5px 12px;border-radius:3px;box-shadow:#0000000d 0 .5px,#00000014 0 0 0 1px,#0000000d 0 2px 4px;border:none;cursor:pointer;white-space:nowrap}button.button-default[data-v-3ce59358]:hover{background-color:#f2f2f2}.dropdown-container[data-v-3ce59358]{position:relative}.dropdown[data-v-3ce59358]{position:absolute;top:5px;right:0;min-width:200px;box-shadow:0 .5rem 1rem #0000002e;border-radius:10px;background-color:#fff;padding:10px}button.dropdown-item[data-v-3ce59358]{width:100%;padding:8px 5px;text-align:left;border:none;background-color:#fff;cursor:pointer;border-radius:5px}button.dropdown-item[data-v-3ce59358]:hover{background-color:#f2f2f2}footer[data-v-4f7a2d32]{position:fixed;bottom:0;width:100%;background-color:transparent;height:2rem;z-index:100;text-align:left;font-size:100%;display:flex;justify-content:right;padding-bottom:.2rem}ul[data-v-4f7a2d32]{display:flex;flex-direction:row-reverse}.tabs li[data-v-4f7a2d32]{float:left;list-style-type:none;position:relative;margin-left:-1px}.tabs a[data-v-4f7a2d32]{float:left;padding:1ch 4ch 4ch;text-decoration:none;color:#000;background:#aaa;outline:2px solid inherit;outline-offset:-2px;-webkit-border-top-left-radius:15px;-webkit-border-top-right-radius:15px;-moz-border-radius-topleft:15px;-moz-border-radius-topright:15px;border-top-left-radius:15px;border-top-right-radius:15px;border:1px solid #ccc}.tabs .router-link-active[data-v-4f7a2d32]{z-index:3}.router-link-active[data-v-4f7a2d32]{background:#827553;color:#000;box-shadow:#999}.tabs li[data-v-4f7a2d32]:before,.tabs li[data-v-4f7a2d32]:after,.tabs li a[data-v-4f7a2d32]:before,.tabs li a[data-v-4f7a2d32]:after{position:absolute;bottom:0}.tabs li[data-v-4f7a2d32]:last-child:after,.tabs li:last-child a[data-v-4f7a2d32]:after,.tabs li[data-v-4f7a2d32]:first-child:before,.tabs li:first-child a[data-v-4f7a2d32]:before,.tabs .router-link-active[data-v-4f7a2d32]:after,.tabs .router-link-active[data-v-4f7a2d32]:before,.tabs .router-link-active a[data-v-4f7a2d32]:after,.tabs .router-link-active a[data-v-4f7a2d32]:before{content:""}.tabs .router-link-active[data-v-4f7a2d32]:before,.tabs .router-link-active[data-v-4f7a2d32]:after{background:transparent;z-index:1}.tabs li[data-v-4f7a2d32]:before,.tabs li[data-v-4f7a2d32]:after{background:transparent;width:10px;height:10px}.tabs li[data-v-4f7a2d32]:before{left:-10px}.tabs li[data-v-4f7a2d32]:after{right:-10px}.tabs li a[data-v-4f7a2d32]:after,.tabs li a[data-v-4f7a2d32]:before{width:20px;height:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background:transparent;z-index:2}.tabs .router-link-active a[data-v-4f7a2d32]:after,.tabs .router-link-active a[data-v-4f7a2d32]:before{background:transparent}.tabs li:first-child.router-link-active a[data-v-4f7a2d32]:before,.tabs li:last-child.router-link-active a[data-v-4f7a2d32]:after{background:transparent}.tabs li a[data-v-4f7a2d32]:before{left:-20px}.tabs li a[data-v-4f7a2d32]:after{right:-20px}.hidebreadcrumbs a[data-v-4f7a2d32]{width:1ch;min-width:calc(66px - 4ch);background-color:#fff;padding-left:2ch;padding-right:2ch;padding-top:3px;font-size:150%;text-align:center}.rotated[data-v-4f7a2d32]{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transition:transform .25s}.unrotated[data-v-4f7a2d32]{transform:rotate(0);-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transition:transform .25s}li[data-v-4f7a2d32]:active,li[data-v-4f7a2d32]:hover,li[data-v-4f7a2d32]:focus,li>a[data-v-4f7a2d32]:active,li>a[data-v-4f7a2d32]:hover,li>a[data-v-4f7a2d32]:focus{z-index:3}a[data-v-4f7a2d32]:active,a[data-v-4f7a2d32]:hover,a[data-v-4f7a2d32]:focus{outline:2px solid black;z-index:3}.hometab a[data-v-4f7a2d32]{width:1ch;min-width:calc(66px - 4ch);background-color:#fff;padding-left:2ch;padding-right:2ch;padding-top:6px;text-align:center}.hometab svg[data-v-4f7a2d32]{height:14pt;width:14pt}.searchtab a[data-v-4f7a2d32]{min-width:calc(66px - 4ch);background-color:#fff;padding-left:2ch;padding-right:2ch;padding-top:11px;font-size:150%;align-items:center}.searchtab svg[data-v-4f7a2d32]{padding-left:.25ch}.searchtab input[data-v-4f7a2d32]{margin-top:-4px;outline:none;border:none;border-bottom:1.5px solid black;background-color:transparent;text-align:right;font-size:11pt}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/desktop",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Desktop-specific components for Stonecrop UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,35 +23,33 @@
|
|
|
23
23
|
},
|
|
24
24
|
"./styles": "./dist/style.css"
|
|
25
25
|
},
|
|
26
|
-
"main": "dist/desktop.js",
|
|
27
|
-
"module": "dist/desktop.js",
|
|
28
|
-
"umd": "dist/desktop.umd.cjs",
|
|
29
|
-
"types": "src/index",
|
|
30
26
|
"files": [
|
|
31
27
|
"dist/*",
|
|
32
28
|
"src/*"
|
|
33
29
|
],
|
|
34
30
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@stonecrop/
|
|
39
|
-
"@stonecrop/
|
|
40
|
-
"@stonecrop/
|
|
41
|
-
"@stonecrop/themes": "0.2.24"
|
|
31
|
+
"vue": "^3.4.31",
|
|
32
|
+
"xstate": "^4.38.3",
|
|
33
|
+
"@stonecrop/aform": "0.2.26",
|
|
34
|
+
"@stonecrop/atable": "0.2.26",
|
|
35
|
+
"@stonecrop/stonecrop": "0.2.26",
|
|
36
|
+
"@stonecrop/themes": "0.2.26"
|
|
42
37
|
},
|
|
43
38
|
"devDependencies": {
|
|
39
|
+
"@microsoft/api-documenter": "^7.25.3",
|
|
44
40
|
"@miragejs/graphql": "^0.1.13",
|
|
45
|
-
"@
|
|
46
|
-
"@typescript-eslint/
|
|
47
|
-
"@
|
|
41
|
+
"@rushstack/heft": "^0.66.18",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
43
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
44
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
48
45
|
"eslint": "^8.40.0",
|
|
49
46
|
"eslint-config-prettier": "^8.8.0",
|
|
50
47
|
"eslint-plugin-vue": "^9.11.1",
|
|
51
48
|
"miragejs": "^0.1.47",
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"vite": "^5.2
|
|
54
|
-
"vue-router": "^4"
|
|
49
|
+
"typescript": "^5.5.2",
|
|
50
|
+
"vite": "^5.3.2",
|
|
51
|
+
"vue-router": "^4.4.0",
|
|
52
|
+
"stonecrop-rig": "0.2.22"
|
|
55
53
|
},
|
|
56
54
|
"publishConfig": {
|
|
57
55
|
"access": "public"
|
|
@@ -60,11 +58,10 @@
|
|
|
60
58
|
"node": ">=20.11.0"
|
|
61
59
|
},
|
|
62
60
|
"scripts": {
|
|
63
|
-
"prepublish": "vite build",
|
|
64
|
-
"build": "vite build",
|
|
61
|
+
"prepublish": "heft build && vite build && rushx docs",
|
|
62
|
+
"build": "heft build && vite build && rushx docs",
|
|
65
63
|
"dev": "vite",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"story:dev": "vite dev stories/ -c stories/vite.config.ts"
|
|
64
|
+
"docs": "api-documenter markdown -i temp -o ../docs/desktop",
|
|
65
|
+
"lint": "eslint . --ext .ts,.vue"
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
6
|
import { ref, watch } from 'vue'
|
|
7
|
-
import { useRoute } from 'vue-router'
|
|
7
|
+
// import { useRoute } from 'vue-router'
|
|
8
8
|
|
|
9
9
|
import { AForm } from '@stonecrop/aform'
|
|
10
|
-
import type { SchemaTypes } from '@stonecrop/aform
|
|
11
|
-
import { DoctypeMeta, useStonecrop } from '@stonecrop/stonecrop'
|
|
10
|
+
import type { SchemaTypes } from '@stonecrop/aform'
|
|
11
|
+
import { /* DoctypeMeta, */ useStonecrop } from '@stonecrop/stonecrop'
|
|
12
12
|
|
|
13
13
|
const { stonecrop, isReady } = useStonecrop()
|
|
14
14
|
const schema = ref<SchemaTypes[]>([])
|
package/src/plugins/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
1
|
+
import { App, type Plugin } from 'vue'
|
|
2
2
|
|
|
3
3
|
import ActionSet from '@/components/ActionSet.vue'
|
|
4
4
|
import CommandPalette from '@/components/CommandPalette.vue'
|
|
@@ -6,7 +6,7 @@ import Doctype from '@/components/Doctype.vue'
|
|
|
6
6
|
import Records from '@/components/Records.vue'
|
|
7
7
|
import SheetNav from '@/components/SheetNav.vue'
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const plugin: Plugin = {
|
|
10
10
|
install: (app: App) => {
|
|
11
11
|
app.component('ActionSet', ActionSet)
|
|
12
12
|
app.component('CommandPalette', CommandPalette)
|
|
@@ -15,3 +15,5 @@ export default {
|
|
|
15
15
|
app.component('SheetNav', SheetNav)
|
|
16
16
|
},
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
export default plugin
|