@bagelink/vue 1.21.50 → 1.21.53

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.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{StructuredEditor-BszsyuHR.js → StructuredEditor-BUMTloTj.js} +81 -60
  3. package/dist/{StructuredEditor-Br8oBdPt.cjs → StructuredEditor-BXzmkBXf.cjs} +2 -2
  4. package/dist/StructuredEditor.css +1 -1
  5. package/dist/components/Btn.vue.d.ts.map +1 -1
  6. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  7. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  8. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -1
  9. package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
  10. package/dist/components/layout/SidebarNavCaption.vue.d.ts.map +1 -1
  11. package/dist/core.css +3 -3
  12. package/dist/i18n/index.d.ts +24 -0
  13. package/dist/i18n/index.d.ts.map +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist/{src-DaSKch48.js → src-Dtl16wMC.js} +7817 -7788
  17. package/dist/src-fl0F9GQT.cjs +764 -0
  18. package/dist/src.css +1 -1
  19. package/dist/style.css +3 -3
  20. package/dist/types/dataTable.d.ts +2 -2
  21. package/dist/types/dataTable.d.ts.map +1 -1
  22. package/package.json +116 -117
  23. package/src/components/Btn.vue +8 -0
  24. package/src/components/Icon/Icon.vue +1 -1
  25. package/src/components/dataTable/DataTable.vue +13 -4
  26. package/src/components/form/inputs/CodeEditor/Index.vue +47 -0
  27. package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +32 -2
  28. package/src/components/layout/AppSidebar.vue +3 -1
  29. package/src/components/layout/SidebarNavCaption.vue +37 -16
  30. package/src/i18n/locales/en.json +4 -0
  31. package/src/i18n/locales/es.json +4 -0
  32. package/src/i18n/locales/fr.json +4 -0
  33. package/src/i18n/locales/he.json +4 -0
  34. package/src/i18n/locales/it.json +4 -0
  35. package/src/i18n/locales/ru.json +4 -0
  36. package/src/styles/core.css +1 -1
  37. package/src/types/dataTable.ts +2 -2
  38. package/dist/src-Dlh5iQ0R.cjs +0 -764
@@ -18,9 +18,9 @@ export interface DataTableProps<T extends {
18
18
  onLastItemVisible?: () => void;
19
19
  /** Icon for the built-in empty state (default: 'inbox'). Pass 'none' to hide. */
20
20
  emptyIcon?: IconType | 'none';
21
- /** Title for the built-in empty state (default: 'No results'). */
21
+ /** Title for the built-in empty state (default: translated 'No results'). Supports `$t:key`. */
22
22
  emptyTitle?: string;
23
- /** Description shown under the empty-state title. */
23
+ /** Description shown under the empty-state title. Supports `$t:key`. */
24
24
  emptyDescription?: string;
25
25
  }
26
26
  export interface SortingOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"dataTable.d.ts","sourceRoot":"","sources":["../../src/types/dataTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;AAEvD,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;IACxF,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAA;IACpC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CA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ClC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;CAC3B;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC5C,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC,IAAI,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAA;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,eAAe,CAAA;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAA;CACvB"}
