@brftech/filex-core 0.3.0 → 0.4.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.
Files changed (36) hide show
  1. package/dist/{ArchiveViewer-CYrKPEbE.js → ArchiveViewer-Dgvl43gn.js} +2 -2
  2. package/dist/{ArchiveViewer-CYrKPEbE.js.map → ArchiveViewer-Dgvl43gn.js.map} +1 -1
  3. package/dist/{CsvViewer-C3ZU4Uua.js → CsvViewer-gWO5pc8F.js} +2 -2
  4. package/dist/{CsvViewer-C3ZU4Uua.js.map → CsvViewer-gWO5pc8F.js.map} +1 -1
  5. package/dist/{DrawioViewer-15ZL4ken.js → DrawioViewer-DUAlRIAb.js} +2 -2
  6. package/dist/{DrawioViewer-15ZL4ken.js.map → DrawioViewer-DUAlRIAb.js.map} +1 -1
  7. package/dist/{EpubViewer-CrXcDgmo.js → EpubViewer-DIXzuQWK.js} +2 -2
  8. package/dist/{EpubViewer-CrXcDgmo.js.map → EpubViewer-DIXzuQWK.js.map} +1 -1
  9. package/dist/{IpynbViewer-BAb9rV2Q.js → IpynbViewer-CJ-6pU_Z.js} +2 -2
  10. package/dist/{IpynbViewer-BAb9rV2Q.js.map → IpynbViewer-CJ-6pU_Z.js.map} +1 -1
  11. package/dist/{MermaidViewer-BN8GN4FY.js → MermaidViewer-CyQQDyRb.js} +2 -2
  12. package/dist/{MermaidViewer-BN8GN4FY.js.map → MermaidViewer-CyQQDyRb.js.map} +1 -1
  13. package/dist/{PsdViewer-o-kWQExw.js → PsdViewer-ChfaXVgN.js} +2 -2
  14. package/dist/{PsdViewer-o-kWQExw.js.map → PsdViewer-ChfaXVgN.js.map} +1 -1
  15. package/dist/{TiffViewer-AjMVBzxp.js → TiffViewer-CsfD-NG6.js} +2 -2
  16. package/dist/{TiffViewer-AjMVBzxp.js.map → TiffViewer-CsfD-NG6.js.map} +1 -1
  17. package/dist/{Viewer3D-BR3WDbxQ.js → Viewer3D-BQ2XYmkN.js} +2 -2
  18. package/dist/{Viewer3D-BR3WDbxQ.js.map → Viewer3D-BQ2XYmkN.js.map} +1 -1
  19. package/dist/filex-core.js +1 -1
  20. package/dist/filex-core.umd.cjs +39 -39
  21. package/dist/filex-core.umd.cjs.map +1 -1
  22. package/dist/index-PnhGunSA.js +7972 -0
  23. package/dist/index-PnhGunSA.js.map +1 -0
  24. package/dist/index.d.ts +20 -0
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
  27. package/src/FileExplorer.vue +84 -0
  28. package/src/components/InspectorPanel.vue +455 -0
  29. package/src/components/Toolbar.vue +34 -0
  30. package/src/composables/useFileApi.ts +59 -0
  31. package/src/composables/useKeyboardShortcuts.ts +11 -0
  32. package/src/locales/en.ts +39 -0
  33. package/src/locales/tr.ts +39 -0
  34. package/src/styles/base.css +321 -0
  35. package/dist/index-BG5upYlH.js +0 -7392
  36. package/dist/index-BG5upYlH.js.map +0 -1
