@tetacom/ng-components 1.4.4 → 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/expandPanelDocs.mdx
CHANGED
|
@@ -1,105 +1,117 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import ExpandPanelStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import ExpandPanelStories from '../src/component/expand-panel/ExpandPanel.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={ExpandPanelStories}/>
|
|
4
|
+
<Meta of={ExpandPanelStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>ExpandPanel</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
10
|
-
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
ExpandPanel обычно используется для фильтров,отображения блоков, которые нужно скрывать, а также при большом
|
|
11
|
+
количестве элементов в одной строчке
|
|
12
|
+
</p>
|
|
11
13
|
</div>
|
|
12
14
|
<h3>Функции</h3>
|
|
13
|
-
<div class=
|
|
15
|
+
<div class="column">
|
|
14
16
|
<p>ExpandPanel позволяет скрывать содержимое при клике на соответствующую кнопку.</p>
|
|
15
17
|
<p>При скрытии содержимого, название меняет написание на горизонтальное</p>
|
|
16
18
|
</div>
|
|
17
19
|
<h3>Как пользоваться компонентом</h3>
|
|
18
|
-
<div class=
|
|
19
|
-
<p
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<div class="column">
|
|
21
|
+
<p>
|
|
22
|
+
Создаем <code> <teta-expand-panel></code>, внуть передаем блоки с директивами{' '}
|
|
23
|
+
<code>tetaExpandPanelHead</code> и <code>tetaExpandPanelContent</code>.
|
|
24
|
+
</p>
|
|
25
|
+
<p>
|
|
26
|
+
Директива <code>tetaExpandPanelHead</code> отвечает за отображение дочерних элементов в шапке элемента.
|
|
27
|
+
</p>
|
|
28
|
+
<p>
|
|
29
|
+
Блок с директивой <code>tetaExpandPanelContent</code> используется как содержимое раскрывающейся панели.
|
|
30
|
+
</p>
|
|
23
31
|
</div>
|
|
24
32
|
<h3>Примеры кода</h3>
|
|
25
33
|
<p>
|
|
26
|
-
<pre
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
&
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
</
|
|
34
|
+
<pre>
|
|
35
|
+
<code>
|
|
36
|
+
<div [tetaIconSprite]="'assets/icons.svg'" class="column bg-global-bgcard font-body-3 padding-3"
|
|
37
|
+
style="width:fit-content;height: 500px"> <teta-expand-panel placeholder='Фильтры' >
|
|
38
|
+
<ng-template tetaExpandPanelHead>Фильтры</ng-template>
|
|
39
|
+
<ng-template tetaExpandPanelContent> <div class="padding-v-3
|
|
40
|
+
padding-h-2">Фильтр1</div> </ng-template> </teta-expand-panel>
|
|
41
|
+
</div>
|
|
42
|
+
</code>
|
|
43
|
+
</pre>
|
|
44
|
+
</p>
|
|
45
|
+
<div class="column">
|
|
46
|
+
<h3>Свойства</h3>
|
|
47
|
+
<h4>teta-expand-panel</h4>
|
|
48
|
+
<table>
|
|
49
|
+
<thead>
|
|
50
|
+
<tr>
|
|
51
|
+
<th>Свойство</th>
|
|
52
|
+
<th>Tип</th>
|
|
53
|
+
<th>Описание</th>
|
|
54
|
+
</tr>
|
|
55
|
+
</thead>
|
|
56
|
+
<tbody>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="text-align-center">
|
|
59
|
+
<p>placeholder</p>
|
|
60
|
+
</td>
|
|
61
|
+
<td class="text-align-center">
|
|
62
|
+
<code>string</code>
|
|
63
|
+
</td>
|
|
64
|
+
<td class="text-align-center">
|
|
65
|
+
<p>Текст панели в закрытом состоянии</p>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td class="text-align-center">
|
|
70
|
+
<p>open</p>
|
|
71
|
+
</td>
|
|
72
|
+
<td class="text-align-center">
|
|
73
|
+
<code>boolean</code>
|
|
74
|
+
</td>
|
|
75
|
+
<td class="text-align-center">
|
|
76
|
+
<p>Свойство позволяющее управлять состоянием панели</p>
|
|
77
|
+
</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td class="text-align-center">
|
|
81
|
+
<p>openChange</p>
|
|
82
|
+
</td>
|
|
83
|
+
<td class="text-align-center">
|
|
84
|
+
<code>function</code>
|
|
85
|
+
</td>
|
|
86
|
+
<td class="text-align-center">
|
|
87
|
+
<p>
|
|
88
|
+
Указанная функция выполняется при изменении свойства <code>open</code>.Отдает текущее состояние.
|
|
89
|
+
</p>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td class="text-align-center">
|
|
94
|
+
<p>direction</p>
|
|
95
|
+
</td>
|
|
96
|
+
<td class="text-align-center">
|
|
97
|
+
<code>'left'|'right'</code>
|
|
98
|
+
</td>
|
|
99
|
+
<td class="text-align-center">
|
|
100
|
+
<p>Свойство для выбора направления скрытия панели</p>
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
<tr>
|
|
104
|
+
<td class="text-align-center">
|
|
105
|
+
<p>cookieName</p>
|
|
106
|
+
</td>
|
|
107
|
+
<td class="text-align-center">
|
|
108
|
+
<code>string</code>
|
|
109
|
+
</td>
|
|
110
|
+
<td class="text-align-center">
|
|
111
|
+
<p>При вводе этого свойства создается кука с указанным именем и с состоянием панели.</p>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</tbody>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
105
117
|
</div>
|
package/docs/fileAreaDocs.mdx
CHANGED
|
@@ -1,73 +1,78 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import FileStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import FileStories from '../src/component/file-upload/File.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={FileStories}/>
|
|
4
|
+
<Meta of={FileStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>FileArea</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
10
|
-
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
FileArea - область в которой работает перетаскивания туда файлов для загрузки(Drag and Drop). Также можно кликнуть
|
|
11
|
+
на специальную кнопку, чтобы указать путь к файлу и загрузить его.
|
|
12
|
+
</p>
|
|
11
13
|
</div>
|
|
12
14
|
<h3>Как пользоваться компонентом</h3>
|
|
13
|
-
<div class=
|
|
14
|
-
<p
|
|
15
|
+
<div class="column">
|
|
16
|
+
<p>
|
|
17
|
+
Создаем <code> <teta-file-upload-area></code>, внуть передаем внутрь элементы, которые будут отображаться в
|
|
18
|
+
нем.
|
|
19
|
+
</p>
|
|
15
20
|
</div>
|
|
16
|
-
<div class=
|
|
21
|
+
<div class="column">
|
|
17
22
|
<h3>Свойства</h3>
|
|
18
23
|
<table>
|
|
19
24
|
<thead>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
<tr>
|
|
26
|
+
<th>Свойство</th>
|
|
27
|
+
<th>Tип</th>
|
|
28
|
+
<th>Описание</th>
|
|
29
|
+
</tr>
|
|
25
30
|
</thead>
|
|
26
31
|
<tbody>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
70
|
-
|
|
32
|
+
<tr>
|
|
33
|
+
<td class="text-align-center">
|
|
34
|
+
<p>upload</p>
|
|
35
|
+
</td>
|
|
36
|
+
<td class="text-align-center">
|
|
37
|
+
<code>function</code>
|
|
38
|
+
</td>
|
|
39
|
+
<td class="text-align-center">
|
|
40
|
+
<p>Функция, которая используется при загрузке файлов и передает в нее загруженные файлы</p>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td class="text-align-center">
|
|
45
|
+
<p>accept</p>
|
|
46
|
+
</td>
|
|
47
|
+
<td class="text-align-center">
|
|
48
|
+
<code>string[]</code>
|
|
49
|
+
</td>
|
|
50
|
+
<td class="text-align-center">
|
|
51
|
+
<p>Принимаемые типы файлов</p>
|
|
52
|
+
</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td class="text-align-center">
|
|
56
|
+
<p>multiple</p>
|
|
57
|
+
</td>
|
|
58
|
+
<td class="text-align-center">
|
|
59
|
+
<code>boolean</code>
|
|
60
|
+
</td>
|
|
61
|
+
<td class="text-align-center">
|
|
62
|
+
<p>Возможность выбирать несколько файлов</p>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td class="text-align-center">
|
|
67
|
+
<p>disabled</p>
|
|
68
|
+
</td>
|
|
69
|
+
<td class="text-align-center">
|
|
70
|
+
<code>boolean</code>
|
|
71
|
+
</td>
|
|
72
|
+
<td class="text-align-center">
|
|
73
|
+
<p>Отключает прием файлов</p>
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
71
76
|
</tbody>
|
|
72
77
|
</table>
|
|
73
78
|
</div>
|
package/docs/inputDocs.mdx
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import InputStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import InputStories from '../src/component/input/Input.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={InputStories}/>
|
|
4
|
+
<Meta of={InputStories} />
|
|
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>Input (поле ввода) — компонент, который позволяет указать значение с помощью клавиатуры.</p>
|
|
10
10
|
<p>В библиотеке существует два вида иконок: цветные и без заливки</p>
|
|
11
11
|
</div>
|
|
12
12
|
<h3>Как использовать</h3>
|
|
13
|
-
<div class=
|
|
14
|
-
<p
|
|
13
|
+
<div class="column">
|
|
14
|
+
<p>
|
|
15
|
+
Иконки нужны для быстрого восприятия информации и помогают пользователю быстро и легко узнать о теме функции или
|
|
16
|
+
категории, не используя текст.
|
|
17
|
+
</p>
|
|
15
18
|
<p>Используются в различных компонентах:</p>
|
|
16
19
|
<ul>
|
|
17
20
|
<li>Кнопки</li>
|
|
@@ -20,72 +23,72 @@ import InputStories from "../src/component/input/Input.stories";
|
|
|
20
23
|
<li>Аккордеонах и т.п.</li>
|
|
21
24
|
</ul>
|
|
22
25
|
</div>
|
|
23
|
-
<div class=
|
|
26
|
+
<div class="column">
|
|
24
27
|
<h3>Свойства</h3>
|
|
25
28
|
<table>
|
|
26
29
|
<thead>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
<tr>
|
|
31
|
+
<th>Свойство</th>
|
|
32
|
+
<th>Tип</th>
|
|
33
|
+
<th>Описание</th>
|
|
34
|
+
</tr>
|
|
32
35
|
</thead>
|
|
33
36
|
<tbody>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
<tr>
|
|
38
|
+
<td class="text-align-center">
|
|
39
|
+
<p>viewType</p>
|
|
40
|
+
</td>
|
|
41
|
+
<td class="text-align-center">
|
|
42
|
+
<code>'rounded'|'circle'|'brick'</code>
|
|
43
|
+
</td>
|
|
44
|
+
<td class="text-align-center">
|
|
42
45
|
<p>Свойство округления компонента.</p>
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
46
|
+
</td>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<td class="text-align-center">
|
|
50
|
+
<p>size</p>
|
|
51
|
+
</td>
|
|
52
|
+
<td class="text-align-center">
|
|
53
|
+
<code>'24' | '28' | '32' | '44' | '64' | '128' | '200'</code>
|
|
54
|
+
</td>
|
|
55
|
+
<td class="text-align-center">
|
|
56
|
+
<p>Размер компонента</p>
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td class="text-align-center">
|
|
61
|
+
<p>photo</p>
|
|
62
|
+
</td>
|
|
63
|
+
<td class="text-align-center">
|
|
64
|
+
<code>'string | ArrayBuffer'</code>
|
|
65
|
+
</td>
|
|
66
|
+
<td class="text-align-center">
|
|
67
|
+
<p>Изображение для фона компонента</p>
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr>
|
|
71
|
+
<td class="text-align-center">
|
|
72
|
+
<p>id</p>
|
|
73
|
+
</td>
|
|
74
|
+
<td class="text-align-center">
|
|
75
|
+
<code>'number'</code>
|
|
76
|
+
</td>
|
|
77
|
+
<td class="text-align-center">
|
|
78
|
+
<p>Свойство, которое отвечает за цвет фона компонента</p>
|
|
79
|
+
</td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td class="text-align-center">
|
|
83
|
+
<p>name</p>
|
|
84
|
+
</td>
|
|
85
|
+
<td class="text-align-center">
|
|
86
|
+
<code>'string'</code>
|
|
87
|
+
</td>
|
|
88
|
+
<td class="text-align-center">
|
|
89
|
+
<p>Отображаемый текст</p>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
89
92
|
</tbody>
|
|
90
93
|
</table>
|
|
91
94
|
</div>
|
package/docs/listDocs.mdx
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import ListStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import ListStories from '../src/component/list/List.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={ListStories}/>
|
|
4
|
+
<Meta of={ListStories} />
|
|
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>Лист - список элементов идущих подряд.</p>
|
|
10
10
|
<p>Лист обычно используется в дропдаунах, селектах и в деревьях</p>
|
|
11
11
|
</div>
|
|
12
12
|
<h3>Как использовать</h3>
|
|
13
|
-
<div class=
|
|
14
|
-
<p
|
|
15
|
-
|
|
13
|
+
<div class="column">
|
|
14
|
+
<p>
|
|
15
|
+
Сначала необходимо создать блок с классом <code>list</code> внутрь передать несколько элементов с классом{' '}
|
|
16
|
+
<code>list-item</code>
|
|
17
|
+
</p>
|
|
18
|
+
<p>
|
|
19
|
+
Если нужно чтобы список элементов был интерактивным, элементам списка необходимо дополнительно добавить класс{' '}
|
|
20
|
+
<code>list-item_interactive</code>
|
|
21
|
+
</p>
|
|
16
22
|
</div>
|
|
17
23
|
</div>
|