@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/messageDocs.mdx
CHANGED
|
@@ -1,32 +1,46 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import MessageStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import MessageStories from '../src/component/message/Message.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={MessageStories}/>
|
|
4
|
+
<Meta of={MessageStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Тост</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
Toast (тост) — короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его
|
|
11
|
+
команды.
|
|
12
|
+
</p>
|
|
10
13
|
</div>
|
|
11
14
|
<h3>Функции</h3>
|
|
12
|
-
<div class=
|
|
13
|
-
<p
|
|
14
|
-
|
|
15
|
+
<div class="column">
|
|
16
|
+
<p>
|
|
17
|
+
Используйте тост, если нет возможности сообщить обратную связь. В проектах выпрыгивает из правого нижнего угла.
|
|
18
|
+
</p>
|
|
19
|
+
<p>
|
|
20
|
+
Тост может показывается несколько секунд или бесконечно. Этот компонент так же может содержать кнопки, чтобы
|
|
21
|
+
закрыть или же перейти к объекту, к которому применима обратная связь.
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
|
+
<h3>Виды тостов</h3>
|
|
25
|
+
<div>
|
|
26
|
+
<p>Есть несколько видов тостов. Они различаются своими State Lines.</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>Default (Серый)</li>
|
|
29
|
+
<li>Success (Зеленый)</li>
|
|
30
|
+
<li>Error (Красный)</li>
|
|
31
|
+
<li>Warning (Желтый)</li>
|
|
32
|
+
</ul>
|
|
15
33
|
</div>
|
|
16
|
-
<h3>Виды тостов</h3>
|
|
17
|
-
<div>
|
|
18
|
-
<p>Есть несколько видов тостов. Они различаются своими State Lines.</p>
|
|
19
|
-
<ul>
|
|
20
|
-
<li>Default (Серый)</li>
|
|
21
|
-
<li>Success (Зеленый)</li>
|
|
22
|
-
<li>Error (Красный)</li>
|
|
23
|
-
<li>Warning (Желтый)</li>
|
|
24
|
-
</ul>
|
|
25
|
-
</div>
|
|
26
34
|
<h3>Как использовать</h3>
|
|
27
|
-
<div class=
|
|
28
|
-
<p
|
|
29
|
-
|
|
35
|
+
<div class="column">
|
|
36
|
+
<p>
|
|
37
|
+
Для того чтобы воспользоваться данным компонентом, нужно внедрить в компонент сервис <code>messageService</code> и
|
|
38
|
+
использовать метод <code>add</code>.{' '}
|
|
39
|
+
</p>
|
|
40
|
+
<p>
|
|
41
|
+
{' '}
|
|
42
|
+
Этот метод ждет объект типа <code>Message</code>, который содержит следующие свойства:
|
|
43
|
+
</p>
|
|
30
44
|
<ul>
|
|
31
45
|
<li>name- индификатор для тоста, который используется для его скрытия</li>
|
|
32
46
|
<li>title- текст в заголовке тоста</li>
|
|
@@ -38,7 +52,9 @@ import MessageStories from "../src/component/message/Message.stories";
|
|
|
38
52
|
<li>template - возможность указать свой шаблон тела тоста</li>
|
|
39
53
|
<li>viewType- округление тоста</li>
|
|
40
54
|
</ul>
|
|
41
|
-
|
|
55
|
+
<p>
|
|
56
|
+
Также есть возможность скрыть тост медотом <code>clearMessages</code>
|
|
57
|
+
</p>
|
|
42
58
|
</div>
|
|
43
59
|
<h3>Виды тостов</h3>
|
|
44
60
|
<div>
|
|
@@ -53,17 +69,14 @@ import MessageStories from "../src/component/message/Message.stories";
|
|
|
53
69
|
<h3>Пример кода</h3>
|
|
54
70
|
<div>
|
|
55
71
|
<p>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
)
|
|
66
|
-
}</code></pre>
|
|
72
|
+
<pre>
|
|
73
|
+
<code>
|
|
74
|
+
addMessage(){ this.messageService.add( new Message({
|
|
75
|
+
name:'example', title:'Ошибка',
|
|
76
|
+
text:'Перелогиньтесь', palette: 'red',
|
|
77
|
+
duration: 5000, }); ) }
|
|
78
|
+
</code>
|
|
79
|
+
</pre>
|
|
67
80
|
</p>
|
|
68
81
|
</div>
|
|
69
82
|
</div>
|
package/docs/progressBarDocs.mdx
CHANGED
|
@@ -1,74 +1,88 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import ProgressBarStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import ProgressBarStories from '../src/component/progress-bar/ProgressBar.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={ProgressBarStories}/>
|
|
4
|
+
<Meta of={ProgressBarStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Слайдер</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
Progress bars (Слайдер) — это элемент управления страницей, который позволяет пользователю выбирать значение из
|
|
10
11
|
определенного диапазона. Он представляет собой горизонтальную полосу, которую можно перемещать влево или вправо,
|
|
11
12
|
чтобы выбрать значение в заданном диапазоне. Слайдеры часто используются для настройки параметров, выбора числовых
|
|
12
|
-
значений (например, громкости,времени или яркости) или фильтрации
|
|
13
|
+
значений (например, громкости,времени или яркости) или фильтрации данных.
|
|
14
|
+
</p>
|
|
13
15
|
</div>
|
|
14
16
|
<h3>Функции</h3>
|
|
15
|
-
<div class=
|
|
17
|
+
<div class="column">
|
|
16
18
|
<p>Slider выполняет следующие основные функции:</p>
|
|
17
19
|
<ul>
|
|
18
|
-
<li
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
<li>
|
|
21
|
+
Выбор значения в заданном диапазоне: Слайдер позволяет пользователю выбирать значение из определенного числового
|
|
22
|
+
диапазона.
|
|
23
|
+
</li>
|
|
24
|
+
<li>
|
|
25
|
+
Отображение текущего значения: Слайдер отображает текущее выбранное значение, что позволяет пользователям
|
|
26
|
+
видеть, какое значение они выбрали
|
|
27
|
+
</li>
|
|
28
|
+
<li>
|
|
29
|
+
Изменение значения в реальном времени: Когда пользователь перемещает бегунок слайдера, значение обновляется в
|
|
30
|
+
реальном времени, что делает процесс выбора более наглядным и удобным.
|
|
31
|
+
</li>
|
|
21
32
|
<li>Вы можете настроить шаг, с которым изменяется значение при перемещении бегунка слайдера.</li>
|
|
22
33
|
</ul>
|
|
23
34
|
</div>
|
|
24
35
|
<h3>Как использовать</h3>
|
|
25
|
-
<div class=
|
|
26
|
-
<p
|
|
36
|
+
<div class="column">
|
|
37
|
+
<p>
|
|
38
|
+
Для создания слайдера существует компонент <code>teta-progress-bar</code>. Для передачи данных в него нужно
|
|
39
|
+
использовать <code>ngModel</code>
|
|
40
|
+
</p>
|
|
27
41
|
<p>Также в слайдере есть возможность настройки "шага". Это происходит с помощью передачи в него свойства step</p>
|
|
28
42
|
</div>
|
|
29
43
|
<h3>Свойства</h3>
|
|
30
44
|
<table>
|
|
31
45
|
<thead>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
<tr>
|
|
47
|
+
<th>Свойство</th>
|
|
48
|
+
<th>Tип</th>
|
|
49
|
+
<th>Описание</th>
|
|
50
|
+
</tr>
|
|
37
51
|
</thead>
|
|
38
52
|
<tbody>
|
|
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
|
-
|
|
53
|
+
<tr>
|
|
54
|
+
<td class="text-align-center">
|
|
55
|
+
<p>step</p>
|
|
56
|
+
</td>
|
|
57
|
+
<td class="text-align-center">
|
|
58
|
+
<code>number</code>
|
|
59
|
+
</td>
|
|
60
|
+
<td class="text-align-center">
|
|
61
|
+
<p>Выбор значения, на которое ползунок сдвигается при его перемещении</p>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td class="text-align-center">
|
|
66
|
+
<p>min</p>
|
|
67
|
+
</td>
|
|
68
|
+
<td class="text-align-center">
|
|
69
|
+
<code>number</code>
|
|
70
|
+
</td>
|
|
71
|
+
<td class="text-align-center">
|
|
72
|
+
<p>Минимальное значение слайдера</p>
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td class="text-align-center">
|
|
77
|
+
<p>max</p>
|
|
78
|
+
</td>
|
|
79
|
+
<td class="text-align-center">
|
|
80
|
+
<code>number</code>
|
|
81
|
+
</td>
|
|
82
|
+
<td class="text-align-center">
|
|
83
|
+
<p>Максимальное значение слайдера</p>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
72
86
|
</tbody>
|
|
73
87
|
</table>
|
|
74
88
|
</div>
|
|
@@ -1,135 +1,193 @@
|
|
|
1
|
-
import {Meta} from
|
|
2
|
-
import PropertyGridStories from
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
import PropertyGridStories from '../src/component/property-grid/PropertyGrid.stories';
|
|
3
3
|
|
|
4
|
-
<Meta of={PropertyGridStories}/>
|
|
4
|
+
<Meta of={PropertyGridStories} />
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="column gap-24">
|
|
7
7
|
<h1>Property grid</h1>
|
|
8
|
-
<div class=
|
|
9
|
-
<p>
|
|
8
|
+
<div class="column">
|
|
9
|
+
<p>
|
|
10
|
+
Property grid (сетка свойств) - это элемент пользовательского интерфейса в программировании, который предоставляет
|
|
11
|
+
способ отображения и редактирования свойств объектов. Это особенно полезно при создании приложений с графическим
|
|
12
|
+
интерфейсом, где пользователь может настраивать параметры объектов или элементов интерфейса.
|
|
13
|
+
</p>
|
|
10
14
|
</div>
|
|
11
15
|
<h3>Как использовать</h3>
|
|
12
|
-
<div class=
|
|
13
|
-
<p
|
|
16
|
+
<div class="column">
|
|
17
|
+
<p>
|
|
18
|
+
Для начала нужно создать <code> <teta-property-grid></code>.
|
|
19
|
+
</p>
|
|
14
20
|
<p>Для создания сетки свойств в компонент необходимо передать свойства:</p>
|
|
15
21
|
<ul>
|
|
16
|
-
<li
|
|
17
|
-
|
|
22
|
+
<li>
|
|
23
|
+
<code>item</code> - данные для формирования сетки.
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<code>columns</code> - каркас данных для сетки.
|
|
27
|
+
</li>
|
|
18
28
|
</ul>
|
|
19
|
-
<p
|
|
29
|
+
<p>
|
|
30
|
+
<code>columns</code> принимает в себя массив объектов типа <code>TableColumn</code>. Он состоит из:
|
|
31
|
+
</p>
|
|
20
32
|
<ul>
|
|
21
|
-
<li
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<li
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<li
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<li
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<li
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
<li>
|
|
34
|
+
<code>width</code> - ширина блока
|
|
35
|
+
</li>
|
|
36
|
+
<li>
|
|
37
|
+
<code>filterType</code> - тип поля (select,datepicker,string и т.д.)
|
|
38
|
+
</li>
|
|
39
|
+
<li>
|
|
40
|
+
<code>unit</code> - единицы измерения
|
|
41
|
+
</li>
|
|
42
|
+
<li>
|
|
43
|
+
<code>unitMeasureParameterId</code> - id измеряемого параметра{' '}
|
|
44
|
+
</li>
|
|
45
|
+
<li>
|
|
46
|
+
<code>unitId</code> - id единицы измерения
|
|
47
|
+
</li>
|
|
48
|
+
<li>
|
|
49
|
+
<code>editable</code> - флаг включения/отключения редактирования поля
|
|
50
|
+
</li>
|
|
51
|
+
<li>
|
|
52
|
+
<code>defaultValue</code> - данные которые будут выводится при отсутствии данных.
|
|
53
|
+
</li>
|
|
54
|
+
<li>
|
|
55
|
+
<code>maxValue</code> - максимальное значение в поле
|
|
56
|
+
</li>
|
|
57
|
+
<li>
|
|
58
|
+
<code>minValue</code> - минимальное значение в поле
|
|
59
|
+
</li>
|
|
60
|
+
<li>
|
|
61
|
+
<code>required</code> - флаг обязательности ввода данных в поле
|
|
62
|
+
</li>
|
|
63
|
+
<li>
|
|
64
|
+
<code>validators</code> - валидаторы для полей
|
|
65
|
+
</li>
|
|
66
|
+
<li>
|
|
67
|
+
<code>name</code> - название поля
|
|
68
|
+
</li>
|
|
69
|
+
<li>
|
|
70
|
+
<code>caption</code> - описание поля
|
|
71
|
+
</li>
|
|
72
|
+
<li>
|
|
73
|
+
<code>hint</code> - указанный текст появляется при наведении описание поля.
|
|
74
|
+
</li>
|
|
75
|
+
<li>
|
|
76
|
+
<code>strict</code> - строгое сравнение{' '}
|
|
77
|
+
</li>
|
|
36
78
|
</ul>
|
|
37
|
-
<p
|
|
38
|
-
|
|
79
|
+
<p>
|
|
80
|
+
При выборе листа в качестве типа поля, то необходимо добавить свойство <code>dict</code>, которое отвечает за
|
|
81
|
+
отображаемые элементы списка.
|
|
82
|
+
</p>
|
|
83
|
+
<p>
|
|
84
|
+
Также можно сделать кастомное отображение сетки по названию свойства в форме при помощи директивы{' '}
|
|
85
|
+
<code>tetaPropertyGridItemDescription</code>.
|
|
86
|
+
</p>
|
|
39
87
|
</div>
|
|
40
88
|
<h3>Пример кода кастомной сетки</h3>
|
|
41
|
-
<p
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
89
|
+
<p>
|
|
90
|
+
<pre>
|
|
91
|
+
<code>
|
|
92
|
+
<teta-property-grid class="scrollable padding-h-3 row_auto" style="width: 100%"
|
|
93
|
+
(controlValueChange)="save($event)" [item]="item" [horizontal]="true" [columns]="columns" [dict]="dict">
|
|
94
|
+
<ng-template [tetaPropertyGridItemDescription]="'ram'" let-control>
|
|
95
|
+
<input [formControl]="control" class="input" /> </ng-template>
|
|
96
|
+
</teta-property-grid>
|
|
97
|
+
</code>
|
|
98
|
+
</pre>
|
|
99
|
+
</p>
|
|
46
100
|
<h3>Свойства</h3>
|
|
47
101
|
<table>
|
|
48
102
|
<thead>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
103
|
+
<tr>
|
|
104
|
+
<th>Свойство</th>
|
|
105
|
+
<th>Tип</th>
|
|
106
|
+
<th>Описание</th>
|
|
107
|
+
</tr>
|
|
54
108
|
</thead>
|
|
55
109
|
<tbody>
|
|
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
|
-
|
|
110
|
+
<tr>
|
|
111
|
+
<td class="text-align-center">
|
|
112
|
+
<p>item</p>
|
|
113
|
+
</td>
|
|
114
|
+
<td class="text-align-center">
|
|
115
|
+
<code>any</code>
|
|
116
|
+
</td>
|
|
117
|
+
<td class="text-align-center">
|
|
118
|
+
<p>Данные для формирования сетки.</p>
|
|
119
|
+
</td>
|
|
120
|
+
</tr>
|
|
121
|
+
<tr>
|
|
122
|
+
<td class="text-align-center">
|
|
123
|
+
<p>columns</p>
|
|
124
|
+
</td>
|
|
125
|
+
<td class="text-align-center">
|
|
126
|
+
<code>TableColumns[]</code>
|
|
127
|
+
</td>
|
|
128
|
+
<td class="text-align-center">
|
|
129
|
+
<p>Шаблон сетки</p>
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
<tr>
|
|
133
|
+
<td class="text-align-center">
|
|
134
|
+
<p>horizontal</p>
|
|
135
|
+
</td>
|
|
136
|
+
<td class="text-align-center">
|
|
137
|
+
<code>boolean</code>
|
|
138
|
+
</td>
|
|
139
|
+
<td class="text-align-center">
|
|
140
|
+
<p>Флаг для отображения сетки горизотально</p>
|
|
141
|
+
</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td class="text-align-center">
|
|
145
|
+
<p>hideNonEditable</p>
|
|
146
|
+
</td>
|
|
147
|
+
<td class="text-align-center">
|
|
148
|
+
<code>boolean</code>
|
|
149
|
+
</td>
|
|
150
|
+
<td class="text-align-center">
|
|
151
|
+
<p>Флаг для скрытия нередактируемых полей</p>
|
|
152
|
+
</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr>
|
|
155
|
+
<td class="text-align-center">
|
|
156
|
+
<p>decimalPart</p>
|
|
157
|
+
</td>
|
|
158
|
+
<td class="text-align-center">
|
|
159
|
+
<code>number</code>
|
|
160
|
+
</td>
|
|
161
|
+
<td class="text-align-center">
|
|
162
|
+
<p>Количество знаков после запятой</p>
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
<tr>
|
|
166
|
+
<td class="text-align-center">
|
|
167
|
+
<p>controlValueChange</p>
|
|
168
|
+
</td>
|
|
169
|
+
<td class="text-align-center">
|
|
170
|
+
<code>function</code>
|
|
171
|
+
</td>
|
|
172
|
+
<td class="text-align-center">
|
|
173
|
+
<p>Функция,которая срабатывает при изменении поля сетки.</p>
|
|
174
|
+
</td>
|
|
175
|
+
</tr>
|
|
176
|
+
<tr>
|
|
177
|
+
<td class="text-align-center">
|
|
178
|
+
<p>dict</p>
|
|
179
|
+
</td>
|
|
180
|
+
<td class="text-align-center">
|
|
181
|
+
<code>any[]</code>
|
|
182
|
+
</td>
|
|
183
|
+
<td class="text-align-center">
|
|
184
|
+
<p>
|
|
185
|
+
Массив выбираемых элементов. Каждое свойство имеет название, которое должно совпадать с соответствующим
|
|
186
|
+
свойством в <code>data</code>. В качестве значения принимает массив объектов id,name.Требуется если вы
|
|
187
|
+
добавляете сетку типа лист.
|
|
188
|
+
</p>
|
|
189
|
+
</td>
|
|
190
|
+
</tr>
|
|
133
191
|
</tbody>
|
|
134
192
|
</table>
|
|
135
193
|
</div>
|