@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,173 +0,0 @@
|
|
|
1
|
-
import AntTabs from "../AntTabs.vue";
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
import { faUserCircle } from "@fortawesome/free-regular-svg-icons";
|
|
4
|
-
import { TabItemState } from "../__types/AntTabItem.types.mjs";
|
|
5
|
-
const meta = {
|
|
6
|
-
title: "Components/Tabs",
|
|
7
|
-
component: AntTabs,
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
decorators: [() => ({ template: '<div class="border border-neutral-300 border-dashed"><story /></div>' })],
|
|
10
|
-
argTypes: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
control: "text",
|
|
13
|
-
table: {
|
|
14
|
-
type: {
|
|
15
|
-
summary: "string | undefined"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
export const Docs = {
|
|
23
|
-
render: (args) => ({
|
|
24
|
-
components: { AntTabs },
|
|
25
|
-
setup() {
|
|
26
|
-
return { args };
|
|
27
|
-
},
|
|
28
|
-
template: `
|
|
29
|
-
<AntTabs v-bind="args" v-model="args.modelValue"/>
|
|
30
|
-
`
|
|
31
|
-
}),
|
|
32
|
-
args: {
|
|
33
|
-
tabItems: [
|
|
34
|
-
{
|
|
35
|
-
id: "1",
|
|
36
|
-
label: "First tab"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "2",
|
|
40
|
-
label: "Second tab"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: "3",
|
|
44
|
-
label: "Third tab"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: "4",
|
|
48
|
-
label: "Fourth tab"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export const FixedHeight = {
|
|
54
|
-
render: (args) => ({
|
|
55
|
-
components: { AntTabs },
|
|
56
|
-
setup() {
|
|
57
|
-
return { args };
|
|
58
|
-
},
|
|
59
|
-
template: `
|
|
60
|
-
<div class="h-20">
|
|
61
|
-
<AntTabs v-bind="args" v-model="args.modelValue"/>
|
|
62
|
-
</div>
|
|
63
|
-
`
|
|
64
|
-
}),
|
|
65
|
-
args: Docs.args
|
|
66
|
-
};
|
|
67
|
-
export const DifferentStates = {
|
|
68
|
-
render: Docs.render,
|
|
69
|
-
args: {
|
|
70
|
-
tabItems: [
|
|
71
|
-
{
|
|
72
|
-
id: "1",
|
|
73
|
-
label: "First tab"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "2",
|
|
77
|
-
label: "Second tab"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "3",
|
|
81
|
-
label: "Third tab",
|
|
82
|
-
state: TabItemState.warning
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: "4",
|
|
86
|
-
label: "Fourth tab",
|
|
87
|
-
state: TabItemState.danger
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export const Overview = {
|
|
93
|
-
render: (args) => ({
|
|
94
|
-
components: { AntTabs },
|
|
95
|
-
setup() {
|
|
96
|
-
const value_1 = ref();
|
|
97
|
-
const value_2 = ref();
|
|
98
|
-
const value_3 = ref("2");
|
|
99
|
-
const tabItems_1 = [
|
|
100
|
-
{
|
|
101
|
-
id: "1",
|
|
102
|
-
label: "My account"
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
const tabItems_2 = [
|
|
106
|
-
{
|
|
107
|
-
id: "1",
|
|
108
|
-
appendIcon: faUserCircle,
|
|
109
|
-
label: "My account"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: "2",
|
|
113
|
-
prependIcon: faUserCircle,
|
|
114
|
-
label: "Downloads"
|
|
115
|
-
}
|
|
116
|
-
];
|
|
117
|
-
const tabItems_3 = [
|
|
118
|
-
{
|
|
119
|
-
id: "1",
|
|
120
|
-
appendIcon: faUserCircle,
|
|
121
|
-
prependIcon: faUserCircle,
|
|
122
|
-
label: "My account",
|
|
123
|
-
to: "/#"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
id: "2",
|
|
127
|
-
prependIcon: faUserCircle,
|
|
128
|
-
appendIcon: faUserCircle,
|
|
129
|
-
label: "Downloads",
|
|
130
|
-
to: "/#"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: "3",
|
|
134
|
-
appendIcon: faUserCircle,
|
|
135
|
-
prependIcon: faUserCircle,
|
|
136
|
-
label: "Messages",
|
|
137
|
-
to: "/#"
|
|
138
|
-
}
|
|
139
|
-
];
|
|
140
|
-
return {
|
|
141
|
-
args,
|
|
142
|
-
value_1,
|
|
143
|
-
value_2,
|
|
144
|
-
value_3,
|
|
145
|
-
tabItems_1,
|
|
146
|
-
tabItems_2,
|
|
147
|
-
tabItems_3
|
|
148
|
-
};
|
|
149
|
-
},
|
|
150
|
-
template: `
|
|
151
|
-
<div>Default:</div>
|
|
152
|
-
<div class="flex flex-col gap-3 flex-nowrap">
|
|
153
|
-
<AntTabs v-model="value_1" :tab-items="tabItems_1"/>
|
|
154
|
-
<AntTabs v-model="value_2" :tab-items="tabItems_2"/>
|
|
155
|
-
<AntTabs v-model="value_3" :tab-items="tabItems_3"/>
|
|
156
|
-
</div>
|
|
157
|
-
|
|
158
|
-
<div class="mt-8">Expanded:</div>
|
|
159
|
-
<div class="flex flex-col gap-3 flex-nowrap">
|
|
160
|
-
<AntTabs v-model="value_1" :tab-items="tabItems_1" expanded separators/>
|
|
161
|
-
<AntTabs v-model="value_2" :tab-items="tabItems_2" expanded separators/>
|
|
162
|
-
<AntTabs v-model="value_3" :tab-items="tabItems_3" expanded separators/>
|
|
163
|
-
</div>
|
|
164
|
-
|
|
165
|
-
<div class="mt-8">Larger container:</div>
|
|
166
|
-
|
|
167
|
-
<div class="h-16 bg-primary-500">
|
|
168
|
-
<AntTabs v-model="value_3" :tab-items="tabItems_3" expanded separators/>
|
|
169
|
-
</div>
|
|
170
|
-
`
|
|
171
|
-
}),
|
|
172
|
-
args: {}
|
|
173
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
-
import { type RouteLocationRaw } from 'vue-router';
|
|
3
|
-
export type TabItem = {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
state?: TabItemState;
|
|
7
|
-
showIcon?: boolean;
|
|
8
|
-
icon?: IconDefinition;
|
|
9
|
-
to?: string | RouteLocationRaw;
|
|
10
|
-
clickHandler?: () => void;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
export declare enum TabItemState {
|
|
14
|
-
base = "base",
|
|
15
|
-
warning = "warning",
|
|
16
|
-
danger = "danger"
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AntTabItem.types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./AntTabItem.types.mjs";
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
/**
|
|
3
|
-
* It is not possible to smoothly animate height or max-height with CSS transitions not using a fixed value
|
|
4
|
-
* like 'height: 1rem';
|
|
5
|
-
*
|
|
6
|
-
* This component does it via javascript.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
// TODO:: fix typescript errors
|
|
11
|
-
/**
|
|
12
|
-
* @param {HTMLElement} element
|
|
13
|
-
*/
|
|
14
|
-
function beforeEnter(element) {
|
|
15
|
-
requestAnimationFrame(() => {
|
|
16
|
-
if (!element.style.height) {
|
|
17
|
-
element.style.height = '0px';
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
element.style.display = '';
|
|
21
|
-
// element.style.display = null;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @param {HTMLElement} element
|
|
27
|
-
*/
|
|
28
|
-
function enter(element) {
|
|
29
|
-
requestAnimationFrame(() => {
|
|
30
|
-
requestAnimationFrame(() => {
|
|
31
|
-
element.style.height = `${element.scrollHeight}px`;
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @param {HTMLElement} element
|
|
38
|
-
*/
|
|
39
|
-
function afterEnter(element) {
|
|
40
|
-
element.style.height = '';
|
|
41
|
-
// element.style.height = null;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @param {HTMLElement} element
|
|
46
|
-
*/
|
|
47
|
-
function beforeLeave(element) {
|
|
48
|
-
requestAnimationFrame(() => {
|
|
49
|
-
if (!element.style.height) {
|
|
50
|
-
element.style.height = `${element.offsetHeight}px`;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @param {HTMLElement} element
|
|
57
|
-
*/
|
|
58
|
-
function leave(element) {
|
|
59
|
-
requestAnimationFrame(() => {
|
|
60
|
-
requestAnimationFrame(() => {
|
|
61
|
-
element.style.height = '0px';
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @param {HTMLElement} element
|
|
68
|
-
*/
|
|
69
|
-
function afterLeave(element) {
|
|
70
|
-
element.style.height = '';
|
|
71
|
-
// element.style.height = null;
|
|
72
|
-
}
|
|
73
|
-
</script>
|
|
74
|
-
|
|
75
|
-
<template>
|
|
76
|
-
<transition
|
|
77
|
-
enter-active-class="enter-active"
|
|
78
|
-
leave-active-class="leave-active"
|
|
79
|
-
@before-enter="beforeEnter"
|
|
80
|
-
@enter="enter"
|
|
81
|
-
@after-enter="afterEnter"
|
|
82
|
-
@before-leave="beforeLeave"
|
|
83
|
-
@leave="leave"
|
|
84
|
-
@after-leave="afterLeave"
|
|
85
|
-
>
|
|
86
|
-
<slot/>
|
|
87
|
-
</transition>
|
|
88
|
-
</template>
|
|
89
|
-
|
|
90
|
-
<style scoped>
|
|
91
|
-
.enter-active,.leave-active{overflow:hidden;transition:height .4s ease-in-out}
|
|
92
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { State, InputState } from '../enums/State.enum';
|
|
2
|
-
import { TabItemState as TabItemState } from '../components/tabs/__types/AntTabItem.types';
|
|
3
|
-
import { Direction } from '../enums/Direction.enum';
|
|
4
|
-
import { Grouped } from '../enums/Grouped.enum';
|
|
5
|
-
import { Position, CornerPosition } from '../enums/Position.enum';
|
|
6
|
-
import { Size } from '../enums/Size.enum';
|
|
7
|
-
import { AntTableRowTypes, AntTableAlign, AntTableSortDirection } from '../components/table/__types/TableHeader.types';
|
|
8
|
-
export declare const useUi: () => {
|
|
9
|
-
Direction: typeof Direction;
|
|
10
|
-
State: typeof State;
|
|
11
|
-
InputState: typeof InputState;
|
|
12
|
-
TabItemState: typeof TabItemState;
|
|
13
|
-
Grouped: typeof Grouped;
|
|
14
|
-
Position: typeof Position;
|
|
15
|
-
CornerPosition: typeof CornerPosition;
|
|
16
|
-
Size: typeof Size;
|
|
17
|
-
AntTableRowTypes: typeof AntTableRowTypes;
|
|
18
|
-
AntTableAlign: typeof AntTableAlign;
|
|
19
|
-
AntTableSortDirection: typeof AntTableSortDirection;
|
|
20
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
State,
|
|
3
|
-
InputState
|
|
4
|
-
} from "../enums/State.enum.mjs";
|
|
5
|
-
import {
|
|
6
|
-
TabItemState
|
|
7
|
-
} from "../components/tabs/__types/AntTabItem.types.mjs";
|
|
8
|
-
import { Direction } from "../enums/Direction.enum.mjs";
|
|
9
|
-
import { Grouped } from "../enums/Grouped.enum.mjs";
|
|
10
|
-
import { Position, CornerPosition } from "../enums/Position.enum.mjs";
|
|
11
|
-
import { Size } from "../enums/Size.enum.mjs";
|
|
12
|
-
import {
|
|
13
|
-
AntTableRowTypes,
|
|
14
|
-
AntTableAlign,
|
|
15
|
-
AntTableSortDirection
|
|
16
|
-
} from "../components/table/__types/TableHeader.types.mjs";
|
|
17
|
-
export const useUi = () => {
|
|
18
|
-
return {
|
|
19
|
-
Direction,
|
|
20
|
-
State,
|
|
21
|
-
InputState,
|
|
22
|
-
TabItemState,
|
|
23
|
-
Grouped,
|
|
24
|
-
Position,
|
|
25
|
-
CornerPosition,
|
|
26
|
-
Size,
|
|
27
|
-
AntTableRowTypes,
|
|
28
|
-
AntTableAlign,
|
|
29
|
-
AntTableSortDirection
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useValidator } from '@antify/validate';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useValidator } from "@antify/validate";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum Position {
|
|
2
|
-
top = "top",
|
|
3
|
-
right = "right",
|
|
4
|
-
bottom = "bottom",
|
|
5
|
-
left = "left"
|
|
6
|
-
}
|
|
7
|
-
export declare enum CornerPosition {
|
|
8
|
-
topLeft = "topLeft",
|
|
9
|
-
topRight = "topRight",
|
|
10
|
-
bottomRight = "bottomRight",
|
|
11
|
-
bottomLeft = "bottomLeft"
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var Position = /* @__PURE__ */ ((Position2) => {
|
|
2
|
-
Position2["top"] = "top";
|
|
3
|
-
Position2["right"] = "right";
|
|
4
|
-
Position2["bottom"] = "bottom";
|
|
5
|
-
Position2["left"] = "left";
|
|
6
|
-
return Position2;
|
|
7
|
-
})(Position || {});
|
|
8
|
-
export var CornerPosition = /* @__PURE__ */ ((CornerPosition2) => {
|
|
9
|
-
CornerPosition2["topLeft"] = "topLeft";
|
|
10
|
-
CornerPosition2["topRight"] = "topRight";
|
|
11
|
-
CornerPosition2["bottomRight"] = "bottomRight";
|
|
12
|
-
CornerPosition2["bottomLeft"] = "bottomLeft";
|
|
13
|
-
return CornerPosition2;
|
|
14
|
-
})(CornerPosition || {});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum State {
|
|
2
|
-
base = "base",
|
|
3
|
-
primary = "primary",
|
|
4
|
-
secondary = "secondary",
|
|
5
|
-
danger = "danger",
|
|
6
|
-
info = "info",
|
|
7
|
-
success = "success",
|
|
8
|
-
warning = "warning"
|
|
9
|
-
}
|
|
10
|
-
export declare enum InputState {
|
|
11
|
-
base = "base",
|
|
12
|
-
danger = "danger",
|
|
13
|
-
info = "info",
|
|
14
|
-
success = "success",
|
|
15
|
-
warning = "warning"
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export var State = /* @__PURE__ */ ((State2) => {
|
|
2
|
-
State2["base"] = "base";
|
|
3
|
-
State2["primary"] = "primary";
|
|
4
|
-
State2["secondary"] = "secondary";
|
|
5
|
-
State2["danger"] = "danger";
|
|
6
|
-
State2["info"] = "info";
|
|
7
|
-
State2["success"] = "success";
|
|
8
|
-
State2["warning"] = "warning";
|
|
9
|
-
return State2;
|
|
10
|
-
})(State || {});
|
|
11
|
-
export var InputState = /* @__PURE__ */ ((InputState2) => {
|
|
12
|
-
InputState2["base"] = "base";
|
|
13
|
-
InputState2["danger"] = "danger";
|
|
14
|
-
InputState2["info"] = "info";
|
|
15
|
-
InputState2["success"] = "success";
|
|
16
|
-
InputState2["warning"] = "warning";
|
|
17
|
-
return InputState2;
|
|
18
|
-
})(InputState || {});
|
package/dist/runtime/env.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
declare module '*.vue' {
|
|
4
|
-
import type { DefineComponent } from 'vue'
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
-
const component: DefineComponent<{}, {}, any>
|
|
7
|
-
export default component
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function handleEnumValidation(value: any, allowedValues: object, propertyName: string): void;
|
package/dist/runtime/handler.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Toast } from '../components/__types/AntToaster.types';
|
|
2
|
-
import { InputState } from '../enums';
|
|
3
|
-
declare const _default: () => {
|
|
4
|
-
getToasts(): {
|
|
5
|
-
id?: string | undefined;
|
|
6
|
-
title: string;
|
|
7
|
-
content?: string | undefined;
|
|
8
|
-
type: InputState;
|
|
9
|
-
hasIcon?: boolean | undefined;
|
|
10
|
-
}[];
|
|
11
|
-
toast(toast: Toast): void;
|
|
12
|
-
removeToast(toast: Toast): void;
|
|
13
|
-
toastSuccess(message: string): void;
|
|
14
|
-
toastError(message: string): void;
|
|
15
|
-
toastWarning(message: string): void;
|
|
16
|
-
toastInfo(message: string): void;
|
|
17
|
-
toastDeleted(): void;
|
|
18
|
-
toastCreated(): void;
|
|
19
|
-
toastUpdated(): void;
|
|
20
|
-
toastDuplicated(): void;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { InputState } from "../enums/index.mjs";
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
export default () => {
|
|
4
|
-
const toasts = ref([]);
|
|
5
|
-
return {
|
|
6
|
-
getToasts() {
|
|
7
|
-
return [...toasts.value].reverse();
|
|
8
|
-
},
|
|
9
|
-
toast(toast) {
|
|
10
|
-
const id = `${Date.now()}`;
|
|
11
|
-
toasts.value.push({
|
|
12
|
-
...toast,
|
|
13
|
-
id
|
|
14
|
-
});
|
|
15
|
-
setTimeout(() => {
|
|
16
|
-
const index = toasts.value.findIndex((toast2) => toast2.id === id);
|
|
17
|
-
if (index !== -1) {
|
|
18
|
-
toasts.value.splice(index, 1);
|
|
19
|
-
}
|
|
20
|
-
}, 5e3);
|
|
21
|
-
},
|
|
22
|
-
removeToast(toast) {
|
|
23
|
-
const index = toasts.value.indexOf(toast);
|
|
24
|
-
if (index !== -1) {
|
|
25
|
-
toasts.value.splice(index, 1);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
toastSuccess(message) {
|
|
29
|
-
this.toast({ title: message, type: InputState.success });
|
|
30
|
-
},
|
|
31
|
-
toastError(message) {
|
|
32
|
-
this.toast({ title: message, type: InputState.danger });
|
|
33
|
-
},
|
|
34
|
-
toastWarning(message) {
|
|
35
|
-
this.toast({ title: message, type: InputState.warning });
|
|
36
|
-
},
|
|
37
|
-
toastInfo(message) {
|
|
38
|
-
this.toast({ title: message, type: InputState.info });
|
|
39
|
-
},
|
|
40
|
-
toastDeleted() {
|
|
41
|
-
this.toastSuccess("Deleted");
|
|
42
|
-
},
|
|
43
|
-
toastCreated() {
|
|
44
|
-
this.toastSuccess("Saved");
|
|
45
|
-
},
|
|
46
|
-
toastUpdated() {
|
|
47
|
-
this.toastSuccess("Saved");
|
|
48
|
-
},
|
|
49
|
-
toastDuplicated() {
|
|
50
|
-
this.toastSuccess("Duplicated");
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
};
|
package/dist/runtime/types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './enums';
|
|
2
|
-
export * from './components/__types';
|
|
3
|
-
export * from './components/buttons/__types';
|
|
4
|
-
export * from './components/inputs/__types';
|
|
5
|
-
export * from './components/inputs/Elements/__types';
|
|
6
|
-
export * from './components/navbar/__types';
|
|
7
|
-
export * from './components/table/__types';
|
|
8
|
-
export * from './components/tabs/__types';
|
package/dist/runtime/types.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./enums/index.mjs";
|
|
2
|
-
export * from "./components/__types/index.mjs";
|
|
3
|
-
export * from "./components/buttons/__types/index.mjs";
|
|
4
|
-
export * from "./components/inputs/__types/index.mjs";
|
|
5
|
-
export * from "./components/inputs/Elements/__types/index.mjs";
|
|
6
|
-
export * from "./components/navbar/__types/index.mjs";
|
|
7
|
-
export * from "./components/table/__types/index.mjs";
|
|
8
|
-
export * from "./components/tabs/__types/index.mjs";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const generateId = (length) => {
|
|
2
|
-
let result = "";
|
|
3
|
-
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
4
|
-
const charactersLength = characters.length;
|
|
5
|
-
for (var i = 0; i < length; i++) {
|
|
6
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
7
|
-
}
|
|
8
|
-
return result;
|
|
9
|
-
};
|
|
10
|
-
export const antfocus = {
|
|
11
|
-
mounted: (el) => el.focus()
|
|
12
|
-
};
|
package/dist/runtime/utils.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Slot } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Convert html class syntax given as undefined, string ("text-base bg-primary-500") or
|
|
4
|
-
* object syntax ({"text-base bg-primary-500": true}) always to object syntax ({"text-base bg-primary-500": true}).
|
|
5
|
-
*
|
|
6
|
-
* @param classes
|
|
7
|
-
*/
|
|
8
|
-
export declare function classesToObjectSyntax(classes: string | undefined | Record<string, boolean>): Record<string, boolean>;
|
|
9
|
-
/**
|
|
10
|
-
* Convert the given enum to a string for documentation.
|
|
11
|
-
*
|
|
12
|
-
* @param value
|
|
13
|
-
* @param className
|
|
14
|
-
*/
|
|
15
|
-
export declare function enumToPlainText(value: object, className: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Detect if the given vue template slot exists and has content.
|
|
18
|
-
* To get a slot in your component, call $slots['slotName'] or useSlots()['slotName'].
|
|
19
|
-
*/
|
|
20
|
-
export declare function hasSlotContent(slot: Slot<any> | undefined): boolean;
|