package/package.json CHANGED
@@ -1,118 +1,117 @@
1
1
  {
2
- "name": "@bagelink/vue",
3
- "type": "module",
4
- "version": "1.21.50",
5
- "description": "Bagel core sdk packages",
6
- "author": {
7
- "name": "Bagel Studio",
8
- "email": "hi@bagelstudio.co.il"
9
- },
10
- "license": "MIT",
11
- "homepage": "https://github.com/bageldb/bagelink/tree/master/packages/vue#readme",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/bageldb/bagelink.git",
15
- "directory": "packages/vue"
16
- },
17
- "bugs": "https://github.com/bageldb/bagelink/issues",
18
- "keywords": [],
19
- "sideEffects": [
20
- "**/*.css"
21
- ],
22
- "exports": {
23
- "./tsconfig.json": "./tsconfig.json",
24
- "./package.json": "./package.json",
25
- "./src": "./src/index.ts",
26
- "./src/components": "./src/components/index.ts",
27
- "./src/utils": "./src/utils/index.ts",
28
- "./src/types": "./src/types/index.ts",
29
- ".": {
30
- "types": "./dist/index.d.ts",
31
- "require": "./dist/index.cjs",
32
- "import": "./dist/index.mjs"
33
- },
34
- "./style.css": "./dist/style.css",
35
- "./styles/core.css": "./dist/core.css",
36
- "./styles/admin.css": "./dist/style.css",
37
- "./styles/fonts/admin.css": "./dist/admin.css",
38
- "./styles/fonts/ploni.css": "./dist/ploni.css",
39
- "./*": "./*"
40
- },
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
43
- "types": "./dist/index.d.ts",
44
- "typesVersions": {
45
- "*": {
46
- "*": [
47
- "./dist/*",
48
- "./dist/index.d.ts"
49
- ]
50
- }
51
- },
52
- "bin": {
53
- "experimentalGenTypedRoutes": "./bin/experimentalGenTypedRoutes.ts"
54
- },
55
- "files": [
56
- "dist",
57
- "src",
58
- "./vite.config.ts",
59
- "bin/experimentalGenTypedRoutes.ts"
60
- ],
61
- "devDependencies": {
62
- "@bagelink/sdk": "workspace:*",
63
- "@types/leaflet": "^1.9.22",
64
- "@types/signature_pad": "^4.0.0",
65
- "vue": "^3.5.45",
66
- "vue-component-type-helpers": "^2.2.12"
67
- },
68
- "peerDependencies": {
69
- "@bagelink/sdk": "*",
70
- "type-fest": "^4",
71
- "vue": "*",
72
- "vue-component-type-helpers": ">=2.2.10",
73
- "vue-draggable-next": "^2.2.1",
74
- "vue-router": "*"
75
- },
76
- "peerDependenciesMeta": {
77
- "vue-draggable-next": {
78
- "optional": true
79
- }
80
- },
81
- "scripts": {
82
- "prepublishOnly": "pnpm build",
83
- "dev": "tsx watch src/index.ts",
84
- "build": "vite build && pnpm verify:css",
85
- "verify:css": "tsx scripts/verify-css-build.ts",
86
- "gen:cheatsheet": "tsx scripts/gen-cheatsheet.ts",
87
- "start": "tsx src/index.ts"
88
- },
89
- "publishConfig": {
90
- "access": "public"
91
- },
92
- "dependencies": {
93
- "@codemirror/commands": "^6.11.1",
94
- "@codemirror/lang-css": "^6.3.1",
95
- "@codemirror/lang-html": "^6.4.12",
96
- "@codemirror/lang-javascript": "^6.2.5",
97
- "@codemirror/lang-json": "^6.0.2",
98
- "@codemirror/language": "^6.13.1",
99
- "@codemirror/search": "^6.7.2",
100
- "@codemirror/state": "^6.7.6",
101
- "@codemirror/view": "^6.43.15",
102
- "@floating-ui/dom": "^1.8.0",
103
- "@oddbird/popover-polyfill": "^0.6.1",
104
- "@uiw/codemirror-theme-atomone": "^4.25.12",
105
- "@vueuse/core": "^13.9.0",
106
- "@zxcvbn-ts/core": "^3.0.4",
107
- "axios": "^1.20.0",
108
- "floating-vue": "^5.4.0",
109
- "libphonenumber-js": "^1.13.14",
110
- "page-flip": "^2.0.7",
111
- "pdfjs-dist": "^6.3.289",
112
- "prettier": "^3.9.9",
113
- "signature_pad": "^5.1.4",
114
- "swiper": "^12.2.0",
115
- "vue-i18n": "^11.4.12",
116
- "vue-toastification": "^2.0.0-rc.5"
117
- }
118
- }
2
+ "name": "@bagelink/vue",
3
+ "type": "module",
4
+ "version": "1.21.53",
5
+ "description": "Bagel core sdk packages",
6
+ "author": {
7
+ "name": "Bagel Studio",
8
+ "email": "hi@bagelstudio.co.il"
9
+ },
10
+ "license": "MIT",
11
+ "homepage": "https://github.com/bageldb/bagelink/tree/master/packages/vue#readme",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/bageldb/bagelink.git",
15
+ "directory": "packages/vue"
16
+ },
17
+ "bugs": "https://github.com/bageldb/bagelink/issues",
18
+ "keywords": [],
19
+ "sideEffects": [
20
+ "**/*.css"
21
+ ],
22
+ "exports": {
23
+ "./tsconfig.json": "./tsconfig.json",
24
+ "./package.json": "./package.json",
25
+ "./src": "./src/index.ts",
26
+ "./src/components": "./src/components/index.ts",
27
+ "./src/utils": "./src/utils/index.ts",
28
+ "./src/types": "./src/types/index.ts",
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "require": "./dist/index.cjs",
32
+ "import": "./dist/index.mjs"
33
+ },
34
+ "./style.css": "./dist/style.css",
35
+ "./styles/core.css": "./dist/core.css",
36
+ "./styles/admin.css": "./dist/style.css",
37
+ "./styles/fonts/admin.css": "./dist/admin.css",
38
+ "./styles/fonts/ploni.css": "./dist/ploni.css",
39
+ "./*": "./*"
40
+ },
41
+ "main": "./dist/index.cjs",
42
+ "module": "./dist/index.mjs",
43
+ "types": "./dist/index.d.ts",
44
+ "typesVersions": {
45
+ "*": {
46
+ "*": [
47
+ "./dist/*",
48
+ "./dist/index.d.ts"
49
+ ]
50
+ }
51
+ },
52
+ "bin": {
53
+ "experimentalGenTypedRoutes": "./bin/experimentalGenTypedRoutes.ts"
54
+ },
55
+ "files": [
56
+ "dist",
57
+ "src",
58
+ "./vite.config.ts",
59
+ "bin/experimentalGenTypedRoutes.ts"
60
+ ],
61
+ "devDependencies": {
62
+ "@types/leaflet": "^1.9.22",
63
+ "@types/signature_pad": "^4.0.0",
64
+ "vue": "^3.5.45",
65
+ "vue-component-type-helpers": "^2.2.12",
66
+ "@bagelink/sdk": "1.21.53"
67
+ },
68
+ "peerDependencies": {
69
+ "@bagelink/sdk": "*",
70
+ "type-fest": "^4",
71
+ "vue": "*",
72
+ "vue-component-type-helpers": ">=2.2.10",
73
+ "vue-draggable-next": "^2.2.1",
74
+ "vue-router": "*"
75
+ },
76
+ "peerDependenciesMeta": {
77
+ "vue-draggable-next": {
78
+ "optional": true
79
+ }
80
+ },
81
+ "publishConfig": {
82
+ "access": "public"
83
+ },
84
+ "dependencies": {
85
+ "@codemirror/commands": "^6.11.1",
86
+ "@codemirror/lang-css": "^6.3.1",
87
+ "@codemirror/lang-html": "^6.4.12",
88
+ "@codemirror/lang-javascript": "^6.2.5",
89
+ "@codemirror/lang-json": "^6.0.2",
90
+ "@codemirror/language": "^6.13.1",
91
+ "@codemirror/search": "^6.7.2",
92
+ "@codemirror/state": "^6.7.6",
93
+ "@codemirror/view": "^6.43.15",
94
+ "@floating-ui/dom": "^1.8.0",
95
+ "@oddbird/popover-polyfill": "^0.6.1",
96
+ "@uiw/codemirror-theme-atomone": "^4.25.12",
97
+ "@vueuse/core": "^13.9.0",
98
+ "@zxcvbn-ts/core": "^3.0.4",
99
+ "axios": "^1.20.0",
100
+ "floating-vue": "^5.4.0",
101
+ "libphonenumber-js": "^1.13.14",
102
+ "page-flip": "^2.0.7",
103
+ "pdfjs-dist": "^6.3.289",
104
+ "prettier": "^3.9.9",
105
+ "signature_pad": "^5.1.4",
106
+ "swiper": "^12.2.0",
107
+ "vue-i18n": "^11.4.12",
108
+ "vue-toastification": "^2.0.0-rc.5"
109
+ },
110
+ "scripts": {
111
+ "dev": "tsx watch src/index.ts",
112
+ "build": "vite build && pnpm verify:css",
113
+ "verify:css": "tsx scripts/verify-css-build.ts",
114
+ "gen:cheatsheet": "tsx scripts/gen-cheatsheet.ts",
115
+ "start": "tsx src/index.ts"
116
+ }
117
+ }
@@ -212,6 +212,14 @@ const bind = computed(() => {
212
212
  obj.role = props.role
213
213
  obj.type = props.type
214
214
  }
215
+ // Accessibility: an icon-only button/link renders no text, so screen readers
216
+ // get nothing to announce (Lighthouse `button-name` / `link-name`). Derive a
217
+ // label from the icon name unless the consumer already set one.
218
+ const isIconOnly = props.icon && !slots?.default && !props.value
219
+ const labeled = obj['aria-label'] || obj.title
220
+ if (isIconOnly && !labeled && props.icon) {
221
+ obj['aria-label'] = String(props.icon).replaceAll('_', ' ')
222
+ }
215
223
  return obj
216
224
  })
