@antify/ui-module 1.7.3 → 1.8.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/README.md +43 -52
- package/dist/module.d.mts +1 -251
- package/dist/module.d.ts +1 -251
- package/dist/module.json +1 -1
- package/dist/module.mjs +97 -418
- package/dist/runtime/composables/useUiClient.d.ts +2 -2
- package/dist/runtime/composables/useUiClient.mjs +1 -2
- package/dist/runtime/plugins/ui-module.mjs +3 -2
- package/dist/runtime/tailwind.config.d.ts +2 -3
- package/dist/runtime/tailwind.config.mjs +20 -204
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +10 -41
- package/dist/runtime/components/AntAccordion.vue +0 -64
- package/dist/runtime/components/AntAccordionItem.vue +0 -81
- package/dist/runtime/components/AntAlert.vue +0 -146
- package/dist/runtime/components/AntCard.vue +0 -34
- package/dist/runtime/components/AntContent.vue +0 -16
- package/dist/runtime/components/AntDropdown.vue +0 -79
- package/dist/runtime/components/AntIcon.vue +0 -56
- package/dist/runtime/components/AntKeycap.vue +0 -45
- package/dist/runtime/components/AntListGroup.vue +0 -24
- package/dist/runtime/components/AntListGroupItem.vue +0 -83
- package/dist/runtime/components/AntModal.vue +0 -88
- package/dist/runtime/components/AntPagination.vue +0 -206
- package/dist/runtime/components/AntPopover.vue +0 -114
- package/dist/runtime/components/AntSkeleton.vue +0 -38
- package/dist/runtime/components/AntSpinner.vue +0 -101
- package/dist/runtime/components/AntTag.vue +0 -114
- package/dist/runtime/components/AntToast.vue +0 -119
- package/dist/runtime/components/AntToaster.vue +0 -51
- package/dist/runtime/components/AntTooltip.vue +0 -189
- package/dist/runtime/components/Main.mdx +0 -11
- package/dist/runtime/components/Main.stories.d.ts +0 -7
- package/dist/runtime/components/Main.stories.mjs +0 -8
- package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +0 -9
- package/dist/runtime/components/__stories/AntAccordion.stories.mjs +0 -101
- package/dist/runtime/components/__stories/AntAlert.stories.d.ts +0 -11
- package/dist/runtime/components/__stories/AntAlert.stories.mjs +0 -81
- package/dist/runtime/components/__stories/AntCard.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntCard.stories.mjs +0 -87
- package/dist/runtime/components/__stories/AntContent.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntContent.stories.mjs +0 -26
- package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntDropdown.stories.mjs +0 -52
- package/dist/runtime/components/__stories/AntIcon.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntIcon.stories.mjs +0 -93
- package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +0 -9
- package/dist/runtime/components/__stories/AntKeycap.stories.mjs +0 -69
- package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntListGroup.stories.mjs +0 -36
- package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +0 -10
- package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +0 -62
- package/dist/runtime/components/__stories/AntModal.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntModal.stories.mjs +0 -78
- package/dist/runtime/components/__stories/AntPagination.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntPagination.stories.mjs +0 -39
- package/dist/runtime/components/__stories/AntPopover.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntPopover.stories.mjs +0 -47
- package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +0 -43
- package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntSpinner.stories.mjs +0 -34
- package/dist/runtime/components/__stories/AntTag.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntTag.stories.mjs +0 -43
- package/dist/runtime/components/__stories/AntToast.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntToast.stories.mjs +0 -66
- package/dist/runtime/components/__stories/AntToaster.stories.d.ts +0 -34
- package/dist/runtime/components/__stories/AntToaster.stories.mjs +0 -42
- package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +0 -16
- package/dist/runtime/components/__stories/AntTooltip.stories.mjs +0 -241
- package/dist/runtime/components/__types/AntAccordion.types.d.ts +0 -4
- package/dist/runtime/components/__types/AntAccordion.types.mjs +0 -5
- package/dist/runtime/components/__types/AntIcon.types.d.ts +0 -8
- package/dist/runtime/components/__types/AntIcon.types.mjs +0 -9
- package/dist/runtime/components/__types/AntKeycap.types.d.ts +0 -4
- package/dist/runtime/components/__types/AntKeycap.types.mjs +0 -5
- package/dist/runtime/components/__types/AntListGroupItem.types.d.ts +0 -9
- package/dist/runtime/components/__types/AntListGroupItem.types.mjs +0 -10
- package/dist/runtime/components/__types/AntSpinner.types.d.ts +0 -10
- package/dist/runtime/components/__types/AntSpinner.types.mjs +0 -11
- package/dist/runtime/components/__types/AntTag.types.d.ts +0 -17
- package/dist/runtime/components/__types/AntTag.types.mjs +0 -19
- package/dist/runtime/components/__types/AntToaster.types.d.ts +0 -8
- package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
- package/dist/runtime/components/__types/index.d.ts +0 -7
- package/dist/runtime/components/__types/index.mjs +0 -7
- package/dist/runtime/components/buttons/AntActionButton.vue +0 -74
- package/dist/runtime/components/buttons/AntButton.vue +0 -257
- package/dist/runtime/components/buttons/AntCreateButton.vue +0 -54
- package/dist/runtime/components/buttons/AntDeleteButton.vue +0 -54
- package/dist/runtime/components/buttons/AntDuplicateButton.vue +0 -54
- package/dist/runtime/components/buttons/AntEditButton.vue +0 -54
- package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
- package/dist/runtime/components/buttons/AntSaveButton.vue +0 -55
- package/dist/runtime/components/buttons/__stories/AntActionButton.stories.d.ts +0 -11
- package/dist/runtime/components/buttons/__stories/AntActionButton.stories.mjs +0 -86
- package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +0 -16
- package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +0 -313
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntEditButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntEditButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__types/AntButton.types.d.ts +0 -4
- package/dist/runtime/components/buttons/__types/AntButton.types.mjs +0 -5
- package/dist/runtime/components/buttons/__types/index.d.ts +0 -1
- package/dist/runtime/components/buttons/__types/index.mjs +0 -1
- package/dist/runtime/components/crud/AntCrud.vue +0 -45
- package/dist/runtime/components/crud/AntCrudDetail.vue +0 -11
- package/dist/runtime/components/crud/AntCrudDetailActions.vue +0 -58
- package/dist/runtime/components/crud/AntCrudDetailNav.vue +0 -64
- package/dist/runtime/components/crud/AntCrudTableFilter.vue +0 -122
- package/dist/runtime/components/crud/AntCrudTableNav.vue +0 -149
- package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +0 -126
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +0 -7
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +0 -80
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +0 -25
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +0 -41
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +0 -25
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +0 -8
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +0 -56
- package/dist/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
- package/dist/runtime/components/dialogs/AntDialog.vue +0 -147
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +0 -6
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +0 -32
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +0 -6
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +0 -60
- package/dist/runtime/components/forms/AntField.vue +0 -123
- package/dist/runtime/components/forms/AntFormGroup.vue +0 -36
- package/dist/runtime/components/forms/AntFormGroupLabel.vue +0 -5
- package/dist/runtime/components/forms/__stories/AntField.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntField.stories.mjs +0 -80
- package/dist/runtime/components/forms/__stories/AntFormGroup.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntFormGroup.stories.mjs +0 -33
- package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.mjs +0 -20
- package/dist/runtime/components/index.d.ts +0 -62
- package/dist/runtime/components/index.mjs +0 -124
- package/dist/runtime/components/inputs/AntCheckbox.vue +0 -182
- package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/dist/runtime/components/inputs/AntDateInput.vue +0 -104
- package/dist/runtime/components/inputs/AntNumberInput.vue +0 -157
- package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/dist/runtime/components/inputs/AntRadio.vue +0 -206
- package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -127
- package/dist/runtime/components/inputs/AntRangeSlider.vue +0 -101
- package/dist/runtime/components/inputs/AntRichTextEditor.vue +0 -237
- package/dist/runtime/components/inputs/AntSearch.vue +0 -75
- package/dist/runtime/components/inputs/AntSelect.vue +0 -319
- package/dist/runtime/components/inputs/AntSwitch.vue +0 -192
- package/dist/runtime/components/inputs/AntSwitcher.vue +0 -196
- package/dist/runtime/components/inputs/AntTagInput.vue +0 -339
- package/dist/runtime/components/inputs/AntTextInput.vue +0 -75
- package/dist/runtime/components/inputs/AntTextarea.vue +0 -191
- package/dist/runtime/components/inputs/AntUnitInput.vue +0 -96
- package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -271
- package/dist/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
- package/dist/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
- package/dist/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
- package/dist/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
- package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.d.ts +0 -11
- package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +0 -234
- package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +0 -34
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +0 -46
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +0 -37
- package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.d.ts +0 -17
- package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.mjs +0 -18
- package/dist/runtime/components/inputs/Elements/__types/index.d.ts +0 -1
- package/dist/runtime/components/inputs/Elements/__types/index.mjs +0 -1
- package/dist/runtime/components/inputs/Elements/index.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/index.mjs +0 -12
- package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.mjs +0 -382
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -84
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.mjs +0 -193
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.d.ts +0 -10
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -246
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.mjs +0 -156
- package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.mjs +0 -251
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.mjs +0 -67
- package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
- package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.mjs +0 -0
- package/dist/runtime/components/inputs/__stories/AntSearch.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntSearch.stories.mjs +0 -103
- package/dist/runtime/components/inputs/__stories/AntSelect.stories.d.ts +0 -13
- package/dist/runtime/components/inputs/__stories/AntSelect.stories.mjs +0 -255
- package/dist/runtime/components/inputs/__stories/AntSwitch.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntSwitch.stories.mjs +0 -344
- package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.mjs +0 -235
- package/dist/runtime/components/inputs/__stories/AntTagInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTagInput.stories.mjs +0 -228
- package/dist/runtime/components/inputs/__stories/AntTextInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTextInput.stories.mjs +0 -225
- package/dist/runtime/components/inputs/__stories/AntTextarea.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTextarea.stories.mjs +0 -144
- package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.mjs +0 -116
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.d.ts +0 -6
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntDateInput.types.d.ts +0 -7
- package/dist/runtime/components/inputs/__types/AntDateInput.types.mjs +0 -8
- package/dist/runtime/components/inputs/__types/AntRadio.types.d.ts +0 -9
- package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntSelect.types.d.ts +0 -4
- package/dist/runtime/components/inputs/__types/AntSelect.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntSwitcher.types.d.ts +0 -4
- package/dist/runtime/components/inputs/__types/AntSwitcher.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntTagInput.types.d.ts +0 -5
- package/dist/runtime/components/inputs/__types/AntTagInput.types.mjs +0 -6
- package/dist/runtime/components/inputs/__types/AntTextInput.types.d.ts +0 -6
- package/dist/runtime/components/inputs/__types/AntTextInput.types.mjs +0 -7
- package/dist/runtime/components/inputs/__types/index.d.ts +0 -7
- package/dist/runtime/components/inputs/__types/index.mjs +0 -7
- package/dist/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +0 -7
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +0 -68
- package/dist/runtime/components/navbar/AntNavbar.vue +0 -25
- package/dist/runtime/components/navbar/AntNavbarItem.vue +0 -78
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +0 -6
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +0 -66
- package/dist/runtime/components/navbar/__types/NavbarItem.types.d.ts +0 -10
- package/dist/runtime/components/navbar/__types/NavbarItem.types.mjs +0 -0
- package/dist/runtime/components/navbar/__types/index.d.ts +0 -1
- package/dist/runtime/components/navbar/__types/index.mjs +0 -1
- package/dist/runtime/components/table/AntTable.vue +0 -218
- package/dist/runtime/components/table/AntTableSortButton.vue +0 -48
- package/dist/runtime/components/table/AntTd.vue +0 -81
- package/dist/runtime/components/table/AntTh.vue +0 -78
- package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +0 -9
- package/dist/runtime/components/table/__stories/AntTable.stories.mjs +0 -273
- package/dist/runtime/components/table/__types/TableHeader.types.d.ts +0 -36
- package/dist/runtime/components/table/__types/TableHeader.types.mjs +0 -25
- package/dist/runtime/components/table/__types/index.d.ts +0 -1
- package/dist/runtime/components/table/__types/index.mjs +0 -1
- package/dist/runtime/components/tabs/AntTabItem.vue +0 -118
- package/dist/runtime/components/tabs/AntTabs.vue +0 -47
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +0 -6
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +0 -32
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +0 -9
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +0 -173
- package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +0 -17
- package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +0 -6
- package/dist/runtime/components/tabs/__types/index.d.ts +0 -1
- package/dist/runtime/components/tabs/__types/index.mjs +0 -1
- package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -92
- package/dist/runtime/composables/useUi.d.ts +0 -20
- package/dist/runtime/composables/useUi.mjs +0 -31
- package/dist/runtime/composables/useValidator.d.ts +0 -1
- package/dist/runtime/composables/useValidator.mjs +0 -1
- package/dist/runtime/enums/Direction.enum.d.ts +0 -4
- package/dist/runtime/enums/Direction.enum.mjs +0 -5
- package/dist/runtime/enums/Grouped.enum.d.ts +0 -6
- package/dist/runtime/enums/Grouped.enum.mjs +0 -7
- package/dist/runtime/enums/Position.enum.d.ts +0 -12
- package/dist/runtime/enums/Position.enum.mjs +0 -14
- package/dist/runtime/enums/Size.enum.d.ts +0 -7
- package/dist/runtime/enums/Size.enum.mjs +0 -8
- package/dist/runtime/enums/State.enum.d.ts +0 -16
- package/dist/runtime/enums/State.enum.mjs +0 -18
- package/dist/runtime/enums/index.d.ts +0 -5
- package/dist/runtime/enums/index.mjs +0 -5
- package/dist/runtime/env.d.ts +0 -8
- package/dist/runtime/handler.d.ts +0 -1
- package/dist/runtime/handler.mjs +0 -5
- package/dist/runtime/plugins/toaster.d.ts +0 -22
- package/dist/runtime/plugins/toaster.mjs +0 -53
- package/dist/runtime/shims/vue.d.ts +0 -5
- package/dist/runtime/types.d.ts +0 -8
- package/dist/runtime/types.mjs +0 -8
- package/dist/runtime/utils/helper.d.ts +0 -4
- package/dist/runtime/utils/helper.mjs +0 -12
- package/dist/runtime/utils.d.ts +0 -20
- package/dist/runtime/utils.mjs +0 -41
- package/src/runtime/components/AntAccordion.vue +0 -64
- package/src/runtime/components/AntAccordionItem.vue +0 -119
- package/src/runtime/components/AntAlert.vue +0 -146
- package/src/runtime/components/AntCard.vue +0 -34
- package/src/runtime/components/AntContent.vue +0 -16
- package/src/runtime/components/AntDropdown.vue +0 -100
- package/src/runtime/components/AntIcon.vue +0 -56
- package/src/runtime/components/AntKeycap.vue +0 -45
- package/src/runtime/components/AntListGroup.vue +0 -24
- package/src/runtime/components/AntListGroupItem.vue +0 -83
- package/src/runtime/components/AntModal.vue +0 -130
- package/src/runtime/components/AntPagination.vue +0 -206
- package/src/runtime/components/AntPopover.vue +0 -135
- package/src/runtime/components/AntSkeleton.vue +0 -38
- package/src/runtime/components/AntSpinner.vue +0 -101
- package/src/runtime/components/AntTag.vue +0 -114
- package/src/runtime/components/AntToast.vue +0 -119
- package/src/runtime/components/AntToaster.vue +0 -70
- package/src/runtime/components/AntTooltip.vue +0 -189
- package/src/runtime/components/buttons/AntActionButton.vue +0 -74
- package/src/runtime/components/buttons/AntButton.vue +0 -257
- package/src/runtime/components/buttons/AntCreateButton.vue +0 -54
- package/src/runtime/components/buttons/AntDeleteButton.vue +0 -54
- package/src/runtime/components/buttons/AntDuplicateButton.vue +0 -54
- package/src/runtime/components/buttons/AntEditButton.vue +0 -54
- package/src/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
- package/src/runtime/components/buttons/AntSaveButton.vue +0 -55
- package/src/runtime/components/crud/AntCrud.vue +0 -69
- package/src/runtime/components/crud/AntCrudDetail.vue +0 -11
- package/src/runtime/components/crud/AntCrudDetailActions.vue +0 -58
- package/src/runtime/components/crud/AntCrudDetailNav.vue +0 -64
- package/src/runtime/components/crud/AntCrudTableFilter.vue +0 -122
- package/src/runtime/components/crud/AntCrudTableNav.vue +0 -149
- package/src/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
- package/src/runtime/components/dialogs/AntDialog.vue +0 -181
- package/src/runtime/components/forms/AntField.vue +0 -123
- package/src/runtime/components/forms/AntFormGroup.vue +0 -36
- package/src/runtime/components/forms/AntFormGroupLabel.vue +0 -5
- package/src/runtime/components/inputs/AntCheckbox.vue +0 -201
- package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/src/runtime/components/inputs/AntDateInput.vue +0 -104
- package/src/runtime/components/inputs/AntNumberInput.vue +0 -157
- package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/src/runtime/components/inputs/AntRadio.vue +0 -214
- package/src/runtime/components/inputs/AntRadioGroup.vue +0 -127
- package/src/runtime/components/inputs/AntRangeSlider.vue +0 -121
- package/src/runtime/components/inputs/AntRichTextEditor.vue +0 -237
- package/src/runtime/components/inputs/AntSearch.vue +0 -75
- package/src/runtime/components/inputs/AntSelect.vue +0 -319
- package/src/runtime/components/inputs/AntSwitch.vue +0 -192
- package/src/runtime/components/inputs/AntSwitcher.vue +0 -196
- package/src/runtime/components/inputs/AntTagInput.vue +0 -339
- package/src/runtime/components/inputs/AntTextInput.vue +0 -75
- package/src/runtime/components/inputs/AntTextarea.vue +0 -191
- package/src/runtime/components/inputs/AntUnitInput.vue +0 -96
- package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -319
- package/src/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
- package/src/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
- package/src/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
- package/src/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
- package/src/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
- package/src/runtime/components/navbar/AntNavbar.vue +0 -25
- package/src/runtime/components/navbar/AntNavbarItem.vue +0 -78
- package/src/runtime/components/table/AntTable.vue +0 -218
- package/src/runtime/components/table/AntTableSortButton.vue +0 -48
- package/src/runtime/components/table/AntTd.vue +0 -81
- package/src/runtime/components/table/AntTh.vue +0 -78
- package/src/runtime/components/tabs/AntTabItem.vue +0 -118
- package/src/runtime/components/tabs/AntTabs.vue +0 -47
- package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -96
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { computed, reactive, ref } from "vue";
|
|
2
|
-
import { Size } from "../../../enums/index.mjs";
|
|
3
|
-
import { useFieldValidator } from "@antify/validate";
|
|
4
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
5
|
-
import AntSwitcher from "../AntSwitcher.vue";
|
|
6
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
7
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
8
|
-
const meta = {
|
|
9
|
-
title: "Inputs/Switcher",
|
|
10
|
-
component: AntSwitcher,
|
|
11
|
-
argTypes: {
|
|
12
|
-
modelValue: {
|
|
13
|
-
control: "text"
|
|
14
|
-
},
|
|
15
|
-
options: {
|
|
16
|
-
table: {
|
|
17
|
-
type: {
|
|
18
|
-
summary: "string | SwitcherOption[]",
|
|
19
|
-
detail: `
|
|
20
|
-
type SwitcherOption = {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string | number;
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
}
|
|
25
|
-
`
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
state: {
|
|
30
|
-
control: { type: "select" },
|
|
31
|
-
options: Object.values(InputState)
|
|
32
|
-
},
|
|
33
|
-
size: {
|
|
34
|
-
control: { type: "select" },
|
|
35
|
-
options: Object.values(Size)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
export default meta;
|
|
40
|
-
export const Docs = {
|
|
41
|
-
render: (args) => ({
|
|
42
|
-
components: { AntSwitcher },
|
|
43
|
-
setup() {
|
|
44
|
-
const modelValue = computed({
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
get: () => args.modelValue,
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
set: (val) => args.modelValue = val
|
|
49
|
-
});
|
|
50
|
-
return { args, modelValue };
|
|
51
|
-
},
|
|
52
|
-
template: `
|
|
53
|
-
<AntSwitcher v-bind="args" v-model="modelValue"/>
|
|
54
|
-
`
|
|
55
|
-
}),
|
|
56
|
-
args: {
|
|
57
|
-
options: [
|
|
58
|
-
{
|
|
59
|
-
label: "Entry 1",
|
|
60
|
-
value: "entry-1"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: "Entry 2",
|
|
64
|
-
value: "entry-2"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: "Entry 3",
|
|
68
|
-
value: "entry-3"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: "Entry 4",
|
|
72
|
-
value: "entry-4"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
modelValue: "entry-1"
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
export const withValidator = {
|
|
79
|
-
render: (args) => ({
|
|
80
|
-
components: { AntSwitcher },
|
|
81
|
-
setup() {
|
|
82
|
-
const modelValue = computed({
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
get: () => args.modelValue,
|
|
85
|
-
// @ts-ignore
|
|
86
|
-
set: (val) => args.modelValue = val
|
|
87
|
-
});
|
|
88
|
-
const validator = reactive(useFieldValidator(
|
|
89
|
-
(val) => val === "entry-1" ? "Select something else" : true
|
|
90
|
-
));
|
|
91
|
-
return { args, modelValue, validator, InputState };
|
|
92
|
-
},
|
|
93
|
-
template: `
|
|
94
|
-
<AntSwitcher
|
|
95
|
-
v-bind="args"
|
|
96
|
-
v-model="modelValue"
|
|
97
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
98
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
99
|
-
@validate="(val) => validator.validate(val)"
|
|
100
|
-
>
|
|
101
|
-
This value should be false
|
|
102
|
-
</AntSwitcher>
|
|
103
|
-
`
|
|
104
|
-
}),
|
|
105
|
-
args: {
|
|
106
|
-
options: [
|
|
107
|
-
{
|
|
108
|
-
label: "Entry 1",
|
|
109
|
-
value: "entry-1"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: "Entry 2",
|
|
113
|
-
value: "entry-2"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
label: "Entry 3",
|
|
117
|
-
value: "entry-3"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
label: "Entry 4",
|
|
121
|
-
value: "entry-4"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
modelValue: "entry-1"
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
export const Summary = {
|
|
128
|
-
parameters: {
|
|
129
|
-
chromatic: { disableSnapshot: false }
|
|
130
|
-
},
|
|
131
|
-
render: (args) => ({
|
|
132
|
-
components: { AntSwitcher, AntFormGroup, AntFormGroupLabel },
|
|
133
|
-
setup() {
|
|
134
|
-
const modelValue = computed({
|
|
135
|
-
// @ts-ignore
|
|
136
|
-
get: () => args.modelValue,
|
|
137
|
-
// @ts-ignore
|
|
138
|
-
set: (val) => args.modelValue = val
|
|
139
|
-
});
|
|
140
|
-
const skeleton = ref(true);
|
|
141
|
-
return { args, modelValue, InputState, skeleton, Size };
|
|
142
|
-
},
|
|
143
|
-
template: `
|
|
144
|
-
<AntFormGroup>
|
|
145
|
-
<AntFormGroupLabel>States</AntFormGroupLabel>
|
|
146
|
-
<AntFormGroup direction="row">
|
|
147
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label"
|
|
148
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
149
|
-
:state="InputState.base"/>
|
|
150
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label"
|
|
151
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
152
|
-
:state="InputState.info"/>
|
|
153
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label"
|
|
154
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
155
|
-
:state="InputState.success"/>
|
|
156
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label"
|
|
157
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
158
|
-
:state="InputState.warning"/>
|
|
159
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label"
|
|
160
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
161
|
-
:state="InputState.danger"/>
|
|
162
|
-
</AntFormGroup>
|
|
163
|
-
<AntFormGroupLabel>Sizes</AntFormGroupLabel>
|
|
164
|
-
<AntFormGroup direction="row">
|
|
165
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" :size="Size.lg"
|
|
166
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
167
|
-
/>
|
|
168
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" :size="Size.md"
|
|
169
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
170
|
-
/>
|
|
171
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" :size="Size.sm"
|
|
172
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
173
|
-
/>
|
|
174
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" :size="Size.xs"
|
|
175
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
176
|
-
/>
|
|
177
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" :size="Size.xs2"
|
|
178
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
179
|
-
/>
|
|
180
|
-
</AntFormGroup>
|
|
181
|
-
<AntFormGroup direction="row">
|
|
182
|
-
<AntFormGroup>
|
|
183
|
-
<AntFormGroupLabel>Disabled</AntFormGroupLabel>
|
|
184
|
-
<AntSwitcher v-bind="args" v-model="modelValue" :disabled="true" label="Label" class="w-60"
|
|
185
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
186
|
-
/>
|
|
187
|
-
</AntFormGroup>
|
|
188
|
-
<AntFormGroup>
|
|
189
|
-
<AntFormGroupLabel>Readonly</AntFormGroupLabel>
|
|
190
|
-
<AntSwitcher v-bind="args" v-model="modelValue" :readonly="true" label="Label" class="w-60"
|
|
191
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
192
|
-
/>
|
|
193
|
-
</AntFormGroup>
|
|
194
|
-
<AntFormGroup>
|
|
195
|
-
<AntFormGroupLabel>Skeleton</AntFormGroupLabel>
|
|
196
|
-
<AntSwitcher v-bind="args" v-model="modelValue" :skeleton="true" label="Label" class="w-60"
|
|
197
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
198
|
-
/>
|
|
199
|
-
</AntFormGroup>
|
|
200
|
-
</AntFormGroup>
|
|
201
|
-
<AntFormGroupLabel>Plain</AntFormGroupLabel>
|
|
202
|
-
<AntSwitcher v-bind="args" v-model="modelValue" class="w-60"/>
|
|
203
|
-
<AntFormGroupLabel>With label</AntFormGroupLabel>
|
|
204
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" class="w-60"/>
|
|
205
|
-
<AntFormGroupLabel>With description</AntFormGroupLabel>
|
|
206
|
-
<AntSwitcher v-bind="args" v-model="modelValue" class="w-60"
|
|
207
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"/>
|
|
208
|
-
<AntFormGroupLabel>With label + description</AntFormGroupLabel>
|
|
209
|
-
<AntSwitcher v-bind="args" v-model="modelValue" label="Label" class="w-60"
|
|
210
|
-
description="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"/>
|
|
211
|
-
</AntFormGroup>
|
|
212
|
-
`
|
|
213
|
-
}),
|
|
214
|
-
args: {
|
|
215
|
-
options: [
|
|
216
|
-
{
|
|
217
|
-
label: "Entry 1",
|
|
218
|
-
value: "entry-1"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
label: "Entry 2",
|
|
222
|
-
value: "entry-2"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
label: "Entry 3",
|
|
226
|
-
value: "entry-3"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
label: "Entry 4",
|
|
230
|
-
value: "entry-4"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
modelValue: "entry-1"
|
|
234
|
-
}
|
|
235
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AntTagInput from '../AntTagInput.vue';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntTagInput>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntTagInput>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const withValidator: Story;
|
|
8
|
-
export declare const AllowCreate: Story;
|
|
9
|
-
export declare const summary: Story;
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import AntTagInput from "../AntTagInput.vue";
|
|
2
|
-
import { reactive } from "vue";
|
|
3
|
-
import { ref } from "vue";
|
|
4
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
5
|
-
import { AntTagInputSize } from "../__types/AntTagInput.types.mjs";
|
|
6
|
-
import { useFieldValidator } from "@antify/validate";
|
|
7
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
8
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
9
|
-
const meta = {
|
|
10
|
-
title: "Inputs/Tag Input",
|
|
11
|
-
component: AntTagInput,
|
|
12
|
-
argTypes: {
|
|
13
|
-
modelValue: {
|
|
14
|
-
control: "text",
|
|
15
|
-
table: { type: { summary: "string|null" } }
|
|
16
|
-
},
|
|
17
|
-
state: {
|
|
18
|
-
control: { type: "select" },
|
|
19
|
-
options: Object.values(InputState)
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
control: { type: "select" },
|
|
23
|
-
options: Object.values(AntTagInputSize),
|
|
24
|
-
table: { defaultValue: { summary: AntTagInputSize.md } }
|
|
25
|
-
},
|
|
26
|
-
placeholder: {
|
|
27
|
-
table: { defaultValue: { summary: "this.label" } }
|
|
28
|
-
},
|
|
29
|
-
createCallback: {
|
|
30
|
-
control: "none",
|
|
31
|
-
description: "If allowCreate is true the createCallback needs to be specified. It will be called when the user creates a new tag. It should return a promise that resolves to a SelectOption.",
|
|
32
|
-
table: {
|
|
33
|
-
type: {
|
|
34
|
-
summary: "(item: string) => Promise<SelectOption>",
|
|
35
|
-
detail: `
|
|
36
|
-
Params:
|
|
37
|
-
item: string - the label of the new tag
|
|
38
|
-
|
|
39
|
-
Returns:
|
|
40
|
-
Promise<SelectOption> - the new tag as a SelectOption
|
|
41
|
-
`
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export default meta;
|
|
48
|
-
const options = [
|
|
49
|
-
{
|
|
50
|
-
label: "Tag",
|
|
51
|
-
value: "1"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "Cat",
|
|
55
|
-
value: "2"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
label: "Dog",
|
|
59
|
-
value: "3"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: "Chicken",
|
|
63
|
-
value: "4"
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
export const Docs = {
|
|
67
|
-
render: (args) => ({
|
|
68
|
-
components: { AntTagInput },
|
|
69
|
-
setup() {
|
|
70
|
-
const value = ref([]);
|
|
71
|
-
return {
|
|
72
|
-
args,
|
|
73
|
-
value
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
template: `
|
|
77
|
-
<div style="width: 360px">
|
|
78
|
-
<AntTagInput v-model="value" v-bind="args"/>
|
|
79
|
-
</div>
|
|
80
|
-
`
|
|
81
|
-
}),
|
|
82
|
-
args: {
|
|
83
|
-
options
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
export const withValidator = {
|
|
87
|
-
render: (args) => ({
|
|
88
|
-
components: { AntTagInput },
|
|
89
|
-
setup() {
|
|
90
|
-
const value = ref(null);
|
|
91
|
-
const validator = reactive(useFieldValidator((val) => val?.length <= 3 || "Max 3 tags are allowed"));
|
|
92
|
-
return {
|
|
93
|
-
args,
|
|
94
|
-
value,
|
|
95
|
-
validator,
|
|
96
|
-
InputState
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
template: `
|
|
100
|
-
<div style="width: 360px">
|
|
101
|
-
<AntTagInput
|
|
102
|
-
v-model="value"
|
|
103
|
-
v-bind="args"
|
|
104
|
-
description="Choose max. 3 tags."
|
|
105
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
106
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
107
|
-
@validate="(val) => validator.validate(val)"
|
|
108
|
-
/>
|
|
109
|
-
</div>
|
|
110
|
-
`
|
|
111
|
-
}),
|
|
112
|
-
args: {
|
|
113
|
-
options
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
export const AllowCreate = {
|
|
117
|
-
render: Docs.render,
|
|
118
|
-
args: {
|
|
119
|
-
options,
|
|
120
|
-
allowCreate: true,
|
|
121
|
-
createCallback(item) {
|
|
122
|
-
return new Promise((resolve) => {
|
|
123
|
-
resolve({ label: item, value: `${Math.random()}-${item}` });
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
export const summary = {
|
|
129
|
-
render: (args) => ({
|
|
130
|
-
components: { AntTagInput, AntFormGroup, AntFormGroupLabel },
|
|
131
|
-
setup() {
|
|
132
|
-
const value = ref(["1", "2"]);
|
|
133
|
-
const noValue = ref([]);
|
|
134
|
-
return {
|
|
135
|
-
args,
|
|
136
|
-
value,
|
|
137
|
-
noValue,
|
|
138
|
-
InputState,
|
|
139
|
-
AntTagInputSize
|
|
140
|
-
};
|
|
141
|
-
},
|
|
142
|
-
template: `
|
|
143
|
-
<AntFormGroup>
|
|
144
|
-
<AntFormGroupLabel>States</AntFormGroupLabel>
|
|
145
|
-
<AntFormGroup>
|
|
146
|
-
<AntFormGroup direction="row">
|
|
147
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label"
|
|
148
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
149
|
-
<AntTagInput v-bind="args" v-model="noValue" :state="InputState.info" class="w-48" label="Label"
|
|
150
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
151
|
-
<AntTagInput v-bind="args" v-model="noValue" :state="InputState.success" class="w-48" label="Label"
|
|
152
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
153
|
-
<AntTagInput v-bind="args" v-model="noValue" :state="InputState.warning" class="w-48" label="Label"
|
|
154
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
155
|
-
<AntTagInput v-bind="args" v-model="noValue" :state="InputState.danger" class="w-48" label="Label"
|
|
156
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
157
|
-
</AntFormGroup>
|
|
158
|
-
<AntFormGroup direction="row">
|
|
159
|
-
<AntTagInput v-bind="args" v-model="value" class="w-48" label="Label"
|
|
160
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
161
|
-
<AntTagInput v-bind="args" v-model="value" :state="InputState.info" class="w-48" label="Label"
|
|
162
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
163
|
-
<AntTagInput v-bind="args" v-model="value" :state="InputState.success" class="w-48" label="Label"
|
|
164
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
165
|
-
<AntTagInput v-bind="args" v-model="value" :state="InputState.warning" class="w-48" label="Label"
|
|
166
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
167
|
-
<AntTagInput v-bind="args" v-model="value" :state="InputState.danger" class="w-48" label="Label"
|
|
168
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
169
|
-
</AntFormGroup>
|
|
170
|
-
</AntFormGroup>
|
|
171
|
-
<AntFormGroupLabel>Sizes</AntFormGroupLabel>
|
|
172
|
-
<AntFormGroup>
|
|
173
|
-
<AntFormGroup direction="row">
|
|
174
|
-
<AntTagInput v-bind="args" v-model="noValue" :size="AntTagInputSize.lg" class="w-48" label="Label"
|
|
175
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
176
|
-
<AntTagInput v-bind="args" v-model="noValue" :size="AntTagInputSize.md" class="w-48" label="Label"
|
|
177
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
178
|
-
<AntTagInput v-bind="args" v-model="noValue" :size="AntTagInputSize.sm" class="w-48" label="Label"
|
|
179
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
180
|
-
</AntFormGroup>
|
|
181
|
-
<AntFormGroup direction="row">
|
|
182
|
-
<AntTagInput v-bind="args" v-model="value" :size="AntTagInputSize.lg" class="w-48" label="Label"
|
|
183
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
184
|
-
<AntTagInput v-bind="args" v-model="value" :size="AntTagInputSize.md" class="w-48" label="Label"
|
|
185
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
186
|
-
<AntTagInput v-bind="args" v-model="value" :size="AntTagInputSize.sm" class="w-48" label="Label"
|
|
187
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
188
|
-
</AntFormGroup>
|
|
189
|
-
</AntFormGroup>
|
|
190
|
-
<AntFormGroup direction="row">
|
|
191
|
-
<AntFormGroup>
|
|
192
|
-
<AntFormGroupLabel>Disabled</AntFormGroupLabel>
|
|
193
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label" value="Value"
|
|
194
|
-
description="Lorem ipsum dolor sit amet." disabled/>
|
|
195
|
-
<AntTagInput v-bind="args" v-model="value" class="w-48" label="Label" value="Value"
|
|
196
|
-
description="Lorem ipsum dolor sit amet." disabled/>
|
|
197
|
-
</AntFormGroup>
|
|
198
|
-
<AntFormGroup>
|
|
199
|
-
<AntFormGroupLabel>Readonly</AntFormGroupLabel>
|
|
200
|
-
<!--TODO:: Add readonly prop if it is implemented-->
|
|
201
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label" value="Value"
|
|
202
|
-
description="Lorem ipsum dolor sit amet."/>
|
|
203
|
-
<AntTagInput v-bind="args" v-model="value" class="w-48" label="Label" value="Value"
|
|
204
|
-
description="Lorem ipsum dolor sit amet."/>
|
|
205
|
-
</AntFormGroup>
|
|
206
|
-
<AntFormGroup>
|
|
207
|
-
<AntFormGroupLabel>Skeleton</AntFormGroupLabel>
|
|
208
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label" value="Value"
|
|
209
|
-
description="Lorem ipsum dolor sit amet." skeleton/>
|
|
210
|
-
</AntFormGroup>
|
|
211
|
-
</AntFormGroup>
|
|
212
|
-
<AntFormGroupLabel>Plain</AntFormGroupLabel>
|
|
213
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" value="value"/>
|
|
214
|
-
<AntFormGroupLabel>With label</AntFormGroupLabel>
|
|
215
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label" value="Value"/>
|
|
216
|
-
<AntFormGroupLabel>With description</AntFormGroupLabel>
|
|
217
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" value="Value"
|
|
218
|
-
description="Lorem ipsum dolor sit amet."/>
|
|
219
|
-
<AntFormGroupLabel>With label + description</AntFormGroupLabel>
|
|
220
|
-
<AntTagInput v-bind="args" v-model="noValue" class="w-48" label="Label" value="Value"
|
|
221
|
-
description="Lorem ipsum dolor sit amet."/>
|
|
222
|
-
</AntFormGroup>
|
|
223
|
-
`
|
|
224
|
-
}),
|
|
225
|
-
args: {
|
|
226
|
-
...Docs.args
|
|
227
|
-
}
|
|
228
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntTextInput from '../AntTextInput.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntTextInput>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntTextInput>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const withValidator: Story;
|
|
8
|
-
export declare const limited: Story;
|
|
9
|
-
export declare const Summary: Story;
|