pukaad-ui-lib 1.272.0 → 1.273.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.272.0",
4
+ "version": "1.273.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -7,7 +7,7 @@
7
7
  v-model="modelValue"
8
8
  >
9
9
  <ShadFormItem>
10
- <ShadFormLabel class="w-full">
10
+ <ShadFormLabel v-if="props.label || $slots.label" class="w-full">
11
11
  <slot name="label">
12
12
  <div class="flex-1">
13
13
  {{ props.label }}
@@ -3,8 +3,7 @@
3
3
  mode="secure" @complete="(data) => handleComplete(modal.key, data)"
4
4
  :confirmed-text="isLastStep ? '\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19' : '\u0E16\u0E31\u0E14\u0E44\u0E1B'" @close="isOpen = false" v-model="modalStates[modal.key]"
5
5
  :request-path="modal.key === 'phoneOTP' ? '/otp/phone-request' : void 0"
6
- :verify-path="modal.key === 'phoneOTP' ? '/otp/phone-verify' : void 0"
7
- />
6
+ :verify-path="modal.key === 'phoneOTP' ? '/otp/phone-verify' : void 0" />
8
7
  </template>
9
8
 
10
9
  <script setup>
@@ -119,6 +118,22 @@ const handleComplete = (key, data) => {
119
118
  return;
120
119
  }
121
120
  }
121
+ if (props.state === "reset-password") {
122
+ if (key === "password") {
123
+ if (props.twoFaEnabled) {
124
+ modalStates.twoFa = true;
125
+ } else {
126
+ isLastStep.value = true;
127
+ modalStates.passwordNew = true;
128
+ }
129
+ } else if (key === "twoFa") {
130
+ isLastStep.value = true;
131
+ modalStates.passwordNew = true;
132
+ } else if (key === "passwordNew") {
133
+ isOpen.value = false;
134
+ emit("complete", "reset-password");
135
+ }
136
+ }
122
137
  };
123
138
  const onEnabled2FA = async (token) => {
124
139
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.272.0",
3
+ "version": "1.273.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",