adata-ui 3.1.39 → 3.1.40

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
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.39",
8
+ "version": "3.1.40",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defu } from 'defu';
2
- import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin, installModule, hasNuxtModule } from '@nuxt/kit';
2
+ import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin, installModule, addImportsDir, hasNuxtModule } from '@nuxt/kit';
3
3
 
4
4
  const module = defineNuxtModule({
5
5
  meta: {
@@ -64,6 +64,7 @@ const module = defineNuxtModule({
64
64
  strategy: "prefix_except_default"
65
65
  });
66
66
  addPlugin(resolver.resolve("./runtime/i18n"));
67
+ addImportsDir(resolver.resolve("./runtime/composables"));
67
68
  }
68
69
  });
69
70
 
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import InputStandard from "../standard/InputStandard.vue";
3
+ import { ref } from "vue";
4
+ const props = defineProps({
5
+ disabled: { type: Boolean, required: false, default: false },
6
+ label: { type: String, required: false, default: "" },
7
+ size: { type: String, required: false, default: "md" },
8
+ error: { type: String, required: false, default: "" },
9
+ required: { type: Boolean, required: false, default: false }
10
+ });
11
+ const isOpened = ref(false);
12
+ </script>
13
+
14
+ <template>
15
+ <input-standard
16
+ v-bind="$attrs"
17
+ :type="isOpened ? 'text' : 'password'"
18
+ v-bind.prop="props"
19
+ >
20
+ <template #endButton>
21
+ <button
22
+ class="absolute top-1/2 right-4 text-gray-500 fill-gray-500 pointer-events-click text-2xl transform translate-y-[-50%] hover:opacity-80 disabled:pointer-events-none"
23
+ :disabled="disabled"
24
+ type="button"
25
+ @click="isOpened = !isOpened"
26
+ >
27
+ <i-eye-closed
28
+ v-if="!isOpened"
29
+ filled
30
+ class="!mb-0"
31
+ />
32
+ <i-eye-opened
33
+ v-else
34
+ filled
35
+ class="!mb-0"
36
+ />
37
+ </button>
38
+ </template>
39
+ </input-standard>
40
+ </template>
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ disabled?: boolean;
3
+ label?: string;
4
+ size?: 'sm' | 'md';
5
+ error?: string;
6
+ required?: boolean;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
9
+ size: "sm" | "md";
10
+ error: string;
11
+ disabled: boolean;
12
+ required: boolean;
13
+ label: string;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -190,7 +190,7 @@ defineExpose({
190
190
  <div
191
191
  v-if="autocompleteList.length && isFocused"
192
192
  :class="[
193
- 'absolute z-[31] w-full flex flex-col gap-4 rounded bg-white p-2 dark:bg-gray-900',
193
+ 'absolute z-[31] w-full flex flex-col gap-4 rounded bg-white p-2 shadow dark:bg-gray-900',
194
194
  isDropdownUp ? 'bottom-[44px]' : 'top-[44px]',
195
195
  shadow ? 'autocomplete-shadow' : ''
196
196
  ]"
@@ -12,9 +12,10 @@ const { t } = useI18n();
12
12
  const { adataUI } = useAppConfig();
13
13
  const { mode, authMode } = adataUI;
14
14
  const localePath = useLocalePath();
15
- const { loginModal } = useIdModals();
15
+ const { loginModal, registrationModal } = useIdModals();
16
16
  function logIn() {
17
17
  if (authMode === "local") {
18
+ emit("close");
18
19
  loginModal.value = true;
19
20
  return;
20
21
  }
@@ -22,6 +23,10 @@ function logIn() {
22
23
  return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}${props.redirectPath}`), { external: true });
23
24
  }
24
25
  function register() {
26
+ if (authMode === "local") {
27
+ registrationModal.value = true;
28
+ return;
29
+ }
25
30
  return navigateTo(localePath(`https://id.${mode}.kz/register`), { external: true });
26
31
  }
27
32
  </script>
@@ -188,7 +188,7 @@ onBeforeUnmount(() => {
188
188
  :label="t('modals.id.login.labels.email')"
189
189
  :error="getError('username')"
190
190
  />
191
- <adt-forms-input-standard
191
+ <adt-forms-input-password
192
192
  v-model="form.password"
193
193
  :label="t('modals.id.login.labels.password')"
194
194
  :error="getError('password')"
@@ -76,7 +76,7 @@ async function onSubmit() {
76
76
  {{ t("modals.id.newPassword.content") }}
77
77
  </p>
78
78
 
79
- <adt-forms-input-standard
79
+ <adt-forms-input-password
80
80
  v-model="form.password"
81
81
  :label="t('modals.id.newPassword.placeholder.1')"
82
82
  :error="getError('password')"
@@ -86,7 +86,7 @@ async function onSubmit() {
86
86
  {{ t("modals.id.newPassword.alert") }}
87
87
  </adt-alert>
88
88
 
89
- <adt-forms-input-standard
89
+ <adt-forms-input-password
90
90
  v-model="form.password_confirmation"
91
91
  :label="t('modals.id.newPassword.placeholder.2')"
92
92
  :error="getError('password_confirmation')"
@@ -124,13 +124,13 @@ onBeforeUnmount(() => {
124
124
  type="email"
125
125
  />
126
126
 
127
- <adt-forms-input-standard
127
+ <adt-forms-input-password
128
128
  v-model="form.password"
129
129
  :label="t('modals.id.register.labels.password')"
130
130
  :error="getError('password')"
131
131
  />
132
132
 
133
- <adt-forms-input-standard
133
+ <adt-forms-input-password
134
134
  v-model="form.password_confirmation"
135
135
  :label="t('modals.id.register.labels.password_confirmation')"
136
136
  :error="getError('password_confirmation')"
@@ -0,0 +1,26 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <svg
7
+ width="16"
8
+ height="16"
9
+ viewBox="0 0 16 16"
10
+ fill="currentColor"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ >
13
+ <g id="eye-closed">
14
+ <path
15
+ id="Vector"
16
+ fill-rule="evenodd"
17
+ clip-rule="evenodd"
18
+ d="M1.15389 1.15389C1.35891 0.948867 1.69131 0.948867 1.89634 1.15389L4.86827 4.12582C4.87235 4.12977 4.87637 4.13379 4.88034 4.13789L7.12029 6.37784C7.12216 6.37969 7.12403 6.38155 7.12588 6.38343L9.61648 8.87403C9.61839 8.87592 9.62029 8.87782 9.62218 8.87973L11.8611 11.1186C11.8652 11.1226 11.8693 11.1267 11.8733 11.1308L14.8461 14.1036C15.0511 14.3087 15.0511 14.6411 14.8461 14.8461C14.6411 15.0511 14.3087 15.0511 14.1036 14.8461L11.4379 12.1804C10.42 12.8469 9.23139 13.2139 8.00857 13.2339L7.99999 13.234C5.73006 13.234 3.98219 11.9378 2.83441 10.7135C2.25573 10.0963 1.81375 9.48103 1.51637 9.02058C1.36736 8.78985 1.2538 8.59665 1.17676 8.4597C1.13822 8.39119 1.10877 8.33665 1.08853 8.29841C1.07841 8.27928 1.07059 8.26423 1.06509 8.25352L1.05858 8.24077L1.05663 8.23691L1.05598 8.23562C1.05598 8.23562 1.05555 8.23476 1.52511 7.99998L1.05555 8.23476C0.97926 8.08218 0.981858 7.90206 1.06251 7.75175C1.73568 6.49723 2.63732 5.38169 3.71923 4.46168L1.15389 1.89634C0.948867 1.69131 0.948867 1.35891 1.15389 1.15389ZM4.46435 5.2068C3.52524 5.99217 2.73273 6.9385 2.12424 8.00188C2.19077 8.11793 2.28241 8.27135 2.3984 8.45094C2.67125 8.87342 3.07541 9.43542 3.60041 9.99541C4.65915 11.1247 6.14724 12.1824 7.9957 12.184C8.94424 12.1677 9.86808 11.9021 10.6763 11.4187L9.21526 9.95771C9.11156 10.0259 9.00225 10.0858 8.88831 10.1366C8.6073 10.2618 8.30395 10.3291 7.99635 10.3345C7.68876 10.34 7.38322 10.2834 7.09797 10.1682C6.81271 10.0529 6.55359 9.88145 6.33605 9.66391C6.11852 9.44637 5.94702 9.18725 5.8318 8.902C5.71659 8.61674 5.66 8.31121 5.66543 8.00361C5.67086 7.69602 5.73818 7.39266 5.86339 7.11165C5.91416 6.99772 5.97402 6.8884 6.04226 6.78471L4.46435 5.2068ZM6.8146 7.55705C6.75183 7.70416 6.71807 7.86209 6.71525 8.02213C6.71231 8.18875 6.74296 8.35425 6.80537 8.50876C6.86778 8.66327 6.96067 8.80363 7.0785 8.92146C7.19633 9.0393 7.33669 9.13219 7.4912 9.1946C7.64572 9.25701 7.81122 9.28766 7.97783 9.28472C8.13787 9.28189 8.2958 9.24813 8.44291 9.18536L6.8146 7.55705ZM7.99877 3.81598C7.62335 3.81509 7.24909 3.85786 6.88354 3.94343C6.60123 4.00951 6.3188 3.83422 6.25272 3.55191C6.18664 3.2696 6.36193 2.98717 6.64424 2.92108C7.08883 2.81702 7.54401 2.76497 8.00062 2.766C10.2702 2.76623 12.0179 4.06224 13.1656 5.28642C13.7443 5.90368 14.1862 6.51893 14.4836 6.97939C14.6326 7.21012 14.7462 7.40331 14.8232 7.54027C14.8618 7.60878 14.8912 7.66331 14.9115 7.70156C14.9216 7.72068 14.9294 7.73574 14.9349 7.74644L14.9394 7.75523C15.0177 7.90413 15.0232 8.08794 14.9379 8.24748C14.5633 8.94815 14.1167 9.6078 13.6052 10.2157C13.4185 10.4376 13.0873 10.4661 12.8654 10.2794C12.6436 10.0927 12.6151 9.76154 12.8018 9.53969C13.2059 9.05942 13.5654 8.54357 13.876 7.99858C13.8095 7.88247 13.7177 7.72887 13.6016 7.54903C13.3287 7.12654 12.9246 6.56454 12.3996 6.00455C11.34 4.87435 9.85046 3.81598 8.00001 3.81598L7.99877 3.81598Z"
19
+ />
20
+ </g>
21
+ </svg>
22
+ </template>
23
+
24
+ <style scoped>
25
+
26
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd"
4
+ d="M2.39875 8.4542C2.28159 8.27218 2.18927 8.11694 2.12256 8.00006C2.18927 7.88318 2.28159 7.72795 2.39875 7.54592C2.67167 7.12192 3.0759 6.55793 3.60097 5.99596C4.66082 4.86164 6.15027 3.80001 8.00008 3.80001C9.84989 3.80001 11.3393 4.86164 12.3992 5.99596C12.9243 6.55793 13.3285 7.12192 13.6014 7.54592C13.7186 7.72795 13.8109 7.88318 13.8776 8.00006C13.8109 8.11694 13.7186 8.27218 13.6014 8.4542C13.3285 8.8782 12.9243 9.44219 12.3992 10.0042C11.3393 11.1385 9.84989 12.2001 8.00008 12.2001C6.15027 12.2001 4.66082 11.1385 3.60097 10.0042C3.0759 9.44219 2.67167 8.8782 2.39875 8.4542ZM14.4752 8.00006C14.9451 7.7659 14.9449 7.76553 14.9449 7.76553L14.4752 8.00006ZM14.9449 7.76553C15.0183 7.91299 15.0185 8.08676 14.9451 8.23422L14.4752 8.00006C14.9451 8.23422 14.9446 8.23508 14.9446 8.23508L14.944 8.23637L14.942 8.24024L14.9355 8.25302C14.93 8.26375 14.9222 8.27885 14.9121 8.29803C14.8919 8.33639 14.8624 8.3911 14.8239 8.45982C14.7469 8.5972 14.6333 8.79102 14.4843 9.0225C14.187 9.48445 13.7451 10.1017 13.1664 10.721C12.0189 11.9492 10.2708 13.2501 8.00008 13.2501C5.72939 13.2501 3.98131 11.9492 2.83374 10.721C2.2551 10.1017 1.81316 9.48445 1.51583 9.0225C1.36683 8.79102 1.25329 8.5972 1.17627 8.45982C1.13775 8.3911 1.1083 8.33639 1.08807 8.29803C1.07796 8.27885 1.07014 8.26375 1.06464 8.25302L1.05813 8.24024L1.05619 8.23637L1.05511 8.23422C0.98163 8.08676 0.98163 7.91336 1.05511 7.7659L1.52501 8.00006C1.05511 7.7659 1.05554 7.76505 1.05554 7.76505L1.05619 7.76375L1.05813 7.75989L1.06464 7.7471C1.07014 7.73637 1.07796 7.72127 1.08807 7.70209C1.1083 7.66373 1.13775 7.60903 1.17627 7.5403C1.25329 7.40292 1.36683 7.2091 1.51583 6.97762C1.81316 6.51567 2.2551 5.8984 2.83374 5.27911C3.98131 4.0509 5.72939 2.75 8.00008 2.75C10.2708 2.75 12.0189 4.0509 13.1664 5.27911C13.7451 5.8984 14.187 6.51567 14.4843 6.97762C14.6333 7.2091 14.7469 7.40292 14.8239 7.5403C14.8624 7.60903 14.8919 7.66373 14.9121 7.70209C14.9222 7.72127 14.93 7.73637 14.9355 7.7471L14.942 7.75989L14.944 7.76375L14.9449 7.76553ZM6.75915 8.00006C6.75915 7.30975 7.3164 6.75317 8.00008 6.75317C8.68375 6.75317 9.241 7.30975 9.241 8.00006C9.241 8.69037 8.68375 9.24695 8.00008 9.24695C7.3164 9.24695 6.75915 8.69037 6.75915 8.00006ZM8.00008 5.70316C6.73316 5.70316 5.70914 6.73319 5.70914 8.00006C5.70914 9.26693 6.73316 10.297 8.00008 10.297C9.26699 10.297 10.291 9.26693 10.291 8.00006C10.291 6.73319 9.26699 5.70316 8.00008 5.70316Z"
5
+ fill="currentColor"/>
6
+ </svg>
7
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,23 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <svg
7
+ width="16"
8
+ height="16"
9
+ viewBox="0 0 16 16"
10
+ fill="currentColor"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ >
13
+ <path
14
+ fill-rule="evenodd"
15
+ clip-rule="evenodd"
16
+ d="M2.39875 8.4542C2.28159 8.27218 2.18927 8.11694 2.12256 8.00006C2.18927 7.88318 2.28159 7.72795 2.39875 7.54592C2.67167 7.12192 3.0759 6.55793 3.60097 5.99596C4.66082 4.86164 6.15027 3.80001 8.00008 3.80001C9.84989 3.80001 11.3393 4.86164 12.3992 5.99596C12.9243 6.55793 13.3285 7.12192 13.6014 7.54592C13.7186 7.72795 13.8109 7.88318 13.8776 8.00006C13.8109 8.11694 13.7186 8.27218 13.6014 8.4542C13.3285 8.8782 12.9243 9.44219 12.3992 10.0042C11.3393 11.1385 9.84989 12.2001 8.00008 12.2001C6.15027 12.2001 4.66082 11.1385 3.60097 10.0042C3.0759 9.44219 2.67167 8.8782 2.39875 8.4542ZM14.4752 8.00006C14.9451 7.7659 14.9449 7.76553 14.9449 7.76553L14.4752 8.00006ZM14.9449 7.76553C15.0183 7.91299 15.0185 8.08676 14.9451 8.23422L14.4752 8.00006C14.9451 8.23422 14.9446 8.23508 14.9446 8.23508L14.944 8.23637L14.942 8.24024L14.9355 8.25302C14.93 8.26375 14.9222 8.27885 14.9121 8.29803C14.8919 8.33639 14.8624 8.3911 14.8239 8.45982C14.7469 8.5972 14.6333 8.79102 14.4843 9.0225C14.187 9.48445 13.7451 10.1017 13.1664 10.721C12.0189 11.9492 10.2708 13.2501 8.00008 13.2501C5.72939 13.2501 3.98131 11.9492 2.83374 10.721C2.2551 10.1017 1.81316 9.48445 1.51583 9.0225C1.36683 8.79102 1.25329 8.5972 1.17627 8.45982C1.13775 8.3911 1.1083 8.33639 1.08807 8.29803C1.07796 8.27885 1.07014 8.26375 1.06464 8.25302L1.05813 8.24024L1.05619 8.23637L1.05511 8.23422C0.98163 8.08676 0.98163 7.91336 1.05511 7.7659L1.52501 8.00006C1.05511 7.7659 1.05554 7.76505 1.05554 7.76505L1.05619 7.76375L1.05813 7.75989L1.06464 7.7471C1.07014 7.73637 1.07796 7.72127 1.08807 7.70209C1.1083 7.66373 1.13775 7.60903 1.17627 7.5403C1.25329 7.40292 1.36683 7.2091 1.51583 6.97762C1.81316 6.51567 2.2551 5.8984 2.83374 5.27911C3.98131 4.0509 5.72939 2.75 8.00008 2.75C10.2708 2.75 12.0189 4.0509 13.1664 5.27911C13.7451 5.8984 14.187 6.51567 14.4843 6.97762C14.6333 7.2091 14.7469 7.40292 14.8239 7.5403C14.8624 7.60903 14.8919 7.66373 14.9121 7.70209C14.9222 7.72127 14.93 7.73637 14.9355 7.7471L14.942 7.75989L14.944 7.76375L14.9449 7.76553ZM6.75915 8.00006C6.75915 7.30975 7.3164 6.75317 8.00008 6.75317C8.68375 6.75317 9.241 7.30975 9.241 8.00006C9.241 8.69037 8.68375 9.24695 8.00008 9.24695C7.3164 9.24695 6.75915 8.69037 6.75915 8.00006ZM8.00008 5.70316C6.73316 5.70316 5.70914 6.73319 5.70914 8.00006C5.70914 9.26693 6.73316 10.297 8.00008 10.297C9.26699 10.297 10.291 9.26693 10.291 8.00006C10.291 6.73319 9.26699 5.70316 8.00008 5.70316Z"
17
+ />
18
+ </svg>
19
+ </template>
20
+
21
+ <style scoped>
22
+
23
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.39",
3
+ "version": "3.1.40",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",