pukaad-ui-lib 1.61.0 → 1.63.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 (23) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/image/image-cropper.d.vue.ts +1 -1
  3. package/dist/runtime/components/image/image-cropper.vue.d.ts +1 -1
  4. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  5. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  6. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  7. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  8. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  9. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  10. package/dist/runtime/components/input/input-slider.d.vue.ts +1 -1
  11. package/dist/runtime/components/input/input-slider.vue.d.ts +1 -1
  12. package/dist/runtime/components/modal/modal-account-disabled.vue +2 -2
  13. package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -0
  14. package/dist/runtime/components/modal/modal-password-new.vue +3 -1
  15. package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -0
  16. package/dist/runtime/components/modal/modal-phone-OTP.vue +0 -1
  17. package/dist/runtime/components/modal/modal-secure.vue +2 -2
  18. package/dist/runtime/components/ui/input-group/InputGroupButton.vue +1 -0
  19. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
  20. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
  21. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
  22. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
  23. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.61.0",
4
+ "version": "1.63.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -64,12 +64,12 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
- modal: boolean;
68
67
  responsive: boolean;
69
68
  restore: boolean;
70
69
  checkCrossOrigin: boolean;
71
70
  checkOrientation: boolean;
72
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
73
73
  guides: boolean;
74
74
  highlight: boolean;
75
75
  background: boolean;
@@ -64,12 +64,12 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
- modal: boolean;
68
67
  responsive: boolean;
69
68
  restore: boolean;
70
69
  checkCrossOrigin: boolean;
71
70
  checkOrientation: boolean;
72
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
73
73
  guides: boolean;
74
74
  highlight: boolean;
75
75
  background: boolean;
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
37
37
  name: string;
38
38
  placeholder: string;
39
39
  description: string;
40
- limit: number;
41
40
  options: AutocompleteOption[] | string[] | number[];
41
+ limit: number;
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
37
37
  name: string;
38
38
  placeholder: string;
39
39
  description: string;
40
- limit: number;
41
40
  options: AutocompleteOption[] | string[] | number[];
41
+ limit: number;
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
27
27
  label: string;
28
28
  name: string;
29
29
  limit: number;
30
- accept: string;
31
30
  disabledErrorMessage: boolean;
31
+ accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
27
27
  label: string;
28
28
  name: string;
29
29
  limit: number;
30
- accept: string;
31
30
  disabledErrorMessage: boolean;
