@drumee/ui-toolkit 0.0.5 → 0.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drumee/ui-toolkit",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": ".",
6
6
  "repository": {
@@ -53,11 +53,11 @@ export default class dtk_pwsetter extends LetcBox {
53
53
  }
54
54
  if (this._isValid) {
55
55
  this.__messageIcon.el.dataset.state = "1";
56
- this.__commitButton.el.dataset.state = "1";
57
56
  this.__messageText.set({ content: LOCALE.PASSWORD_MATCH })
57
+ if (this.__commitButton) this.__commitButton.el.dataset.state = "1";
58
58
  } else {
59
59
  this.__messageIcon.el.dataset.state = "0";
60
- this.__commitButton.el.dataset.state = "0";
60
+ if (this.__commitButton) this.__commitButton.el.dataset.state = "0";
61
61
  }
62
62
  }
63
63
 
@@ -76,6 +76,9 @@ export default class dtk_pwsetter extends LetcBox {
76
76
  message(content, status = "normal") {
77
77
  this.__messageText.set({ content })
78
78
  this.__messageText.el.dataset.status = status;
79
+ if (status !== "normal") {
80
+ this.__messageIcon.el.dataset.state = "0";
81
+ }
79
82
  }
80
83
 
81
84
  /**
@@ -28,6 +28,19 @@ function passmeter(ui, opt) {
28
28
  }),
29
29
  ]
30
30
  })
31
+ let commit;
32
+ if (ui.mget(_a.api) && ui.mget(_a.label)) {
33
+ commit = button(ui, {
34
+ label,
35
+ className: `${fig}__button`,
36
+ priority: 'secondary full-width',
37
+ service: _e.commit,
38
+ type: _a.email,
39
+ sys_pn: "commit-button",
40
+ haptic
41
+ })
42
+ }
43
+ ui.debug("AAA:43", (ui.mget(_a.api) && ui.mget(_a.label)));
31
44
  return Skeletons.Box.Y({
32
45
  className: `${fig}__main`,
33
46
  kids: [
@@ -75,15 +88,7 @@ function passmeter(ui, opt) {
75
88
  ]
76
89
  })]
77
90
  }),
78
- button(ui, {
79
- label,
80
- className: `${fig}__button`,
81
- priority: 'secondary full-width',
82
- service: _e.commit,
83
- type: _a.email,
84
- sys_pn: "commit-button",
85
- haptic
86
- }),
91
+ commit
87
92
  ]
88
93
  })
89
94
  };