adata-ui 4.0.33 → 4.0.35

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": "4.0.33",
8
+ "version": "4.0.35",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -3,6 +3,9 @@ import AButton from "../button/Button.vue";
3
3
  import { useAppConfig, useI18n } from "#imports";
4
4
  import { navigateTo } from "#app";
5
5
  import { useLocalePath } from "#i18n";
6
+ const props = defineProps({
7
+ redirectPath: { type: String, required: true }
8
+ });
6
9
  const emit = defineEmits(["close"]);
7
10
  const { t } = useI18n();
8
11
  const appConfig = useAppConfig();
@@ -10,7 +13,7 @@ const mode = appConfig.adataUI.mode;
10
13
  const localePath = useLocalePath();
11
14
  function logIn() {
12
15
  const fullPath = encodeURIComponent(window.location.toString());
13
- return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}`), { external: true });
16
+ return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}/${props.redirectPath}`), { external: true });
14
17
  }
15
18
  function register() {
16
19
  return navigateTo(localePath(`https://id.${mode}.kz/register`), { external: true });
@@ -1,2 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ redirectPath: string;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
5
  export default _default;
@@ -13,7 +13,8 @@ const props = defineProps({
13
13
  align: { type: String, required: false, default: "center" },
14
14
  block: { type: Boolean, required: false, default: false },
15
15
  wrapper: { type: String, required: false, default: "row" },
16
- countView: { type: String, required: false, default: "badge" }
16
+ countView: { type: String, required: false, default: "badge" },
17
+ disabled: { type: Boolean, required: false }
17
18
  });
18
19
  const tabs = ref(null);
19
20
  const activeTab = defineModel({ type: null, ...{ default: 1 } });
@@ -92,10 +93,10 @@ onMounted(() => {
92
93
  class="scroll-container overflow-auto whitespace-nowrap"
93
94
  :class="props.wrapper === 'row' ? 'flex gap-1' : 'flex flex-col gap-1'"
94
95
  >
95
- <a-button
96
+ <button
96
97
  v-for="option in options"
97
98
  :key="option.key"
98
- :disabled="option.disabled"
99
+ :disabled="option.disabled || disabled"
99
100
  :data-active="activeTab === option.key"
100
101
  :class="[
101
102
  activeTab === option.key ? selectedClasses() : defaultClasses(!!option.disabled),
@@ -127,7 +128,7 @@ onMounted(() => {
127
128
  </template>
128
129
  </span>
129
130
  </slot>
130
- </a-button>
131
+ </button>
131
132
  </div>
132
133
  </template>
133
134
 
@@ -8,16 +8,17 @@ interface Props {
8
8
  block?: boolean;
9
9
  wrapper?: 'column' | 'row';
10
10
  countView?: 'badge' | 'brackets';
11
+ disabled?: boolean;
11
12
  }
12
13
  type __VLS_Props = Props;
13
14
  type __VLS_PublicProps = __VLS_Props & {
14
15
  modelValue?: any;
15
16
  };
16
- declare var __VLS_8: {
17
+ declare var __VLS_1: {
17
18
  option: any;
18
19
  };
19
20
  type __VLS_Slots = {} & {
20
- option?: (props: typeof __VLS_8) => any;
21
+ option?: (props: typeof __VLS_1) => any;
21
22
  };
22
23
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
23
24
  size: "lg" | "sm" | "xs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.33",
3
+ "version": "4.0.35",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",