@vueland/ui 0.0.1 → 0.0.3
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/LICENSE +21 -0
- package/README.md +147 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/CApp/CApp.js +4 -5
- package/dist/components/CAutocomplete/CAutocomplete.js +200 -91
- package/dist/components/CBtn/CBtn.js +26 -27
- package/dist/components/CCheckbox/CCheckbox.js +40 -58
- package/dist/components/CCheckbox/CheckboxElement.js +96 -0
- package/dist/components/CCheckbox/index2.js +5 -0
- package/dist/components/CChip/CChip.js +13 -0
- package/dist/components/CDateInput/CDateInput.js +245 -0
- package/dist/components/CDateInput/index.js +5 -0
- package/dist/components/CDatePicker/CDatePicker.js +324 -0
- package/dist/components/CDatePicker/CDatePickerDates.js +300 -0
- package/dist/components/CDatePicker/CDatePickerHeader.js +62 -0
- package/dist/components/CDatePicker/CDatePickerMonths.js +114 -0
- package/dist/components/CDatePicker/CDatePickerYears.js +143 -0
- package/dist/components/CDatePicker/helpers.js +17 -0
- package/dist/components/CDatePicker/index.js +14 -0
- package/dist/components/CDatePicker/index2.js +5 -0
- package/dist/components/CDatePicker/index3.js +5 -0
- package/dist/components/CDatePicker/index4.js +5 -0
- package/dist/components/CDatePicker/index5.js +5 -0
- package/dist/components/CDatePicker/index6.js +5 -0
- package/dist/components/CDatePicker/locales/en.json.js +44 -0
- package/dist/components/CDatePicker/locales/index.js +9 -0
- package/dist/components/CDatePicker/locales/ru.json.js +44 -0
- package/dist/components/CDatePicker/utils.js +20 -0
- package/dist/components/CDialog/CDialog.js +2 -4
- package/dist/components/CField/CField.js +160 -28
- package/dist/components/CForm/CForm.js +38 -22
- package/dist/components/CGrid/CCol.js +1 -3
- package/dist/components/CGrid/CRow.js +5 -7
- package/dist/components/CIcon/CIcon.js +3 -3
- package/dist/components/CInput/CInput.js +119 -109
- package/dist/components/CList/CList.js +106 -34
- package/dist/components/CList/CListItem.js +44 -14
- package/dist/components/CMenu/CMenu.js +54 -55
- package/dist/components/COverlay/COverlay.js +6 -5
- package/dist/components/CRadio/CRadio.js +11 -5
- package/dist/components/CRadio/CRadioGroup.js +10 -0
- package/dist/components/CSelect/CSelect.js +180 -71
- package/dist/components/CSelectControl/CSelectControl.js +14 -2
- package/dist/components/CTextField/CTextField.js +79 -52
- package/dist/components/CTextField/index.js +2 -2
- package/dist/components/CTextField/index2.js +5 -0
- package/dist/components/CToolbar/CToolbar.js +1 -3
- package/dist/components/CTooltip/CTooltip.js +13 -11
- package/dist/components/CTooltip/index.js +2 -2
- package/dist/components/CTooltip/index2.js +5 -0
- package/dist/components/global-components.d.ts +44 -0
- package/dist/components/index.d.ts +841 -504
- package/dist/components/index.js +11 -7
- package/dist/composables/index.d.ts +384 -235
- package/dist/composables/index.js +22 -14
- package/dist/composables/use-activator.js +15 -25
- package/dist/composables/{use-app-scroll.js → use-application-scroll.js} +4 -8
- package/dist/composables/use-aria-activator.js +15 -0
- package/dist/composables/use-aria-dialog.js +16 -0
- package/dist/composables/use-aria-field.js +18 -0
- package/dist/composables/use-aria-listbox.js +14 -0
- package/dist/composables/use-aria-toggle.js +15 -0
- package/dist/composables/use-auto-position.js +206 -118
- package/dist/composables/use-autocomplete.js +21 -19
- package/dist/composables/use-breakpoints.js +8 -0
- package/dist/composables/use-button-presets.js +3 -7
- package/dist/composables/use-delay-actions.js +8 -2
- package/dist/composables/use-display.js +26 -18
- package/dist/composables/use-field-presets.js +82 -0
- package/dist/composables/use-icon.js +106 -34
- package/dist/composables/use-id.js +9 -0
- package/dist/composables/use-input-presets.js +88 -19
- package/dist/composables/use-keyboard.js +52 -0
- package/dist/composables/use-list.js +8 -0
- package/dist/composables/use-menu.js +8 -0
- package/dist/composables/use-normalized-items.js +22 -0
- package/dist/composables/use-overlay-stack.js +4 -1
- package/dist/composables/use-presets.js +2 -2
- package/dist/composables/use-select-control.js +8 -0
- package/dist/composables/use-selected-chips.js +40 -0
- package/dist/composables/use-validate.js +32 -24
- package/dist/constants/aria.js +32 -0
- package/dist/constants/attrs.js +21 -0
- package/dist/constants/icons.js +55 -8
- package/dist/constants/index.d.ts +187 -53
- package/dist/constants/index.js +3 -1
- package/dist/constants/provide-keys.js +2 -1
- package/dist/css/lib.css +1 -0
- package/dist/css/utils/_borders.css +1 -0
- package/dist/css/utils/_borders.js +3 -0
- package/dist/css/utils/_display.css +1 -1
- package/dist/css/utils/_flex.css +1 -1
- package/dist/css/utils/_grid.css +1 -0
- package/dist/css/utils/_grid.js +3 -0
- package/dist/css/utils/_helpers.css +1 -1
- package/dist/css/utils/_positions.css +1 -1
- package/dist/css/utils/_radius.css +1 -1
- package/dist/css/utils/_sizing.css +1 -1
- package/dist/css/utils/_spaces.css +1 -1
- package/dist/css/utils/_text.css +1 -1
- package/dist/css/utils/_transitions.css +1 -1
- package/dist/css/utils/_typography.css +1 -1
- package/dist/enums/IconName.js +13 -0
- package/dist/enums/index.d.ts +15 -2
- package/dist/helpers/preset.js +11 -0
- package/dist/helpers/theme.js +41 -0
- package/dist/library.js +31 -9
- package/dist/resolvers/font-awesome.js +30 -0
- package/dist/resolvers/index.d.ts +48 -0
- package/dist/resolvers/index.js +1 -0
- package/dist/scss/lib.scss +26 -0
- package/dist/scss/maps/colors-map.scss +342 -0
- package/dist/scss/maps/elevations-map.scss +88 -0
- package/dist/scss/maps/flexes-map.scss +24 -0
- package/dist/scss/maps/grids.scss +23 -0
- package/dist/scss/modules/_global-vars.scss +88 -0
- package/dist/scss/ress.scss +281 -0
- package/dist/scss/styles.scss +20 -0
- package/dist/scss/utils/_borders.scss +28 -0
- package/dist/scss/utils/_colors.scss +86 -0
- package/dist/scss/utils/_cursor.scss +140 -0
- package/dist/scss/utils/_display.scss +32 -0
- package/dist/scss/utils/_elevations.scss +15 -0
- package/dist/scss/utils/_flex.scss +137 -0
- package/dist/scss/utils/_grid.scss +173 -0
- package/dist/scss/utils/_helpers.scss +47 -0
- package/dist/scss/utils/_opacity.scss +13 -0
- package/dist/scss/utils/_overflow.scss +51 -0
- package/dist/scss/utils/_positions.scss +42 -0
- package/dist/scss/utils/_radius.scss +41 -0
- package/dist/scss/utils/_sizing.scss +40 -0
- package/dist/scss/utils/_spaces.scss +164 -0
- package/dist/scss/utils/_text.scss +76 -0
- package/dist/scss/utils/_transitions.scss +98 -0
- package/dist/scss/utils/_typography.scss +81 -0
- package/dist/styles.css +1 -1
- package/dist/temp-types/src/components/CApp/CApp.vue.d.ts +2 -4
- package/dist/temp-types/src/components/CApp/CApp.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CApp/types.d.ts +4 -0
- package/dist/temp-types/src/components/CApp/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CAutocomplete/CAutocomplete.vue.d.ts +7 -2
- package/dist/temp-types/src/components/CAutocomplete/CAutocomplete.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CAutocomplete/types.d.ts +16 -6
- package/dist/temp-types/src/components/CAutocomplete/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CBtn/CBtn.vue.d.ts +5 -1
- package/dist/temp-types/src/components/CBtn/CBtn.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CBtn/index.d.ts +1 -0
- package/dist/temp-types/src/components/CBtn/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/CBtn/types.d.ts +1 -0
- package/dist/temp-types/src/components/CBtn/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CCheckbox/CCheckbox.vue.d.ts +2 -6
- package/dist/temp-types/src/components/CCheckbox/CCheckbox.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CCheckbox/CheckboxElement.vue.d.ts +32 -0
- package/dist/temp-types/src/components/CCheckbox/CheckboxElement.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CCheckbox/types.d.ts +7 -4
- package/dist/temp-types/src/components/CCheckbox/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CChip/CChip.vue.d.ts +13 -0
- package/dist/temp-types/src/components/CChip/CChip.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CChip/index.d.ts +2 -0
- package/dist/temp-types/src/components/CChip/index.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDateInput/CDateInput.vue.d.ts +61 -0
- package/dist/temp-types/src/components/CDateInput/CDateInput.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDateInput/index.d.ts +3 -0
- package/dist/temp-types/src/components/CDateInput/index.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePicker.vue.d.ts +82 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePicker.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerDates.vue.d.ts +60 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerDates.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerHeader.vue.d.ts +27 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerHeader.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerMonths.vue.d.ts +40 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerMonths.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerYears.vue.d.ts +34 -0
- package/dist/temp-types/src/components/CDatePicker/CDatePickerYears.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/helpers.d.ts +4 -0
- package/dist/temp-types/src/components/CDatePicker/helpers.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/index.d.ts +6 -0
- package/dist/temp-types/src/components/CDatePicker/index.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/locales/index.d.ts +7 -0
- package/dist/temp-types/src/components/CDatePicker/locales/index.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/types.d.ts +22 -0
- package/dist/temp-types/src/components/CDatePicker/types.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDatePicker/utils.d.ts +8 -0
- package/dist/temp-types/src/components/CDatePicker/utils.d.ts.map +1 -0
- package/dist/temp-types/src/components/CDialog/CDialog.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CDialog/CDialog.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CDialog/CDialogsStack.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CDialog/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CField/CField.vue.d.ts +26 -10
- package/dist/temp-types/src/components/CField/CField.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CField/index.d.ts +1 -0
- package/dist/temp-types/src/components/CField/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/CField/types.d.ts +22 -0
- package/dist/temp-types/src/components/CField/types.d.ts.map +1 -0
- package/dist/temp-types/src/components/CForm/CForm.vue.d.ts +10 -8
- package/dist/temp-types/src/components/CForm/CForm.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CForm/types.d.ts +13 -3
- package/dist/temp-types/src/components/CForm/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CGrid/CCol.d.ts.map +1 -1
- package/dist/temp-types/src/components/CGrid/CRow.d.ts +1 -1
- package/dist/temp-types/src/components/CGrid/CRow.d.ts.map +1 -1
- package/dist/temp-types/src/components/CGrid/index.d.ts +1 -1
- package/dist/temp-types/src/components/CIcon/CIcon.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CIcon/types.d.ts +1 -2
- package/dist/temp-types/src/components/CIcon/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CInput/CInput.vue.d.ts +23 -7
- package/dist/temp-types/src/components/CInput/CInput.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CInput/types.d.ts +42 -28
- package/dist/temp-types/src/components/CInput/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CLabel/CLabel.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/CList.vue.d.ts +7 -1
- package/dist/temp-types/src/components/CList/CList.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/CListItem.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/types.d.ts +18 -1
- package/dist/temp-types/src/components/CList/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CMenu/CMenu.vue.d.ts +6 -6
- package/dist/temp-types/src/components/CMenu/CMenu.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CMenu/types.d.ts +2 -2
- package/dist/temp-types/src/components/CMenu/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/COverlay/COverlay.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CRadio/CRadio.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CRadio/CRadioGroup.vue.d.ts +13 -0
- package/dist/temp-types/src/components/CRadio/CRadioGroup.vue.d.ts.map +1 -0
- package/dist/temp-types/src/components/CRadio/index.d.ts +1 -0
- package/dist/temp-types/src/components/CRadio/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/CScrim/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/CSelect/CSelect.vue.d.ts +7 -2
- package/dist/temp-types/src/components/CSelect/CSelect.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CSelect/types.d.ts +16 -6
- package/dist/temp-types/src/components/CSelect/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CSelectControl/CSelectControl.vue.d.ts +5 -1
- package/dist/temp-types/src/components/CSelectControl/CSelectControl.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTextField/CTextField.vue.d.ts +19 -17
- package/dist/temp-types/src/components/CTextField/CTextField.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTextField/index.d.ts +10 -1
- package/dist/temp-types/src/components/CTextField/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTextField/types.d.ts +16 -0
- package/dist/temp-types/src/components/CTextField/types.d.ts.map +1 -0
- package/dist/temp-types/src/components/CToolbar/CToolbar.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTooltip/CTooltip.vue.d.ts +3 -1
- package/dist/temp-types/src/components/CTooltip/CTooltip.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTooltip/index.d.ts +7 -1
- package/dist/temp-types/src/components/CTooltip/index.d.ts.map +1 -1
- package/dist/temp-types/src/components/index.d.ts +17 -15
- package/dist/temp-types/src/components/index.d.ts.map +1 -1
- package/dist/temp-types/src/composables/index.d.ts +22 -14
- package/dist/temp-types/src/composables/index.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-activator.d.ts +4 -2
- package/dist/temp-types/src/composables/use-activator.d.ts.map +1 -1
- package/dist/temp-types/src/composables/{use-app-scroll.d.ts → use-application-scroll.d.ts} +2 -2
- package/dist/temp-types/src/composables/use-application-scroll.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-application.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-aria-activator.d.ts +8 -0
- package/dist/temp-types/src/composables/use-aria-activator.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-dialog.d.ts +9 -0
- package/dist/temp-types/src/composables/use-aria-dialog.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-field.d.ts +13 -0
- package/dist/temp-types/src/composables/use-aria-field.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-listbox.d.ts +8 -0
- package/dist/temp-types/src/composables/use-aria-listbox.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-toggle.d.ts +11 -0
- package/dist/temp-types/src/composables/use-aria-toggle.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-auto-position.d.ts +12 -9
- package/dist/temp-types/src/composables/use-auto-position.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-autocomplete.d.ts +9 -4
- package/dist/temp-types/src/composables/use-autocomplete.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-breakpoints.d.ts +1 -0
- package/dist/temp-types/src/composables/use-breakpoints.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-button-presets.d.ts +2 -2
- package/dist/temp-types/src/composables/use-button-presets.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-core.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-delay-actions.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-dialogs-stack.d.ts +3 -3
- package/dist/temp-types/src/composables/use-dialogs-stack.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-display.d.ts +29 -55
- package/dist/temp-types/src/composables/use-display.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-effect.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-field-presets.d.ts +12 -0
- package/dist/temp-types/src/composables/use-field-presets.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-form.d.ts +1 -1
- package/dist/temp-types/src/composables/use-form.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-icon.d.ts +32 -4
- package/dist/temp-types/src/composables/use-icon.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-id.d.ts +6 -0
- package/dist/temp-types/src/composables/use-id.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-input-presets.d.ts +6 -7
- package/dist/temp-types/src/composables/use-input-presets.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-keyboard.d.ts +11 -0
- package/dist/temp-types/src/composables/use-keyboard.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-list.d.ts +3 -0
- package/dist/temp-types/src/composables/use-list.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-menu.d.ts +2 -0
- package/dist/temp-types/src/composables/use-menu.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-normalized-items.d.ts +18 -0
- package/dist/temp-types/src/composables/use-normalized-items.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-overlay-stack.d.ts +1 -0
- package/dist/temp-types/src/composables/use-overlay-stack.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-presets.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-select-control.d.ts +2 -0
- package/dist/temp-types/src/composables/use-select-control.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-selected-chips.d.ts +16 -0
- package/dist/temp-types/src/composables/use-selected-chips.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-toggle.d.ts +1 -1
- package/dist/temp-types/src/composables/use-toggle.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-validate.d.ts +10 -8
- package/dist/temp-types/src/composables/use-validate.d.ts.map +1 -1
- package/dist/temp-types/src/constants/aria.d.ts +35 -0
- package/dist/temp-types/src/constants/aria.d.ts.map +1 -0
- package/dist/temp-types/src/constants/attrs.d.ts +2 -0
- package/dist/temp-types/src/constants/attrs.d.ts.map +1 -0
- package/dist/temp-types/src/constants/icons.d.ts +91 -18
- package/dist/temp-types/src/constants/icons.d.ts.map +1 -1
- package/dist/temp-types/src/constants/index.d.ts +3 -1
- package/dist/temp-types/src/constants/index.d.ts.map +1 -1
- package/dist/temp-types/src/constants/provide-keys.d.ts +7 -6
- package/dist/temp-types/src/constants/provide-keys.d.ts.map +1 -1
- package/dist/temp-types/src/directives/v-click-outside.d.ts.map +1 -1
- package/dist/temp-types/src/enums/IconName.d.ts +15 -2
- package/dist/temp-types/src/enums/IconName.d.ts.map +1 -1
- package/dist/temp-types/src/helpers/index.d.ts +2 -0
- package/dist/temp-types/src/helpers/index.d.ts.map +1 -1
- package/dist/temp-types/src/helpers/preset.d.ts +8 -0
- package/dist/temp-types/src/helpers/preset.d.ts.map +1 -0
- package/dist/temp-types/src/helpers/theme.d.ts +4 -0
- package/dist/temp-types/src/helpers/theme.d.ts.map +1 -0
- package/dist/temp-types/src/index.d.ts.map +1 -1
- package/dist/temp-types/src/library.d.ts +10 -3
- package/dist/temp-types/src/library.d.ts.map +1 -1
- package/dist/temp-types/src/resolvers/font-awesome.d.ts +18 -0
- package/dist/temp-types/src/resolvers/font-awesome.d.ts.map +1 -0
- package/dist/temp-types/src/resolvers/index.d.ts +2 -0
- package/dist/temp-types/src/resolvers/index.d.ts.map +1 -0
- package/dist/temp-types/src/resolvers/material.d.ts +1 -0
- package/dist/temp-types/src/resolvers/material.d.ts.map +1 -0
- package/dist/temp-types/src/types/icons.d.ts +29 -0
- package/dist/temp-types/src/types/icons.d.ts.map +1 -0
- package/dist/temp-types/src/types/index.d.ts +4 -2
- package/dist/temp-types/src/types/index.d.ts.map +1 -1
- package/dist/temp-types/src/types/presets.d.ts +35 -47
- package/dist/temp-types/src/types/presets.d.ts.map +1 -1
- package/dist/temp-types/src/types/theme.d.ts +32 -0
- package/dist/temp-types/src/types/theme.d.ts.map +1 -0
- package/dist/temp-types/src/utils/aria.d.ts +36 -0
- package/dist/temp-types/src/utils/aria.d.ts.map +1 -0
- package/dist/temp-types/src/utils/compile-css-classes.d.ts.map +1 -1
- package/dist/temp-types/src/utils/create-simple-functional.d.ts.map +1 -1
- package/dist/temp-types/src/utils/index.d.ts +3 -2
- package/dist/temp-types/src/utils/index.d.ts.map +1 -1
- package/dist/temp-types/src/utils/throttle.d.ts.map +1 -1
- package/dist/temp-types/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +125 -0
- package/dist/types.d.ts +137 -72
- package/dist/utils/aria.js +95 -0
- package/dist/utils/compile-css-classes.js +3 -13
- package/dist/utils/create-simple-functional.js +1 -5
- package/dist/utils/index.d.ts +48 -10
- package/dist/utils/index.js +3 -2
- package/package.json +35 -9
- package/dist/components/CItems/CItems.js +0 -66
- package/dist/composables/use-field-attrs.js +0 -43
- package/dist/composables/use-input-state.js +0 -41
- package/dist/composables/use-input-value.js +0 -18
- package/dist/composables/use-menu-presets.js +0 -17
- package/dist/composables/use-position-classes.js +0 -12
- package/dist/css/themes/default-theme.css +0 -1
- package/dist/temp-types/src/components/CItems/CItems.d.ts +0 -16
- package/dist/temp-types/src/components/CItems/CItems.d.ts.map +0 -1
- package/dist/temp-types/src/components/CItems/index.d.ts +0 -2
- package/dist/temp-types/src/components/CItems/index.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-app-scroll.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-field-attrs.d.ts +0 -10
- package/dist/temp-types/src/composables/use-field-attrs.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-input-state.d.ts +0 -17
- package/dist/temp-types/src/composables/use-input-state.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-input-value.d.ts +0 -3
- package/dist/temp-types/src/composables/use-input-value.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-menu-presets.d.ts +0 -7
- package/dist/temp-types/src/composables/use-menu-presets.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-position-classes.d.ts +0 -10
- package/dist/temp-types/src/composables/use-position-classes.d.ts.map +0 -1
- package/dist/temp-types/src/utils/define-preset.d.ts +0 -2
- package/dist/temp-types/src/utils/define-preset.d.ts.map +0 -1
- /package/dist/css/{themes/default-theme.js → lib.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDatePicker/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAQ7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAEvD;AAED,wBAAgB,SAAS,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,cAAc,CASrE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { CDatePickerProps, DatePickerEnrichedDate, DatePickerEnrichedMonth, DatePickerEnrichedYear, DatePickerSlotApi, DatePickerWeekDay, } from './CDatePicker.vue';
|
|
2
|
+
export { default as CDatePicker } from './CDatePicker.vue';
|
|
3
|
+
export type { DateLocale } from './locales';
|
|
4
|
+
export type { DatePickerDate, DisabledDates, } from './types';
|
|
5
|
+
export declare function datePickerValueToString(value: Date | string | null | undefined, format: string, lang: string): string;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDatePicker/index.ts"],"names":[],"mappings":"AAGA,YAAY,EACR,gBAAgB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,iBAAiB,GAClI,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC3C,YAAY,EACR,cAAc,EAAE,aAAa,GAChC,MAAM,SAAS,CAAA;AAEhB,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGrH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CDatePicker/locales/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,IAAI,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAG7C,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type DatePickerDate = {
|
|
2
|
+
year: number;
|
|
3
|
+
month: number;
|
|
4
|
+
date: number | null;
|
|
5
|
+
day: number;
|
|
6
|
+
mls?: number;
|
|
7
|
+
isHoliday?: boolean;
|
|
8
|
+
isHighlighted?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type DisabledDates = {
|
|
11
|
+
daysOfMonth?: number[];
|
|
12
|
+
from?: Date | string;
|
|
13
|
+
to?: Date | string;
|
|
14
|
+
dates?: (Date | string)[];
|
|
15
|
+
days?: number[];
|
|
16
|
+
ranges?: Array<{
|
|
17
|
+
from: Date | string;
|
|
18
|
+
to: Date | string;
|
|
19
|
+
}>;
|
|
20
|
+
custom?: (date: DatePickerDate) => boolean;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDatePicker/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IACpB,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;QACjC,EAAE,EAAE,IAAI,GAAG,MAAM,CAAA;KAAE,CAAC,CAAA;IACxB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAA;CAC7C,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type DateLocale } from './locales';
|
|
2
|
+
export { type DateLocale, LOCALE, } from './locales';
|
|
3
|
+
export declare function getMonth(date: Date): number;
|
|
4
|
+
export declare function getFullYear(date: Date): number;
|
|
5
|
+
export declare function getDate(date: Date): number;
|
|
6
|
+
export declare function getDay(date: Date): number;
|
|
7
|
+
export declare function formatDate(date: Date, format: string, locale: DateLocale): string;
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDatePicker/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,OAAO,EACH,KAAK,UAAU,EAAE,MAAM,GAC1B,MAAM,WAAW,CAAA;AAElB,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,UAA4B;AAC/D,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,UAA+B;AACrE,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,UAA2B;AAC7D,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,UAA0B;AAE3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAejF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CDialog.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/CDialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CDialog.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/CDialog.vue"],"names":[],"mappings":"AAoEI,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAIzD,KAAK,WAAW,GAAG,YAAY,CAAC;AAGhC,KAAK,WAAW,GAAG,YAAY,CAAC;AAwBpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkGF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CDialogsStack.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/CDialogsStack.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CDialogsStack.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/CDialogsStack.vue"],"names":[],"mappings":";AAyEA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CDialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,IAAI,KAAK,CAAA;CACnB,CAAA"}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
focused?: boolean;
|
|
4
|
-
};
|
|
1
|
+
import type { CFieldProps } from './types';
|
|
2
|
+
type __VLS_Props = CFieldProps;
|
|
5
3
|
type __VLS_PublicProps = __VLS_Props & {
|
|
6
|
-
modelValue?: string | number | undefined;
|
|
4
|
+
modelValue?: string | number | undefined | null;
|
|
7
5
|
};
|
|
8
|
-
declare
|
|
9
|
-
|
|
6
|
+
declare var __VLS_1: {}, __VLS_7: {}, __VLS_19: {}, __VLS_25: {}, __VLS_31: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
prepend?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
before?: (props: typeof __VLS_7) => any;
|
|
11
|
+
} & {
|
|
12
|
+
after?: (props: typeof __VLS_19) => any;
|
|
13
|
+
} & {
|
|
14
|
+
clear?: (props: typeof __VLS_25) => any;
|
|
10
15
|
} & {
|
|
11
|
-
|
|
16
|
+
append?: (props: typeof __VLS_31) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
20
|
+
} & {
|
|
21
|
+
clear: () => any;
|
|
12
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
-
|
|
14
|
-
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
23
|
+
onClear?: (() => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
15
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
27
|
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
17
33
|
//# sourceMappingURL=CField.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CField/CField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CField/CField.vue"],"names":[],"mappings":"AAmKI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAO1C,KAAK,WAAW,GAAG,WAAW,CAAC;AAyDnC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CAC/C,CAAC;AA+IF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/H,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAiC/C,QAAA,MAAM,eAAe;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
export type CFieldProps = {
|
|
3
|
+
tag?: 'input' | 'textarea';
|
|
4
|
+
label?: string;
|
|
5
|
+
filled?: boolean;
|
|
6
|
+
preset?: string;
|
|
7
|
+
focused?: boolean;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
noInput?: boolean;
|
|
13
|
+
modelValue?: string | number | undefined | null;
|
|
14
|
+
};
|
|
15
|
+
export type CFieldSlots = {
|
|
16
|
+
prepend?(): VNode;
|
|
17
|
+
append?(): VNode;
|
|
18
|
+
before?(): VNode | VNode[];
|
|
19
|
+
after?(): VNode | VNode[];
|
|
20
|
+
clear?(): VNode;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,IAAI,KAAK,CAAA;IACjB,MAAM,CAAC,IAAI,KAAK,CAAA;IAChB,MAAM,CAAC,IAAI,KAAK,GAAG,KAAK,EAAE,CAAA;IAC1B,KAAK,CAAC,IAAI,KAAK,GAAG,KAAK,EAAE,CAAA;IACzB,KAAK,CAAC,IAAI,KAAK,CAAA;CAClB,CAAA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import type { CFormProps, CFormSlots } from './types';
|
|
2
|
+
type __VLS_Slots = CFormSlots;
|
|
1
3
|
declare function validate(): Promise<boolean>;
|
|
2
|
-
declare
|
|
4
|
+
declare function reset(): void;
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<CFormProps, {
|
|
3
6
|
validate: typeof validate;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
reset: typeof reset;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
submit: (event: Event) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<CFormProps> & Readonly<{
|
|
11
|
+
onSubmit?: ((event: Event) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
14
|
export default _default;
|
|
13
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CForm/CForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CForm/CForm.vue"],"names":[],"mappings":"AAmFI,OAAO,KAAK,EAER,UAAU,EACV,UAAU,EAGb,MAAM,SAAS,CAAA;AAUhB,KAAK,WAAW,GAAG,UAAU,CAAC;AAsB9B,iBAAe,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAG1C;AAED,iBAAS,KAAK,SAEb;AA0DL,QAAA,MAAM,eAAe;;;;;;;kFAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
export type ValidatorFn = () => boolean
|
|
3
|
-
export
|
|
2
|
+
export type ValidatorFn = () => boolean | Promise<boolean>;
|
|
3
|
+
export type ResetFn = () => void;
|
|
4
|
+
export interface FormAPI {
|
|
4
5
|
add(fn: ValidatorFn): void;
|
|
5
6
|
remove(fn: ValidatorFn): void;
|
|
7
|
+
addReset(fn: ResetFn): void;
|
|
8
|
+
removeReset(fn: ResetFn): void;
|
|
6
9
|
}
|
|
7
|
-
export type
|
|
10
|
+
export type CFormProps = {
|
|
11
|
+
label?: string;
|
|
12
|
+
};
|
|
13
|
+
export type CFormEmits = {
|
|
14
|
+
submit: [event: Event];
|
|
15
|
+
};
|
|
16
|
+
export type CFormSlots = {
|
|
8
17
|
default(props: {
|
|
9
18
|
validate: ValidatorFn;
|
|
19
|
+
reset: () => void;
|
|
10
20
|
}): VNode;
|
|
11
21
|
};
|
|
12
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAC1D,MAAM,MAAM,OAAO,GAAG,MAAM,IAAI,CAAA;AAEhC,MAAM,WAAW,OAAO;IACpB,GAAG,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,MAAM,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAAA;IAC7B,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,OAAO,CAAC,KAAK,EAAE;QACX,QAAQ,EAAE,WAAW,CAAC;QACtB,KAAK,EAAE,MAAM,IAAI,CAAA;KACpB,GAAG,KAAK,CAAA;CACZ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CCol.d.ts","sourceRoot":"","sources":["../../../../../src/components/CGrid/CCol.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CCol.d.ts","sourceRoot":"","sources":["../../../../../src/components/CGrid/CCol.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,QAAQ,EACb,KAAK,KAAK,EACb,MAAM,KAAK,CAAA;AAKZ,eAAO,MAAM,IAAI;;cAKqB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;;cAKzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;;cAKzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;UAwB5B,KAAK;;cAlCF,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;;cAKzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;;cAKzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;;;;;4EA8D7D,CAAA"}
|
|
@@ -40,8 +40,8 @@ export declare const CRow: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
40
40
|
};
|
|
41
41
|
noGutter: BooleanConstructor;
|
|
42
42
|
}>> & Readonly<{}>, {
|
|
43
|
-
noGutter: boolean;
|
|
44
43
|
align: "start" | "center" | "end" | "baseline" | "stretch";
|
|
44
|
+
noGutter: boolean;
|
|
45
45
|
alignContent: "start" | "center" | "end" | "space-between" | "space-around" | "stretch";
|
|
46
46
|
justify: "start" | "center" | "end" | "space-between" | "space-around";
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/CGrid/CRow.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/CGrid/CRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,QAAQ,EACb,KAAK,KAAK,EACb,MAAM,KAAK,CAAA;AAMZ,QAAA,MAAM,aAAa,sEAA2D,CAAA;AAC9E,QAAA,MAAM,WAAW,4DAAiD,CAAA;AAClE,QAAA,MAAM,kBAAkB,iFAKd,CAAA;AAEV,KAAK,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAClD,KAAK,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAC9C,KAAK,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5D,eAAO,MAAM,IAAI;;cAKW,QAAQ,CAAC,UAAU,CAAC;;2BAEjB,MAAM;;;cAIT,QAAQ,CAAC,iBAAiB,CAAC;;2BAExB,MAAM;;;cAKT,QAAQ,CAAC,YAAY,CAAC;;2BAEnB,MAAM;;;UAgCF,KAAK;;cA/CZ,QAAQ,CAAC,UAAU,CAAC;;2BAEjB,MAAM;;;cAIT,QAAQ,CAAC,iBAAiB,CAAC;;2BAExB,MAAM;;;cAKT,QAAQ,CAAC,YAAY,CAAC;;2BAEnB,MAAM;;;;;;;;4EA2EnC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CIcon.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CIcon/CIcon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CIcon.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CIcon/CIcon.vue"],"names":[],"mappings":"AA4EI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;AAqG7C,wBAMG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
-
type IconMode
|
|
2
|
+
import type { IconMode } from '../../composables';
|
|
3
3
|
export type CIconProps = {
|
|
4
4
|
name?: string | number;
|
|
5
5
|
source?: IconMode;
|
|
@@ -13,5 +13,4 @@ export type CIconProps = {
|
|
|
13
13
|
spritePrefix?: string;
|
|
14
14
|
spritePath?: string;
|
|
15
15
|
};
|
|
16
|
-
export {};
|
|
17
16
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjD,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAA;IACjB,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CInputEmits, CInputSlots } from './types';
|
|
2
2
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
5
|
+
readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:focused"> & (import("../../composables").ValidateProps & import("../../composables").PresetProps & {
|
|
7
|
+
id?: string;
|
|
8
|
+
modelValue: T | T[] | null | undefined;
|
|
9
|
+
label?: string;
|
|
10
|
+
details?: string;
|
|
11
|
+
noDetails?: boolean;
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
focused?: boolean;
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
role?: import("./types").CInputRole;
|
|
17
|
+
} & {
|
|
18
|
+
focused?: boolean;
|
|
19
|
+
}) & Partial<{}>> & import("vue").PublicProps;
|
|
4
20
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
5
|
-
validate: () => boolean
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
21
|
+
validate: () => Promise<boolean>;
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
reset: () => void;
|
|
9
25
|
}>): void;
|
|
10
26
|
attrs: any;
|
|
11
27
|
slots: CInputSlots;
|
|
12
|
-
emit:
|
|
28
|
+
emit: CInputEmits<T> & ((evt: "update:focused", value: boolean) => void);
|
|
13
29
|
}>) => import("vue").VNode & {
|
|
14
30
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CInput/CInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CInput/CInput.vue"],"names":[],"mappings":"AA+NI,OAAO,KAAK,EACR,WAAW,EAEX,WAAW,EAEd,MAAM,SAAS,CAAA;yBAEC,CAAC,EACrB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA+OO,mBAAmB,CAAC;;;;;;;;;;;;;;;kBA5FhB,OAAO;SA4F8C,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;UAEJ,kEAA0C;EAE7C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1PrE,wBA0PwE;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
import type { InputStateProps, PresetProps, ValidateProps, ValidateState } from '../../composables';
|
|
2
1
|
import type { VNode } from 'vue';
|
|
3
|
-
|
|
2
|
+
import type { PresetProps, ValidateProps, ValidateState } from '../../composables';
|
|
3
|
+
export interface InputState {
|
|
4
|
+
focused: boolean;
|
|
5
|
+
isDirty: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type CInputRole = 'combobox' | 'checkbox' | 'radio' | 'listbox';
|
|
8
|
+
export type CInputProps<T = any> = ValidateProps & PresetProps & {
|
|
4
9
|
id?: string;
|
|
5
|
-
modelValue: T;
|
|
10
|
+
modelValue: T | T[] | undefined | null;
|
|
6
11
|
label?: string;
|
|
7
12
|
details?: string;
|
|
8
13
|
noDetails?: boolean;
|
|
9
14
|
clearable?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
focused?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
role?: CInputRole;
|
|
19
|
+
};
|
|
20
|
+
export type CInputEmits<T = any> = {
|
|
21
|
+
(e: 'update:modelValue', value: T): void;
|
|
22
|
+
(e: 'update:focused', value: boolean): void;
|
|
23
|
+
};
|
|
24
|
+
export type CInputDetailsSlotProps = {
|
|
25
|
+
errorMessage: ValidateState['errorMessage'];
|
|
26
|
+
hasError: ValidateState['hasError'];
|
|
27
|
+
validating: ValidateState['validating'];
|
|
28
|
+
uid: string;
|
|
29
|
+
details?: string;
|
|
30
|
+
};
|
|
31
|
+
export type CInputFieldSlotProps = {
|
|
32
|
+
focus(): void;
|
|
33
|
+
blur(): void;
|
|
34
|
+
reset(): void;
|
|
35
|
+
label?: string;
|
|
36
|
+
focused: boolean;
|
|
37
|
+
clearable?: boolean;
|
|
38
|
+
readonly?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
preset?: string;
|
|
41
|
+
errorMessage: ValidateState['errorMessage'];
|
|
42
|
+
hasError: ValidateState['hasError'];
|
|
43
|
+
validating: ValidateState['validating'];
|
|
44
|
+
attrs: Record<string, unknown>;
|
|
45
|
+
uid: string;
|
|
46
|
+
validate(): boolean | Promise<boolean>;
|
|
10
47
|
};
|
|
11
48
|
export type CInputSlots = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}): VNode | string;
|
|
15
|
-
prepend?(): VNode | string;
|
|
16
|
-
append?(): VNode | string;
|
|
17
|
-
details?(props: {
|
|
18
|
-
errorMessage: ValidateState['errorMessage'];
|
|
19
|
-
hasError: ValidateState['hasError'];
|
|
20
|
-
uid: string;
|
|
21
|
-
}): VNode | string;
|
|
22
|
-
field?(props: {
|
|
23
|
-
onInput(): void;
|
|
24
|
-
onFocus(): void;
|
|
25
|
-
onBlur(): void;
|
|
26
|
-
label?: string;
|
|
27
|
-
readonly?: boolean;
|
|
28
|
-
focused?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
presets?: string[] | string[][];
|
|
31
|
-
errorMessage: ValidateState['errorMessage'];
|
|
32
|
-
hasError: ValidateState['hasError'];
|
|
33
|
-
attrs: Record<string, any>;
|
|
34
|
-
uid: string;
|
|
35
|
-
validate(): boolean;
|
|
36
|
-
}): VNode;
|
|
49
|
+
details?(props: CInputDetailsSlotProps): VNode | string;
|
|
50
|
+
field?(props: CInputFieldSlotProps): VNode;
|
|
37
51
|
};
|
|
38
52
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,OAAO,KAAK,EACR,WAAW,EACX,aAAa,EACb,aAAa,EAChB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAA;AAEtE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI,aAAa,GAC5C,WAAW,GAAG;IACV,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,UAAU,CAAA;CACpB,CAAA;AAEL,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI;IAC/B,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;IACxC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAC9C,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC3C,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IACnC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;IACZ,KAAK,IAAI,IAAI,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC3C,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IACnC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,CAAC,KAAK,EAAE,sBAAsB,GAAG,KAAK,GAAG,MAAM,CAAA;IACvD,KAAK,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,KAAK,CAAA;CAC7C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/CLabel/CLabel.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/CLabel/CLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,mBAAmB,EAG3B,MAAM,KAAK,CAAA;AAEZ,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,MAAM,EAAE,mBAAmB,CAAC,WAAW,CAQnD,CAAA"}
|
|
@@ -5,7 +5,13 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
5
5
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (CListProps<T> & {
|
|
6
6
|
modelValue?: T | T[] | null;
|
|
7
7
|
}) & Partial<{}>> & import("vue").PublicProps;
|
|
8
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
8
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
9
|
+
focus: () => Promise<void>;
|
|
10
|
+
listId: string;
|
|
11
|
+
activeDescendant: import("vue").ShallowRef<string | undefined, string | undefined>;
|
|
12
|
+
navigateDown: () => void;
|
|
13
|
+
navigateUp: () => void;
|
|
14
|
+
}>): void;
|
|
9
15
|
attrs: any;
|
|
10
16
|
slots: CListSlots<T>;
|
|
11
17
|
emit: (evt: "update:modelValue", value: T | T[] | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CList.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/CList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CList.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/CList.vue"],"names":[],"mappings":"AAyLI,OAAO,KAAK,EACR,UAAU,EACV,UAAU,EAEb,MAAM,SAAS,CAAA;yBAEC,CAAC,EACrB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA4MO,mBAAmB,CAAC;;;qBA1Df,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI;SA0DsC,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvNrE,wBAuNwE;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CListItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/CListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CListItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/CListItem.vue"],"names":[],"mappings":"yBAmGqB,CAAC,GAAG,GAAG,EAC3B,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAiHO,mBAAmB,CAAC;gBA7GZ,CAAC;QA6GgD,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBAzBG,CAAC,KAAK,IAAgB,KAAK,GAAG;;UA2BrC,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA5HrE,wBA4HwE;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
1
|
+
import type { ComputedRef, VNode } from 'vue';
|
|
2
|
+
export type CListRole = 'listbox' | 'menu' | undefined;
|
|
2
3
|
export type CListProps<T> = {
|
|
3
4
|
modelValue?: T | T[] | null;
|
|
4
5
|
multiple?: boolean;
|
|
5
6
|
mandatory?: boolean;
|
|
6
7
|
readonly?: boolean;
|
|
8
|
+
selectable?: boolean;
|
|
9
|
+
role?: CListRole;
|
|
7
10
|
};
|
|
8
11
|
export type CListSlots<T> = {
|
|
9
12
|
default?(props: {
|
|
@@ -12,4 +15,18 @@ export type CListSlots<T> = {
|
|
|
12
15
|
isActive(item: T): boolean;
|
|
13
16
|
}): VNode | VNode[];
|
|
14
17
|
};
|
|
18
|
+
export type ListItemControls = {
|
|
19
|
+
focus(): void;
|
|
20
|
+
blur(): void;
|
|
21
|
+
};
|
|
22
|
+
export type ListAPI<T = any> = {
|
|
23
|
+
role: ComputedRef<CListRole>;
|
|
24
|
+
listId: string;
|
|
25
|
+
register(controls: ListItemControls): number;
|
|
26
|
+
unregister(controls: ListItemControls): void;
|
|
27
|
+
select(value: T): void;
|
|
28
|
+
unselect(value: T): void;
|
|
29
|
+
isActive(value: T): boolean;
|
|
30
|
+
setDescendant(id: string | undefined): void;
|
|
31
|
+
};
|
|
15
32
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CList/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAE7C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;AAEtD,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IACxB,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,SAAS,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IACxB,OAAO,CAAC,CAAC,KAAK,EAAE;QACZ,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;QACrB,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;QACvB,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAA;KAC7B,GAAG,KAAK,GAAG,KAAK,EAAE,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;CACf,CAAA;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,GAAG,IAAI;IAC3B,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAAA;IAC5C,UAAU,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC5C,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAC9C,CAAA"}
|
|
@@ -18,23 +18,23 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_11) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
21
|
-
open: () =>
|
|
21
|
+
open: () => void;
|
|
22
22
|
close: () => void;
|
|
23
|
-
toggle: () => void
|
|
23
|
+
toggle: () => void;
|
|
24
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
25
|
"update:modelValue": (value: boolean) => any;
|
|
26
26
|
} & {
|
|
27
|
-
|
|
27
|
+
open: () => any;
|
|
28
28
|
close: () => any;
|
|
29
|
+
click: () => any;
|
|
29
30
|
"update:modelValue": (val: boolean) => any;
|
|
30
31
|
"outside-click": () => any;
|
|
31
|
-
open: () => any;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
-
|
|
33
|
+
onOpen?: (() => any) | undefined;
|
|
34
34
|
onClose?: (() => any) | undefined;
|
|
35
|
+
onClick?: (() => any) | undefined;
|
|
35
36
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
36
37
|
"onOutside-click"?: (() => any) | undefined;
|
|
37
|
-
onOpen?: (() => any) | undefined;
|
|
38
38
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
39
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
40
40
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CMenu.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CMenu/CMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CMenu.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/CMenu/CMenu.vue"],"names":[],"mappings":"AAsPI,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,SAAS,CAAA;AAOtD,KAAK,WAAW,GAAG,UAAU,CAAC;AA4JlC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA8DF,QAAA,IAAI,OAAO;;;;;;;;CAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAkChD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;kFAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
import type { ActivatorListeners, ActivatorProps, AutoPositionProps,
|
|
2
|
+
import type { ActivatorListeners, ActivatorProps, AutoPositionProps, DelayProps } from '../../composables';
|
|
3
3
|
import type { DimensionsProps } from '../../types';
|
|
4
4
|
import type { COverlayProps } from '../COverlay';
|
|
5
|
-
export type CMenuProps = ActivatorProps &
|
|
5
|
+
export type CMenuProps = ActivatorProps & DimensionsProps & AutoPositionProps & DelayProps & Partial<COverlayProps> & {
|
|
6
6
|
closeOnClickOutside?: boolean;
|
|
7
7
|
closeOnContentClick?: boolean;
|
|
8
8
|
ssr?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/CMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAEhC,OAAO,KAAK,EACR,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,UAAU,EACb,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,UAAU,GACV,OAAO,CAAC,aAAa,CAAC,GAAG;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,kBAAkB,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAAG,KAAK,CAAA;IACpF,OAAO,IAAI,KAAK,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAC1B,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;CAC/C,CAAA"}
|