@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,193 +0,0 @@
|
|
|
1
|
-
import { Size } from "../../../enums/Size.enum.mjs";
|
|
2
|
-
import { Direction } from "../../../enums/Direction.enum.mjs";
|
|
3
|
-
import AntDateInput from "../AntDateInput.vue";
|
|
4
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
5
|
-
import { AntDateInputTypes } from "../__types/AntDateInput.types.mjs";
|
|
6
|
-
import { isRequiredRule, useFieldValidator } from "@antify/validate";
|
|
7
|
-
import { reactive } from "vue";
|
|
8
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
9
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
10
|
-
const meta = {
|
|
11
|
-
title: "Inputs/Date Input",
|
|
12
|
-
component: AntDateInput,
|
|
13
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
14
|
-
argTypes: {
|
|
15
|
-
modelValue: {
|
|
16
|
-
table: { type: { summary: "string|null" } }
|
|
17
|
-
},
|
|
18
|
-
type: {
|
|
19
|
-
control: { type: "select" },
|
|
20
|
-
options: Object.values(AntDateInputTypes)
|
|
21
|
-
},
|
|
22
|
-
state: {
|
|
23
|
-
control: { type: "select" },
|
|
24
|
-
options: Object.values(InputState)
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
control: { type: "select" },
|
|
28
|
-
options: Object.values(Size)
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export default meta;
|
|
33
|
-
export const Docs = {
|
|
34
|
-
render: (args) => ({
|
|
35
|
-
components: { AntDateInput },
|
|
36
|
-
setup() {
|
|
37
|
-
return { args };
|
|
38
|
-
},
|
|
39
|
-
template: `
|
|
40
|
-
<AntDateInput
|
|
41
|
-
v-bind="args"
|
|
42
|
-
v-model="args.modelValue"
|
|
43
|
-
/>
|
|
44
|
-
`
|
|
45
|
-
}),
|
|
46
|
-
args: {
|
|
47
|
-
modelValue: null,
|
|
48
|
-
label: "Label",
|
|
49
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
export const WithValidator = {
|
|
53
|
-
render: (args) => ({
|
|
54
|
-
components: { AntDateInput },
|
|
55
|
-
setup() {
|
|
56
|
-
const validator = reactive(useFieldValidator([
|
|
57
|
-
isRequiredRule,
|
|
58
|
-
(val) => typeof val !== "number" || val <= 8 || "Value should not be bigger than 8"
|
|
59
|
-
]));
|
|
60
|
-
return { args, validator, InputState };
|
|
61
|
-
},
|
|
62
|
-
template: `
|
|
63
|
-
<AntDateInput
|
|
64
|
-
v-bind="args"
|
|
65
|
-
v-model="args.modelValue"
|
|
66
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
67
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
68
|
-
@validate="(val) => validator.validate(val)"
|
|
69
|
-
/>
|
|
70
|
-
`
|
|
71
|
-
}),
|
|
72
|
-
args: {
|
|
73
|
-
modelValue: null,
|
|
74
|
-
label: "Label",
|
|
75
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
export const Summary = {
|
|
79
|
-
parameters: {
|
|
80
|
-
chromatic: { disableSnapshot: false }
|
|
81
|
-
},
|
|
82
|
-
render: (args) => ({
|
|
83
|
-
components: { AntDateInput, AntFormGroup, AntFormGroupLabel },
|
|
84
|
-
setup() {
|
|
85
|
-
return { args, InputState, Size, AntDateInputType: AntDateInputTypes, Direction };
|
|
86
|
-
},
|
|
87
|
-
template: `
|
|
88
|
-
<AntFormGroup>
|
|
89
|
-
<AntFormGroupLabel>
|
|
90
|
-
State
|
|
91
|
-
</AntFormGroupLabel>
|
|
92
|
-
<AntFormGroup :direction="Direction.row">
|
|
93
|
-
<AntDateInput
|
|
94
|
-
v-bind="args"
|
|
95
|
-
v-model="args.modelValue"
|
|
96
|
-
/>
|
|
97
|
-
<AntDateInput
|
|
98
|
-
v-bind="args"
|
|
99
|
-
v-model="args.modelValue"
|
|
100
|
-
:state="InputState.info"
|
|
101
|
-
/>
|
|
102
|
-
<AntDateInput
|
|
103
|
-
v-bind="args"
|
|
104
|
-
v-model="args.modelValue"
|
|
105
|
-
:state="InputState.success"
|
|
106
|
-
/>
|
|
107
|
-
<AntDateInput
|
|
108
|
-
v-bind="args"
|
|
109
|
-
v-model="args.modelValue"
|
|
110
|
-
:state="InputState.warning"
|
|
111
|
-
/>
|
|
112
|
-
<AntDateInput
|
|
113
|
-
v-bind="args"
|
|
114
|
-
v-model="args.modelValue"
|
|
115
|
-
:state="InputState.danger"
|
|
116
|
-
/>
|
|
117
|
-
</AntFormGroup>
|
|
118
|
-
|
|
119
|
-
<AntFormGroupLabel>
|
|
120
|
-
Type
|
|
121
|
-
</AntFormGroupLabel>
|
|
122
|
-
<AntFormGroup :direction="Direction.row">
|
|
123
|
-
<AntDateInput
|
|
124
|
-
v-bind="args"
|
|
125
|
-
v-model="args.modelValue"
|
|
126
|
-
label="Type date"
|
|
127
|
-
:type="AntDateInputType.date"
|
|
128
|
-
/>
|
|
129
|
-
<AntDateInput
|
|
130
|
-
v-bind="args"
|
|
131
|
-
v-model="args.modelValue"
|
|
132
|
-
label="Type datetimeLocal"
|
|
133
|
-
:type="AntDateInputType.datetimeLocal"
|
|
134
|
-
/>
|
|
135
|
-
<AntDateInput
|
|
136
|
-
v-bind="args"
|
|
137
|
-
v-model="args.modelValue"
|
|
138
|
-
label="Type month"
|
|
139
|
-
:type="AntDateInputType.month"
|
|
140
|
-
/>
|
|
141
|
-
<AntDateInput
|
|
142
|
-
v-bind="args"
|
|
143
|
-
v-model="args.modelValue"
|
|
144
|
-
label="Type time"
|
|
145
|
-
:type="AntDateInputType.time"
|
|
146
|
-
/>
|
|
147
|
-
<AntDateInput
|
|
148
|
-
v-bind="args"
|
|
149
|
-
v-model="args.modelValue"
|
|
150
|
-
label="Type week"
|
|
151
|
-
:type="AntDateInputType.week"
|
|
152
|
-
/>
|
|
153
|
-
</AntFormGroup>
|
|
154
|
-
|
|
155
|
-
<AntFormGroupLabel>
|
|
156
|
-
Size
|
|
157
|
-
</AntFormGroupLabel>
|
|
158
|
-
<AntFormGroup :direction="Direction.row">
|
|
159
|
-
<AntDateInput
|
|
160
|
-
v-bind="args"
|
|
161
|
-
value="2024-01-01"
|
|
162
|
-
:size="Size.lg"
|
|
163
|
-
/>
|
|
164
|
-
<AntDateInput
|
|
165
|
-
v-bind="args"
|
|
166
|
-
value="2018-06-12T19:30"
|
|
167
|
-
:size="Size.md"
|
|
168
|
-
/>
|
|
169
|
-
<AntDateInput
|
|
170
|
-
v-bind="args"
|
|
171
|
-
value="2024-12"
|
|
172
|
-
:size="Size.sm"
|
|
173
|
-
/>
|
|
174
|
-
<AntDateInput
|
|
175
|
-
v-bind="args"
|
|
176
|
-
value="14:28"
|
|
177
|
-
:size="Size.xs"
|
|
178
|
-
/>
|
|
179
|
-
<AntDateInput
|
|
180
|
-
v-bind="args"
|
|
181
|
-
value="2024-W18"
|
|
182
|
-
:size="Size.xs2"
|
|
183
|
-
/>
|
|
184
|
-
</AntFormGroup>
|
|
185
|
-
</AntFormGroup>
|
|
186
|
-
`
|
|
187
|
-
}),
|
|
188
|
-
args: {
|
|
189
|
-
modelValue: null,
|
|
190
|
-
label: "Label",
|
|
191
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
192
|
-
}
|
|
193
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntNumberInput from '../AntNumberInput.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntNumberInput>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntNumberInput>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const withValidator: Story;
|
|
8
|
-
export declare const Limited: Story;
|
|
9
|
-
export declare const WithIndicators: Story;
|
|
10
|
-
export declare const Summary: Story;
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { Size } from "../../../enums/Size.enum.mjs";
|
|
2
|
-
import AntNumberInput from "../AntNumberInput.vue";
|
|
3
|
-
import { InputState } from "../../../enums/State.enum.mjs";
|
|
4
|
-
import { isRequiredRule, useFieldValidator } from "@antify/validate";
|
|
5
|
-
import { reactive, ref } from "vue";
|
|
6
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
7
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
8
|
-
const meta = {
|
|
9
|
-
components: { AntFormGroupLabel, AntFormGroup },
|
|
10
|
-
title: "Inputs/Number Input",
|
|
11
|
-
component: AntNumberInput,
|
|
12
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
13
|
-
argTypes: {
|
|
14
|
-
modelValue: {
|
|
15
|
-
control: { type: "number" },
|
|
16
|
-
table: { type: { summary: "number|null" } }
|
|
17
|
-
},
|
|
18
|
-
state: {
|
|
19
|
-
control: { type: "select" },
|
|
20
|
-
options: Object.values(InputState)
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
control: { type: "select" },
|
|
24
|
-
options: Object.values(Size),
|
|
25
|
-
table: { defaultValue: { summary: Size.md } }
|
|
26
|
-
},
|
|
27
|
-
placeholder: {
|
|
28
|
-
table: { defaultValue: { summary: "this.label" } }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export default meta;
|
|
33
|
-
export const Docs = {
|
|
34
|
-
render: (args) => ({
|
|
35
|
-
components: { AntNumberInput },
|
|
36
|
-
setup() {
|
|
37
|
-
return { args };
|
|
38
|
-
},
|
|
39
|
-
template: `
|
|
40
|
-
<AntNumberInput
|
|
41
|
-
v-bind="args"
|
|
42
|
-
v-model="args.modelValue"
|
|
43
|
-
/>`
|
|
44
|
-
}),
|
|
45
|
-
args: {
|
|
46
|
-
modelValue: null,
|
|
47
|
-
steps: 1,
|
|
48
|
-
label: "Label",
|
|
49
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
export const withValidator = {
|
|
53
|
-
render: (args) => ({
|
|
54
|
-
components: { AntNumberInput },
|
|
55
|
-
setup() {
|
|
56
|
-
const validator = reactive(useFieldValidator(isRequiredRule));
|
|
57
|
-
return { args, validator, InputState };
|
|
58
|
-
},
|
|
59
|
-
template: `
|
|
60
|
-
<AntNumberInput
|
|
61
|
-
v-bind="args"
|
|
62
|
-
v-model="args.modelValue"
|
|
63
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
64
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
65
|
-
@validate="(val) => validator.validate(val)"
|
|
66
|
-
/>`
|
|
67
|
-
}),
|
|
68
|
-
args: {
|
|
69
|
-
modelValue: null,
|
|
70
|
-
steps: 1,
|
|
71
|
-
label: "Label",
|
|
72
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export const Limited = {
|
|
76
|
-
render: (args) => ({
|
|
77
|
-
components: { AntNumberInput },
|
|
78
|
-
setup() {
|
|
79
|
-
const validator = reactive(useFieldValidator([
|
|
80
|
-
isRequiredRule,
|
|
81
|
-
(val) => val <= 10 || "Value should not be bigger than 10",
|
|
82
|
-
(val) => val <= 11 || "It should be really not bigger than 10!!!!"
|
|
83
|
-
]));
|
|
84
|
-
return { args, validator, InputState };
|
|
85
|
-
},
|
|
86
|
-
template: `
|
|
87
|
-
<AntNumberInput
|
|
88
|
-
v-bind="args"
|
|
89
|
-
v-model="args.modelValue"
|
|
90
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
91
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
92
|
-
@validate="(val) => validator.validate(val)"
|
|
93
|
-
/>`
|
|
94
|
-
}),
|
|
95
|
-
args: {
|
|
96
|
-
...Docs.args,
|
|
97
|
-
modelValue: 50,
|
|
98
|
-
limiter: true,
|
|
99
|
-
max: 10,
|
|
100
|
-
indicators: true
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
export const WithIndicators = {
|
|
104
|
-
render: Docs.render,
|
|
105
|
-
args: {
|
|
106
|
-
...Docs.args,
|
|
107
|
-
indicators: true
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
export const Summary = {
|
|
111
|
-
parameters: {
|
|
112
|
-
chromatic: { disableSnapshot: false }
|
|
113
|
-
},
|
|
114
|
-
render: (args) => ({
|
|
115
|
-
components: { AntNumberInput, AntFormGroup, AntFormGroupLabel },
|
|
116
|
-
setup() {
|
|
117
|
-
const value = ref(100.5);
|
|
118
|
-
return { args, value, InputState, Size };
|
|
119
|
-
},
|
|
120
|
-
template: `
|
|
121
|
-
<AntFormGroup>
|
|
122
|
-
<AntFormGroupLabel>States</AntFormGroupLabel>
|
|
123
|
-
<AntFormGroup direction="row">
|
|
124
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label"
|
|
125
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
126
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label" description="Lorem ipsum dolor sit amet"
|
|
127
|
-
:state="InputState.info"/>
|
|
128
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label" description="Lorem ipsum dolor sit amet"
|
|
129
|
-
:state="InputState.success"/>
|
|
130
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label" description="Lorem ipsum dolor sit amet"
|
|
131
|
-
:state="InputState.warning"/>
|
|
132
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label" description="Lorem ipsum dolor sit amet"
|
|
133
|
-
:state="InputState.danger"/>
|
|
134
|
-
</AntFormGroup>
|
|
135
|
-
<AntFormGroup direction="row">
|
|
136
|
-
<AntNumberInput v-bind="args" v-model="value" label="Label" description="Lorem ipsum dolor sit amet"/>
|
|
137
|
-
<AntNumberInput v-bind="args" v-model="value" label="Label" description="Lorem ipsum dolor sit amet"
|
|
138
|
-
:state="InputState.info"/>
|
|
139
|
-
<AntNumberInput v-bind="args" v-model="value" label="Label" description="Lorem ipsum dolor sit amet"
|
|
140
|
-
:state="InputState.success"/>
|
|
141
|
-
<AntNumberInput v-bind="args" v-model="value" label="Label" description="Lorem ipsum dolor sit amet"
|
|
142
|
-
:state="InputState.warning"/>
|
|
143
|
-
<AntNumberInput v-bind="args" v-model="value" label="Label" description="Lorem ipsum dolor sit amet"
|
|
144
|
-
:state="InputState.danger"/>
|
|
145
|
-
</AntFormGroup>
|
|
146
|
-
<AntFormGroup direction="row">
|
|
147
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators label="Label"
|
|
148
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
149
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators label="Label"
|
|
150
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.info"/>
|
|
151
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators label="Label"
|
|
152
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.success"/>
|
|
153
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators label="Label"
|
|
154
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.warning"/>
|
|
155
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators label="Label"
|
|
156
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.danger"/>
|
|
157
|
-
</AntFormGroup>
|
|
158
|
-
<AntFormGroup direction="row">
|
|
159
|
-
<AntNumberInput v-bind="args" v-model="value" indicators label="Label"
|
|
160
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
161
|
-
<AntNumberInput v-bind="args" v-model="value" indicators label="Label"
|
|
162
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.info"/>
|
|
163
|
-
<AntNumberInput v-bind="args" v-model="value" indicators label="Label"
|
|
164
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.success"/>
|
|
165
|
-
<AntNumberInput v-bind="args" v-model="value" indicators label="Label"
|
|
166
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.warning"/>
|
|
167
|
-
<AntNumberInput v-bind="args" v-model="value" indicators label="Label"
|
|
168
|
-
description="Lorem ipsum dolor sit amet" :state="InputState.danger"/>
|
|
169
|
-
</AntFormGroup>
|
|
170
|
-
<AntFormGroupLabel>Sizes</AntFormGroupLabel>
|
|
171
|
-
<AntFormGroup direction="row">
|
|
172
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :size="Size.lg" label="Label"
|
|
173
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
174
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :size="Size.md" label="Label"
|
|
175
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
176
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :size="Size.sm" label="Label"
|
|
177
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
178
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :size="Size.xs" label="Label"
|
|
179
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
180
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :size="Size.xs2" label="Label"
|
|
181
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
182
|
-
</AntFormGroup>
|
|
183
|
-
<AntFormGroup direction="row">
|
|
184
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators :size="Size.lg" label="Label"
|
|
185
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
186
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators :size="Size.md" label="Label"
|
|
187
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
188
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators :size="Size.sm" label="Label"
|
|
189
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
190
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators :size="Size.xs" label="Label"
|
|
191
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
192
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" indicators :size="Size.xs2" label="Label"
|
|
193
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
194
|
-
</AntFormGroup>
|
|
195
|
-
<AntFormGroup direction="row">
|
|
196
|
-
<AntFormGroup>
|
|
197
|
-
<AntFormGroupLabel>Disabled</AntFormGroupLabel>
|
|
198
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" disabled label="Label"
|
|
199
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
200
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" disabled indicators label="Label"
|
|
201
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
202
|
-
</AntFormGroup>
|
|
203
|
-
<AntFormGroup>
|
|
204
|
-
<AntFormGroupLabel>Readonly</AntFormGroupLabel>
|
|
205
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" readonly label="Label"
|
|
206
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
207
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" readonly indicators label="Label"
|
|
208
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
209
|
-
</AntFormGroup>
|
|
210
|
-
<AntFormGroup>
|
|
211
|
-
<AntFormGroupLabel>Skeleton</AntFormGroupLabel>
|
|
212
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :skeleton="true" label="Label"
|
|
213
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
214
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" :skeleton="true" indicators label="Label"
|
|
215
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
216
|
-
</AntFormGroup>
|
|
217
|
-
</AntFormGroup>
|
|
218
|
-
<AntFormGroupLabel>Plain</AntFormGroupLabel>
|
|
219
|
-
<AntFormGroup class="w-72">
|
|
220
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" placeholder="Placeholder"/>
|
|
221
|
-
<AntNumberInput v-bind="args" indicators v-model="args.modelValue" placeholder="Placeholder"/>
|
|
222
|
-
</AntFormGroup>
|
|
223
|
-
<AntFormGroupLabel>With label</AntFormGroupLabel>
|
|
224
|
-
<AntFormGroup class="w-72">
|
|
225
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label"/>
|
|
226
|
-
<AntNumberInput v-bind="args" indicators v-model="args.modelValue" label="Label"/>
|
|
227
|
-
</AntFormGroup>
|
|
228
|
-
<AntFormGroupLabel>With description</AntFormGroupLabel>
|
|
229
|
-
<AntFormGroup class="w-72">
|
|
230
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" description="Lorem ipsum dolor sit amet"/>
|
|
231
|
-
<AntNumberInput v-bind="args" indicators v-model="args.modelValue" description="Lorem ipsum dolor sit amet"/>
|
|
232
|
-
</AntFormGroup>
|
|
233
|
-
<AntFormGroupLabel>With label + description</AntFormGroupLabel>
|
|
234
|
-
<AntFormGroup class="w-72">
|
|
235
|
-
<AntNumberInput v-bind="args" v-model="args.modelValue" label="Label"
|
|
236
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
237
|
-
<AntNumberInput v-bind="args" indicators v-model="args.modelValue" label="Label"
|
|
238
|
-
description="Lorem ipsum dolor sit amet"/>
|
|
239
|
-
</AntFormGroup>
|
|
240
|
-
</AntFormGroup>
|
|
241
|
-
`
|
|
242
|
-
}),
|
|
243
|
-
args: {
|
|
244
|
-
modelValue: null
|
|
245
|
-
}
|
|
246
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntPasswordInput from '../AntPasswordInput.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntPasswordInput>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntPasswordInput>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const WithValidator: Story;
|
|
8
|
-
export declare const Summary: Story;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { Size } from "../../../enums/Size.enum.mjs";
|
|
2
|
-
import { isRequiredRule, notBlankRule, useFieldValidator } from "@antify/validate";
|
|
3
|
-
import { InputState } from "../../../enums/index.mjs";
|
|
4
|
-
import { reactive } from "vue";
|
|
5
|
-
import AntPasswordInput from "../AntPasswordInput.vue";
|
|
6
|
-
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
7
|
-
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
8
|
-
const meta = {
|
|
9
|
-
components: { AntFormGroupLabel, AntFormGroup },
|
|
10
|
-
title: "Inputs/Password Input",
|
|
11
|
-
component: AntPasswordInput,
|
|
12
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
13
|
-
argTypes: {
|
|
14
|
-
modelValue: {
|
|
15
|
-
control: "text",
|
|
16
|
-
table: { type: { summary: "string|null" } }
|
|
17
|
-
},
|
|
18
|
-
state: {
|
|
19
|
-
control: { type: "select" },
|
|
20
|
-
options: Object.values(InputState)
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
control: { type: "select" },
|
|
24
|
-
options: Object.values(Size),
|
|
25
|
-
table: { defaultValue: { summary: Size.md } }
|
|
26
|
-
},
|
|
27
|
-
placeholder: {
|
|
28
|
-
table: { defaultValue: { summary: "this.label" } }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export default meta;
|
|
33
|
-
export const Docs = {
|
|
34
|
-
render: (args) => ({
|
|
35
|
-
components: { AntPasswordInput },
|
|
36
|
-
setup() {
|
|
37
|
-
return { args };
|
|
38
|
-
},
|
|
39
|
-
template: `
|
|
40
|
-
<AntPasswordInput
|
|
41
|
-
v-bind="args"
|
|
42
|
-
v-model="args.modelValue"
|
|
43
|
-
/>`
|
|
44
|
-
}),
|
|
45
|
-
args: {
|
|
46
|
-
modelValue: null,
|
|
47
|
-
label: "Label",
|
|
48
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
export const WithValidator = {
|
|
52
|
-
render: (args) => ({
|
|
53
|
-
components: { AntPasswordInput },
|
|
54
|
-
setup() {
|
|
55
|
-
const validator = reactive(useFieldValidator([isRequiredRule, notBlankRule]));
|
|
56
|
-
return { args, validator, InputState };
|
|
57
|
-
},
|
|
58
|
-
template: `
|
|
59
|
-
<AntPasswordInput
|
|
60
|
-
v-bind="args"
|
|
61
|
-
v-model="args.modelValue"
|
|
62
|
-
:state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
|
|
63
|
-
:messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
|
|
64
|
-
@validate="(val) => validator.validate(val)"
|
|
65
|
-
/>`
|
|
66
|
-
}),
|
|
67
|
-
args: {
|
|
68
|
-
modelValue: null,
|
|
69
|
-
label: "Label",
|
|
70
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
export const Summary = {
|
|
74
|
-
parameters: {
|
|
75
|
-
chromatic: { disableSnapshot: false }
|
|
76
|
-
},
|
|
77
|
-
render: (args) => ({
|
|
78
|
-
components: { AntPasswordInput, AntFormGroup, AntFormGroupLabel },
|
|
79
|
-
setup() {
|
|
80
|
-
return { args, InputState, Size };
|
|
81
|
-
},
|
|
82
|
-
template: `
|
|
83
|
-
<AntFormGroup>
|
|
84
|
-
<AntFormGroupLabel>
|
|
85
|
-
State
|
|
86
|
-
</AntFormGroupLabel>
|
|
87
|
-
<AntFormGroup direction="row">
|
|
88
|
-
<AntPasswordInput
|
|
89
|
-
v-bind="args"
|
|
90
|
-
v-model="args.modelValue"
|
|
91
|
-
/>
|
|
92
|
-
<AntPasswordInput
|
|
93
|
-
v-bind="args"
|
|
94
|
-
v-model="args.modelValue"
|
|
95
|
-
:state="InputState.info"
|
|
96
|
-
message="asdf"
|
|
97
|
-
/>
|
|
98
|
-
<AntPasswordInput
|
|
99
|
-
v-bind="args"
|
|
100
|
-
v-model="args.modelValue"
|
|
101
|
-
:state="InputState.success"
|
|
102
|
-
/>
|
|
103
|
-
<AntPasswordInput
|
|
104
|
-
v-bind="args"
|
|
105
|
-
v-model="args.modelValue"
|
|
106
|
-
:state="InputState.warning"
|
|
107
|
-
/>
|
|
108
|
-
<AntPasswordInput
|
|
109
|
-
v-bind="args"
|
|
110
|
-
v-model="args.modelValue"
|
|
111
|
-
:state="InputState.danger"
|
|
112
|
-
/>
|
|
113
|
-
</AntFormGroup>
|
|
114
|
-
|
|
115
|
-
<AntFormGroupLabel>
|
|
116
|
-
Size
|
|
117
|
-
</AntFormGroupLabel>
|
|
118
|
-
<AntFormGroup direction="row">
|
|
119
|
-
<AntPasswordInput
|
|
120
|
-
v-bind="args"
|
|
121
|
-
value="1234"
|
|
122
|
-
:size="Size.lg"
|
|
123
|
-
/>
|
|
124
|
-
<AntPasswordInput
|
|
125
|
-
v-bind="args"
|
|
126
|
-
v-model="args.modelValue"
|
|
127
|
-
:state="InputState.info"
|
|
128
|
-
:size="Size.md"
|
|
129
|
-
/>
|
|
130
|
-
<AntPasswordInput
|
|
131
|
-
v-bind="args"
|
|
132
|
-
value="1234"
|
|
133
|
-
:state="InputState.success"
|
|
134
|
-
:size="Size.sm"
|
|
135
|
-
/>
|
|
136
|
-
<AntPasswordInput
|
|
137
|
-
v-bind="args"
|
|
138
|
-
v-model="args.modelValue"
|
|
139
|
-
:state="InputState.warning"
|
|
140
|
-
:size="Size.xs"
|
|
141
|
-
/>
|
|
142
|
-
<AntPasswordInput
|
|
143
|
-
v-bind="args"
|
|
144
|
-
value="1234"
|
|
145
|
-
:state="InputState.danger"
|
|
146
|
-
:size="Size.xs2"
|
|
147
|
-
/>
|
|
148
|
-
</AntFormGroup>
|
|
149
|
-
</AntFormGroup>
|
|
150
|
-
`
|
|
151
|
-
}),
|
|
152
|
-
args: {
|
|
153
|
-
label: "Label",
|
|
154
|
-
description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
|
|
155
|
-
}
|
|
156
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AntRadioGroup from '../AntRadioGroup.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntRadioGroup>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntRadioGroup>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const WithValidator: Story;
|
|
8
|
-
export declare const summary: Story;
|