dsh-vault 1.7.0-rc.1 → 1.7.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.
package/lib/client.js CHANGED
@@ -17,89 +17,89 @@ window.__ModuleLoader__.load({
17
17
  document.head.appendChild(tag);
18
18
  }
19
19
  var VaultSection_module_css_default = {
20
- "identity": "t_j5va_identity",
21
- "pwMeter": "t_j5va_pwMeter",
22
- "toolbar": "t_j5va_toolbar",
23
- "dupNames": "t_j5va_dupNames",
24
- "kindFilter": "t_j5va_kindFilter",
25
- "genOpts": "t_j5va_genOpts",
26
- "pwLabel": "t_j5va_pwLabel",
27
- "badgeWarn": "t_j5va_badgeWarn",
28
- "kindIcon": "t_j5va_kindIcon",
29
- "backupButton": "t_j5va_backupButton",
30
- "trashButton": "t_j5va_trashButton",
31
- "rowDue": "t_j5va_rowDue",
32
- "lockedBanner": "t_j5va_lockedBanner",
20
+ "row": "t_j5va_row",
21
+ "rowExpired": "t_j5va_rowExpired",
22
+ "list": "t_j5va_list",
23
+ "lockedTag": "t_j5va_lockedTag",
33
24
  "dangerButton": "t_j5va_dangerButton",
34
- "badgeOk": "t_j5va_badgeOk",
35
- "sortButton": "t_j5va_sortButton",
36
- "intro": "t_j5va_intro",
37
- "tabs": "t_j5va_tabs",
38
25
  "detailBox": "t_j5va_detailBox",
39
- "reportBox": "t_j5va_reportBox",
40
- "highBadge": "t_j5va_highBadge",
41
- "policyField": "t_j5va_policyField",
42
- "resultCount": "t_j5va_resultCount",
43
- "copied": "t_j5va_copied",
44
- "revealButton": "t_j5va_revealButton",
45
- "deleteButton": "t_j5va_deleteButton",
46
- "rowExpired": "t_j5va_rowExpired",
26
+ "intro": "t_j5va_intro",
27
+ "healthBar": "t_j5va_healthBar",
28
+ "auditIssues": "t_j5va_auditIssues",
29
+ "error": "t_j5va_error",
30
+ "identity": "t_j5va_identity",
31
+ "footer": "t_j5va_footer",
32
+ "emptyHint": "t_j5va_emptyHint",
33
+ "badge": "t_j5va_badge",
47
34
  "scoreRing": "t_j5va_scoreRing",
48
- "secretField": "t_j5va_secretField",
49
- "genHist": "t_j5va_genHist",
50
- "rowMain": "t_j5va_rowMain",
51
- "rowActions": "t_j5va_rowActions",
52
- "modeAuto": "t_j5va_modeAuto",
53
- "reportSub": "t_j5va_reportSub",
54
- "lockedTag": "t_j5va_lockedTag",
55
- "srOnly": "t_j5va_srOnly",
35
+ "saveButton": "t_j5va_saveButton",
36
+ "emptyBox": "t_j5va_emptyBox",
37
+ "editorBody": "t_j5va_editorBody",
38
+ "retryButton": "t_j5va_retryButton",
39
+ "kindFilter": "t_j5va_kindFilter",
40
+ "resultCount": "t_j5va_resultCount",
56
41
  "searchBox": "t_j5va_searchBox",
57
- "pwStrong": "t_j5va_pwStrong",
42
+ "badgeWarn": "t_j5va_badgeWarn",
43
+ "dupNames": "t_j5va_dupNames",
44
+ "reportSub": "t_j5va_reportSub",
45
+ "policyField": "t_j5va_policyField",
58
46
  "totp": "t_j5va_totp",
59
- "list": "t_j5va_list",
47
+ "tabs": "t_j5va_tabs",
48
+ "reportLine": "t_j5va_reportLine",
49
+ "auditRow": "t_j5va_auditRow",
60
50
  "pwBar": "t_j5va_pwBar",
61
- "kindChip": "t_j5va_kindChip",
62
- "totpRing": "t_j5va_totpRing",
51
+ "editor": "t_j5va_editor",
52
+ "clearButton": "t_j5va_clearButton",
63
53
  "dupMerge": "t_j5va_dupMerge",
64
- "tabPane": "t_j5va_tabPane",
65
- "row": "t_j5va_row",
66
- "section": "t_j5va_section",
67
- "auditIssues": "t_j5va_auditIssues",
54
+ "backupButton": "t_j5va_backupButton",
55
+ "reportBox": "t_j5va_reportBox",
56
+ "srOnly": "t_j5va_srOnly",
57
+ "detailItem": "t_j5va_detailItem",
58
+ "trashButton": "t_j5va_trashButton",
59
+ "badgeDanger": "t_j5va_badgeDanger",
60
+ "empty": "t_j5va_empty",
61
+ "badgeOk": "t_j5va_badgeOk",
68
62
  "pwWeak": "t_j5va_pwWeak",
69
- "retryButton": "t_j5va_retryButton",
63
+ "pwStrong": "t_j5va_pwStrong",
64
+ "genOpts": "t_j5va_genOpts",
70
65
  "uriCode": "t_j5va_uriCode",
71
- "saveButton": "t_j5va_saveButton",
72
- "emptyBox": "t_j5va_emptyBox",
73
- "footer": "t_j5va_footer",
74
- "error": "t_j5va_error",
75
- "detailItem": "t_j5va_detailItem",
76
- "auditRow": "t_j5va_auditRow",
77
- "checkField": "t_j5va_checkField",
78
- "editorBody": "t_j5va_editorBody",
66
+ "deleteButton": "t_j5va_deleteButton",
67
+ "modeReadonly": "t_j5va_modeReadonly",
68
+ "rowActions": "t_j5va_rowActions",
69
+ "toolbar": "t_j5va_toolbar",
79
70
  "modeAsk": "t_j5va_modeAsk",
80
- "policyBar": "t_j5va_policyBar",
81
- "reportLine": "t_j5va_reportLine",
82
- "emptyHint": "t_j5va_emptyHint",
83
- "editorActions": "t_j5va_editorActions",
71
+ "highBadge": "t_j5va_highBadge",
72
+ "tab": "t_j5va_tab",
84
73
  "dueBadge": "t_j5va_dueBadge",
85
- "modeReadonly": "t_j5va_modeReadonly",
74
+ "genHist": "t_j5va_genHist",
75
+ "rowMain": "t_j5va_rowMain",
76
+ "status": "t_j5va_status",
77
+ "lockedBanner": "t_j5va_lockedBanner",
78
+ "modeAuto": "t_j5va_modeAuto",
86
79
  "reportTitle": "t_j5va_reportTitle",
87
80
  "title": "t_j5va_title",
88
- "healthBar": "t_j5va_healthBar",
81
+ "tabPane": "t_j5va_tabPane",
82
+ "pwLabel": "t_j5va_pwLabel",
83
+ "totpRing": "t_j5va_totpRing",
84
+ "pinStar": "t_j5va_pinStar",
85
+ "sortButton": "t_j5va_sortButton",
86
+ "copied": "t_j5va_copied",
87
+ "addButton": "t_j5va_addButton",
89
88
  "dupGroup": "t_j5va_dupGroup",
90
89
  "genOptRow": "t_j5va_genOptRow",
91
- "tab": "t_j5va_tab",
92
- "tabActive": "t_j5va_tabActive",
93
- "addButton": "t_j5va_addButton",
94
- "badgeDanger": "t_j5va_badgeDanger",
90
+ "kindChip": "t_j5va_kindChip",
91
+ "revealButton": "t_j5va_revealButton",
92
+ "pwMeter": "t_j5va_pwMeter",
95
93
  "pwFair": "t_j5va_pwFair",
96
- "status": "t_j5va_status",
97
- "editor": "t_j5va_editor",
98
- "empty": "t_j5va_empty",
99
- "badge": "t_j5va_badge",
94
+ "rowDue": "t_j5va_rowDue",
95
+ "section": "t_j5va_section",
96
+ "policyBar": "t_j5va_policyBar",
97
+ "editorActions": "t_j5va_editorActions",
100
98
  "field": "t_j5va_field",
101
- "clearButton": "t_j5va_clearButton",
102
- "pinStar": "t_j5va_pinStar"
99
+ "tabActive": "t_j5va_tabActive",
100
+ "checkField": "t_j5va_checkField",
101
+ "kindIcon": "t_j5va_kindIcon",
102
+ "secretField": "t_j5va_secretField"
103
103
  };
104
104
  //#endregion
105
105
  //#region src/client/VaultSection.tsx
@@ -2882,6 +2882,7 @@ window.__ModuleLoader__.load({
2882
2882
  className: VaultSection_module_css_default.revealButton,
2883
2883
  title: t("copyFieldHint"),
2884
2884
  onClick: () => void copyValue(entry.id, Array.isArray(v) ? v.join(", ") : String(v)),
2885
+ disabled: locked,
2885
2886
  children: "⧉"
2886
2887
  })
2887
2888
  ]