31
+ accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  }>, {
19
19
  id: string;
20
20
  name: string;
21
- disabledForgotPassword: boolean;
22
21
  new: boolean;
22
+ disabledForgotPassword: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  }>, {
19
19
  id: string;
20
20
  name: string;
21
- disabledForgotPassword: boolean;
22
21
  new: boolean;
22
+ disabledForgotPassword: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  color: InputSliderColor;
13
13
  fullWidth: boolean;
14
14
  label: string;
15
- step: number;
16
15
  max: number;
17
16
  min: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  color: InputSliderColor;
13
13
  fullWidth: boolean;
14
14
  label: string;
15
- step: number;
16
15
  max: number;
17
16
  min: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -15,7 +15,7 @@ import { ref, reactive, watch } from "vue";
15
15
  import { useNuxtApp } from "nuxt/app";
16
16
  import ModalAccountDisabledReason from "@/runtime/components/modal/modal-account-disabled-reason.vue";
17
17
  import ModalAccountDisabledAlert from "@/runtime/components/modal/modal-account-disabled-alert.vue";
18
- import ModalPassword from "@/runtime/components/modal/modal-password.vue";
18
+ import ModalPasswordConfirmed from "@/runtime/components/modal/modal-password-confirmed.vue";
19
19
  import ModalAccountDisabledConfirmed from "@/runtime/components/modal/modal-account-disabled-confirmed.vue";
20
20
  const { $toast } = useNuxtApp();
21
21
  const emit = defineEmits(["complete"]);
@@ -26,7 +26,7 @@ const isLastStep = ref(false);
26
26
  const modals = [
27
27
  { key: "reason", component: ModalAccountDisabledReason },
28
28
  { key: "alert", component: ModalAccountDisabledAlert },
29
- { key: "password", component: ModalPassword },
29
+ { key: "password", component: ModalPasswordConfirmed },
30
30
  { key: "confirm", component: ModalAccountDisabledConfirmed }
31
31
  ];
32
32
  const modalStates = reactive(
@@ -2,6 +2,7 @@ interface Props {
2
2
  title?: string;
3
3
  confirmText?: string;
4
4
  loginToken?: string;
5
+ disableForceLogout?: boolean;
5
6
  }
6
7
  type __VLS_Props = Props;
7
8
  type __VLS_ModelProps = {
@@ -23,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
24
  }>, {
24
25
  title: string;
25
26
  confirmText: string;
27
+ disableForceLogout: boolean;
26
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
29
  declare const _default: typeof __VLS_export;
28
30
  export default _default;
@@ -15,6 +15,7 @@
15
15
  v-model="password"
16
16
  />
17
17
  <InputCheckbox
18
+ v-if="!props.disableForceLogout"
18
19
  label="ออกจากระบบ Pukaad ในอุปกรณ์อื่นๆทั้งหมด"
19
20
  v-model="logoutAll"
20
21
  />
@@ -38,7 +39,8 @@ import { useNuxtApp, useRuntimeConfig } from "nuxt/app";
38
39
  const props = defineProps({
39
40
  title: { type: String, required: false, default: "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E43\u0E2B\u0E21\u0E48" },
40
41
  confirmText: { type: String, required: false, default: "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19" },
41
- loginToken: { type: String, required: false }
42
+ loginToken: { type: String, required: false },
43
+ disableForceLogout: { type: Boolean, required: false, default: false }
42
44
  });
43
45
  const emit = defineEmits(["complete", "close"]);
44
46
  const nuxtApp = useNuxtApp();
@@ -2,6 +2,7 @@ interface Props {
2
2
  title?: string;
3
3
  confirmText?: string;
4
4
  loginToken?: string;
5
+ disableForceLogout?: boolean;
5
6
  }
6
7
  type __VLS_Props = Props;
7
8
  type __VLS_ModelProps = {
@@ -23,6 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
24
  }>, {
24
25
  title: string;
25
26
  confirmText: string;
27
+ disableForceLogout: boolean;
26
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
29
  declare const _default: typeof __VLS_export;
28
30
  export default _default;
@@ -32,7 +32,6 @@
32
32
  <Button
33
33
  type="submit"
34
34
  color="primary"
35
- full-width
36
35
  :disabled="!meta.valid"
37
36
  class="w-full"
38
37
  >
@@ -14,7 +14,7 @@
14
14
  <script setup>
15
15
  import { useNuxtApp, useRuntimeConfig } from "nuxt/app";
16
16
  import { reactive, watch, ref } from "vue";
17
- import ModalPassword from "@/runtime/components/modal/modal-password.vue";
17
+ import ModalPasswordConfirmed from "@/runtime/components/modal/modal-password-confirmed.vue";
18
18
  import ModalPasswordNew from "@/runtime/components/modal/modal-password-new.vue";
19
19
  import Modal2FA from "@/runtime/components/modal/modal-2FA.vue";
20
20
  import Modal2FAGenerate from "@/runtime/components/modal/modal-2FA-generate.vue";
@@ -33,7 +33,7 @@ const isOpen = defineModel({ type: Boolean, ...{
33
33
  } });
34
34
  const isLastStep = ref(false);
35
35
  const modals = [
36
- { key: "password", component: ModalPassword },
36
+ { key: "password", component: ModalPasswordConfirmed },
37
37
  { key: "passwordNew", component: ModalPasswordNew },
38
38
  { key: "twoFa", component: Modal2FA },
39
39
  { key: "twoFaGenerate", component: Modal2FAGenerate },
@@ -13,6 +13,7 @@ const props = defineProps({
13
13
  <Button
14
14
  :data-size="props.size"
15
15
  :variant="props.variant"
16
+ type="button"
16
17
  :class="cn(inputGroupButtonVariants({ size: props.size }), props.class)"
17
18
  >
18
19
  <slot />
@@ -59,7 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
59
59
  'aria-colindex'?: (string | number) | undefined;
60
60
  'aria-colspan'?: (string | number) | undefined;
61
61
  'aria-controls'?: string | undefined | undefined;
62
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
62
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
63
63
  'aria-describedby'?: string | undefined | undefined;
64
64
  'aria-details'?: string | undefined | undefined;
65
65
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -253,7 +253,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
253
253
  'aria-colindex'?: (string | number) | undefined;
254
254
  'aria-colspan'?: (string | number) | undefined;
255
255
  'aria-controls'?: string | undefined | undefined;
256
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
256
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
257
257
  'aria-describedby'?: string | undefined | undefined;
258
258
  'aria-details'?: string | undefined | undefined;
259
259
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -59,7 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
59
59
  'aria-colindex'?: (string | number) | undefined;
60
60
  'aria-colspan'?: (string | number) | undefined;
61
61
  'aria-controls'?: string | undefined | undefined;
62
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
62
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
63
63
  'aria-describedby'?: string | undefined | undefined;
64
64
  'aria-details'?: string | undefined | undefined;
65
65
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -253,7 +253,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
253
253
  'aria-colindex'?: (string | number) | undefined;
254
254
  'aria-colspan'?: (string | number) | undefined;
255
255
  'aria-controls'?: string | undefined | undefined;
256
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
256
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
257
257
  'aria-describedby'?: string | undefined | undefined;
258
258
  'aria-details'?: string | undefined | undefined;
259
259
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -61,7 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
61
61
  'aria-colindex'?: (string | number) | undefined;
62
62
  'aria-colspan'?: (string | number) | undefined;
63
63
  'aria-controls'?: string | undefined | undefined;
64
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
64
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
65
65
  'aria-describedby'?: string | undefined | undefined;
66
66
  'aria-details'?: string | undefined | undefined;
67
67
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -257,7 +257,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
257
257
  'aria-colindex'?: (string | number) | undefined;
258
258
  'aria-colspan'?: (string | number) | undefined;
259
259
  'aria-controls'?: string | undefined | undefined;
260
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
260
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
261
261
  'aria-describedby'?: string | undefined | undefined;
262
262
  'aria-details'?: string | undefined | undefined;
263
263
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -61,7 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
61
61
  'aria-colindex'?: (string | number) | undefined;
62
62
  'aria-colspan'?: (string | number) | undefined;
63
63
  'aria-controls'?: string | undefined | undefined;
64
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
64
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
65
65
  'aria-describedby'?: string | undefined | undefined;
66
66
  'aria-details'?: string | undefined | undefined;
67
67
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -257,7 +257,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
257
257
  'aria-colindex'?: (string | number) | undefined;
258
258
  'aria-colspan'?: (string | number) | undefined;
259
259
  'aria-controls'?: string | undefined | undefined;
260
- 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "date" | "step" | "location" | undefined;
260
+ 'aria-current'?: "time" | "page" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
261
261
  'aria-describedby'?: string | undefined | undefined;
262
262
  'aria-details'?: string | undefined | undefined;
263
263
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.61.0",
3
+ "version": "1.63.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",