@itguy614/clean-ui 0.1.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/dist/clean-ui.css +1 -0
- package/dist/clean-ui.js +11263 -0
- package/dist/clean-ui.umd.cjs +2 -0
- package/dist/components/CuiAccordion.vue.d.ts +36 -0
- package/dist/components/CuiAccordion.vue.d.ts.map +1 -0
- package/dist/components/CuiAccordionItem.vue.d.ts +31 -0
- package/dist/components/CuiAccordionItem.vue.d.ts.map +1 -0
- package/dist/components/CuiAlert.vue.d.ts +53 -0
- package/dist/components/CuiAlert.vue.d.ts.map +1 -0
- package/dist/components/CuiAvatar.vue.d.ts +37 -0
- package/dist/components/CuiAvatar.vue.d.ts.map +1 -0
- package/dist/components/CuiAvatarGroup.vue.d.ts +24 -0
- package/dist/components/CuiAvatarGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiBackdrop.vue.d.ts +29 -0
- package/dist/components/CuiBackdrop.vue.d.ts.map +1 -0
- package/dist/components/CuiBadge.vue.d.ts +45 -0
- package/dist/components/CuiBadge.vue.d.ts.map +1 -0
- package/dist/components/CuiBanner.vue.d.ts +45 -0
- package/dist/components/CuiBanner.vue.d.ts.map +1 -0
- package/dist/components/CuiBreadcrumb.vue.d.ts +22 -0
- package/dist/components/CuiBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/CuiBreadcrumbItem.vue.d.ts +23 -0
- package/dist/components/CuiBreadcrumbItem.vue.d.ts.map +1 -0
- package/dist/components/CuiButton.vue.d.ts +58 -0
- package/dist/components/CuiButton.vue.d.ts.map +1 -0
- package/dist/components/CuiButtonGroup.vue.d.ts +23 -0
- package/dist/components/CuiButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiCard.vue.d.ts +23 -0
- package/dist/components/CuiCard.vue.d.ts.map +1 -0
- package/dist/components/CuiCardBody.vue.d.ts +22 -0
- package/dist/components/CuiCardBody.vue.d.ts.map +1 -0
- package/dist/components/CuiCardFooter.vue.d.ts +22 -0
- package/dist/components/CuiCardFooter.vue.d.ts.map +1 -0
- package/dist/components/CuiCardHeader.vue.d.ts +25 -0
- package/dist/components/CuiCardHeader.vue.d.ts.map +1 -0
- package/dist/components/CuiCardMedia.vue.d.ts +30 -0
- package/dist/components/CuiCardMedia.vue.d.ts.map +1 -0
- package/dist/components/CuiCheckbox.vue.d.ts +48 -0
- package/dist/components/CuiCheckbox.vue.d.ts.map +1 -0
- package/dist/components/CuiCheckboxGroup.vue.d.ts +47 -0
- package/dist/components/CuiCheckboxGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiCodeBlock.vue.d.ts +32 -0
- package/dist/components/CuiCodeBlock.vue.d.ts.map +1 -0
- package/dist/components/CuiColorPicker.vue.d.ts +44 -0
- package/dist/components/CuiColorPicker.vue.d.ts.map +1 -0
- package/dist/components/CuiCombobox.vue.d.ts +89 -0
- package/dist/components/CuiCombobox.vue.d.ts.map +1 -0
- package/dist/components/CuiConfirmDialog.vue.d.ts +54 -0
- package/dist/components/CuiConfirmDialog.vue.d.ts.map +1 -0
- package/dist/components/CuiContainer.vue.d.ts +32 -0
- package/dist/components/CuiContainer.vue.d.ts.map +1 -0
- package/dist/components/CuiContextMenu.vue.d.ts +33 -0
- package/dist/components/CuiContextMenu.vue.d.ts.map +1 -0
- package/dist/components/CuiCopyButton.vue.d.ts +34 -0
- package/dist/components/CuiCopyButton.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGrid.vue.d.ts +133 -0
- package/dist/components/CuiDataGrid.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridActiveFilters.vue.d.ts +3 -0
- package/dist/components/CuiDataGridActiveFilters.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridBulkBar.vue.d.ts +17 -0
- package/dist/components/CuiDataGridBulkBar.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridCardView.vue.d.ts +19 -0
- package/dist/components/CuiDataGridCardView.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridColumnManager.vue.d.ts +3 -0
- package/dist/components/CuiDataGridColumnManager.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridFilterPanel.vue.d.ts +3 -0
- package/dist/components/CuiDataGridFilterPanel.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridPagination.vue.d.ts +7 -0
- package/dist/components/CuiDataGridPagination.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridSearch.vue.d.ts +3 -0
- package/dist/components/CuiDataGridSearch.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridTable.vue.d.ts +53 -0
- package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridToolbar.vue.d.ts +25 -0
- package/dist/components/CuiDataGridToolbar.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridViewManager.vue.d.ts +8 -0
- package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -0
- package/dist/components/CuiDataGridViewToggle.vue.d.ts +3 -0
- package/dist/components/CuiDataGridViewToggle.vue.d.ts.map +1 -0
- package/dist/components/CuiDatePicker.vue.d.ts +52 -0
- package/dist/components/CuiDatePicker.vue.d.ts.map +1 -0
- package/dist/components/CuiDateRangePicker.vue.d.ts +56 -0
- package/dist/components/CuiDateRangePicker.vue.d.ts.map +1 -0
- package/dist/components/CuiDivider.vue.d.ts +40 -0
- package/dist/components/CuiDivider.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdown.vue.d.ts +45 -0
- package/dist/components/CuiDropdown.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownCheckItem.vue.d.ts +26 -0
- package/dist/components/CuiDropdownCheckItem.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownDivider.vue.d.ts +3 -0
- package/dist/components/CuiDropdownDivider.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownHeader.vue.d.ts +13 -0
- package/dist/components/CuiDropdownHeader.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownItem.vue.d.ts +35 -0
- package/dist/components/CuiDropdownItem.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownMenu.vue.d.ts +19 -0
- package/dist/components/CuiDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownRadioGroup.vue.d.ts +21 -0
- package/dist/components/CuiDropdownRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownRadioItem.vue.d.ts +21 -0
- package/dist/components/CuiDropdownRadioItem.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownSub.vue.d.ts +26 -0
- package/dist/components/CuiDropdownSub.vue.d.ts.map +1 -0
- package/dist/components/CuiDropdownTrigger.vue.d.ts +13 -0
- package/dist/components/CuiDropdownTrigger.vue.d.ts.map +1 -0
- package/dist/components/CuiEmptyState.vue.d.ts +37 -0
- package/dist/components/CuiEmptyState.vue.d.ts.map +1 -0
- package/dist/components/CuiFieldset.vue.d.ts +36 -0
- package/dist/components/CuiFieldset.vue.d.ts.map +1 -0
- package/dist/components/CuiFileUpload.vue.d.ts +62 -0
- package/dist/components/CuiFileUpload.vue.d.ts.map +1 -0
- package/dist/components/CuiFlex.vue.d.ts +35 -0
- package/dist/components/CuiFlex.vue.d.ts.map +1 -0
- package/dist/components/CuiFlexItem.vue.d.ts +26 -0
- package/dist/components/CuiFlexItem.vue.d.ts.map +1 -0
- package/dist/components/CuiFormField.vue.d.ts +46 -0
- package/dist/components/CuiFormField.vue.d.ts.map +1 -0
- package/dist/components/CuiGrid.vue.d.ts +34 -0
- package/dist/components/CuiGrid.vue.d.ts.map +1 -0
- package/dist/components/CuiGridItem.vue.d.ts +24 -0
- package/dist/components/CuiGridItem.vue.d.ts.map +1 -0
- package/dist/components/CuiIcon.vue.d.ts +27 -0
- package/dist/components/CuiIcon.vue.d.ts.map +1 -0
- package/dist/components/CuiInput.vue.d.ts +68 -0
- package/dist/components/CuiInput.vue.d.ts.map +1 -0
- package/dist/components/CuiInputStepper.vue.d.ts +45 -0
- package/dist/components/CuiInputStepper.vue.d.ts.map +1 -0
- package/dist/components/CuiKbd.vue.d.ts +23 -0
- package/dist/components/CuiKbd.vue.d.ts.map +1 -0
- package/dist/components/CuiMaskedInput.vue.d.ts +171 -0
- package/dist/components/CuiMaskedInput.vue.d.ts.map +1 -0
- package/dist/components/CuiModal.vue.d.ts +59 -0
- package/dist/components/CuiModal.vue.d.ts.map +1 -0
- package/dist/components/CuiModalBody.vue.d.ts +22 -0
- package/dist/components/CuiModalBody.vue.d.ts.map +1 -0
- package/dist/components/CuiModalFooter.vue.d.ts +22 -0
- package/dist/components/CuiModalFooter.vue.d.ts.map +1 -0
- package/dist/components/CuiModalHeader.vue.d.ts +30 -0
- package/dist/components/CuiModalHeader.vue.d.ts.map +1 -0
- package/dist/components/CuiPagination.vue.d.ts +53 -0
- package/dist/components/CuiPagination.vue.d.ts.map +1 -0
- package/dist/components/CuiPopover.vue.d.ts +60 -0
- package/dist/components/CuiPopover.vue.d.ts.map +1 -0
- package/dist/components/CuiProgress.vue.d.ts +57 -0
- package/dist/components/CuiProgress.vue.d.ts.map +1 -0
- package/dist/components/CuiRadio.vue.d.ts +49 -0
- package/dist/components/CuiRadio.vue.d.ts.map +1 -0
- package/dist/components/CuiRadioGroup.vue.d.ts +57 -0
- package/dist/components/CuiRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiRating.vue.d.ts +50 -0
- package/dist/components/CuiRating.vue.d.ts.map +1 -0
- package/dist/components/CuiResizablePanels.vue.d.ts +43 -0
- package/dist/components/CuiResizablePanels.vue.d.ts.map +1 -0
- package/dist/components/CuiSelect.vue.d.ts +83 -0
- package/dist/components/CuiSelect.vue.d.ts.map +1 -0
- package/dist/components/CuiSkeleton.vue.d.ts +36 -0
- package/dist/components/CuiSkeleton.vue.d.ts.map +1 -0
- package/dist/components/CuiSlideover.vue.d.ts +63 -0
- package/dist/components/CuiSlideover.vue.d.ts.map +1 -0
- package/dist/components/CuiSlider.vue.d.ts +58 -0
- package/dist/components/CuiSlider.vue.d.ts.map +1 -0
- package/dist/components/CuiSpacer.vue.d.ts +15 -0
- package/dist/components/CuiSpacer.vue.d.ts.map +1 -0
- package/dist/components/CuiSpinner.vue.d.ts +27 -0
- package/dist/components/CuiSpinner.vue.d.ts.map +1 -0
- package/dist/components/CuiStack.vue.d.ts +29 -0
- package/dist/components/CuiStack.vue.d.ts.map +1 -0
- package/dist/components/CuiStepper.vue.d.ts +43 -0
- package/dist/components/CuiStepper.vue.d.ts.map +1 -0
- package/dist/components/CuiTab.vue.d.ts +31 -0
- package/dist/components/CuiTab.vue.d.ts.map +1 -0
- package/dist/components/CuiTable.vue.d.ts +44 -0
- package/dist/components/CuiTable.vue.d.ts.map +1 -0
- package/dist/components/CuiTableBody.vue.d.ts +19 -0
- package/dist/components/CuiTableBody.vue.d.ts.map +1 -0
- package/dist/components/CuiTableCell.vue.d.ts +34 -0
- package/dist/components/CuiTableCell.vue.d.ts.map +1 -0
- package/dist/components/CuiTableFoot.vue.d.ts +19 -0
- package/dist/components/CuiTableFoot.vue.d.ts.map +1 -0
- package/dist/components/CuiTableHead.vue.d.ts +19 -0
- package/dist/components/CuiTableHead.vue.d.ts.map +1 -0
- package/dist/components/CuiTableRow.vue.d.ts +22 -0
- package/dist/components/CuiTableRow.vue.d.ts.map +1 -0
- package/dist/components/CuiTabs.vue.d.ts +44 -0
- package/dist/components/CuiTabs.vue.d.ts.map +1 -0
- package/dist/components/CuiTagInput.vue.d.ts +77 -0
- package/dist/components/CuiTagInput.vue.d.ts.map +1 -0
- package/dist/components/CuiTextarea.vue.d.ts +53 -0
- package/dist/components/CuiTextarea.vue.d.ts.map +1 -0
- package/dist/components/CuiTimePicker.vue.d.ts +37 -0
- package/dist/components/CuiTimePicker.vue.d.ts.map +1 -0
- package/dist/components/CuiTimeline.vue.d.ts +22 -0
- package/dist/components/CuiTimeline.vue.d.ts.map +1 -0
- package/dist/components/CuiTimelineItem.vue.d.ts +34 -0
- package/dist/components/CuiTimelineItem.vue.d.ts.map +1 -0
- package/dist/components/CuiToast.vue.d.ts +59 -0
- package/dist/components/CuiToast.vue.d.ts.map +1 -0
- package/dist/components/CuiToastProvider.vue.d.ts +26 -0
- package/dist/components/CuiToastProvider.vue.d.ts.map +1 -0
- package/dist/components/CuiToggle.vue.d.ts +52 -0
- package/dist/components/CuiToggle.vue.d.ts.map +1 -0
- package/dist/components/CuiToggleGroup.vue.d.ts +47 -0
- package/dist/components/CuiToggleGroup.vue.d.ts.map +1 -0
- package/dist/components/CuiTooltip.vue.d.ts +52 -0
- package/dist/components/CuiTooltip.vue.d.ts.map +1 -0
- package/dist/components/CuiTransferList.vue.d.ts +68 -0
- package/dist/components/CuiTransferList.vue.d.ts.map +1 -0
- package/dist/components/CuiTreeNode.vue.d.ts +43 -0
- package/dist/components/CuiTreeNode.vue.d.ts.map +1 -0
- package/dist/components/CuiTreeView.vue.d.ts +65 -0
- package/dist/components/CuiTreeView.vue.d.ts.map +1 -0
- package/dist/components/accordion-context.d.ts +12 -0
- package/dist/components/accordion-context.d.ts.map +1 -0
- package/dist/components/breadcrumb-context.d.ts +6 -0
- package/dist/components/breadcrumb-context.d.ts.map +1 -0
- package/dist/components/checkbox-context.d.ts +11 -0
- package/dist/components/checkbox-context.d.ts.map +1 -0
- package/dist/components/data-grid-context.d.ts +52 -0
- package/dist/components/data-grid-context.d.ts.map +1 -0
- package/dist/components/dropdown-context.d.ts +35 -0
- package/dist/components/dropdown-context.d.ts.map +1 -0
- package/dist/components/multi-select-group-context.d.ts +16 -0
- package/dist/components/multi-select-group-context.d.ts.map +1 -0
- package/dist/components/radio-context.d.ts +16 -0
- package/dist/components/radio-context.d.ts.map +1 -0
- package/dist/components/table-context.d.ts +12 -0
- package/dist/components/table-context.d.ts.map +1 -0
- package/dist/components/tabs-context.d.ts +26 -0
- package/dist/components/tabs-context.d.ts.map +1 -0
- package/dist/components/toast-context.d.ts +47 -0
- package/dist/components/toast-context.d.ts.map +1 -0
- package/dist/components/toggle-context.d.ts +11 -0
- package/dist/components/toggle-context.d.ts.map +1 -0
- package/dist/composables/useBreakpoint.d.ts +10 -0
- package/dist/composables/useBreakpoint.d.ts.map +1 -0
- package/dist/composables/useClickOutside.d.ts +7 -0
- package/dist/composables/useClickOutside.d.ts.map +1 -0
- package/dist/composables/useCopyToClipboard.d.ts +5 -0
- package/dist/composables/useCopyToClipboard.d.ts.map +1 -0
- package/dist/composables/useDataGrid.d.ts +18 -0
- package/dist/composables/useDataGrid.d.ts.map +1 -0
- package/dist/composables/useDataGridInertia.d.ts +29 -0
- package/dist/composables/useDataGridInertia.d.ts.map +1 -0
- package/dist/composables/useDataGridViews.d.ts +60 -0
- package/dist/composables/useDataGridViews.d.ts.map +1 -0
- package/dist/composables/useLayoutContext.d.ts +36 -0
- package/dist/composables/useLayoutContext.d.ts.map +1 -0
- package/dist/composables/useOverlay.d.ts +27 -0
- package/dist/composables/useOverlay.d.ts.map +1 -0
- package/dist/composables/usePopover.d.ts +50 -0
- package/dist/composables/usePopover.d.ts.map +1 -0
- package/dist/composables/useScrollShadows.d.ts +50 -0
- package/dist/composables/useScrollShadows.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts +21 -0
- package/dist/composables/useTheme.d.ts.map +1 -0
- package/dist/composables/useToast.d.ts +17 -0
- package/dist/composables/useToast.d.ts.map +1 -0
- package/dist/index.d.ts +226 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types/data-grid.d.ts +102 -0
- package/dist/types/data-grid.d.ts.map +1 -0
- package/dist/types/grid.d.ts +9 -0
- package/dist/types/grid.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/color.d.ts +37 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/colorIconMap.d.ts +6 -0
- package/dist/utils/colorIconMap.d.ts.map +1 -0
- package/dist/utils/date.d.ts +36 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/responsive.d.ts +14 -0
- package/dist/utils/responsive.d.ts.map +1 -0
- package/dist/utils/sizing.d.ts +20 -0
- package/dist/utils/sizing.d.ts.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { nextTick } from "vue";
|
|
2
|
+
import type { ButtonColor } from "./CuiButton.vue";
|
|
3
|
+
import type { InputSize } from "./CuiInput.vue";
|
|
4
|
+
export interface MaskToken {
|
|
5
|
+
pattern: RegExp;
|
|
6
|
+
}
|
|
7
|
+
export interface CuiMaskedInputProps {
|
|
8
|
+
/** Raw value (no separators) */
|
|
9
|
+
modelValue?: string;
|
|
10
|
+
/** Mask pattern: # = digit, A = letter, * = alphanumeric, others are literal */
|
|
11
|
+
mask: string;
|
|
12
|
+
/** Custom token definitions, e.g. { X: { pattern: /[0-9a-fA-F]/ } } */
|
|
13
|
+
tokens?: Record<string, MaskToken>;
|
|
14
|
+
/** Character shown for unfilled positions */
|
|
15
|
+
fillChar?: string;
|
|
16
|
+
/** Placeholder text (shown when input is empty and not focused) */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Color role */
|
|
19
|
+
color?: ButtonColor;
|
|
20
|
+
/** Size */
|
|
21
|
+
size?: InputSize;
|
|
22
|
+
/** Show clear button */
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
/** Error state */
|
|
25
|
+
error?: boolean;
|
|
26
|
+
/** Error message */
|
|
27
|
+
errorMessage?: string;
|
|
28
|
+
/** Disabled */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Readonly */
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
/** Hide the component */
|
|
33
|
+
hidden?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare var __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
|
|
36
|
+
type __VLS_Slots = {} & {
|
|
37
|
+
prefix?: (props: typeof __VLS_13) => any;
|
|
38
|
+
} & {
|
|
39
|
+
suffix?: (props: typeof __VLS_15) => any;
|
|
40
|
+
} & {
|
|
41
|
+
'prefix-button'?: (props: typeof __VLS_17) => any;
|
|
42
|
+
} & {
|
|
43
|
+
'suffix-button'?: (props: typeof __VLS_19) => any;
|
|
44
|
+
};
|
|
45
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiMaskedInputProps, {
|
|
46
|
+
el: Readonly<import("vue").ShallowRef<({
|
|
47
|
+
$: import("vue").ComponentInternalInstance;
|
|
48
|
+
$data: {};
|
|
49
|
+
$props: {
|
|
50
|
+
readonly modelValue?: string | undefined;
|
|
51
|
+
readonly type?: import("./CuiInput.vue").InputType | undefined;
|
|
52
|
+
readonly placeholder?: string | undefined;
|
|
53
|
+
readonly color?: ButtonColor | undefined;
|
|
54
|
+
readonly size?: InputSize | undefined;
|
|
55
|
+
readonly clearable?: boolean | undefined;
|
|
56
|
+
readonly error?: boolean | undefined;
|
|
57
|
+
readonly errorMessage?: string | undefined;
|
|
58
|
+
readonly disabled?: boolean | undefined;
|
|
59
|
+
readonly readonly?: boolean | undefined;
|
|
60
|
+
readonly hidden?: boolean | undefined;
|
|
61
|
+
readonly onClear?: (() => any) | undefined;
|
|
62
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
64
|
+
$attrs: import("vue").Attrs;
|
|
65
|
+
$refs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
$slots: Readonly<{
|
|
69
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
72
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
73
|
+
$host: Element | null;
|
|
74
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string) => void);
|
|
75
|
+
$el: any;
|
|
76
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("./CuiInput.vue").CuiInputProps> & Readonly<{
|
|
77
|
+
onClear?: (() => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
el: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
81
|
+
focus: (opts?: FocusOptions) => void;
|
|
82
|
+
blur: () => void;
|
|
83
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
clear: () => any;
|
|
85
|
+
"update:modelValue": (value: string) => any;
|
|
86
|
+
}, string, {
|
|
87
|
+
size: InputSize;
|
|
88
|
+
color: ButtonColor;
|
|
89
|
+
hidden: boolean;
|
|
90
|
+
type: import("./CuiInput.vue").InputType;
|
|
91
|
+
error: boolean;
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
modelValue: string;
|
|
94
|
+
readonly: boolean;
|
|
95
|
+
clearable: boolean;
|
|
96
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
97
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
98
|
+
created?: (() => void) | (() => void)[];
|
|
99
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
100
|
+
mounted?: (() => void) | (() => void)[];
|
|
101
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
102
|
+
updated?: (() => void) | (() => void)[];
|
|
103
|
+
activated?: (() => void) | (() => void)[];
|
|
104
|
+
deactivated?: (() => void) | (() => void)[];
|
|
105
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
106
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
107
|
+
destroyed?: (() => void) | (() => void)[];
|
|
108
|
+
unmounted?: (() => void) | (() => void)[];
|
|
109
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
110
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
111
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
112
|
+
};
|
|
113
|
+
$forceUpdate: () => void;
|
|
114
|
+
$nextTick: typeof nextTick;
|
|
115
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
116
|
+
} & Readonly<{
|
|
117
|
+
size: InputSize;
|
|
118
|
+
color: ButtonColor;
|
|
119
|
+
hidden: boolean;
|
|
120
|
+
type: import("./CuiInput.vue").InputType;
|
|
121
|
+
error: boolean;
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
modelValue: string;
|
|
124
|
+
readonly: boolean;
|
|
125
|
+
clearable: boolean;
|
|
126
|
+
}> & Omit<Readonly<import("./CuiInput.vue").CuiInputProps> & Readonly<{
|
|
127
|
+
onClear?: (() => any) | undefined;
|
|
128
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
129
|
+
}>, "el" | "focus" | "blur" | ("size" | "color" | "hidden" | "type" | "error" | "disabled" | "modelValue" | "readonly" | "clearable")> & {
|
|
130
|
+
el: HTMLInputElement | null;
|
|
131
|
+
focus: (opts?: FocusOptions) => void;
|
|
132
|
+
blur: () => void;
|
|
133
|
+
} & {} & import("vue").ComponentCustomProperties & {} & {
|
|
134
|
+
$slots: {
|
|
135
|
+
'prefix-button'?: (props: {}) => any;
|
|
136
|
+
} & {
|
|
137
|
+
prefix?: (props: {}) => any;
|
|
138
|
+
} & {
|
|
139
|
+
suffix?: (props: {}) => any;
|
|
140
|
+
} & {
|
|
141
|
+
'suffix-button'?: (props: {}) => any;
|
|
142
|
+
};
|
|
143
|
+
}) | null>>;
|
|
144
|
+
formattedValue: import("vue").ComputedRef<string>;
|
|
145
|
+
focus: () => any;
|
|
146
|
+
blur: () => any;
|
|
147
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
148
|
+
"update:modelValue": (value: string) => any;
|
|
149
|
+
"update:formattedValue": (value: string) => any;
|
|
150
|
+
}, string, import("vue").PublicProps, Readonly<CuiMaskedInputProps> & Readonly<{
|
|
151
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
152
|
+
"onUpdate:formattedValue"?: ((value: string) => any) | undefined;
|
|
153
|
+
}>, {
|
|
154
|
+
size: InputSize;
|
|
155
|
+
color: ButtonColor;
|
|
156
|
+
hidden: boolean;
|
|
157
|
+
error: boolean;
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
modelValue: string;
|
|
160
|
+
readonly: boolean;
|
|
161
|
+
clearable: boolean;
|
|
162
|
+
fillChar: string;
|
|
163
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
164
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
165
|
+
export default _default;
|
|
166
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
167
|
+
new (): {
|
|
168
|
+
$slots: S;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=CuiMaskedInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiMaskedInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiMaskedInput.vue"],"names":[],"mappings":"AAAA,OA8aO,EAAwB,QAAQ,EAAkB,MAAM,KAAK,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,IAAI,E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DAChB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAhfvB,SAAS;WAFR,WAAW;YAcV,OAAO;WARR,OAAO;cAIJ,OAAO;gBApBL,MAAM;cAsBR,OAAO;eARN,OAAO;cARR,MAAM;6EAygBjB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { BackdropBlur } from "./CuiBackdrop.vue";
|
|
2
|
+
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
3
|
+
export interface CuiModalProps {
|
|
4
|
+
/** Controls modal visibility */
|
|
5
|
+
open?: boolean;
|
|
6
|
+
/** Modal width — named size or custom CSS value */
|
|
7
|
+
size?: ModalSize | string;
|
|
8
|
+
/** Title text (rendered in header) */
|
|
9
|
+
title?: string;
|
|
10
|
+
/** Prevent closing via Escape and backdrop click */
|
|
11
|
+
persistent?: boolean;
|
|
12
|
+
/** Hide the X close button */
|
|
13
|
+
noCloseButton?: boolean;
|
|
14
|
+
/** Allow opening on top of another modal */
|
|
15
|
+
allowNested?: boolean;
|
|
16
|
+
/** Backdrop opacity */
|
|
17
|
+
backdropOpacity?: number;
|
|
18
|
+
/** Backdrop blur */
|
|
19
|
+
backdropBlur?: BackdropBlur;
|
|
20
|
+
/** Backdrop color */
|
|
21
|
+
backdropColor?: string;
|
|
22
|
+
/** Backdrop image URL */
|
|
23
|
+
backdropImage?: string;
|
|
24
|
+
/** Backdrop gradient */
|
|
25
|
+
backdropGradient?: string;
|
|
26
|
+
/** Hide the component */
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare var __VLS_22: {}, __VLS_24: {};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
default?: (props: typeof __VLS_22) => any;
|
|
32
|
+
} & {
|
|
33
|
+
default?: (props: typeof __VLS_24) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
close: () => any;
|
|
37
|
+
"update:open": (value: boolean) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<CuiModalProps> & Readonly<{
|
|
39
|
+
onClose?: (() => any) | undefined;
|
|
40
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
size: ModalSize | string;
|
|
43
|
+
hidden: boolean;
|
|
44
|
+
open: boolean;
|
|
45
|
+
persistent: boolean;
|
|
46
|
+
allowNested: boolean;
|
|
47
|
+
noCloseButton: boolean;
|
|
48
|
+
backdropOpacity: number;
|
|
49
|
+
backdropBlur: BackdropBlur;
|
|
50
|
+
backdropColor: string;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=CuiModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiModal.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,gCAAgC;IACh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CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CuiModalBodyProps {
|
|
2
|
+
/** Remove default padding */
|
|
3
|
+
noPadding?: boolean;
|
|
4
|
+
/** Hide the component */
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiModalBodyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CuiModalBodyProps> & Readonly<{}>, {
|
|
12
|
+
hidden: boolean;
|
|
13
|
+
noPadding: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=CuiModalBody.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiModalBody.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiModalBody.vue"],"names":[],"mappings":"AA+DA,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA2DD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB/C,QAAA,MAAM,eAAe;YAvFV,OAAO;eAFJ,OAAO;6EAgGnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CuiModalFooterProps {
|
|
2
|
+
/** Align footer content */
|
|
3
|
+
align?: "left" | "right" | "center" | "between";
|
|
4
|
+
/** Hide the component */
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiModalFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CuiModalFooterProps> & Readonly<{}>, {
|
|
12
|
+
hidden: boolean;
|
|
13
|
+
align: "left" | "right" | "center" | "between";
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=CuiModalFooter.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiModalFooter.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiModalFooter.vue"],"names":[],"mappings":"AAyCA,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChD,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA4CD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqB/C,QAAA,MAAM,eAAe;YApEV,OAAO;WAFR,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS;6EA6E/C,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CuiModalHeaderProps {
|
|
2
|
+
/** Convenience: title text */
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Hide the close button */
|
|
5
|
+
noCloseButton?: boolean;
|
|
6
|
+
/** Hide the component */
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiModalHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
close: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<CuiModalHeaderProps> & Readonly<{
|
|
18
|
+
onClose?: (() => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
hidden: boolean;
|
|
21
|
+
noCloseButton: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=CuiModalHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiModalHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiModalHeader.vue"],"names":[],"mappings":"AAwFA,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA4GD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;;;;;YAvIV,OAAO;mBAFA,OAAO;6EAiJvB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ButtonColor } from "./CuiButton.vue";
|
|
2
|
+
export interface LaravelPaginatorMeta {
|
|
3
|
+
current_page: number;
|
|
4
|
+
last_page: number;
|
|
5
|
+
per_page: number;
|
|
6
|
+
total: number;
|
|
7
|
+
from: number | null;
|
|
8
|
+
to: number | null;
|
|
9
|
+
}
|
|
10
|
+
export type PaginationSize = "sm" | "md";
|
|
11
|
+
export interface CuiPaginationProps {
|
|
12
|
+
/** Laravel paginator meta object */
|
|
13
|
+
meta?: LaravelPaginatorMeta;
|
|
14
|
+
/** Current page (override or standalone) */
|
|
15
|
+
currentPage?: number;
|
|
16
|
+
/** Total pages (override or standalone) */
|
|
17
|
+
totalPages?: number;
|
|
18
|
+
/** Items per page (override or standalone) */
|
|
19
|
+
perPage?: number;
|
|
20
|
+
/** Total item count (override or standalone) */
|
|
21
|
+
total?: number;
|
|
22
|
+
/** Options for per-page selector */
|
|
23
|
+
perPageOptions?: number[];
|
|
24
|
+
/** Hide the per-page selector */
|
|
25
|
+
hidePerPage?: boolean;
|
|
26
|
+
/** Hide the "Showing X to Y of Z" info text */
|
|
27
|
+
hideInfo?: boolean;
|
|
28
|
+
/** Color role for active page */
|
|
29
|
+
color?: ButtonColor;
|
|
30
|
+
/** Size */
|
|
31
|
+
size?: PaginationSize;
|
|
32
|
+
/** Max page buttons to show before truncating */
|
|
33
|
+
maxButtons?: number;
|
|
34
|
+
/** Hide the component */
|
|
35
|
+
hidden?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: import("vue").DefineComponent<CuiPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:currentPage": (value: number) => any;
|
|
39
|
+
"update:perPage": (value: number) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<CuiPaginationProps> & Readonly<{
|
|
41
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
42
|
+
"onUpdate:perPage"?: ((value: number) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
size: PaginationSize;
|
|
45
|
+
color: ButtonColor;
|
|
46
|
+
hidden: boolean;
|
|
47
|
+
perPageOptions: number[];
|
|
48
|
+
hidePerPage: boolean;
|
|
49
|
+
hideInfo: boolean;
|
|
50
|
+
maxButtons: number;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
export default _default;
|
|
53
|
+
//# sourceMappingURL=CuiPagination.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiPagination.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiPagination.vue"],"names":[],"mappings":"AA6VA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,oCAAoC;IACpC,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,WAAW;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;;;;;;;;UALQ,cAAc;WAFb,WAAW;YAMV,OAAO;oBAZC,MAAM,EAAE;iBAEX,OAAO;cAEV,OAAO;gBAML,MAAM;;AA6TrB,wBAQG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type PopoverPlacement } from "../composables/usePopover";
|
|
2
|
+
export type PopoverTrigger = "click" | "hover" | "focus" | "hover-focus";
|
|
3
|
+
export interface CuiPopoverProps {
|
|
4
|
+
/** Optional header title — renders header bar with close button */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Preferred placement */
|
|
7
|
+
placement?: PopoverPlacement;
|
|
8
|
+
/** How the popover is triggered */
|
|
9
|
+
trigger?: PopoverTrigger;
|
|
10
|
+
/** Delay before showing (ms) */
|
|
11
|
+
showDelay?: number;
|
|
12
|
+
/** Delay before hiding (ms) */
|
|
13
|
+
hideDelay?: number;
|
|
14
|
+
/** Hide the arrow */
|
|
15
|
+
noArrow?: boolean;
|
|
16
|
+
/** Distance from trigger (px) */
|
|
17
|
+
offset?: number;
|
|
18
|
+
/** Fixed width (e.g., "320px") */
|
|
19
|
+
width?: string;
|
|
20
|
+
/** Manual visibility control */
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
/** Prevents showing */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Show close button in header */
|
|
25
|
+
closable?: boolean;
|
|
26
|
+
/** Hide the component */
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare var __VLS_1: {}, __VLS_7: {}, __VLS_12: {}, __VLS_14: {};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
default?: (props: typeof __VLS_1) => any;
|
|
32
|
+
} & {
|
|
33
|
+
header?: (props: typeof __VLS_7) => any;
|
|
34
|
+
} & {
|
|
35
|
+
content?: (props: typeof __VLS_12) => any;
|
|
36
|
+
} & {
|
|
37
|
+
footer?: (props: typeof __VLS_14) => any;
|
|
38
|
+
};
|
|
39
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
"update:visible": (value: boolean) => any;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<CuiPopoverProps> & Readonly<{
|
|
42
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
hidden: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
placement: PopoverPlacement;
|
|
47
|
+
trigger: PopoverTrigger;
|
|
48
|
+
showDelay: number;
|
|
49
|
+
hideDelay: number;
|
|
50
|
+
noArrow: boolean;
|
|
51
|
+
closable: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=CuiPopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiPopover.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiPopover.vue"],"names":[],"mappings":"AAoQA,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAI9E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AAEzE,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,mCAAmC;IACnC,OAAO,CAAC,EAAE,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O;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ButtonColor } from "./CuiButton.vue";
|
|
2
|
+
export type ProgressVariant = "bar" | "circle";
|
|
3
|
+
export type ProgressSize = "sm" | "md" | "lg";
|
|
4
|
+
export type ProgressAnimation = "none" | "stripe" | "shimmer";
|
|
5
|
+
export interface CuiProgressProps {
|
|
6
|
+
/** Current value (0 to max) */
|
|
7
|
+
value?: number;
|
|
8
|
+
/** Maximum value */
|
|
9
|
+
max?: number;
|
|
10
|
+
/** Visual variant */
|
|
11
|
+
variant?: ProgressVariant;
|
|
12
|
+
/** Color role */
|
|
13
|
+
color?: ButtonColor;
|
|
14
|
+
/** Size */
|
|
15
|
+
size?: ProgressSize;
|
|
16
|
+
/** Show percentage label */
|
|
17
|
+
showLabel?: boolean;
|
|
18
|
+
/** Unknown progress — animated indicator */
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
/** Fill animation (bar variant only) */
|
|
21
|
+
animation?: ProgressAnimation;
|
|
22
|
+
/** Hide the component */
|
|
23
|
+
hidden?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare var __VLS_1: {
|
|
26
|
+
value: number;
|
|
27
|
+
max: number;
|
|
28
|
+
percent: number;
|
|
29
|
+
}, __VLS_3: {
|
|
30
|
+
value: number;
|
|
31
|
+
max: number;
|
|
32
|
+
percent: number;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
label?: (props: typeof __VLS_1) => any;
|
|
36
|
+
} & {
|
|
37
|
+
label?: (props: typeof __VLS_3) => any;
|
|
38
|
+
};
|
|
39
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CuiProgressProps> & Readonly<{}>, {
|
|
40
|
+
size: ProgressSize;
|
|
41
|
+
color: ButtonColor;
|
|
42
|
+
hidden: boolean;
|
|
43
|
+
variant: ProgressVariant;
|
|
44
|
+
value: number;
|
|
45
|
+
indeterminate: boolean;
|
|
46
|
+
animation: ProgressAnimation;
|
|
47
|
+
max: number;
|
|
48
|
+
showLabel: boolean;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=CuiProgress.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiProgress.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiProgress.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,iBAAiB;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wCAAwC;IACxC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAkMD,QAAA,IAAI,OAAO;;;;CAAU,EAAE,OAAO;;;;CAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAwB7C,QAAA,MAAM,eAAe;UAtOZ,YAAY;WAFX,WAAW;YAUV,OAAO;aAZN,eAAe;WAJjB,MAAM;mBAYE,OAAO;eAEX,iBAAiB;SAZvB,MAAM;eAQA,OAAO;6EA2OnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ButtonColor } from "./CuiButton.vue";
|
|
2
|
+
export interface CuiRadioProps {
|
|
3
|
+
/** The value this radio represents */
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
/** v-model binding (standalone mode) */
|
|
6
|
+
modelValue?: string | number | boolean;
|
|
7
|
+
/** Label text (or use default slot) */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Description text (or use #description slot) */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Color role — overrides group color if inside a group */
|
|
12
|
+
color?: ButtonColor;
|
|
13
|
+
/** Name attribute (standalone mode) */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** Disabled state */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Readonly state */
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
/** Hide the component */
|
|
20
|
+
hidden?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
default?: (props: typeof __VLS_1) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_3) => any;
|
|
27
|
+
} & {
|
|
28
|
+
description?: (props: typeof __VLS_5) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiRadioProps, {
|
|
31
|
+
el: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
32
|
+
focus: () => void | undefined;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<CuiRadioProps> & Readonly<{
|
|
36
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
hidden: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
readonly: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=CuiRadio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiRadio.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiRadio.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,KAAK,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-context";
|
|
3
|
+
export type RadioDirection = "horizontal" | "vertical" | "auto";
|
|
4
|
+
export interface CuiRadioGroupProps {
|
|
5
|
+
/** Selected value */
|
|
6
|
+
modelValue?: string | number | boolean;
|
|
7
|
+
/** Shared name attribute for all radios */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Color role (inherited by children) */
|
|
10
|
+
color?: ButtonColor;
|
|
11
|
+
/** Layout direction — auto: horizontal for ≤2 options, vertical for 3+ */
|
|
12
|
+
direction?: RadioDirection;
|
|
13
|
+
/** Visual variant — "default" for classic radios, "buttons" for button group */
|
|
14
|
+
variant?: RadioGroupVariant;
|
|
15
|
+
/** Button size when variant="buttons" */
|
|
16
|
+
size?: ButtonSize;
|
|
17
|
+
/** Disable all radios */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Make all radios readonly */
|
|
20
|
+
readonly?: boolean;
|
|
21
|
+
/** Show error state */
|
|
22
|
+
error?: boolean;
|
|
23
|
+
/** Error message displayed below the group */
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
/** Accessible label for the group */
|
|
26
|
+
label?: string;
|
|
27
|
+
/** Hide the component */
|
|
28
|
+
hidden?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare var __VLS_4: {}, __VLS_6: {};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
default?: (props: typeof __VLS_4) => any;
|
|
33
|
+
} & {
|
|
34
|
+
default?: (props: typeof __VLS_6) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_component: import("vue").DefineComponent<CuiRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<CuiRadioGroupProps> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
size: ButtonSize;
|
|
42
|
+
color: ButtonColor;
|
|
43
|
+
hidden: boolean;
|
|
44
|
+
error: boolean;
|
|
45
|
+
variant: RadioGroupVariant;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
direction: RadioDirection;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=CuiRadioGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CuiRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiRadioGroup.vue"],"names":[],"mappings":"AA2LA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,qBAAqB;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,gFAAgF;IAChF,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,yCAAyC;IACzC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAA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