@brftech/filex-core 0.2.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 (37) hide show
  1. package/dist/{ArchiveViewer-DCZ1FZYV.js → ArchiveViewer-Dgvl43gn.js} +2 -2
  2. package/dist/{ArchiveViewer-DCZ1FZYV.js.map → ArchiveViewer-Dgvl43gn.js.map} +1 -1
  3. package/dist/{CsvViewer-DMvnp82x.js → CsvViewer-gWO5pc8F.js} +2 -2
  4. package/dist/{CsvViewer-DMvnp82x.js.map → CsvViewer-gWO5pc8F.js.map} +1 -1
  5. package/dist/{DrawioViewer-B5Io0yTO.js → DrawioViewer-DUAlRIAb.js} +2 -2
  6. package/dist/{DrawioViewer-B5Io0yTO.js.map → DrawioViewer-DUAlRIAb.js.map} +1 -1
  7. package/dist/{EpubViewer-z6RZd3K8.js → EpubViewer-DIXzuQWK.js} +2 -2
  8. package/dist/{EpubViewer-z6RZd3K8.js.map → EpubViewer-DIXzuQWK.js.map} +1 -1
  9. package/dist/{IpynbViewer-DfL4EauH.js → IpynbViewer-CJ-6pU_Z.js} +2 -2
  10. package/dist/{IpynbViewer-DfL4EauH.js.map → IpynbViewer-CJ-6pU_Z.js.map} +1 -1
  11. package/dist/{MermaidViewer-QNl_o7V-.js → MermaidViewer-CyQQDyRb.js} +2 -2
  12. package/dist/{MermaidViewer-QNl_o7V-.js.map → MermaidViewer-CyQQDyRb.js.map} +1 -1
  13. package/dist/{PsdViewer-Btmpr0Fz.js → PsdViewer-ChfaXVgN.js} +2 -2
  14. package/dist/{PsdViewer-Btmpr0Fz.js.map → PsdViewer-ChfaXVgN.js.map} +1 -1
  15. package/dist/{TiffViewer-CMLpwds5.js → TiffViewer-CsfD-NG6.js} +2 -2
  16. package/dist/{TiffViewer-CMLpwds5.js.map → TiffViewer-CsfD-NG6.js.map} +1 -1
  17. package/dist/{Viewer3D-gf3cb2gv.js → Viewer3D-BQ2XYmkN.js} +2 -2
  18. package/dist/{Viewer3D-gf3cb2gv.js.map → Viewer3D-BQ2XYmkN.js.map} +1 -1
  19. package/dist/filex-core.js +1 -1
  20. package/dist/filex-core.umd.cjs +42 -42
  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 +69 -2
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
  27. package/src/FileExplorer.vue +146 -0
  28. package/src/components/ContextMenu.vue +101 -3
  29. package/src/components/InspectorPanel.vue +455 -0
  30. package/src/components/Toolbar.vue +250 -5
  31. package/src/composables/useFileApi.ts +59 -0
  32. package/src/composables/useKeyboardShortcuts.ts +11 -0
  33. package/src/locales/en.ts +45 -0
  34. package/src/locales/tr.ts +45 -0
  35. package/src/styles/base.css +458 -0
  36. package/dist/index-D49iw00E.js +0 -7119
  37. package/dist/index-D49iw00E.js.map +0 -1
