@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
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Descriptions for Input component
|
|
5
|
+
*
|
|
6
|
+
* Описания свойств компонента Input
|
|
7
|
+
*/
|
|
8
|
+
export const wikiDescriptionsInput: StorybookComponentsDescriptionItem = {
|
|
9
|
+
name: 'Input',
|
|
10
|
+
description: {
|
|
11
|
+
en: 'Text input field component with validation, masking and formatting support',
|
|
12
|
+
ru: 'Компонент текстового поля ввода с поддержкой валидации, маскирования и форматирования'
|
|
13
|
+
},
|
|
14
|
+
possibilities: {
|
|
15
|
+
en: [
|
|
16
|
+
'multiple input types: text, number, email, password, tel, url, date, time and more',
|
|
17
|
+
'built-in validation with custom messages',
|
|
18
|
+
'mask support for formatted input (phone, date, custom patterns)',
|
|
19
|
+
'currency and number formatting',
|
|
20
|
+
'password visibility toggle',
|
|
21
|
+
'prefix and suffix support',
|
|
22
|
+
'counter for character limits',
|
|
23
|
+
'navigation arrows for numeric and selection inputs',
|
|
24
|
+
'autocomplete, spellcheck and autocorrect support',
|
|
25
|
+
'integrated with Field component for consistent styling'
|
|
26
|
+
],
|
|
27
|
+
ru: [
|
|
28
|
+
'множественные типы ввода: text, number, email, password, tel, url, date, time и другие',
|
|
29
|
+
'встроенная валидация с пользовательскими сообщениями',
|
|
30
|
+
'поддержка маскирования для форматированного ввода (телефон, дата, пользовательские паттерны)',
|
|
31
|
+
'форматирование валюты и чисел',
|
|
32
|
+
'переключатель видимости пароля',
|
|
33
|
+
'поддержка префикса и суффикса',
|
|
34
|
+
'счётчик для ограничения символов',
|
|
35
|
+
'стрелки навигации для числовых и выборочных полей',
|
|
36
|
+
'поддержка автозаполнения, проверки орфографии и автокоррекции',
|
|
37
|
+
'интегрирован с компонентом Field для единообразной стилизации'
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
import: [
|
|
41
|
+
'import { ref } from \'vue\''
|
|
42
|
+
],
|
|
43
|
+
render: `
|
|
44
|
+
<DesignComponent v-bind="args" />
|
|
45
|
+
`,
|
|
46
|
+
stories: [
|
|
47
|
+
{
|
|
48
|
+
id: 'InputTypes',
|
|
49
|
+
name: {
|
|
50
|
+
en: 'Input types',
|
|
51
|
+
ru: 'Типы ввода'
|
|
52
|
+
},
|
|
53
|
+
template: `
|
|
54
|
+
<div class="wiki-storybook-flex-column">
|
|
55
|
+
<DesignComponent type="text" label="Text" placeholder="Enter text" />
|
|
56
|
+
<DesignComponent type="email" label="Email" placeholder="email@example.com" />
|
|
57
|
+
<DesignComponent type="password" label="Password" placeholder="Enter password" />
|
|
58
|
+
<DesignComponent type="number" label="Number" placeholder="0" />
|
|
59
|
+
<DesignComponent type="text" label="Phone" mask="+1 (***) ***-****" placeholder="+1 (555) 000-0000" />
|
|
60
|
+
<DesignComponent type="date" label="Date" />
|
|
61
|
+
<DesignComponent type="search" label="Search" placeholder="Search..." />
|
|
62
|
+
</div>
|
|
63
|
+
`
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'InputNumber',
|
|
67
|
+
name: {
|
|
68
|
+
en: 'Number formatting',
|
|
69
|
+
ru: 'Форматирование чисел'
|
|
70
|
+
},
|
|
71
|
+
template: `
|
|
72
|
+
<div class="wiki-storybook-flex-column">
|
|
73
|
+
<DesignComponent type="number" value="1234567" label="Number" />
|
|
74
|
+
<DesignComponent type="number-format" value="1234567" language="en-US" label="Formatted" />
|
|
75
|
+
<DesignComponent type="number" value="50" :min="0" :max="100" label="From 0 to 100" />
|
|
76
|
+
<DesignComponent type="number" value="10" arrow="stepper" :step="5" :arrow-step="10" label="Step 5/10" />
|
|
77
|
+
<DesignComponent type="number-format" value="1234567.89" align="center" :fraction="2" label="Centered" />
|
|
78
|
+
</div>
|
|
79
|
+
`
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'InputCurrency',
|
|
83
|
+
name: {
|
|
84
|
+
en: 'Currency & number formatting',
|
|
85
|
+
ru: 'Валюта и форматирование чисел'
|
|
86
|
+
},
|
|
87
|
+
template: `
|
|
88
|
+
<div class="wiki-storybook-flex-column">
|
|
89
|
+
<DesignComponent
|
|
90
|
+
type="currency"
|
|
91
|
+
label="Price (USD)"
|
|
92
|
+
currency="USD"
|
|
93
|
+
/>
|
|
94
|
+
<DesignComponent
|
|
95
|
+
type="currency"
|
|
96
|
+
label="Price (USD)"
|
|
97
|
+
currency="USD"
|
|
98
|
+
value="1234.56"
|
|
99
|
+
/>
|
|
100
|
+
<DesignComponent
|
|
101
|
+
type="currency"
|
|
102
|
+
label="Price (currency-hide)"
|
|
103
|
+
currency="EUR"
|
|
104
|
+
currency-hide
|
|
105
|
+
value="1234.56"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
`
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'InputDate',
|
|
112
|
+
name: {
|
|
113
|
+
en: 'Date and time',
|
|
114
|
+
ru: 'Дата и время'
|
|
115
|
+
},
|
|
116
|
+
template: `
|
|
117
|
+
<div class="wiki-storybook-flex-column">
|
|
118
|
+
<DesignComponent type="date" label="Date" language="ru-RU" />
|
|
119
|
+
<DesignComponent type="datetime" label="Date and Time" language="en-US" />
|
|
120
|
+
<DesignComponent type="year-month" label="Period" language="ru-RU" />
|
|
121
|
+
<DesignComponent type="time" label="Time" />
|
|
122
|
+
<DesignComponent type="hour-minute" label="Hours:Minutes" />
|
|
123
|
+
<DesignComponent type="date" label="Limited Date" language="ru-RU" min="2024-01-01" max="2024-12-31" />
|
|
124
|
+
</div>
|
|
125
|
+
`
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'InputMask',
|
|
129
|
+
name: {
|
|
130
|
+
en: 'Masked input',
|
|
131
|
+
ru: 'Маскированный ввод'
|
|
132
|
+
},
|
|
133
|
+
template: `
|
|
134
|
+
<div class="wiki-storybook-flex-column">
|
|
135
|
+
<DesignComponent type="tel" mask="+1 (###) ###-####" placeholder="+1 (555) 000-0000" label="Phone" />
|
|
136
|
+
<DesignComponent type="text" mask="#### #### #### ####" placeholder="0000 0000 0000 0000" label="Card" />
|
|
137
|
+
<DesignComponent type="tel" mask="+1 (###) ###-####" :mask-visible="false" label="No placeholder" />
|
|
138
|
+
</div>
|
|
139
|
+
`
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: 'InputVModel',
|
|
143
|
+
name: {
|
|
144
|
+
en: 'Two-way binding (v-model)',
|
|
145
|
+
ru: 'Двусторонняя привязка (v-model)'
|
|
146
|
+
},
|
|
147
|
+
setup: `
|
|
148
|
+
return {
|
|
149
|
+
inputValue: ref('Initial value'),
|
|
150
|
+
maskValue: ref(''),
|
|
151
|
+
numberValue: ref(42)
|
|
152
|
+
}
|
|
153
|
+
`,
|
|
154
|
+
template: `
|
|
155
|
+
<div class="wiki-storybook-flex-column">
|
|
156
|
+
<div class="wiki-storybook-flex">
|
|
157
|
+
<button class="wiki-storybook-button" @click="inputValue = 'Changed value'">Set text</button>
|
|
158
|
+
<button class="wiki-storybook-button" @click="inputValue = ''">Clear</button>
|
|
159
|
+
</div>
|
|
160
|
+
<DesignComponent
|
|
161
|
+
v-model="inputValue"
|
|
162
|
+
type="text"
|
|
163
|
+
label="Text input"
|
|
164
|
+
placeholder="Enter text"
|
|
165
|
+
/>
|
|
166
|
+
<div>Value: {{ inputValue }}</div>
|
|
167
|
+
|
|
168
|
+
<div class="wiki-storybook-flex">
|
|
169
|
+
<button class="wiki-storybook-button" @click="maskValue = '2022-05-13'">Set date</button>
|
|
170
|
+
<button class="wiki-storybook-button" @click="maskValue = ''">Clear</button>
|
|
171
|
+
</div>
|
|
172
|
+
<DesignComponent
|
|
173
|
+
v-model="maskValue"
|
|
174
|
+
type="date"
|
|
175
|
+
label="Date input"
|
|
176
|
+
/>
|
|
177
|
+
<div>Mask: {{ maskValue }}</div>
|
|
178
|
+
|
|
179
|
+
<div class="wiki-storybook-flex">
|
|
180
|
+
<button class="wiki-storybook-button" @click="numberValue += 10">+10</button>
|
|
181
|
+
<button class="wiki-storybook-button" @click="numberValue -= 10">-10</button>
|
|
182
|
+
</div>
|
|
183
|
+
<DesignComponent
|
|
184
|
+
v-model="numberValue"
|
|
185
|
+
type="number"
|
|
186
|
+
label="Number input"
|
|
187
|
+
:step="1"
|
|
188
|
+
/>
|
|
189
|
+
<div>Number: {{ numberValue }}</div>
|
|
190
|
+
</div>
|
|
191
|
+
`
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: 'InputSkeleton',
|
|
195
|
+
name: {
|
|
196
|
+
en: 'Skeleton',
|
|
197
|
+
ru: 'Скелетон'
|
|
198
|
+
},
|
|
199
|
+
components: ['Skeleton'],
|
|
200
|
+
template: `
|
|
201
|
+
<DesignSkeleton :active="true" style="max-width:320px">
|
|
202
|
+
<div class="wiki-storybook-flex-column">
|
|
203
|
+
<DesignComponent
|
|
204
|
+
isSkeleton
|
|
205
|
+
label="Loading field"
|
|
206
|
+
helperMessage="This field is loading..."
|
|
207
|
+
/>
|
|
208
|
+
<DesignComponent
|
|
209
|
+
isSkeleton
|
|
210
|
+
label="Another field"
|
|
211
|
+
counterShow
|
|
212
|
+
/>
|
|
213
|
+
</div>
|
|
214
|
+
</DesignSkeleton>
|
|
215
|
+
`
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
documentation: {
|
|
219
|
+
body: `
|
|
220
|
+
<StorybookDescriptions componentName={'Input'} type={'input'}/>
|
|
221
|
+
|
|
222
|
+
<StorybookDescriptions componentName={'Input'} type={'type'}/>
|
|
223
|
+
<Canvas of={Component.InputTypes}/>
|
|
224
|
+
|
|
225
|
+
<StorybookDescriptions componentName={'Input'} type={'number'}/>
|
|
226
|
+
<Canvas of={Component.InputNumber}/>
|
|
227
|
+
|
|
228
|
+
<StorybookDescriptions componentName={'Input'} type={'currency'}/>
|
|
229
|
+
<Canvas of={Component.InputCurrency}/>
|
|
230
|
+
|
|
231
|
+
<StorybookDescriptions componentName={'Input'} type={'date'}/>
|
|
232
|
+
<Canvas of={Component.InputDate}/>
|
|
233
|
+
|
|
234
|
+
<StorybookDescriptions componentName={'Input'} type={'mask'}/>
|
|
235
|
+
<Canvas of={Component.InputMask}/>
|
|
236
|
+
|
|
237
|
+
<StorybookDescriptions componentName={'Value'} type={'value'}/>
|
|
238
|
+
<StorybookDescriptions componentName={'Value'} type={'v-model'}/>
|
|
239
|
+
<Canvas of={Component.InputVModel}/>
|
|
240
|
+
|
|
241
|
+
<StorybookDescriptions componentName={'Style'} type={'isSkeleton'}/>
|
|
242
|
+
<Canvas of={Component.InputSkeleton}/>
|
|
243
|
+
`,
|
|
244
|
+
events: `
|
|
245
|
+
<StorybookDescriptions componentName={'Event'} type={'input'}/>
|
|
246
|
+
<StorybookDescriptions componentName={'Event'} type={'change'}/>
|
|
247
|
+
`,
|
|
248
|
+
slots: `
|
|
249
|
+
<StorybookDescriptions componentName={'Slot'} type={'label'} />
|
|
250
|
+
<StorybookDescriptions componentName={'Slot'} type={'prefix'} />
|
|
251
|
+
<StorybookDescriptions componentName={'Slot'} type={'suffix'} />
|
|
252
|
+
<StorybookDescriptions componentName={'Slot'} type={'caption'} />
|
|
253
|
+
<StorybookDescriptions componentName={'Slot'} type={'leading'} />
|
|
254
|
+
<StorybookDescriptions componentName={'Slot'} type={'trailing'} />
|
|
255
|
+
`
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -108,14 +108,10 @@ export const wikiDescriptionsList: StorybookComponentsDescriptionItem = {
|
|
|
108
108
|
`,
|
|
109
109
|
events: `
|
|
110
110
|
<StorybookDescriptions componentName={'Event'} type={'click'}/>
|
|
111
|
-
<StorybookDescriptions componentName={'Event'} type={'clickLite'}/>
|
|
112
111
|
<StorybookDescriptions componentName={'List'} type={'event.close'}/>
|
|
113
112
|
`,
|
|
114
113
|
expose: `
|
|
115
|
-
<StorybookDescriptions componentName={'Expose'} type={'
|
|
116
|
-
<StorybookDescriptions componentName={'Expose'} type={'selectedList'}/>
|
|
117
|
-
<StorybookDescriptions componentName={'Expose'} type={'selectedNames'}/>
|
|
118
|
-
<StorybookDescriptions componentName={'Expose'} type={'selectedValues'}/>
|
|
114
|
+
<StorybookDescriptions componentName={'Expose'} type={'selected'}/>
|
|
119
115
|
`,
|
|
120
116
|
slots: `
|
|
121
117
|
<StorybookDescriptions componentName={'List'} type={'slot.html'}/>
|
|
@@ -70,11 +70,10 @@ export const wikiDescriptionsListGroup: StorybookComponentsDescriptionItem = {
|
|
|
70
70
|
<StorybookDescriptions componentName={'ListGroup'} type={'listGroup'}/>
|
|
71
71
|
`,
|
|
72
72
|
expose: `
|
|
73
|
-
<StorybookDescriptions componentName={'
|
|
73
|
+
<StorybookDescriptions componentName={'Expose'} type={'open'}/>
|
|
74
74
|
`,
|
|
75
75
|
slots: `
|
|
76
|
-
<StorybookDescriptions componentName={'ListGroup'} type={'
|
|
77
|
-
<StorybookDescriptions componentName={'ListGroup'} type={'slot.list'}/>
|
|
76
|
+
<StorybookDescriptions componentName={'ListGroup'} type={'slots'}/>
|
|
78
77
|
`
|
|
79
78
|
}
|
|
80
79
|
}
|
|
@@ -131,7 +131,6 @@ export const wikiDescriptionsListItem: StorybookComponentsDescriptionItem = {
|
|
|
131
131
|
`,
|
|
132
132
|
events: `
|
|
133
133
|
<StorybookDescriptions componentName={'Event'} type={'click'}/>
|
|
134
|
-
<StorybookDescriptions componentName={'Event'} type={'clickLite'}/>
|
|
135
134
|
`,
|
|
136
135
|
expose: `
|
|
137
136
|
<StorybookDescriptions componentName={'Expose'} type={'value'}/>
|
|
@@ -143,8 +142,7 @@ export const wikiDescriptionsListItem: StorybookComponentsDescriptionItem = {
|
|
|
143
142
|
<StorybookDescriptions componentName={'Slot'} type={'caption'}/>
|
|
144
143
|
<StorybookDescriptions componentName={'Slot'} type={'suffix'}/>
|
|
145
144
|
<StorybookDescriptions componentName={'Slot'} type={'description'}/>
|
|
146
|
-
<StorybookDescriptions componentName={'ListItem'} type={'
|
|
147
|
-
<StorybookDescriptions componentName={'ListItem'} type={'slot.body'}/>
|
|
145
|
+
<StorybookDescriptions componentName={'ListItem'} type={'slots'}/>
|
|
148
146
|
`
|
|
149
147
|
}
|
|
150
148
|
}
|
|
@@ -68,17 +68,10 @@ export const wikiDescriptionsListMenu: StorybookComponentsDescriptionItem = {
|
|
|
68
68
|
<StorybookDescriptions componentName={'Image'} type={'event.load'}/>
|
|
69
69
|
`,
|
|
70
70
|
expose: `
|
|
71
|
-
<StorybookDescriptions componentName={'Window'} type={'expose
|
|
72
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.id'}/>
|
|
73
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.open'}/>
|
|
74
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.setOpen'}/>
|
|
75
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.toOpen'}/>
|
|
76
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.toClose'}/>
|
|
77
|
-
<StorybookDescriptions componentName={'Window'} type={'expose.toggle'}/>
|
|
71
|
+
<StorybookDescriptions componentName={'Window'} type={'expose'}/>
|
|
78
72
|
`,
|
|
79
73
|
slots: `
|
|
80
|
-
<StorybookDescriptions componentName={'ListGroup'} type={'
|
|
81
|
-
<StorybookDescriptions componentName={'ListGroup'} type={'slot.list'}/>
|
|
74
|
+
<StorybookDescriptions componentName={'ListGroup'} type={'slots'}/>
|
|
82
75
|
`
|
|
83
76
|
}
|
|
84
77
|
}
|
|
@@ -214,6 +214,18 @@ export const wikiDescriptionsMask: StorybookComponentsDescriptionItem = {
|
|
|
214
214
|
<Canvas of={Component.MaskDateTypes}/>
|
|
215
215
|
|
|
216
216
|
<StorybookDescriptions componentName={'Mask'} type={'visible'}/>
|
|
217
|
+
`,
|
|
218
|
+
events: `
|
|
219
|
+
<StorybookDescriptions componentName={'Event'} type={'input'}/>
|
|
220
|
+
<StorybookDescriptions componentName={'Event'} type={'beforeinput'}/>
|
|
221
|
+
<StorybookDescriptions componentName={'Event'} type={'reset'}/>
|
|
222
|
+
<StorybookDescriptions componentName={'Event'} type={'focus'}/>
|
|
223
|
+
<StorybookDescriptions componentName={'Event'} type={'keyboard'}/>
|
|
224
|
+
<StorybookDescriptions componentName={'Event'} type={'paste'}/>
|
|
225
|
+
`,
|
|
226
|
+
expose: `
|
|
227
|
+
<StorybookDescriptions componentName={'Mask'} type={'expose'}/>
|
|
228
|
+
<StorybookDescriptions componentName={'Expose'} type={'clear'}/>
|
|
217
229
|
`
|
|
218
230
|
}
|
|
219
231
|
}
|
|
@@ -29,6 +29,9 @@ export const wikiDescriptionsMenu: StorybookComponentsDescriptionItem = {
|
|
|
29
29
|
'настройка атрибутов пунктов и списка (itemAttrs, listAttrs)'
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
+
import: [
|
|
33
|
+
'import { ref } from \'vue\''
|
|
34
|
+
],
|
|
32
35
|
render: `
|
|
33
36
|
<DesignComponent v-bind="args">
|
|
34
37
|
<template #control="{binds}">
|
|
@@ -37,6 +40,75 @@ export const wikiDescriptionsMenu: StorybookComponentsDescriptionItem = {
|
|
|
37
40
|
</DesignComponent>
|
|
38
41
|
`,
|
|
39
42
|
stories: [
|
|
43
|
+
{
|
|
44
|
+
id: 'MenuNavigation',
|
|
45
|
+
name: {
|
|
46
|
+
en: 'Navigation with previous/next',
|
|
47
|
+
ru: 'Навигация с previous/next'
|
|
48
|
+
},
|
|
49
|
+
setup: `
|
|
50
|
+
return {
|
|
51
|
+
selectedValue: ref('color2'),
|
|
52
|
+
colors: ref([
|
|
53
|
+
{label: '[1]Red', value: 'color1', icon: 'palette'},
|
|
54
|
+
{label: '[2]Green', value: 'color2', icon: 'palette'},
|
|
55
|
+
{label: '[3]Blue', value: 'color3', icon: 'palette'},
|
|
56
|
+
{label: '[4]Yellow', value: 'color4', icon: 'palette'},
|
|
57
|
+
{label: '[5]Purple', value: 'color5', icon: 'palette'},
|
|
58
|
+
{label: '[6]Orange', value: 'color6', icon: 'palette'}
|
|
59
|
+
]),
|
|
60
|
+
step: ref(1)
|
|
61
|
+
}
|
|
62
|
+
`,
|
|
63
|
+
template: `
|
|
64
|
+
<div class="wiki-storybook-flex-column">
|
|
65
|
+
<div class="wiki-storybook-item wiki-storybook-item--auto wiki-storybook-item--padding">
|
|
66
|
+
<div class="wiki-storybook-item__label">Step size:</div>
|
|
67
|
+
<div class="wiki-storybook-flex">
|
|
68
|
+
<button class="wiki-storybook-button" @click="step = 1">1 item</button>
|
|
69
|
+
<button class="wiki-storybook-button" @click="step = 2">2 items</button>
|
|
70
|
+
<button class="wiki-storybook-button" @click="step = 3">3 items</button>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<DesignComponent
|
|
75
|
+
v-model:selected="selectedValue"
|
|
76
|
+
:list="colors"
|
|
77
|
+
:step="step"
|
|
78
|
+
is-selected-by-value
|
|
79
|
+
>
|
|
80
|
+
<template #control="{previous, next, selectedNames, open}">
|
|
81
|
+
<div class="wiki-storybook-item wiki-storybook-item--auto wiki-storybook-item--padding">
|
|
82
|
+
<div class="wiki-storybook-flex">
|
|
83
|
+
<button
|
|
84
|
+
class="wiki-storybook-button"
|
|
85
|
+
@click="previous"
|
|
86
|
+
style="padding: 4px 12px;"
|
|
87
|
+
>
|
|
88
|
+
◀ Previous
|
|
89
|
+
</button>
|
|
90
|
+
<div style="flex: 1; text-align: center; font-weight: 500;">
|
|
91
|
+
{{ selectedNames.value[0] || 'None' }}
|
|
92
|
+
</div>
|
|
93
|
+
<button
|
|
94
|
+
class="wiki-storybook-button"
|
|
95
|
+
@click="next"
|
|
96
|
+
style="padding: 4px 12px;"
|
|
97
|
+
>
|
|
98
|
+
Next ▶
|
|
99
|
+
</button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
103
|
+
</DesignComponent>
|
|
104
|
+
|
|
105
|
+
<div class="wiki-storybook-item wiki-storybook-item--auto wiki-storybook-item--padding">
|
|
106
|
+
<div>Selected: {{ selectedValue }}</div>
|
|
107
|
+
<div>Step: {{ step }}</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
`
|
|
111
|
+
},
|
|
40
112
|
{
|
|
41
113
|
id: 'MenuAjax',
|
|
42
114
|
name: {
|
|
@@ -62,37 +134,77 @@ export const wikiDescriptionsMenu: StorybookComponentsDescriptionItem = {
|
|
|
62
134
|
</template>
|
|
63
135
|
</DesignComponent>
|
|
64
136
|
`
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'MenuVModel',
|
|
140
|
+
name: {
|
|
141
|
+
en: 'Two-way binding (v-model)',
|
|
142
|
+
ru: 'Двусторонняя привязка (v-model)'
|
|
143
|
+
},
|
|
144
|
+
setup: `
|
|
145
|
+
return {
|
|
146
|
+
selectedValue: ref('settings'),
|
|
147
|
+
menuItems: ref([
|
|
148
|
+
{label: 'Dashboard', value: 'dashboard', icon: 'dashboard'},
|
|
149
|
+
{label: 'Users', value: 'users', icon: 'people'},
|
|
150
|
+
{label: 'Settings', value: 'settings', icon: 'settings'},
|
|
151
|
+
{label: 'Reports', value: 'reports', icon: 'assessment'},
|
|
152
|
+
{label: 'Help', value: 'help', icon: 'help'}
|
|
153
|
+
])
|
|
154
|
+
}
|
|
155
|
+
`,
|
|
156
|
+
template: `
|
|
157
|
+
<div class="wiki-storybook-flex-column">
|
|
158
|
+
<div class="wiki-storybook-flex">
|
|
159
|
+
<button class="wiki-storybook-button" @click="selectedValue = 'dashboard'">Select Dashboard</button>
|
|
160
|
+
<button class="wiki-storybook-button" @click="selectedValue = 'reports'">Select Reports</button>
|
|
161
|
+
<button class="wiki-storybook-button" @click="selectedValue = ''">Clear</button>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="wiki-storybook-flex">
|
|
164
|
+
<DesignComponent
|
|
165
|
+
v-model:selected="selectedValue"
|
|
166
|
+
:list="menuItems"
|
|
167
|
+
is-selected-by-value
|
|
168
|
+
>
|
|
169
|
+
<template #control="{binds}">
|
|
170
|
+
<button class="wiki-storybook-button" v-bind="binds">
|
|
171
|
+
Open Menu
|
|
172
|
+
</button>
|
|
173
|
+
</template>
|
|
174
|
+
</DesignComponent>
|
|
175
|
+
</div>
|
|
176
|
+
<div>Selected value: {{ selectedValue }}</div>
|
|
177
|
+
</div>
|
|
178
|
+
`
|
|
65
179
|
}
|
|
66
180
|
],
|
|
67
181
|
documentation: {
|
|
68
182
|
body: `
|
|
69
183
|
<StorybookDescriptions componentName={'Menu'} type={'menu'}/>
|
|
70
184
|
|
|
185
|
+
<StorybookDescriptions componentName={'Menu'} type={'navigation'}/>
|
|
186
|
+
<Canvas of={Component.MenuNavigation}/>
|
|
187
|
+
|
|
71
188
|
<StorybookDescriptions componentName={'Menu'} type={'ajax'}/>
|
|
72
189
|
<Canvas of={Component.MenuAjax}/>
|
|
190
|
+
|
|
191
|
+
<StorybookDescriptions componentName={'Value'} type={'v-model'}/>
|
|
192
|
+
<Canvas of={Component.MenuVModel}/>
|
|
73
193
|
`,
|
|
74
194
|
events: `
|
|
75
195
|
<StorybookDescriptions componentName={'Event'} type={'click'}/>
|
|
76
|
-
<StorybookDescriptions componentName={'Event'} type={'clickLite'}/>
|
|
77
|
-
|
|
78
196
|
<StorybookDescriptions componentName={'Event'} type={'bars'}/>
|
|
79
|
-
<StorybookDescriptions componentName={'
|
|
80
|
-
<StorybookDescriptions componentName={'
|
|
81
|
-
<StorybookDescriptions componentName={'Event'} type={'window'}/>
|
|
197
|
+
<StorybookDescriptions componentName={'Menu'} type={'event.updateValue'}/>
|
|
198
|
+
<StorybookDescriptions componentName={'Window'} type={'event.window'}/>
|
|
82
199
|
`,
|
|
83
200
|
expose: `
|
|
84
|
-
<StorybookDescriptions componentName={'Expose'} type={'
|
|
85
|
-
<StorybookDescriptions componentName={'
|
|
86
|
-
<StorybookDescriptions componentName={'Expose'} type={'selectedNames'}/>
|
|
87
|
-
<StorybookDescriptions componentName={'Expose'} type={'selectedValues'}/>
|
|
201
|
+
<StorybookDescriptions componentName={'Expose'} type={'selected'}/>
|
|
202
|
+
<StorybookDescriptions componentName={'Menu'} type={'expose.navigation'}/>
|
|
88
203
|
`,
|
|
89
204
|
slots: `
|
|
90
|
-
<StorybookDescriptions componentName={'Menu'} type={'slot.control'}/>
|
|
91
|
-
<StorybookDescriptions componentName={'Menu'} type={'slot.title'}/>
|
|
92
|
-
<StorybookDescriptions componentName={'Menu'} type={'slot.footer'}/>
|
|
93
|
-
<StorybookDescriptions componentName={'Menu'} type={'slot.contextTop'}/>
|
|
94
|
-
<StorybookDescriptions componentName={'Menu'} type={'slot.contextBottom'}/>
|
|
95
205
|
<StorybookDescriptions componentName={'List'} type={'slot.html'}/>
|
|
206
|
+
<StorybookDescriptions componentName={'Menu'} type={'slotsControl'}/>
|
|
207
|
+
<StorybookDescriptions componentName={'Menu'} type={'slots'}/>
|
|
96
208
|
`
|
|
97
209
|
}
|
|
98
210
|
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Descriptions for Modal component properties
|
|
5
|
+
*
|
|
6
|
+
* Описания свойств компонента Modal
|
|
7
|
+
*/
|
|
8
|
+
export const wikiDescriptionsModal: StorybookComponentsDescriptionItem = {
|
|
9
|
+
name: 'Modal',
|
|
10
|
+
description: {
|
|
11
|
+
en: 'Simplified wrapper over Window component for creating centered modal dialogs',
|
|
12
|
+
ru: 'Упрощенная обертка над компонентом Window для создания центрированных модальных диалогов'
|
|
13
|
+
},
|
|
14
|
+
possibilities: {
|
|
15
|
+
en: [
|
|
16
|
+
'pre-configured modal window with centered positioning',
|
|
17
|
+
'overlay backdrop with background blocking',
|
|
18
|
+
'close on ESC key and click outside',
|
|
19
|
+
'integration with scrollbar for long content',
|
|
20
|
+
'slots for title, content and footer customization',
|
|
21
|
+
'lifecycle events (preparation, opening, closing)',
|
|
22
|
+
'close button with customizable icon',
|
|
23
|
+
'programmatic control via v-model:open',
|
|
24
|
+
'focus management and keyboard navigation',
|
|
25
|
+
'responsive design with mobile optimization'
|
|
26
|
+
],
|
|
27
|
+
ru: [
|
|
28
|
+
'предварительно настроенное модальное окно с центрированием',
|
|
29
|
+
'оверлей с блокировкой фона',
|
|
30
|
+
'закрытие по ESC и клику вне области',
|
|
31
|
+
'интеграция со скроллбаром для длинного контента',
|
|
32
|
+
'слоты для настройки заголовка, содержимого и подвала',
|
|
33
|
+
'события жизненного цикла (preparation, opening, closing)',
|
|
34
|
+
'кнопка закрытия с настраиваемой иконкой',
|
|
35
|
+
'программное управление через v-model:open',
|
|
36
|
+
'управление фокусом и клавиатурная навигация',
|
|
37
|
+
'адаптивный дизайн с оптимизацией для мобильных'
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
import: [
|
|
41
|
+
'import { ref } from \'vue\''
|
|
42
|
+
],
|
|
43
|
+
render: `
|
|
44
|
+
<DesignComponent v-bind="args">
|
|
45
|
+
<template #control="{binds}">
|
|
46
|
+
<button class="wiki-storybook-button" v-bind="binds">Open Modal</button>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<template #default>
|
|
50
|
+
<h4>Modal Component Overview</h4>
|
|
51
|
+
<p>Modal is a specialized wrapper around the Window component with preset adaptive mode set to 'modal'. It provides a simplified API for creating centered modal dialogs without needing to configure positioning and adaptive behavior manually.</p>
|
|
52
|
+
|
|
53
|
+
<p>The component automatically handles common modal dialog scenarios including confirmations, forms, alerts, and content previews. It manages focus, scroll behavior, and keyboard navigation to ensure accessibility and optimal user experience across different devices and screen sizes.</p>
|
|
54
|
+
|
|
55
|
+
<h4>Best Practices</h4>
|
|
56
|
+
<p>Use modals sparingly and only for content that genuinely requires immediate attention. Ensure modals have clear actions (confirm/cancel), provide easy ways to dismiss them, and avoid nesting modals within modals. The component should be large enough to display content comfortably but not so large that it overwhelms the screen.</p>
|
|
57
|
+
|
|
58
|
+
<h4>Relationship with Window</h4>
|
|
59
|
+
<p>Modal is essentially Window with <code>adaptive="modal"</code> preset, simplifying the usage for standard dialog scenarios. All Window properties, slots, and events are available in Modal component.</p>
|
|
60
|
+
</template>
|
|
61
|
+
</DesignComponent>
|
|
62
|
+
`,
|
|
63
|
+
stories: [
|
|
64
|
+
{
|
|
65
|
+
id: 'ModalVModel',
|
|
66
|
+
name: {
|
|
67
|
+
en: 'Two-way binding (v-model)',
|
|
68
|
+
ru: 'Двусторонняя привязка (v-model)'
|
|
69
|
+
},
|
|
70
|
+
setup: `
|
|
71
|
+
return {
|
|
72
|
+
open: ref(false)
|
|
73
|
+
}
|
|
74
|
+
`,
|
|
75
|
+
template: `
|
|
76
|
+
<button class="wiki-storybook-button" @click="open = true">Open via v-model ({{ open }})</button>
|
|
77
|
+
|
|
78
|
+
<DesignComponent v-model:open="open">
|
|
79
|
+
<div class="wiki-storybook-item--padding">Your content here</div>
|
|
80
|
+
</DesignComponent>
|
|
81
|
+
`
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'ModalAllSlots',
|
|
85
|
+
name: {
|
|
86
|
+
en: 'All slots demonstration',
|
|
87
|
+
ru: 'Демонстрация всех слотов'
|
|
88
|
+
},
|
|
89
|
+
template: `
|
|
90
|
+
<DesignComponent>
|
|
91
|
+
<template #control="{binds}">
|
|
92
|
+
<button class="wiki-storybook-button" v-bind="binds">Open Modal with All Slots</button>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<template #title>
|
|
96
|
+
Modal Title Slot
|
|
97
|
+
</template>
|
|
98
|
+
|
|
99
|
+
<template #default>
|
|
100
|
+
<h4>Default Slot Content</h4>
|
|
101
|
+
<p>This is the main content area of the modal. You can place any content here including text, forms, images, or other components.</p>
|
|
102
|
+
|
|
103
|
+
<div class="wiki-storybook-info">
|
|
104
|
+
<strong>Available slots:</strong>
|
|
105
|
+
<ul>
|
|
106
|
+
<li><code>#control</code> - trigger button or element</li>
|
|
107
|
+
<li><code>#title</code> - modal header/title area</li>
|
|
108
|
+
<li><code>#default</code> - main content area</li>
|
|
109
|
+
<li><code>#footer</code> - footer with actions</li>
|
|
110
|
+
</ul>
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<p>Each slot receives control props that allow you to interact with the modal programmatically, such as closing it or accessing window classes.</p>
|
|
114
|
+
</template>
|
|
115
|
+
|
|
116
|
+
<template #footer="{classesWindow}">
|
|
117
|
+
<button :class="classesWindow.close" class="wiki-storybook-button wiki-storybook-button--text">Cancel</button>
|
|
118
|
+
<button class="wiki-storybook-button">Confirm</button>
|
|
119
|
+
</template>
|
|
120
|
+
</DesignComponent>
|
|
121
|
+
`
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
documentation: {
|
|
125
|
+
body: `
|
|
126
|
+
<StorybookDescriptions componentName={'Modal'} type={'modal'}/>
|
|
127
|
+
<StorybookDescriptions componentName={'Window'} type={'v-model'}/>
|
|
128
|
+
<Canvas of={Component.ModalVModel}/>
|
|
129
|
+
|
|
130
|
+
<StorybookDescriptions componentName={'Modal'} type={'differences'}/>
|
|
131
|
+
`,
|
|
132
|
+
events: `
|
|
133
|
+
<StorybookDescriptions componentName={'Window'} type={'event.window'}/>
|
|
134
|
+
<StorybookDescriptions componentName={'Event'} type={'bars'}/>
|
|
135
|
+
<StorybookDescriptions componentName={'Event'} type={'actions'}/>
|
|
136
|
+
`,
|
|
137
|
+
expose: `
|
|
138
|
+
<StorybookDescriptions componentName={'Window'} type={'expose'}/>
|
|
139
|
+
`,
|
|
140
|
+
slots: `
|
|
141
|
+
<Canvas of={Component.ModalAllSlots}/>
|
|
142
|
+
<StorybookDescriptions componentName={'Window'} type={'slots'}/>
|
|
143
|
+
`
|
|
144
|
+
}
|
|
145
|
+
}
|