217
225
  function handleKeydown(event: KeyboardEvent) {
@@ -225,7 +225,7 @@ const iconStyle = computed(() => {
225
225
  * (`GRAD`) — so pin those to a single value. Dropping two of the four axis
226
226
  * RANGES shrinks the served font dramatically (the full ~3.8MB font is the
227
227
  * single biggest asset on the page) while keeping weight/fill working. */
228
- @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100..700,0..1,0');
228
+ @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100..700,0..1,0&display=swap');
229
229
 
230
230
  [dir='rtl'] .data-row .bgl_icon-font,
231
231
  [dir='rtl'] .embedded-field .bgl_icon-font,
@@ -7,7 +7,9 @@ import {
7
7
  EmptyState,
8
8
  Icon,
9
9
  keyToLabel,
10
- Loading
10
+ Loading,
11
+ resolveI18n,
12
+ useI18n,
11
13
  } from '../../index'
12
14
  import { useSlots, watch, computed, toValue, ref, nextTick, onMounted } from 'vue'
13
15
  import { useSchemaField } from '../../composables/useSchemaField'
@@ -29,6 +31,7 @@ const emit = defineEmits<{
29
31
  }>()
30
32
 
31
33
  const slots: SetupContext['slots'] = useSlots()
34
+ const { $t } = useI18n()
32
35
 
33
36
  const loading = defineModel('loading', { default: false })
34
37
  const itemHeight = defineModel('itemHeight', { default: 50 })
@@ -184,6 +187,12 @@ const headerFontSize = computed(() => {
184
187
  if (!resolvedFontSize.value) return '0.8rem'
185
188
  return `calc(${resolvedFontSize.value} * 0.9)`
186
189
  })
190
+
191
+ const selectAllLabel = computed(() => $t('dataTable.selectAll'))
192
+ const emptyStateTitle = computed(() =>
193
+ resolveI18n(props.emptyTitle) ?? $t('dataTable.noResults'),
194
+ )
195
+ const emptyStateDescription = computed(() => resolveI18n(props.emptyDescription))
187
196
  </script>
188
197
 
189
198
  <template>
@@ -194,7 +203,7 @@ const headerFontSize = computed(() => {
194
203
  <thead class="row first-row">
195
204
  <th v-if="isSortable" class="col-drag" />
196
205
  <th v-if="isSelectable" class="col-check">
197
- <input ref="allSelectorEl" type="checkbox" aria-label="Select all" title="Select all" @click.stop @change="(e) => toggleSelectAll(e)">
206
+ <input ref="allSelectorEl" type="checkbox" :aria-label="selectAllLabel" :title="selectAllLabel" @click.stop @change="(e) => toggleSelectAll(e)">
198
207
  </th>
199
208
  <th
200
209
  v-for="field in computedSchema" :key="field.id" class="col"
@@ -244,8 +253,8 @@ const headerFontSize = computed(() => {
244
253
  <slot v-if="isEmpty" name="empty">
245
254
  <EmptyState
246
255
  :icon="props.emptyIcon ?? 'inbox'"
247
- :title="props.emptyTitle ?? 'No results'"
248
- :description="props.emptyDescription"
256
+ :title="emptyStateTitle"
257
+ :description="emptyStateDescription"
249
258
  class="h-60p"
250
259
  />
251
260
  </slot>
@@ -158,6 +158,8 @@ watch(() => props.modelValue, value => {
158
158
  .code-editor-container.single-line {
159
159
  height: auto;
160
160
  margin-bottom: 0;
161
+ /* Shrink global scrollbar.css rules that read this token. */
162
+ --bgl-scrollbar-size: 3px;
161
163
  }
162
164
  .single-line > :deep(.structured-editor) {
163
165
  height: var(--bgl-input-height);
@@ -166,11 +168,22 @@ watch(() => props.modelValue, value => {
166
168
  border-radius: var(--bgl-input-border-radius);
167
169
  font-size: var(--bgl-input-font-size);
168
170
  }
171
+ .single-line :deep(.structured-editor-host),
172
+ .single-line :deep(.cm-scroller) {
173
+ overflow-x: auto;
174
+ overflow-y: hidden;
175
+ /* Keep scrollbar-* at auto so ::-webkit-scrollbar height/width can apply in Chromium. */
176
+ scrollbar-width: auto;
177
+ scrollbar-color: auto;
178
+ }
169
179
  .single-line :deep(.cm-content) {
170
180
  padding-block: 0;
171
181
  padding-inline: 0.7rem;
172
182
  line-height: var(--bgl-input-height);
173
183
  }
184
+ .single-line :deep(.cm-line) {
185
+ padding-block: 0;
186
+ }
174
187
  .code-editor-container.terminal {
175
188
  padding: 0;
176
189
  margin-bottom: 0;
@@ -196,3 +209,37 @@ watch(() => props.modelValue, value => {
196
209
  padding: 0.75rem;
197
210
  }
198
211
  </style>
212
+
213
+ <!-- Unscoped: Vue scoped :deep() does not reliably style ::-webkit-scrollbar.
214
+ Do not set scrollbar-width/color here — non-auto values disable these rules in Chromium. -->
215
+ <style>
216
+ .code-editor-container.single-line .cm-scroller,
217
+ .code-editor-container.single-line .structured-editor-host {
218
+ scrollbar-width: auto;
219
+ scrollbar-color: auto;
220
+ }
221
+ .code-editor-container.single-line .cm-scroller::-webkit-scrollbar,
222
+ .code-editor-container.single-line .structured-editor-host::-webkit-scrollbar {
223
+ height: 3px !important;
224
+ width: 3px !important;
225
+ }
226
+ .code-editor-container.single-line .cm-scroller::-webkit-scrollbar-track,
227
+ .code-editor-container.single-line .structured-editor-host::-webkit-scrollbar-track {
228
+ background: transparent !important;
229
+ margin: 0 !important;
230
+ }
231
+ .code-editor-container.single-line .cm-scroller::-webkit-scrollbar-thumb,
232
+ .code-editor-container.single-line .structured-editor-host::-webkit-scrollbar-thumb {
233
+ background-color: var(--bgl-scrollbar-thumb, rgba(0, 0, 0, 0.25)) !important;
234
+ border-radius: 1rem !important;
235
+ border: 0 !important;
236
+ background-clip: border-box !important;
237
+ }
238
+ @supports (-moz-appearance: none) {
239
+ .code-editor-container.single-line .cm-scroller,
240
+ .code-editor-container.single-line .structured-editor-host {
241
+ scrollbar-width: thin;
242
+ scrollbar-color: var(--bgl-scrollbar-thumb, rgba(0, 0, 0, 0.25)) transparent;
243
+ }
244
+ }
245
+ </style>
@@ -128,11 +128,32 @@ function extensions(): Extension[] {
128
128
  ...(props.terminal ? { backgroundColor: 'transparent' } : {}),
129
129
  },
130
130
  '.cm-scroller': {
131
- overflow: 'auto',
131
+ overflowX: 'auto',
132
+ overflowY: props.singleLine ? 'hidden' : 'auto',
132
133
  fontFamily: 'inherit',
133
- lineHeight: '1.5',
134
+ lineHeight: props.singleLine ? 'inherit' : '1.5',
134
135
  overscrollBehavior: 'contain',
136
+ // Non-auto scrollbar-* disables ::-webkit-scrollbar sizing in Chromium.
137
+ ...(props.singleLine ? { scrollbarWidth: 'auto', scrollbarColor: 'auto' } : {}),
135
138
  },
139
+ ...(props.singleLine
140
+ ? {
141
+ '& .cm-scroller::-webkit-scrollbar': {
142
+ height: '3px !important',
143
+ width: '3px !important',
144
+ },
145
+ '& .cm-scroller::-webkit-scrollbar-track': {
146
+ background: 'transparent !important',
147
+ margin: '0 !important',
148
+ },
149
+ '& .cm-scroller::-webkit-scrollbar-thumb': {
150
+ backgroundColor: 'var(--bgl-scrollbar-thumb, rgba(0, 0, 0, 0.25)) !important',
151
+ borderRadius: '1rem !important',
152
+ border: '0 !important',
153
+ backgroundClip: 'border-box !important',
154
+ },
155
+ }
156
+ : {}),
136
157
  '.cm-content': {
137
158
  padding: contentPad,
138
159
  fontVariantLigatures: 'none',
@@ -372,6 +393,15 @@ onBeforeUnmount(() => {
372
393
  .structured-editor.single-line {
373
394
  border-radius: var(--bgl-input-border-radius);
374
395
  }
396
+ /* Single-line inputs: allow sideways scroll only — never a vertical scrollbar. */
397
+ .structured-editor.single-line .structured-editor-host {
398
+ overflow-x: auto;
399
+ overflow-y: hidden;
400
+ }
401
+ .structured-editor.single-line :deep(.cm-scroller) {
402
+ overflow-x: auto;
403
+ overflow-y: hidden;
404
+ }
375
405
  .code-terminal-bar {
376
406
  background: rgba(255, 255, 255, 0.04);
377
407
  }
@@ -90,9 +90,11 @@ watch(
90
90
  () => {
91
91
  if (!isMobile.value) {
92
92
  isTransitioning.value = true
93
+ // Keep visual-open through caption phases on open/close
94
+ // (close ~680ms; open width-wait + height + fade ~940ms).
93
95
  setTimeout(() => {
94
96
  isTransitioning.value = false
95
- }, 300)
97
+ }, 1000)
96
98
  }
97
99
  }
98
100
  )
@@ -1,43 +1,64 @@
1
1
  <script lang="ts" setup>
2
2
  /**
3
- * Small muted section caption for a grouped sidebar nav. Rendered inside
4
- * AppSidebar's `nav` slot, between groups of SidebarNavItem. When the sidebar
5
- * collapses, the row animates its height shut so the links below slide up
6
- * instead of jumping.
3
+ * Group caption for AppSidebar's `nav` slot.
4
+ * Close: fade label → shrink height → fade rule in.
5
+ * Open: hide rule → grow height → fade label in.
6
+ * Rule is absolute + opacity-only so it never slides mid-transition.
7
7
  */
8
8
  </script>
9
9
 
10
10
  <template>
11
11
  <div class="sidebar-nav-caption">
12
- <span class="sidebar-nav-caption-label nav-text"><slot /></span>
12
+ <span class="sidebar-nav-caption-label"><slot /></span>
13
+ <span class="sidebar-nav-caption-rule" aria-hidden="true" />
13
14
  </div>
14
15
  </template>
15
16
 
16
17
  <style>
17
18
  .sidebar-nav-caption {
18
- display: grid;
19
- align-self: stretch;
19
+ position: relative;
20
20
  width: 100%;
21
- grid-template-rows: 1fr;
22
- transition: grid-template-rows 0.45s ease;
21
+ overflow: hidden;
22
+ max-height: 2.5rem;
23
+ transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1) 0.36s;
23
24
  }
24
25
 
25
26
  .sidebar-nav-caption-label {
26
- box-sizing: border-box;
27
- width: 100%;
28
- min-height: 0;
29
- text-align: start;
30
- overflow: hidden;
27
+ display: block;
31
28
  font-size: 0.6875rem;
32
29
  line-height: 1;
33
30
  letter-spacing: 0.04em;
34
31
  text-transform: uppercase;
35
32
  font-weight: 500;
36
- opacity: 0.5;
33
+ opacity: 0.4;
37
34
  padding: 0.75rem 0.75rem 0.25rem;
35
+ white-space: nowrap;
36
+ transition: opacity 0.22s ease 0.75s;
37
+ }
38
+
39
+ .sidebar-nav-caption-rule {
40
+ position: absolute;
41
+ inset-inline-start: 50%;
42
+ top: 50%;
43
+ width: 0.875rem;
44
+ height: 1px;
45
+ background: currentColor;
46
+ opacity: 0;
47
+ transform: translate(-50%, -50%);
48
+ transition: opacity 0.1s ease;
38
49
  }
39
50
 
40
51
  .app-sidebar.sidebar-collapsed .sidebar-nav-caption {
41
- grid-template-rows: 0fr;
52
+ max-height: 0.9rem;
53
+ }
54
+
55
+ .app-sidebar.sidebar-collapsed .sidebar-nav-caption-label {
56
+ opacity: 0;
57
+ transition: opacity 0.28s ease;
58
+ }
59
+
60
+ .app-sidebar.sidebar-collapsed .sidebar-nav-caption-rule {
61
+ opacity: 0.22;
62
+ transition: opacity 0.2s ease 0.75s;
42
63
  }
43
64
  </style>
@@ -178,6 +178,10 @@
178
178
  "date": {
179
179
  "invalidFormat": "Invalid date format"
180
180
  },
181
+ "dataTable": {
182
+ "selectAll": "Select all",
183
+ "noResults": "No results"
184
+ },
181
185
  "spreadsheet": {
182
186
  "wrapText": "Wrap Text",
183
187
  "selectAll": "Select All",
@@ -177,6 +177,10 @@
177
177
  "date": {
178
178
  "invalidFormat": "Formato de fecha inválido"
179
179
  },
180
+ "dataTable": {
181
+ "selectAll": "Seleccionar todo",
182
+ "noResults": "Sin resultados"
183
+ },
180
184
  "spreadsheet": {
181
185
  "wrapText": "Ajuste de texto",
182
186
  "selectAll": "Seleccionar todo",
@@ -177,6 +177,10 @@
177
177
  "date": {
178
178
  "invalidFormat": "Format de date invalide"
179
179
  },
180
+ "dataTable": {
181
+ "selectAll": "Tout sélectionner",
182
+ "noResults": "Aucun résultat"
183
+ },
180
184
  "spreadsheet": {
181
185
  "wrapText": "Renvoyer à la ligne",
182
186
  "selectAll": "Tout sélectionner",
@@ -199,6 +199,10 @@
199
199
  "date": {
200
200
  "invalidFormat": "פורמט תאריך לא חוקי"
201
201
  },
202
+ "dataTable": {
203
+ "selectAll": "בחר הכל",
204
+ "noResults": "אין תוצאות"
205
+ },
202
206
  "spreadsheet": {
203
207
  "wrapText": "גלישת טקסט",
204
208
  "selectAll": "בחר הכל",
@@ -177,6 +177,10 @@
177
177
  "date": {
178
178
  "invalidFormat": "Formato data non valido"
179
179
  },
180
+ "dataTable": {
181
+ "selectAll": "Seleziona tutto",
182
+ "noResults": "Nessun risultato"
183
+ },
180
184
  "spreadsheet": {
181
185
  "wrapText": "A capo automatico",
182
186
  "selectAll": "Seleziona tutto",
@@ -177,6 +177,10 @@
177
177
  "date": {
178
178
  "invalidFormat": "Неверный формат даты"
179
179
  },
180
+ "dataTable": {
181
+ "selectAll": "Выбрать всё",
182
+ "noResults": "Нет результатов"
183
+ },
180
184
  "spreadsheet": {
181
185
  "wrapText": "Перенос текста",
182
186
  "selectAll": "Выбрать всё",
@@ -1,6 +1,6 @@
1
1
  /* Font-neutral Bagel UI stylesheet for public/customer sites.
2
2
  Apps choose their own typography and may import optional font packs. */
3
- @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100..700,0..1,0');
3
+ @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100..700,0..1,0&display=swap');
4
4
  @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/brands.min.css');
5
5
 
6
6
  @import "theme.css";