@tetacom/ng-components 1.4.3 → 1.4.5
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/assets/icons.svg +54 -0
- package/component/avatar/avatar/avatar.component.d.ts +1 -1
- package/component/button/button/button.component.d.ts +1 -1
- package/component/date-picker/base-calendar.d.ts +1 -1
- package/component/date-picker/base-picker.d.ts +1 -1
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +1 -1
- package/component/date-picker/date-picker/date-picker.component.d.ts +1 -1
- package/component/date-picker/date-range/date-range.component.d.ts +1 -1
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +1 -1
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +1 -1
- package/component/date-picker/day-picker/day-picker.component.d.ts +4 -4
- package/component/date-picker/month-picker/month-picker.component.d.ts +2 -2
- package/component/date-picker/public-api.d.ts +2 -2
- package/component/date-picker/year-picker/year-picker.component.d.ts +3 -3
- package/component/filter/boolean-filter/boolean-filter.component.d.ts +3 -3
- package/component/message/model/message.d.ts +1 -1
- package/component/switch/switch/switch.component.d.ts +1 -1
- package/component/table/table-row/table-row.component.d.ts +2 -2
- package/component/tree/tree/tree.component.d.ts +1 -1
- package/docs/avatarDocs.mdx +78 -72
- package/docs/datePickerDocs.mdx +3 -3
- package/docs/dateRangeDocs.mdx +3 -3
- package/docs/delimiterDocs.mdx +78 -78
- package/docs/dropdownDocs.mdx +143 -123
- package/docs/expandCardlDocs.mdx +49 -45
- package/docs/expandPanelDocs.mdx +104 -92
- package/docs/fileAreaDocs.mdx +64 -59
- package/docs/inputDocs.mdx +70 -67
- package/docs/listDocs.mdx +14 -8
- package/docs/messageDocs.mdx +47 -34
- package/docs/progressBarDocs.mdx +65 -51
- package/docs/propertyGridDocs.mdx +173 -115
- package/docs/radioDocs.mdx +92 -80
- package/docs/resizePanelDocs.mdx +79 -67
- package/docs/selectDocs.mdx +262 -220
- package/docs/switchDocs.mdx +86 -73
- package/docs/tagDocs.mdx +17 -11
- package/docs/toggleDocs.mdx +42 -36
- package/docs/toolbarDocs.mdx +14 -8
- package/docs/treeDocs.mdx +108 -89
- package/esm2022/common/contract/teta-content-ref.mjs +1 -1
- package/esm2022/common/enum/align.enum.mjs +1 -1
- package/esm2022/common/enum/vertical-align.enum.mjs +1 -1
- package/esm2022/common/service/dynamic-component.service.mjs +1 -1
- package/esm2022/common/util/array-util.mjs +5 -7
- package/esm2022/common/util/dom-util.mjs +2 -3
- package/esm2022/common/util/position-util.mjs +6 -14
- package/esm2022/component/accordion/accordion-content.directive.mjs +2 -2
- package/esm2022/component/accordion/public-api.mjs +1 -1
- package/esm2022/component/autocomplete/autocomplete/autocomplete.component.mjs +2 -3
- package/esm2022/component/autocomplete/public-api.mjs +1 -1
- package/esm2022/component/avatar/avatar/avatar.component.mjs +4 -5
- package/esm2022/component/avatar/model/avatar-color.enum.mjs +1 -1
- package/esm2022/component/avatar/public-api.mjs +1 -1
- package/esm2022/component/button/button/button.component.mjs +2 -2
- package/esm2022/component/button/public-api.mjs +1 -1
- package/esm2022/component/chart-3d/chart3d/chart3d.component.mjs +11 -24
- package/esm2022/component/chart-3d/model/chart-3d-options.mjs +1 -1
- package/esm2022/component/chart-3d/public-api.mjs +1 -1
- package/esm2022/component/checkbox/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/component/checkbox/public-api.mjs +1 -1
- package/esm2022/component/date-picker/base-calendar.mjs +7 -14
- package/esm2022/component/date-picker/base-picker.mjs +3 -2
- package/esm2022/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +4 -11
- package/esm2022/component/date-picker/date-picker/date-picker.component.mjs +5 -6
- package/esm2022/component/date-picker/date-range/date-range.component.mjs +6 -14
- package/esm2022/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +4 -4
- package/esm2022/component/date-picker/day-picker/day-item/day-item.component.mjs +5 -6
- package/esm2022/component/date-picker/day-picker/day-picker.component.mjs +9 -9
- package/esm2022/component/date-picker/model/date-picker-mode.enum.mjs +1 -1
- package/esm2022/component/date-picker/model/from-to.model.mjs +1 -1
- package/esm2022/component/date-picker/model/min-max-date.model.mjs +1 -1
- package/esm2022/component/date-picker/month-picker/month-picker.component.mjs +4 -4
- package/esm2022/component/date-picker/public-api.mjs +3 -3
- package/esm2022/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +3 -3
- package/esm2022/component/date-picker/year-picker/year-picker.component.mjs +9 -7
- package/esm2022/component/delimiter/delimiter/delimiter.component.mjs +2 -2
- package/esm2022/component/delimiter/public-api.mjs +1 -1
- package/esm2022/component/divider/divider/divider.component.mjs +4 -4
- package/esm2022/component/divider/public-api.mjs +1 -1
- package/esm2022/component/dropdown/dropdown/dropdown.component.mjs +2 -3
- package/esm2022/component/dropdown/dropdown-base.mjs +11 -22
- package/esm2022/component/dropdown/dropdown-content.directive.mjs +2 -2
- package/esm2022/component/dropdown/dropdown-head.directive.mjs +2 -2
- package/esm2022/component/dropdown/dropdown.directive.mjs +4 -5
- package/esm2022/component/dropdown/public-api.mjs +1 -1
- package/esm2022/component/dynamic-component/popup-content/popup-content.component.mjs +4 -10
- package/esm2022/component/dynamic-component/public-api.mjs +1 -1
- package/esm2022/component/expand-card/expand-card/expand-card.component.mjs +4 -5
- package/esm2022/component/expand-card/expand-item/expand-item.component.mjs +4 -4
- package/esm2022/component/expand-card/public-api.mjs +1 -1
- package/esm2022/component/expand-panel/expand-panel/expand-panel.component.mjs +4 -9
- package/esm2022/component/expand-panel/expand-panel-content.directive.mjs +1 -1
- package/esm2022/component/expand-panel/expand-panel-head.directive.mjs +1 -1
- package/esm2022/component/expand-panel/public-api.mjs +1 -1
- package/esm2022/component/file-upload/file-item/file-item.component.mjs +1 -1
- package/esm2022/component/file-upload/file-upload-area/file-upload-area.component.mjs +3 -8
- package/esm2022/component/file-upload/public-api.mjs +1 -1
- package/esm2022/component/filter/base/filter-base.mjs +1 -1
- package/esm2022/component/filter/base/filter-component-base.mjs +1 -1
- package/esm2022/component/filter/boolean-filter/boolean-filter.component.mjs +5 -11
- package/esm2022/component/filter/contarct/boolean-filter.mjs +1 -1
- package/esm2022/component/filter/contarct/date-filter-value.mjs +3 -3
- package/esm2022/component/filter/contarct/date-filter.mjs +1 -1
- package/esm2022/component/filter/contarct/filter-component-map.mjs +2 -4
- package/esm2022/component/filter/contarct/filter-item.mjs +2 -2
- package/esm2022/component/filter/contarct/filter-state.mjs +1 -1
- package/esm2022/component/filter/contarct/list-filter.mjs +1 -1
- package/esm2022/component/filter/contarct/numeric-filter.mjs +1 -1
- package/esm2022/component/filter/contarct/sort-param.mjs +1 -1
- package/esm2022/component/filter/contarct/string-filter.mjs +1 -1
- package/esm2022/component/filter/date-filter/date-filter.component.mjs +3 -8
- package/esm2022/component/filter/enum/list-filter-type.enum.mjs +1 -1
- package/esm2022/component/filter/filter-host/filter-host.component.mjs +2 -3
- package/esm2022/component/filter/list-filter/list-filter.component.mjs +5 -14
- package/esm2022/component/filter/numeric-filter/numeric-filter.component.mjs +3 -8
- package/esm2022/component/filter/public-api.mjs +1 -1
- package/esm2022/component/filter/string-filter/string-filter.component.mjs +4 -9
- package/esm2022/component/icon/icon/icon.component.mjs +3 -3
- package/esm2022/component/icon/icon-file/icon-file.component.mjs +2 -3
- package/esm2022/component/icon/icon-sprite.directive.mjs +2 -2
- package/esm2022/component/icon/icon.service.mjs +5 -6
- package/esm2022/component/icon/public-api.mjs +1 -1
- package/esm2022/component/input/color-input/color-input.component.mjs +3 -3
- package/esm2022/component/input/form-group-title/form-group-title.component.mjs +2 -2
- package/esm2022/component/input/input/input.component.mjs +4 -4
- package/esm2022/component/input/public-api.mjs +1 -1
- package/esm2022/component/input/text-field/text-field.component.mjs +3 -9
- package/esm2022/component/message/message/message.component.mjs +3 -7
- package/esm2022/component/message/message-host/message-host.component.mjs +5 -9
- package/esm2022/component/message/message.service.mjs +2 -2
- package/esm2022/component/message/model/message.mjs +2 -2
- package/esm2022/component/message/public-api.mjs +1 -1
- package/esm2022/component/modal/dialog/dialog.component.mjs +3 -8
- package/esm2022/component/modal/dialog.service.mjs +1 -1
- package/esm2022/component/modal/modal-container/modal-container.component.mjs +4 -11
- package/esm2022/component/modal/modal.module.mjs +4 -12
- package/esm2022/component/modal/modal.service.mjs +1 -1
- package/esm2022/component/modal/model/current-modal.mjs +1 -1
- package/esm2022/component/modal/model/i-modal-result.mjs +1 -1
- package/esm2022/component/modal/model/modal-instance.mjs +1 -1
- package/esm2022/component/pager/model/pager-state.mjs +3 -2
- package/esm2022/component/pager/pager/pager.component.mjs +1 -1
- package/esm2022/component/pager/public-api.mjs +1 -1
- package/esm2022/component/pager/util/pager-util.mjs +1 -1
- package/esm2022/component/panel/panel/panel.component.mjs +4 -10
- package/esm2022/component/panel/public-api.mjs +1 -1
- package/esm2022/component/progress-bar/progress-bar/progress-bar.component.mjs +5 -6
- package/esm2022/component/progress-bar/public-api.mjs +1 -1
- package/esm2022/component/property-grid/property-grid/property-grid-group/property-grid-group.component.mjs +4 -4
- package/esm2022/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +7 -8
- package/esm2022/component/property-grid/property-grid/property-grid-item-description.directive.mjs +2 -2
- package/esm2022/component/property-grid/property-grid/property-grid.component.mjs +6 -11
- package/esm2022/component/property-grid/property-grid.module.mjs +1 -1
- package/esm2022/component/radio/public-api.mjs +1 -1
- package/esm2022/component/radio/radio/radio.component.mjs +7 -11
- package/esm2022/component/radio/radio-button/radio-button.component.mjs +3 -3
- package/esm2022/component/resize-panel/public-api.mjs +1 -1
- package/esm2022/component/resize-panel/resize-panel/resize-panel.component.mjs +5 -10
- package/esm2022/component/select/public-api.mjs +1 -1
- package/esm2022/component/select/select/select.component.mjs +10 -18
- package/esm2022/component/select/select-option.directive.mjs +2 -2
- package/esm2022/component/select/select-value.directive.mjs +2 -2
- package/esm2022/component/sidebar/public-api.mjs +1 -1
- package/esm2022/component/sidebar/sidebar/sidebar.component.mjs +6 -12
- package/esm2022/component/sidebar/sidebar-position.enum.mjs +1 -1
- package/esm2022/component/switch/public-api.mjs +1 -1
- package/esm2022/component/switch/switch/switch.component.mjs +4 -7
- package/esm2022/component/switch/switch-button/switch-button.component.mjs +2 -3
- package/esm2022/component/switch/switch.service.mjs +2 -2
- package/esm2022/component/table/base/cell-component-base.mjs +10 -22
- package/esm2022/component/table/base/detail-component-base.mjs +1 -1
- package/esm2022/component/table/base/head-cell-component-base.mjs +2 -2
- package/esm2022/component/table/cell/cell.component.mjs +4 -4
- package/esm2022/component/table/cell-host/cell-host.component.mjs +1 -1
- package/esm2022/component/table/contract/cell-components-map.mjs +2 -4
- package/esm2022/component/table/contract/column-reorder-event.mjs +1 -1
- package/esm2022/component/table/contract/sort-event.mjs +1 -1
- package/esm2022/component/table/contract/table-column.mjs +3 -3
- package/esm2022/component/table/default/boolean-cell/boolean-cell.component.mjs +4 -8
- package/esm2022/component/table/default/date-cell/date-cell.component.mjs +4 -9
- package/esm2022/component/table/default/date-time-cell/date-time-cell.component.mjs +4 -9
- package/esm2022/component/table/default/default-head-cell/default-head-cell.component.mjs +5 -6
- package/esm2022/component/table/default/list-cell/list-cell.component.mjs +7 -13
- package/esm2022/component/table/default/numeric-cell/numeric-cell.component.mjs +4 -9
- package/esm2022/component/table/default/string-cell/string-cell.component.mjs +4 -8
- package/esm2022/component/table/enum/edit-event.enum.mjs +1 -1
- package/esm2022/component/table/enum/edit-type.enum.mjs +1 -1
- package/esm2022/component/table/enum/select-type.enum.mjs +1 -1
- package/esm2022/component/table/head-cell-dropdown/head-cell-dropdown.component.mjs +4 -11
- package/esm2022/component/table/head-cell-host/head-cell-host.component.mjs +3 -4
- package/esm2022/component/table/public-api.mjs +1 -1
- package/esm2022/component/table/selection-cell/selection-cell.component.mjs +4 -6
- package/esm2022/component/table/selection-head-cell/selection-head-cell.component.mjs +5 -7
- package/esm2022/component/table/service/table.service.mjs +35 -52
- package/esm2022/component/table/table/table.component.mjs +12 -24
- package/esm2022/component/table/table-body/table-body.component.mjs +15 -21
- package/esm2022/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +5 -6
- package/esm2022/component/table/table-head/main-dropdown-tab/main-dropdown-tab.component.mjs +4 -5
- package/esm2022/component/table/table-head/table-head.component.mjs +10 -10
- package/esm2022/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +12 -12
- package/esm2022/component/table/table-head-group/table-head-group.component.mjs +7 -12
- package/esm2022/component/table/table-row/table-row.component.mjs +3 -3
- package/esm2022/component/table/util/state-util.mjs +13 -25
- package/esm2022/component/table/util/table-util.mjs +15 -9
- package/esm2022/component/tabs/public-api.mjs +1 -1
- package/esm2022/component/tabs/tab-content.directive.mjs +2 -2
- package/esm2022/component/tabs/tab-title.directive.mjs +2 -2
- package/esm2022/component/theme-switch/public-api.mjs +1 -1
- package/esm2022/component/toggle/public-api.mjs +1 -1
- package/esm2022/component/toggle/toggle/toggle.component.mjs +3 -3
- package/esm2022/component/toolbar/public-api.mjs +1 -1
- package/esm2022/component/toolbar/toolbar/toolbar.component.mjs +2 -2
- package/esm2022/component/tree/public-api.mjs +1 -1
- package/esm2022/component/tree/tree/tree.component.mjs +6 -6
- package/esm2022/component/tree/tree-item/tree-item.component.mjs +9 -20
- package/esm2022/component/tree/tree-item-toggle/tree-item-toggle.component.mjs +5 -6
- package/esm2022/component/tree/tree.service.mjs +1 -1
- package/esm2022/directive/auto-position/auto-position.directive.mjs +3 -3
- package/esm2022/directive/auto-position/public-api.mjs +1 -1
- package/esm2022/directive/click-outside/click-outside.directive.mjs +2 -2
- package/esm2022/directive/click-outside/public-api.mjs +1 -1
- package/esm2022/directive/context-menu/context-menu.directive.mjs +4 -8
- package/esm2022/directive/context-menu/public-api.mjs +1 -1
- package/esm2022/directive/disable-control/disable-control.directive.mjs +1 -1
- package/esm2022/directive/disable-control/public-api.mjs +1 -1
- package/esm2022/directive/drag-drop/drag-container.directive.mjs +8 -10
- package/esm2022/directive/drag-drop/drag-drop.service.mjs +14 -11
- package/esm2022/directive/drag-drop/drag-placeholder.directive.mjs +2 -2
- package/esm2022/directive/drag-drop/drag-preview.directive.mjs +2 -2
- package/esm2022/directive/drag-drop/drag.directive.mjs +4 -7
- package/esm2022/directive/drag-drop/model/drag-container-instance.mjs +1 -1
- package/esm2022/directive/drag-drop/model/drag-instance.mjs +1 -1
- package/esm2022/directive/drag-drop/model/drag-process.mjs +1 -1
- package/esm2022/directive/drag-drop/model/drag-selection.mjs +1 -1
- package/esm2022/directive/drag-drop/model/drop-event.mjs +1 -1
- package/esm2022/directive/drag-drop/model/drop-target.mjs +1 -1
- package/esm2022/directive/drag-sort/drag-sort-container.directive.mjs +2 -3
- package/esm2022/directive/drag-sort/drag-sort-item.directive.mjs +4 -10
- package/esm2022/directive/drag-sort/public-api.mjs +1 -1
- package/esm2022/directive/dynamic-content-base.directive.mjs +3 -3
- package/esm2022/directive/highlight/highlight.directive.mjs +4 -5
- package/esm2022/directive/highlight/public-api.mjs +1 -1
- package/esm2022/directive/hint/hint.directive.mjs +5 -14
- package/esm2022/directive/hint/public-api.mjs +1 -1
- package/esm2022/directive/let/let.directive.mjs +2 -2
- package/esm2022/directive/let/public-api.mjs +1 -1
- package/esm2022/directive/loader/loader.directive.mjs +3 -3
- package/esm2022/directive/loader/public-api.mjs +1 -1
- package/esm2022/directive/no-autofill/no-autofill.directive.mjs +1 -1
- package/esm2022/directive/no-autofill/public-api.mjs +1 -1
- package/esm2022/directive/only-number/public-api.mjs +1 -1
- package/esm2022/directive/resize-drag/public-api.mjs +1 -1
- package/esm2022/directive/resize-drag/resize-drag.directive.mjs +2 -2
- package/esm2022/directive/scroll-into-view/public-api.mjs +1 -1
- package/esm2022/directive/scroll-into-view/scroll-into-view.directive.mjs +3 -3
- package/esm2022/directive/scrollable/public-api.mjs +1 -1
- package/esm2022/directive/scrollable/scrollable/scrollable.component.mjs +6 -13
- package/esm2022/directive/scrollable/scrollable.directive.mjs +2 -2
- package/esm2022/directive/teta-template/public-api.mjs +1 -1
- package/esm2022/directive/teta-template/teta-template.directive.mjs +2 -2
- package/esm2022/directive/tooltip/public-api.mjs +1 -1
- package/esm2022/directive/tooltip/tooltip.directive.mjs +3 -4
- package/esm2022/index.mjs +1 -1
- package/esm2022/locale/en.mjs +2 -10
- package/esm2022/locale/ru.mjs +2 -10
- package/esm2022/locale/teta-config.service.mjs +2 -2
- package/esm2022/locale/teta-localisation.mjs +1 -1
- package/esm2022/observable/public-api.mjs +1 -1
- package/esm2022/observable/zone-observable.mjs +4 -4
- package/esm2022/pipe/date-pipe/teta-date.pipe.mjs +2 -2
- package/esm2022/pipe/number-pipe/number.pipe.mjs +2 -2
- package/esm2022/pipe/number-pipe/public-api.mjs +1 -1
- package/esm2022/pipe/util/number-helper.mjs +1 -1
- package/esm2022/util/bool-or-func.mjs +1 -1
- package/esm2022/util/date-util.mjs +2 -4
- package/esm2022/util/export-dom-image.mjs +1 -1
- package/esm2022/util/forms-util.mjs +6 -17
- package/esm2022/util/string-util.mjs +1 -3
- package/fesm2022/tetacom-ng-components.mjs +438 -801
- package/fesm2022/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +1 -14
- package/package.json +1 -1
- package/style/assembly-library.scss +41 -41
- package/style/assembly-presets.scss +4 -4
- package/style/assembly.scss +3 -3
- package/style/border.scss +2 -2
- package/style/color.scss +2 -3
- package/style/datepicker.scss +9 -10
- package/style/divider.scss +2 -1
- package/style/drag.scss +1 -1
- package/style/dropdown.scss +4 -5
- package/style/font.scss +2 -2
- package/style/hint.scss +3 -3
- package/style/input.scss +14 -9
- package/style/layout.scss +8 -8
- package/style/list.scss +2 -2
- package/style/loader.scss +1 -1
- package/style/message.scss +3 -3
- package/style/navigation.scss +6 -6
- package/style/presets/color-presets.scss +2 -2
- package/style/presets/view-types.scss +1 -1
- package/style/progress.scss +3 -2
- package/style/radio.scss +2 -4
- package/style/reset.scss +3 -1
- package/style/resize-panel.scss +12 -6
- package/style/scroll.scss +1 -1
- package/style/select.scss +5 -4
- package/style/shadow.scss +3 -3
- package/style/sidebar.scss +2 -2
- package/style/sizing.scss +1 -1
- package/style/skeleton.scss +3 -4
- package/style/spacing.scss +1 -1
- package/style/switch.scss +2 -3
- package/style/tag.scss +8 -8
- package/style/toggle.scss +3 -6
- package/style/toolbar.scss +3 -3
- package/style/tooltip.scss +5 -4
- package/style/tree.scss +2 -2
- package/style/util/font-util.scss +1 -1
package/docs/radioDocs.mdx
CHANGED
|
@@ -1,106 +1,118 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import RadioStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import RadioStories from '../src/component/radio/Radio.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={RadioStories}/>
|
|
4
|
+
<Meta of={RadioStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Радиокнопка</h1>
|
|
8
|
-
<div class=
|
|
8
|
+
<div class="column">
|
|
9
9
|
<p>Radiobutton (радиокнопка) — компонент, который используется для выбора одного значения из нескольких.</p>
|
|
10
10
|
</div>
|
|
11
11
|
<h3>Функции</h3>
|
|
12
|
-
<div class=
|
|
13
|
-
<p
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<div class="column">
|
|
13
|
+
<p>
|
|
14
|
+
радиокнопку используют, когда вариантов выбора немного и стараются не задавать им два значения. Разрешено
|
|
15
|
+
использовать не более трех радиокнопок.
|
|
16
|
+
</p>
|
|
17
|
+
<p>
|
|
18
|
+
В качестве навигации их использовать не стоит, так как для этого лучше подходят табы (ссылка), навигационные
|
|
19
|
+
панели и группу выбора.
|
|
20
|
+
</p>
|
|
17
21
|
<p>При клике пользователь переводит радиокнопку из состояния False в Active.</p>
|
|
18
22
|
</div>
|
|
19
23
|
<h3>Как использовать</h3>
|
|
20
|
-
<div class=
|
|
21
|
-
<p
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
<div class="column">
|
|
25
|
+
<p>
|
|
26
|
+
Создаем обертку для наших радиокнопок при помощи <code>teta-radio</code>. радиокнопки которые лежат внутри будут
|
|
27
|
+
объединены в лист радиокнопок, т.е. среди них может быть выделен только один.
|
|
28
|
+
</p>
|
|
29
|
+
<p>
|
|
30
|
+
Для создания радиокнопки нужно использовать <code>teta-radio-button</code>. Свойство <code>value</code>-
|
|
31
|
+
своеобразный id для листа с радиокнопками
|
|
32
|
+
</p>
|
|
33
|
+
<p>
|
|
34
|
+
Для взаимодействия с листом радиокнопок, нужно передавать в компонент <code>teta-radio</code> свойство{' '}
|
|
35
|
+
<code>ngModel</code> со значением свойства <code>value</code> выбранного <code>teta-radio-button</code>
|
|
36
|
+
</p>
|
|
25
37
|
</div>
|
|
26
38
|
<h3>Свойства</h3>
|
|
27
39
|
<h4>teta-radio</h4>
|
|
28
40
|
<table>
|
|
29
41
|
<thead>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
<tr>
|
|
43
|
+
<th>Свойство</th>
|
|
44
|
+
<th>Tип</th>
|
|
45
|
+
<th>Описание</th>
|
|
46
|
+
</tr>
|
|
35
47
|
</thead>
|
|
36
48
|
<tbody>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
<tr>
|
|
50
|
+
<td class="text-align-center">
|
|
51
|
+
<p>inline</p>
|
|
52
|
+
</td>
|
|
53
|
+
<td class="text-align-center">
|
|
54
|
+
<code>boolean</code>
|
|
55
|
+
</td>
|
|
56
|
+
<td class="text-align-center">
|
|
57
|
+
<p>Выстраивает радиокнопки в линию</p>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td class="text-align-center">
|
|
62
|
+
<p>disabled</p>
|
|
63
|
+
</td>
|
|
64
|
+
<td class="text-align-center">
|
|
65
|
+
<code>boolean</code>
|
|
66
|
+
</td>
|
|
67
|
+
<td class="text-align-center">
|
|
68
|
+
<p>Отключает взаимодействие со всем листом радиокнопок</p>
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td class="text-align-center">
|
|
73
|
+
<p>value</p>
|
|
74
|
+
</td>
|
|
75
|
+
<td class="text-align-center">
|
|
76
|
+
<code>number</code>
|
|
77
|
+
</td>
|
|
78
|
+
<td class="text-align-center">
|
|
79
|
+
<p>Свойство для взаимодействия с листом радиокнопок (аналог ngModel)</p>
|
|
80
|
+
</td>
|
|
81
|
+
</tr>
|
|
70
82
|
</tbody>
|
|
71
83
|
</table>
|
|
72
84
|
<h4>teta-radio-button</h4>
|
|
73
85
|
<table>
|
|
74
86
|
<thead>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
<tr>
|
|
88
|
+
<th>Свойство</th>
|
|
89
|
+
<th>Tип</th>
|
|
90
|
+
<th>Описание</th>
|
|
91
|
+
</tr>
|
|
80
92
|
</thead>
|
|
81
93
|
<tbody>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
<tr>
|
|
95
|
+
<td class="text-align-center">
|
|
96
|
+
<p>value</p>
|
|
97
|
+
</td>
|
|
98
|
+
<td class="text-align-center">
|
|
99
|
+
<code>number</code>
|
|
100
|
+
</td>
|
|
101
|
+
<td class="text-align-center">
|
|
102
|
+
<p>Свойство, которое является id радиокнопки. Испорльзуется при выборе радиокнопки.</p>
|
|
103
|
+
</td>
|
|
104
|
+
</tr>
|
|
105
|
+
<tr>
|
|
106
|
+
<td class="text-align-center">
|
|
107
|
+
<p>disabled</p>
|
|
108
|
+
</td>
|
|
109
|
+
<td class="text-align-center">
|
|
110
|
+
<code>boolean</code>
|
|
111
|
+
</td>
|
|
112
|
+
<td class="text-align-center">
|
|
113
|
+
<p>Отключает взаимодействие с радиокнопкой</p>
|
|
114
|
+
</td>
|
|
115
|
+
</tr>
|
|
104
116
|
</tbody>
|
|
105
117
|
</table>
|
|
106
118
|
</div>
|
package/docs/resizePanelDocs.mdx
CHANGED
|
@@ -1,86 +1,98 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import ResizeStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import ResizeStories from '../src/component/resize-panel/Resize.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={ResizeStories}/>
|
|
4
|
+
<Meta of={ResizeStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Панель изменения размера</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
Resizing panel (Панель изменения размера) — это элемент интерфейса, который обычно используется для изменения
|
|
11
|
+
размера окна, панели или другого элемента на экране. Это может быть полезным для пользователей, чтобы они могли
|
|
12
|
+
настроить размер элементов под свои потребности или предпочтения.
|
|
13
|
+
</p>
|
|
12
14
|
</div>
|
|
13
15
|
<h3>Функции</h3>
|
|
14
|
-
<div class=
|
|
15
|
-
<p
|
|
16
|
-
|
|
16
|
+
<div class="column">
|
|
17
|
+
<p>
|
|
18
|
+
Функции resizing panel зависят от контекста, в котором она используется. Вот несколько общих функций, которые она
|
|
19
|
+
может выполнять:
|
|
20
|
+
</p>
|
|
17
21
|
<ul>
|
|
18
|
-
<li
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
<li>
|
|
23
|
+
Изменение размера элементов: Основная функция resizing panel - это позволить пользователю изменять размер
|
|
24
|
+
элементов интерфейса. Это может быть окон, панелей, изображений, виджетов и т. д.
|
|
25
|
+
</li>
|
|
26
|
+
<li>
|
|
27
|
+
Размещение элементов: Некоторые resizing panel также могут помогать пользователю выравнивать и располагать
|
|
21
28
|
элементы на экране. Например, они могут предоставлять сетку или направляющие линии для более точного
|
|
22
|
-
|
|
29
|
+
позиционирования.
|
|
30
|
+
</li>
|
|
23
31
|
</ul>
|
|
24
32
|
</div>
|
|
25
33
|
<h3>Как использовать</h3>
|
|
26
|
-
<div class=
|
|
27
|
-
<p
|
|
28
|
-
|
|
34
|
+
<div class="column">
|
|
35
|
+
<p>
|
|
36
|
+
<code>teta-resize-panel</code> - компонент для создания панели изменения размера.
|
|
37
|
+
</p>
|
|
38
|
+
<p>
|
|
39
|
+
Панель может расрываться горизонтально и вертикально. За это отвечает свойство <code>direction</code>
|
|
40
|
+
</p>
|
|
29
41
|
</div>
|
|
30
42
|
<h3>Свойства</h3>
|
|
31
43
|
<table>
|
|
32
44
|
<thead>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
<tr>
|
|
46
|
+
<th>Свойство</th>
|
|
47
|
+
<th>Tип</th>
|
|
48
|
+
<th>Описание</th>
|
|
49
|
+
</tr>
|
|
38
50
|
</thead>
|
|
39
51
|
<tbody>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
52
|
+
<tr>
|
|
53
|
+
<td class="text-align-center">
|
|
54
|
+
<p>direction</p>
|
|
55
|
+
</td>
|
|
56
|
+
<td class="text-align-center">
|
|
57
|
+
<code>'vertical' | 'horizontal'</code>
|
|
58
|
+
</td>
|
|
59
|
+
<td class="text-align-center">
|
|
60
|
+
<p>Направления раскрытия панели</p>
|
|
61
|
+
</td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<td class="text-align-center">
|
|
65
|
+
<p>minSize</p>
|
|
66
|
+
</td>
|
|
67
|
+
<td class="text-align-center">
|
|
68
|
+
<code>number</code>
|
|
69
|
+
</td>
|
|
70
|
+
<td class="text-align-center">
|
|
71
|
+
<p>Минимальный размер панели</p>
|
|
72
|
+
</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td class="text-align-center">
|
|
76
|
+
<p>maxSize</p>
|
|
77
|
+
</td>
|
|
78
|
+
<td class="text-align-center">
|
|
79
|
+
<code>number</code>
|
|
80
|
+
</td>
|
|
81
|
+
<td class="text-align-center">
|
|
82
|
+
<p>Максимальный размер панели</p>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td class="text-align-center">
|
|
87
|
+
<p>grabPosition</p>
|
|
88
|
+
</td>
|
|
89
|
+
<td class="text-align-center">
|
|
90
|
+
<code>'top' | 'bottom' | 'right' | 'left'</code>
|
|
91
|
+
</td>
|
|
92
|
+
<td class="text-align-center">
|
|
93
|
+
<p>Позиция иконки для изменения размера.</p>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
84
96
|
</tbody>
|
|
85
97
|
</table>
|
|
86
98
|
</div>
|