@dxtmisha/wiki 0.24.2 → 0.25.1
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/package.json +7 -7
- package/src/classes/WikiStorybookItem.ts +24 -0
- package/src/library.ts +7 -7
- package/src/media/descriptions/wikiDescriptions.ts +28 -0
- package/src/media/descriptions/wikiDescriptionsAccordion.ts +158 -0
- package/src/media/descriptions/wikiDescriptionsActionSheet.ts +211 -0
- package/src/media/descriptions/wikiDescriptionsActions.ts +161 -0
- package/src/media/descriptions/wikiDescriptionsAnchor.ts +42 -0
- package/src/media/descriptions/wikiDescriptionsArrow.ts +181 -0
- package/src/media/descriptions/wikiDescriptionsBars.ts +1 -3
- package/src/media/descriptions/wikiDescriptionsBlock.ts +97 -0
- package/src/media/descriptions/wikiDescriptionsButton.ts +0 -1
- package/src/media/descriptions/wikiDescriptionsCell.ts +3 -3
- package/src/media/descriptions/wikiDescriptionsChip.ts +0 -1
- package/src/media/descriptions/wikiDescriptionsChipGroup.ts +168 -0
- package/src/media/descriptions/wikiDescriptionsDialog.ts +182 -0
- package/src/media/descriptions/wikiDescriptionsField.ts +3 -4
- package/src/media/descriptions/wikiDescriptionsFieldCounter.ts +6 -6
- package/src/media/descriptions/wikiDescriptionsFieldMessage.ts +1 -2
- package/src/media/descriptions/wikiDescriptionsImage.ts +43 -8
- package/src/media/descriptions/wikiDescriptionsInput.ts +257 -0
- package/src/media/descriptions/wikiDescriptionsList.ts +1 -5
- package/src/media/descriptions/wikiDescriptionsListGroup.ts +2 -3
- package/src/media/descriptions/wikiDescriptionsListItem.ts +1 -3
- package/src/media/descriptions/wikiDescriptionsListMenu.ts +2 -9
- package/src/media/descriptions/wikiDescriptionsMask.ts +12 -0
- package/src/media/descriptions/wikiDescriptionsMenu.ts +126 -14
- package/src/media/descriptions/wikiDescriptionsModal.ts +145 -0
- package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +4 -10
- package/src/media/descriptions/wikiDescriptionsScrollbar.ts +1 -7
- package/src/media/descriptions/wikiDescriptionsSelect.ts +209 -0
- package/src/media/descriptions/wikiDescriptionsSelectValue.ts +78 -0
- package/src/media/descriptions/wikiDescriptionsSkeleton.ts +1 -0
- package/src/media/descriptions/wikiDescriptionsTextareaAutosize.ts +50 -0
- package/src/media/descriptions/wikiDescriptionsTooltip.ts +89 -0
- package/src/media/descriptions/wikiDescriptionsWindow.ts +5 -22
- package/src/media/functional/en/broadcastMessage.mdx +307 -0
- package/src/media/functional/en/conversions.mdx +67 -0
- package/src/media/functional/en/dataUtils.mdx +25 -0
- package/src/media/functional/en/datetimeRef.mdx +1 -1
- package/src/media/functional/en/eventRef.mdx +1 -1
- package/src/media/functional/en/executionUtils.mdx +58 -0
- package/src/media/functional/en/geoFlagRef.mdx +1 -1
- package/src/media/functional/en/geoIntlRef.mdx +1 -1
- package/src/media/functional/en/geoRef.mdx +2 -2
- package/src/media/functional/en/meta.mdx +1206 -0
- package/src/media/functional/en/metaManager.mdx +376 -0
- package/src/media/functional/en/metaOg.mdx +694 -0
- package/src/media/functional/en/metaTwitter.mdx +853 -0
- package/src/media/functional/en/reactive.mdx +40 -0
- package/src/media/functional/en/refTypes.mdx +1 -1
- package/src/media/functional/en/useApiRef.mdx +5 -5
- package/src/media/functional/en/useMeta.mdx +431 -0
- package/src/media/functional/en/validationUtils.mdx +11 -0
- package/src/media/functional/ru/broadcastMessage.mdx +305 -0
- package/src/media/functional/ru/conversions.mdx +67 -0
- package/src/media/functional/ru/dataUtils.mdx +25 -0
- package/src/media/functional/ru/datetimeRef.mdx +2 -2
- package/src/media/functional/ru/eventRef.mdx +1 -1
- package/src/media/functional/ru/executionUtils.mdx +58 -0
- package/src/media/functional/ru/geoFlagRef.mdx +1 -1
- package/src/media/functional/ru/geoIntl.mdx +2 -2
- package/src/media/functional/ru/geoIntlRef.mdx +1 -1
- package/src/media/functional/ru/geoRef.mdx +2 -2
- package/src/media/functional/ru/listTypes.mdx +1 -1
- package/src/media/functional/ru/meta.mdx +1330 -0
- package/src/media/functional/ru/metaManager.mdx +376 -0
- package/src/media/functional/ru/metaOg.mdx +694 -0
- package/src/media/functional/ru/metaTwitter.mdx +853 -0
- package/src/media/functional/ru/reactive.mdx +40 -0
- package/src/media/functional/ru/refTypes.mdx +2 -2
- package/src/media/functional/ru/useApiRef.mdx +5 -5
- package/src/media/functional/ru/useMeta.mdx +431 -0
- package/src/media/functional/ru/validationUtils.mdx +11 -0
- package/src/media/mdx/Accordion/accordion.en.mdx +59 -0
- package/src/media/mdx/Accordion/accordion.ru.mdx +59 -0
- package/src/media/mdx/Accordion/slots.en.mdx +6 -0
- package/src/media/mdx/Accordion/slots.ru.mdx +6 -0
- package/src/media/mdx/Accordion/wikiMdxAccordion.ts +25 -0
- package/src/media/mdx/ActionSheet/actionSheet.en.mdx +61 -0
- package/src/media/mdx/ActionSheet/actionSheet.ru.mdx +61 -0
- package/src/media/mdx/ActionSheet/touchClose.en.mdx +21 -0
- package/src/media/mdx/ActionSheet/touchClose.ru.mdx +21 -0
- package/src/media/mdx/ActionSheet/wikiMdxActionSheet.ts +25 -0
- package/src/media/mdx/Actions/actions.en.mdx +48 -0
- package/src/media/mdx/Actions/actions.ru.mdx +48 -0
- package/src/media/mdx/Actions/flexible.en.mdx +19 -0
- package/src/media/mdx/Actions/flexible.ru.mdx +19 -0
- package/src/media/mdx/Actions/list.en.mdx +50 -0
- package/src/media/mdx/Actions/list.ru.mdx +50 -0
- package/src/media/mdx/Actions/wikiMdxActions.ts +31 -0
- package/src/media/mdx/Anchor/anchor.en.mdx +34 -0
- package/src/media/mdx/Anchor/anchor.ru.mdx +34 -0
- package/src/media/mdx/Anchor/expose.go.en.mdx +6 -0
- package/src/media/mdx/Anchor/expose.go.ru.mdx +6 -0
- package/src/media/mdx/Anchor/hide.en.mdx +28 -0
- package/src/media/mdx/Anchor/hide.ru.mdx +28 -0
- package/src/media/mdx/Anchor/isCopy.en.mdx +23 -0
- package/src/media/mdx/Anchor/isCopy.ru.mdx +23 -0
- package/src/media/mdx/Anchor/scroll.en.mdx +34 -0
- package/src/media/mdx/Anchor/scroll.ru.mdx +35 -0
- package/src/media/mdx/Anchor/wikiMdxAnchor.ts +43 -0
- package/src/media/mdx/Arrow/arrow.en.mdx +33 -0
- package/src/media/mdx/Arrow/arrow.ru.mdx +33 -0
- package/src/media/mdx/Arrow/wikiMdxArrow.ts +19 -0
- package/src/media/mdx/Badge/badge.en.mdx +85 -7
- package/src/media/mdx/Badge/badge.ru.mdx +85 -7
- package/src/media/mdx/Badge/dot.en.mdx +16 -12
- package/src/media/mdx/Badge/dot.ru.mdx +16 -12
- package/src/media/mdx/Badge/outline.en.mdx +12 -13
- package/src/media/mdx/Badge/outline.ru.mdx +12 -13
- package/src/media/mdx/Badge/primary.en.mdx +12 -12
- package/src/media/mdx/Badge/primary.ru.mdx +12 -12
- package/src/media/mdx/Badge/secondary.en.mdx +12 -13
- package/src/media/mdx/Badge/secondary.ru.mdx +12 -13
- package/src/media/mdx/Bars/action.en.mdx +72 -28
- package/src/media/mdx/Bars/action.ru.mdx +73 -29
- package/src/media/mdx/Bars/bars.en.mdx +90 -15
- package/src/media/mdx/Bars/bars.ru.mdx +91 -15
- package/src/media/mdx/Bars/slots.en.mdx +33 -0
- package/src/media/mdx/Bars/slots.ru.mdx +33 -0
- package/src/media/mdx/Bars/v-model.en.mdx +23 -14
- package/src/media/mdx/Bars/v-model.ru.mdx +23 -14
- package/src/media/mdx/Bars/wikiMdxBars.ts +5 -11
- package/src/media/mdx/Block/block.en.mdx +42 -0
- package/src/media/mdx/Block/block.ru.mdx +42 -0
- package/src/media/mdx/Block/wikiMdxBlock.ts +19 -0
- package/src/media/mdx/Button/button.en.mdx +89 -1
- package/src/media/mdx/Button/button.ru.mdx +89 -1
- package/src/media/mdx/Button/outline.en.mdx +12 -14
- package/src/media/mdx/Button/outline.ru.mdx +12 -14
- package/src/media/mdx/Button/primary.en.mdx +12 -19
- package/src/media/mdx/Button/primary.ru.mdx +12 -19
- package/src/media/mdx/Button/secondary.en.mdx +12 -17
- package/src/media/mdx/Button/secondary.ru.mdx +12 -17
- package/src/media/mdx/Button/text.en.mdx +12 -11
- package/src/media/mdx/Button/text.ru.mdx +12 -11
- package/src/media/mdx/Cell/cell.en.mdx +50 -9
- package/src/media/mdx/Cell/cell.ru.mdx +50 -9
- package/src/media/mdx/Cell/slots.en.mdx +82 -0
- package/src/media/mdx/Cell/slots.ru.mdx +83 -0
- package/src/media/mdx/Cell/wikiMdxCell.ts +6 -12
- package/src/media/mdx/Chip/assistive.en.mdx +12 -14
- package/src/media/mdx/Chip/assistive.ru.mdx +12 -14
- package/src/media/mdx/Chip/chip.en.mdx +69 -9
- package/src/media/mdx/Chip/chip.ru.mdx +69 -9
- package/src/media/mdx/Chip/input.en.mdx +12 -19
- package/src/media/mdx/Chip/input.ru.mdx +12 -19
- package/src/media/mdx/ChipGroup/chipGroup.en.mdx +51 -0
- package/src/media/mdx/ChipGroup/chipGroup.ru.mdx +51 -0
- package/src/media/mdx/ChipGroup/selected.en.mdx +50 -0
- package/src/media/mdx/ChipGroup/selected.ru.mdx +50 -0
- package/src/media/mdx/ChipGroup/wikiMdxChipGroup.ts +25 -0
- package/src/media/mdx/Dialog/buttons.en.mdx +45 -0
- package/src/media/mdx/Dialog/buttons.ru.mdx +45 -0
- package/src/media/mdx/Dialog/dialog.en.mdx +66 -0
- package/src/media/mdx/Dialog/dialog.ru.mdx +65 -0
- package/src/media/mdx/Dialog/events.en.mdx +63 -0
- package/src/media/mdx/Dialog/events.ru.mdx +63 -0
- package/src/media/mdx/Dialog/states.en.mdx +58 -0
- package/src/media/mdx/Dialog/states.ru.mdx +57 -0
- package/src/media/mdx/Dialog/wikiMdxDialog.ts +37 -0
- package/src/media/mdx/Field/arrows.en.mdx +83 -17
- package/src/media/mdx/Field/arrows.ru.mdx +83 -17
- package/src/media/mdx/Field/cancel.en.mdx +47 -10
- package/src/media/mdx/Field/cancel.ru.mdx +47 -10
- package/src/media/mdx/Field/field.en.mdx +45 -15
- package/src/media/mdx/Field/field.ru.mdx +45 -15
- package/src/media/mdx/Field/slots.en.mdx +138 -0
- package/src/media/mdx/Field/slots.ru.mdx +138 -0
- package/src/media/mdx/Field/value.en.mdx +49 -28
- package/src/media/mdx/Field/value.ru.mdx +49 -28
- package/src/media/mdx/Field/width.en.mdx +21 -19
- package/src/media/mdx/Field/width.ru.mdx +21 -19
- package/src/media/mdx/Field/wikiMdxField.ts +14 -26
- package/src/media/mdx/FieldCounter/fieldCounter.en.mdx +52 -14
- package/src/media/mdx/FieldCounter/fieldCounter.ru.mdx +55 -14
- package/src/media/mdx/FieldCounter/templates.en.mdx +26 -6
- package/src/media/mdx/FieldCounter/templates.ru.mdx +25 -5
- package/src/media/mdx/FieldLabel/fieldLabel.en.mdx +56 -14
- package/src/media/mdx/FieldLabel/fieldLabel.ru.mdx +56 -14
- package/src/media/mdx/FieldMessage/fieldMessage.en.mdx +58 -14
- package/src/media/mdx/FieldMessage/fieldMessage.ru.mdx +58 -14
- package/src/media/mdx/FieldMessage/slots.en.mdx +45 -0
- package/src/media/mdx/FieldMessage/slots.ru.mdx +45 -0
- package/src/media/mdx/FieldMessage/wikiMdxFieldMessage.ts +6 -12
- package/src/media/mdx/Icon/expose.isActive.en.mdx +2 -10
- package/src/media/mdx/Icon/expose.isActive.ru.mdx +2 -10
- package/src/media/mdx/Icon/icon.en.mdx +43 -9
- package/src/media/mdx/Icon/icon.ru.mdx +27 -28
- package/src/media/mdx/Image/adaptive.en.mdx +63 -20
- package/src/media/mdx/Image/adaptive.ru.mdx +62 -25
- package/src/media/mdx/Image/event.load.en.mdx +37 -2
- package/src/media/mdx/Image/event.load.ru.mdx +34 -7
- package/src/media/mdx/Image/{expose.type.ru.mdx → expose.en.mdx} +11 -1
- package/src/media/mdx/Image/expose.ru.mdx +31 -0
- package/src/media/mdx/Image/image.en.mdx +46 -0
- package/src/media/mdx/Image/image.ru.mdx +47 -0
- package/src/media/mdx/Image/img-tag.en.mdx +105 -0
- package/src/media/mdx/Image/img-tag.ru.mdx +105 -0
- package/src/media/mdx/Image/size.en.mdx +19 -19
- package/src/media/mdx/Image/size.ru.mdx +19 -23
- package/src/media/mdx/Image/value.en.mdx +10 -27
- package/src/media/mdx/Image/value.ru.mdx +10 -29
- package/src/media/mdx/Image/wikiMdxImage.ts +17 -11
- package/src/media/mdx/Input/currency.en.mdx +38 -0
- package/src/media/mdx/Input/currency.ru.mdx +38 -0
- package/src/media/mdx/Input/date.en.mdx +53 -0
- package/src/media/mdx/Input/date.ru.mdx +53 -0
- package/src/media/mdx/Input/input.en.mdx +143 -0
- package/src/media/mdx/Input/input.ru.mdx +71 -0
- package/src/media/mdx/Input/mask.en.mdx +30 -0
- package/src/media/mdx/Input/mask.ru.mdx +30 -0
- package/src/media/mdx/Input/number.en.mdx +41 -0
- package/src/media/mdx/Input/number.ru.mdx +41 -0
- package/src/media/mdx/Input/type.en.mdx +26 -0
- package/src/media/mdx/Input/type.ru.mdx +26 -0
- package/src/media/mdx/Input/wikiMdxInput.ts +49 -0
- package/src/media/mdx/List/event.close.en.mdx +5 -8
- package/src/media/mdx/List/event.close.ru.mdx +5 -8
- package/src/media/mdx/List/list.en.mdx +56 -14
- package/src/media/mdx/List/list.ru.mdx +56 -14
- package/src/media/mdx/List/lite.en.mdx +17 -12
- package/src/media/mdx/List/lite.ru.mdx +17 -12
- package/src/media/mdx/List/slot.html.en.mdx +72 -21
- package/src/media/mdx/List/slot.html.ru.mdx +72 -21
- package/src/media/mdx/ListGroup/listGroup.en.mdx +55 -1
- package/src/media/mdx/ListGroup/listGroup.ru.mdx +55 -1
- package/src/media/mdx/ListGroup/slots.en.mdx +10 -0
- package/src/media/mdx/ListGroup/slots.ru.mdx +10 -0
- package/src/media/mdx/ListGroup/wikiMdxListGroup.ts +6 -12
- package/src/media/mdx/ListItem/basic.en.mdx +47 -10
- package/src/media/mdx/ListItem/basic.ru.mdx +46 -9
- package/src/media/mdx/ListItem/fill.en.mdx +22 -8
- package/src/media/mdx/ListItem/fill.ru.mdx +22 -8
- package/src/media/mdx/ListItem/slots.en.mdx +7 -0
- package/src/media/mdx/ListItem/slots.ru.mdx +7 -0
- package/src/media/mdx/ListItem/wikiMdxListItem.ts +7 -13
- package/src/media/mdx/ListMenu/listMenu.en.mdx +62 -1
- package/src/media/mdx/ListMenu/listMenu.ru.mdx +62 -1
- package/src/media/mdx/Mask/basic.en.mdx +68 -16
- package/src/media/mdx/Mask/basic.ru.mdx +70 -11
- package/src/media/mdx/Mask/dateTypes.en.mdx +82 -68
- package/src/media/mdx/Mask/dateTypes.ru.mdx +82 -68
- package/src/media/mdx/Mask/expose.en.mdx +20 -0
- package/src/media/mdx/Mask/expose.ru.mdx +20 -0
- package/src/media/mdx/Mask/groupSave.en.mdx +13 -46
- package/src/media/mdx/Mask/groupSave.ru.mdx +13 -46
- package/src/media/mdx/Mask/mask.en.mdx +12 -66
- package/src/media/mdx/Mask/mask.ru.mdx +12 -66
- package/src/media/mdx/Mask/match.en.mdx +16 -24
- package/src/media/mdx/Mask/match.ru.mdx +16 -24
- package/src/media/mdx/Mask/numberTypes.en.mdx +64 -52
- package/src/media/mdx/Mask/numberTypes.ru.mdx +64 -52
- package/src/media/mdx/Mask/pattern.en.mdx +63 -75
- package/src/media/mdx/Mask/pattern.ru.mdx +63 -75
- package/src/media/mdx/Mask/special.en.mdx +174 -97
- package/src/media/mdx/Mask/special.ru.mdx +174 -97
- package/src/media/mdx/Mask/type.en.mdx +12 -36
- package/src/media/mdx/Mask/type.ru.mdx +11 -35
- package/src/media/mdx/Mask/visible.en.mdx +33 -41
- package/src/media/mdx/Mask/visible.ru.mdx +32 -40
- package/src/media/mdx/Mask/wikiMdxMask.ts +6 -0
- package/src/media/mdx/Menu/ajax.en.mdx +44 -51
- package/src/media/mdx/Menu/ajax.ru.mdx +44 -52
- package/src/media/mdx/Menu/event.updateValue.en.mdx +29 -0
- package/src/media/mdx/Menu/event.updateValue.ru.mdx +30 -0
- package/src/media/mdx/Menu/expose.navigation.en.mdx +12 -0
- package/src/media/mdx/Menu/expose.navigation.ru.mdx +12 -0
- package/src/media/mdx/Menu/menu.en.mdx +63 -1
- package/src/media/mdx/Menu/menu.ru.mdx +64 -1
- package/src/media/mdx/Menu/navigation.en.mdx +56 -0
- package/src/media/mdx/Menu/navigation.ru.mdx +56 -0
- package/src/media/mdx/Menu/slots.control.en.mdx +65 -0
- package/src/media/mdx/Menu/slots.control.ru.mdx +65 -0
- package/src/media/mdx/Menu/slots.en.mdx +100 -0
- package/src/media/mdx/Menu/slots.ru.mdx +100 -0
- package/src/media/mdx/Menu/wikiMdxMenu.ts +27 -28
- package/src/media/mdx/Modal/differences.en.mdx +130 -0
- package/src/media/mdx/Modal/differences.ru.mdx +65 -0
- package/src/media/mdx/Modal/modal.en.mdx +63 -0
- package/src/media/mdx/Modal/modal.ru.mdx +63 -0
- package/src/media/mdx/Modal/wikiMdxModal.ts +25 -0
- package/src/media/mdx/MotionTransform/animationHeadPosition.en.mdx +10 -22
- package/src/media/mdx/MotionTransform/animationHeadPosition.ru.mdx +10 -22
- package/src/media/mdx/MotionTransform/classes.en.mdx +18 -25
- package/src/media/mdx/MotionTransform/classes.ru.mdx +18 -25
- package/src/media/mdx/MotionTransform/events.en.mdx +31 -43
- package/src/media/mdx/MotionTransform/events.ru.mdx +31 -43
- package/src/media/mdx/MotionTransform/expose.isShow.en.mdx +2 -4
- package/src/media/mdx/MotionTransform/expose.isShow.ru.mdx +2 -4
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.en.mdx +13 -0
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.ru.mdx +14 -0
- package/src/media/mdx/MotionTransform/ignore.en.mdx +22 -24
- package/src/media/mdx/MotionTransform/ignore.ru.mdx +22 -24
- package/src/media/mdx/MotionTransform/motionTransform.en.mdx +44 -15
- package/src/media/mdx/MotionTransform/motionTransform.ru.mdx +44 -15
- package/src/media/mdx/MotionTransform/slots.en.mdx +92 -0
- package/src/media/mdx/MotionTransform/slots.ru.mdx +92 -0
- package/src/media/mdx/MotionTransform/v-model.en.mdx +23 -14
- package/src/media/mdx/MotionTransform/v-model.ru.mdx +23 -14
- package/src/media/mdx/MotionTransform/wikiMdxMotionTransform.ts +11 -17
- package/src/media/mdx/Progress/circular.en.mdx +7 -20
- package/src/media/mdx/Progress/circular.ru.mdx +7 -20
- package/src/media/mdx/Progress/delays.en.mdx +6 -13
- package/src/media/mdx/Progress/delays.ru.mdx +6 -13
- package/src/media/mdx/Progress/linear.en.mdx +9 -23
- package/src/media/mdx/Progress/linear.ru.mdx +9 -23
- package/src/media/mdx/Progress/progress.en.mdx +67 -5
- package/src/media/mdx/Progress/progress.ru.mdx +67 -5
- package/src/media/mdx/Progress/values.en.mdx +6 -28
- package/src/media/mdx/Progress/values.ru.mdx +6 -29
- package/src/media/mdx/Ripple/ripple.en.mdx +34 -40
- package/src/media/mdx/Ripple/ripple.ru.mdx +34 -40
- package/src/media/mdx/Scrollbar/emits-include.en.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits-include.ru.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits.en.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits.ru.mdx +38 -0
- package/src/media/mdx/Scrollbar/scrollbar.en.mdx +38 -2
- package/src/media/mdx/Scrollbar/scrollbar.ru.mdx +38 -2
- package/src/media/mdx/Scrollbar/wikiMdxScrollbar.ts +12 -43
- package/src/media/mdx/Select/select.en.mdx +69 -0
- package/src/media/mdx/Select/select.ru.mdx +69 -0
- package/src/media/mdx/Select/wikiMdxSelect.ts +19 -0
- package/src/media/mdx/SelectValue/selectValue.en.mdx +64 -0
- package/src/media/mdx/SelectValue/selectValue.ru.mdx +64 -0
- package/src/media/mdx/SelectValue/wikiMdxSelectValue.ts +19 -0
- package/src/media/mdx/Skeleton/classes.en.mdx +13 -0
- package/src/media/mdx/Skeleton/classes.ru.mdx +13 -0
- package/src/media/mdx/Skeleton/expose.isActive.en.mdx +7 -28
- package/src/media/mdx/Skeleton/expose.isActive.ru.mdx +7 -28
- package/src/media/mdx/Skeleton/skeleton.en.mdx +37 -36
- package/src/media/mdx/Skeleton/skeleton.ru.mdx +37 -36
- package/src/media/mdx/Skeleton/wikiMdxSkeleton.ts +7 -0
- package/src/media/mdx/TextareaAutosize/textarea-autosize.en.mdx +65 -0
- package/src/media/mdx/TextareaAutosize/textarea-autosize.ru.mdx +65 -0
- package/src/media/mdx/TextareaAutosize/wikiMdxTextareaAutosize.ts +19 -0
- package/src/media/mdx/Tooltip/event.tooltip.en.mdx +7 -0
- package/src/media/mdx/Tooltip/event.tooltip.ru.mdx +8 -0
- package/src/media/mdx/Tooltip/slot.control.en.mdx +14 -0
- package/src/media/mdx/Tooltip/slot.control.ru.mdx +14 -0
- package/src/media/mdx/Tooltip/tooltip.en.mdx +34 -0
- package/src/media/mdx/Tooltip/tooltip.ru.mdx +34 -0
- package/src/media/mdx/Tooltip/wikiMdxTooltip.ts +31 -0
- package/src/media/mdx/Window/axis.en.mdx +11 -19
- package/src/media/mdx/Window/axis.ru.mdx +11 -19
- package/src/media/mdx/Window/classes.en.mdx +9 -26
- package/src/media/mdx/Window/classes.ru.mdx +9 -26
- package/src/media/mdx/Window/event.window.en.mdx +26 -8
- package/src/media/mdx/Window/event.window.ru.mdx +26 -8
- package/src/media/mdx/Window/expose.en.mdx +44 -0
- package/src/media/mdx/Window/expose.ru.mdx +44 -0
- package/src/media/mdx/Window/hooks.en.mdx +29 -50
- package/src/media/mdx/Window/hooks.ru.mdx +31 -52
- package/src/media/mdx/Window/slots.en.mdx +168 -0
- package/src/media/mdx/Window/slots.ru.mdx +168 -0
- package/src/media/mdx/Window/v-model.en.mdx +20 -11
- package/src/media/mdx/Window/v-model.ru.mdx +19 -11
- package/src/media/mdx/Window/wikiMdxWindow.ts +11 -41
- package/src/media/mdx/Window/window.en.mdx +55 -1
- package/src/media/mdx/Window/window.ru.mdx +55 -1
- package/src/media/mdx/event/events.actions.en.mdx +44 -0
- package/src/media/mdx/event/events.actions.ru.mdx +44 -0
- package/src/media/mdx/event/events.bars.en.mdx +50 -0
- package/src/media/mdx/event/events.bars.ru.mdx +50 -0
- package/src/media/mdx/event/events.beforeinput.en.mdx +13 -0
- package/src/media/mdx/event/events.beforeinput.ru.mdx +13 -0
- package/src/media/mdx/event/events.click.en.mdx +36 -0
- package/src/media/mdx/event/events.click.ru.mdx +36 -0
- package/src/media/mdx/event/events.focus.en.mdx +13 -0
- package/src/media/mdx/event/events.focus.ru.mdx +13 -0
- package/src/media/mdx/event/events.input.en.mdx +89 -0
- package/src/media/mdx/event/events.input.ru.mdx +90 -0
- package/src/media/mdx/event/events.inputStandard.en.mdx +6 -0
- package/src/media/mdx/event/events.inputStandard.ru.mdx +6 -0
- package/src/media/mdx/event/events.keyboard.en.mdx +13 -0
- package/src/media/mdx/event/events.keyboard.ru.mdx +13 -0
- package/src/media/mdx/event/events.paste.en.mdx +6 -0
- package/src/media/mdx/event/events.paste.ru.mdx +6 -0
- package/src/media/mdx/event/events.reset.en.mdx +6 -0
- package/src/media/mdx/event/events.reset.ru.mdx +6 -0
- package/src/media/mdx/event/wikiMdxEvent.ts +50 -73
- package/src/media/mdx/expose/expose.clear.en.mdx +3 -0
- package/src/media/mdx/expose/expose.clear.ru.mdx +3 -0
- package/src/media/mdx/expose/expose.descriptionId.en.mdx +6 -0
- package/src/media/mdx/expose/expose.descriptionId.ru.mdx +6 -0
- package/src/media/mdx/expose/expose.detail.en.mdx +5 -0
- package/src/media/mdx/expose/{detail.ru.mdx → expose.detail.ru.mdx} +1 -3
- package/src/media/mdx/expose/expose.id.en.mdx +6 -0
- package/src/media/mdx/expose/expose.id.ru.mdx +6 -0
- package/src/media/mdx/expose/expose.labelId.en.mdx +6 -0
- package/src/media/mdx/expose/expose.labelId.ru.mdx +6 -0
- package/src/media/mdx/expose/expose.open.en.mdx +5 -0
- package/src/media/mdx/expose/expose.open.ru.mdx +5 -0
- package/src/media/mdx/expose/expose.selected.en.mdx +23 -0
- package/src/media/mdx/expose/expose.selected.ru.mdx +23 -0
- package/src/media/mdx/expose/{value.en.mdx → expose.value.en.mdx} +1 -3
- package/src/media/mdx/expose/{value.ru.mdx → expose.value.ru.mdx} +1 -3
- package/src/media/mdx/expose/wikiMdxExpose.ts +41 -29
- package/src/media/mdx/slot/body.en.mdx +6 -0
- package/src/media/mdx/slot/body.ru.mdx +6 -0
- package/src/media/mdx/slot/caption.en.mdx +2 -7
- package/src/media/mdx/slot/caption.ru.mdx +2 -7
- package/src/media/mdx/slot/control.en.mdx +4 -5
- package/src/media/mdx/slot/control.ru.mdx +4 -5
- package/src/media/mdx/slot/default.en.mdx +2 -7
- package/src/media/mdx/slot/default.ru.mdx +2 -7
- package/src/media/mdx/slot/description.en.mdx +2 -7
- package/src/media/mdx/slot/description.ru.mdx +2 -7
- package/src/media/mdx/slot/footer.en.mdx +4 -5
- package/src/media/mdx/slot/footer.ru.mdx +4 -5
- package/src/media/mdx/slot/headline.en.mdx +7 -0
- package/src/media/mdx/slot/headline.ru.mdx +6 -0
- package/src/media/mdx/slot/label.en.mdx +2 -8
- package/src/media/mdx/slot/label.ru.mdx +2 -8
- package/src/media/mdx/slot/leading.en.mdx +7 -0
- package/src/media/mdx/slot/leading.ru.mdx +7 -0
- package/src/media/mdx/slot/prefix.en.mdx +1 -4
- package/src/media/mdx/slot/prefix.ru.mdx +1 -4
- package/src/media/mdx/slot/secondary.en.mdx +5 -0
- package/src/media/mdx/slot/secondary.ru.mdx +5 -0
- package/src/media/mdx/slot/suffix.en.mdx +1 -4
- package/src/media/mdx/slot/suffix.ru.mdx +1 -4
- package/src/media/mdx/slot/trailing.en.mdx +7 -0
- package/src/media/mdx/slot/trailing.ru.mdx +7 -0
- package/src/media/mdx/slot/wikiMdxSlot.ts +29 -5
- package/src/media/mdx/style/adaptive.en.mdx +6 -16
- package/src/media/mdx/style/adaptive.ru.mdx +6 -16
- package/src/media/mdx/style/asPalette.en.mdx +13 -5
- package/src/media/mdx/style/asPalette.ru.mdx +13 -5
- package/src/media/mdx/style/dir.en.mdx +14 -7
- package/src/media/mdx/style/dir.ru.mdx +14 -7
- package/src/media/mdx/style/isSkeleton.en.mdx +20 -6
- package/src/media/mdx/style/isSkeleton.ru.mdx +19 -5
- package/src/media/mdx/value/highlight.en.mdx +19 -12
- package/src/media/mdx/value/highlight.ru.mdx +19 -12
- package/src/media/mdx/value/labelNumber.en.mdx +39 -20
- package/src/media/mdx/value/labelNumber.ru.mdx +39 -20
- package/src/media/mdx/value/v-model-selected.en.mdx +28 -0
- package/src/media/mdx/value/v-model-selected.ru.mdx +28 -0
- package/src/media/mdx/value/v-model.en.mdx +26 -0
- package/src/media/mdx/value/v-model.ru.mdx +26 -0
- package/src/media/mdx/value/value.en.mdx +6 -12
- package/src/media/mdx/value/value.ru.mdx +6 -12
- package/src/media/mdx/value/wikiMdxValue.ts +24 -3
- package/src/media/mdx/wikiMdx.ts +29 -1
- package/src/media/props/wiki.ts +42 -0
- package/src/media/props/wikiActions.ts +43 -0
- package/src/media/props/wikiActionsInclude.ts +62 -0
- package/src/media/props/wikiAnchor.ts +84 -0
- package/src/media/props/wikiAria.ts +102 -0
- package/src/media/props/wikiArrow.ts +24 -0
- package/src/media/props/wikiArrowInclude.ts +45 -0
- package/src/media/props/wikiBarsInclude.ts +80 -0
- package/src/media/props/wikiChipGroup.ts +39 -0
- package/src/media/props/wikiDialog.ts +34 -0
- package/src/media/props/wikiField.ts +0 -21
- package/src/media/props/wikiFieldCounterInclude.ts +78 -0
- package/src/media/props/wikiForm.ts +248 -0
- package/src/media/props/wikiHook.ts +20 -0
- package/src/media/props/wikiIcon.ts +3 -3
- package/src/media/props/wikiIconInclude.ts +319 -0
- package/src/media/props/wikiImage.ts +71 -19
- package/src/media/props/wikiInformation.ts +160 -0
- package/src/media/props/wikiInput.ts +34 -0
- package/src/media/props/wikiListItem.ts +20 -0
- package/src/media/props/wikiMask.ts +0 -10
- package/src/media/props/wikiMaskInclude.ts +54 -0
- package/src/media/props/wikiMenu.ts +0 -10
- package/src/media/props/wikiMotionTransform.ts +0 -10
- package/src/media/props/wikiOption.ts +113 -0
- package/src/media/props/wikiSelect.ts +68 -0
- package/src/media/props/wikiSelectValue.ts +30 -0
- package/src/media/props/wikiStatus.ts +29 -41
- package/src/media/props/wikiStyle.ts +154 -243
- package/src/media/props/wikiTechnical.ts +65 -0
- package/src/media/props/wikiText.ts +57 -0
- package/src/media/props/wikiTooltip.ts +53 -0
- package/src/media/props/wikiValue.ts +14 -203
- package/src/media/props/wikiWindow.ts +0 -31
- package/src/media/styles/color.md +1 -0
- package/src/media/styles/en/about.mdx +79 -0
- package/src/media/styles/en/color.mdx +711 -0
- package/src/media/styles/en/content.mdx +29 -0
- package/src/media/styles/en/dimension.mdx +233 -0
- package/src/media/styles/en/dir.mdx +193 -0
- package/src/media/styles/en/flex.mdx +249 -0
- package/src/media/styles/en/font.mdx +171 -0
- package/src/media/styles/en/margin.mdx +115 -0
- package/src/media/styles/en/media.mdx +133 -0
- package/src/media/styles/en/padding.mdx +115 -0
- package/src/media/styles/en/position.mdx +183 -0
- package/src/media/styles/en/rules.mdx +117 -0
- package/src/media/styles/en/scrollbar.mdx +27 -0
- package/src/media/styles/en/selector.mdx +153 -0
- package/src/media/styles/en/transform.mdx +114 -0
- package/src/media/styles/ru/about.mdx +78 -0
- package/src/media/styles/ru/color.mdx +711 -0
- package/src/media/styles/ru/content.mdx +30 -0
- package/src/media/styles/ru/dimension.mdx +233 -0
- package/src/media/styles/ru/dir.mdx +193 -0
- package/src/media/styles/ru/flex.mdx +249 -0
- package/src/media/styles/ru/font.mdx +171 -0
- package/src/media/styles/ru/margin.mdx +115 -0
- package/src/media/styles/ru/media.mdx +133 -0
- package/src/media/styles/ru/padding.mdx +115 -0
- package/src/media/styles/ru/position.mdx +183 -0
- package/src/media/styles/ru/rules.mdx +117 -0
- package/src/media/styles/ru/scrollbar.mdx +27 -0
- package/src/media/styles/ru/selector.mdx +153 -0
- package/src/media/styles/ru/transform.mdx +114 -0
- package/src/styles/storybookStyle.scss +4 -1
- package/src/types/storybookTypes.ts +26 -4
- package/src/media/mdx/Bars/slot.actionBars.en.mdx +0 -12
- package/src/media/mdx/Bars/slot.actionBars.ru.mdx +0 -11
- package/src/media/mdx/Bars/slot.bars.en.mdx +0 -12
- package/src/media/mdx/Bars/slot.bars.ru.mdx +0 -11
- package/src/media/mdx/Cell/slot.body.en.mdx +0 -7
- package/src/media/mdx/Cell/slot.body.ru.mdx +0 -7
- package/src/media/mdx/Cell/slot.trailing.en.mdx +0 -7
- package/src/media/mdx/Cell/slot.trailing.ru.mdx +0 -7
- package/src/media/mdx/Field/slot.default.en.mdx +0 -9
- package/src/media/mdx/Field/slot.default.ru.mdx +0 -9
- package/src/media/mdx/Field/slot.leading.en.mdx +0 -10
- package/src/media/mdx/Field/slot.leading.ru.mdx +0 -10
- package/src/media/mdx/Field/slot.trailing.en.mdx +0 -10
- package/src/media/mdx/Field/slot.trailing.ru.mdx +0 -10
- package/src/media/mdx/FieldMessage/slot.helper.en.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.helper.ru.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.validation.en.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.validation.ru.mdx +0 -12
- package/src/media/mdx/Image/expose.data.en.mdx +0 -13
- package/src/media/mdx/Image/expose.data.ru.mdx +0 -13
- package/src/media/mdx/Image/expose.type.en.mdx +0 -21
- package/src/media/mdx/ListGroup/slot.head.en.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.head.ru.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.list.en.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.list.ru.mdx +0 -8
- package/src/media/mdx/ListItem/slot.body.en.mdx +0 -7
- package/src/media/mdx/ListItem/slot.body.ru.mdx +0 -7
- package/src/media/mdx/ListItem/slot.trailing.en.mdx +0 -7
- package/src/media/mdx/ListItem/slot.trailing.ru.mdx +0 -7
- package/src/media/mdx/Menu/slot.contextBottom.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextBottom.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextTop.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextTop.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.control.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.control.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.footer.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.footer.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.title.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.title.ru.mdx +0 -9
- package/src/media/mdx/MotionTransform/slot.body.en.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.body.ru.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.head.en.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.head.ru.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.params.en.mdx +0 -61
- package/src/media/mdx/MotionTransform/slot.params.ru.mdx +0 -61
- package/src/media/mdx/Scrollbar/event.bottom.en.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.bottom.ru.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.edge.en.mdx +0 -14
- package/src/media/mdx/Scrollbar/event.edge.ru.mdx +0 -14
- package/src/media/mdx/Scrollbar/event.leaveBottom.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveBottom.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveTop.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveTop.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachBottom.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachBottom.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachTop.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachTop.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.top.en.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.top.ru.mdx +0 -12
- package/src/media/mdx/Window/expose.control.en.mdx +0 -15
- package/src/media/mdx/Window/expose.control.ru.mdx +0 -15
- package/src/media/mdx/Window/expose.id.en.mdx +0 -7
- package/src/media/mdx/Window/expose.id.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.open.en.mdx +0 -7
- package/src/media/mdx/Window/expose.open.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.setOpen.en.mdx +0 -7
- package/src/media/mdx/Window/expose.setOpen.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toClose.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toClose.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toOpen.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toOpen.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toggle.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toggle.ru.mdx +0 -7
- package/src/media/mdx/event/bars.en.mdx +0 -17
- package/src/media/mdx/event/bars.ru.mdx +0 -14
- package/src/media/mdx/event/barsBack.en.mdx +0 -14
- package/src/media/mdx/event/barsBack.ru.mdx +0 -16
- package/src/media/mdx/event/barsLite.en.mdx +0 -14
- package/src/media/mdx/event/barsLite.ru.mdx +0 -14
- package/src/media/mdx/event/click.en.mdx +0 -18
- package/src/media/mdx/event/click.ru.mdx +0 -18
- package/src/media/mdx/event/clickLite.en.mdx +0 -18
- package/src/media/mdx/event/clickLite.ru.mdx +0 -18
- package/src/media/mdx/event/scrollbarBottom.en.mdx +0 -13
- package/src/media/mdx/event/scrollbarBottom.ru.mdx +0 -13
- package/src/media/mdx/event/scrollbarEdge.en.mdx +0 -15
- package/src/media/mdx/event/scrollbarEdge.ru.mdx +0 -15
- package/src/media/mdx/event/scrollbarLeaveBottom.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveBottom.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveTop.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveTop.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachBottom.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachBottom.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachTop.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachTop.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarTop.en.mdx +0 -13
- package/src/media/mdx/event/scrollbarTop.ru.mdx +0 -13
- package/src/media/mdx/event/window.en.mdx +0 -20
- package/src/media/mdx/event/window.ru.mdx +0 -20
- package/src/media/mdx/expose/detail.en.mdx +0 -7
- package/src/media/mdx/expose/isSelected.en.mdx +0 -8
- package/src/media/mdx/expose/isSelected.ru.mdx +0 -8
- package/src/media/mdx/expose/selectedList.en.mdx +0 -7
- package/src/media/mdx/expose/selectedList.ru.mdx +0 -7
- package/src/media/mdx/expose/selectedNames.en.mdx +0 -7
- package/src/media/mdx/expose/selectedNames.ru.mdx +0 -7
- package/src/media/mdx/expose/selectedValues.en.mdx +0 -8
- package/src/media/mdx/expose/selectedValues.ru.mdx +0 -8
- package/src/media/mdx/slot/title.en.mdx +0 -9
- package/src/media/mdx/slot/title.ru.mdx +0 -9
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
Компонент для кастомизации внешнего вида полосы прокрутки и управления визуальными разделителями на границах прокручиваемой области.
|
|
2
2
|
|
|
3
|
-
Компонент
|
|
3
|
+
Scrollbar скрывает стандартную полосу прокрутки браузера и предоставляет визуальную обратную связь при достижении верхней или нижней границы контента через разделительные линии. Компонент автоматически определяет ширину скроллбара и адаптирует отображение для систем без видимых полос прокрутки (например, macOS с трекпадом).
|
|
4
|
+
|
|
5
|
+
**Основные возможности:**
|
|
6
|
+
|
|
7
|
+
- Скрытие стандартной полосы прокрутки браузера
|
|
8
|
+
- Отображение разделителей при достижении границ контента
|
|
9
|
+
- Независимое управление верхним и нижним разделителями
|
|
10
|
+
- Инверсия логики отображения разделителей
|
|
11
|
+
- События для отслеживания позиции скролла
|
|
12
|
+
- Поддержка бесконечной прокрутки через события `reachBottom`
|
|
13
|
+
|
|
14
|
+
**Типичные сценарии использования:**
|
|
15
|
+
|
|
16
|
+
- Списки с подгрузкой данных при скролле
|
|
17
|
+
- Модальные окна и выпадающие меню с прокручиваемым содержимым
|
|
18
|
+
- Области с фиксированной высотой и вертикальной прокруткой
|
|
19
|
+
- Визуальное разделение контента при прокрутке
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<script setup>
|
|
23
|
+
const handleReachBottom = () => {
|
|
24
|
+
// Загрузка дополнительных данных
|
|
25
|
+
loadMoreItems()
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<Scrollbar
|
|
31
|
+
divider
|
|
32
|
+
@reach-bottom="handleReachBottom"
|
|
33
|
+
>
|
|
34
|
+
<div class="content">
|
|
35
|
+
<!-- Прокручиваемое содержимое -->
|
|
36
|
+
</div>
|
|
37
|
+
</Scrollbar>
|
|
38
|
+
</template>
|
|
39
|
+
```
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import type { StorybookComponentsMdxItem } from '../../../types/storybookTypes'
|
|
2
2
|
|
|
3
|
+
import emitsEn from './emits.en.mdx'
|
|
4
|
+
import emitsRu from './emits.ru.mdx'
|
|
5
|
+
import emitsIncludeEn from './emits-include.en.mdx'
|
|
6
|
+
import emitsIncludeRu from './emits-include.ru.mdx'
|
|
3
7
|
import scrollbarEn from './scrollbar.en.mdx'
|
|
4
8
|
import scrollbarRu from './scrollbar.ru.mdx'
|
|
5
9
|
|
|
6
|
-
import eventBottomEn from './event.bottom.en.mdx'
|
|
7
|
-
import eventBottomRu from './event.bottom.ru.mdx'
|
|
8
|
-
import eventEdgeEn from './event.edge.en.mdx'
|
|
9
|
-
import eventEdgeRu from './event.edge.ru.mdx'
|
|
10
|
-
import eventLeaveBottomEn from './event.leaveBottom.en.mdx'
|
|
11
|
-
import eventLeaveBottomRu from './event.leaveBottom.ru.mdx'
|
|
12
|
-
import eventLeaveTopEn from './event.leaveTop.en.mdx'
|
|
13
|
-
import eventLeaveTopRu from './event.leaveTop.ru.mdx'
|
|
14
|
-
import eventReachBottomEn from './event.reachBottom.en.mdx'
|
|
15
|
-
import eventReachBottomRu from './event.reachBottom.ru.mdx'
|
|
16
|
-
import eventReachTopEn from './event.reachTop.en.mdx'
|
|
17
|
-
import eventReachTopRu from './event.reachTop.ru.mdx'
|
|
18
|
-
import eventTopEn from './event.top.en.mdx'
|
|
19
|
-
import eventTopRu from './event.top.ru.mdx'
|
|
20
|
-
|
|
21
10
|
/**
|
|
22
11
|
* MDX files for Scrollbar component
|
|
23
12
|
*
|
|
@@ -26,37 +15,17 @@ import eventTopRu from './event.top.ru.mdx'
|
|
|
26
15
|
export const wikiMdxScrollbar: StorybookComponentsMdxItem = {
|
|
27
16
|
name: 'Scrollbar',
|
|
28
17
|
descriptions: {
|
|
18
|
+
'emits': {
|
|
19
|
+
en: emitsEn,
|
|
20
|
+
ru: emitsRu
|
|
21
|
+
},
|
|
22
|
+
'emits-include': {
|
|
23
|
+
en: emitsIncludeEn,
|
|
24
|
+
ru: emitsIncludeRu
|
|
25
|
+
},
|
|
29
26
|
'scrollbar': {
|
|
30
27
|
en: scrollbarEn,
|
|
31
28
|
ru: scrollbarRu
|
|
32
|
-
},
|
|
33
|
-
'event.top': {
|
|
34
|
-
en: eventTopEn,
|
|
35
|
-
ru: eventTopRu
|
|
36
|
-
},
|
|
37
|
-
'event.reachTop': {
|
|
38
|
-
en: eventReachTopEn,
|
|
39
|
-
ru: eventReachTopRu
|
|
40
|
-
},
|
|
41
|
-
'event.leaveTop': {
|
|
42
|
-
en: eventLeaveTopEn,
|
|
43
|
-
ru: eventLeaveTopRu
|
|
44
|
-
},
|
|
45
|
-
'event.bottom': {
|
|
46
|
-
en: eventBottomEn,
|
|
47
|
-
ru: eventBottomRu
|
|
48
|
-
},
|
|
49
|
-
'event.reachBottom': {
|
|
50
|
-
en: eventReachBottomEn,
|
|
51
|
-
ru: eventReachBottomRu
|
|
52
|
-
},
|
|
53
|
-
'event.leaveBottom': {
|
|
54
|
-
en: eventLeaveBottomEn,
|
|
55
|
-
ru: eventLeaveBottomRu
|
|
56
|
-
},
|
|
57
|
-
'event.edge': {
|
|
58
|
-
en: eventEdgeEn,
|
|
59
|
-
ru: eventEdgeRu
|
|
60
29
|
}
|
|
61
30
|
}
|
|
62
31
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Component for creating dropdown selection lists with search, filtering, multiple selection, and validation support.
|
|
2
|
+
|
|
3
|
+
Select is a complete selection element that combines Field, Menu, SelectValue, and Input components to create an advanced selection interface. The component automatically displays selected values as text or chips (for multiple selection), provides built-in search and option filtering, supports AJAX data loading with caching. It integrates with all Field component features including validation, labels, counters, and messages.
|
|
4
|
+
|
|
5
|
+
**Key features:**
|
|
6
|
+
|
|
7
|
+
- Single or multiple value selection
|
|
8
|
+
- Built-in search and real-time option filtering
|
|
9
|
+
- AJAX data loading with caching support
|
|
10
|
+
- Editable selected value mode (editValue)
|
|
11
|
+
- Validation with standard Field features
|
|
12
|
+
- Keyboard navigation and accessibility support
|
|
13
|
+
- Automatic display of selected values (text or chips)
|
|
14
|
+
- Maximum number of selected items limitation
|
|
15
|
+
- Icon support for dropdown arrow and search
|
|
16
|
+
- Auto-close control for multiple selection
|
|
17
|
+
- Integration with Field, Menu, SelectValue, Input components
|
|
18
|
+
- Customization via slots and attributes
|
|
19
|
+
- Responsive design for mobile devices
|
|
20
|
+
|
|
21
|
+
**Typical use cases:**
|
|
22
|
+
|
|
23
|
+
- Selecting values from a predefined list of options
|
|
24
|
+
- Filtering and searching in large data lists
|
|
25
|
+
- Multiple item selection with quantity limitation
|
|
26
|
+
- Selection with AJAX data loading from server
|
|
27
|
+
- Forms with validation of selected values
|
|
28
|
+
- Combo boxes with editing capability
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<script setup>
|
|
32
|
+
import { ref } from 'vue'
|
|
33
|
+
|
|
34
|
+
const selectedCountry = ref('us')
|
|
35
|
+
const selectedLanguages = ref(['js', 'ts'])
|
|
36
|
+
|
|
37
|
+
const countries = [
|
|
38
|
+
{ label: 'Russia', value: 'ru' },
|
|
39
|
+
{ label: 'USA', value: 'us' },
|
|
40
|
+
{ label: 'Germany', value: 'de' }
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
const languages = [
|
|
44
|
+
{ label: 'JavaScript', value: 'js' },
|
|
45
|
+
{ label: 'TypeScript', value: 'ts' },
|
|
46
|
+
{ label: 'Python', value: 'py' }
|
|
47
|
+
]
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<!-- Simple selection -->
|
|
52
|
+
<Select
|
|
53
|
+
v-model="selectedCountry"
|
|
54
|
+
label="Country"
|
|
55
|
+
placeholder="Choose a country"
|
|
56
|
+
:option="countries"
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
<!-- Multiple selection -->
|
|
60
|
+
<Select
|
|
61
|
+
v-model="selectedLanguages"
|
|
62
|
+
label="Programming languages"
|
|
63
|
+
:multiple="true"
|
|
64
|
+
:max="3"
|
|
65
|
+
helper-message="Select up to 3 languages"
|
|
66
|
+
:option="languages"
|
|
67
|
+
/>
|
|
68
|
+
</template>
|
|
69
|
+
```
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Компонент для создания выпадающих списков выбора с поддержкой поиска, фильтрации, множественного выбора и валидации.
|
|
2
|
+
|
|
3
|
+
Select представляет собой полнофункциональный элемент выбора, объединяющий компоненты Field, Menu, SelectValue и Input для создания продвинутого интерфейса выбора. Компонент автоматически отображает выбранные значения в виде текста или чипов (для множественного выбора), предоставляет встроенный поиск и фильтрацию опций, поддерживает AJAX загрузку данных с кешированием. Интегрируется со всеми возможностями компонента Field, включая валидацию, подписи, счётчики и сообщения.
|
|
4
|
+
|
|
5
|
+
**Основные возможности:**
|
|
6
|
+
|
|
7
|
+
- Одиночный или множественный выбор значений
|
|
8
|
+
- Встроенный поиск и фильтрация опций в реальном времени
|
|
9
|
+
- AJAX загрузка данных с поддержкой кеширования
|
|
10
|
+
- Режим редактирования выбранного значения (editValue)
|
|
11
|
+
- Валидация со стандартными функциями Field
|
|
12
|
+
- Клавиатурная навигация и поддержка accessibility
|
|
13
|
+
- Автоматическое отображение выбранных значений (текст или чипы)
|
|
14
|
+
- Ограничение максимального количества выбранных элементов
|
|
15
|
+
- Поддержка иконок для стрелки выпадающего списка и поиска
|
|
16
|
+
- Управление автозакрытием для множественного выбора
|
|
17
|
+
- Интеграция с компонентами Field, Menu, SelectValue, Input
|
|
18
|
+
- Кастомизация через слоты и атрибуты
|
|
19
|
+
- Адаптивный дизайн для мобильных устройств
|
|
20
|
+
|
|
21
|
+
**Типичные сценарии использования:**
|
|
22
|
+
|
|
23
|
+
- Выбор значений из предопределённого списка опций
|
|
24
|
+
- Фильтрация и поиск в больших списках данных
|
|
25
|
+
- Множественный выбор элементов с ограничением количества
|
|
26
|
+
- Выбор с AJAX загрузкой данных с сервера
|
|
27
|
+
- Формы с валидацией выбранных значений
|
|
28
|
+
- Комбо-боксы с возможностью редактирования
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<script setup>
|
|
32
|
+
import { ref } from 'vue'
|
|
33
|
+
|
|
34
|
+
const selectedCountry = ref('ru')
|
|
35
|
+
const selectedLanguages = ref(['js', 'ts'])
|
|
36
|
+
|
|
37
|
+
const countries = [
|
|
38
|
+
{ label: 'Россия', value: 'ru' },
|
|
39
|
+
{ label: 'США', value: 'us' },
|
|
40
|
+
{ label: 'Германия', value: 'de' }
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
const languages = [
|
|
44
|
+
{ label: 'JavaScript', value: 'js' },
|
|
45
|
+
{ label: 'TypeScript', value: 'ts' },
|
|
46
|
+
{ label: 'Python', value: 'py' }
|
|
47
|
+
]
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<!-- Простой выбор -->
|
|
52
|
+
<Select
|
|
53
|
+
v-model="selectedCountry"
|
|
54
|
+
label="Страна"
|
|
55
|
+
placeholder="Выберите страну"
|
|
56
|
+
:option="countries"
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
<!-- Множественный выбор -->
|
|
60
|
+
<Select
|
|
61
|
+
v-model="selectedLanguages"
|
|
62
|
+
label="Языки программирования"
|
|
63
|
+
:multiple="true"
|
|
64
|
+
:max="3"
|
|
65
|
+
helper-message="Выберите до 3 языков"
|
|
66
|
+
:option="languages"
|
|
67
|
+
/>
|
|
68
|
+
</template>
|
|
69
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StorybookComponentsMdxItem } from '../../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
import selectEn from './select.en.mdx'
|
|
4
|
+
import selectRu from './select.ru.mdx'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* MDX files for Select component
|
|
8
|
+
*
|
|
9
|
+
* MDX файлы для компонента Select
|
|
10
|
+
*/
|
|
11
|
+
export const wikiMdxSelect: StorybookComponentsMdxItem = {
|
|
12
|
+
name: 'Select',
|
|
13
|
+
descriptions: {
|
|
14
|
+
select: {
|
|
15
|
+
en: selectEn,
|
|
16
|
+
ru: selectRu
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Component for displaying selected values in selection controls with support for single and multiple modes.
|
|
2
|
+
|
|
3
|
+
SelectValue manages the visualization of selected items, automatically switching between text display for single selection and chips for multiple selection. The component integrates with the event system to handle user actions, supports icon display, placeholders, and cancel buttons for selections.
|
|
4
|
+
|
|
5
|
+
**Key features:**
|
|
6
|
+
|
|
7
|
+
- Automatic switching between single and multiple selection modes
|
|
8
|
+
- Chip rendering with customizable appearance for multiple selections
|
|
9
|
+
- Placeholder support for empty state
|
|
10
|
+
- Icon display in selected items
|
|
11
|
+
- Cancel buttons for removing individual selections
|
|
12
|
+
- Integration with Chip component for element styling
|
|
13
|
+
- Handling disabled and readonly states
|
|
14
|
+
|
|
15
|
+
**Typical use cases:**
|
|
16
|
+
|
|
17
|
+
- Displaying selected options in selects and comboboxes
|
|
18
|
+
- Visualizing multiple selections in lists
|
|
19
|
+
- Showing active filters with removal capability
|
|
20
|
+
- Displaying tags and categories
|
|
21
|
+
- Representing selected elements in forms
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<script setup>
|
|
25
|
+
import { ref } from 'vue'
|
|
26
|
+
|
|
27
|
+
const selectedSingle = ref([
|
|
28
|
+
{ label: 'JavaScript', value: 'js', icon: 'code', index: '1' }
|
|
29
|
+
])
|
|
30
|
+
|
|
31
|
+
const selectedMultiple = ref([
|
|
32
|
+
{ label: 'React', value: 'react', icon: 'favorite', index: '1' },
|
|
33
|
+
{ label: 'Vue.js', value: 'vue', icon: 'star', index: '2' }
|
|
34
|
+
])
|
|
35
|
+
|
|
36
|
+
const handleClick = (event) => {
|
|
37
|
+
console.log('Element clicked:', event)
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<!-- Single selection -->
|
|
43
|
+
<SelectValue
|
|
44
|
+
:value="selectedSingle"
|
|
45
|
+
:icon-show="true"
|
|
46
|
+
@click="handleClick"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<!-- Multiple selection with chips -->
|
|
50
|
+
<SelectValue
|
|
51
|
+
:value="selectedMultiple"
|
|
52
|
+
:multiple="true"
|
|
53
|
+
:icon-show="true"
|
|
54
|
+
icon-cancel="close"
|
|
55
|
+
@click="handleClick"
|
|
56
|
+
/>
|
|
57
|
+
|
|
58
|
+
<!-- With placeholder -->
|
|
59
|
+
<SelectValue
|
|
60
|
+
placeholder="Select a value"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
```
|
|
64
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Компонент для отображения выбранных значений в элементах управления выбором с поддержкой одиночного и множественного режимов.
|
|
2
|
+
|
|
3
|
+
SelectValue управляет визуализацией выбранных элементов, автоматически переключаясь между текстовым отображением для одиночного выбора и чипами для множественного. Компонент интегрируется с системой событий для обработки действий пользователя, поддерживает отображение иконок, плейсхолдеров и кнопок отмены выбора.
|
|
4
|
+
|
|
5
|
+
**Основные возможности:**
|
|
6
|
+
|
|
7
|
+
- Автоматическое переключение между режимами одиночного и множественного выбора
|
|
8
|
+
- Рендеринг чипов с настраиваемым внешним видом для множественного выбора
|
|
9
|
+
- Поддержка плейсхолдера для пустого состояния
|
|
10
|
+
- Отображение иконок в выбранных элементах
|
|
11
|
+
- Кнопки отмены для удаления отдельных выборов
|
|
12
|
+
- Интеграция с Chip компонентом для стилизации элементов
|
|
13
|
+
- Обработка состояний disabled и readonly
|
|
14
|
+
|
|
15
|
+
**Типичные сценарии использования:**
|
|
16
|
+
|
|
17
|
+
- Отображение выбранных опций в селектах и комбобоксах
|
|
18
|
+
- Визуализация множественного выбора в списках
|
|
19
|
+
- Показ активных фильтров с возможностью удаления
|
|
20
|
+
- Отображение тегов и категорий
|
|
21
|
+
- Представление выбранных элементов в формах
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<script setup>
|
|
25
|
+
import { ref } from 'vue'
|
|
26
|
+
|
|
27
|
+
const selectedSingle = ref([
|
|
28
|
+
{ label: 'JavaScript', value: 'js', icon: 'code', index: '1' }
|
|
29
|
+
])
|
|
30
|
+
|
|
31
|
+
const selectedMultiple = ref([
|
|
32
|
+
{ label: 'React', value: 'react', icon: 'favorite', index: '1' },
|
|
33
|
+
{ label: 'Vue.js', value: 'vue', icon: 'star', index: '2' }
|
|
34
|
+
])
|
|
35
|
+
|
|
36
|
+
const handleClick = (event) => {
|
|
37
|
+
console.log('Клик по элементу:', event)
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<!-- Одиночный выбор -->
|
|
43
|
+
<SelectValue
|
|
44
|
+
:value="selectedSingle"
|
|
45
|
+
:icon-show="true"
|
|
46
|
+
@click="handleClick"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<!-- Множественный выбор с чипами -->
|
|
50
|
+
<SelectValue
|
|
51
|
+
:value="selectedMultiple"
|
|
52
|
+
:multiple="true"
|
|
53
|
+
:icon-show="true"
|
|
54
|
+
icon-cancel="close"
|
|
55
|
+
@click="handleClick"
|
|
56
|
+
/>
|
|
57
|
+
|
|
58
|
+
<!-- С плейсхолдером -->
|
|
59
|
+
<SelectValue
|
|
60
|
+
placeholder="Выберите значение"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
```
|
|
64
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StorybookComponentsMdxItem } from '../../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
import selectValueEn from './selectValue.en.mdx'
|
|
4
|
+
import selectValueRu from './selectValue.ru.mdx'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* MDX files for SelectValue component
|
|
8
|
+
*
|
|
9
|
+
* MDX файлы для компонента SelectValue
|
|
10
|
+
*/
|
|
11
|
+
export const wikiMdxSelectValue: StorybookComponentsMdxItem = {
|
|
12
|
+
name: 'SelectValue',
|
|
13
|
+
descriptions: {
|
|
14
|
+
selectValue: {
|
|
15
|
+
en: selectValueEn,
|
|
16
|
+
ru: selectValueRu
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## CSS Classes for Display Control
|
|
2
|
+
|
|
3
|
+
- `*__text` — main class for text skeleton
|
|
4
|
+
- `*__textVariant` — text class variant for additional styling
|
|
5
|
+
- `*__background` — main background class for skeleton
|
|
6
|
+
- `*__backgroundAfter` — background class for `::after` pseudo-element
|
|
7
|
+
- `*__backgroundBefore` — background class for `::before` pseudo-element
|
|
8
|
+
- `*__backgroundVariant` — background class variant
|
|
9
|
+
- `*__border` — class for skeleton border styling
|
|
10
|
+
- `*__borderVariant` — border class variant
|
|
11
|
+
- `*__none` — class to disable skeleton display
|
|
12
|
+
|
|
13
|
+
Where `*` is the component class name (e.g., `d1-skeleton`, `m3-skeleton`).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## CSS классы для управления отображением
|
|
2
|
+
|
|
3
|
+
- `*__text` — основной класс для текстового скелета
|
|
4
|
+
- `*__textVariant` — вариант текстового класса для дополнительной стилизации
|
|
5
|
+
- `*__background` — основной фоновый класс скелета
|
|
6
|
+
- `*__backgroundAfter` — фоновый класс для псевдоэлемента `::after`
|
|
7
|
+
- `*__backgroundBefore` — фоновый класс для псевдоэлемента `::before`
|
|
8
|
+
- `*__backgroundVariant` — вариант фонового класса
|
|
9
|
+
- `*__border` — класс для стилизации границ скелета
|
|
10
|
+
- `*__borderVariant` — вариант класса границ
|
|
11
|
+
- `*__none` — класс для отключения отображения скелета
|
|
12
|
+
|
|
13
|
+
Где `*` — название класса компонента (например, `d1-skeleton`, `m3-skeleton`).
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
### `isActive`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Computed property that provides access to the current activation state of the skeleton.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Type:** `ComputedRef<boolean>`
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#### Purpose
|
|
10
|
-
|
|
11
|
-
The exported `isActive` value provides external access to the skeleton's activation state. This is useful for:
|
|
12
|
-
|
|
13
|
-
- Synchronizing state with parent components
|
|
14
|
-
- Creating dependent computations in the parent component
|
|
15
|
-
- Programmatically controlling behavior of other elements based on skeleton state
|
|
16
|
-
|
|
17
|
-
#### Usage
|
|
18
|
-
|
|
19
|
-
Access the exported value through a template reference:
|
|
7
|
+
**Purpose:** Reflects the current state of the component's `active` property. Useful for synchronizing state with parent components and programmatically controlling behavior of other elements.
|
|
20
8
|
|
|
21
9
|
```html
|
|
22
10
|
<template>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
</Skeleton>
|
|
11
|
+
<Skeleton ref="skeletonRef" :active="isLoading">
|
|
12
|
+
<div class="skeleton__text">Loading content</div>
|
|
13
|
+
</Skeleton>
|
|
27
14
|
|
|
28
|
-
|
|
29
|
-
</div>
|
|
15
|
+
<p v-if="skeletonRef?.isActive">Loading...</p>
|
|
30
16
|
</template>
|
|
31
17
|
|
|
32
18
|
<script setup>
|
|
@@ -34,12 +20,5 @@ import { ref } from 'vue'
|
|
|
34
20
|
|
|
35
21
|
const skeletonRef = ref()
|
|
36
22
|
const isLoading = ref(true)
|
|
37
|
-
|
|
38
|
-
// Programmatic state access
|
|
39
|
-
const checkSkeletonState = () => {
|
|
40
|
-
if (skeletonRef.value?.isActive) {
|
|
41
|
-
console.log('Skeleton is active')
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
23
|
</script>
|
|
45
24
|
```
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
### `isActive`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Вычисляемое свойство, которое предоставляет доступ к текущему состоянию активности скелетона.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Тип:** `ComputedRef<boolean>`
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#### Назначение
|
|
10
|
-
|
|
11
|
-
Экспортируемое значение `isActive` предоставляет доступ к состоянию активности скелетона извне компонента. Это полезно для:
|
|
12
|
-
|
|
13
|
-
- Синхронизации состояния с родительскими компонентами
|
|
14
|
-
- Создания зависимых вычислений в родительском компоненте
|
|
15
|
-
- Программного контроля поведения других элементов в зависимости от состояния скелетона
|
|
16
|
-
|
|
17
|
-
#### Использование
|
|
18
|
-
|
|
19
|
-
Получить доступ к экспортируемому значению можно через шаблонную ссылку:
|
|
7
|
+
**Назначение:** Отражает текущее состояние свойства `active` компонента. Полезно для синхронизации состояния с родительскими компонентами и программного управления поведением других элементов.
|
|
20
8
|
|
|
21
9
|
```html
|
|
22
10
|
<template>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
</Skeleton>
|
|
11
|
+
<Skeleton ref="skeletonRef" :active="isLoading">
|
|
12
|
+
<div class="skeleton__text">Загрузка контента</div>
|
|
13
|
+
</Skeleton>
|
|
27
14
|
|
|
28
|
-
|
|
29
|
-
</div>
|
|
15
|
+
<p v-if="skeletonRef?.isActive">Загрузка...</p>
|
|
30
16
|
</template>
|
|
31
17
|
|
|
32
18
|
<script setup>
|
|
@@ -34,12 +20,5 @@ import { ref } from 'vue'
|
|
|
34
20
|
|
|
35
21
|
const skeletonRef = ref()
|
|
36
22
|
const isLoading = ref(true)
|
|
37
|
-
|
|
38
|
-
// Программное получение состояния
|
|
39
|
-
const checkSkeletonState = () => {
|
|
40
|
-
if (skeletonRef.value?.isActive) {
|
|
41
|
-
console.log('Скелетон активен')
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
23
|
</script>
|
|
45
24
|
```
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
Component for creating animated interface placeholders during content loading.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Skeleton provides smooth transitions between loading state and real content display. The component automatically manages child element visibility through the `active` property and supports a CSS class system for creating various types of placeholders.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Key Features:**
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Automatic content visibility management
|
|
8
|
+
- Support for special CSS classes for placeholders
|
|
9
|
+
- Component integration via `isSkeleton` flag
|
|
10
|
+
- Flexible placeholder types (text, background, borders)
|
|
11
|
+
- Animated loading effects
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
**Common Use Cases:**
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- `skeleton__background` — for background placeholders
|
|
17
|
-
- `skeleton__backgroundAfter` — background placeholder via ::after pseudo-element
|
|
18
|
-
- `skeleton__backgroundBefore` — background placeholder via ::before pseudo-element
|
|
19
|
-
- `skeleton__backgroundVariant` — alternative variant of background placeholders
|
|
20
|
-
- `skeleton__border` — for border placeholders
|
|
21
|
-
- `skeleton__borderVariant` — alternative variant of border placeholders
|
|
22
|
-
- `skeleton__none` — elements that are always hidden in skeleton mode (even if they have other special classes)
|
|
23
|
-
|
|
24
|
-
2. **Components with `isSkeleton=true` property**
|
|
25
|
-
|
|
26
|
-
When `active` is set to `false`, all child elements are displayed in normal mode.
|
|
27
|
-
|
|
28
|
-
### Recommendations
|
|
29
|
-
|
|
30
|
-
- Use the component to improve user experience during data loading
|
|
31
|
-
- Apply special skeleton classes to elements that should display as placeholders
|
|
32
|
-
- Place placeholders where real content will appear
|
|
33
|
-
|
|
34
|
-
### Usage example
|
|
15
|
+
- Product and user card placeholders
|
|
16
|
+
- List and table skeletons
|
|
17
|
+
- Image and avatar placeholders
|
|
18
|
+
- Text blocks during loading
|
|
19
|
+
- Complex forms with multiple fields
|
|
35
20
|
|
|
36
21
|
```html
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
<script setup>
|
|
23
|
+
import { ref } from 'vue'
|
|
24
|
+
|
|
25
|
+
const isLoading = ref(true)
|
|
26
|
+
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
isLoading.value = false
|
|
29
|
+
}, 2000)
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<Skeleton :active="isLoading">
|
|
34
|
+
<!-- Placeholders visible during loading -->
|
|
35
|
+
<div class="skeleton__background avatar"></div>
|
|
36
|
+
<div class="skeleton__text title"></div>
|
|
37
|
+
<div class="skeleton__textVariant subtitle"></div>
|
|
38
|
+
|
|
39
|
+
<!-- Real content -->
|
|
40
|
+
<img src="/avatar.jpg" alt="User avatar" />
|
|
41
|
+
<h3>{{ user.name }}</h3>
|
|
42
|
+
<p>{{ user.description }}</p>
|
|
43
|
+
</Skeleton>
|
|
44
|
+
</template>
|
|
44
45
|
```
|