phirepass-widgets 0.0.100 → 0.0.102

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/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/phirepass-rdp.cjs.entry.js +30 -10
  3. package/dist/cjs/phirepass-sftp-client.cjs.entry.js +547 -81
  4. package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
  5. package/dist/cjs/phirepass-widgets.cjs.js +1 -1
  6. package/dist/cjs/{protocol-B45sQiET.js → protocol-BcMWzyWp.js} +155 -59
  7. package/dist/collection/common/protocol.js +1 -0
  8. package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +17 -8
  9. package/dist/collection/components/phirepass-rdp/phirepass-rdp.viewport.js +12 -1
  10. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.css +342 -2
  11. package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.js +568 -80
  12. package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +1 -1
  13. package/dist/collection/phirepass-channel_bg.wasm +0 -0
  14. package/dist/components/p-Dzyd97Ok.js +1 -0
  15. package/dist/components/phirepass-rdp.js +1 -1
  16. package/dist/components/phirepass-sftp-client.js +1 -1
  17. package/dist/components/phirepass-terminal.js +2 -2
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/phirepass-rdp.entry.js +30 -10
  20. package/dist/esm/phirepass-sftp-client.entry.js +547 -81
  21. package/dist/esm/phirepass-terminal.entry.js +2 -2
  22. package/dist/esm/phirepass-widgets.js +1 -1
  23. package/dist/esm/{protocol-DFhjP92A.js → protocol-Dzyd97Ok.js} +154 -58
  24. package/dist/phirepass-widgets/p-11aedd04.entry.js +1 -0
  25. package/dist/phirepass-widgets/{p-c4a31b26.entry.js → p-16145ab4.entry.js} +2 -2
  26. package/dist/phirepass-widgets/p-57d80137.entry.js +1 -0
  27. package/dist/phirepass-widgets/p-Dzyd97Ok.js +1 -0
  28. package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
  29. package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
  30. package/dist/types/common/protocol.d.ts +22 -2
  31. package/dist/types/components/phirepass-rdp/phirepass-rdp.viewport.d.ts +11 -1
  32. package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.d.ts +85 -4
  33. package/package.json +2 -2
  34. package/dist/components/p-DFhjP92A.js +0 -1
  35. package/dist/phirepass-widgets/p-0e9afedb.entry.js +0 -1
  36. package/dist/phirepass-widgets/p-DFhjP92A.js +0 -1
  37. package/dist/phirepass-widgets/p-ee09d805.entry.js +0 -1
@@ -196,6 +196,27 @@
196
196
  gap: 8px;
197
197
  }
198
198
 
