@antify/ui 2.2.1 → 2.2.4
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/components/AntAccordion.vue +25 -12
- package/dist/components/AntAccordionItem.vue +28 -13
- package/dist/components/AntAlert.vue +25 -15
- package/dist/components/AntCard.vue +26 -14
- package/dist/components/AntContent.vue +4 -4
- package/dist/components/AntDropdown.vue +41 -23
- package/dist/components/AntIcon.vue +18 -6
- package/dist/components/AntKeycap.vue +31 -16
- package/dist/components/AntListGroup.vue +13 -11
- package/dist/components/AntListGroupItem.vue +19 -9
- package/dist/components/AntModal.vue +26 -15
- package/dist/components/AntPagination.vue +28 -15
- package/dist/components/AntPopover.vue +74 -51
- package/dist/components/AntSkeleton.vue +8 -4
- package/dist/components/AntSpinner.vue +14 -6
- package/dist/components/AntTag.vue +25 -13
- package/dist/components/AntToast.vue +19 -11
- package/dist/components/AntToaster.vue +13 -5
- package/dist/components/AntTooltip.vue +78 -54
- package/dist/components/__stories/AntAccordion.stories.js +4 -4
- package/dist/components/__stories/AntAccordion.stories.mjs +50 -17
- package/dist/components/__stories/AntAlert.stories.mjs +18 -5
- package/dist/components/__stories/AntCard.stories.mjs +36 -10
- package/dist/components/__stories/AntContent.stories.mjs +14 -4
- package/dist/components/__stories/AntDropdown.stories.mjs +20 -4
- package/dist/components/__stories/AntIcon.stories.mjs +38 -12
- package/dist/components/__stories/AntKeycap.stories.mjs +35 -10
- package/dist/components/__stories/AntListGroup.stories.d.ts +1 -1
- package/dist/components/__stories/AntListGroup.stories.mjs +22 -4
- package/dist/components/__stories/AntListGroupItem.stories.mjs +27 -8
- package/dist/components/__stories/AntModal.stories.mjs +17 -4
- package/dist/components/__stories/AntPagination.stories.mjs +21 -6
- package/dist/components/__stories/AntPopover.stories.mjs +20 -4
- package/dist/components/__stories/AntSkeleton.stories.mjs +17 -5
- package/dist/components/__stories/AntSpinner.stories.mjs +33 -9
- package/dist/components/__stories/AntTag.stories.mjs +28 -8
- package/dist/components/__stories/AntToast.stories.mjs +19 -5
- package/dist/components/__stories/AntToaster.stories.d.ts +1 -1
- package/dist/components/__stories/AntToaster.stories.mjs +35 -9
- package/dist/components/__stories/AntTooltip.stories.js +1 -1
- package/dist/components/__stories/AntTooltip.stories.mjs +44 -13
- package/dist/components/buttons/AntActionButton.vue +38 -29
- package/dist/components/buttons/AntButton.vue +34 -13
- package/dist/components/buttons/AntCreateButton.vue +11 -4
- package/dist/components/buttons/AntDeleteButton.vue +11 -4
- package/dist/components/buttons/AntDuplicateButton.vue +11 -4
- package/dist/components/buttons/AntEditButton.vue +11 -4
- package/dist/components/buttons/AntSaveAndNewButton.vue +11 -4
- package/dist/components/buttons/AntSaveButton.vue +11 -4
- package/dist/components/buttons/__stories/AntActionButton.stories.mjs +35 -10
- package/dist/components/buttons/__stories/AntButton.stories.mjs +77 -23
- package/dist/components/buttons/__stories/AntCreateButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntDeleteButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntDuplicateButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntEditButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntSaveButton.stories.mjs +25 -7
- package/dist/components/crud/AntCrud.vue +6 -6
- package/dist/components/crud/AntCrudDetail.vue +8 -5
- package/dist/components/crud/AntCrudDetailActions.vue +14 -8
- package/dist/components/crud/AntCrudDetailNav.vue +21 -13
- package/dist/components/crud/AntCrudTableFilter.vue +29 -17
- package/dist/components/crud/AntCrudTableNav.vue +36 -22
- package/dist/components/crud/__stories/AntCrud.stories.mjs +17 -5
- package/dist/components/crud/__stories/AntCrudDetail.stories.mjs +11 -3
- package/dist/components/crud/__stories/AntCrudDetailActions.stories.mjs +10 -2
- package/dist/components/crud/__stories/AntCrudDetailNav.stories.mjs +11 -3
- package/dist/components/crud/__stories/AntCrudTableFilter.stories.mjs +17 -5
- package/dist/components/crud/__stories/AntCrudTableNav.stories.mjs +23 -7
- package/dist/components/dialogs/AntDeleteDialog.vue +13 -5
- package/dist/components/dialogs/AntDialog.vue +23 -13
- package/dist/components/dialogs/__stories/AndDeleteDialog.stories.mjs +12 -3
- package/dist/components/dialogs/__stories/AntDialog.stories.mjs +28 -7
- package/dist/components/forms/AntField.vue +18 -7
- package/dist/components/forms/AntFormGroup.vue +9 -5
- package/dist/components/forms/AntFormGroupLabel.vue +1 -1
- package/dist/components/forms/__stories/AntField.stories.mjs +37 -9
- package/dist/components/forms/__stories/AntFormGroup.stories.mjs +20 -5
- package/dist/components/forms/__stories/AntFormGroupLabel.stories.mjs +11 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/components/inputs/AntCheckbox.vue +60 -36
- package/dist/components/inputs/AntCheckboxGroup.vue +39 -15
- package/dist/components/inputs/AntDateInput.vue +35 -12
- package/dist/components/inputs/AntNumberInput.vue +33 -12
- package/dist/components/inputs/AntPasswordInput.vue +32 -11
- package/dist/components/inputs/AntRadio.vue +57 -34
- package/dist/components/inputs/AntRadioGroup.vue +60 -35
- package/dist/components/inputs/AntRangeSlider.vue +31 -12
- package/dist/components/inputs/AntSearch.vue +19 -7
- package/dist/components/inputs/AntSelect.vue +107 -83
- package/dist/components/inputs/AntSwitch.vue +35 -18
- package/dist/components/inputs/AntSwitcher.vue +30 -15
- package/dist/components/inputs/AntTagInput.vue +91 -61
- package/dist/components/inputs/AntTextInput.vue +31 -11
- package/dist/components/inputs/AntTextarea.vue +53 -25
- package/dist/components/inputs/AntUnitInput.vue +33 -12
- package/dist/components/inputs/Elements/AntBaseInput.vue +47 -18
- package/dist/components/inputs/Elements/AntInputDescription.vue +16 -8
- package/dist/components/inputs/Elements/AntInputLabel.vue +13 -5
- package/dist/components/inputs/Elements/AntInputLimiter.vue +13 -5
- package/dist/components/inputs/Elements/AntSelectMenu.vue +65 -41
- package/dist/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +104 -27
- package/dist/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +33 -9
- package/dist/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +34 -9
- package/dist/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +33 -9
- package/dist/components/inputs/Elements/index.d.ts +1 -1
- package/dist/components/inputs/__stories/AntCheckbox.stories.mjs +34 -9
- package/dist/components/inputs/__stories/AntCheckboxGroup.stories.mjs +45 -21
- package/dist/components/inputs/__stories/AntDateInput.stories.mjs +52 -14
- package/dist/components/inputs/__stories/AntNumberInput.stories.mjs +66 -17
- package/dist/components/inputs/__stories/AntPasswordInput.stories.mjs +51 -13
- package/dist/components/inputs/__stories/AntRadioGroup.stories.mjs +45 -12
- package/dist/components/inputs/__stories/AntRangeSlider.stories.mjs +16 -5
- package/dist/components/inputs/__stories/AntSearch.stories.mjs +41 -10
- package/dist/components/inputs/__stories/AntSelect.stories.mjs +59 -15
- package/dist/components/inputs/__stories/AntSwitch.stories.js +126 -102
- package/dist/components/inputs/__stories/AntSwitch.stories.mjs +162 -112
- package/dist/components/inputs/__stories/AntSwitcher.stories.mjs +38 -10
- package/dist/components/inputs/__stories/AntTagInput.stories.mjs +46 -12
- package/dist/components/inputs/__stories/AntTextInput.stories.mjs +59 -16
- package/dist/components/inputs/__stories/AntTextarea.stories.mjs +47 -13
- package/dist/components/inputs/__stories/AntUnitInput.stories.mjs +46 -12
- package/dist/components/layouts/AntNavLeftLayout.vue +12 -6
- package/dist/components/layouts/__stories/AntNavLeftLayout.stories.mjs +10 -2
- package/dist/components/navbar/AntNavbar.vue +7 -3
- package/dist/components/navbar/AntNavbarItem.vue +12 -6
- package/dist/components/navbar/__stories/AntNavbar.stories.mjs +59 -37
- package/dist/components/table/AntCollapsibleTableRowContent.vue +7 -5
- package/dist/components/table/AntTable.vue +210 -165
- package/dist/components/table/AntTableSkeleton.vue +126 -0
- package/dist/components/table/AntTableSortButton.vue +22 -13
- package/dist/components/table/AntTd.vue +21 -17
- package/dist/components/table/AntTh.vue +19 -12
- package/dist/components/table/__stories/AntTable.stories.js +1 -1
- package/dist/components/table/__stories/AntTable.stories.mjs +190 -62
- package/dist/components/tabs/AntTabItem.vue +20 -8
- package/dist/components/tabs/AntTabs.vue +35 -21
- package/dist/components/tabs/__stories/AntTabItem.stories.mjs +23 -7
- package/dist/components/tabs/__stories/AntTabs.stories.mjs +45 -13
- package/dist/components/transitions/AntTransitionCollapseHeight.vue +1 -1
- package/dist/composables/useToaster.mjs +25 -7
- package/dist/index.css +1 -0
- package/dist/utils.mjs +3 -1
- package/package.json +23 -16
- package/dist/tailwind.config.d.ts +0 -3
- package/dist/tailwind.config.js +0 -198
- package/dist/tailwind.config.mjs +0 -189
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
import AntInputDescription from "../AntInputDescription.vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Size
|
|
4
|
+
} from "../../../../enums/Size.enum.mjs";
|
|
5
|
+
import {
|
|
6
|
+
InputState
|
|
7
|
+
} from "../../../../enums/index.mjs";
|
|
4
8
|
const meta = {
|
|
5
9
|
title: "Inputs/Elements/Ant Input Description",
|
|
6
10
|
component: AntInputDescription,
|
|
7
|
-
parameters: {
|
|
11
|
+
parameters: {
|
|
12
|
+
controls: {
|
|
13
|
+
sort: "requiredFirst"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
argTypes: {
|
|
9
17
|
size: {
|
|
10
|
-
control: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select"
|
|
20
|
+
},
|
|
11
21
|
options: Object.values(Size),
|
|
12
|
-
table: {
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: Size.md
|
|
25
|
+
}
|
|
26
|
+
}
|
|
13
27
|
},
|
|
14
28
|
skeleton: {
|
|
15
29
|
control: "boolean",
|
|
16
|
-
table: {
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
17
35
|
},
|
|
18
36
|
state: {
|
|
19
|
-
control: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "select"
|
|
39
|
+
},
|
|
20
40
|
options: Object.values(InputState)
|
|
21
41
|
}
|
|
22
42
|
}
|
|
@@ -24,9 +44,13 @@ const meta = {
|
|
|
24
44
|
export default meta;
|
|
25
45
|
export const Docs = {
|
|
26
46
|
render: (args) => ({
|
|
27
|
-
components: {
|
|
47
|
+
components: {
|
|
48
|
+
AntInputDescription
|
|
49
|
+
},
|
|
28
50
|
setup() {
|
|
29
|
-
return {
|
|
51
|
+
return {
|
|
52
|
+
args
|
|
53
|
+
};
|
|
30
54
|
},
|
|
31
55
|
template: '<div class="p-4"><AntInputDescription v-bind="args">Description</AntInputDescription></div>'
|
|
32
56
|
}),
|
|
@@ -1,30 +1,50 @@
|
|
|
1
1
|
import AntInputLabel from "../AntInputLabel.vue";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Size
|
|
4
|
+
} from "../../../../enums/Size.enum.mjs";
|
|
3
5
|
import AntBaseInput from "../AntBaseInput.vue";
|
|
4
6
|
const meta = {
|
|
5
7
|
title: "Inputs/Elements/Ant Input Label",
|
|
6
8
|
component: AntInputLabel,
|
|
7
|
-
parameters: {
|
|
9
|
+
parameters: {
|
|
10
|
+
controls: {
|
|
11
|
+
sort: "requiredFirst"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
8
14
|
argTypes: {
|
|
9
15
|
label: {
|
|
10
16
|
control: "text"
|
|
11
17
|
},
|
|
12
18
|
size: {
|
|
13
|
-
control: {
|
|
19
|
+
control: {
|
|
20
|
+
type: "select"
|
|
21
|
+
},
|
|
14
22
|
options: Object.values(Size),
|
|
15
|
-
table: {
|
|
23
|
+
table: {
|
|
24
|
+
defaultValue: {
|
|
25
|
+
summary: Size.md
|
|
26
|
+
}
|
|
27
|
+
}
|
|
16
28
|
},
|
|
17
29
|
skeleton: {
|
|
18
30
|
control: "boolean",
|
|
19
|
-
table: {
|
|
31
|
+
table: {
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
20
36
|
}
|
|
21
37
|
}
|
|
22
38
|
};
|
|
23
39
|
export default meta;
|
|
24
40
|
export const Docs = {
|
|
25
41
|
render: (args) => ({
|
|
26
|
-
components: {
|
|
27
|
-
|
|
42
|
+
components: {
|
|
43
|
+
AntInputLabel
|
|
44
|
+
},
|
|
45
|
+
setup: () => ({
|
|
46
|
+
args
|
|
47
|
+
}),
|
|
28
48
|
template: '<div class="p-4"><AntInputLabel v-bind="args"></AntInputLabel></div>'
|
|
29
49
|
}),
|
|
30
50
|
args: {
|
|
@@ -33,9 +53,14 @@ export const Docs = {
|
|
|
33
53
|
};
|
|
34
54
|
export const WithContent = {
|
|
35
55
|
render: (args) => ({
|
|
36
|
-
components: {
|
|
56
|
+
components: {
|
|
57
|
+
AntInputLabel,
|
|
58
|
+
AntBaseInput
|
|
59
|
+
},
|
|
37
60
|
setup() {
|
|
38
|
-
return {
|
|
61
|
+
return {
|
|
62
|
+
args
|
|
63
|
+
};
|
|
39
64
|
},
|
|
40
65
|
template: '<div class="p-4"><AntInputLabel v-bind="args"><AntBaseInput value="Example" :size="args.size"></AntBaseInput></AntInputLabel></div>'
|
|
41
66
|
}),
|
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
import AntInputLimiter from "../AntInputLimiter.vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Size
|
|
4
|
+
} from "../../../../enums/Size.enum.mjs";
|
|
5
|
+
import {
|
|
6
|
+
InputState
|
|
7
|
+
} from "../../../../enums/index.mjs";
|
|
4
8
|
const meta = {
|
|
5
9
|
title: "Inputs/Elements/Ant Input Limiter",
|
|
6
10
|
component: AntInputLimiter,
|
|
7
|
-
parameters: {
|
|
11
|
+
parameters: {
|
|
12
|
+
controls: {
|
|
13
|
+
sort: "requiredFirst"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
argTypes: {
|
|
9
17
|
size: {
|
|
10
|
-
control: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select"
|
|
20
|
+
},
|
|
11
21
|
options: Object.values(Size),
|
|
12
|
-
table: {
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: Size.md
|
|
25
|
+
}
|
|
26
|
+
}
|
|
13
27
|
},
|
|
14
28
|
skeleton: {
|
|
15
29
|
control: "boolean",
|
|
16
|
-
table: {
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
17
35
|
},
|
|
18
36
|
state: {
|
|
19
|
-
control: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "select"
|
|
39
|
+
},
|
|
20
40
|
options: Object.values(InputState)
|
|
21
41
|
}
|
|
22
42
|
}
|
|
@@ -24,9 +44,13 @@ const meta = {
|
|
|
24
44
|
export default meta;
|
|
25
45
|
export const Docs = {
|
|
26
46
|
render: (args) => ({
|
|
27
|
-
components: {
|
|
47
|
+
components: {
|
|
48
|
+
AntInputLimiter
|
|
49
|
+
},
|
|
28
50
|
setup() {
|
|
29
|
-
return {
|
|
51
|
+
return {
|
|
52
|
+
args
|
|
53
|
+
};
|
|
30
54
|
},
|
|
31
55
|
template: '<div class="p-4"><AntInputLimiter v-bind="args">Description</AntInputLimiter></div>'
|
|
32
56
|
}),
|
|
@@ -4,4 +4,4 @@ import AntInputDescription from './AntInputDescription.vue';
|
|
|
4
4
|
import AntInputLabel from './AntInputLabel.vue';
|
|
5
5
|
import AntInputLimiter from './AntInputLimiter.vue';
|
|
6
6
|
import AntSelectMenu from './AntSelectMenu.vue';
|
|
7
|
-
export { AntBaseInput, AntField, AntInputDescription, AntInputLabel, AntInputLimiter, AntSelectMenu };
|
|
7
|
+
export { AntBaseInput, AntField, AntInputDescription, AntInputLabel, AntInputLimiter, AntSelectMenu, };
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import AntCheckbox from "../AntCheckbox.vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
ref
|
|
5
|
+
} from "vue";
|
|
6
|
+
import {
|
|
7
|
+
InputState,
|
|
8
|
+
Size
|
|
9
|
+
} from "../../../enums/index.mjs";
|
|
4
10
|
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
5
11
|
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
6
12
|
const meta = {
|
|
7
13
|
title: "Inputs/Checkbox",
|
|
8
14
|
component: AntCheckbox,
|
|
9
|
-
parameters: {
|
|
15
|
+
parameters: {
|
|
16
|
+
controls: {
|
|
17
|
+
sort: "requiredFirst"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
10
20
|
argTypes: {
|
|
11
21
|
state: {
|
|
12
|
-
control: {
|
|
22
|
+
control: {
|
|
23
|
+
type: "select"
|
|
24
|
+
},
|
|
13
25
|
options: Object.values(InputState)
|
|
14
26
|
},
|
|
15
27
|
size: {
|
|
16
|
-
control: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "select"
|
|
30
|
+
},
|
|
17
31
|
options: Object.values(Size)
|
|
18
32
|
}
|
|
19
33
|
}
|
|
@@ -21,7 +35,9 @@ const meta = {
|
|
|
21
35
|
export default meta;
|
|
22
36
|
export const Docs = {
|
|
23
37
|
render: (args) => ({
|
|
24
|
-
components: {
|
|
38
|
+
components: {
|
|
39
|
+
AntCheckbox
|
|
40
|
+
},
|
|
25
41
|
setup() {
|
|
26
42
|
const value = computed({
|
|
27
43
|
get() {
|
|
@@ -31,7 +47,10 @@ export const Docs = {
|
|
|
31
47
|
args.modelValue = val;
|
|
32
48
|
}
|
|
33
49
|
});
|
|
34
|
-
return {
|
|
50
|
+
return {
|
|
51
|
+
args,
|
|
52
|
+
value
|
|
53
|
+
};
|
|
35
54
|
},
|
|
36
55
|
template: `
|
|
37
56
|
<div class="m-2">
|
|
@@ -43,10 +62,16 @@ export const Docs = {
|
|
|
43
62
|
};
|
|
44
63
|
export const Summary = {
|
|
45
64
|
parameters: {
|
|
46
|
-
chromatic: {
|
|
65
|
+
chromatic: {
|
|
66
|
+
disableSnapshot: false
|
|
67
|
+
}
|
|
47
68
|
},
|
|
48
69
|
render: (args) => ({
|
|
49
|
-
components: {
|
|
70
|
+
components: {
|
|
71
|
+
AntCheckbox,
|
|
72
|
+
AntFormGroup,
|
|
73
|
+
AntFormGroupLabel
|
|
74
|
+
},
|
|
50
75
|
setup() {
|
|
51
76
|
const offValue = ref(false);
|
|
52
77
|
const onValue = ref(true);
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import AntCheckboxGroup from "../AntCheckboxGroup.vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
InputState,
|
|
4
|
+
Size
|
|
5
|
+
} from "../../../enums/index.mjs";
|
|
6
|
+
import {
|
|
7
|
+
Direction
|
|
8
|
+
} from "../../../enums/Direction.enum.mjs";
|
|
4
9
|
const meta = {
|
|
5
10
|
title: "Inputs/Checkbox Group",
|
|
6
11
|
component: AntCheckboxGroup,
|
|
7
|
-
parameters: {
|
|
12
|
+
parameters: {
|
|
13
|
+
controls: {
|
|
14
|
+
sort: "requiredFirst"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
8
17
|
argTypes: {
|
|
9
18
|
modelValue: {
|
|
10
19
|
description: "Contains the list of selected checkboxes (the value prop of the checkboxes)"
|
|
@@ -13,15 +22,21 @@ const meta = {
|
|
|
13
22
|
description: "List of checkboxes to be displayed"
|
|
14
23
|
},
|
|
15
24
|
state: {
|
|
16
|
-
control: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "select"
|
|
27
|
+
},
|
|
17
28
|
options: Object.values(InputState)
|
|
18
29
|
},
|
|
19
30
|
size: {
|
|
20
|
-
control: {
|
|
31
|
+
control: {
|
|
32
|
+
type: "select"
|
|
33
|
+
},
|
|
21
34
|
options: Object.values(Size)
|
|
22
35
|
},
|
|
23
36
|
direction: {
|
|
24
|
-
control: {
|
|
37
|
+
control: {
|
|
38
|
+
type: "select"
|
|
39
|
+
},
|
|
25
40
|
options: Object.values(Direction)
|
|
26
41
|
}
|
|
27
42
|
}
|
|
@@ -29,9 +44,13 @@ const meta = {
|
|
|
29
44
|
export default meta;
|
|
30
45
|
export const Docs = {
|
|
31
46
|
render: (args) => ({
|
|
32
|
-
components: {
|
|
47
|
+
components: {
|
|
48
|
+
AntCheckboxGroup
|
|
49
|
+
},
|
|
33
50
|
setup() {
|
|
34
|
-
return {
|
|
51
|
+
return {
|
|
52
|
+
args
|
|
53
|
+
};
|
|
35
54
|
},
|
|
36
55
|
template: `
|
|
37
56
|
<AntCheckboxGroup v-bind="args" v-model="args.modelValue"/>
|
|
@@ -39,18 +58,23 @@ export const Docs = {
|
|
|
39
58
|
}),
|
|
40
59
|
args: {
|
|
41
60
|
modelValue: [],
|
|
42
|
-
checkboxes: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
checkboxes: [
|
|
62
|
+
{
|
|
63
|
+
label: "Checkbox 1",
|
|
64
|
+
value: "checkbox-1"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "Checkbox 2",
|
|
68
|
+
value: "checkbox-2"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "Checkbox 3",
|
|
72
|
+
value: "checkbox-3"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "Checkbox 4",
|
|
76
|
+
value: "checkbox-4"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
55
79
|
}
|
|
56
80
|
};
|
|
@@ -1,28 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
Size
|
|
3
|
+
} from "../../../enums/Size.enum.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Direction
|
|
6
|
+
} from "../../../enums/Direction.enum.mjs";
|
|
3
7
|
import AntDateInput from "../AntDateInput.vue";
|
|
4
|
-
import {
|
|
5
|
-
|
|
8
|
+
import {
|
|
9
|
+
InputState
|
|
10
|
+
} from "../../../enums/index.mjs";
|
|
11
|
+
import {
|
|
12
|
+
AntDateInputTypes
|
|
13
|
+
} from "../__types/AntDateInput.types.mjs";
|
|
6
14
|
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
7
15
|
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
8
16
|
const meta = {
|
|
9
17
|
title: "Inputs/Date Input",
|
|
10
18
|
component: AntDateInput,
|
|
11
|
-
parameters: {
|
|
19
|
+
parameters: {
|
|
20
|
+
controls: {
|
|
21
|
+
sort: "requiredFirst"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
12
24
|
argTypes: {
|
|
13
25
|
modelValue: {
|
|
14
|
-
table: {
|
|
26
|
+
table: {
|
|
27
|
+
type: {
|
|
28
|
+
summary: "string|null"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
15
31
|
},
|
|
16
32
|
type: {
|
|
17
|
-
control: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "select"
|
|
35
|
+
},
|
|
18
36
|
options: Object.values(AntDateInputTypes)
|
|
19
37
|
},
|
|
20
38
|
state: {
|
|
21
|
-
control: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "select"
|
|
41
|
+
},
|
|
22
42
|
options: Object.values(InputState)
|
|
23
43
|
},
|
|
24
44
|
size: {
|
|
25
|
-
control: {
|
|
45
|
+
control: {
|
|
46
|
+
type: "select"
|
|
47
|
+
},
|
|
26
48
|
options: Object.values(Size)
|
|
27
49
|
}
|
|
28
50
|
}
|
|
@@ -30,9 +52,13 @@ const meta = {
|
|
|
30
52
|
export default meta;
|
|
31
53
|
export const Docs = {
|
|
32
54
|
render: (args) => ({
|
|
33
|
-
components: {
|
|
55
|
+
components: {
|
|
56
|
+
AntDateInput
|
|
57
|
+
},
|
|
34
58
|
setup() {
|
|
35
|
-
return {
|
|
59
|
+
return {
|
|
60
|
+
args
|
|
61
|
+
};
|
|
36
62
|
},
|
|
37
63
|
template: `
|
|
38
64
|
<AntDateInput
|
|
@@ -49,12 +75,24 @@ export const Docs = {
|
|
|
49
75
|
};
|
|
50
76
|
export const Summary = {
|
|
51
77
|
parameters: {
|
|
52
|
-
chromatic: {
|
|
78
|
+
chromatic: {
|
|
79
|
+
disableSnapshot: false
|
|
80
|
+
}
|
|
53
81
|
},
|
|
54
82
|
render: (args) => ({
|
|
55
|
-
components: {
|
|
83
|
+
components: {
|
|
84
|
+
AntDateInput,
|
|
85
|
+
AntFormGroup,
|
|
86
|
+
AntFormGroupLabel
|
|
87
|
+
},
|
|
56
88
|
setup() {
|
|
57
|
-
return {
|
|
89
|
+
return {
|
|
90
|
+
args,
|
|
91
|
+
InputState,
|
|
92
|
+
Size,
|
|
93
|
+
AntDateInputType: AntDateInputTypes,
|
|
94
|
+
Direction
|
|
95
|
+
};
|
|
58
96
|
},
|
|
59
97
|
template: `
|
|
60
98
|
<AntFormGroup>
|
|
@@ -1,38 +1,70 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Size
|
|
3
|
+
} from "../../../enums/Size.enum.mjs";
|
|
2
4
|
import AntNumberInput from "../AntNumberInput.vue";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
+
import {
|
|
6
|
+
InputState
|
|
7
|
+
} from "../../../enums/State.enum.mjs";
|
|
8
|
+
import {
|
|
9
|
+
ref
|
|
10
|
+
} from "vue";
|
|
5
11
|
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
6
12
|
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
7
13
|
const meta = {
|
|
8
14
|
title: "Inputs/Number Input",
|
|
9
15
|
component: AntNumberInput,
|
|
10
|
-
parameters: {
|
|
16
|
+
parameters: {
|
|
17
|
+
controls: {
|
|
18
|
+
sort: "requiredFirst"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
11
21
|
argTypes: {
|
|
12
22
|
modelValue: {
|
|
13
|
-
control: {
|
|
14
|
-
|
|
23
|
+
control: {
|
|
24
|
+
type: "number"
|
|
25
|
+
},
|
|
26
|
+
table: {
|
|
27
|
+
type: {
|
|
28
|
+
summary: "number|null"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
15
31
|
},
|
|
16
32
|
state: {
|
|
17
|
-
control: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "select"
|
|
35
|
+
},
|
|
18
36
|
options: Object.values(InputState)
|
|
19
37
|
},
|
|
20
38
|
size: {
|
|
21
|
-
control: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "select"
|
|
41
|
+
},
|
|
22
42
|
options: Object.values(Size),
|
|
23
|
-
table: {
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: {
|
|
45
|
+
summary: Size.md
|
|
46
|
+
}
|
|
47
|
+
}
|
|
24
48
|
},
|
|
25
49
|
placeholder: {
|
|
26
|
-
table: {
|
|
50
|
+
table: {
|
|
51
|
+
defaultValue: {
|
|
52
|
+
summary: "this.label"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
27
55
|
}
|
|
28
56
|
}
|
|
29
57
|
};
|
|
30
58
|
export default meta;
|
|
31
59
|
export const Docs = {
|
|
32
60
|
render: (args) => ({
|
|
33
|
-
components: {
|
|
61
|
+
components: {
|
|
62
|
+
AntNumberInput
|
|
63
|
+
},
|
|
34
64
|
setup() {
|
|
35
|
-
return {
|
|
65
|
+
return {
|
|
66
|
+
args
|
|
67
|
+
};
|
|
36
68
|
},
|
|
37
69
|
template: `
|
|
38
70
|
<AntNumberInput
|
|
@@ -49,9 +81,15 @@ export const Docs = {
|
|
|
49
81
|
};
|
|
50
82
|
export const WithIndicators = {
|
|
51
83
|
render: (args) => ({
|
|
52
|
-
components: {
|
|
84
|
+
components: {
|
|
85
|
+
AntNumberInput,
|
|
86
|
+
AntFormGroup,
|
|
87
|
+
AntFormGroupLabel
|
|
88
|
+
},
|
|
53
89
|
setup() {
|
|
54
|
-
return {
|
|
90
|
+
return {
|
|
91
|
+
args
|
|
92
|
+
};
|
|
55
93
|
},
|
|
56
94
|
template: `
|
|
57
95
|
<AntFormGroup>
|
|
@@ -70,13 +108,24 @@ export const WithIndicators = {
|
|
|
70
108
|
};
|
|
71
109
|
export const Summary = {
|
|
72
110
|
parameters: {
|
|
73
|
-
chromatic: {
|
|
111
|
+
chromatic: {
|
|
112
|
+
disableSnapshot: false
|
|
113
|
+
}
|
|
74
114
|
},
|
|
75
115
|
render: (args) => ({
|
|
76
|
-
components: {
|
|
116
|
+
components: {
|
|
117
|
+
AntNumberInput,
|
|
118
|
+
AntFormGroup,
|
|
119
|
+
AntFormGroupLabel
|
|
120
|
+
},
|
|
77
121
|
setup() {
|
|
78
122
|
const value = ref(100.5);
|
|
79
|
-
return {
|
|
123
|
+
return {
|
|
124
|
+
args,
|
|
125
|
+
value,
|
|
126
|
+
InputState,
|
|
127
|
+
Size
|
|
128
|
+
};
|
|
80
129
|
},
|
|
81
130
|
template: `
|
|
82
131
|
<AntFormGroup>
|