@antify/ui-module 1.7.2 → 1.8.0
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 -259
- package/dist/module.d.ts +1 -259
- package/dist/module.json +1 -1
- package/dist/module.mjs +97 -430
- 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 -40
- 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 -183
- package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/dist/runtime/components/inputs/AntDateInput.vue +0 -97
- package/dist/runtime/components/inputs/AntNumberInput.vue +0 -152
- package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/dist/runtime/components/inputs/AntRadio.vue +0 -192
- package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -116
- 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 -72
- package/dist/runtime/components/inputs/AntSelect.vue +0 -311
- 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 -331
- package/dist/runtime/components/inputs/AntTextInput.vue +0 -72
- package/dist/runtime/components/inputs/AntTextarea.vue +0 -185
- package/dist/runtime/components/inputs/AntUnitInput.vue +0 -93
- package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -256
- 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 -65
- 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 -341
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -85
- 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 -9
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -106
- 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 -243
- 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 -10
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -5
- 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 -13
- package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -5
- 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 -74
- 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 -202
- package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/src/runtime/components/inputs/AntDateInput.vue +0 -97
- package/src/runtime/components/inputs/AntNumberInput.vue +0 -152
- package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/src/runtime/components/inputs/AntRadio.vue +0 -200
- package/src/runtime/components/inputs/AntRadioGroup.vue +0 -116
- 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 -72
- package/src/runtime/components/inputs/AntSelect.vue +0 -311
- 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 -331
- package/src/runtime/components/inputs/AntTextInput.vue +0 -72
- package/src/runtime/components/inputs/AntTextarea.vue +0 -185
- package/src/runtime/components/inputs/AntUnitInput.vue +0 -93
- package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -304
- 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 -65
- 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 -74
- 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
package/dist/module.mjs
CHANGED
|
@@ -1,425 +1,91 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineNuxtModule, createResolver, addPlugin, addImportsDir,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
"neutral-50-font": colors["neutral-600"],
|
|
90
|
-
"neutral-100-font": colors["neutral-600"],
|
|
91
|
-
"neutral-200-font": colors["neutral-600"],
|
|
92
|
-
"neutral-300-font": colors["neutral-600"],
|
|
93
|
-
"neutral-400-font": colors["neutral-600"],
|
|
94
|
-
"neutral-500-font": colors["neutral-100"],
|
|
95
|
-
"neutral-600-font": colors["neutral-100"],
|
|
96
|
-
"neutral-700-font": colors["neutral-100"],
|
|
97
|
-
"neutral-800-font": colors["neutral-100"],
|
|
98
|
-
"neutral-900-font": colors["neutral-100"],
|
|
99
|
-
"neutral-950-font": colors["neutral-100"],
|
|
100
|
-
"primary-50-font": colors["neutral-600"],
|
|
101
|
-
"primary-100-font": colors["neutral-600"],
|
|
102
|
-
"primary-200-font": colors["neutral-600"],
|
|
103
|
-
"primary-300-font": colors["neutral-600"],
|
|
104
|
-
"primary-400-font": colors["neutral-600"],
|
|
105
|
-
"primary-500-font": colors["neutral-100"],
|
|
106
|
-
"primary-600-font": colors["neutral-100"],
|
|
107
|
-
"primary-700-font": colors["neutral-100"],
|
|
108
|
-
"primary-800-font": colors["neutral-100"],
|
|
109
|
-
"primary-900-font": colors["neutral-100"],
|
|
110
|
-
"primary-950-font": colors["neutral-100"],
|
|
111
|
-
"secondary-50-font": colors["neutral-600"],
|
|
112
|
-
"secondary-100-font": colors["neutral-600"],
|
|
113
|
-
"secondary-200-font": colors["neutral-600"],
|
|
114
|
-
"secondary-300-font": colors["neutral-600"],
|
|
115
|
-
"secondary-400-font": colors["neutral-600"],
|
|
116
|
-
"secondary-500-font": colors["neutral-100"],
|
|
117
|
-
"secondary-600-font": colors["neutral-100"],
|
|
118
|
-
"secondary-700-font": colors["neutral-100"],
|
|
119
|
-
"secondary-800-font": colors["neutral-100"],
|
|
120
|
-
"secondary-900-font": colors["neutral-100"],
|
|
121
|
-
"secondary-950-font": colors["neutral-100"],
|
|
122
|
-
"success-50-font": colors["neutral-600"],
|
|
123
|
-
"success-100-font": colors["neutral-600"],
|
|
124
|
-
"success-200-font": colors["neutral-600"],
|
|
125
|
-
"success-300-font": colors["neutral-600"],
|
|
126
|
-
"success-400-font": colors["neutral-600"],
|
|
127
|
-
"success-500-font": colors["neutral-100"],
|
|
128
|
-
"success-600-font": colors["neutral-100"],
|
|
129
|
-
"success-700-font": colors["neutral-100"],
|
|
130
|
-
"success-800-font": colors["neutral-100"],
|
|
131
|
-
"success-900-font": colors["neutral-100"],
|
|
132
|
-
"success-950-font": colors["neutral-100"],
|
|
133
|
-
"info-50-font": colors["neutral-600"],
|
|
134
|
-
"info-100-font": colors["neutral-600"],
|
|
135
|
-
"info-200-font": colors["neutral-600"],
|
|
136
|
-
"info-300-font": colors["neutral-600"],
|
|
137
|
-
"info-400-font": colors["neutral-600"],
|
|
138
|
-
"info-500-font": colors["neutral-100"],
|
|
139
|
-
"info-600-font": colors["neutral-100"],
|
|
140
|
-
"info-700-font": colors["neutral-100"],
|
|
141
|
-
"info-800-font": colors["neutral-100"],
|
|
142
|
-
"info-900-font": colors["neutral-100"],
|
|
143
|
-
"info-950-font": colors["neutral-100"],
|
|
144
|
-
"warning-50-font": colors["neutral-600"],
|
|
145
|
-
"warning-100-font": colors["neutral-600"],
|
|
146
|
-
"warning-200-font": colors["neutral-600"],
|
|
147
|
-
"warning-300-font": colors["neutral-600"],
|
|
148
|
-
"warning-400-font": colors["neutral-600"],
|
|
149
|
-
"warning-500-font": colors["neutral-100"],
|
|
150
|
-
"warning-600-font": colors["neutral-100"],
|
|
151
|
-
"warning-700-font": colors["neutral-100"],
|
|
152
|
-
"warning-800-font": colors["neutral-100"],
|
|
153
|
-
"warning-900-font": colors["neutral-100"],
|
|
154
|
-
"warning-950-font": colors["neutral-100"],
|
|
155
|
-
"danger-50-font": colors["neutral-600"],
|
|
156
|
-
"danger-100-font": colors["neutral-600"],
|
|
157
|
-
"danger-200-font": colors["neutral-600"],
|
|
158
|
-
"danger-300-font": colors["neutral-600"],
|
|
159
|
-
"danger-400-font": colors["neutral-600"],
|
|
160
|
-
"danger-500-font": colors["neutral-100"],
|
|
161
|
-
"danger-600-font": colors["neutral-100"],
|
|
162
|
-
"danger-700-font": colors["neutral-100"],
|
|
163
|
-
"danger-800-font": colors["neutral-100"],
|
|
164
|
-
"danger-900-font": colors["neutral-100"],
|
|
165
|
-
"danger-950-font": colors["neutral-100"]
|
|
166
|
-
};
|
|
167
|
-
const tailwindcss = {
|
|
168
|
-
content: [
|
|
169
|
-
// For module dev
|
|
170
|
-
"./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
|
|
171
|
-
"./src/runtime/**/*.stories.ts",
|
|
172
|
-
"./playground/app.vue",
|
|
173
|
-
"./playground/components/**/*.{vue,js,ts,jsx,tsx}",
|
|
174
|
-
"./playground/pages/**/*.{vue,js,ts,jsx,tsx}",
|
|
175
|
-
"./playground/layouts/**/*.{vue,js,ts,jsx,tsx}",
|
|
176
|
-
"../ui-module/src/**/*.{vue,js,ts,jsx,tsx}",
|
|
177
|
-
// For project dev
|
|
178
|
-
"./app.vue",
|
|
179
|
-
"./components/**/*.{vue,js,ts,jsx,tsx}",
|
|
180
|
-
"./pages/**/*.{vue,js,ts,jsx,tsx}",
|
|
181
|
-
"./layouts/**/*.{vue,js,ts,jsx,tsx}",
|
|
182
|
-
// If this config is used in a project
|
|
183
|
-
"./node_modules/@antify/*/dist/**/*.{js,vue,ts}",
|
|
184
|
-
"./node_modules/@antify/*/src/**/*.{js,vue,ts}"
|
|
185
|
-
],
|
|
186
|
-
theme: {
|
|
187
|
-
colors: {
|
|
188
|
-
...colors,
|
|
189
|
-
...fontColors
|
|
190
|
-
},
|
|
191
|
-
extend: {
|
|
192
|
-
fontSize: {
|
|
193
|
-
"2xs": ["0.625rem", "0.75rem"]
|
|
194
|
-
},
|
|
195
|
-
animation: {
|
|
196
|
-
skeleton: "skeleton 2s ease-out infinite"
|
|
197
|
-
},
|
|
198
|
-
keyframes: {
|
|
199
|
-
"skeleton": {
|
|
200
|
-
"0%, 100%": { "background-color": colors["neutral-300"] },
|
|
201
|
-
"50%": { "background-color": colors["neutral-100"] }
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
209
|
-
Direction2["column"] = "column";
|
|
210
|
-
Direction2["row"] = "row";
|
|
211
|
-
return Direction2;
|
|
212
|
-
})(Direction || {});
|
|
213
|
-
|
|
214
|
-
var Grouped = /* @__PURE__ */ ((Grouped2) => {
|
|
215
|
-
Grouped2["none"] = "none";
|
|
216
|
-
Grouped2["left"] = "left";
|
|
217
|
-
Grouped2["center"] = "center";
|
|
218
|
-
Grouped2["right"] = "right";
|
|
219
|
-
return Grouped2;
|
|
220
|
-
})(Grouped || {});
|
|
221
|
-
|
|
222
|
-
var Position = /* @__PURE__ */ ((Position2) => {
|
|
223
|
-
Position2["top"] = "top";
|
|
224
|
-
Position2["right"] = "right";
|
|
225
|
-
Position2["bottom"] = "bottom";
|
|
226
|
-
Position2["left"] = "left";
|
|
227
|
-
return Position2;
|
|
228
|
-
})(Position || {});
|
|
229
|
-
var CornerPosition = /* @__PURE__ */ ((CornerPosition2) => {
|
|
230
|
-
CornerPosition2["topLeft"] = "topLeft";
|
|
231
|
-
CornerPosition2["topRight"] = "topRight";
|
|
232
|
-
CornerPosition2["bottomRight"] = "bottomRight";
|
|
233
|
-
CornerPosition2["bottomLeft"] = "bottomLeft";
|
|
234
|
-
return CornerPosition2;
|
|
235
|
-
})(CornerPosition || {});
|
|
236
|
-
|
|
237
|
-
var Size = /* @__PURE__ */ ((Size2) => {
|
|
238
|
-
Size2["lg"] = "lg";
|
|
239
|
-
Size2["md"] = "md";
|
|
240
|
-
Size2["sm"] = "sm";
|
|
241
|
-
Size2["xs"] = "xs";
|
|
242
|
-
Size2["xs2"] = "2xs";
|
|
243
|
-
return Size2;
|
|
244
|
-
})(Size || {});
|
|
245
|
-
|
|
246
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
247
|
-
State2["base"] = "base";
|
|
248
|
-
State2["primary"] = "primary";
|
|
249
|
-
State2["secondary"] = "secondary";
|
|
250
|
-
State2["danger"] = "danger";
|
|
251
|
-
State2["info"] = "info";
|
|
252
|
-
State2["success"] = "success";
|
|
253
|
-
State2["warning"] = "warning";
|
|
254
|
-
return State2;
|
|
255
|
-
})(State || {});
|
|
256
|
-
var InputState = /* @__PURE__ */ ((InputState2) => {
|
|
257
|
-
InputState2["base"] = "base";
|
|
258
|
-
InputState2["danger"] = "danger";
|
|
259
|
-
InputState2["info"] = "info";
|
|
260
|
-
InputState2["success"] = "success";
|
|
261
|
-
InputState2["warning"] = "warning";
|
|
262
|
-
return InputState2;
|
|
263
|
-
})(InputState || {});
|
|
264
|
-
|
|
265
|
-
var CollapseStrategy = /* @__PURE__ */ ((CollapseStrategy2) => {
|
|
266
|
-
CollapseStrategy2["single"] = "single";
|
|
267
|
-
CollapseStrategy2["multiple"] = "multiple";
|
|
268
|
-
return CollapseStrategy2;
|
|
269
|
-
})(CollapseStrategy || {});
|
|
270
|
-
|
|
271
|
-
var IconSize = /* @__PURE__ */ ((IconSize2) => {
|
|
272
|
-
IconSize2["xl3"] = "3xl";
|
|
273
|
-
IconSize2["lg"] = "lg";
|
|
274
|
-
IconSize2["md"] = "md";
|
|
275
|
-
IconSize2["sm"] = "sm";
|
|
276
|
-
IconSize2["xs"] = "xs";
|
|
277
|
-
IconSize2["xs2"] = "2xs";
|
|
278
|
-
return IconSize2;
|
|
279
|
-
})(IconSize || {});
|
|
280
|
-
|
|
281
|
-
var AntKeycapSize = /* @__PURE__ */ ((AntKeycapSize2) => {
|
|
282
|
-
AntKeycapSize2["sm"] = "sm";
|
|
283
|
-
AntKeycapSize2["xs"] = "xs";
|
|
284
|
-
return AntKeycapSize2;
|
|
285
|
-
})(AntKeycapSize || {});
|
|
286
|
-
|
|
287
|
-
var ListGroupItemState = /* @__PURE__ */ ((ListGroupItemState2) => {
|
|
288
|
-
ListGroupItemState2["base"] = "base";
|
|
289
|
-
ListGroupItemState2["primary"] = "primary";
|
|
290
|
-
ListGroupItemState2["secondary"] = "secondary";
|
|
291
|
-
ListGroupItemState2["info"] = "info";
|
|
292
|
-
ListGroupItemState2["success"] = "success";
|
|
293
|
-
ListGroupItemState2["warning"] = "warning";
|
|
294
|
-
ListGroupItemState2["danger"] = "danger";
|
|
295
|
-
return ListGroupItemState2;
|
|
296
|
-
})(ListGroupItemState || {});
|
|
297
|
-
|
|
298
|
-
var AntSpinnerSize = /* @__PURE__ */ ((AntSpinnerSize2) => {
|
|
299
|
-
AntSpinnerSize2["xl4"] = "4xl";
|
|
300
|
-
AntSpinnerSize2["xl3"] = "3xl";
|
|
301
|
-
AntSpinnerSize2["xl2"] = "2xl";
|
|
302
|
-
AntSpinnerSize2["lg"] = "lg";
|
|
303
|
-
AntSpinnerSize2["md"] = "md";
|
|
304
|
-
AntSpinnerSize2["sm"] = "sm";
|
|
305
|
-
AntSpinnerSize2["xs"] = "xs";
|
|
306
|
-
AntSpinnerSize2["xs2"] = "2xs";
|
|
307
|
-
return AntSpinnerSize2;
|
|
308
|
-
})(AntSpinnerSize || {});
|
|
309
|
-
|
|
310
|
-
var TagState = /* @__PURE__ */ ((TagState2) => {
|
|
311
|
-
TagState2["base"] = "base";
|
|
312
|
-
TagState2["primary"] = "primary";
|
|
313
|
-
TagState2["secondary"] = "secondary";
|
|
314
|
-
TagState2["info"] = "info";
|
|
315
|
-
TagState2["success"] = "success";
|
|
316
|
-
TagState2["warning"] = "warning";
|
|
317
|
-
TagState2["danger"] = "danger";
|
|
318
|
-
return TagState2;
|
|
319
|
-
})(TagState || {});
|
|
320
|
-
var AntTagSize = /* @__PURE__ */ ((AntTagSize2) => {
|
|
321
|
-
AntTagSize2["lg"] = "lg";
|
|
322
|
-
AntTagSize2["md"] = "md";
|
|
323
|
-
AntTagSize2["sm"] = "sm";
|
|
324
|
-
AntTagSize2["xs"] = "xs";
|
|
325
|
-
AntTagSize2["xs2"] = "2xs";
|
|
326
|
-
AntTagSize2["xs3"] = "3xs";
|
|
327
|
-
return AntTagSize2;
|
|
328
|
-
})(AntTagSize || {});
|
|
329
|
-
|
|
330
|
-
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
331
|
-
ButtonType2["button"] = "button";
|
|
332
|
-
ButtonType2["submit"] = "submit";
|
|
333
|
-
return ButtonType2;
|
|
334
|
-
})(ButtonType || {});
|
|
335
|
-
|
|
336
|
-
var AntCheckboxSize = /* @__PURE__ */ ((AntCheckboxSize2) => {
|
|
337
|
-
AntCheckboxSize2["md"] = "md";
|
|
338
|
-
AntCheckboxSize2["sm"] = "sm";
|
|
339
|
-
return AntCheckboxSize2;
|
|
340
|
-
})(AntCheckboxSize || {});
|
|
341
|
-
|
|
342
|
-
var AntDateInputTypes = /* @__PURE__ */ ((AntDateInputTypes2) => {
|
|
343
|
-
AntDateInputTypes2["date"] = "date";
|
|
344
|
-
AntDateInputTypes2["datetimeLocal"] = "datetime-local";
|
|
345
|
-
AntDateInputTypes2["month"] = "month";
|
|
346
|
-
AntDateInputTypes2["time"] = "time";
|
|
347
|
-
AntDateInputTypes2["week"] = "week";
|
|
348
|
-
return AntDateInputTypes2;
|
|
349
|
-
})(AntDateInputTypes || {});
|
|
350
|
-
|
|
351
|
-
var AntRadioSize = /* @__PURE__ */ ((AntRadioSize2) => {
|
|
352
|
-
AntRadioSize2["md"] = "md";
|
|
353
|
-
AntRadioSize2["sm"] = "sm";
|
|
354
|
-
return AntRadioSize2;
|
|
355
|
-
})(AntRadioSize || {});
|
|
356
|
-
|
|
357
|
-
var AntTagInputSize = /* @__PURE__ */ ((AntTagInputSize2) => {
|
|
358
|
-
AntTagInputSize2["lg"] = "lg";
|
|
359
|
-
AntTagInputSize2["md"] = "md";
|
|
360
|
-
AntTagInputSize2["sm"] = "sm";
|
|
361
|
-
return AntTagInputSize2;
|
|
362
|
-
})(AntTagInputSize || {});
|
|
363
|
-
|
|
364
|
-
var TextInputType = /* @__PURE__ */ ((TextInputType2) => {
|
|
365
|
-
TextInputType2["email"] = "email";
|
|
366
|
-
TextInputType2["tel"] = "tel";
|
|
367
|
-
TextInputType2["text"] = "text";
|
|
368
|
-
TextInputType2["url"] = "url";
|
|
369
|
-
return TextInputType2;
|
|
370
|
-
})(TextInputType || {});
|
|
371
|
-
|
|
372
|
-
var BaseInputType = /* @__PURE__ */ ((BaseInputType2) => {
|
|
373
|
-
BaseInputType2["date"] = "date";
|
|
374
|
-
BaseInputType2["datetime"] = "datetime";
|
|
375
|
-
BaseInputType2["datetimeLocal"] = "datetime-local";
|
|
376
|
-
BaseInputType2["email"] = "email";
|
|
377
|
-
BaseInputType2["hidden"] = "hidden";
|
|
378
|
-
BaseInputType2["month"] = "month";
|
|
379
|
-
BaseInputType2["number"] = "number";
|
|
380
|
-
BaseInputType2["password"] = "password";
|
|
381
|
-
BaseInputType2["search"] = "search";
|
|
382
|
-
BaseInputType2["tel"] = "tel";
|
|
383
|
-
BaseInputType2["text"] = "text";
|
|
384
|
-
BaseInputType2["time"] = "time";
|
|
385
|
-
BaseInputType2["url"] = "url";
|
|
386
|
-
BaseInputType2["week"] = "week";
|
|
387
|
-
BaseInputType2["range"] = "range";
|
|
388
|
-
return BaseInputType2;
|
|
389
|
-
})(BaseInputType || {});
|
|
390
|
-
|
|
391
|
-
var AntTableRowTypes = /* @__PURE__ */ ((AntTableRowTypes2) => {
|
|
392
|
-
AntTableRowTypes2["text"] = "text";
|
|
393
|
-
AntTableRowTypes2["html"] = "html";
|
|
394
|
-
AntTableRowTypes2["link"] = "link";
|
|
395
|
-
AntTableRowTypes2["slot"] = "slot";
|
|
396
|
-
return AntTableRowTypes2;
|
|
397
|
-
})(AntTableRowTypes || {});
|
|
398
|
-
var AntTableAlign = /* @__PURE__ */ ((AntTableAlign2) => {
|
|
399
|
-
AntTableAlign2["left"] = "left";
|
|
400
|
-
AntTableAlign2["center"] = "center";
|
|
401
|
-
AntTableAlign2["right"] = "right";
|
|
402
|
-
return AntTableAlign2;
|
|
403
|
-
})(AntTableAlign || {});
|
|
404
|
-
var AntTableSortDirection = /* @__PURE__ */ ((AntTableSortDirection2) => {
|
|
405
|
-
AntTableSortDirection2["asc"] = "asc";
|
|
406
|
-
AntTableSortDirection2["desc"] = "desc";
|
|
407
|
-
AntTableSortDirection2["neutral"] = "neutral";
|
|
408
|
-
return AntTableSortDirection2;
|
|
409
|
-
})(AntTableSortDirection || {});
|
|
410
|
-
var AntTableSize = /* @__PURE__ */ ((AntTableSize2) => {
|
|
411
|
-
AntTableSize2["lg"] = "lg";
|
|
412
|
-
AntTableSize2["md"] = "md";
|
|
413
|
-
AntTableSize2["sm"] = "sm";
|
|
414
|
-
return AntTableSize2;
|
|
415
|
-
})(AntTableSize || {});
|
|
416
|
-
|
|
417
|
-
var TabItemState = /* @__PURE__ */ ((TabItemState2) => {
|
|
418
|
-
TabItemState2["base"] = "base";
|
|
419
|
-
TabItemState2["warning"] = "warning";
|
|
420
|
-
TabItemState2["danger"] = "danger";
|
|
421
|
-
return TabItemState2;
|
|
422
|
-
})(TabItemState || {});
|
|
1
|
+
import tailwindConfig from '@antify/ui/config';
|
|
2
|
+
import { defineNuxtModule, createResolver, addPlugin, addImportsDir, addComponent } from '@nuxt/kit';
|
|
3
|
+
|
|
4
|
+
tailwindConfig.content = [
|
|
5
|
+
// For module dev
|
|
6
|
+
"./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
|
|
7
|
+
"./src/runtime/**/*.stories.ts",
|
|
8
|
+
"./playground/app.vue",
|
|
9
|
+
"./playground/components/**/*.{vue,js,ts,jsx,tsx}",
|
|
10
|
+
"./playground/pages/**/*.{vue,js,ts,jsx,tsx}",
|
|
11
|
+
"./playground/layouts/**/*.{vue,js,ts,jsx,tsx}",
|
|
12
|
+
"../ui-module/src/**/*.{vue,js,ts,jsx,tsx}",
|
|
13
|
+
// For project dev
|
|
14
|
+
"./app.vue",
|
|
15
|
+
"./components/**/*.{vue,js,ts,jsx,tsx}",
|
|
16
|
+
"./pages/**/*.{vue,js,ts,jsx,tsx}",
|
|
17
|
+
"./layouts/**/*.{vue,js,ts,jsx,tsx}",
|
|
18
|
+
// If this config is used in a project
|
|
19
|
+
"./node_modules/@antify/*/dist/**/*.{js,vue,ts}",
|
|
20
|
+
"./node_modules/@antify/*/src/**/*.{js,vue,ts}"
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const uiComponents = [
|
|
24
|
+
"AntActionButton",
|
|
25
|
+
"AntButton",
|
|
26
|
+
"AntCreateButton",
|
|
27
|
+
"AntDeleteButton",
|
|
28
|
+
"AntDuplicateButton",
|
|
29
|
+
"AntEditButton",
|
|
30
|
+
"AntSaveAndNewButton",
|
|
31
|
+
"AntSaveButton",
|
|
32
|
+
"AntCrud",
|
|
33
|
+
"AntCrudDetail",
|
|
34
|
+
"AntCrudDetailActions",
|
|
35
|
+
"AntCrudDetailNav",
|
|
36
|
+
"AntCrudTableFilter",
|
|
37
|
+
"AntCrudTableNav",
|
|
38
|
+
"AntDeleteDialog",
|
|
39
|
+
"AntDialog",
|
|
40
|
+
"AntField",
|
|
41
|
+
"AntFormGroup",
|
|
42
|
+
"AntFormGroupLabel",
|
|
43
|
+
"AntBaseInput",
|
|
44
|
+
"AntDropDown",
|
|
45
|
+
"AntInputDescription",
|
|
46
|
+
"AntInputLabel",
|
|
47
|
+
"AntInputLimiter",
|
|
48
|
+
"AntCheckbox",
|
|
49
|
+
"AntCheckboxGroup",
|
|
50
|
+
"AntDateInput",
|
|
51
|
+
"AntNumberInput",
|
|
52
|
+
"AntPasswordInput",
|
|
53
|
+
"AntRadio",
|
|
54
|
+
"AntRadioGroup",
|
|
55
|
+
"AntRangeSlider",
|
|
56
|
+
"AntSearch",
|
|
57
|
+
"AntSelect",
|
|
58
|
+
"AntSwitch",
|
|
59
|
+
"AntSwitcher",
|
|
60
|
+
"AntTagInput",
|
|
61
|
+
"AntTextarea",
|
|
62
|
+
"AntTextInput",
|
|
63
|
+
"AntUnitInput",
|
|
64
|
+
"AntNavLeftLayout",
|
|
65
|
+
"AntNavbar",
|
|
66
|
+
"AntNavbarItem",
|
|
67
|
+
"AntTable",
|
|
68
|
+
"AntTabs",
|
|
69
|
+
"AntTransitionCollapseHeight",
|
|
70
|
+
"AntAccordion",
|
|
71
|
+
"AntAccordionItem",
|
|
72
|
+
"AntAlert",
|
|
73
|
+
"AntContent",
|
|
74
|
+
"AntDropdown",
|
|
75
|
+
"AntIcon",
|
|
76
|
+
"AntKeycap",
|
|
77
|
+
"AntListGroup",
|
|
78
|
+
"AntListGroupItem",
|
|
79
|
+
"AntModal",
|
|
80
|
+
"AntPagination",
|
|
81
|
+
"AntPopover",
|
|
82
|
+
"AntSkeleton",
|
|
83
|
+
"AntSpinner",
|
|
84
|
+
"AntTag",
|
|
85
|
+
"AntToast",
|
|
86
|
+
"AntToaster",
|
|
87
|
+
"AntTooltip"
|
|
88
|
+
];
|
|
423
89
|
|
|
424
90
|
const moduleKey = "uiModule";
|
|
425
91
|
const module = defineNuxtModule({
|
|
@@ -432,19 +98,20 @@ const module = defineNuxtModule({
|
|
|
432
98
|
const { resolve } = createResolver(import.meta.url);
|
|
433
99
|
const runtimeDir = resolve("./runtime");
|
|
434
100
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
435
|
-
nuxt.options.alias["#ui-module"] = resolve(runtimeDir, "types");
|
|
436
101
|
addPlugin(resolve(runtimeDir, "plugins/ui-module"));
|
|
437
102
|
addImportsDir(resolve(runtimeDir, "composables"));
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
103
|
+
nuxt.options.alias["#ui-module"] = "@antify/ui";
|
|
104
|
+
uiComponents.forEach((name) => {
|
|
105
|
+
addComponent({
|
|
106
|
+
name,
|
|
107
|
+
export: name,
|
|
108
|
+
filePath: "@antify/ui/components"
|
|
109
|
+
});
|
|
443
110
|
});
|
|
444
|
-
nuxt.options.postcss.plugins.tailwindcss =
|
|
111
|
+
nuxt.options.postcss.plugins.tailwindcss = tailwindConfig;
|
|
445
112
|
nuxt.options.css.push(resolve(runtimeDir, "assets/tailwind.css"));
|
|
446
113
|
nuxt.options.runtimeConfig.public[moduleKey] = options;
|
|
447
114
|
}
|
|
448
115
|
});
|
|
449
116
|
|
|
450
|
-
export {
|
|
117
|
+
export { module as default };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Set of helper functions for client side
|
|
3
3
|
*/
|
|
4
4
|
import type { FetchResponse, FetchError } from 'ofetch';
|
|
5
|
-
import { type LocationQuery, type RouteLocationRaw } from 'vue-router';
|
|
6
|
-
import { type Ref } from '
|
|
5
|
+
import { type LocationQuery, type RouteLocationRaw } from '#vue-router';
|
|
6
|
+
import { type Ref } from '#imports';
|
|
7
7
|
export declare function handleNotFoundResponse(response: FetchResponse, fallbackUrl: RouteLocationRaw): Promise<void>;
|
|
8
8
|
export declare function handleResponseError(error: Ref<FetchError | null>): void;
|
|
9
9
|
declare function isFormDisabled(status: Ref | Ref[]): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useNuxtApp, navigateTo, createError } from "#imports";
|
|
2
|
-
import { ref } from "vue";
|
|
1
|
+
import { useNuxtApp, navigateTo, createError, ref } from "#imports";
|
|
3
2
|
import { watchOnce } from "@vueuse/core";
|
|
4
3
|
export async function handleNotFoundResponse(response, fallbackUrl) {
|
|
5
4
|
if (response._data?.notFound) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "#app";
|
|
2
2
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
3
|
-
import
|
|
3
|
+
import { useToaster } from "@antify/ui";
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
|
+
const toaster = useToaster();
|
|
5
6
|
nuxtApp.vueApp.component("FaIcon", FontAwesomeIcon);
|
|
6
7
|
return {
|
|
7
8
|
provide: {
|
|
8
9
|
uiModule: {
|
|
9
|
-
toaster
|
|
10
|
+
toaster
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
1
|
+
import tailwindConfig from '@antify/ui/config';
|
|
2
|
+
export default tailwindConfig;
|