package/src/locales/tr.ts CHANGED
@@ -201,4 +201,43 @@ export const tr: Record<string, string> = {
201
201
  'toolbar.search.close': 'Aramayı kapat',
202
202
  'sheet.menu': 'İşlemler',
203
203
  'sheet.close': 'Kapat',
204
+
205
+ /* === koru:k1 === */
206
+ 'toolbar.inspector': 'Ayrıntılar',
207
+ 'ctx.details': 'Ayrıntılar',
208
+ 'shortcuts.inspector': 'Ayrıntılar panelini aç/kapat',
209
+ 'inspector.title': 'Ayrıntılar',
210
+ 'inspector.close': 'Kapat',
211
+ 'inspector.section.general': 'Genel',
212
+ 'inspector.section.versions': 'Sürümler',
213
+ 'inspector.section.permissions': 'İzinler',
214
+ 'inspector.section.shares': 'Paylaşımlar',
215
+ 'inspector.path': 'Yol',
216
+ 'inspector.size': 'Boyut',
217
+ 'inspector.modified': 'Değiştirilme',
218
+ 'inspector.mime': 'MIME türü',
219
+ 'inspector.etag': 'ETag',
220
+ 'inspector.copy': 'Kopyala',
221
+ 'inspector.copied': 'Kopyalandı',
222
+ 'inspector.error': 'Yüklenemedi',
223
+ 'inspector.items_summary': '{n} öğe, toplam {size}',
224
+ 'inspector.folder_items': '{n} öğe',
225
+ 'inspector.versions.empty': 'Sürüm geçmişi yok',
226
+ 'inspector.versions.v': 'Sürüm {n}',
227
+ 'inspector.versions.restore': 'Geri yükle',
228
+ 'inspector.versions.restore_confirm': 'Bu sürüm geri yüklensin mi?',
229
+ 'inspector.versions.snapshot_current': 'Önce şimdiki halin sürümünü al',
230
+ 'inspector.versions.confirm': 'Onayla',
231
+ 'inspector.versions.cancel': 'Vazgeç',
232
+ 'inspector.versions.take_snapshot': 'Şimdiki halin sürümünü al',
233
+ 'inspector.versions.restored': 'Sürüm geri yüklendi',
234
+ 'inspector.versions.snapshotted': 'Sürüm alındı',
235
+ 'inspector.versions.unsupported': 'Sunucu bu işlemi desteklemiyor',
236
+ 'inspector.perm.none': 'Erişim yok',
237
+ 'inspector.perm.viewer': 'Görüntüleyen',
238
+ 'inspector.perm.editor': 'Düzenleyen',
239
+ 'inspector.perm.owner': 'Sahip',
240
+ 'inspector.perm.manage': 'İzinleri yönet',
241
+ 'inspector.shares.empty': 'Paylaşım linki yok',
242
+ 'inspector.shares.copy': 'Linki kopyala',
204
243
  };
@@ -2068,3 +2068,324 @@ filex-explorer {
2068
2068
  transition: none;
2069
2069
  }
2070
2070
  }
