shopify-nuxt 0.0.1 → 0.0.2
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/LICENSE +21 -0
- package/README.md +0 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/polaris/ShAvatar.vue +4 -2
- package/dist/runtime/components/polaris/ShBadge.vue +4 -2
- package/dist/runtime/components/polaris/ShBanner.vue +4 -2
- package/dist/runtime/components/polaris/ShBox.vue +4 -2
- package/dist/runtime/components/polaris/ShButton.d.vue.ts +11 -3
- package/dist/runtime/components/polaris/ShButton.vue +10 -2
- package/dist/runtime/components/polaris/ShButton.vue.d.ts +11 -3
- package/dist/runtime/components/polaris/ShButtonGroup.vue +4 -2
- package/dist/runtime/components/polaris/ShCheckbox.d.vue.ts +12 -5
- package/dist/runtime/components/polaris/ShCheckbox.vue +22 -5
- package/dist/runtime/components/polaris/ShCheckbox.vue.d.ts +12 -5
- package/dist/runtime/components/polaris/ShChip.vue +4 -2
- package/dist/runtime/components/polaris/ShChoice.vue +4 -2
- package/dist/runtime/components/polaris/ShChoiceList.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShChoiceList.vue +21 -3
- package/dist/runtime/components/polaris/ShChoiceList.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShClickable.vue +4 -2
- package/dist/runtime/components/polaris/ShClickableChip.vue +4 -2
- package/dist/runtime/components/polaris/ShColorField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShColorField.vue +24 -4
- package/dist/runtime/components/polaris/ShColorField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShColorPicker.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShColorPicker.vue +21 -3
- package/dist/runtime/components/polaris/ShColorPicker.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShDateField.d.vue.ts +20 -4
- package/dist/runtime/components/polaris/ShDateField.vue +25 -3
- package/dist/runtime/components/polaris/ShDateField.vue.d.ts +20 -4
- package/dist/runtime/components/polaris/ShDatePicker.d.vue.ts +18 -4
- package/dist/runtime/components/polaris/ShDatePicker.vue +24 -3
- package/dist/runtime/components/polaris/ShDatePicker.vue.d.ts +18 -4
- package/dist/runtime/components/polaris/ShDivider.vue +4 -2
- package/dist/runtime/components/polaris/ShDropZone.d.vue.ts +14 -4
- package/dist/runtime/components/polaris/ShDropZone.vue +22 -3
- package/dist/runtime/components/polaris/ShDropZone.vue.d.ts +14 -4
- package/dist/runtime/components/polaris/ShEmailField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShEmailField.vue +24 -4
- package/dist/runtime/components/polaris/ShEmailField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShGrid.vue +4 -2
- package/dist/runtime/components/polaris/ShGridItem.vue +4 -2
- package/dist/runtime/components/polaris/ShHeading.vue +4 -2
- package/dist/runtime/components/polaris/ShIcon.vue +4 -2
- package/dist/runtime/components/polaris/ShImage.vue +4 -2
- package/dist/runtime/components/polaris/ShLink.vue +4 -2
- package/dist/runtime/components/polaris/ShMenu.vue +4 -2
- package/dist/runtime/components/polaris/ShModal.vue +4 -2
- package/dist/runtime/components/polaris/ShMoneyField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShMoneyField.vue +24 -4
- package/dist/runtime/components/polaris/ShMoneyField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShNumberField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShNumberField.vue +24 -4
- package/dist/runtime/components/polaris/ShNumberField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShOption.vue +4 -2
- package/dist/runtime/components/polaris/ShOptionGroup.vue +4 -2
- package/dist/runtime/components/polaris/ShPage.vue +4 -2
- package/dist/runtime/components/polaris/ShParagraph.vue +4 -2
- package/dist/runtime/components/polaris/ShPasswordField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShPasswordField.vue +24 -4
- package/dist/runtime/components/polaris/ShPasswordField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShPopover.d.vue.ts +1 -0
- package/dist/runtime/components/polaris/ShPopover.vue +5 -2
- package/dist/runtime/components/polaris/ShPopover.vue.d.ts +1 -0
- package/dist/runtime/components/polaris/ShQueryContainer.vue +4 -2
- package/dist/runtime/components/polaris/ShSearchField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShSearchField.vue +24 -4
- package/dist/runtime/components/polaris/ShSearchField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShSection.vue +4 -2
- package/dist/runtime/components/polaris/ShSelect.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShSelect.vue +22 -4
- package/dist/runtime/components/polaris/ShSelect.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShSpinner.vue +4 -2
- package/dist/runtime/components/polaris/ShStack.vue +4 -2
- package/dist/runtime/components/polaris/ShSwitch.d.vue.ts +12 -5
- package/dist/runtime/components/polaris/ShSwitch.vue +22 -5
- package/dist/runtime/components/polaris/ShSwitch.vue.d.ts +12 -5
- package/dist/runtime/components/polaris/ShTable.vue +4 -2
- package/dist/runtime/components/polaris/ShTableHeader.vue +4 -2
- package/dist/runtime/components/polaris/ShTableRow.vue +4 -2
- package/dist/runtime/components/polaris/ShText.vue +4 -2
- package/dist/runtime/components/polaris/ShTextArea.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShTextArea.vue +24 -4
- package/dist/runtime/components/polaris/ShTextArea.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShTextField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShTextField.vue +24 -4
- package/dist/runtime/components/polaris/ShTextField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShThumbnail.vue +4 -2
- package/dist/runtime/components/polaris/ShTooltip.d.vue.ts +4 -1
- package/dist/runtime/components/polaris/ShTooltip.vue +6 -1
- package/dist/runtime/components/polaris/ShTooltip.vue.d.ts +4 -1
- package/dist/runtime/components/polaris/ShUrlField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShUrlField.vue +24 -4
- package/dist/runtime/components/polaris/ShUrlField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/utils.d.ts +7 -0
- package/dist/runtime/components/polaris/utils.js +13 -0
- package/dist/runtime/composables/useShopifyFetch.js +3 -1
- package/dist/runtime/server/utils/authenticate-admin.js +21 -6
- package/package.json +2 -1
- package/dist/runtime/components/ShopifyAppProvider.d.vue.ts +0 -13
- package/dist/runtime/components/ShopifyAppProvider.vue +0 -11
- package/dist/runtime/components/ShopifyAppProvider.vue.d.ts +0 -13
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
maxLength?: number;
|
|
3
3
|
minLength?: number;
|
|
4
|
-
value?: string;
|
|
5
4
|
autocomplete?: string;
|
|
6
5
|
defaultValue?: string;
|
|
7
6
|
details?: string;
|
|
@@ -14,12 +13,25 @@ type __VLS_Props = {
|
|
|
14
13
|
disabled?: boolean;
|
|
15
14
|
id?: string;
|
|
16
15
|
name?: string;
|
|
16
|
+
modelValue?: string;
|
|
17
17
|
};
|
|
18
|
-
declare var
|
|
18
|
+
declare var __VLS_13: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
|
-
default?: (props: typeof
|
|
20
|
+
default?: (props: typeof __VLS_13) => any;
|
|
21
21
|
};
|
|
22
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (v: string) => void;
|
|
24
|
+
blur: (event: InputEvent) => void;
|
|
25
|
+
change: (event: InputEvent) => void;
|
|
26
|
+
focus: (event: InputEvent) => void;
|
|
27
|
+
input: (event: InputEvent) => void;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
30
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
31
|
+
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
32
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
36
|
declare const _default: typeof __VLS_export;
|
|
25
37
|
export default _default;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-section v-bind="
|
|
2
|
+
<s-section v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-section>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShSection", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
accessibilityLabel: { type: String, required: false },
|
|
11
12
|
heading: { type: String, required: false },
|
|
12
13
|
padding: { type: String, required: false }
|
|
13
14
|
});
|
|
15
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
14
16
|
</script>
|
|
@@ -6,16 +6,24 @@ type __VLS_Props = {
|
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
9
|
-
value?: string;
|
|
10
9
|
disabled?: boolean;
|
|
11
10
|
id?: string;
|
|
12
11
|
name?: string;
|
|
12
|
+
modelValue?: string;
|
|
13
13
|
};
|
|
14
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_11) => any;
|
|
17
17
|
};
|
|
18
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (v: string) => void;
|
|
20
|
+
change: (event: Event) => void;
|
|
21
|
+
input: (event: Event) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
24
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
28
|
declare const _default: typeof __VLS_export;
|
|
21
29
|
export default _default;
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-select
|
|
2
|
+
<s-select
|
|
3
|
+
v-bind="polarisAttrs"
|
|
4
|
+
:value="modelValue"
|
|
5
|
+
@change="
|
|
6
|
+
(evt) => {
|
|
7
|
+
emit('change', evt);
|
|
8
|
+
value = evt.currentTarget?.value || '';
|
|
9
|
+
}
|
|
10
|
+
"
|
|
11
|
+
@input="emit('input', $event)"
|
|
12
|
+
>
|
|
3
13
|
<slot />
|
|
4
14
|
</s-select>
|
|
5
15
|
</template>
|
|
6
16
|
|
|
7
17
|
<script setup>
|
|
18
|
+
import { computed } from "vue";
|
|
19
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
20
|
defineOptions({ name: "ShSelect", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
21
|
+
const props = defineProps({
|
|
10
22
|
icon: { type: String, required: false },
|
|
11
23
|
details: { type: String, required: false },
|
|
12
24
|
error: { type: String, required: false },
|
|
@@ -14,9 +26,15 @@ defineProps({
|
|
|
14
26
|
placeholder: { type: String, required: false },
|
|
15
27
|
required: { type: Boolean, required: false },
|
|
16
28
|
labelAccessibilityVisibility: { type: String, required: false },
|
|
17
|
-
value: { type: String, required: false },
|
|
18
29
|
disabled: { type: Boolean, required: false },
|
|
19
30
|
id: { type: String, required: false },
|
|
20
|
-
name: { type: String, required: false }
|
|
31
|
+
name: { type: String, required: false },
|
|
32
|
+
modelValue: { type: String, required: false }
|
|
21
33
|
});
|
|
34
|
+
const emit = defineEmits(["update:modelValue", "change", "input"]);
|
|
35
|
+
const value = computed({
|
|
36
|
+
get: () => props.modelValue,
|
|
37
|
+
set: (v) => emit("update:modelValue", v)
|
|
38
|
+
});
|
|
39
|
+
const polarisAttrs = usePolarisAttrs(props, ["modelValue"]);
|
|
22
40
|
</script>
|
|
@@ -6,16 +6,24 @@ type __VLS_Props = {
|
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
9
|
-
value?: string;
|
|
10
9
|
disabled?: boolean;
|
|
11
10
|
id?: string;
|
|
12
11
|
name?: string;
|
|
12
|
+
modelValue?: string;
|
|
13
13
|
};
|
|
14
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {};
|
|
15
15
|
type __VLS_Slots = {} & {
|
|
16
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_11) => any;
|
|
17
17
|
};
|
|
18
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (v: string) => void;
|
|
20
|
+
change: (event: Event) => void;
|
|
21
|
+
input: (event: Event) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
24
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
28
|
declare const _default: typeof __VLS_export;
|
|
21
29
|
export default _default;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-spinner v-bind="
|
|
2
|
+
<s-spinner v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-spinner>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShSpinner", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
accessibilityLabel: { type: String, required: false },
|
|
11
12
|
size: { type: String, required: false }
|
|
12
13
|
});
|
|
14
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
13
15
|
</script>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-stack v-bind="
|
|
2
|
+
<s-stack v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-stack>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShStack", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
direction: { type: String, required: false },
|
|
11
12
|
justifyContent: { type: String, required: false },
|
|
12
13
|
alignItems: { type: String, required: false },
|
|
@@ -39,4 +40,5 @@ defineProps({
|
|
|
39
40
|
accessibilityVisibility: { type: String, required: false },
|
|
40
41
|
display: { type: String, required: false }
|
|
41
42
|
});
|
|
43
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
42
44
|
</script>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
value?: string;
|
|
5
3
|
defaultChecked?: boolean;
|
|
6
4
|
accessibilityLabel?: string;
|
|
7
5
|
details?: string;
|
|
@@ -11,12 +9,21 @@ type __VLS_Props = {
|
|
|
11
9
|
disabled?: boolean;
|
|
12
10
|
id?: string;
|
|
13
11
|
name?: string;
|
|
12
|
+
modelValue?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {};
|
|
16
15
|
type __VLS_Slots = {} & {
|
|
17
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_11) => any;
|
|
18
17
|
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (v: boolean) => void;
|
|
20
|
+
change: (event: Event) => void;
|
|
21
|
+
input: (event: Event) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
24
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
28
|
declare const _default: typeof __VLS_export;
|
|
22
29
|
export default _default;
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-switch
|
|
2
|
+
<s-switch
|
|
3
|
+
v-bind="polarisAttrs"
|
|
4
|
+
:checked="modelValue"
|
|
5
|
+
@change="
|
|
6
|
+
(evt) => {
|
|
7
|
+
emit('change', evt);
|
|
8
|
+
value = evt.currentTarget?.checked || false;
|
|
9
|
+
}
|
|
10
|
+
"
|
|
11
|
+
@input="emit('input', $event)"
|
|
12
|
+
>
|
|
3
13
|
<slot />
|
|
4
14
|
</s-switch>
|
|
5
15
|
</template>
|
|
6
16
|
|
|
7
17
|
<script setup>
|
|
18
|
+
import { computed } from "vue";
|
|
19
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
20
|
defineOptions({ name: "ShSwitch", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
21
|
+
const props = defineProps({
|
|
10
22
|
labelAccessibilityVisibility: { type: String, required: false },
|
|
11
|
-
checked: { type: Boolean, required: false },
|
|
12
|
-
value: { type: String, required: false },
|
|
13
23
|
defaultChecked: { type: Boolean, required: false },
|
|
14
24
|
accessibilityLabel: { type: String, required: false },
|
|
15
25
|
details: { type: String, required: false },
|
|
@@ -18,6 +28,13 @@ defineProps({
|
|
|
18
28
|
required: { type: Boolean, required: false },
|
|
19
29
|
disabled: { type: Boolean, required: false },
|
|
20
30
|
id: { type: String, required: false },
|
|
21
|
-
name: { type: String, required: false }
|
|
31
|
+
name: { type: String, required: false },
|
|
32
|
+
modelValue: { type: Boolean, required: false }
|
|
22
33
|
});
|
|
34
|
+
const emit = defineEmits(["update:modelValue", "change", "input"]);
|
|
35
|
+
const value = computed({
|
|
36
|
+
get: () => props.modelValue,
|
|
37
|
+
set: (v) => emit("update:modelValue", v)
|
|
38
|
+
});
|
|
39
|
+
const polarisAttrs = usePolarisAttrs(props, ["modelValue"]);
|
|
23
40
|
</script>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
value?: string;
|
|
5
3
|
defaultChecked?: boolean;
|
|
6
4
|
accessibilityLabel?: string;
|
|
7
5
|
details?: string;
|
|
@@ -11,12 +9,21 @@ type __VLS_Props = {
|
|
|
11
9
|
disabled?: boolean;
|
|
12
10
|
id?: string;
|
|
13
11
|
name?: string;
|
|
12
|
+
modelValue?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare var
|
|
14
|
+
declare var __VLS_11: {};
|
|
16
15
|
type __VLS_Slots = {} & {
|
|
17
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_11) => any;
|
|
18
17
|
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (v: boolean) => void;
|
|
20
|
+
change: (event: Event) => void;
|
|
21
|
+
input: (event: Event) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
24
|
+
onInput?: ((event: Event) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
28
|
declare const _default: typeof __VLS_export;
|
|
22
29
|
export default _default;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-table v-bind="
|
|
2
|
+
<s-table v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-table>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShTable", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
variant: { type: String, required: false },
|
|
11
12
|
loading: { type: Boolean, required: false },
|
|
12
13
|
paginate: { type: Boolean, required: false },
|
|
13
14
|
hasPreviousPage: { type: Boolean, required: false },
|
|
14
15
|
hasNextPage: { type: Boolean, required: false }
|
|
15
16
|
});
|
|
17
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
16
18
|
</script>
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-table-header v-bind="
|
|
2
|
+
<s-table-header v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-table-header>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShTableHeader", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
listSlot: { type: String, required: false },
|
|
11
12
|
format: { type: String, required: false }
|
|
12
13
|
});
|
|
14
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
13
15
|
</script>
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-table-row v-bind="
|
|
2
|
+
<s-table-row v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-table-row>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShTableRow", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
clickDelegate: { type: String, required: false }
|
|
11
12
|
});
|
|
13
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
12
14
|
</script>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-text v-bind="
|
|
2
|
+
<s-text v-bind="polarisAttrs">
|
|
3
3
|
<slot />
|
|
4
4
|
</s-text>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
9
|
defineOptions({ name: "ShText", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
10
|
+
const props = defineProps({
|
|
10
11
|
fontVariantNumeric: { type: String, required: false },
|
|
11
12
|
color: { type: String, required: false },
|
|
12
13
|
tone: { type: String, required: false },
|
|
@@ -15,4 +16,5 @@ defineProps({
|
|
|
15
16
|
accessibilityVisibility: { type: String, required: false },
|
|
16
17
|
interestFor: { type: String, required: false }
|
|
17
18
|
});
|
|
19
|
+
const polarisAttrs = usePolarisAttrs(props);
|
|
18
20
|
</script>
|
|
@@ -2,7 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
maxLength?: number;
|
|
3
3
|
minLength?: number;
|
|
4
4
|
rows?: number;
|
|
5
|
-
value?: string;
|
|
6
5
|
autocomplete?: string;
|
|
7
6
|
defaultValue?: string;
|
|
8
7
|
details?: string;
|
|
@@ -15,12 +14,25 @@ type __VLS_Props = {
|
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
id?: string;
|
|
17
16
|
name?: string;
|
|
17
|
+
modelValue?: string;
|
|
18
18
|
};
|
|
19
|
-
declare var
|
|
19
|
+
declare var __VLS_13: {};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
|
-
default?: (props: typeof
|
|
21
|
+
default?: (props: typeof __VLS_13) => any;
|
|
22
22
|
};
|
|
23
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (v: string) => void;
|
|
25
|
+
blur: (event: InputEvent) => void;
|
|
26
|
+
change: (event: InputEvent) => void;
|
|
27
|
+
focus: (event: InputEvent) => void;
|
|
28
|
+
input: (event: InputEvent) => void;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
31
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
32
|
+
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
33
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
37
|
declare const _default: typeof __VLS_export;
|
|
26
38
|
export default _default;
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-text-area
|
|
2
|
+
<s-text-area
|
|
3
|
+
v-bind="polarisAttrs"
|
|
4
|
+
:value="modelValue"
|
|
5
|
+
@blur="emit('blur', $event)"
|
|
6
|
+
@change="emit('change', $event)"
|
|
7
|
+
@focus="emit('focus', $event)"
|
|
8
|
+
@input="
|
|
9
|
+
(evt) => {
|
|
10
|
+
emit('input', evt);
|
|
11
|
+
value = evt.currentTarget?.value || '';
|
|
12
|
+
}
|
|
13
|
+
"
|
|
14
|
+
>
|
|
3
15
|
<slot />
|
|
4
16
|
</s-text-area>
|
|
5
17
|
</template>
|
|
6
18
|
|
|
7
19
|
<script setup>
|
|
20
|
+
import { computed } from "vue";
|
|
21
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
22
|
defineOptions({ name: "ShTextArea", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
23
|
+
const props = defineProps({
|
|
10
24
|
maxLength: { type: Number, required: false },
|
|
11
25
|
minLength: { type: Number, required: false },
|
|
12
26
|
rows: { type: Number, required: false },
|
|
13
|
-
value: { type: String, required: false },
|
|
14
27
|
autocomplete: { type: String, required: false },
|
|
15
28
|
defaultValue: { type: String, required: false },
|
|
16
29
|
details: { type: String, required: false },
|
|
@@ -22,6 +35,13 @@ defineProps({
|
|
|
22
35
|
required: { type: Boolean, required: false },
|
|
23
36
|
disabled: { type: Boolean, required: false },
|
|
24
37
|
id: { type: String, required: false },
|
|
25
|
-
name: { type: String, required: false }
|
|
38
|
+
name: { type: String, required: false },
|
|
39
|
+
modelValue: { type: String, required: false }
|
|
26
40
|
});
|
|
41
|
+
const emit = defineEmits(["update:modelValue", "blur", "change", "focus", "input"]);
|
|
42
|
+
const value = computed({
|
|
43
|
+
get: () => props.modelValue,
|
|
44
|
+
set: (v) => emit("update:modelValue", v)
|
|
45
|
+
});
|
|
46
|
+
const polarisAttrs = usePolarisAttrs(props, ["modelValue"]);
|
|
27
47
|
</script>
|
|
@@ -2,7 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
maxLength?: number;
|
|
3
3
|
minLength?: number;
|
|
4
4
|
rows?: number;
|
|
5
|
-
value?: string;
|
|
6
5
|
autocomplete?: string;
|
|
7
6
|
defaultValue?: string;
|
|
8
7
|
details?: string;
|
|
@@ -15,12 +14,25 @@ type __VLS_Props = {
|
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
id?: string;
|
|
17
16
|
name?: string;
|
|
17
|
+
modelValue?: string;
|
|
18
18
|
};
|
|
19
|
-
declare var
|
|
19
|
+
declare var __VLS_13: {};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
|
-
default?: (props: typeof
|
|
21
|
+
default?: (props: typeof __VLS_13) => any;
|
|
22
22
|
};
|
|
23
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (v: string) => void;
|
|
25
|
+
blur: (event: InputEvent) => void;
|
|
26
|
+
change: (event: InputEvent) => void;
|
|
27
|
+
focus: (event: InputEvent) => void;
|
|
28
|
+
input: (event: InputEvent) => void;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
31
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
32
|
+
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
33
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
37
|
declare const _default: typeof __VLS_export;
|
|
26
38
|
export default _default;
|
|
@@ -4,7 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
minLength?: number;
|
|
5
5
|
prefix?: string;
|
|
6
6
|
suffix?: string;
|
|
7
|
-
value?: string;
|
|
8
7
|
autocomplete?: string;
|
|
9
8
|
defaultValue?: string;
|
|
10
9
|
details?: string;
|
|
@@ -17,12 +16,25 @@ type __VLS_Props = {
|
|
|
17
16
|
disabled?: boolean;
|
|
18
17
|
id?: string;
|
|
19
18
|
name?: string;
|
|
19
|
+
modelValue?: string;
|
|
20
20
|
};
|
|
21
|
-
declare var
|
|
21
|
+
declare var __VLS_13: {};
|
|
22
22
|
type __VLS_Slots = {} & {
|
|
23
|
-
default?: (props: typeof
|
|
23
|
+
default?: (props: typeof __VLS_13) => any;
|
|
24
24
|
};
|
|
25
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (v: string) => void;
|
|
27
|
+
blur: (event: InputEvent) => void;
|
|
28
|
+
change: (event: InputEvent) => void;
|
|
29
|
+
focus: (event: InputEvent) => void;
|
|
30
|
+
input: (event: InputEvent) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
33
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
34
|
+
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
35
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
36
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
39
|
declare const _default: typeof __VLS_export;
|
|
28
40
|
export default _default;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<s-text-field
|
|
2
|
+
<s-text-field
|
|
3
|
+
v-bind="polarisAttrs"
|
|
4
|
+
:value="modelValue"
|
|
5
|
+
@blur="emit('blur', $event)"
|
|
6
|
+
@change="emit('change', $event)"
|
|
7
|
+
@focus="emit('focus', $event)"
|
|
8
|
+
@input="
|
|
9
|
+
(evt) => {
|
|
10
|
+
emit('input', evt);
|
|
11
|
+
value = evt.currentTarget?.value || '';
|
|
12
|
+
}
|
|
13
|
+
"
|
|
14
|
+
>
|
|
3
15
|
<slot />
|
|
4
16
|
</s-text-field>
|
|
5
17
|
</template>
|
|
6
18
|
|
|
7
19
|
<script setup>
|
|
20
|
+
import { computed } from "vue";
|
|
21
|
+
import { usePolarisAttrs } from "./utils";
|
|
8
22
|
defineOptions({ name: "ShTextField", inheritAttrs: false });
|
|
9
|
-
defineProps({
|
|
23
|
+
const props = defineProps({
|
|
10
24
|
icon: { type: String, required: false },
|
|
11
25
|
maxLength: { type: Number, required: false },
|
|
12
26
|
minLength: { type: Number, required: false },
|
|
13
27
|
prefix: { type: String, required: false },
|
|
14
28
|
suffix: { type: String, required: false },
|
|
15
|
-
value: { type: String, required: false },
|
|
16
29
|
autocomplete: { type: String, required: false },
|
|
17
30
|
defaultValue: { type: String, required: false },
|
|
18
31
|
details: { type: String, required: false },
|
|
@@ -24,6 +37,13 @@ defineProps({
|
|
|
24
37
|
required: { type: Boolean, required: false },
|
|
25
38
|
disabled: { type: Boolean, required: false },
|
|
26
39
|
id: { type: String, required: false },
|
|
27
|
-
name: { type: String, required: false }
|
|
40
|
+
name: { type: String, required: false },
|
|
41
|
+
modelValue: { type: String, required: false }
|
|
28
42
|
});
|
|
43
|
+
const emit = defineEmits(["update:modelValue", "blur", "change", "focus", "input"]);
|
|
44
|
+
const value = computed({
|
|
45
|
+
get: () => props.modelValue,
|
|
46
|
+
set: (v) => emit("update:modelValue", v)
|
|
47
|
+
});
|
|
48
|
+
const polarisAttrs = usePolarisAttrs(props, ["modelValue"]);
|
|
29
49
|
</script>
|
|
@@ -4,7 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
minLength?: number;
|
|
5
5
|
prefix?: string;
|
|
6
6
|
suffix?: string;
|
|
7
|
-
value?: string;
|
|
8
7
|
autocomplete?: string;
|
|
9
8
|
defaultValue?: string;
|
|
10
9
|
details?: string;
|
|
@@ -17,12 +16,25 @@ type __VLS_Props = {
|
|
|
17
16
|
disabled?: boolean;
|
|
18
17
|
id?: string;
|
|
19
18
|
name?: string;
|
|
19
|
+
modelValue?: string;
|
|
20
20
|
};
|
|
21
|
-
declare var
|
|
21
|
+
declare var __VLS_13: {};
|
|
22
22
|
type __VLS_Slots = {} & {
|
|
23
|
-
default?: (props: typeof
|
|
23
|
+
default?: (props: typeof __VLS_13) => any;
|
|
24
24
|
};
|
|
25
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (v: string) => void;
|
|
27
|
+
blur: (event: InputEvent) => void;
|
|
28
|
+
change: (event: InputEvent) => void;
|
|
29
|
+
focus: (event: InputEvent) => void;
|
|
30
|
+
input: (event: InputEvent) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
33
|
+
onChange?: ((event: InputEvent) => any) | undefined;
|
|
34
|
+
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
35
|
+
onInput?: ((event: InputEvent) => any) | undefined;
|
|
36
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
39
|
declare const _default: typeof __VLS_export;
|
|
28
40
|
export default _default;
|