@@ -2901,7 +2902,7 @@ window.__ModuleLoader__.load({
2901
2902
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2902
2903
  type: "button",
2903
2904
  onClick: () => void copyValue(entry.id, entry.username ?? entry.title),
2904
- disabled: busy,
2905
+ disabled: busy || readonly || locked,
2905
2906
  children: t("copy")
2906
2907
  }),
2907
2908
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -2919,20 +2920,20 @@ window.__ModuleLoader__.load({
2919
2920
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2920
2921
  type: "button",
2921
2922
  onClick: () => void showTotp(entry.id),
2922
- disabled: busy,
2923
+ disabled: busy || locked,
2923
2924
  children: t("totp")
2924
2925
  }),
2925
2926
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2926
2927
  type: "button",
2927
2928
  onClick: () => void showTotpUri(entry.id),
2928
- disabled: busy,
2929
+ disabled: busy || locked,
2929
2930
  title: t("totpUriHint"),
2930
2931
  children: t("totpUri")
2931
2932
  }),
2932
2933
  code !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2933
2934
  type: "button",
2934
2935
  onClick: () => void copyValue(entry.id, code),
2935
- disabled: busy,
2936
+ disabled: busy || locked,
2936
2937
  children: t("copyCode")
2937
2938
  }),
2938
2939
  entry.url !== void 0 && entry.url !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {