@soxa-ui/setup 0.0.0-stage → 0.3.0-beta.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/LICENSE +21 -0
- package/README.md +63 -2
- package/dist/content/descriptors/components/accordion/accordion.descriptor.d.ts +205 -0
- package/dist/content/descriptors/components/accordion/accordion.descriptor.js +80 -0
- package/dist/content/descriptors/components/accordion/collection.descriptor.d.ts +76 -0
- package/dist/content/descriptors/components/accordion/collection.descriptor.js +60 -0
- package/dist/content/descriptors/components/accordion/index.d.ts +3 -0
- package/dist/content/descriptors/components/accordion/item.descriptor.d.ts +244 -0
- package/dist/content/descriptors/components/accordion/item.descriptor.js +93 -0
- package/dist/content/descriptors/components/button.descriptor.d.ts +192 -0
- package/dist/content/descriptors/components/button.descriptor.js +39 -0
- package/dist/content/descriptors/components/calendar/calendar.descriptor.d.ts +261 -0
- package/dist/content/descriptors/components/calendar/calendar.descriptor.js +142 -0
- package/dist/content/descriptors/components/calendar/collection.descriptor.d.ts +85 -0
- package/dist/content/descriptors/components/calendar/collection.descriptor.js +88 -0
- package/dist/content/descriptors/components/calendar/index.d.ts +3 -0
- package/dist/content/descriptors/components/calendar/item.descriptor.d.ts +154 -0
- package/dist/content/descriptors/components/calendar/item.descriptor.js +65 -0
- package/dist/content/descriptors/components/check-box.descriptor.d.ts +227 -0
- package/dist/content/descriptors/components/check-box.descriptor.js +65 -0
- package/dist/content/descriptors/components/clearable.descriptor.d.ts +213 -0
- package/dist/content/descriptors/components/clearable.descriptor.js +51 -0
- package/dist/content/descriptors/components/collection/collection.descriptor.d.ts +47 -0
- package/dist/content/descriptors/components/collection/collection.descriptor.js +67 -0
- package/dist/content/descriptors/components/collection/index.d.ts +1 -0
- package/dist/content/descriptors/components/component-view.descriptor.d.ts +110 -0
- package/dist/content/descriptors/components/component-view.descriptor.js +103 -0
- package/dist/content/descriptors/components/component.descriptor.d.ts +31 -0
- package/dist/content/descriptors/components/component.descriptor.js +22 -0
- package/dist/content/descriptors/components/control.descriptor.d.ts +135 -0
- package/dist/content/descriptors/components/control.descriptor.js +33 -0
- package/dist/content/descriptors/components/date-input.descriptor.d.ts +319 -0
- package/dist/content/descriptors/components/date-input.descriptor.js +171 -0
- package/dist/content/descriptors/components/date-picker.descriptor.d.ts +445 -0
- package/dist/content/descriptors/components/date-picker.descriptor.js +255 -0
- package/dist/content/descriptors/components/dialog.descriptor.d.ts +256 -0
- package/dist/content/descriptors/components/dialog.descriptor.js +94 -0
- package/dist/content/descriptors/components/drag-and-drop.descriptor.d.ts +49 -0
- package/dist/content/descriptors/components/drag-and-drop.descriptor.js +32 -0
- package/dist/content/descriptors/components/drawer.descriptor.d.ts +244 -0
- package/dist/content/descriptors/components/drawer.descriptor.js +83 -0
- package/dist/content/descriptors/components/entity.descriptor.d.ts +39 -0
- package/dist/content/descriptors/components/entity.descriptor.js +37 -0
- package/dist/content/descriptors/components/field.descriptor.d.ts +192 -0
- package/dist/content/descriptors/components/field.descriptor.js +109 -0
- package/dist/content/descriptors/components/frame.descriptor.d.ts +191 -0
- package/dist/content/descriptors/components/frame.descriptor.js +66 -0
- package/dist/content/descriptors/components/icon.descriptor.d.ts +129 -0
- package/dist/content/descriptors/components/icon.descriptor.js +41 -0
- package/dist/content/descriptors/components/index.d.ts +50 -0
- package/dist/content/descriptors/components/input-control.descriptor.d.ts +176 -0
- package/dist/content/descriptors/components/input-control.descriptor.js +32 -0
- package/dist/content/descriptors/components/input.descriptor.d.ts +241 -0
- package/dist/content/descriptors/components/input.descriptor.js +62 -0
- package/dist/content/descriptors/components/interactive.descriptor.d.ts +100 -0
- package/dist/content/descriptors/components/interactive.descriptor.js +30 -0
- package/dist/content/descriptors/components/item-group.descriptor.d.ts +113 -0
- package/dist/content/descriptors/components/item-group.descriptor.js +44 -0
- package/dist/content/descriptors/components/item-row.descriptor.d.ts +199 -0
- package/dist/content/descriptors/components/item-row.descriptor.js +25 -0
- package/dist/content/descriptors/components/label.descriptor.d.ts +130 -0
- package/dist/content/descriptors/components/label.descriptor.js +41 -0
- package/dist/content/descriptors/components/layer.descriptor.d.ts +99 -0
- package/dist/content/descriptors/components/layer.descriptor.js +27 -0
- package/dist/content/descriptors/components/list-box/collection.descriptor.d.ts +113 -0
- package/dist/content/descriptors/components/list-box/collection.descriptor.js +96 -0
- package/dist/content/descriptors/components/list-box/group.descriptor.d.ts +115 -0
- package/dist/content/descriptors/components/list-box/group.descriptor.js +21 -0
- package/dist/content/descriptors/components/list-box/index.d.ts +4 -0
- package/dist/content/descriptors/components/list-box/item.descriptor.d.ts +219 -0
- package/dist/content/descriptors/components/list-box/item.descriptor.js +66 -0
- package/dist/content/descriptors/components/list-box/list-box.descriptor.d.ts +253 -0
- package/dist/content/descriptors/components/list-box/list-box.descriptor.js +106 -0
- package/dist/content/descriptors/components/list.d.ts +40 -0
- package/dist/content/descriptors/components/list.js +38 -0
- package/dist/content/descriptors/components/menu/checkbox-item.descriptor.d.ts +226 -0
- package/dist/content/descriptors/components/menu/checkbox-item.descriptor.js +43 -0
- package/dist/content/descriptors/components/menu/collection.descriptor.d.ts +201 -0
- package/dist/content/descriptors/components/menu/collection.descriptor.js +101 -0
- package/dist/content/descriptors/components/menu/group.descriptor.d.ts +112 -0
- package/dist/content/descriptors/components/menu/group.descriptor.js +18 -0
- package/dist/content/descriptors/components/menu/index.d.ts +10 -0
- package/dist/content/descriptors/components/menu/item.descriptor.d.ts +195 -0
- package/dist/content/descriptors/components/menu/item.descriptor.js +45 -0
- package/dist/content/descriptors/components/menu/menu.descriptor.d.ts +262 -0
- package/dist/content/descriptors/components/menu/menu.descriptor.js +177 -0
- package/dist/content/descriptors/components/menu/popover-item.descriptor.d.ts +278 -0
- package/dist/content/descriptors/components/menu/popover-item.descriptor.js +87 -0
- package/dist/content/descriptors/components/menu/radio-group.descriptor.d.ts +134 -0
- package/dist/content/descriptors/components/menu/radio-group.descriptor.js +30 -0
- package/dist/content/descriptors/components/menu/radio-item.descriptor.d.ts +236 -0
- package/dist/content/descriptors/components/menu/radio-item.descriptor.js +51 -0
- package/dist/content/descriptors/components/menu/separator.descriptor.d.ts +87 -0
- package/dist/content/descriptors/components/menu/separator.descriptor.js +17 -0
- package/dist/content/descriptors/components/menu/submenu.descriptor.d.ts +336 -0
- package/dist/content/descriptors/components/menu/submenu.descriptor.js +144 -0
- package/dist/content/descriptors/components/modal-layer.descriptor.d.ts +197 -0
- package/dist/content/descriptors/components/modal-layer.descriptor.js +101 -0
- package/dist/content/descriptors/components/number-input.descriptor.d.ts +353 -0
- package/dist/content/descriptors/components/number-input.descriptor.js +209 -0
- package/dist/content/descriptors/components/pagination/collection.descriptor.d.ts +54 -0
- package/dist/content/descriptors/components/pagination/collection.descriptor.js +55 -0
- package/dist/content/descriptors/components/pagination/index.d.ts +3 -0
- package/dist/content/descriptors/components/pagination/item.descriptor.d.ts +156 -0
- package/dist/content/descriptors/components/pagination/item.descriptor.js +68 -0
- package/dist/content/descriptors/components/pagination/pagination.descriptor.d.ts +265 -0
- package/dist/content/descriptors/components/pagination/pagination.descriptor.js +152 -0
- package/dist/content/descriptors/components/popover.descriptor.d.ts +231 -0
- package/dist/content/descriptors/components/popover.descriptor.js +156 -0
- package/dist/content/descriptors/components/progress-linear.descriptor.d.ts +165 -0
- package/dist/content/descriptors/components/progress-linear.descriptor.js +43 -0
- package/dist/content/descriptors/components/progress-spinner.descriptor.d.ts +161 -0
- package/dist/content/descriptors/components/progress-spinner.descriptor.js +36 -0
- package/dist/content/descriptors/components/progress.descriptor.d.ts +149 -0
- package/dist/content/descriptors/components/progress.descriptor.js +53 -0
- package/dist/content/descriptors/components/radio-group/collection.descriptor.d.ts +70 -0
- package/dist/content/descriptors/components/radio-group/collection.descriptor.js +56 -0
- package/dist/content/descriptors/components/radio-group/index.d.ts +3 -0
- package/dist/content/descriptors/components/radio-group/item.descriptor.d.ts +193 -0
- package/dist/content/descriptors/components/radio-group/item.descriptor.js +47 -0
- package/dist/content/descriptors/components/radio-group/radio-group.descriptor.d.ts +197 -0
- package/dist/content/descriptors/components/radio-group/radio-group.descriptor.js +66 -0
- package/dist/content/descriptors/components/rating.descriptor.d.ts +233 -0
- package/dist/content/descriptors/components/rating.descriptor.js +89 -0
- package/dist/content/descriptors/components/scroller.descriptor.d.ts +208 -0
- package/dist/content/descriptors/components/scroller.descriptor.js +91 -0
- package/dist/content/descriptors/components/select/collection.descriptor.d.ts +135 -0
- package/dist/content/descriptors/components/select/collection.descriptor.js +119 -0
- package/dist/content/descriptors/components/select/group.descriptor.d.ts +115 -0
- package/dist/content/descriptors/components/select/group.descriptor.js +21 -0
- package/dist/content/descriptors/components/select/index.d.ts +4 -0
- package/dist/content/descriptors/components/select/item.descriptor.d.ts +210 -0
- package/dist/content/descriptors/components/select/item.descriptor.js +56 -0
- package/dist/content/descriptors/components/select/select.descriptor.d.ts +454 -0
- package/dist/content/descriptors/components/select/select.descriptor.js +267 -0
- package/dist/content/descriptors/components/skeleton.descriptor.d.ts +127 -0
- package/dist/content/descriptors/components/skeleton.descriptor.js +53 -0
- package/dist/content/descriptors/components/slider.descriptor.d.ts +298 -0
- package/dist/content/descriptors/components/slider.descriptor.js +205 -0
- package/dist/content/descriptors/components/stylable.descriptor.d.ts +126 -0
- package/dist/content/descriptors/components/stylable.descriptor.js +52 -0
- package/dist/content/descriptors/components/switch.descriptor.d.ts +217 -0
- package/dist/content/descriptors/components/switch.descriptor.js +53 -0
- package/dist/content/descriptors/components/table/collection.descriptor.d.ts +183 -0
- package/dist/content/descriptors/components/table/collection.descriptor.js +178 -0
- package/dist/content/descriptors/components/table/column.descriptor.d.ts +237 -0
- package/dist/content/descriptors/components/table/column.descriptor.js +173 -0
- package/dist/content/descriptors/components/table/index.d.ts +4 -0
- package/dist/content/descriptors/components/table/row.descriptor.d.ts +166 -0
- package/dist/content/descriptors/components/table/row.descriptor.js +75 -0
- package/dist/content/descriptors/components/table/table.descriptor.d.ts +271 -0
- package/dist/content/descriptors/components/table/table.descriptor.js +164 -0
- package/dist/content/descriptors/components/tabs/collection.descriptor.d.ts +72 -0
- package/dist/content/descriptors/components/tabs/collection.descriptor.js +59 -0
- package/dist/content/descriptors/components/tabs/content.descriptor.d.ts +136 -0
- package/dist/content/descriptors/components/tabs/content.descriptor.js +52 -0
- package/dist/content/descriptors/components/tabs/index.d.ts +4 -0
- package/dist/content/descriptors/components/tabs/item.descriptor.d.ts +213 -0
- package/dist/content/descriptors/components/tabs/item.descriptor.js +67 -0
- package/dist/content/descriptors/components/tabs/tabs.descriptor.d.ts +220 -0
- package/dist/content/descriptors/components/tabs/tabs.descriptor.js +105 -0
- package/dist/content/descriptors/components/tags/collection.descriptor.d.ts +79 -0
- package/dist/content/descriptors/components/tags/collection.descriptor.js +63 -0
- package/dist/content/descriptors/components/tags/index.d.ts +3 -0
- package/dist/content/descriptors/components/tags/item.descriptor.d.ts +216 -0
- package/dist/content/descriptors/components/tags/item.descriptor.js +73 -0
- package/dist/content/descriptors/components/tags/tags.descriptor.d.ts +240 -0
- package/dist/content/descriptors/components/tags/tags.descriptor.js +109 -0
- package/dist/content/descriptors/components/textable.descriptor.d.ts +147 -0
- package/dist/content/descriptors/components/textable.descriptor.js +24 -0
- package/dist/content/descriptors/components/textarea.descriptor.d.ts +249 -0
- package/dist/content/descriptors/components/textarea.descriptor.js +95 -0
- package/dist/content/descriptors/components/toasts/collection.descriptor.d.ts +59 -0
- package/dist/content/descriptors/components/toasts/collection.descriptor.js +39 -0
- package/dist/content/descriptors/components/toasts/index.d.ts +3 -0
- package/dist/content/descriptors/components/toasts/item.descriptor.d.ts +173 -0
- package/dist/content/descriptors/components/toasts/item.descriptor.js +106 -0
- package/dist/content/descriptors/components/toasts/toasts.descriptor.d.ts +167 -0
- package/dist/content/descriptors/components/toasts/toasts.descriptor.js +94 -0
- package/dist/content/descriptors/components/tooltip.descriptor.d.ts +156 -0
- package/dist/content/descriptors/components/tooltip.descriptor.js +83 -0
- package/dist/content/descriptors/components/value-control.descriptor.d.ts +151 -0
- package/dist/content/descriptors/components/value-control.descriptor.js +36 -0
- package/dist/content/descriptors/components/virtual.descriptor.d.ts +55 -0
- package/dist/content/descriptors/components/virtual.descriptor.js +37 -0
- package/dist/content/descriptors/index.d.ts +2 -0
- package/dist/content/descriptors/plugins/accordion-item-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/accordion-item-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/action.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/action.plugin.js +27 -0
- package/dist/content/descriptors/plugins/anchor.plugin.d.ts +47 -0
- package/dist/content/descriptors/plugins/anchor.plugin.js +73 -0
- package/dist/content/descriptors/plugins/aria.plugin.d.ts +34 -0
- package/dist/content/descriptors/plugins/aria.plugin.js +55 -0
- package/dist/content/descriptors/plugins/calendar-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/calendar-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/calendar-keyboard.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/calendar-keyboard.plugin.js +18 -0
- package/dist/content/descriptors/plugins/calendar-names.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/calendar-names.plugin.js +17 -0
- package/dist/content/descriptors/plugins/calendar-pointer.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/calendar-pointer.plugin.js +18 -0
- package/dist/content/descriptors/plugins/clearable-names.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/clearable-names.plugin.js +17 -0
- package/dist/content/descriptors/plugins/collection-bundles.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/collection-bundles.plugin.js +14 -0
- package/dist/content/descriptors/plugins/collection-elements.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/collection-elements.plugin.js +14 -0
- package/dist/content/descriptors/plugins/date-input-clipboard.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/date-input-clipboard.plugin.js +16 -0
- package/dist/content/descriptors/plugins/date-input-ids.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/date-input-ids.plugin.js +15 -0
- package/dist/content/descriptors/plugins/date-input-keyboard.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/date-input-keyboard.plugin.js +18 -0
- package/dist/content/descriptors/plugins/date-input-pointer.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/date-input-pointer.plugin.js +17 -0
- package/dist/content/descriptors/plugins/date-input-touch.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/date-input-touch.plugin.js +19 -0
- package/dist/content/descriptors/plugins/date-picker-focus.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/date-picker-focus.plugin.js +25 -0
- package/dist/content/descriptors/plugins/date-picker-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/date-picker-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/date-picker-names.plugin.d.ts +32 -0
- package/dist/content/descriptors/plugins/date-picker-names.plugin.js +38 -0
- package/dist/content/descriptors/plugins/date-picker-trigger.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/date-picker-trigger.plugin.js +20 -0
- package/dist/content/descriptors/plugins/dialog-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/dialog-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/dialog-layout.plugin.d.ts +26 -0
- package/dist/content/descriptors/plugins/dialog-layout.plugin.js +34 -0
- package/dist/content/descriptors/plugins/dialog-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/dialog-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/dismiss.plugin.d.ts +34 -0
- package/dist/content/descriptors/plugins/dismiss.plugin.js +51 -0
- package/dist/content/descriptors/plugins/drag.plugin.d.ts +5 -0
- package/dist/content/descriptors/plugins/drag.plugin.js +12 -0
- package/dist/content/descriptors/plugins/drawer-layout.plugin.d.ts +22 -0
- package/dist/content/descriptors/plugins/drawer-layout.plugin.js +28 -0
- package/dist/content/descriptors/plugins/element.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/element.plugin.js +15 -0
- package/dist/content/descriptors/plugins/field-ids.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/field-ids.plugin.js +19 -0
- package/dist/content/descriptors/plugins/frame-layout.plugin.d.ts +14 -0
- package/dist/content/descriptors/plugins/frame-layout.plugin.js +18 -0
- package/dist/content/descriptors/plugins/hide-outside.plugin.d.ts +19 -0
- package/dist/content/descriptors/plugins/hide-outside.plugin.js +29 -0
- package/dist/content/descriptors/plugins/icon-layout.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/icon-layout.plugin.js +19 -0
- package/dist/content/descriptors/plugins/id.plugin.d.ts +26 -0
- package/dist/content/descriptors/plugins/id.plugin.js +31 -0
- package/dist/content/descriptors/plugins/index.d.ts +114 -0
- package/dist/content/descriptors/plugins/input-bool.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/input-bool.plugin.js +14 -0
- package/dist/content/descriptors/plugins/input-control.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/input-control.plugin.js +14 -0
- package/dist/content/descriptors/plugins/input.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/input.plugin.js +16 -0
- package/dist/content/descriptors/plugins/item-group-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/item-group-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/label-nested-warn.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/label-nested-warn.plugin.js +15 -0
- package/dist/content/descriptors/plugins/list-height.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/list-height.plugin.js +15 -0
- package/dist/content/descriptors/plugins/list-item.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/list-item.plugin.js +19 -0
- package/dist/content/descriptors/plugins/list-keyboard.plugin.d.ts +5 -0
- package/dist/content/descriptors/plugins/list-keyboard.plugin.js +12 -0
- package/dist/content/descriptors/plugins/list-scroll.plugin.d.ts +16 -0
- package/dist/content/descriptors/plugins/list-scroll.plugin.js +23 -0
- package/dist/content/descriptors/plugins/locale.plugin.d.ts +13 -0
- package/dist/content/descriptors/plugins/locale.plugin.js +20 -0
- package/dist/content/descriptors/plugins/menu-focus.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/menu-focus.plugin.js +18 -0
- package/dist/content/descriptors/plugins/menu-hover.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/menu-hover.plugin.js +19 -0
- package/dist/content/descriptors/plugins/menu-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/menu-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/menu-keyboard.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/menu-keyboard.plugin.js +22 -0
- package/dist/content/descriptors/plugins/menu-pointer.plugin.d.ts +13 -0
- package/dist/content/descriptors/plugins/menu-pointer.plugin.js +20 -0
- package/dist/content/descriptors/plugins/menu-popover-item-focus.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/menu-popover-item-focus.plugin.js +22 -0
- package/dist/content/descriptors/plugins/menu-popover-item-keyboard.plugin.d.ts +13 -0
- package/dist/content/descriptors/plugins/menu-popover-item-keyboard.plugin.js +20 -0
- package/dist/content/descriptors/plugins/menu-popup-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/menu-popup-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/menu-submenu-focus.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/menu-submenu-focus.plugin.js +19 -0
- package/dist/content/descriptors/plugins/menu-submenu-keyboard.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/menu-submenu-keyboard.plugin.js +22 -0
- package/dist/content/descriptors/plugins/modal-focus.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/modal-focus.plugin.js +24 -0
- package/dist/content/descriptors/plugins/modal-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/modal-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/modal-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/modal-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/number-input-keyboard.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/number-input-keyboard.plugin.js +17 -0
- package/dist/content/descriptors/plugins/number-input-names.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/number-input-names.plugin.js +17 -0
- package/dist/content/descriptors/plugins/number-input-stepper.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/number-input-stepper.plugin.js +19 -0
- package/dist/content/descriptors/plugins/number-input-touch.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/number-input-touch.plugin.js +17 -0
- package/dist/content/descriptors/plugins/number-input-typing.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/number-input-typing.plugin.js +18 -0
- package/dist/content/descriptors/plugins/option-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/option-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/pagination-focus.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/pagination-focus.plugin.js +17 -0
- package/dist/content/descriptors/plugins/pagination-names.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/pagination-names.plugin.js +17 -0
- package/dist/content/descriptors/plugins/popover-focus.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/popover-focus.plugin.js +23 -0
- package/dist/content/descriptors/plugins/popover-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/popover-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/popover-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/popover-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/popover-pointer.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/popover-pointer.plugin.js +21 -0
- package/dist/content/descriptors/plugins/radio-group-checked.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/radio-group-checked.plugin.js +16 -0
- package/dist/content/descriptors/plugins/radio-group-name.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/radio-group-name.plugin.js +16 -0
- package/dist/content/descriptors/plugins/rating-hover.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/rating-hover.plugin.js +17 -0
- package/dist/content/descriptors/plugins/rating-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/rating-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/rating-validity.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/rating-validity.plugin.js +17 -0
- package/dist/content/descriptors/plugins/ready.plugin.d.ts +7 -0
- package/dist/content/descriptors/plugins/ready.plugin.js +14 -0
- package/dist/content/descriptors/plugins/scroll-lock.plugin.d.ts +18 -0
- package/dist/content/descriptors/plugins/scroll-lock.plugin.js +29 -0
- package/dist/content/descriptors/plugins/scroller-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/scroller-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/scroller-viewport.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/scroller-viewport.plugin.js +16 -0
- package/dist/content/descriptors/plugins/select-backspace.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/select-backspace.plugin.js +25 -0
- package/dist/content/descriptors/plugins/select-editable.plugin.d.ts +18 -0
- package/dist/content/descriptors/plugins/select-editable.plugin.js +31 -0
- package/dist/content/descriptors/plugins/select-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/select-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/select-keyboard.plugin.d.ts +21 -0
- package/dist/content/descriptors/plugins/select-keyboard.plugin.js +33 -0
- package/dist/content/descriptors/plugins/select-pointer.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/select-pointer.plugin.js +24 -0
- package/dist/content/descriptors/plugins/skeleton-layout.plugin.d.ts +14 -0
- package/dist/content/descriptors/plugins/skeleton-layout.plugin.js +18 -0
- package/dist/content/descriptors/plugins/slide-keyboard.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/slide-keyboard.plugin.js +16 -0
- package/dist/content/descriptors/plugins/slide-pointer.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/slide-pointer.plugin.js +19 -0
- package/dist/content/descriptors/plugins/swipe.plugin.d.ts +13 -0
- package/dist/content/descriptors/plugins/swipe.plugin.js +20 -0
- package/dist/content/descriptors/plugins/table-column-ids.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/table-column-ids.plugin.js +17 -0
- package/dist/content/descriptors/plugins/table-column-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/table-column-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/table-column-reorder.plugin.d.ts +13 -0
- package/dist/content/descriptors/plugins/table-column-reorder.plugin.js +20 -0
- package/dist/content/descriptors/plugins/table-column-resize.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/table-column-resize.plugin.js +19 -0
- package/dist/content/descriptors/plugins/table-grid.plugin.d.ts +15 -0
- package/dist/content/descriptors/plugins/table-grid.plugin.js +22 -0
- package/dist/content/descriptors/plugins/table-layout.plugin.d.ts +12 -0
- package/dist/content/descriptors/plugins/table-layout.plugin.js +19 -0
- package/dist/content/descriptors/plugins/table-names.plugin.d.ts +16 -0
- package/dist/content/descriptors/plugins/table-names.plugin.js +20 -0
- package/dist/content/descriptors/plugins/table-row-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/table-row-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tabs-active-tab.plugin.d.ts +5 -0
- package/dist/content/descriptors/plugins/tabs-active-tab.plugin.js +12 -0
- package/dist/content/descriptors/plugins/tabs-content-warn.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/tabs-content-warn.plugin.js +15 -0
- package/dist/content/descriptors/plugins/tabs-item-ids.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/tabs-item-ids.plugin.js +15 -0
- package/dist/content/descriptors/plugins/tabs-item-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/tabs-item-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tabs-keyboard.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/tabs-keyboard.plugin.js +15 -0
- package/dist/content/descriptors/plugins/tabs-layout.plugin.d.ts +5 -0
- package/dist/content/descriptors/plugins/tabs-layout.plugin.js +12 -0
- package/dist/content/descriptors/plugins/tags-item-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/tags-item-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tags-keyboard.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/tags-keyboard.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tags-scroll.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/tags-scroll.plugin.js +17 -0
- package/dist/content/descriptors/plugins/textarea-autoresize.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/textarea-autoresize.plugin.js +17 -0
- package/dist/content/descriptors/plugins/textarea-ids.plugin.d.ts +11 -0
- package/dist/content/descriptors/plugins/textarea-ids.plugin.js +18 -0
- package/dist/content/descriptors/plugins/textarea-names.plugin.d.ts +17 -0
- package/dist/content/descriptors/plugins/textarea-names.plugin.js +21 -0
- package/dist/content/descriptors/plugins/toasts-cascade.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/toasts-cascade.plugin.js +17 -0
- package/dist/content/descriptors/plugins/toasts-item-names.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/toasts-item-names.plugin.js +16 -0
- package/dist/content/descriptors/plugins/toasts-keyboard.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/toasts-keyboard.plugin.js +16 -0
- package/dist/content/descriptors/plugins/toasts-layout.plugin.d.ts +16 -0
- package/dist/content/descriptors/plugins/toasts-layout.plugin.js +20 -0
- package/dist/content/descriptors/plugins/toasts-names.plugin.d.ts +8 -0
- package/dist/content/descriptors/plugins/toasts-names.plugin.js +15 -0
- package/dist/content/descriptors/plugins/toasts-removal.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/toasts-removal.plugin.js +16 -0
- package/dist/content/descriptors/plugins/toasts-timer.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/toasts-timer.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tooltip-ids.plugin.d.ts +9 -0
- package/dist/content/descriptors/plugins/tooltip-ids.plugin.js +16 -0
- package/dist/content/descriptors/plugins/tooltip-trigger.plugin.d.ts +10 -0
- package/dist/content/descriptors/plugins/tooltip-trigger.plugin.js +23 -0
- package/dist/content/extensions/collection/collection-item.extension.class.d.ts +64 -0
- package/dist/content/extensions/collection/collection-item.extension.class.js +111 -0
- package/dist/content/extensions/collection/collection.extension.class.d.ts +21 -0
- package/dist/content/extensions/collection/collection.extension.class.js +57 -0
- package/dist/content/extensions/collection/index.d.ts +3 -0
- package/dist/content/extensions/collection/item-props.d.ts +13 -0
- package/dist/content/extensions/collection/item-props.js +20 -0
- package/dist/content/extensions/collection/keys.d.ts +23 -0
- package/dist/content/extensions/collection/keys.js +17 -0
- package/dist/content/extensions/collection/members.class.d.ts +24 -0
- package/dist/content/extensions/collection/members.class.js +18 -0
- package/dist/content/extensions/collection/types.d.ts +41 -0
- package/dist/content/extensions/drag-and-drop/drag-and-drop-collection.extension.class.d.ts +26 -0
- package/dist/content/extensions/drag-and-drop/drag-and-drop-collection.extension.class.js +34 -0
- package/dist/content/extensions/drag-and-drop/drag-and-drop.extension.class.d.ts +21 -0
- package/dist/content/extensions/drag-and-drop/drag-and-drop.extension.class.js +9 -0
- package/dist/content/extensions/drag-and-drop/index.d.ts +3 -0
- package/dist/content/extensions/drag-and-drop/keys.d.ts +15 -0
- package/dist/content/extensions/drag-and-drop/keys.js +9 -0
- package/dist/content/extensions/drag-and-drop/types.d.ts +10 -0
- package/dist/content/extensions/field/field-control.extension.class.d.ts +63 -0
- package/dist/content/extensions/field/field-control.extension.class.js +172 -0
- package/dist/content/extensions/field/field.extension.class.d.ts +21 -0
- package/dist/content/extensions/field/field.extension.class.js +14 -0
- package/dist/content/extensions/field/index.d.ts +3 -0
- package/dist/content/extensions/field/keys.d.ts +14 -0
- package/dist/content/extensions/field/keys.js +8 -0
- package/dist/content/extensions/field/types.d.ts +36 -0
- package/dist/content/extensions/index.d.ts +8 -0
- package/dist/content/extensions/item-group/index.d.ts +2 -0
- package/dist/content/extensions/item-group/item-group.extension.class.d.ts +49 -0
- package/dist/content/extensions/item-group/item-group.extension.class.js +91 -0
- package/dist/content/extensions/item-group/keys.d.ts +15 -0
- package/dist/content/extensions/item-group/keys.js +9 -0
- package/dist/content/extensions/item-group/types.d.ts +34 -0
- package/dist/content/extensions/menu/index.d.ts +3 -0
- package/dist/content/extensions/menu/keys.d.ts +10 -0
- package/dist/content/extensions/menu/keys.js +5 -0
- package/dist/content/extensions/menu/radio-group.extension.class.d.ts +22 -0
- package/dist/content/extensions/menu/radio-group.extension.class.js +9 -0
- package/dist/content/extensions/menu/radio-item.extension.class.d.ts +20 -0
- package/dist/content/extensions/menu/radio-item.extension.class.js +10 -0
- package/dist/content/extensions/menu/types.d.ts +10 -0
- package/dist/content/extensions/tabs/index.d.ts +2 -0
- package/dist/content/extensions/tabs/tabs-content-binding.extension.class.d.ts +69 -0
- package/dist/content/extensions/tabs/tabs-content-binding.extension.class.js +184 -0
- package/dist/content/extensions/tabs/types.d.ts +11 -0
- package/dist/content/extensions/toasts/index.d.ts +3 -0
- package/dist/content/extensions/toasts/keys.d.ts +11 -0
- package/dist/content/extensions/toasts/keys.js +5 -0
- package/dist/content/extensions/toasts/toasts-api.extension.class.d.ts +23 -0
- package/dist/content/extensions/toasts/toasts-api.extension.class.js +9 -0
- package/dist/content/extensions/toasts/types.d.ts +19 -0
- package/dist/content/extensions/virtual/index.d.ts +3 -0
- package/dist/content/extensions/virtual/keys.d.ts +15 -0
- package/dist/content/extensions/virtual/keys.js +8 -0
- package/dist/content/extensions/virtual/types.d.ts +40 -0
- package/dist/content/extensions/virtual/virtual-collection.extension.class.d.ts +33 -0
- package/dist/content/extensions/virtual/virtual-collection.extension.class.js +15 -0
- package/dist/content/extensions/virtual/virtual.extension.class.d.ts +36 -0
- package/dist/content/extensions/virtual/virtual.extension.class.js +74 -0
- package/dist/content/icons/index.d.ts +2 -0
- package/dist/content/icons/roles.d.ts +29 -0
- package/dist/content/icons/roles.js +36 -0
- package/dist/content/index.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +236 -0
- package/dist/protected/adapter/common/index.d.ts +6 -0
- package/dist/protected/adapter/common/parts.d.ts +30 -0
- package/dist/protected/adapter/common/parts.js +35 -0
- package/dist/protected/adapter/common/props.types.d.ts +48 -0
- package/dist/protected/adapter/common/slots.d.ts +25 -0
- package/dist/protected/adapter/common/slots.js +25 -0
- package/dist/protected/adapter/common/slots.types.d.ts +37 -0
- package/dist/protected/adapter/common/state.d.ts +14 -0
- package/dist/protected/adapter/common/state.js +14 -0
- package/dist/protected/adapter/common/state.types.d.ts +39 -0
- package/dist/protected/adapter/context/adapter-context.class.d.ts +68 -0
- package/dist/protected/adapter/context/adapter-context.class.js +118 -0
- package/dist/protected/adapter/context/create-adapter-context.d.ts +34 -0
- package/dist/protected/adapter/context/create-adapter-context.js +91 -0
- package/dist/protected/adapter/context/external-plugins.class.d.ts +51 -0
- package/dist/protected/adapter/context/external-plugins.class.js +80 -0
- package/dist/protected/adapter/context/index.d.ts +2 -0
- package/dist/protected/adapter/context/own-bundle.class.d.ts +25 -0
- package/dist/protected/adapter/context/own-bundle.class.js +86 -0
- package/dist/protected/adapter/context/shared-bundle.class.d.ts +25 -0
- package/dist/protected/adapter/context/shared-bundle.class.js +24 -0
- package/dist/protected/adapter/context/types.d.ts +184 -0
- package/dist/protected/adapter/elevator/elevator.class.d.ts +21 -0
- package/dist/protected/adapter/elevator/elevator.class.js +19 -0
- package/dist/protected/adapter/elevator/index.d.ts +3 -0
- package/dist/protected/adapter/elevator/keys.d.ts +12 -0
- package/dist/protected/adapter/elevator/keys.js +7 -0
- package/dist/protected/adapter/elevator/types.d.ts +31 -0
- package/dist/protected/adapter/exchange/assembling.class.d.ts +39 -0
- package/dist/protected/adapter/exchange/assembling.class.js +55 -0
- package/dist/protected/adapter/exchange/cell.class.d.ts +31 -0
- package/dist/protected/adapter/exchange/cell.class.js +37 -0
- package/dist/protected/adapter/exchange/event-relay.class.d.ts +29 -0
- package/dist/protected/adapter/exchange/event-relay.class.js +53 -0
- package/dist/protected/adapter/exchange/exchange.class.d.ts +78 -0
- package/dist/protected/adapter/exchange/exchange.class.js +129 -0
- package/dist/protected/adapter/exchange/index.d.ts +8 -0
- package/dist/protected/adapter/exchange/input-port.class.d.ts +64 -0
- package/dist/protected/adapter/exchange/input-port.class.js +68 -0
- package/dist/protected/adapter/exchange/line.class.d.ts +53 -0
- package/dist/protected/adapter/exchange/line.class.js +39 -0
- package/dist/protected/adapter/exchange/member.class.d.ts +20 -0
- package/dist/protected/adapter/exchange/member.class.js +11 -0
- package/dist/protected/adapter/exchange/routing.class.d.ts +25 -0
- package/dist/protected/adapter/exchange/routing.class.js +94 -0
- package/dist/protected/adapter/exchange/state-store.class.d.ts +57 -0
- package/dist/protected/adapter/exchange/state-store.class.js +76 -0
- package/dist/protected/adapter/exchange/tap.class.d.ts +54 -0
- package/dist/protected/adapter/exchange/tap.class.js +51 -0
- package/dist/protected/adapter/exchange/types.d.ts +55 -0
- package/dist/protected/adapter/exchange/update-port.class.d.ts +25 -0
- package/dist/protected/adapter/exchange/update-port.class.js +26 -0
- package/dist/protected/adapter/exchange/value.d.ts +17 -0
- package/dist/protected/adapter/exchange/value.js +31 -0
- package/dist/protected/adapter/index.d.ts +5 -0
- package/dist/protected/adapter/surface/index.d.ts +2 -0
- package/dist/protected/adapter/surface/surface.class.d.ts +34 -0
- package/dist/protected/adapter/surface/surface.class.js +87 -0
- package/dist/protected/adapter/surface/types.d.ts +29 -0
- package/dist/protected/define/component-descriptor.class.d.ts +55 -0
- package/dist/protected/define/component-descriptor.class.js +112 -0
- package/dist/protected/define/component.d.ts +14 -0
- package/dist/protected/define/component.js +12 -0
- package/dist/protected/define/contribution.d.ts +20 -0
- package/dist/protected/define/contribution.js +18 -0
- package/dist/protected/define/contribution.types.d.ts +66 -0
- package/dist/protected/define/descriptor.d.ts +21 -0
- package/dist/protected/define/descriptor.js +27 -0
- package/dist/protected/define/index.d.ts +11 -0
- package/dist/protected/define/inference.types.d.ts +247 -0
- package/dist/protected/define/inherit.d.ts +21 -0
- package/dist/protected/define/inherit.js +11 -0
- package/dist/protected/define/name.class.d.ts +21 -0
- package/dist/protected/define/name.class.js +31 -0
- package/dist/protected/define/plugin-definition.class.d.ts +45 -0
- package/dist/protected/define/plugin-definition.class.js +49 -0
- package/dist/protected/define/plugin.d.ts +18 -0
- package/dist/protected/define/plugin.js +20 -0
- package/dist/protected/define/prop-spec.class.d.ts +70 -0
- package/dist/protected/define/prop-spec.class.js +79 -0
- package/dist/protected/define/prop-type.d.ts +12 -0
- package/dist/protected/define/prop-type.js +6 -0
- package/dist/protected/define/slot-declaration.class.d.ts +20 -0
- package/dist/protected/define/slot-declaration.class.js +14 -0
- package/dist/protected/define/types.d.ts +235 -0
- package/dist/protected/index.d.ts +4 -0
- package/dist/protected/naming/common-profile.d.ts +10 -0
- package/dist/protected/naming/common-profile.js +16 -0
- package/dist/protected/naming/index.d.ts +4 -0
- package/dist/protected/naming/naming.d.ts +33 -0
- package/dist/protected/naming/naming.js +34 -0
- package/dist/protected/naming/naming.types.d.ts +49 -0
- package/dist/protected/naming/strategy.types.d.ts +27 -0
- package/dist/protected/registry/extensions.d.ts +29 -0
- package/dist/protected/registry/extensions.js +28 -0
- package/dist/protected/registry/icons.d.ts +44 -0
- package/dist/protected/registry/icons.js +59 -0
- package/dist/protected/registry/index.d.ts +5 -0
- package/dist/protected/registry/plugins.d.ts +40 -0
- package/dist/protected/registry/plugins.js +29 -0
- package/dist/protected/registry/registrations.d.ts +15 -0
- package/dist/protected/registry/registrations.js +30 -0
- package/dist/protected/registry/theme.d.ts +29 -0
- package/dist/protected/registry/theme.js +40 -0
- package/dist/protected/registry/types.d.ts +85 -0
- package/package.json +44 -4
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Дескриптор RadioGroup (TRadioGroup).
|
|
3
|
+
*
|
|
4
|
+
* Наследует `ValueControlDescriptor` (value, name, disabled, focused, size,
|
|
5
|
+
* variant, ...) и добавляет `view`. Клавиатурного плагина нет: радио
|
|
6
|
+
* нативные, и клавиатуру группы даёт браузер по общему `name` — стрелки,
|
|
7
|
+
* пропуск выключенных, одну остановку Tab. Общий `name` раздаёт радио
|
|
8
|
+
* `TRadioGroupNamePlugin`, радио он узнаёт от реестра bundles коллекции.
|
|
9
|
+
*
|
|
10
|
+
* Отметку полей после выбора пользователя возвращает к модели
|
|
11
|
+
* `TRadioGroupCheckedPlugin`: выбор, отменённый в `item:activate:before`,
|
|
12
|
+
* браузер уже отметил, а разметка поле не перерисует — модель не сменилась.
|
|
13
|
+
* Поля радио он находит через реестр узлов коллекции (`TCollectionElements`).
|
|
14
|
+
*
|
|
15
|
+
* `value`, а не выбор элементов наружу: потребителю нужен ответ в значениях,
|
|
16
|
+
* и он же уходит в форму. `view`, `size` и `variant` задаются группе, а тема
|
|
17
|
+
* читает их с каждого радио — раздаёт их `TRadioGroupExtension`.
|
|
18
|
+
*/
|
|
19
|
+
import { TRadioGroup } from '@soxa-ui/core';
|
|
20
|
+
import type { IRadioGroupItem } from '@soxa-ui/core';
|
|
21
|
+
export declare const RadioGroupDescriptor: () => import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
22
|
+
readonly ctor: typeof TRadioGroup;
|
|
23
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
24
|
+
readonly ctor: typeof import("@soxa-ui/core").TValueControl;
|
|
25
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
26
|
+
readonly ctor: typeof import("@soxa-ui/core").TControl;
|
|
27
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
28
|
+
readonly ctor: typeof import("@soxa-ui/core").TStylable;
|
|
29
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
30
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponentView;
|
|
31
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
32
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponent;
|
|
33
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
34
|
+
readonly contribution: {
|
|
35
|
+
readonly props: {
|
|
36
|
+
readonly ctrl: {
|
|
37
|
+
readonly type: ObjectConstructor;
|
|
38
|
+
};
|
|
39
|
+
readonly embedded: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
readonly pluginProps: {
|
|
43
|
+
readonly type: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly events: readonly ["bundle:create", "plugin:event"];
|
|
47
|
+
};
|
|
48
|
+
}>>;
|
|
49
|
+
readonly contribution: {};
|
|
50
|
+
}>>;
|
|
51
|
+
readonly contribution: {
|
|
52
|
+
readonly slots: {
|
|
53
|
+
readonly default: {
|
|
54
|
+
readonly description: "Содержимое компонента";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly props: {
|
|
58
|
+
readonly rendered: {
|
|
59
|
+
readonly type: BooleanConstructor;
|
|
60
|
+
readonly triggers: readonly ["change:rendered"];
|
|
61
|
+
};
|
|
62
|
+
readonly visible: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly triggers: readonly ["change:visible"];
|
|
65
|
+
};
|
|
66
|
+
readonly present: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly protected: true;
|
|
69
|
+
readonly triggers: readonly ["change:rendered", "change:visible"];
|
|
70
|
+
};
|
|
71
|
+
readonly tag: {
|
|
72
|
+
readonly type: readonly [StringConstructor, ObjectConstructor];
|
|
73
|
+
readonly triggers: readonly ["change:tag"];
|
|
74
|
+
};
|
|
75
|
+
readonly direction: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly triggers: readonly ["change:direction"];
|
|
78
|
+
};
|
|
79
|
+
readonly classes: {
|
|
80
|
+
readonly type: ObjectConstructor;
|
|
81
|
+
readonly protected: true;
|
|
82
|
+
readonly triggers: readonly ["change:classes"];
|
|
83
|
+
};
|
|
84
|
+
readonly aria: {
|
|
85
|
+
readonly type: ObjectConstructor;
|
|
86
|
+
readonly protected: true;
|
|
87
|
+
readonly triggers: readonly ["change:aria"];
|
|
88
|
+
};
|
|
89
|
+
readonly dataset: {
|
|
90
|
+
readonly type: ObjectConstructor;
|
|
91
|
+
readonly protected: true;
|
|
92
|
+
readonly triggers: readonly ["change:dataset"];
|
|
93
|
+
};
|
|
94
|
+
readonly attrs: {
|
|
95
|
+
readonly type: ObjectConstructor;
|
|
96
|
+
readonly protected: true;
|
|
97
|
+
readonly triggers: readonly ["change:attrs"];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly events: readonly ["show", "hide", "show:before", "hide:before", "ready", "change:rendered", "change:visible", "change:tag", "change:direction"];
|
|
101
|
+
};
|
|
102
|
+
readonly plugins: readonly [import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TElementPlugin, "element", {
|
|
103
|
+
readonly events: readonly ["ready", "removed"];
|
|
104
|
+
}>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TReadyPlugin, "ready", import("../../../..").IContribution>>];
|
|
105
|
+
}>>;
|
|
106
|
+
readonly contribution: {
|
|
107
|
+
readonly props: {
|
|
108
|
+
readonly size: {
|
|
109
|
+
readonly type: StringConstructor;
|
|
110
|
+
readonly triggers: readonly ["change:size"];
|
|
111
|
+
};
|
|
112
|
+
readonly variant: {
|
|
113
|
+
readonly type: StringConstructor;
|
|
114
|
+
readonly triggers: readonly ["change:variant"];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly events: readonly ["change:size", "change:variant"];
|
|
118
|
+
};
|
|
119
|
+
}>>;
|
|
120
|
+
readonly contribution: {
|
|
121
|
+
readonly props: {
|
|
122
|
+
readonly disabled: {
|
|
123
|
+
readonly type: BooleanConstructor;
|
|
124
|
+
readonly triggers: readonly ["change:disabled"];
|
|
125
|
+
};
|
|
126
|
+
readonly focused: {
|
|
127
|
+
readonly type: BooleanConstructor;
|
|
128
|
+
readonly triggers: readonly ["change:focused"];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly events: readonly ["change:disabled", "change:focused"];
|
|
132
|
+
};
|
|
133
|
+
readonly plugins: readonly [import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TActionPlugin, "action", {
|
|
134
|
+
readonly events: readonly ["press", "click", "focus", "blur"];
|
|
135
|
+
}>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TAriaPlugin, "aria", {
|
|
136
|
+
readonly props: {
|
|
137
|
+
readonly label: {
|
|
138
|
+
readonly type: StringConstructor;
|
|
139
|
+
readonly triggers: readonly ["change:label"];
|
|
140
|
+
};
|
|
141
|
+
readonly labelledBy: {
|
|
142
|
+
readonly type: StringConstructor;
|
|
143
|
+
readonly triggers: readonly ["change:labelledBy"];
|
|
144
|
+
};
|
|
145
|
+
readonly describedBy: {
|
|
146
|
+
readonly type: StringConstructor;
|
|
147
|
+
readonly triggers: readonly ["change:describedBy"];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly events: readonly ["change:label", "change:labelledBy", "change:describedBy"];
|
|
151
|
+
}>>];
|
|
152
|
+
}>>;
|
|
153
|
+
readonly contribution: {
|
|
154
|
+
readonly props: {
|
|
155
|
+
readonly value: {
|
|
156
|
+
readonly type: readonly [StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor, ArrayConstructor];
|
|
157
|
+
readonly triggers: readonly ["change:value"];
|
|
158
|
+
};
|
|
159
|
+
readonly name: {
|
|
160
|
+
readonly type: StringConstructor;
|
|
161
|
+
readonly triggers: readonly ["change:name"];
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly events: readonly ["change:value", "change:name"];
|
|
165
|
+
};
|
|
166
|
+
}>>;
|
|
167
|
+
readonly contribution: {
|
|
168
|
+
/**
|
|
169
|
+
* `default` — радио группы: `RadioGroup.Item` где угодно внутри, хоть в
|
|
170
|
+
* строках чужого списка. `item` — подпись радио, когда их задали пропом
|
|
171
|
+
* `items`; слот статический и получает радио через scope — вместе со
|
|
172
|
+
* scope подписи радио (`active`).
|
|
173
|
+
*/
|
|
174
|
+
readonly slots: {
|
|
175
|
+
readonly default: {
|
|
176
|
+
readonly description: "Радио группы — компоненты RadioGroup.Item";
|
|
177
|
+
};
|
|
178
|
+
readonly item: {
|
|
179
|
+
readonly scope: {
|
|
180
|
+
readonly item: import("../../../..").TPropType<IRadioGroupItem>;
|
|
181
|
+
readonly active: import("../../../..").TPropType<boolean>;
|
|
182
|
+
};
|
|
183
|
+
readonly description: "Подпись радио при работе через проп items";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly props: {
|
|
187
|
+
readonly view: {
|
|
188
|
+
readonly type: StringConstructor;
|
|
189
|
+
readonly triggers: readonly ["change:view"];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly events: readonly ["change:view"];
|
|
193
|
+
};
|
|
194
|
+
readonly plugins: readonly [import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TActionPlugin, "action", {
|
|
195
|
+
readonly events: readonly ["press", "click", "focus", "blur"];
|
|
196
|
+
}>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TCollectionBundlesPlugin, "bundles", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TCollectionElements, "elements", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TRadioGroupNamePlugin, "name", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TRadioGroupCheckedPlugin, "checked", import("../../../..").IContribution>>];
|
|
197
|
+
}>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent } from "../../../../protected/define/component.js";
|
|
2
|
+
import { defineDescriptor } from "../../../../protected/define/descriptor.js";
|
|
3
|
+
import { defineType } from "../../../../protected/define/prop-type.js";
|
|
4
|
+
import { ActionPluginDescriptor } from "../../plugins/action.plugin.js";
|
|
5
|
+
import { CollectionBundlesPluginDescriptor } from "../../plugins/collection-bundles.plugin.js";
|
|
6
|
+
import { CollectionElementsPluginDescriptor } from "../../plugins/collection-elements.plugin.js";
|
|
7
|
+
import { RadioGroupNamePluginDescriptor } from "../../plugins/radio-group-name.plugin.js";
|
|
8
|
+
import { RadioGroupCheckedPluginDescriptor } from "../../plugins/radio-group-checked.plugin.js";
|
|
9
|
+
import { ValueControlDescriptor } from "../value-control.descriptor.js";
|
|
10
|
+
import { TRadioGroup } from "@soxa-ui/core";
|
|
11
|
+
import { radioStopOf } from "@soxa-ui/plugins";
|
|
12
|
+
//#region content/descriptors/components/radio-group/radio-group.descriptor.ts
|
|
13
|
+
/**
|
|
14
|
+
* Дескриптор RadioGroup (TRadioGroup).
|
|
15
|
+
*
|
|
16
|
+
* Наследует `ValueControlDescriptor` (value, name, disabled, focused, size,
|
|
17
|
+
* variant, ...) и добавляет `view`. Клавиатурного плагина нет: радио
|
|
18
|
+
* нативные, и клавиатуру группы даёт браузер по общему `name` — стрелки,
|
|
19
|
+
* пропуск выключенных, одну остановку Tab. Общий `name` раздаёт радио
|
|
20
|
+
* `TRadioGroupNamePlugin`, радио он узнаёт от реестра bundles коллекции.
|
|
21
|
+
*
|
|
22
|
+
* Отметку полей после выбора пользователя возвращает к модели
|
|
23
|
+
* `TRadioGroupCheckedPlugin`: выбор, отменённый в `item:activate:before`,
|
|
24
|
+
* браузер уже отметил, а разметка поле не перерисует — модель не сменилась.
|
|
25
|
+
* Поля радио он находит через реестр узлов коллекции (`TCollectionElements`).
|
|
26
|
+
*
|
|
27
|
+
* `value`, а не выбор элементов наружу: потребителю нужен ответ в значениях,
|
|
28
|
+
* и он же уходит в форму. `view`, `size` и `variant` задаются группе, а тема
|
|
29
|
+
* читает их с каждого радио — раздаёт их `TRadioGroupExtension`.
|
|
30
|
+
*/
|
|
31
|
+
var RadioGroupDescriptor = defineDescriptor(() => defineComponent({
|
|
32
|
+
ctor: TRadioGroup,
|
|
33
|
+
extends: ValueControlDescriptor(),
|
|
34
|
+
contribution: {
|
|
35
|
+
/**
|
|
36
|
+
* `default` — радио группы: `RadioGroup.Item` где угодно внутри, хоть в
|
|
37
|
+
* строках чужого списка. `item` — подпись радио, когда их задали пропом
|
|
38
|
+
* `items`; слот статический и получает радио через scope — вместе со
|
|
39
|
+
* scope подписи радио (`active`).
|
|
40
|
+
*/
|
|
41
|
+
slots: {
|
|
42
|
+
default: { description: "Радио группы — компоненты RadioGroup.Item" },
|
|
43
|
+
item: {
|
|
44
|
+
scope: {
|
|
45
|
+
item: defineType(Object),
|
|
46
|
+
active: defineType(Boolean)
|
|
47
|
+
},
|
|
48
|
+
description: "Подпись радио при работе через проп items"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
props: { view: {
|
|
52
|
+
type: String,
|
|
53
|
+
triggers: ["change:view"]
|
|
54
|
+
} },
|
|
55
|
+
events: ["change:view"]
|
|
56
|
+
},
|
|
57
|
+
plugins: [
|
|
58
|
+
ActionPluginDescriptor.with({ focusTarget: radioStopOf }),
|
|
59
|
+
CollectionBundlesPluginDescriptor,
|
|
60
|
+
CollectionElementsPluginDescriptor,
|
|
61
|
+
RadioGroupNamePluginDescriptor,
|
|
62
|
+
RadioGroupCheckedPluginDescriptor
|
|
63
|
+
]
|
|
64
|
+
}));
|
|
65
|
+
//#endregion
|
|
66
|
+
export { RadioGroupDescriptor };
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Дескриптор Rating (TRating) — оценка звёздами: ползунок с одной ручкой,
|
|
3
|
+
* у которого шкала — ряд звёзд.
|
|
4
|
+
*
|
|
5
|
+
* Наследует InputControlDescriptor (readonly, required, id, value, name,
|
|
6
|
+
* disabled, focused, size, variant, наборы, плагины element/ready/action/aria)
|
|
7
|
+
* и добавляет число звёзд и шаг, выход звёзд для разметки, слот значка и
|
|
8
|
+
* плагины: указатель и клавиатуру Slider — оценка реализует их контракт
|
|
9
|
+
* (`ISlidable`), — наведение, строку значения от локали и обязательность:
|
|
10
|
+
* `required` нативный range не знает, и форму с обязательной оценкой, которую
|
|
11
|
+
* не поставили, не отправляет плагин — ошибкой поля со строкой локали.
|
|
12
|
+
*/
|
|
13
|
+
import { TRating } from '@soxa-ui/core';
|
|
14
|
+
export declare const RatingDescriptor: () => import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
15
|
+
readonly ctor: typeof TRating;
|
|
16
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
17
|
+
readonly ctor: typeof import("@soxa-ui/core").TInputControl;
|
|
18
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
19
|
+
readonly ctor: typeof import("@soxa-ui/core").TValueControl;
|
|
20
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
21
|
+
readonly ctor: typeof import("@soxa-ui/core").TControl;
|
|
22
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
23
|
+
readonly ctor: typeof import("@soxa-ui/core").TStylable;
|
|
24
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
25
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponentView;
|
|
26
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
27
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponent;
|
|
28
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
29
|
+
readonly contribution: {
|
|
30
|
+
readonly props: {
|
|
31
|
+
readonly ctrl: {
|
|
32
|
+
readonly type: ObjectConstructor;
|
|
33
|
+
};
|
|
34
|
+
readonly embedded: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
readonly pluginProps: {
|
|
38
|
+
readonly type: ObjectConstructor;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly events: readonly ["bundle:create", "plugin:event"];
|
|
42
|
+
};
|
|
43
|
+
}>>;
|
|
44
|
+
readonly contribution: {};
|
|
45
|
+
}>>;
|
|
46
|
+
readonly contribution: {
|
|
47
|
+
readonly slots: {
|
|
48
|
+
readonly default: {
|
|
49
|
+
readonly description: "Содержимое компонента";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly props: {
|
|
53
|
+
readonly rendered: {
|
|
54
|
+
readonly type: BooleanConstructor;
|
|
55
|
+
readonly triggers: readonly ["change:rendered"];
|
|
56
|
+
};
|
|
57
|
+
readonly visible: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly triggers: readonly ["change:visible"];
|
|
60
|
+
};
|
|
61
|
+
readonly present: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly protected: true;
|
|
64
|
+
readonly triggers: readonly ["change:rendered", "change:visible"];
|
|
65
|
+
};
|
|
66
|
+
readonly tag: {
|
|
67
|
+
readonly type: readonly [StringConstructor, ObjectConstructor];
|
|
68
|
+
readonly triggers: readonly ["change:tag"];
|
|
69
|
+
};
|
|
70
|
+
readonly direction: {
|
|
71
|
+
readonly type: StringConstructor;
|
|
72
|
+
readonly triggers: readonly ["change:direction"];
|
|
73
|
+
};
|
|
74
|
+
readonly classes: {
|
|
75
|
+
readonly type: ObjectConstructor;
|
|
76
|
+
readonly protected: true;
|
|
77
|
+
readonly triggers: readonly ["change:classes"];
|
|
78
|
+
};
|
|
79
|
+
readonly aria: {
|
|
80
|
+
readonly type: ObjectConstructor;
|
|
81
|
+
readonly protected: true;
|
|
82
|
+
readonly triggers: readonly ["change:aria"];
|
|
83
|
+
};
|
|
84
|
+
readonly dataset: {
|
|
85
|
+
readonly type: ObjectConstructor;
|
|
86
|
+
readonly protected: true;
|
|
87
|
+
readonly triggers: readonly ["change:dataset"];
|
|
88
|
+
};
|
|
89
|
+
readonly attrs: {
|
|
90
|
+
readonly type: ObjectConstructor;
|
|
91
|
+
readonly protected: true;
|
|
92
|
+
readonly triggers: readonly ["change:attrs"];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly events: readonly ["show", "hide", "show:before", "hide:before", "ready", "change:rendered", "change:visible", "change:tag", "change:direction"];
|
|
96
|
+
};
|
|
97
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TElementPlugin, "element", {
|
|
98
|
+
readonly events: readonly ["ready", "removed"];
|
|
99
|
+
}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TReadyPlugin, "ready", import("../../..").IContribution>>];
|
|
100
|
+
}>>;
|
|
101
|
+
readonly contribution: {
|
|
102
|
+
readonly props: {
|
|
103
|
+
readonly size: {
|
|
104
|
+
readonly type: StringConstructor;
|
|
105
|
+
readonly triggers: readonly ["change:size"];
|
|
106
|
+
};
|
|
107
|
+
readonly variant: {
|
|
108
|
+
readonly type: StringConstructor;
|
|
109
|
+
readonly triggers: readonly ["change:variant"];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly events: readonly ["change:size", "change:variant"];
|
|
113
|
+
};
|
|
114
|
+
}>>;
|
|
115
|
+
readonly contribution: {
|
|
116
|
+
readonly props: {
|
|
117
|
+
readonly disabled: {
|
|
118
|
+
readonly type: BooleanConstructor;
|
|
119
|
+
readonly triggers: readonly ["change:disabled"];
|
|
120
|
+
};
|
|
121
|
+
readonly focused: {
|
|
122
|
+
readonly type: BooleanConstructor;
|
|
123
|
+
readonly triggers: readonly ["change:focused"];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly events: readonly ["change:disabled", "change:focused"];
|
|
127
|
+
};
|
|
128
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TActionPlugin, "action", {
|
|
129
|
+
readonly events: readonly ["press", "click", "focus", "blur"];
|
|
130
|
+
}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TAriaPlugin, "aria", {
|
|
131
|
+
readonly props: {
|
|
132
|
+
readonly label: {
|
|
133
|
+
readonly type: StringConstructor;
|
|
134
|
+
readonly triggers: readonly ["change:label"];
|
|
135
|
+
};
|
|
136
|
+
readonly labelledBy: {
|
|
137
|
+
readonly type: StringConstructor;
|
|
138
|
+
readonly triggers: readonly ["change:labelledBy"];
|
|
139
|
+
};
|
|
140
|
+
readonly describedBy: {
|
|
141
|
+
readonly type: StringConstructor;
|
|
142
|
+
readonly triggers: readonly ["change:describedBy"];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly events: readonly ["change:label", "change:labelledBy", "change:describedBy"];
|
|
146
|
+
}>>];
|
|
147
|
+
}>>;
|
|
148
|
+
readonly contribution: {
|
|
149
|
+
readonly props: {
|
|
150
|
+
readonly value: {
|
|
151
|
+
readonly type: readonly [StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor, ArrayConstructor];
|
|
152
|
+
readonly triggers: readonly ["change:value"];
|
|
153
|
+
};
|
|
154
|
+
readonly name: {
|
|
155
|
+
readonly type: StringConstructor;
|
|
156
|
+
readonly triggers: readonly ["change:name"];
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly events: readonly ["change:value", "change:name"];
|
|
160
|
+
};
|
|
161
|
+
}>>;
|
|
162
|
+
readonly contribution: {
|
|
163
|
+
readonly props: {
|
|
164
|
+
readonly readonly: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly triggers: readonly ["change:readonly"];
|
|
167
|
+
};
|
|
168
|
+
readonly required: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly triggers: readonly ["change:required"];
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly events: readonly ["change:readonly", "change:required"];
|
|
174
|
+
};
|
|
175
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TIdPlugin, undefined, {
|
|
176
|
+
readonly props: {
|
|
177
|
+
readonly id: {
|
|
178
|
+
readonly type: StringConstructor;
|
|
179
|
+
readonly triggers: readonly ["change:id"];
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly events: readonly ["change:id"];
|
|
183
|
+
}>>];
|
|
184
|
+
}>>;
|
|
185
|
+
readonly contribution: {
|
|
186
|
+
/**
|
|
187
|
+
* Звёзды — разметка, а не части-компоненты: потребитель их не
|
|
188
|
+
* адресует, число звёзд задаёт `max`. Их значок — слот со scope
|
|
189
|
+
* звезды, по умолчанию — иконка роли `star` из пакета иконок.
|
|
190
|
+
*/
|
|
191
|
+
readonly slots: {
|
|
192
|
+
readonly icon: {
|
|
193
|
+
readonly scope: {
|
|
194
|
+
readonly value: import("../../..").TPropType<number>;
|
|
195
|
+
readonly filled: import("../../..").TPropType<boolean>;
|
|
196
|
+
};
|
|
197
|
+
readonly description: "Значок звезды — в обоих её слоях: пустом снизу (filled — false) и залитом сверху (filled — true). По умолчанию — иконка роли star";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly props: {
|
|
201
|
+
/**
|
|
202
|
+
* Значение переобъявлено типом: оценка — число. Триггер остаётся
|
|
203
|
+
* у ValueControl.
|
|
204
|
+
*/
|
|
205
|
+
readonly value: {
|
|
206
|
+
readonly type: NumberConstructor;
|
|
207
|
+
};
|
|
208
|
+
readonly max: {
|
|
209
|
+
readonly type: NumberConstructor;
|
|
210
|
+
readonly triggers: readonly ["change:max"];
|
|
211
|
+
};
|
|
212
|
+
readonly step: {
|
|
213
|
+
readonly type: NumberConstructor;
|
|
214
|
+
readonly triggers: readonly ["change:step"];
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Звёзды: номер и доля заливки (`--so-rating-fraction`). Своего
|
|
218
|
+
* экземпляра у звезды нет — её стиль отдаётся значением. Доля —
|
|
219
|
+
* от предпросмотра наведением, пока он идёт, иначе от значения;
|
|
220
|
+
* число звёзд — от `max`.
|
|
221
|
+
*/
|
|
222
|
+
readonly stars: {
|
|
223
|
+
readonly type: ArrayConstructor;
|
|
224
|
+
readonly protected: true;
|
|
225
|
+
readonly triggers: readonly ["change:value", "change:max", "change:preview"];
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly events: readonly ["commit", "change:max", "change:step", "change:preview"];
|
|
229
|
+
};
|
|
230
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TActionPlugin, "action", {
|
|
231
|
+
readonly events: readonly ["press", "click", "focus", "blur"];
|
|
232
|
+
}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TSlidePointerPlugin, "pointer", import("../../..").IContribution>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TSlideKeyboardPlugin, "keyboard", import("../../..").IContribution>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TRatingHoverPlugin, "hover", import("../../..").IContribution>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TRatingNamesPlugin, "names", import("../../..").IContribution>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TRatingValidityPlugin, "validity", import("../../..").IContribution>>];
|
|
233
|
+
}>>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent } from "../../../protected/define/component.js";
|
|
2
|
+
import { defineDescriptor } from "../../../protected/define/descriptor.js";
|
|
3
|
+
import { defineType } from "../../../protected/define/prop-type.js";
|
|
4
|
+
import { ActionPluginDescriptor } from "../plugins/action.plugin.js";
|
|
5
|
+
import { SlidePointerPluginDescriptor } from "../plugins/slide-pointer.plugin.js";
|
|
6
|
+
import { SlideKeyboardPluginDescriptor } from "../plugins/slide-keyboard.plugin.js";
|
|
7
|
+
import { RatingHoverPluginDescriptor } from "../plugins/rating-hover.plugin.js";
|
|
8
|
+
import { RatingValidityPluginDescriptor } from "../plugins/rating-validity.plugin.js";
|
|
9
|
+
import { RatingNamesPluginDescriptor } from "../plugins/rating-names.plugin.js";
|
|
10
|
+
import { InputControlDescriptor } from "./input-control.descriptor.js";
|
|
11
|
+
import { TRating } from "@soxa-ui/core";
|
|
12
|
+
import { fieldOf } from "@soxa-ui/plugins";
|
|
13
|
+
//#region content/descriptors/components/rating.descriptor.ts
|
|
14
|
+
/**
|
|
15
|
+
* Дескриптор Rating (TRating) — оценка звёздами: ползунок с одной ручкой,
|
|
16
|
+
* у которого шкала — ряд звёзд.
|
|
17
|
+
*
|
|
18
|
+
* Наследует InputControlDescriptor (readonly, required, id, value, name,
|
|
19
|
+
* disabled, focused, size, variant, наборы, плагины element/ready/action/aria)
|
|
20
|
+
* и добавляет число звёзд и шаг, выход звёзд для разметки, слот значка и
|
|
21
|
+
* плагины: указатель и клавиатуру Slider — оценка реализует их контракт
|
|
22
|
+
* (`ISlidable`), — наведение, строку значения от локали и обязательность:
|
|
23
|
+
* `required` нативный range не знает, и форму с обязательной оценкой, которую
|
|
24
|
+
* не поставили, не отправляет плагин — ошибкой поля со строкой локали.
|
|
25
|
+
*/
|
|
26
|
+
var RatingDescriptor = defineDescriptor(() => defineComponent({
|
|
27
|
+
ctor: TRating,
|
|
28
|
+
extends: InputControlDescriptor(),
|
|
29
|
+
contribution: {
|
|
30
|
+
/**
|
|
31
|
+
* Звёзды — разметка, а не части-компоненты: потребитель их не
|
|
32
|
+
* адресует, число звёзд задаёт `max`. Их значок — слот со scope
|
|
33
|
+
* звезды, по умолчанию — иконка роли `star` из пакета иконок.
|
|
34
|
+
*/
|
|
35
|
+
slots: { icon: {
|
|
36
|
+
scope: {
|
|
37
|
+
value: defineType(Number),
|
|
38
|
+
filled: defineType(Boolean)
|
|
39
|
+
},
|
|
40
|
+
description: "Значок звезды — в обоих её слоях: пустом снизу (filled — false) и залитом сверху (filled — true). По умолчанию — иконка роли star"
|
|
41
|
+
} },
|
|
42
|
+
props: {
|
|
43
|
+
/**
|
|
44
|
+
* Значение переобъявлено типом: оценка — число. Триггер остаётся
|
|
45
|
+
* у ValueControl.
|
|
46
|
+
*/
|
|
47
|
+
value: { type: Number },
|
|
48
|
+
max: {
|
|
49
|
+
type: Number,
|
|
50
|
+
triggers: ["change:max"]
|
|
51
|
+
},
|
|
52
|
+
step: {
|
|
53
|
+
type: Number,
|
|
54
|
+
triggers: ["change:step"]
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Звёзды: номер и доля заливки (`--so-rating-fraction`). Своего
|
|
58
|
+
* экземпляра у звезды нет — её стиль отдаётся значением. Доля —
|
|
59
|
+
* от предпросмотра наведением, пока он идёт, иначе от значения;
|
|
60
|
+
* число звёзд — от `max`.
|
|
61
|
+
*/
|
|
62
|
+
stars: {
|
|
63
|
+
type: Array,
|
|
64
|
+
protected: true,
|
|
65
|
+
triggers: [
|
|
66
|
+
"change:value",
|
|
67
|
+
"change:max",
|
|
68
|
+
"change:preview"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
events: [
|
|
73
|
+
"commit",
|
|
74
|
+
"change:max",
|
|
75
|
+
"change:step",
|
|
76
|
+
"change:preview"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
plugins: [
|
|
80
|
+
ActionPluginDescriptor.with({ focusTarget: fieldOf }),
|
|
81
|
+
SlidePointerPluginDescriptor,
|
|
82
|
+
SlideKeyboardPluginDescriptor,
|
|
83
|
+
RatingHoverPluginDescriptor,
|
|
84
|
+
RatingNamesPluginDescriptor,
|
|
85
|
+
RatingValidityPluginDescriptor
|
|
86
|
+
]
|
|
87
|
+
}));
|
|
88
|
+
//#endregion
|
|
89
|
+
export { RatingDescriptor };
|