2071
+
2072
+ /* === koru:k1 — inspector (details) panel === */
2073
+
2074
+ /* fe__main — horizontal flex wrapper: listing body + inspector side panel.
2075
+ Takes over fe__body's old role as .fe's flexible middle region; fe__body
2076
+ keeps its own rules (flex:1 1 auto now distributes WIDTH inside the row). */
2077
+ .fe__main {
2078
+ display: flex;
2079
+ flex-direction: row;
2080
+ flex: 1 1 auto;
2081
+ min-height: 0;
2082
+ }
2083
+ .fe__main > .fe__body {
2084
+ min-width: 0;
2085
+ height: 100%;
2086
+ }
2087
+
2088
+ .fe-inspector {
2089
+ flex: 0 0 300px;
2090
+ width: 300px;
2091
+ min-height: 0;
2092
+ display: flex;
2093
+ flex-direction: column;
2094
+ border-left: 1px solid var(--fe-border);
2095
+ background: var(--fe-bg);
2096
+ color: var(--fe-text);
2097
+ }
2098
+ /* Narrow embeds: full-size overlay on top of the explorer (below modals and
2099
+ context menus, above the listing + FAB). */
2100
+ .fe-inspector--overlay {
2101
+ position: absolute;
2102
+ inset: 0;
2103
+ z-index: 60;
2104
+ width: auto;
2105
+ border-left: none;
2106
+ }
2107
+
2108
+ .fe-inspector__head {
2109
+ display: flex;
2110
+ align-items: center;
2111
+ justify-content: space-between;
2112
+ gap: 8px;
2113
+ padding: 10px 12px;
2114
+ border-bottom: 1px solid var(--fe-border);
2115
+ flex: 0 0 auto;
2116
+ }
2117
+ .fe-inspector__title {
2118
+ margin: 0;
2119
+ font-size: 13px;
2120
+ font-weight: 600;
2121
+ letter-spacing: 0.02em;
2122
+ }
2123
+ .fe-inspector__close {
2124
+ border: none;
2125
+ background: none;
2126
+ color: var(--fe-text-muted);
2127
+ font-size: 18px;
2128
+ line-height: 1;
2129
+ cursor: pointer;
2130
+ padding: 2px 6px;
2131
+ border-radius: 6px;
2132
+ }
2133
+ .fe-inspector__close:hover {
2134
+ background: var(--fe-bg-hover);
2135
+ color: var(--fe-text);
2136
+ }
2137
+
2138
+ .fe-inspector__scroll {
2139
+ flex: 1 1 auto;
2140
+ min-height: 0;
2141
+ overflow-y: auto;
2142
+ padding: 12px;
2143
+ }
2144
+
2145
+ .fe-inspector__section {
2146
+ margin-bottom: 18px;
2147
+ }
2148
+ .fe-inspector__section:last-child {
2149
+ margin-bottom: 0;
2150
+ }
2151
+ .fe-inspector__heading {
2152
+ margin: 0 0 8px;
2153
+ font-size: 11px;
2154
+ font-weight: 600;
2155
+ text-transform: uppercase;
2156
+ letter-spacing: 0.06em;
2157
+ color: var(--fe-text-muted);
2158
+ }
2159
+
2160
+ .fe-inspector__hero {
2161
+ display: flex;
2162
+ flex-direction: column;
2163
+ align-items: center;
2164
+ gap: 6px;
2165
+ text-align: center;
2166
+ padding: 6px 0 4px;
2167
+ }
2168
+ .fe-inspector__bigicon {
2169
+ display: inline-flex;
2170
+ }
2171
+ .fe-inspector__bigicon .fe-ficon {
2172
+ width: 56px;
2173
+ height: 56px;
2174
+ }
2175
+ .fe-inspector__thumb {
2176
+ width: 96px;
2177
+ height: 96px;
2178
+ object-fit: cover;
2179
+ border-radius: var(--fe-radius);
2180
+ border: 1px solid var(--fe-border);
2181
+ }
2182
+ .fe-inspector__name {
2183
+ margin: 0;
2184
+ font-size: 13px;
2185
+ font-weight: 600;
2186
+ word-break: break-word;
2187
+ max-width: 100%;
2188
+ }
2189
+ .fe-inspector__sub {
2190
+ margin: 0;
2191
+ font-size: 12px;
2192
+ color: var(--fe-text-muted);
2193
+ }
2194
+
2195
+ .fe-inspector__meta {
2196
+ margin: 8px 0 0;
2197
+ display: flex;
2198
+ flex-direction: column;
2199
+ gap: 6px;
2200
+ }
2201
+ .fe-inspector__row {
2202
+ display: flex;
2203
+ align-items: baseline;
2204
+ gap: 8px;
2205
+ font-size: 12px;
2206
+ }
2207
+ .fe-inspector__row dt {
2208
+ flex: 0 0 84px;
2209
+ color: var(--fe-text-muted);
2210
+ }
2211
+ .fe-inspector__row dd {
2212
+ margin: 0;
2213
+ min-width: 0;
2214
+ flex: 1 1 auto;
2215
+ word-break: break-word;
2216
+ }
2217
+ .fe-inspector__pathcell {
2218
+ display: flex;
2219
+ align-items: center;
2220
+ gap: 4px;
2221
+ }
2222
+ .fe-inspector__path {
2223
+ min-width: 0;
2224
+ overflow: hidden;
2225
+ text-overflow: ellipsis;
2226
+ white-space: nowrap;
2227
+ direction: rtl; /* keep the tail (basename) visible when truncated */
2228
+ text-align: left;
2229
+ }
2230
+ .fe-inspector__mime {
2231
+ font-family: var(--fe-font-mono);
2232
+ font-size: 11px;
2233
+ }
2234
+ .fe-inspector__copy {
2235
+ flex: 0 0 auto;
2236
+ border: none;
2237
+ background: none;
2238
+ color: var(--fe-text-muted);
2239
+ cursor: pointer;
2240
+ font-size: 13px;
2241
+ line-height: 1;
2242
+ padding: 2px 4px;
2243
+ border-radius: 4px;
2244
+ }
2245
+ .fe-inspector__copy:hover {
2246
+ background: var(--fe-bg-hover);
2247
+ color: var(--fe-text);
2248
+ }
2249
+
2250
+ .fe-inspector__empty {
2251
+ margin: 0;
2252
+ font-size: 12px;
2253
+ color: var(--fe-text-muted);
2254
+ }
2255
+
2256
+ /* Small buttons used inside the panel rows. */
2257
+ .fe-btn--sm {
2258
+ padding: 3px 8px;
2259
+ font-size: 12px;
2260
+ }
2261
+
2262
+ .fe-inspector__versions {
2263
+ list-style: none;
2264
+ margin: 0;
2265
+ padding: 0;
2266
+ display: flex;
2267
+ flex-direction: column;
2268
+ gap: 8px;
2269
+ }
2270
+ .fe-inspector__version {
2271
+ display: flex;
2272
+ flex-direction: column;
2273
+ gap: 6px;
2274
+ padding: 8px;
2275
+ border: 1px solid var(--fe-border);
2276
+ border-radius: var(--fe-radius);
2277
+ }
2278
+ .fe-inspector__version-main {
2279
+ display: flex;
2280
+ flex-direction: column;
2281
+ gap: 2px;
2282
+ }
2283
+ .fe-inspector__version-n {
2284
+ font-size: 12px;
2285
+ font-weight: 600;
2286
+ }
2287
+ .fe-inspector__version-meta {
2288
+ font-size: 11px;
2289
+ color: var(--fe-text-muted);
2290
+ }
2291
+ .fe-inspector__confirm {
2292
+ display: flex;
2293
+ flex-direction: column;
2294
+ gap: 6px;
2295
+ }
2296
+ .fe-inspector__confirm-q {
2297
+ margin: 0;
2298
+ font-size: 12px;
2299
+ }
2300
+ .fe-inspector__check {
2301
+ display: flex;
2302
+ align-items: center;
2303
+ gap: 6px;
2304
+ font-size: 11px;
2305
+ color: var(--fe-text-muted);
2306
+ cursor: pointer;
2307
+ }
2308
+ .fe-inspector__confirm-actions {
2309
+ display: flex;
2310
+ gap: 6px;
2311
+ }
2312
+ .fe-inspector__snapshot {
2313
+ margin-top: 8px;
2314
+ width: 100%;
2315
+ }
2316
+
2317
+ .fe-inspector__permrow {
2318
+ display: flex;
2319
+ align-items: center;
2320
+ gap: 8px;
2321
+ flex-wrap: wrap;
2322
+ }
2323
+ .fe-inspector__badge {
2324
+ display: inline-flex;
2325
+ align-items: center;
2326
+ padding: 2px 8px;
2327
+ border-radius: 99px;
2328
+ font-size: 11px;
2329
+ font-weight: 600;
2330
+ border: 1px solid var(--fe-border-strong);
2331
+ color: var(--fe-text);
2332
+ background: var(--fe-bg-hover);
2333
+ }
2334
+ .fe-inspector__badge--owner {
2335
+ border-color: var(--fe-primary);
2336
+ color: var(--fe-primary);
2337
+ background: transparent;
2338
+ }
2339
+ .fe-inspector__badge--none {
2340
+ color: var(--fe-text-muted);
2341
+ }
2342
+ .fe-inspector__badge--pin {
2343
+ border-color: var(--fe-warning, #f59e0b);
2344
+ color: var(--fe-warning, #f59e0b);
2345
+ background: transparent;
2346
+ }
2347
+
2348
+ .fe-inspector__shares {
2349
+ list-style: none;
2350
+ margin: 0;
2351
+ padding: 0;
2352
+ display: flex;
2353
+ flex-direction: column;
2354
+ gap: 6px;
2355
+ }
2356
+ .fe-inspector__share {
2357
+ display: flex;
2358
+ align-items: center;
2359
+ gap: 6px;
2360
+ font-size: 12px;
2361
+ min-width: 0;
2362
+ }
2363
+ .fe-inspector__share-url {
2364
+ flex: 1 1 auto;
2365
+ min-width: 0;
2366
+ overflow: hidden;
2367
+ text-overflow: ellipsis;
2368
+ white-space: nowrap;
2369
+ }
2370
+ .fe-inspector__share-exp {
2371
+ flex: 0 0 auto;
2372
+ font-size: 11px;
2373
+ color: var(--fe-text-muted);
2374
+ }
2375
+
2376
+ /* Slide-in is subtle and honors prefers-reduced-motion. */
2377
+ @media (prefers-reduced-motion: no-preference) {
2378
+ .fe-inspector {
2379
+ animation: fe-inspector-in 0.16s ease;
2380
+ }
2381
+ @keyframes fe-inspector-in {
2382
+ from {
2383
+ opacity: 0;
2384
+ transform: translateX(8px);
2385
+ }
2386
+ to {
2387
+ opacity: 1;
2388
+ transform: none;
2389
+ }
2390
+ }
2391
+ }