199
+ .filter {
200
+ height: 1.5rem;
201
+ width: 110px;
202
+ padding: 0 6px;
203
+ font: inherit;
204
+ font-size: 0.68rem;
205
+ color: rgb(189, 219, 209);
206
+ background-color: hsl(var(--muted));
207
+ border: 1px solid hsl(var(--border));
208
+ border-radius: calc(var(--radius) - 2px);
209
+ outline: none;
210
+
211
+ &::placeholder {
212
+ color: hsl(var(--muted-foreground));
213
+ }
214
+
215
+ &:focus {
216
+ border-color: hsl(var(--primary));
217
+ }
218
+ }
219
+
199
220
  .action {
200
221
  border: none;
201
222
  background: transparent;
@@ -233,6 +254,14 @@
233
254
  .content {
234
255
  flex: 1;
235
256
  min-height: 0;
257
+ outline: none;
258
+
259
+ /* The table takes keyboard focus for F2/Delete/Backspace, so
260
+ it has to say when it has it — without a browser default
261
+ ring drawn across the whole scroll area. */
262
+ &:focus-visible {
263
+ box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.5);
264
+ }
236
265
  overflow: auto;
237
266
  font-size: 0.75rem;
238
267
  line-height: 1rem;
@@ -268,6 +297,15 @@
268
297
  background-color: hsl(var(--muted));
269
298
  border-bottom: 1px solid hsl(var(--border));
270
299
 
300
+ th.sortable {
301
+ cursor: pointer;
302
+ user-select: none;
303
+
304
+ &:hover {
305
+ color: hsl(var(--primary));
306
+ }
307
+ }
308
+
271
309
  th {
272
310
  padding: 8px 10px;
273
311
  text-align: left;
@@ -302,6 +340,21 @@
302
340
  }
303
341
 
304
342
  tbody {
343
+
344
+ tr.empty {
345
+ cursor: default;
346
+
347
+ td {
348
+ color: hsl(var(--muted-foreground));
349
+ text-align: center;
350
+ padding: 18px 8px;
351
+ }
352
+
353
+ &:hover {
354
+ background: transparent;
355
+ }
356
+ }
357
+
305
358
  padding: 10px 10px;
306
359
  tr {
307
360
  border-bottom: 1px solid hsl(var(--border) / 0.4);
@@ -542,7 +595,8 @@
542
595
 
543
596
  .upload-modal,
544
597
  .download-modal,
545
- .delete-modal {
598
+ .delete-modal,
599
+ .prompt-modal {
546
600
  position: absolute;
547
601
  inset: 0;
548
602
  display: none;
@@ -558,7 +612,8 @@
558
612
 
559
613
  .upload-dialog,
560
614
  .download-dialog,
561
- .delete-dialog {
615
+ .delete-dialog,
616
+ .prompt-dialog {
562
617
  width: min(360px, calc(100% - 24px));
563
618
  background-color: rgba(21, 24, 30, 0.96);
564
619
  border: 1px solid hsl(var(--border));
@@ -705,6 +760,131 @@
705
760
  }
706
761
  }
707
762
 
763
+ .dialog-input {
764
+ width: 100%;
765
+ box-sizing: border-box;
766
+ height: 2rem;
767
+ padding: 0 8px;
768
+ font: inherit;
769
+ font-size: 0.75rem;
770
+ color: rgb(189, 219, 209);
771
+ background-color: hsl(var(--muted));
772
+ border: 1px solid hsl(var(--border));
773
+ border-radius: calc(var(--radius) - 2px);
774
+ outline: none;
775
+
776
+ &:focus {
777
+ border-color: hsl(var(--primary));
778
+ }
779
+
780
+ &:disabled {
781
+ opacity: 0.65;
782
+ }
783
+ }
784
+
785
+ .dialog-error {
786
+ margin-top: 8px;
787
+ font-size: 0.7rem;
788
+ line-height: 0.95rem;
789
+ color: #ff6b7a;
790
+ }
791
+
792
+ .hint {
793
+ margin-top: 4px;
794
+ font-size: 0.66rem;
795
+ line-height: 0.9rem;
796
+ color: hsl(var(--muted-foreground));
797
+ }
798
+
799
+ .checkline {
800
+ margin-top: 8px;
801
+ display: flex;
802
+ align-items: center;
803
+ gap: 6px;
804
+ font-size: 0.72rem;
805
+ color: rgb(189, 219, 209);
806
+ cursor: pointer;
807
+
808
+ input {
809
+ accent-color: hsl(var(--primary));
810
+ margin: 0;
811
+ }
812
+ }
813
+
814
+ .perm-grid {
815
+ margin-top: 10px;
816
+ width: 100%;
817
+ border-collapse: collapse;
818
+ font-size: 0.68rem;
819
+
820
+ th {
821
+ color: hsl(var(--muted-foreground));
822
+ font-weight: normal;
823
+ text-align: center;
824
+ padding: 2px 0;
825
+ }
826
+
827
+ th[scope='row'] {
828
+ text-align: left;
829
+ color: rgb(189, 219, 209);
830
+ }
831
+
832
+ td {
833
+ text-align: center;
834
+ padding: 2px 0;
835
+ }
836
+
837
+ input {
838
+ accent-color: hsl(var(--primary));
839
+ margin: 0;
840
+ }
841
+ }
842
+
843
+ .perm-special {
844
+ margin-top: 4px;
845
+ display: flex;
846
+ gap: 12px;
847
+
848
+ .checkline {
849
+ margin-top: 4px;
850
+ font-size: 0.66rem;
851
+ }
852
+ }
853
+
854
+ .perm-octal {
855
+ margin-top: 10px;
856
+ display: flex;
857
+ align-items: center;
858
+ gap: 8px;
859
+
860
+ label {
861
+ font-size: 0.68rem;
862
+ color: hsl(var(--muted-foreground));
863
+ }
864
+
865
+ .dialog-input {
866
+ width: 4.5rem;
867
+ text-align: center;
868
+ letter-spacing: 0.1em;
869
+ }
870
+
871
+ .perm-preview {
872
+ font-size: 0.7rem;
873
+ color: hsl(var(--primary));
874
+ }
875
+ }
876
+
877
+ .modal-actions .btn.primary {
878
+ background: hsl(var(--primary));
879
+ border-color: hsl(var(--primary));
880
+ color: hsl(var(--primary-foreground));
881
+
882
+ &:hover:not(:disabled) {
883
+ background: hsl(var(--primary) / 0.9);
884
+ border-color: hsl(var(--primary) / 0.9);
885
+ }
886
+ }
887
+
708
888
  .delete-loader {
709
889
  margin-top: 4px;
710
890
  display: flex;
@@ -721,6 +901,166 @@
721
901
  }
722
902
  }
723
903
  }
904
+
905
+ /* The editor is the one dialog that wants the whole widget: a 360px column
906
+ is unusable for anything with indentation. */
907
+ .editor-modal {
908
+ position: absolute;
909
+ inset: 0;
910
+ display: none;
911
+ align-items: center;
912
+ justify-content: center;
913
+ background: rgba(28, 31, 38, 0);
914
+ backdrop-filter: blur(4px);
915
+ z-index: 7;
916
+
917
+ &.visible {
918
+ display: flex;
919
+ }
920
+
921
+ .editor-dialog {
922
+ width: min(860px, calc(100% - 24px));
923
+ height: min(620px, calc(100% - 24px));
924
+ display: flex;
925
+ flex-direction: column;
926
+ background-color: rgba(21, 24, 30, 0.98);
927
+ border: 1px solid hsl(var(--border));
928
+ border-radius: var(--radius);
929
+ padding: 16px;
930
+ box-shadow: rgba(0, 0, 0, 0.5) 0px 25px 50px -12px;
931
+ outline: none;
932
+
933
+ .editor-head {
934
+ display: flex;
935
+ align-items: center;
936
+ justify-content: space-between;
937
+ gap: 8px;
938
+
939
+ .title {
940
+ color: hsl(var(--primary));
941
+ font-size: 0.8rem;
942
+ margin-bottom: 8px;
943
+ overflow: hidden;
944
+ text-overflow: ellipsis;
945
+ white-space: nowrap;
946
+ }
947
+
948
+ .editor-close {
949
+ border: none;
950
+ background: transparent;
951
+ color: hsl(var(--muted-foreground));
952
+ font-size: 0.85rem;
953
+ line-height: 1;
954
+ padding: 2px 6px;
955
+ border-radius: 4px;
956
+ cursor: pointer;
957
+
958
+ &:hover:not(:disabled) {
959
+ color: hsl(var(--primary));
960
+ background-color: hsl(var(--border) / 0.6);
961
+ }
962
+
963
+ &:disabled {
964
+ opacity: 0.5;
965
+ cursor: not-allowed;
966
+ }
967
+ }
968
+ }
969
+
970
+ .editor-loading {
971
+ flex: 1;
972
+ display: flex;
973
+ align-items: center;
974
+ justify-content: center;
975
+ font-size: 0.75rem;
976
+ color: hsl(var(--muted-foreground));
977
+ }
978
+
979
+ .editor-text {
980
+ flex: 1;
981
+ min-height: 0;
982
+ width: 100%;
983
+ box-sizing: border-box;
984
+ resize: none;
985
+ padding: 10px;
986
+ font: inherit;
987
+ font-size: 0.75rem;
988
+ line-height: 1.15rem;
989
+ tab-size: 4;
990
+ white-space: pre;
991
+ overflow: auto;
992
+ color: rgb(189, 219, 209);
993
+ background-color: hsl(var(--muted));
994
+ border: 1px solid hsl(var(--border));
995
+ border-radius: calc(var(--radius) - 2px);
996
+ outline: none;
997
+
998
+ &:focus {
999
+ border-color: hsl(var(--primary) / 0.6);
1000
+ }
1001
+
1002
+ &:disabled {
1003
+ opacity: 0.65;
1004
+ }
1005
+ }
1006
+
1007
+ .dialog-error {
1008
+ margin-top: 8px;
1009
+ font-size: 0.7rem;
1010
+ line-height: 0.95rem;
1011
+ color: #ff6b7a;
1012
+ }
1013
+
1014
+ .modal-actions {
1015
+ margin-top: 14px;
1016
+ display: flex;
1017
+ justify-content: flex-end;
1018
+ gap: 8px;
1019
+
1020
+ .btn {
1021
+ height: 2rem;
1022
+ min-width: 6rem;
1023
+ border: 1px solid hsl(var(--border));
1024
+ border-radius: calc(var(--radius) - 2px);
1025
+ font-size: 0.75rem;
1026
+ letter-spacing: 0.03em;
1027
+ cursor: pointer;
1028
+
1029
+ &:disabled {
1030
+ opacity: 0.65;
1031
+ cursor: not-allowed;
1032
+ }
1033
+ }
1034
+
1035
+ .btn.secondary {
1036
+ background: hsl(var(--muted));
1037
+ color: rgb(189, 219, 209);
1038
+
1039
+ &:hover:not(:disabled) {
1040
+ border-color: hsl(var(--primary));
1041
+ color: hsl(var(--primary));
1042
+ }
1043
+ }
1044
+
1045
+ .btn.destructive {
1046
+ background: hsl(var(--destructive));
1047
+ border-color: hsl(var(--destructive));
1048
+ color: white;
1049
+ }
1050
+
1051
+ .btn.primary {
1052
+ background: hsl(var(--primary));
1053
+ border-color: hsl(var(--primary));
1054
+ color: hsl(var(--primary-foreground));
1055
+
1056
+ &:hover:not(:disabled) {
1057
+ background: hsl(var(--primary) / 0.9);
1058
+ border-color: hsl(var(--primary) / 0.9);
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ }
724
1064
  }
725
1065
 
726
1066
  @keyframes spin {