@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
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import {type IconDefinition} from '@fortawesome/free-solid-svg-icons';
|
|
3
|
-
import {computed, onMounted} from 'vue';
|
|
4
|
-
import {type RouteLocationRaw} from 'vue-router';
|
|
5
|
-
import AntSkeleton from '../AntSkeleton.vue';
|
|
6
|
-
import AntSpinner from '../AntSpinner.vue';
|
|
7
|
-
import {Grouped} from '../../enums/Grouped.enum';
|
|
8
|
-
import {Size} from '../../enums/Size.enum';
|
|
9
|
-
import {handleEnumValidation} from '../../handler';
|
|
10
|
-
import {State, InputState, Position} from '../../enums';
|
|
11
|
-
import {ButtonType} from './__types';
|
|
12
|
-
import AntIcon from '../AntIcon.vue';
|
|
13
|
-
import AntTooltip from '../AntTooltip.vue';
|
|
14
|
-
import {IconSize} from '../__types/AntIcon.types';
|
|
15
|
-
|
|
16
|
-
defineEmits(['click', 'blur']);
|
|
17
|
-
|
|
18
|
-
const props = withDefaults(defineProps<{
|
|
19
|
-
filled?: boolean;
|
|
20
|
-
size?: Size;
|
|
21
|
-
state?: State;
|
|
22
|
-
iconLeft?: IconDefinition;
|
|
23
|
-
iconRight?: IconDefinition;
|
|
24
|
-
to?: RouteLocationRaw;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
grouped?: Grouped;
|
|
27
|
-
skeleton?: boolean;
|
|
28
|
-
spinner?: boolean;
|
|
29
|
-
readonly?: boolean;
|
|
30
|
-
expanded?: boolean;
|
|
31
|
-
submit?: boolean;
|
|
32
|
-
outlined?: boolean;
|
|
33
|
-
noFocus?: boolean;
|
|
34
|
-
tooltipPosition?: Position;
|
|
35
|
-
tooltipState?: InputState;
|
|
36
|
-
tooltipDelay?: number;
|
|
37
|
-
}>(), {
|
|
38
|
-
state: State.base,
|
|
39
|
-
disabled: false,
|
|
40
|
-
filled: false,
|
|
41
|
-
skeleton: false,
|
|
42
|
-
spinner: false,
|
|
43
|
-
size: Size.md,
|
|
44
|
-
grouped: Grouped.none,
|
|
45
|
-
readonly: false,
|
|
46
|
-
expanded: false,
|
|
47
|
-
submit: false,
|
|
48
|
-
outlined: true,
|
|
49
|
-
noFocus: false,
|
|
50
|
-
tooltipPosition: Position.bottom,
|
|
51
|
-
tooltipState: InputState.base,
|
|
52
|
-
tooltipDelay: 800
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const hasInputState = computed(() => props.skeleton || props.readonly || props.disabled);
|
|
56
|
-
const groupedClassList = computed(() => ({
|
|
57
|
-
'rounded-tl-md rounded-bl-md rounded-tr-none rounded-br-none -mr-px': props.grouped === Grouped.left,
|
|
58
|
-
'rounded-none -mx-px': props.grouped === Grouped.center,
|
|
59
|
-
'rounded-tl-none rounded-bl-none rounded-tr-md rounded-br-md -ml-px': props.grouped === Grouped.right,
|
|
60
|
-
'rounded-md': props.grouped === Grouped.none,
|
|
61
|
-
}));
|
|
62
|
-
const classes = computed(() => {
|
|
63
|
-
const variants = {
|
|
64
|
-
[State.base]: 'ring-primary-200 outline-neutral-300',
|
|
65
|
-
[State.danger]: 'ring-danger-200 outline-danger-500',
|
|
66
|
-
[State.info]: 'ring-info-200 outline-info-500',
|
|
67
|
-
[State.primary]: 'ring-primary-200 outline-primary-500',
|
|
68
|
-
[State.secondary]: 'ring-secondary-200 outline-secondary-500',
|
|
69
|
-
[State.success]: 'ring-success-200 outline-success-500',
|
|
70
|
-
[State.warning]: 'ring-warning-200 outline-warning-500',
|
|
71
|
-
};
|
|
72
|
-
const notFilledVariants = {
|
|
73
|
-
[State.base]: 'bg-white text-for-white-bg-font',
|
|
74
|
-
[State.danger]: 'bg-white text-danger-500',
|
|
75
|
-
[State.info]: 'bg-white text-info-500',
|
|
76
|
-
[State.primary]: 'bg-white text-primary-500',
|
|
77
|
-
[State.secondary]: 'bg-white text-secondary-500',
|
|
78
|
-
[State.success]: 'bg-white text-success-500',
|
|
79
|
-
[State.warning]: 'bg-white text-warning-500',
|
|
80
|
-
};
|
|
81
|
-
const notFilledHoverVariants = {
|
|
82
|
-
[State.base]: 'hover:bg-neutral-100',
|
|
83
|
-
[State.danger]: 'hover:bg-danger-100',
|
|
84
|
-
[State.info]: 'hover:bg-info-100',
|
|
85
|
-
[State.primary]: 'hover:bg-primary-100',
|
|
86
|
-
[State.secondary]: 'hover:bg-secondary-100',
|
|
87
|
-
[State.success]: 'hover:bg-success-100',
|
|
88
|
-
[State.warning]: 'hover:bg-warning-100',
|
|
89
|
-
};
|
|
90
|
-
const filledVariants = {
|
|
91
|
-
[State.base]: 'bg-neutral-50 text-neutral-50-font',
|
|
92
|
-
[State.danger]: 'bg-danger-500 text-danger-500-font',
|
|
93
|
-
[State.info]: 'bg-info-500 text-info-500-font',
|
|
94
|
-
[State.primary]: 'bg-primary-500 text-primary-500-font',
|
|
95
|
-
[State.secondary]: 'bg-secondary-500 text-secondary-500-font',
|
|
96
|
-
[State.success]: 'bg-success-500 text-success-500-font',
|
|
97
|
-
[State.warning]: 'bg-warning-500 text-warning-500-font',
|
|
98
|
-
};
|
|
99
|
-
const filledHoverVariants = {
|
|
100
|
-
[State.base]: 'hover:bg-neutral-200',
|
|
101
|
-
[State.danger]: 'hover:bg-danger-600',
|
|
102
|
-
[State.info]: 'hover:bg-info-600',
|
|
103
|
-
[State.primary]: 'hover:bg-primary-600',
|
|
104
|
-
[State.secondary]: 'hover:bg-secondary-600',
|
|
105
|
-
[State.success]: 'hover:bg-success-600',
|
|
106
|
-
[State.warning]: 'hover:bg-warning-600',
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
'transition-all inline-flex items-center justify-center relative font-medium': true,
|
|
111
|
-
'focus:z-10': true,
|
|
112
|
-
'active:shadow-[inset_0_4px_4px_rgba(0,0,0,0.25)]': !hasInputState.value,
|
|
113
|
-
'p-1 text-xs gap-1': props.size === Size.xs2,
|
|
114
|
-
'p-1.5 text-xs gap-1.5': props.size === Size.xs,
|
|
115
|
-
'p-1.5 text-sm gap-1.5': props.size === Size.sm,
|
|
116
|
-
'p-2 text-sm gap-2': props.size === Size.md,
|
|
117
|
-
'p-2.5 text-sm gap-2.5': props.size === Size.lg,
|
|
118
|
-
'disabled:opacity-50 disabled:cursor-not-allowed': true,
|
|
119
|
-
'cursor-default': props.readonly,
|
|
120
|
-
'focus:ring-2': !props.readonly && props.size === Size.sm || props.size === Size.xs || props.size === Size.xs2,
|
|
121
|
-
'focus:ring-4': !props.readonly && props.size === Size.md || props.size === Size.lg,
|
|
122
|
-
'w-full': props.expanded,
|
|
123
|
-
'invisible': props.skeleton,
|
|
124
|
-
'outline outline-1 outline-offset-[-1px]': props.outlined,
|
|
125
|
-
...groupedClassList.value,
|
|
126
|
-
[variants[props.state]]: true,
|
|
127
|
-
[notFilledVariants[props.state]]: !props.filled,
|
|
128
|
-
[notFilledHoverVariants[props.state]]: !props.filled && !hasInputState.value,
|
|
129
|
-
[filledVariants[props.state]]: props.filled,
|
|
130
|
-
[filledHoverVariants[props.state]]: props.filled && !hasInputState.value,
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
const iconColor = computed(() => {
|
|
134
|
-
const notFilledVariants = {
|
|
135
|
-
[State.base]: 'text-for-white-bg-font',
|
|
136
|
-
[State.danger]: 'text-danger-500',
|
|
137
|
-
[State.info]: 'text-info-500',
|
|
138
|
-
[State.primary]: 'text-primary-500',
|
|
139
|
-
[State.secondary]: 'text-secondary-500',
|
|
140
|
-
[State.success]: 'text-success-500',
|
|
141
|
-
[State.warning]: 'text-warning-500',
|
|
142
|
-
};
|
|
143
|
-
const filledVariants = {
|
|
144
|
-
[State.base]: 'text-for-white-bg-font',
|
|
145
|
-
[State.danger]: 'text-danger-500-font',
|
|
146
|
-
[State.info]: 'text-info-500-font',
|
|
147
|
-
[State.primary]: 'text-primary-500-font',
|
|
148
|
-
[State.secondary]: 'text-secondary-500-font',
|
|
149
|
-
[State.success]: 'text-success-500-font',
|
|
150
|
-
[State.warning]: 'text-warning-500-font',
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
return props.filled ? filledVariants[props.state] : notFilledVariants[props.state];
|
|
154
|
-
});
|
|
155
|
-
const type = computed(() => {
|
|
156
|
-
if (props.to !== undefined) {
|
|
157
|
-
return undefined;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return props.submit ? ButtonType.submit : ButtonType.button;
|
|
161
|
-
});
|
|
162
|
-
const is = computed(() => {
|
|
163
|
-
if (props.readonly) {
|
|
164
|
-
return 'div';
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return props.to !== undefined ? 'router-link' : 'button';
|
|
168
|
-
});
|
|
169
|
-
const getIconSize = computed(() => {
|
|
170
|
-
if (props.size === Size.xs || props.size === Size.xs2) {
|
|
171
|
-
return IconSize.xs;
|
|
172
|
-
} else {
|
|
173
|
-
return IconSize.sm;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
onMounted(() => {
|
|
178
|
-
handleEnumValidation(props.size, Size, 'size');
|
|
179
|
-
handleEnumValidation(props.state, State, 'state');
|
|
180
|
-
handleEnumValidation(props.grouped, Grouped, 'grouped');
|
|
181
|
-
});
|
|
182
|
-
</script>
|
|
183
|
-
|
|
184
|
-
<template>
|
|
185
|
-
<div
|
|
186
|
-
class="relative inline-flex h-fit"
|
|
187
|
-
:class="{'w-full': props.expanded}"
|
|
188
|
-
data-e2e="button"
|
|
189
|
-
:data-e2e-state="props.state"
|
|
190
|
-
>
|
|
191
|
-
<AntSkeleton
|
|
192
|
-
v-if="skeleton"
|
|
193
|
-
:grouped="grouped"
|
|
194
|
-
rounded
|
|
195
|
-
absolute
|
|
196
|
-
/>
|
|
197
|
-
|
|
198
|
-
<AntTooltip
|
|
199
|
-
:expanded="expanded"
|
|
200
|
-
:position="tooltipPosition"
|
|
201
|
-
:state="tooltipState"
|
|
202
|
-
:delay="tooltipDelay"
|
|
203
|
-
>
|
|
204
|
-
<template #default>
|
|
205
|
-
<component
|
|
206
|
-
:is="is"
|
|
207
|
-
:class="classes"
|
|
208
|
-
:type="type"
|
|
209
|
-
:to="to"
|
|
210
|
-
:disabled="disabled || undefined"
|
|
211
|
-
:tabindex="noFocus || hasInputState ? '-1' : '0'"
|
|
212
|
-
@click="() => !props.readonly ? $emit('click') : null"
|
|
213
|
-
@blur="() => !props.readonly ? $emit('blur') : null"
|
|
214
|
-
>
|
|
215
|
-
<AntSpinner
|
|
216
|
-
v-if="spinner"
|
|
217
|
-
:size="size"
|
|
218
|
-
:state="state"
|
|
219
|
-
:inverted="!filled"
|
|
220
|
-
/>
|
|
221
|
-
|
|
222
|
-
<slot
|
|
223
|
-
v-if="!spinner"
|
|
224
|
-
name="icon-left"
|
|
225
|
-
>
|
|
226
|
-
<AntIcon
|
|
227
|
-
v-if="iconLeft"
|
|
228
|
-
:icon="iconLeft"
|
|
229
|
-
:size="getIconSize"
|
|
230
|
-
:color="iconColor"
|
|
231
|
-
/>
|
|
232
|
-
</slot>
|
|
233
|
-
|
|
234
|
-
<slot
|
|
235
|
-
v-if="!spinner"
|
|
236
|
-
/>
|
|
237
|
-
|
|
238
|
-
<slot
|
|
239
|
-
v-if="!spinner"
|
|
240
|
-
name="icon-right"
|
|
241
|
-
>
|
|
242
|
-
<AntIcon
|
|
243
|
-
v-if="iconRight"
|
|
244
|
-
:icon="iconRight"
|
|
245
|
-
:size="getIconSize"
|
|
246
|
-
:color="iconColor"
|
|
247
|
-
/>
|
|
248
|
-
</slot>
|
|
249
|
-
</component>
|
|
250
|
-
</template>
|
|
251
|
-
|
|
252
|
-
<template #content>
|
|
253
|
-
<slot name="tooltip-content" />
|
|
254
|
-
</template>
|
|
255
|
-
</AntTooltip>
|
|
256
|
-
</div>
|
|
257
|
-
</template>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faPlus} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canCreate?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canCreate: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="false"
|
|
25
|
-
:state="State.primary"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faPlus : undefined"
|
|
29
|
-
:grouped="grouped"
|
|
30
|
-
:skeleton="skeleton"
|
|
31
|
-
:expanded="expanded"
|
|
32
|
-
:has-permission="canCreate"
|
|
33
|
-
:tooltip-position="tooltipPosition"
|
|
34
|
-
data-e2e="create-button"
|
|
35
|
-
@click="$emit('click')"
|
|
36
|
-
@blur="$emit('blur')"
|
|
37
|
-
>
|
|
38
|
-
<template
|
|
39
|
-
v-if="!iconVariant"
|
|
40
|
-
#default
|
|
41
|
-
>
|
|
42
|
-
Create
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<template #invalidPermissionTooltipContent>
|
|
46
|
-
You have no permission to create new entries.<br>
|
|
47
|
-
Please contact your administrator.
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<template #tooltipContent>
|
|
51
|
-
Create new entry
|
|
52
|
-
</template>
|
|
53
|
-
</AntActionButton>
|
|
54
|
-
</template>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faTrash} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canDelete?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canDelete: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="false"
|
|
25
|
-
:state="State.danger"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faTrash : undefined"
|
|
29
|
-
:grouped="grouped"
|
|
30
|
-
:skeleton="skeleton"
|
|
31
|
-
:expanded="expanded"
|
|
32
|
-
:has-permission="canDelete"
|
|
33
|
-
:tooltip-position="tooltipPosition"
|
|
34
|
-
data-e2e="delete-button"
|
|
35
|
-
@click="$emit('click')"
|
|
36
|
-
@blur="$emit('blur')"
|
|
37
|
-
>
|
|
38
|
-
<template
|
|
39
|
-
v-if="!iconVariant"
|
|
40
|
-
#default
|
|
41
|
-
>
|
|
42
|
-
Delete
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<template #invalidPermissionTooltipContent>
|
|
46
|
-
You have no permission to delete entries.<br>
|
|
47
|
-
Please contact your administrator.
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<template #tooltipContent>
|
|
51
|
-
Delete entry
|
|
52
|
-
</template>
|
|
53
|
-
</AntActionButton>
|
|
54
|
-
</template>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faCopy} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canDuplicate?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canDuplicate: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="false"
|
|
25
|
-
:state="State.base"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faCopy : undefined"
|
|
29
|
-
:grouped="grouped"
|
|
30
|
-
:skeleton="skeleton"
|
|
31
|
-
:expanded="expanded"
|
|
32
|
-
:has-permission="canDuplicate"
|
|
33
|
-
:tooltip-position="tooltipPosition"
|
|
34
|
-
data-e2e="duplicate-button"
|
|
35
|
-
@click="$emit('click')"
|
|
36
|
-
@blur="$emit('blur')"
|
|
37
|
-
>
|
|
38
|
-
<template
|
|
39
|
-
v-if="!iconVariant"
|
|
40
|
-
#default
|
|
41
|
-
>
|
|
42
|
-
Duplicate
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<template #invalidPermissionTooltipContent>
|
|
46
|
-
You have no permission to duplicate entries.<br>
|
|
47
|
-
Please contact your administrator.
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<template #tooltipContent>
|
|
51
|
-
Duplicate entry
|
|
52
|
-
</template>
|
|
53
|
-
</AntActionButton>
|
|
54
|
-
</template>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faPencil} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canEdit?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canEdit: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="false"
|
|
25
|
-
:state="State.base"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faPencil : undefined"
|
|
29
|
-
:grouped="grouped"
|
|
30
|
-
:skeleton="skeleton"
|
|
31
|
-
:expanded="expanded"
|
|
32
|
-
:has-permission="canEdit"
|
|
33
|
-
:tooltip-position="tooltipPosition"
|
|
34
|
-
data-e2e="edit-button"
|
|
35
|
-
@click="$emit('click')"
|
|
36
|
-
@blur="$emit('blur')"
|
|
37
|
-
>
|
|
38
|
-
<template
|
|
39
|
-
v-if="!iconVariant"
|
|
40
|
-
#default
|
|
41
|
-
>
|
|
42
|
-
Edit
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<template #invalidPermissionTooltipContent>
|
|
46
|
-
You have no permission to edit entries.<br>
|
|
47
|
-
Please contact your administrator.
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<template #tooltipContent>
|
|
51
|
-
Edit entry
|
|
52
|
-
</template>
|
|
53
|
-
</AntActionButton>
|
|
54
|
-
</template>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faFloppyDisk, faPlus} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canSave?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canSave: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="true"
|
|
25
|
-
:state="State.primary"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faFloppyDisk : undefined"
|
|
29
|
-
:icon-right="iconVariant ? faPlus : undefined"
|
|
30
|
-
:grouped="grouped"
|
|
31
|
-
:skeleton="skeleton"
|
|
32
|
-
:expanded="expanded"
|
|
33
|
-
:submit="true"
|
|
34
|
-
:has-permission="canSave"
|
|
35
|
-
:tooltip-position="tooltipPosition"
|
|
36
|
-
data-e2e="save-and-new-button"
|
|
37
|
-
@click="$emit('click')"
|
|
38
|
-
@blur="$emit('blur')"
|
|
39
|
-
>
|
|
40
|
-
<template
|
|
41
|
-
v-if="!iconVariant"
|
|
42
|
-
#default
|
|
43
|
-
>
|
|
44
|
-
Save and new
|
|
45
|
-
</template>
|
|
46
|
-
|
|
47
|
-
<template #invalidPermissionTooltipContent>
|
|
48
|
-
You have no permission to save entries.<br>
|
|
49
|
-
Please contact your administrator.
|
|
50
|
-
</template>
|
|
51
|
-
|
|
52
|
-
<template #tooltipContent>
|
|
53
|
-
Save entry
|
|
54
|
-
</template>
|
|
55
|
-
</AntActionButton>
|
|
56
|
-
</template>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import AntActionButton from './AntActionButton.vue';
|
|
3
|
-
import {Position, Size, Grouped, State} from '../../enums';
|
|
4
|
-
import {faFloppyDisk} from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
|
|
6
|
-
defineEmits(['click', 'blur']);
|
|
7
|
-
withDefaults(defineProps<{
|
|
8
|
-
iconVariant?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
grouped?: Grouped;
|
|
12
|
-
skeleton?: boolean;
|
|
13
|
-
expanded?: boolean;
|
|
14
|
-
canSave?: boolean;
|
|
15
|
-
tooltipPosition?: Position;
|
|
16
|
-
}>(), {
|
|
17
|
-
iconVariant: false,
|
|
18
|
-
canSave: true
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<template>
|
|
23
|
-
<AntActionButton
|
|
24
|
-
:filled="true"
|
|
25
|
-
:state="State.primary"
|
|
26
|
-
:size="size"
|
|
27
|
-
:disabled="disabled"
|
|
28
|
-
:icon-left="iconVariant ? faFloppyDisk : undefined"
|
|
29
|
-
:grouped="grouped"
|
|
30
|
-
:skeleton="skeleton"
|
|
31
|
-
:expanded="expanded"
|
|
32
|
-
:submit="true"
|
|
33
|
-
:has-permission="canSave"
|
|
34
|
-
:tooltip-position="tooltipPosition"
|
|
35
|
-
data-e2e="save-button"
|
|
36
|
-
@click="$emit('click')"
|
|
37
|
-
@blur="$emit('blur')"
|
|
38
|
-
>
|
|
39
|
-
<template
|
|
40
|
-
v-if="!iconVariant"
|
|
41
|
-
#default
|
|
42
|
-
>
|
|
43
|
-
Save
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<template #invalidPermissionTooltipContent>
|
|
47
|
-
You have no permission to save entries.<br>
|
|
48
|
-
Please contact your administrator.
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<template #tooltipContent>
|
|
52
|
-
Save entry
|
|
53
|
-
</template>
|
|
54
|
-
</AntActionButton>
|
|
55
|
-
</template>
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
withDefaults(defineProps<{
|
|
3
|
-
showDetail?: boolean,
|
|
4
|
-
}>(), {
|
|
5
|
-
showDetail: false,
|
|
6
|
-
});
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<div
|
|
11
|
-
class="flex w-full h-full"
|
|
12
|
-
data-e2e="crud"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
class="left-content h-full flex flex-col bg-neutral-300 gap-px overflow-hidden"
|
|
16
|
-
:class="{'w-[40rem]': showDetail, 'w-full': !showDetail}"
|
|
17
|
-
>
|
|
18
|
-
<div class="bg-white">
|
|
19
|
-
<slot name="search-section" />
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div class="bg-white flex-grow h-full overflow-hidden">
|
|
23
|
-
<slot name="table-section" />
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<div class="bg-white">
|
|
27
|
-
<slot name="table-nav-section" />
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<Transition name="right-content">
|
|
32
|
-
<div
|
|
33
|
-
v-if="showDetail"
|
|
34
|
-
class="flex flex-col gap-px border-l border-neutral-300 overflow-hidden"
|
|
35
|
-
:class="{'w-full': showDetail}"
|
|
36
|
-
>
|
|
37
|
-
<slot />
|
|
38
|
-
</div>
|
|
39
|
-
</Transition>
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<style scoped>
|
|
44
|
-
.left-content {
|
|
45
|
-
transition: width .5s ease-in-out, opacity .5s ease;
|
|
46
|
-
}
|
|
47
|
-
.right-content-enter-active {
|
|
48
|
-
transition: width .5s ease-in-out, opacity .5s ease .3s;
|
|
49
|
-
}
|
|
50
|
-
.right-content-enter-from {
|
|
51
|
-
width: 0;
|
|
52
|
-
opacity: 0;
|
|
53
|
-
}
|
|
54
|
-
.right-content-enter-to {
|
|
55
|
-
width: 100%;
|
|
56
|
-
opacity: 1;
|
|
57
|
-
}
|
|
58
|
-
.right-content-leave-active {
|
|
59
|
-
transition: width .5s ease-in-out, opacity .2s ease;
|
|
60
|
-
}
|
|
61
|
-
.right-content-leave-from {
|
|
62
|
-
width: 100%;
|
|
63
|
-
opacity: 1;
|
|
64
|
-
}
|
|
65
|
-
.right-content-leave-to {
|
|
66
|
-
width: 0;
|
|
67
|
-
opacity: 0;
|
|
68
|
-
}
|
|
69
|
-
</style>
|