vira 31.18.0 → 31.18.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.
|
@@ -87,6 +87,7 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
87
87
|
border: 1px solid ${viraFormCssVars['vira-form-border-color'].value};
|
|
88
88
|
border-radius: ${viraFormCssVars['vira-form-wrapper-radius'].value};
|
|
89
89
|
background-color: ${viraFormCssVars['vira-form-background-color'].value};
|
|
90
|
+
box-sizing: border-box;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.json-group-header {
|
|
@@ -112,7 +113,9 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.json-row-nested {
|
|
115
|
-
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
align-items: stretch;
|
|
118
|
+
gap: 4px;
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
.json-row-label {
|
|
@@ -122,10 +125,6 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
122
125
|
word-break: break-word;
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
.json-row-nested .json-row-label {
|
|
126
|
-
padding-top: 10px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
128
|
.json-row-editor {
|
|
130
129
|
flex-grow: 1;
|
|
131
130
|
min-width: 0;
|
|
@@ -145,10 +144,6 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
145
144
|
justify-content: center;
|
|
146
145
|
}
|
|
147
146
|
|
|
148
|
-
.json-row-nested .json-row-delete {
|
|
149
|
-
padding-top: 4px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
147
|
.json-value-with-switcher {
|
|
153
148
|
display: flex;
|
|
154
149
|
align-items: center;
|
|
@@ -200,7 +195,7 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
200
195
|
font-size: ${viraFormCssVars['vira-form-small-text-size'].value};
|
|
201
196
|
}
|
|
202
197
|
`,
|
|
203
|
-
render({ inputs, state, dispatch, events, updateState }) {
|
|
198
|
+
render({ inputs, state, dispatch, events, updateState, host }) {
|
|
204
199
|
const isDisabled = !!inputs.isDisabled;
|
|
205
200
|
const resolveContext = createResolveContext(inputs.schema);
|
|
206
201
|
function jsonPrimitiveToString(entry) {
|
|
@@ -742,8 +737,10 @@ export const ViraJsonForm = defineViraElement()({
|
|
|
742
737
|
})}
|
|
743
738
|
title=${state.showRaw ? 'Show rich editor' : 'Show raw JSON'}
|
|
744
739
|
${listen('click', () => {
|
|
740
|
+
const goingToRaw = !state.showRaw;
|
|
741
|
+
host.style.minWidth = goingToRaw ? `${host.offsetWidth}px` : '';
|
|
745
742
|
updateState({
|
|
746
|
-
showRaw:
|
|
743
|
+
showRaw: goingToRaw,
|
|
747
744
|
rawDraft: undefined,
|
|
748
745
|
rawError: undefined,
|
|
749
746
|
});
|
|
@@ -112,7 +112,7 @@ export const ViraLink = defineViraElement()({
|
|
|
112
112
|
else {
|
|
113
113
|
const linkUrl = inputs.link
|
|
114
114
|
? inputs.link.url
|
|
115
|
-
: inputs.route.router.createRouteUrl(inputs.route.route);
|
|
115
|
+
: inputs.route.router.createRouteUrl(inputs.route.route).url;
|
|
116
116
|
/** Noopener and noreferrer are needed for security reasons, do not remove! */
|
|
117
117
|
return html `
|
|
118
118
|
<a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vira",
|
|
3
|
-
"version": "31.18.
|
|
3
|
+
"version": "31.18.1",
|
|
4
4
|
"description": "A simple and highly versatile design system using element-vir.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design",
|
|
@@ -38,35 +38,35 @@
|
|
|
38
38
|
"test:docs": "virmator docs check"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@augment-vir/assert": "^31.
|
|
42
|
-
"@augment-vir/common": "^31.
|
|
43
|
-
"@augment-vir/web": "^31.
|
|
41
|
+
"@augment-vir/assert": "^31.69.0",
|
|
42
|
+
"@augment-vir/common": "^31.69.0",
|
|
43
|
+
"@augment-vir/web": "^31.69.0",
|
|
44
44
|
"@electrovir/color": "^1.7.9",
|
|
45
|
-
"date-vir": "^8.2
|
|
45
|
+
"date-vir": "^8.3.2",
|
|
46
46
|
"device-navigation": "^4.5.5",
|
|
47
47
|
"json-schema-to-ts": "^3.1.1",
|
|
48
48
|
"lit-css-vars": "^3.6.2",
|
|
49
49
|
"observavir": "^2.3.2",
|
|
50
50
|
"page-active": "^1.0.3",
|
|
51
|
-
"spa-router-vir": "^6.
|
|
52
|
-
"type-fest": "^5.
|
|
51
|
+
"spa-router-vir": "^6.5.0",
|
|
52
|
+
"type-fest": "^5.6.0",
|
|
53
53
|
"typed-event-target": "^4.3.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@augment-vir/test": "^31.
|
|
56
|
+
"@augment-vir/test": "^31.69.0",
|
|
57
57
|
"@web/dev-server-esbuild": "^1.0.5",
|
|
58
58
|
"@web/test-runner": "^0.20.2",
|
|
59
59
|
"@web/test-runner-commands": "^0.9.0",
|
|
60
60
|
"@web/test-runner-playwright": "^0.11.1",
|
|
61
61
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
62
|
-
"esbuild": "^0.
|
|
62
|
+
"esbuild": "^0.28.0",
|
|
63
63
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
64
|
-
"lucide-static": "^1.
|
|
65
|
-
"markdown-code-example-inserter": "^3.0.
|
|
64
|
+
"lucide-static": "^1.14.0",
|
|
65
|
+
"markdown-code-example-inserter": "^3.0.5",
|
|
66
66
|
"theme-vir": "^28.25.0",
|
|
67
|
-
"typedoc": "^0.28.
|
|
67
|
+
"typedoc": "^0.28.19",
|
|
68
68
|
"typescript": "5.9.3",
|
|
69
|
-
"vite": "^8.0.
|
|
69
|
+
"vite": "^8.0.10",
|
|
70
70
|
"vite-tsconfig-paths": "^6.1.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|