@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,255 +0,0 @@
|
|
|
1
|
-
import { Size } from "../../../enums/Size.enum.mjs";
|
|
2
|
-
import AntSelect from "../AntSelect.vue";
|
|
3
|
-
import { computed, reactive } from "vue";
|
|
4
|
-
import { useFieldValidator } from "@antify/validate";
|
|
5
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "Inputs/Select",
|
|
8
|
-
component: AntSelect,
|
|
9
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
10
|
-
argTypes: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
table: { type: { summary: "string|null" } }
|
|
13
|
-
},
|
|
14
|
-
options: {
|
|
15
|
-
description: "List of SelectOptions",
|
|
16
|
-
table: {
|
|
17
|
-
type: {
|
|
18
|
-
summary: "SelectOption[]",
|
|
19
|
-
detail: "type SelectOption = {label: string; value: string | number;}"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
state: {
|
|
24
|
-
control: { type: "select" },
|
|
25
|
-
options: Object.values(InputState)
|
|
26
|
-
},
|
|
27
|
-
size: {
|
|
28
|
-
control: { type: "select" },
|
|
29
|
-
options: Object.values(Size),
|
|
30
|
-
table: { defaultValue: { summary: Size.md } }
|
|
31
|
-
},
|
|
32
|
-
placeholder: {
|
|
33
|
-
table: { defaultValue: { summary: "this.label" } }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export default meta;
|
|
38
|
-
const options = [
|
|
39
|
-
{
|
|
40
|
-
label: "Option 1",
|
|
41
|
-
value: "1"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "Option 2",
|
|
45
|
-
value: "2"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "Option 3",
|
|
49
|
-
value: "3"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: "Option 4",
|
|
53
|
-
value: "4"
|
|
54
|
-
}
|
|
55
|
-
];
|
|
56
|
-
export const Docs = {
|
|
57
|
-
render: (args) => ({
|
|
58
|
-
components: { AntSelect },
|
|
59
|
-
setup() {
|
|
60
|
-
const modelValue = computed({
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
get: () => args.modelValue,
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
set: (val) => args.modelValue = val
|
|
65
|
-
});
|
|
66
|
-
return { args, modelValue };
|
|
67
|
-
},
|
|
68
|
-
template: `
|
|
69
|
-
<AntSelect v-bind="args" v-model="modelValue"/>`
|
|
70
|
-
}),
|
|
71
|
-
args: {
|
|
72
|
-
modelValue: null,
|
|
73
|
-
label: "Label",
|
|
74
|
-
options,
|
|
75
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
export const withValidator = {
|
|
79
|
-
render: (args) => ({
|
|
80
|
-
components: { AntSelect },
|
|
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(
|
|
89
|
-
useFieldValidator([
|
|
90
|
-
(val) => val !== null || "This field should not be empty",
|
|
91
|
-
(val) => val === "invalid" ? 'Value "Invalid" is not allowed' : true
|
|
92
|
-
])
|
|
93
|
-
);
|
|
94
|
-
return { args, modelValue, validator, InputState };
|
|
95
|
-
},
|
|
96
|
-
template: `
|
|
97
|
-
<AntSelect
|
|
98
|
-
v-bind="args"
|
|
99
|
-
v-model="modelValue"
|
|
100
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
101
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
102
|
-
@validate="(val) => validator.validate(val)"
|
|
103
|
-
/>`
|
|
104
|
-
}),
|
|
105
|
-
args: {
|
|
106
|
-
...Docs.args,
|
|
107
|
-
options: [
|
|
108
|
-
{
|
|
109
|
-
label: "Valid",
|
|
110
|
-
value: "valid"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
label: "Invalid",
|
|
114
|
-
value: "invalid"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
nullable: true
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
export const nullable = {
|
|
121
|
-
render: Docs.render,
|
|
122
|
-
args: {
|
|
123
|
-
...Docs.args,
|
|
124
|
-
modelValue: "1",
|
|
125
|
-
nullable: true
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
export const skeleton = {
|
|
129
|
-
render: Docs.render,
|
|
130
|
-
args: {
|
|
131
|
-
...Docs.args,
|
|
132
|
-
nullable: true,
|
|
133
|
-
skeleton: true
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
export const disabled = {
|
|
137
|
-
render: Docs.render,
|
|
138
|
-
args: {
|
|
139
|
-
...Docs.args,
|
|
140
|
-
disabled: true
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
export const withPlaceholder = {
|
|
144
|
-
render: Docs.render,
|
|
145
|
-
args: {
|
|
146
|
-
...Docs.args,
|
|
147
|
-
placeholder: "Lorem ipsum dolor sit amet"
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
export const ellipsisText = {
|
|
151
|
-
render: (args, ctx) => ({
|
|
152
|
-
// @ts-ignore
|
|
153
|
-
components: Docs.render(args, ctx).components,
|
|
154
|
-
// @ts-ignore
|
|
155
|
-
setup: Docs.render(args, ctx).setup,
|
|
156
|
-
template: `
|
|
157
|
-
<div class="px-4 pt-4 pb-72 flex gap-2.5">
|
|
158
|
-
<div class="w-1/6 flex flex-col gap-2.5 border border-info-500 border-dashed">
|
|
159
|
-
<AntSelect v-bind="args" v-model="modelValue"/>
|
|
160
|
-
<AntSelect v-bind="args" value="5"/>
|
|
161
|
-
</div>
|
|
162
|
-
<div class="w-2/6 flex flex-row gap-2.5 border border-info-500 border-dashed">
|
|
163
|
-
<AntSelect v-bind="args" v-model="modelValue"/>
|
|
164
|
-
<AntSelect v-bind="args" value="5"/>
|
|
165
|
-
</div>
|
|
166
|
-
<div class="flex flex-row gap-2.5 border border-info-500 border-dashed">
|
|
167
|
-
<AntSelect v-bind="args" wrapper-class="w-1/6" v-model="modelValue"/>
|
|
168
|
-
<AntSelect v-bind="args" wrapper-class="w-1/6" value="5"/>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
`
|
|
172
|
-
}),
|
|
173
|
-
args: {
|
|
174
|
-
...Docs.args,
|
|
175
|
-
nullable: true
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
export const summary = {
|
|
179
|
-
parameters: {
|
|
180
|
-
chromatic: { disableSnapshot: false }
|
|
181
|
-
},
|
|
182
|
-
render: (args) => ({
|
|
183
|
-
components: { AntSelect },
|
|
184
|
-
setup() {
|
|
185
|
-
return { args };
|
|
186
|
-
},
|
|
187
|
-
template: `
|
|
188
|
-
<div class="p-4 flex flex-col gap-2.5">
|
|
189
|
-
<div class="flex w-2/5 gap-2.5">
|
|
190
|
-
<AntSelect v-bind="args" :value="null"
|
|
191
|
-
placeholder="Lorem ipsum dolor sit amet, consetetur sadipscing elitr"/>
|
|
192
|
-
<AntSelect v-bind="args" value="5"/>
|
|
193
|
-
</div>
|
|
194
|
-
<div class="flex gap-2.5">
|
|
195
|
-
<AntSelect v-bind="args" :value="null" size="md" state="base"/>
|
|
196
|
-
<AntSelect v-bind="args" :value="null" size="md" state="info"/>
|
|
197
|
-
<AntSelect v-bind="args" :value="null" size="md" state="success"/>
|
|
198
|
-
<AntSelect v-bind="args" :value="null" size="md" state="warning"/>
|
|
199
|
-
<AntSelect v-bind="args" :value="null" size="md" state="danger"/>
|
|
200
|
-
</div>
|
|
201
|
-
<div class="flex gap-2.5">
|
|
202
|
-
<AntSelect v-bind="args" :value="null" size="sm" state="base"/>
|
|
203
|
-
<AntSelect v-bind="args" :value="null" size="sm" state="info"/>
|
|
204
|
-
<AntSelect v-bind="args" :value="null" size="sm" state="success"/>
|
|
205
|
-
<AntSelect v-bind="args" :value="null" size="sm" state="warning"/>
|
|
206
|
-
<AntSelect v-bind="args" :value="null" size="sm" state="danger"/>
|
|
207
|
-
</div>
|
|
208
|
-
<div class="flex gap-2.5">
|
|
209
|
-
<AntSelect v-bind="args" value="1" size="md" state="base"/>
|
|
210
|
-
<AntSelect v-bind="args" value="1" size="md" state="info"/>
|
|
211
|
-
<AntSelect v-bind="args" value="1" size="md" state="success"/>
|
|
212
|
-
<AntSelect v-bind="args" value="1" size="md" state="warning"/>
|
|
213
|
-
<AntSelect v-bind="args" value="1" size="md" state="danger"/>
|
|
214
|
-
</div>
|
|
215
|
-
<div class="flex gap-2.5">
|
|
216
|
-
<AntSelect v-bind="args" value="1" size="sm" state="base"/>
|
|
217
|
-
<AntSelect v-bind="args" value="1" size="sm" state="info"/>
|
|
218
|
-
<AntSelect v-bind="args" value="1" size="sm" state="success"/>
|
|
219
|
-
<AntSelect v-bind="args" value="1" size="sm" state="warning"/>
|
|
220
|
-
<AntSelect v-bind="args" value="1" size="sm" state="danger"/>
|
|
221
|
-
</div>
|
|
222
|
-
<div class="flex gap-2.5">
|
|
223
|
-
<AntSelect v-bind="args" value="1" size="sm" state="base" disabled/>
|
|
224
|
-
<AntSelect v-bind="args" value="1" size="sm" state="info" disabled/>
|
|
225
|
-
<AntSelect v-bind="args" value="1" size="sm" state="success" disabled/>
|
|
226
|
-
<AntSelect v-bind="args" value="1" size="sm" state="warning" disabled/>
|
|
227
|
-
<AntSelect v-bind="args" value="1" size="sm" state="danger" disabled/>
|
|
228
|
-
</div>
|
|
229
|
-
<div class="flex gap-2.5">
|
|
230
|
-
<AntSelect v-bind="args" :value="null" grouped="none"/>
|
|
231
|
-
<AntSelect v-bind="args" :value="null" grouped="right"/>
|
|
232
|
-
<AntSelect v-bind="args" :value="null" grouped="center"/>
|
|
233
|
-
<AntSelect v-bind="args" :value="null" grouped="left"/>
|
|
234
|
-
</div>
|
|
235
|
-
<div class="flex gap-2.5">
|
|
236
|
-
<AntSelect v-bind="args" value="1" size="md" nullable state="base"/>
|
|
237
|
-
<AntSelect v-bind="args" value="1" size="md" nullable state="info"/>
|
|
238
|
-
<AntSelect v-bind="args" value="1" size="md" nullable state="success"/>
|
|
239
|
-
<AntSelect v-bind="args" value="1" size="md" nullable state="warning"/>
|
|
240
|
-
<AntSelect v-bind="args" value="1" size="md" nullable state="danger"/>
|
|
241
|
-
</div>
|
|
242
|
-
<div class="flex gap-2.5">
|
|
243
|
-
<AntSelect v-bind="args" value="1" size="sm" nullable state="base"/>
|
|
244
|
-
<AntSelect v-bind="args" value="1" size="sm" nullable state="info"/>
|
|
245
|
-
<AntSelect v-bind="args" value="1" size="sm" nullable state="success"/>
|
|
246
|
-
<AntSelect v-bind="args" value="1" size="sm" nullable state="warning"/>
|
|
247
|
-
<AntSelect v-bind="args" value="1" size="sm" nullable state="danger"/>
|
|
248
|
-
</div>
|
|
249
|
-
</div>
|
|
250
|
-
`
|
|
251
|
-
}),
|
|
252
|
-
args: {
|
|
253
|
-
...Docs.args
|
|
254
|
-
}
|
|
255
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntSwitch from '../AntSwitch.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntSwitch>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntSwitch>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const withValidator: Story;
|
|
8
|
-
export declare const Summary: Story;
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import AntSwitch from "../AntSwitch.vue";
|
|
2
|
-
import { computed, reactive, ref } from "vue";
|
|
3
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
4
|
-
import { useFieldValidator } from "@antify/validate";
|
|
5
|
-
import { Size } from "../../../enums/Size.enum.mjs";
|
|
6
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
7
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
8
|
-
const meta = {
|
|
9
|
-
title: "Inputs/Switch",
|
|
10
|
-
component: AntSwitch,
|
|
11
|
-
argTypes: {
|
|
12
|
-
state: {
|
|
13
|
-
control: { type: "select" },
|
|
14
|
-
options: Object.values(InputState)
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
control: { type: "select" },
|
|
18
|
-
options: Object.values(Size)
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export default meta;
|
|
23
|
-
export const Docs = {
|
|
24
|
-
render: (args) => ({
|
|
25
|
-
components: { AntSwitch },
|
|
26
|
-
setup() {
|
|
27
|
-
return { args };
|
|
28
|
-
},
|
|
29
|
-
template: `
|
|
30
|
-
<AntSwitch v-bind="args"/>
|
|
31
|
-
`
|
|
32
|
-
}),
|
|
33
|
-
args: {
|
|
34
|
-
modelValue: false
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export const withValidator = {
|
|
38
|
-
render: (args) => ({
|
|
39
|
-
components: { AntSwitch },
|
|
40
|
-
setup() {
|
|
41
|
-
const value = computed({
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
get: () => args.modelValue,
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
set: (val) => args.modelValue = val
|
|
46
|
-
});
|
|
47
|
-
const validator = reactive(useFieldValidator([
|
|
48
|
-
(val) => {
|
|
49
|
-
return !val || "Switch must be off";
|
|
50
|
-
}
|
|
51
|
-
]));
|
|
52
|
-
return { args, value, validator, InputState };
|
|
53
|
-
},
|
|
54
|
-
template: `
|
|
55
|
-
<AntSwitch
|
|
56
|
-
v-bind="args"
|
|
57
|
-
v-model="value"
|
|
58
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
59
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
60
|
-
@validate="(val) => validator.validate(val)"
|
|
61
|
-
>
|
|
62
|
-
Value must be false
|
|
63
|
-
</AntSwitch>
|
|
64
|
-
|
|
65
|
-
<span class="text-sm text-gray-500">Reactive value: {{ value }}</span>
|
|
66
|
-
`
|
|
67
|
-
}),
|
|
68
|
-
args: {
|
|
69
|
-
...Docs.args
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
export const Summary = {
|
|
73
|
-
parameters: {
|
|
74
|
-
chromatic: { disableSnapshot: false }
|
|
75
|
-
},
|
|
76
|
-
render: (args) => ({
|
|
77
|
-
components: { AntSwitch, AntFormGroup, AntFormGroupLabel },
|
|
78
|
-
setup() {
|
|
79
|
-
const value = ref(true);
|
|
80
|
-
const notValue = ref(false);
|
|
81
|
-
return { args, value, notValue, InputState, Size };
|
|
82
|
-
},
|
|
83
|
-
template: `
|
|
84
|
-
<AntFormGroup>
|
|
85
|
-
<AntFormGroupLabel>States & Messages & False value</AntFormGroupLabel>
|
|
86
|
-
<AntFormGroup direction="row">
|
|
87
|
-
<AntSwitch
|
|
88
|
-
v-model="notValue"
|
|
89
|
-
label="Label"
|
|
90
|
-
description="Lorem ipsum dolor sit amet"
|
|
91
|
-
:messages="['Here is a message']"
|
|
92
|
-
:state="InputState.base">Content
|
|
93
|
-
</AntSwitch>
|
|
94
|
-
<AntSwitch
|
|
95
|
-
v-model="notValue"
|
|
96
|
-
label="Label"
|
|
97
|
-
description="Lorem ipsum dolor sit amet"
|
|
98
|
-
:messages="['Here is a message']"
|
|
99
|
-
:state="InputState.info">Content
|
|
100
|
-
</AntSwitch>
|
|
101
|
-
<AntSwitch
|
|
102
|
-
v-model="notValue"
|
|
103
|
-
label="Label"
|
|
104
|
-
description="Lorem ipsum dolor sit amet"
|
|
105
|
-
:messages="['Here is a message']"
|
|
106
|
-
:state="InputState.success">Content
|
|
107
|
-
</AntSwitch>
|
|
108
|
-
<AntSwitch
|
|
109
|
-
v-model="notValue"
|
|
110
|
-
label="Label"
|
|
111
|
-
description="Lorem ipsum dolor sit amet"
|
|
112
|
-
:messages="['Here is a message']"
|
|
113
|
-
:state="InputState.warning">Content
|
|
114
|
-
</AntSwitch>
|
|
115
|
-
<AntSwitch
|
|
116
|
-
v-model="notValue"
|
|
117
|
-
label="Label"
|
|
118
|
-
description="Lorem ipsum dolor sit amet"
|
|
119
|
-
:messages="['Here is a message']"
|
|
120
|
-
:state="InputState.danger">Content
|
|
121
|
-
</AntSwitch>
|
|
122
|
-
</AntFormGroup>
|
|
123
|
-
<AntFormGroupLabel>States & Messages & True value</AntFormGroupLabel>
|
|
124
|
-
<AntFormGroup direction="row">
|
|
125
|
-
<AntSwitch
|
|
126
|
-
v-model="value"
|
|
127
|
-
label="Label"
|
|
128
|
-
description="Lorem ipsum dolor sit amet"
|
|
129
|
-
:messages="['Here is a message']"
|
|
130
|
-
:state="InputState.base">Content
|
|
131
|
-
</AntSwitch>
|
|
132
|
-
<AntSwitch
|
|
133
|
-
v-model="value"
|
|
134
|
-
label="Label"
|
|
135
|
-
description="Lorem ipsum dolor sit amet"
|
|
136
|
-
:messages="['Here is a message']"
|
|
137
|
-
:state="InputState.info">Content
|
|
138
|
-
</AntSwitch>
|
|
139
|
-
<AntSwitch
|
|
140
|
-
v-model="value"
|
|
141
|
-
label="Label"
|
|
142
|
-
description="Lorem ipsum dolor sit amet"
|
|
143
|
-
:messages="['Here is a message']"
|
|
144
|
-
:state="InputState.success">Content
|
|
145
|
-
</AntSwitch>
|
|
146
|
-
<AntSwitch
|
|
147
|
-
v-model="value"
|
|
148
|
-
label="Label"
|
|
149
|
-
description="Lorem ipsum dolor sit amet"
|
|
150
|
-
:messages="['Here is a message']"
|
|
151
|
-
:state="InputState.warning">Content
|
|
152
|
-
</AntSwitch>
|
|
153
|
-
<AntSwitch
|
|
154
|
-
v-model="value"
|
|
155
|
-
label="Label"
|
|
156
|
-
description="Lorem ipsum dolor sit amet"
|
|
157
|
-
:messages="['Here is a message']"
|
|
158
|
-
:state="InputState.danger">Content
|
|
159
|
-
</AntSwitch>
|
|
160
|
-
</AntFormGroup>
|
|
161
|
-
<AntFormGroupLabel>Sizes</AntFormGroupLabel>
|
|
162
|
-
<AntFormGroup direction="row">
|
|
163
|
-
<AntSwitch
|
|
164
|
-
v-model="notValue"
|
|
165
|
-
class="w-28"
|
|
166
|
-
:size="Size.lg"
|
|
167
|
-
label="Label"
|
|
168
|
-
description="Lorem ipsum dolor sit amet"
|
|
169
|
-
>Content
|
|
170
|
-
</AntSwitch>
|
|
171
|
-
<AntSwitch
|
|
172
|
-
v-model="value"
|
|
173
|
-
class="w-28"
|
|
174
|
-
:size="Size.lg"
|
|
175
|
-
label="Label"
|
|
176
|
-
description="Lorem ipsum dolor sit amet"
|
|
177
|
-
>Content
|
|
178
|
-
</AntSwitch>
|
|
179
|
-
<AntSwitch
|
|
180
|
-
v-model="notValue"
|
|
181
|
-
class="w-28"
|
|
182
|
-
:size="Size.md"
|
|
183
|
-
label="Label"
|
|
184
|
-
description="Lorem ipsum dolor sit amet"
|
|
185
|
-
>Content
|
|
186
|
-
</AntSwitch>
|
|
187
|
-
<AntSwitch
|
|
188
|
-
v-model="value"
|
|
189
|
-
class="w-28"
|
|
190
|
-
:size="Size.md"
|
|
191
|
-
label="Label"
|
|
192
|
-
description="Lorem ipsum dolor sit amet"
|
|
193
|
-
>Content
|
|
194
|
-
</AntSwitch>
|
|
195
|
-
<AntSwitch
|
|
196
|
-
v-model="notValue"
|
|
197
|
-
class="w-28"
|
|
198
|
-
:size="Size.sm"
|
|
199
|
-
label="Label"
|
|
200
|
-
description="Lorem ipsum dolor sit amet"
|
|
201
|
-
>Content
|
|
202
|
-
</AntSwitch>
|
|
203
|
-
<AntSwitch
|
|
204
|
-
v-model="value"
|
|
205
|
-
class="w-28"
|
|
206
|
-
:size="Size.sm"
|
|
207
|
-
label="Label"
|
|
208
|
-
description="Lorem ipsum dolor sit amet"
|
|
209
|
-
>Content
|
|
210
|
-
</AntSwitch>
|
|
211
|
-
<AntSwitch
|
|
212
|
-
v-model="notValue"
|
|
213
|
-
class="w-28"
|
|
214
|
-
:size="Size.xs"
|
|
215
|
-
label="Label"
|
|
216
|
-
description="Lorem ipsum dolor sit amet"
|
|
217
|
-
>Content
|
|
218
|
-
</AntSwitch>
|
|
219
|
-
<AntSwitch
|
|
220
|
-
v-model="value"
|
|
221
|
-
class="w-28"
|
|
222
|
-
:size="Size.xs"
|
|
223
|
-
label="Label"
|
|
224
|
-
description="Lorem ipsum dolor sit amet"
|
|
225
|
-
>Content
|
|
226
|
-
</AntSwitch>
|
|
227
|
-
<AntSwitch
|
|
228
|
-
v-model="notValue"
|
|
229
|
-
class="w-28"
|
|
230
|
-
:size="Size.xs2"
|
|
231
|
-
label="Label"
|
|
232
|
-
description="Lorem ipsum dolor sit amet"
|
|
233
|
-
>Content
|
|
234
|
-
</AntSwitch>
|
|
235
|
-
<AntSwitch
|
|
236
|
-
v-model="value"
|
|
237
|
-
class="w-28"
|
|
238
|
-
:size="Size.xs2"
|
|
239
|
-
label="Label"
|
|
240
|
-
description="Lorem ipsum dolor sit amet"
|
|
241
|
-
>Content
|
|
242
|
-
</AntSwitch>
|
|
243
|
-
</AntFormGroup>
|
|
244
|
-
<AntFormGroup direction="row">
|
|
245
|
-
<AntFormGroup>
|
|
246
|
-
<AntFormGroupLabel>Disabled</AntFormGroupLabel>
|
|
247
|
-
<AntFormGroup direction="row">
|
|
248
|
-
<AntSwitch
|
|
249
|
-
v-model="notValue"
|
|
250
|
-
label="Label"
|
|
251
|
-
description="Lorem ipsum dolor sit amet"
|
|
252
|
-
:state="InputState.base"
|
|
253
|
-
:disabled="true"
|
|
254
|
-
>Content
|
|
255
|
-
</AntSwitch>
|
|
256
|
-
<AntSwitch
|
|
257
|
-
v-model="value"
|
|
258
|
-
label="Label"
|
|
259
|
-
description="Lorem ipsum dolor sit amet"
|
|
260
|
-
:state="InputState.base"
|
|
261
|
-
:disabled="true"
|
|
262
|
-
>Content
|
|
263
|
-
</AntSwitch>
|
|
264
|
-
</AntFormGroup>
|
|
265
|
-
</AntFormGroup>
|
|
266
|
-
<AntFormGroup>
|
|
267
|
-
<AntFormGroupLabel>Readonly</AntFormGroupLabel>
|
|
268
|
-
<AntFormGroup direction="row">
|
|
269
|
-
<AntSwitch
|
|
270
|
-
v-model="notValue"
|
|
271
|
-
label="Label"
|
|
272
|
-
description="Lorem ipsum dolor sit amet"
|
|
273
|
-
:state="InputState.base"
|
|
274
|
-
:readonly="true"
|
|
275
|
-
>Content
|
|
276
|
-
</AntSwitch>
|
|
277
|
-
<AntSwitch
|
|
278
|
-
v-model="value"
|
|
279
|
-
label="Label"
|
|
280
|
-
description="Lorem ipsum dolor sit amet"
|
|
281
|
-
:state="InputState.base"
|
|
282
|
-
:readonly="true"
|
|
283
|
-
>Content
|
|
284
|
-
</AntSwitch>
|
|
285
|
-
</AntFormGroup>
|
|
286
|
-
</AntFormGroup>
|
|
287
|
-
<AntFormGroup>
|
|
288
|
-
<AntFormGroupLabel>Skeleton</AntFormGroupLabel>
|
|
289
|
-
<AntSwitch
|
|
290
|
-
v-model="value"
|
|
291
|
-
label="Label"
|
|
292
|
-
description="Lorem ipsum dolor sit amet"
|
|
293
|
-
:state="InputState.base"
|
|
294
|
-
skeleton
|
|
295
|
-
>Content
|
|
296
|
-
</AntSwitch>
|
|
297
|
-
</AntFormGroup>
|
|
298
|
-
</AntFormGroup>
|
|
299
|
-
<AntFormGroupLabel>Plain & (Plain & Content)</AntFormGroupLabel>
|
|
300
|
-
<AntFormGroup direction="row">
|
|
301
|
-
<AntSwitch v-model="notValue"/>
|
|
302
|
-
<AntSwitch v-model="value"/>
|
|
303
|
-
<AntSwitch v-model="notValue">Content</AntSwitch>
|
|
304
|
-
<AntSwitch v-model="value">Content</AntSwitch>
|
|
305
|
-
</AntFormGroup>
|
|
306
|
-
<AntFormGroupLabel>Label & (Label & Content)</AntFormGroupLabel>
|
|
307
|
-
<AntFormGroup direction="row">
|
|
308
|
-
<AntSwitch v-model="notValue" label="Label"/>
|
|
309
|
-
<AntSwitch v-model="value" label="Label"/>
|
|
310
|
-
<AntSwitch v-model="notValue" label="Label">Content</AntSwitch>
|
|
311
|
-
<AntSwitch v-model="value" label="Label">Content</AntSwitch>
|
|
312
|
-
</AntFormGroup>
|
|
313
|
-
<AntFormGroupLabel>Description & (Description & Content)</AntFormGroupLabel>
|
|
314
|
-
<AntFormGroup direction="row">
|
|
315
|
-
<AntSwitch v-model="notValue" class="w-28" description="Lorem ipsum dolor sit amet"/>
|
|
316
|
-
<AntSwitch v-model="value" class="w-28" description="Lorem ipsum dolor sit amet"/>
|
|
317
|
-
<AntSwitch
|
|
318
|
-
v-model="notValue"
|
|
319
|
-
class="w-28"
|
|
320
|
-
description="Lorem ipsum dolor sit amet"
|
|
321
|
-
>Content
|
|
322
|
-
</AntSwitch>
|
|
323
|
-
<AntSwitch
|
|
324
|
-
v-model="value"
|
|
325
|
-
class="w-28"
|
|
326
|
-
description="Lorem ipsum dolor sit amet"
|
|
327
|
-
>Content
|
|
328
|
-
</AntSwitch>
|
|
329
|
-
</AntFormGroup>
|
|
330
|
-
<AntFormGroupLabel>Label & Description & (Label & Description & Content)</AntFormGroupLabel>
|
|
331
|
-
<AntFormGroup direction="row">
|
|
332
|
-
<AntSwitch v-model="notValue" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"/>
|
|
333
|
-
<AntSwitch v-model="value" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"/>
|
|
334
|
-
<AntSwitch v-model="notValue" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"
|
|
335
|
-
>Content
|
|
336
|
-
</AntSwitch>
|
|
337
|
-
<AntSwitch v-model="value" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"
|
|
338
|
-
>Content
|
|
339
|
-
</AntSwitch>
|
|
340
|
-
</AntFormGroup>
|
|
341
|
-
</AntFormGroup>
|
|
342
|
-
`
|
|
343
|
-
})
|
|
344
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntSwitcher from '../AntSwitcher.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntSwitcher>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntSwitcher>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const withValidator: Story;
|
|
8
|
-
export declare const Summary: Story;
|