@tetacom/ng-components 1.4.4 → 1.4.7
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/property-grid/property-grid/property-grid-group/property-grid-group.component.d.ts +11 -17
- package/component/property-grid/property-grid/property-grid-item/property-grid-item.component.d.ts +18 -19
- package/component/property-grid/property-grid/property-grid.component.d.ts +10 -15
- package/component/property-grid/public-api.d.ts +0 -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 +15 -49
- package/esm2022/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +44 -58
- 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 +24 -46
- package/esm2022/component/property-grid/public-api.mjs +1 -2
- 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 +9 -27
- package/esm2022/util/string-util.mjs +1 -3
- package/fesm2022/tetacom-ng-components.mjs +548 -1024
- 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 +4 -3
- 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/util/forms-util.d.ts +1 -2
- package/component/property-grid/property-grid.module.d.ts +0 -13
- package/esm2022/component/property-grid/property-grid.module.mjs +0 -57
package/docs/selectDocs.mdx
CHANGED
|
@@ -1,240 +1,282 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import SelectStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import SelectStories from '../src/component/select/Select.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={SelectStories}/>
|
|
4
|
+
<Meta of={SelectStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Поле выбора</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
10
|
-
с помощью
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
Select (поле выбора) — компонент, который позволяет выбрать значение с помощью выпадающего списка или же написать
|
|
11
|
+
с помощью клавиатуры.
|
|
12
|
+
</p>
|
|
11
13
|
</div>
|
|
12
14
|
<h3>Функции</h3>
|
|
13
|
-
<div class=
|
|
14
|
-
<p
|
|
15
|
-
|
|
15
|
+
<div class="column">
|
|
16
|
+
<p>
|
|
17
|
+
Функции resizing panel зависят от контекста, в котором она используется. Вот несколько общих функций, которые она
|
|
18
|
+
может выполнять:
|
|
19
|
+
</p>
|
|
16
20
|
<ul>
|
|
17
|
-
<li
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
<li>
|
|
22
|
+
Выбор одного варианта: Вы можете использовать его для создания меню с выбором одного элемента из списка.
|
|
23
|
+
Например, это может быть полезно при заполнении формы, где пользователю нужно выбрать свой пол, страну, штат или
|
|
24
|
+
другой единственный вариант.
|
|
25
|
+
</li>
|
|
26
|
+
<li>
|
|
27
|
+
Множественный выбор: Вы также можете использовать селект со свойством <code>multiple</code>, чтобы позволить
|
|
28
|
+
пользователю выбирать несколько вариантов из списка. Это полезно, например, при выборе нескольких категорий или
|
|
29
|
+
характеристик товаров.
|
|
30
|
+
</li>
|
|
31
|
+
<li>
|
|
32
|
+
Выбор даты и времени: Выпадающие списки также могут использоваться для выбора даты и времени. В зависимости от
|
|
33
|
+
конкретных потребностей, вы можете создать несколько выпадающих списков для выбора года, месяца, дня, часа и
|
|
34
|
+
минут.
|
|
35
|
+
</li>
|
|
36
|
+
<li>
|
|
37
|
+
Фильтрация и сортировка данных: В некоторых случаях селект может быть использован для фильтрации или сортировки
|
|
38
|
+
данных на веб-странице. Например, можно предоставить пользователю возможность выбрать категорию или сортировать
|
|
39
|
+
список товаров по цене или рейтингу.
|
|
40
|
+
</li>
|
|
41
|
+
<li>
|
|
42
|
+
Навигация по веб-сайту: Выпадающие списки также могут использоваться в навигации по веб-сайту, чтобы позволить
|
|
43
|
+
пользователям выбирать разделы, страницы или фильтры.
|
|
44
|
+
</li>
|
|
22
45
|
</ul>
|
|
23
46
|
</div>
|
|
24
47
|
<h3>Как использовать</h3>
|
|
25
|
-
<div class=
|
|
26
|
-
<p
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<p
|
|
48
|
+
<div class="column">
|
|
49
|
+
<p>
|
|
50
|
+
За создание селекта отвечает компонент <code>teta-select</code>
|
|
51
|
+
</p>
|
|
52
|
+
<p>
|
|
53
|
+
У селекта есть свойство <code>options</code> , которое по дефолту ждет массив объектов со свойствами id,name. Эти
|
|
54
|
+
значения будут использоваться в качестве вариантов выбора в селекте.
|
|
55
|
+
</p>
|
|
56
|
+
<p>
|
|
57
|
+
Если необхдимо чтобы использовались другие свойства передаваемого объекта, то можно указать свойство
|
|
58
|
+
<code>valueRef</code> и <code>textRef</code> для выбора необходимых свойств.
|
|
59
|
+
</p>
|
|
60
|
+
<p>
|
|
61
|
+
Также в компоненте есть возможность сделать кастомное отображение выбираемых элементов и текста в шапке селекта.
|
|
62
|
+
Для этого нужно внутрь передать <code>ng-template</code> с директивами <code>tetaSelectValue</code>(текст в шапке)
|
|
63
|
+
и <code>tetaSelectOption</code>(элементы списка)
|
|
64
|
+
</p>
|
|
30
65
|
</div>
|
|
31
66
|
<h3>Пример кода</h3>
|
|
32
|
-
<p
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
67
|
+
<p>
|
|
68
|
+
<pre>
|
|
69
|
+
<code>
|
|
70
|
+
<teta-select [(ngModel)]="selected" valueRef='number' textRef='pseudonym'
|
|
71
|
+
[options]="[{number:1,pseudonym:'Дима'},{number:2,pseudonym:'Михаил'}]">
|
|
72
|
+
<ng-template tetaSelectValue let-value> <p
|
|
73
|
+
style="color:red">{{value?.pseudonym}}</p> </ng-template>
|
|
74
|
+
<ng-template tetaSelectOption let-option> <p
|
|
75
|
+
style="color:blue">{{option?.pseudonym}}</p> </ng-template>
|
|
76
|
+
</teta-select>
|
|
77
|
+
</code>
|
|
78
|
+
</pre>
|
|
79
|
+
</p>
|
|
40
80
|
<h3>Свойства</h3>
|
|
41
81
|
<h4>teta-select</h4>
|
|
42
82
|
<table>
|
|
43
83
|
<thead>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
84
|
+
<tr>
|
|
85
|
+
<th>Свойство</th>
|
|
86
|
+
<th>Tип</th>
|
|
87
|
+
<th>Описание</th>
|
|
88
|
+
</tr>
|
|
49
89
|
</thead>
|
|
50
90
|
<tbody>
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
91
|
+
<tr>
|
|
92
|
+
<td class="text-align-center">
|
|
93
|
+
<p>viewType</p>
|
|
94
|
+
</td>
|
|
95
|
+
<td class="text-align-center">
|
|
96
|
+
<code>'rounded'|'circle'|'brick'</code>
|
|
97
|
+
</td>
|
|
98
|
+
<td class="text-align-center">
|
|
99
|
+
<p>Свойство округления компонента.</p>
|
|
100
|
+
</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td class="text-align-center">
|
|
104
|
+
<p>options</p>
|
|
105
|
+
</td>
|
|
106
|
+
<td class="text-align-center">
|
|
107
|
+
<code>IIdName[] </code>
|
|
108
|
+
</td>
|
|
109
|
+
<td class="text-align-center">
|
|
110
|
+
<p>Массив выбираемых элементов селекта</p>
|
|
111
|
+
</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr>
|
|
114
|
+
<td class="text-align-center">
|
|
115
|
+
<p>textRef</p>
|
|
116
|
+
</td>
|
|
117
|
+
<td class="text-align-center">
|
|
118
|
+
<code>string</code>
|
|
119
|
+
</td>
|
|
120
|
+
<td class="text-align-center">
|
|
121
|
+
<p>Наименование свойства для использования в качестве текста для выбираемых элементов селекта</p>
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
<tr>
|
|
125
|
+
<td class="text-align-center">
|
|
126
|
+
<p>valueRef</p>
|
|
127
|
+
</td>
|
|
128
|
+
<td class="text-align-center">
|
|
129
|
+
<code>string</code>
|
|
130
|
+
</td>
|
|
131
|
+
<td class="text-align-center">
|
|
132
|
+
<p>Наименование свойства для использования в качестве идентификатора для выбираемых элементов</p>
|
|
133
|
+
</td>
|
|
134
|
+
</tr>
|
|
135
|
+
<tr>
|
|
136
|
+
<td class="text-align-center">
|
|
137
|
+
<p>multiple</p>
|
|
138
|
+
</td>
|
|
139
|
+
<td class="text-align-center">
|
|
140
|
+
<code>boolean</code>
|
|
141
|
+
</td>
|
|
142
|
+
<td class="text-align-center">
|
|
143
|
+
<p>Возможность выбора нескольких элементов</p>
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
<tr>
|
|
147
|
+
<td class="text-align-center">
|
|
148
|
+
<p>disabled</p>
|
|
149
|
+
</td>
|
|
150
|
+
<td class="text-align-center">
|
|
151
|
+
<code>boolean</code>
|
|
152
|
+
</td>
|
|
153
|
+
<td class="text-align-center">
|
|
154
|
+
<p>Отключает реакцию компонента на клик пользователя</p>
|
|
155
|
+
</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<td class="text-align-center">
|
|
159
|
+
<p>allowNull</p>
|
|
160
|
+
</td>
|
|
161
|
+
<td class="text-align-center">
|
|
162
|
+
<code>boolean</code>
|
|
163
|
+
</td>
|
|
164
|
+
<td class="text-align-center">
|
|
165
|
+
<p>Свойство, которое добавляет в селект пункт "не выбрано"</p>
|
|
166
|
+
</td>
|
|
167
|
+
</tr>
|
|
168
|
+
<tr>
|
|
169
|
+
<td class="text-align-center">
|
|
170
|
+
<p>searchRef</p>
|
|
171
|
+
</td>
|
|
172
|
+
<td class="text-align-center">
|
|
173
|
+
<code>string</code>
|
|
174
|
+
</td>
|
|
175
|
+
<td class="text-align-center">
|
|
176
|
+
<p>Добавляет поиск в select и ищет совпадения по указанному свойству.</p>
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td class="text-align-center">
|
|
181
|
+
<p>notFoundText</p>
|
|
182
|
+
</td>
|
|
183
|
+
<td class="text-align-center">
|
|
184
|
+
<code>string</code>
|
|
185
|
+
</td>
|
|
186
|
+
<td class="text-align-center">
|
|
187
|
+
<p>Меняет стандартный текст, который появляется при отсутствии соответствий в поиске</p>
|
|
188
|
+
</td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td class="text-align-center">
|
|
192
|
+
<p>placeholder</p>
|
|
193
|
+
</td>
|
|
194
|
+
<td class="text-align-center">
|
|
195
|
+
<code>string</code>
|
|
196
|
+
</td>
|
|
197
|
+
<td class="text-align-center">
|
|
198
|
+
<p>Указанный текст отображается при отсутствии выбранных элементов</p>
|
|
199
|
+
</td>
|
|
200
|
+
</tr>
|
|
201
|
+
<tr>
|
|
202
|
+
<td class="text-align-center">
|
|
203
|
+
<p>invalid</p>
|
|
204
|
+
</td>
|
|
205
|
+
<td class="text-align-center">
|
|
206
|
+
<code>boolean</code>
|
|
207
|
+
</td>
|
|
208
|
+
<td class="text-align-center">
|
|
209
|
+
<p>Добавляет состояние error для селекта</p>
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
<tr>
|
|
213
|
+
<td class="text-align-center">
|
|
214
|
+
<p>verticalAlign</p>
|
|
215
|
+
</td>
|
|
216
|
+
<td class="text-align-center">
|
|
217
|
+
<code>VerticalAlign</code>
|
|
218
|
+
</td>
|
|
219
|
+
<td class="text-align-center">
|
|
220
|
+
<p>Позиция выпадающего списка по вертикали</p>
|
|
221
|
+
</td>
|
|
222
|
+
</tr>
|
|
223
|
+
<tr>
|
|
224
|
+
<td class="text-align-center">
|
|
225
|
+
<p>align</p>
|
|
226
|
+
</td>
|
|
227
|
+
<td class="text-align-center">
|
|
228
|
+
<code>align</code>
|
|
229
|
+
</td>
|
|
230
|
+
<td class="text-align-center">
|
|
231
|
+
<p>Позиция выпадающего списка по горизонтали</p>
|
|
232
|
+
</td>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr>
|
|
235
|
+
<td class="text-align-center">
|
|
236
|
+
<p>icon</p>
|
|
237
|
+
</td>
|
|
238
|
+
<td class="text-align-center">
|
|
239
|
+
<code>name</code>
|
|
240
|
+
</td>
|
|
241
|
+
<td class="text-align-center">
|
|
242
|
+
<p>Принимает название иконки, которое будет отображаться в поле селекта, слева от текста в шапке селекта</p>
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td class="text-align-center">
|
|
247
|
+
<p>autoClose</p>
|
|
248
|
+
</td>
|
|
249
|
+
<td class="text-align-center">
|
|
250
|
+
<code>boolean</code>
|
|
251
|
+
</td>
|
|
252
|
+
<td class="text-align-center">
|
|
253
|
+
<p>Свойство, которое включает/отключает закрытие селекта автоматически.</p>
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td class="text-align-center">
|
|
258
|
+
<p>autoCloseIgnore</p>
|
|
259
|
+
</td>
|
|
260
|
+
<td class="text-align-center">
|
|
261
|
+
<code>AutoCloseIgnoreCase[]</code>
|
|
262
|
+
</td>
|
|
263
|
+
<td class="text-align-center">
|
|
264
|
+
<p>Свойство, которое игнорирует указанные причины закрытия селекта</p>
|
|
265
|
+
</td>
|
|
266
|
+
</tr>
|
|
267
|
+
<tr>
|
|
268
|
+
<td class="text-align-center">
|
|
269
|
+
<p>appendToBody</p>
|
|
270
|
+
</td>
|
|
271
|
+
<td class="text-align-center">
|
|
272
|
+
<code>boolean</code>
|
|
273
|
+
</td>
|
|
274
|
+
<td class="text-align-center">
|
|
275
|
+
<p>
|
|
276
|
+
Позволяет прикрепить содержимое селекта не к шапке, а к <code>body</code>
|
|
277
|
+
</p>
|
|
278
|
+
</td>
|
|
279
|
+
</tr>
|
|
238
280
|
</tbody>
|
|
239
281
|
</table>
|
|
240
282
|
</div>
|