@@ -1931,3 +1931,461 @@ filex-explorer {
1931
1931
  .fe-list__snippet {
1932
1932
  max-width: 100%;
1933
1933
  }
1934
+
1935
+ /* === bag:b4 — narrow/embed mini mode === */
1936
+ /* Everything below is scoped to `.fe--narrow`, `.fe-toolbar--narrow`,
1937
+ * `.fe-fab` or `.fe-sheet` — none of which exist in the wide desktop
1938
+ * layout, so the classic look is untouched when the mode is off. */
1939
+
1940
+ /* Narrow toolbar: a single non-wrapping row of icon buttons. */
1941
+ .fe-toolbar--narrow {
1942
+ flex-wrap: nowrap;
1943
+ gap: 6px;
1944
+ }
1945
+ .fe-toolbar--narrow .fe-btn.is-active {
1946
+ background: var(--fe-bg-selected);
1947
+ }
1948
+ /* Expanded search: the input takes the whole row. */
1949
+ .fe-toolbar--narrow .fe-search--full {
1950
+ flex: 1 1 auto;
1951
+ min-width: 0;
1952
+ }
1953
+ .fe-toolbar--narrow .fe-search--full .fe-search__input {
1954
+ width: 100%;
1955
+ min-width: 0;
1956
+ }
1957
+
1958
+ /* Upload FAB — bottom-right corner of the explorer (narrow mode only). */
1959
+ .fe-fab {
1960
+ position: absolute;
1961
+ right: 16px;
1962
+ bottom: 16px;
1963
+ width: 56px;
1964
+ height: 56px;
1965
+ border: 0;
1966
+ border-radius: 50%;
1967
+ background: var(--fe-primary);
1968
+ color: var(--fe-text-on-primary);
1969
+ font-size: 24px;
1970
+ display: flex;
1971
+ align-items: center;
1972
+ justify-content: center;
1973
+ box-shadow: var(--fe-shadow);
1974
+ cursor: pointer;
1975
+ z-index: 45;
1976
+ transition: background 0.15s, transform 0.15s;
1977
+ }
1978
+ .fe-fab:hover {
1979
+ background: var(--fe-primary-hover);
1980
+ }
1981
+ .fe-fab:active {
1982
+ transform: scale(0.94);
1983
+ }
1984
+ .fe-fab:focus-visible {
1985
+ outline: 2px solid var(--fe-primary);
1986
+ outline-offset: 3px;
1987
+ }
1988
+ /* Keep the corner trays clear of the FAB while narrow. */
1989
+ .fe--narrow .fe-upload,
1990
+ .fe--narrow .fe-ops {
1991
+ bottom: 84px;
1992
+ }
1993
+
1994
+ /* Bottom sheet (ContextMenu sheet variant, coarse-pointer devices). */
1995
+ .fe-ctx-backdrop--sheet {
1996
+ background: rgba(13, 19, 27, 0.42);
1997
+ }
1998
+ .fe-sheet {
1999
+ position: fixed;
2000
+ left: 0;
2001
+ right: 0;
2002
+ bottom: 0;
2003
+ max-height: 70vh;
2004
+ display: flex;
2005
+ flex-direction: column;
2006
+ background: var(--fe-bg);
2007
+ color: var(--fe-text);
2008
+ border: 1px solid var(--fe-border);
2009
+ border-bottom: 0;
2010
+ border-top-left-radius: var(--fe-radius-lg);
2011
+ border-top-right-radius: var(--fe-radius-lg);
2012
+ box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.28);
2013
+ padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
2014
+ outline: none;
2015
+ z-index: 90;
2016
+ }
2017
+ .fe-sheet__handle {
2018
+ flex: 0 0 auto;
2019
+ display: flex;
2020
+ align-items: center;
2021
+ justify-content: center;
2022
+ padding: 12px 0 8px;
2023
+ cursor: grab;
2024
+ touch-action: none;
2025
+ }
2026
+ .fe-sheet__handle::before {
2027
+ content: '';
2028
+ width: 40px;
2029
+ height: 4px;
2030
+ border-radius: 99px;
2031
+ background: var(--fe-border-strong);
2032
+ }
2033
+ .fe-sheet__items {
2034
+ overflow-y: auto;
2035
+ overscroll-behavior: contain;
2036
+ -webkit-overflow-scrolling: touch;
2037
+ }
2038
+ /* Big touch targets (≥44px) on sheet entries. */
2039
+ .fe-sheet__item {
2040
+ min-height: 44px;
2041
+ padding: 10px 14px;
2042
+ font-size: 15px;
2043
+ gap: 12px;
2044
+ }
2045
+ /* Sheet transitions: backdrop fades, panel slides up from the bottom. */
2046
+ .fe-sheet-enter-active,
2047
+ .fe-sheet-leave-active {
2048
+ transition: opacity 0.18s ease;
2049
+ }
2050
+ .fe-sheet-enter-active .fe-sheet,
2051
+ .fe-sheet-leave-active .fe-sheet {
2052
+ transition: transform 0.22s ease;
2053
+ }
2054
+ .fe-sheet-enter-from,
2055
+ .fe-sheet-leave-to {
2056
+ opacity: 0;
2057
+ }
2058
+ .fe-sheet-enter-from .fe-sheet,
2059
+ .fe-sheet-leave-to .fe-sheet {
2060
+ transform: translateY(100%);
2061
+ }
2062
+ @media (prefers-reduced-motion: reduce) {
2063
+ .fe-sheet-enter-active,
2064
+ .fe-sheet-leave-active,
2065
+ .fe-sheet-enter-active .fe-sheet,
2066
+ .fe-sheet-leave-active .fe-sheet,
2067
+ .fe-fab {
2068
+ transition: none;
2069
+ }
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
+ }