@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,106 @@
|
|
|
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 { SwipePluginDescriptor } from "../../plugins/swipe.plugin.js";
|
|
5
|
+
import { ToastsItemNamesPluginDescriptor } from "../../plugins/toasts-item-names.plugin.js";
|
|
6
|
+
import { ComponentViewDescriptor } from "../component-view.descriptor.js";
|
|
7
|
+
import { TToastsItem } from "@soxa-ui/core";
|
|
8
|
+
//#region content/descriptors/components/toasts/item.descriptor.ts
|
|
9
|
+
/**
|
|
10
|
+
* Дескриптор тоста (TToastsItem).
|
|
11
|
+
*
|
|
12
|
+
* Наследует `ComponentViewDescriptor`: ни размера, ни варианта у тоста нет —
|
|
13
|
+
* что случилось, говорит вид сообщения (`type`), а не цвет темы. Добавляет
|
|
14
|
+
* текст, описание, вид, ожидание, кнопку закрытия, длительность, срочность,
|
|
15
|
+
* своё содержимое (`render`) и набор `closeAria`.
|
|
16
|
+
*
|
|
17
|
+
* Тост приходит из кода (`show`), а не из разметки: частью `Toasts.Item` он
|
|
18
|
+
* не стал (см. «Часть или слот»), и его рисует только регион владельца.
|
|
19
|
+
*
|
|
20
|
+
* Слотов описания нет: имя совпало бы с пропом `description`. Описание —
|
|
21
|
+
* текстом пропа, а разметку кладут в `content`.
|
|
22
|
+
*/
|
|
23
|
+
var ToastsItemDescriptor = defineDescriptor(() => defineComponent({
|
|
24
|
+
ctor: TToastsItem,
|
|
25
|
+
extends: ComponentViewDescriptor(),
|
|
26
|
+
contribution: {
|
|
27
|
+
slots: {
|
|
28
|
+
icon: {
|
|
29
|
+
scope: { type: defineType(String) },
|
|
30
|
+
description: "Значок тоста — перед текстом. Без слота — значок вида; пока тост ждёт — кольцо"
|
|
31
|
+
},
|
|
32
|
+
default: {
|
|
33
|
+
scope: { text: defineType(String) },
|
|
34
|
+
description: "Текст тоста. Задано — переопределяет проп text"
|
|
35
|
+
},
|
|
36
|
+
content: { description: "Своё содержимое под текстом. Без слота — render тоста" },
|
|
37
|
+
"close-icon": { description: "Иконка кнопки закрытия" }
|
|
38
|
+
},
|
|
39
|
+
props: {
|
|
40
|
+
text: {
|
|
41
|
+
type: String,
|
|
42
|
+
triggers: ["change:text"]
|
|
43
|
+
},
|
|
44
|
+
description: {
|
|
45
|
+
type: String,
|
|
46
|
+
triggers: ["change:description"]
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Вид сообщения: модификатор `--type-<v>` и значок вида. Union ядра, а
|
|
50
|
+
* не значение темы: значок по нему выбирает разметка
|
|
51
|
+
*/
|
|
52
|
+
type: {
|
|
53
|
+
type: String,
|
|
54
|
+
triggers: ["change:type"]
|
|
55
|
+
},
|
|
56
|
+
/** Тост ждёт: на месте значка кольцо, и сам тост не закрывается */
|
|
57
|
+
loading: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
triggers: ["change:loading"]
|
|
60
|
+
},
|
|
61
|
+
closable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
triggers: ["change:closable"]
|
|
64
|
+
},
|
|
65
|
+
duration: {
|
|
66
|
+
type: Number,
|
|
67
|
+
triggers: ["change:duration"]
|
|
68
|
+
},
|
|
69
|
+
alert: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
triggers: ["change:alert"]
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Своё содержимое под текстом. Ядро значение не читает: что это и как
|
|
75
|
+
* его нарисовать, знает адаптер (во Vue — компонент с пропом `toast`)
|
|
76
|
+
*/
|
|
77
|
+
render: {
|
|
78
|
+
type: [Object, Function],
|
|
79
|
+
triggers: ["change:render"]
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Атрибуты кнопки закрытия. Отдельный набор, а не часть `aria`: `aria`
|
|
83
|
+
* описывает тост, а это кнопка в нём. Имя от локали пишет плагин имён,
|
|
84
|
+
* и триггер один — набор сам сообщает, что изменился.
|
|
85
|
+
*/
|
|
86
|
+
closeAria: {
|
|
87
|
+
type: Object,
|
|
88
|
+
protected: true,
|
|
89
|
+
triggers: ["change:closeAria"]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
events: [
|
|
93
|
+
"change:text",
|
|
94
|
+
"change:description",
|
|
95
|
+
"change:type",
|
|
96
|
+
"change:loading",
|
|
97
|
+
"change:closable",
|
|
98
|
+
"change:duration",
|
|
99
|
+
"change:alert",
|
|
100
|
+
"change:render"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
plugins: [ToastsItemNamesPluginDescriptor, SwipePluginDescriptor]
|
|
104
|
+
}));
|
|
105
|
+
//#endregion
|
|
106
|
+
export { ToastsItemDescriptor };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Дескриптор Toasts (TToasts) — менеджер уведомлений и их регион.
|
|
3
|
+
*
|
|
4
|
+
* Наследует `LayerDescriptor` (видимость, тег, наборы, цель телепорта, подъём
|
|
5
|
+
* в стеке) и добавляет место, раскладку (столбец или стопка), предел видимых
|
|
6
|
+
* и длительность, плагины коллекции и поведение тостов: отсчёт, удаление
|
|
7
|
+
* догасших, клавиатуру, листание стопки, раскладку слоя и имя региона.
|
|
8
|
+
*
|
|
9
|
+
* Слот `default` — приложение: менеджер оборачивает его, как
|
|
10
|
+
* `LocaleProvider`, а потомки берут API тостов у лифта (`useToasts()`).
|
|
11
|
+
* Тосты рисует регион, телепортом в цель слоя; слоты тоста — проброс
|
|
12
|
+
* `item-<слот>`, scope — scope слота тоста плюс сам тост.
|
|
13
|
+
*/
|
|
14
|
+
import { TToasts } from '@soxa-ui/core';
|
|
15
|
+
import type { IToastsItem, TToastsItemType } from '@soxa-ui/core';
|
|
16
|
+
export declare const ToastsDescriptor: () => import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
17
|
+
readonly ctor: typeof TToasts;
|
|
18
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
19
|
+
readonly ctor: typeof import("@soxa-ui/core").TLayer;
|
|
20
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
21
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponentView;
|
|
22
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
23
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponent;
|
|
24
|
+
readonly extends: import("../../../..").IComponentDescriptor<import("../../../../protected/define/inference.types").TContractFrom<{
|
|
25
|
+
readonly contribution: {
|
|
26
|
+
readonly props: {
|
|
27
|
+
readonly ctrl: {
|
|
28
|
+
readonly type: ObjectConstructor;
|
|
29
|
+
};
|
|
30
|
+
readonly embedded: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
readonly pluginProps: {
|
|
34
|
+
readonly type: ObjectConstructor;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly events: readonly ["bundle:create", "plugin:event"];
|
|
38
|
+
};
|
|
39
|
+
}>>;
|
|
40
|
+
readonly contribution: {};
|
|
41
|
+
}>>;
|
|
42
|
+
readonly contribution: {
|
|
43
|
+
readonly slots: {
|
|
44
|
+
readonly default: {
|
|
45
|
+
readonly description: "Содержимое компонента";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly props: {
|
|
49
|
+
readonly rendered: {
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly triggers: readonly ["change:rendered"];
|
|
52
|
+
};
|
|
53
|
+
readonly visible: {
|
|
54
|
+
readonly type: BooleanConstructor;
|
|
55
|
+
readonly triggers: readonly ["change:visible"];
|
|
56
|
+
};
|
|
57
|
+
readonly present: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly protected: true;
|
|
60
|
+
readonly triggers: readonly ["change:rendered", "change:visible"];
|
|
61
|
+
};
|
|
62
|
+
readonly tag: {
|
|
63
|
+
readonly type: readonly [StringConstructor, ObjectConstructor];
|
|
64
|
+
readonly triggers: readonly ["change:tag"];
|
|
65
|
+
};
|
|
66
|
+
readonly direction: {
|
|
67
|
+
readonly type: StringConstructor;
|
|
68
|
+
readonly triggers: readonly ["change:direction"];
|
|
69
|
+
};
|
|
70
|
+
readonly classes: {
|
|
71
|
+
readonly type: ObjectConstructor;
|
|
72
|
+
readonly protected: true;
|
|
73
|
+
readonly triggers: readonly ["change:classes"];
|
|
74
|
+
};
|
|
75
|
+
readonly aria: {
|
|
76
|
+
readonly type: ObjectConstructor;
|
|
77
|
+
readonly protected: true;
|
|
78
|
+
readonly triggers: readonly ["change:aria"];
|
|
79
|
+
};
|
|
80
|
+
readonly dataset: {
|
|
81
|
+
readonly type: ObjectConstructor;
|
|
82
|
+
readonly protected: true;
|
|
83
|
+
readonly triggers: readonly ["change:dataset"];
|
|
84
|
+
};
|
|
85
|
+
readonly attrs: {
|
|
86
|
+
readonly type: ObjectConstructor;
|
|
87
|
+
readonly protected: true;
|
|
88
|
+
readonly triggers: readonly ["change:attrs"];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly events: readonly ["show", "hide", "show:before", "hide:before", "ready", "change:rendered", "change:visible", "change:tag", "change:direction"];
|
|
92
|
+
};
|
|
93
|
+
readonly plugins: readonly [import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TElementPlugin, "element", {
|
|
94
|
+
readonly events: readonly ["ready", "removed"];
|
|
95
|
+
}>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TReadyPlugin, "ready", import("../../../..").IContribution>>];
|
|
96
|
+
}>>;
|
|
97
|
+
readonly contribution: {
|
|
98
|
+
readonly props: {
|
|
99
|
+
readonly target: {
|
|
100
|
+
readonly type: readonly [ObjectConstructor, StringConstructor];
|
|
101
|
+
readonly triggers: readonly ["change:target"];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
readonly events: readonly ["change:zIndex", "change:target"];
|
|
105
|
+
};
|
|
106
|
+
}>>;
|
|
107
|
+
readonly contribution: {
|
|
108
|
+
readonly slots: {
|
|
109
|
+
readonly default: {
|
|
110
|
+
readonly description: "Приложение: менеджер оборачивает его, потомки зовут useToasts()";
|
|
111
|
+
};
|
|
112
|
+
readonly item: {
|
|
113
|
+
readonly scope: {
|
|
114
|
+
readonly item: import("../../../..").TPropType<IToastsItem<import("@soxa-ui/core").IToastsItemProps, import("@soxa-ui/core").TToastsItemEvents>>;
|
|
115
|
+
readonly text: import("../../../..").TPropType<string>;
|
|
116
|
+
};
|
|
117
|
+
readonly description: "Текст тоста. Задано — переопределяет его проп text";
|
|
118
|
+
};
|
|
119
|
+
readonly 'item-icon': {
|
|
120
|
+
readonly scope: {
|
|
121
|
+
readonly item: import("../../../..").TPropType<IToastsItem<import("@soxa-ui/core").IToastsItemProps, import("@soxa-ui/core").TToastsItemEvents>>;
|
|
122
|
+
readonly type: import("../../../..").TPropType<TToastsItemType | undefined>;
|
|
123
|
+
};
|
|
124
|
+
readonly description: "Значок тоста — перед текстом. Без слота — значок вида; пока тост ждёт — кольцо";
|
|
125
|
+
};
|
|
126
|
+
readonly 'item-content': {
|
|
127
|
+
readonly scope: {
|
|
128
|
+
readonly item: import("../../../..").TPropType<IToastsItem<import("@soxa-ui/core").IToastsItemProps, import("@soxa-ui/core").TToastsItemEvents>>;
|
|
129
|
+
};
|
|
130
|
+
readonly description: "Своё содержимое тоста под текстом. Без слота — render тоста";
|
|
131
|
+
};
|
|
132
|
+
readonly 'item-close-icon': {
|
|
133
|
+
readonly scope: {
|
|
134
|
+
readonly item: import("../../../..").TPropType<IToastsItem<import("@soxa-ui/core").IToastsItemProps, import("@soxa-ui/core").TToastsItemEvents>>;
|
|
135
|
+
};
|
|
136
|
+
readonly description: "Иконка кнопки закрытия тоста";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly props: {
|
|
140
|
+
readonly placement: {
|
|
141
|
+
readonly type: StringConstructor;
|
|
142
|
+
readonly triggers: readonly ["change:placement"];
|
|
143
|
+
};
|
|
144
|
+
readonly layout: {
|
|
145
|
+
readonly type: StringConstructor;
|
|
146
|
+
readonly triggers: readonly ["change:layout"];
|
|
147
|
+
};
|
|
148
|
+
readonly max: {
|
|
149
|
+
readonly type: NumberConstructor;
|
|
150
|
+
readonly triggers: readonly ["change:max"];
|
|
151
|
+
};
|
|
152
|
+
readonly duration: {
|
|
153
|
+
readonly type: NumberConstructor;
|
|
154
|
+
readonly triggers: readonly ["change:duration"];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly events: readonly ["change:placement", "change:layout", "change:max", "change:duration"];
|
|
158
|
+
};
|
|
159
|
+
readonly plugins: readonly [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").TToastsTimerPlugin, "timer", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TToastsRemovalPlugin, "removal", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TToastsKeyboardPlugin, "keyboard", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TToastsCascadePlugin, "cascade", import("../../../..").IContribution>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TToastsLayoutPlugin, "layout", {
|
|
160
|
+
readonly props: {
|
|
161
|
+
readonly styles: {
|
|
162
|
+
readonly protected: true;
|
|
163
|
+
readonly triggers: readonly ["change:styles"];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
}>>, import("../../../..").IPluginDefinition<import("../../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TToastsNamesPlugin, "names", import("../../../..").IContribution>>];
|
|
167
|
+
}>>;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { CollectionBundlesPluginDescriptor } from "../../plugins/collection-bundles.plugin.js";
|
|
5
|
+
import { CollectionElementsPluginDescriptor } from "../../plugins/collection-elements.plugin.js";
|
|
6
|
+
import { ToastsTimerPluginDescriptor } from "../../plugins/toasts-timer.plugin.js";
|
|
7
|
+
import { ToastsRemovalPluginDescriptor } from "../../plugins/toasts-removal.plugin.js";
|
|
8
|
+
import { ToastsKeyboardPluginDescriptor } from "../../plugins/toasts-keyboard.plugin.js";
|
|
9
|
+
import { ToastsCascadePluginDescriptor } from "../../plugins/toasts-cascade.plugin.js";
|
|
10
|
+
import { ToastsLayoutPluginDescriptor } from "../../plugins/toasts-layout.plugin.js";
|
|
11
|
+
import { ToastsNamesPluginDescriptor } from "../../plugins/toasts-names.plugin.js";
|
|
12
|
+
import { LayerDescriptor } from "../layer.descriptor.js";
|
|
13
|
+
import { TToasts } from "@soxa-ui/core";
|
|
14
|
+
//#region content/descriptors/components/toasts/toasts.descriptor.ts
|
|
15
|
+
/**
|
|
16
|
+
* Дескриптор Toasts (TToasts) — менеджер уведомлений и их регион.
|
|
17
|
+
*
|
|
18
|
+
* Наследует `LayerDescriptor` (видимость, тег, наборы, цель телепорта, подъём
|
|
19
|
+
* в стеке) и добавляет место, раскладку (столбец или стопка), предел видимых
|
|
20
|
+
* и длительность, плагины коллекции и поведение тостов: отсчёт, удаление
|
|
21
|
+
* догасших, клавиатуру, листание стопки, раскладку слоя и имя региона.
|
|
22
|
+
*
|
|
23
|
+
* Слот `default` — приложение: менеджер оборачивает его, как
|
|
24
|
+
* `LocaleProvider`, а потомки берут API тостов у лифта (`useToasts()`).
|
|
25
|
+
* Тосты рисует регион, телепортом в цель слоя; слоты тоста — проброс
|
|
26
|
+
* `item-<слот>`, scope — scope слота тоста плюс сам тост.
|
|
27
|
+
*/
|
|
28
|
+
var ToastsDescriptor = defineDescriptor(() => defineComponent({
|
|
29
|
+
ctor: TToasts,
|
|
30
|
+
extends: LayerDescriptor(),
|
|
31
|
+
contribution: {
|
|
32
|
+
slots: {
|
|
33
|
+
default: { description: "Приложение: менеджер оборачивает его, потомки зовут useToasts()" },
|
|
34
|
+
item: {
|
|
35
|
+
scope: {
|
|
36
|
+
item: defineType(Object),
|
|
37
|
+
text: defineType(String)
|
|
38
|
+
},
|
|
39
|
+
description: "Текст тоста. Задано — переопределяет его проп text"
|
|
40
|
+
},
|
|
41
|
+
"item-icon": {
|
|
42
|
+
scope: {
|
|
43
|
+
item: defineType(Object),
|
|
44
|
+
type: defineType(String)
|
|
45
|
+
},
|
|
46
|
+
description: "Значок тоста — перед текстом. Без слота — значок вида; пока тост ждёт — кольцо"
|
|
47
|
+
},
|
|
48
|
+
"item-content": {
|
|
49
|
+
scope: { item: defineType(Object) },
|
|
50
|
+
description: "Своё содержимое тоста под текстом. Без слота — render тоста"
|
|
51
|
+
},
|
|
52
|
+
"item-close-icon": {
|
|
53
|
+
scope: { item: defineType(Object) },
|
|
54
|
+
description: "Иконка кнопки закрытия тоста"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
props: {
|
|
58
|
+
placement: {
|
|
59
|
+
type: String,
|
|
60
|
+
triggers: ["change:placement"]
|
|
61
|
+
},
|
|
62
|
+
layout: {
|
|
63
|
+
type: String,
|
|
64
|
+
triggers: ["change:layout"]
|
|
65
|
+
},
|
|
66
|
+
max: {
|
|
67
|
+
type: Number,
|
|
68
|
+
triggers: ["change:max"]
|
|
69
|
+
},
|
|
70
|
+
duration: {
|
|
71
|
+
type: Number,
|
|
72
|
+
triggers: ["change:duration"]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
events: [
|
|
76
|
+
"change:placement",
|
|
77
|
+
"change:layout",
|
|
78
|
+
"change:max",
|
|
79
|
+
"change:duration"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
plugins: [
|
|
83
|
+
CollectionBundlesPluginDescriptor,
|
|
84
|
+
CollectionElementsPluginDescriptor,
|
|
85
|
+
ToastsTimerPluginDescriptor,
|
|
86
|
+
ToastsRemovalPluginDescriptor,
|
|
87
|
+
ToastsKeyboardPluginDescriptor,
|
|
88
|
+
ToastsCascadePluginDescriptor,
|
|
89
|
+
ToastsLayoutPluginDescriptor,
|
|
90
|
+
ToastsNamesPluginDescriptor
|
|
91
|
+
]
|
|
92
|
+
}));
|
|
93
|
+
//#endregion
|
|
94
|
+
export { ToastsDescriptor };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Дескриптор Tooltip (TTooltip) — подсказка у триггера.
|
|
3
|
+
*
|
|
4
|
+
* Наследует ComponentViewDescriptor (rendered, visible, tag, наборы и плагины
|
|
5
|
+
* element/ready) и добавляет открытость, сторону панели, задержки показа и
|
|
6
|
+
* скрытия, режим связки (описание или имя), сторону триггера в связке и
|
|
7
|
+
* плагины: нажатие мимо и то, когда подсказка показывается и прячется.
|
|
8
|
+
*/
|
|
9
|
+
import { TTooltip } from '@soxa-ui/core';
|
|
10
|
+
export declare const TooltipDescriptor: () => import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
11
|
+
readonly ctor: typeof TTooltip;
|
|
12
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
13
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponentView;
|
|
14
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
15
|
+
readonly ctor: typeof import("@soxa-ui/core").TComponent;
|
|
16
|
+
readonly extends: import("../../..").IComponentDescriptor<import("../../../protected/define/inference.types").TContractFrom<{
|
|
17
|
+
readonly contribution: {
|
|
18
|
+
readonly props: {
|
|
19
|
+
readonly ctrl: {
|
|
20
|
+
readonly type: ObjectConstructor;
|
|
21
|
+
};
|
|
22
|
+
readonly embedded: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
readonly pluginProps: {
|
|
26
|
+
readonly type: ObjectConstructor;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly events: readonly ["bundle:create", "plugin:event"];
|
|
30
|
+
};
|
|
31
|
+
}>>;
|
|
32
|
+
readonly contribution: {};
|
|
33
|
+
}>>;
|
|
34
|
+
readonly contribution: {
|
|
35
|
+
readonly slots: {
|
|
36
|
+
readonly default: {
|
|
37
|
+
readonly description: "Содержимое компонента";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
readonly props: {
|
|
41
|
+
readonly rendered: {
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly triggers: readonly ["change:rendered"];
|
|
44
|
+
};
|
|
45
|
+
readonly visible: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly triggers: readonly ["change:visible"];
|
|
48
|
+
};
|
|
49
|
+
readonly present: {
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly protected: true;
|
|
52
|
+
readonly triggers: readonly ["change:rendered", "change:visible"];
|
|
53
|
+
};
|
|
54
|
+
readonly tag: {
|
|
55
|
+
readonly type: readonly [StringConstructor, ObjectConstructor];
|
|
56
|
+
readonly triggers: readonly ["change:tag"];
|
|
57
|
+
};
|
|
58
|
+
readonly direction: {
|
|
59
|
+
readonly type: StringConstructor;
|
|
60
|
+
readonly triggers: readonly ["change:direction"];
|
|
61
|
+
};
|
|
62
|
+
readonly classes: {
|
|
63
|
+
readonly type: ObjectConstructor;
|
|
64
|
+
readonly protected: true;
|
|
65
|
+
readonly triggers: readonly ["change:classes"];
|
|
66
|
+
};
|
|
67
|
+
readonly aria: {
|
|
68
|
+
readonly type: ObjectConstructor;
|
|
69
|
+
readonly protected: true;
|
|
70
|
+
readonly triggers: readonly ["change:aria"];
|
|
71
|
+
};
|
|
72
|
+
readonly dataset: {
|
|
73
|
+
readonly type: ObjectConstructor;
|
|
74
|
+
readonly protected: true;
|
|
75
|
+
readonly triggers: readonly ["change:dataset"];
|
|
76
|
+
};
|
|
77
|
+
readonly attrs: {
|
|
78
|
+
readonly type: ObjectConstructor;
|
|
79
|
+
readonly protected: true;
|
|
80
|
+
readonly triggers: readonly ["change:attrs"];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly events: readonly ["show", "hide", "show:before", "hide:before", "ready", "change:rendered", "change:visible", "change:tag", "change:direction"];
|
|
84
|
+
};
|
|
85
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TElementPlugin, "element", {
|
|
86
|
+
readonly events: readonly ["ready", "removed"];
|
|
87
|
+
}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TReadyPlugin, "ready", import("../../..").IContribution>>];
|
|
88
|
+
}>>;
|
|
89
|
+
readonly contribution: {
|
|
90
|
+
/**
|
|
91
|
+
* Триггер — слот внутри корня, как у Popover: корень служит панели
|
|
92
|
+
* якорем и целью наведения. Своей ARIA у содержимого слота нет,
|
|
93
|
+
* поэтому ссылку на панель компонент отдаёт ему в scope.
|
|
94
|
+
*/
|
|
95
|
+
readonly slots: {
|
|
96
|
+
readonly trigger: {
|
|
97
|
+
readonly scope: {
|
|
98
|
+
readonly triggerAria: import("../../..").TPropType<import("@soxa-ui/core").TAttributesMap>;
|
|
99
|
+
};
|
|
100
|
+
readonly description: "Элемент, который подсказка описывает или называет. Ссылка на панель для него — в scope";
|
|
101
|
+
};
|
|
102
|
+
readonly default: {
|
|
103
|
+
readonly description: "Текст подсказки";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly props: {
|
|
107
|
+
readonly open: {
|
|
108
|
+
readonly type: BooleanConstructor;
|
|
109
|
+
readonly triggers: readonly ["change:open"];
|
|
110
|
+
};
|
|
111
|
+
readonly placement: {
|
|
112
|
+
readonly type: StringConstructor;
|
|
113
|
+
readonly triggers: readonly ["change:placement"];
|
|
114
|
+
};
|
|
115
|
+
readonly openDelay: {
|
|
116
|
+
readonly type: NumberConstructor;
|
|
117
|
+
readonly triggers: readonly ["change:openDelay"];
|
|
118
|
+
};
|
|
119
|
+
readonly closeDelay: {
|
|
120
|
+
readonly type: NumberConstructor;
|
|
121
|
+
readonly triggers: readonly ["change:closeDelay"];
|
|
122
|
+
};
|
|
123
|
+
/** Описание (`aria-describedby`) или имя (`aria-labelledby`) триггера. */
|
|
124
|
+
readonly type: {
|
|
125
|
+
readonly type: StringConstructor;
|
|
126
|
+
readonly triggers: readonly ["change:type"];
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Сторона триггера в связке с панелью. Набор подсказки: ссылку на
|
|
130
|
+
* панель по режиму пишет `TTooltipIdsPlugin`, шаблон раскладывает
|
|
131
|
+
* набор в scope слота `trigger`. Оставь её в разметке — и выбор
|
|
132
|
+
* атрибута по режиму повторится в каждом из шести адаптеров.
|
|
133
|
+
*/
|
|
134
|
+
readonly triggerAria: {
|
|
135
|
+
readonly type: ObjectConstructor;
|
|
136
|
+
readonly protected: true;
|
|
137
|
+
readonly triggers: readonly ["change:triggerAria"];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly events: readonly ["change:open", "change:placement", "change:openDelay", "change:closeDelay", "change:type"];
|
|
141
|
+
};
|
|
142
|
+
readonly plugins: readonly [import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TDismissPlugin, "dismiss", {
|
|
143
|
+
readonly events: readonly ["dismiss", "change:enabled"];
|
|
144
|
+
readonly props: {
|
|
145
|
+
readonly enabled: {
|
|
146
|
+
readonly type: BooleanConstructor;
|
|
147
|
+
readonly triggers: readonly ["change:enabled"];
|
|
148
|
+
};
|
|
149
|
+
readonly ownerAttribute: {
|
|
150
|
+
readonly type: ObjectConstructor;
|
|
151
|
+
readonly protected: true;
|
|
152
|
+
readonly triggers: readonly ["create"];
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TTooltipTriggerPlugin, "trigger", {}>>, import("../../..").IPluginDefinition<import("../../../protected/define/inference.types").TPluginContractFrom<import("@soxa-ui/plugins").TTooltipIdsPlugin, "ids", import("../../..").IContribution>>];
|
|
156
|
+
}>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { TooltipTriggerPluginDescriptor } from "../plugins/tooltip-trigger.plugin.js";
|
|
5
|
+
import { DismissPluginDescriptor } from "../plugins/dismiss.plugin.js";
|
|
6
|
+
import { TooltipIdsPluginDescriptor } from "../plugins/tooltip-ids.plugin.js";
|
|
7
|
+
import { ComponentViewDescriptor } from "./component-view.descriptor.js";
|
|
8
|
+
import { TTooltip } from "@soxa-ui/core";
|
|
9
|
+
//#region content/descriptors/components/tooltip.descriptor.ts
|
|
10
|
+
/**
|
|
11
|
+
* Дескриптор Tooltip (TTooltip) — подсказка у триггера.
|
|
12
|
+
*
|
|
13
|
+
* Наследует ComponentViewDescriptor (rendered, visible, tag, наборы и плагины
|
|
14
|
+
* element/ready) и добавляет открытость, сторону панели, задержки показа и
|
|
15
|
+
* скрытия, режим связки (описание или имя), сторону триггера в связке и
|
|
16
|
+
* плагины: нажатие мимо и то, когда подсказка показывается и прячется.
|
|
17
|
+
*/
|
|
18
|
+
var TooltipDescriptor = defineDescriptor(() => defineComponent({
|
|
19
|
+
ctor: TTooltip,
|
|
20
|
+
extends: ComponentViewDescriptor(),
|
|
21
|
+
contribution: {
|
|
22
|
+
/**
|
|
23
|
+
* Триггер — слот внутри корня, как у Popover: корень служит панели
|
|
24
|
+
* якорем и целью наведения. Своей ARIA у содержимого слота нет,
|
|
25
|
+
* поэтому ссылку на панель компонент отдаёт ему в scope.
|
|
26
|
+
*/
|
|
27
|
+
slots: {
|
|
28
|
+
trigger: {
|
|
29
|
+
scope: { triggerAria: defineType(Object) },
|
|
30
|
+
description: "Элемент, который подсказка описывает или называет. Ссылка на панель для него — в scope"
|
|
31
|
+
},
|
|
32
|
+
default: { description: "Текст подсказки" }
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
open: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
triggers: ["change:open"]
|
|
38
|
+
},
|
|
39
|
+
placement: {
|
|
40
|
+
type: String,
|
|
41
|
+
triggers: ["change:placement"]
|
|
42
|
+
},
|
|
43
|
+
openDelay: {
|
|
44
|
+
type: Number,
|
|
45
|
+
triggers: ["change:openDelay"]
|
|
46
|
+
},
|
|
47
|
+
closeDelay: {
|
|
48
|
+
type: Number,
|
|
49
|
+
triggers: ["change:closeDelay"]
|
|
50
|
+
},
|
|
51
|
+
/** Описание (`aria-describedby`) или имя (`aria-labelledby`) триггера. */
|
|
52
|
+
type: {
|
|
53
|
+
type: String,
|
|
54
|
+
triggers: ["change:type"]
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Сторона триггера в связке с панелью. Набор подсказки: ссылку на
|
|
58
|
+
* панель по режиму пишет `TTooltipIdsPlugin`, шаблон раскладывает
|
|
59
|
+
* набор в scope слота `trigger`. Оставь её в разметке — и выбор
|
|
60
|
+
* атрибута по режиму повторится в каждом из шести адаптеров.
|
|
61
|
+
*/
|
|
62
|
+
triggerAria: {
|
|
63
|
+
type: Object,
|
|
64
|
+
protected: true,
|
|
65
|
+
triggers: ["change:triggerAria"]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
events: [
|
|
69
|
+
"change:open",
|
|
70
|
+
"change:placement",
|
|
71
|
+
"change:openDelay",
|
|
72
|
+
"change:closeDelay",
|
|
73
|
+
"change:type"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
plugins: [
|
|
77
|
+
DismissPluginDescriptor,
|
|
78
|
+
TooltipTriggerPluginDescriptor,
|
|
79
|
+
TooltipIdsPluginDescriptor
|
|
80
|
+
]
|
|
81
|
+
}));
|
|
82
|
+
//#endregion
|
|
83
|
+
export { TooltipDescriptor };
|