ngx-register-base 1.3.1 → 1.3.3
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/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +129 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +8 -0
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +249 -0
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +80 -0
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +10 -0
- package/esm2022/lib/components/column-settings/index.mjs +3 -0
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +7 -0
- package/esm2022/lib/components/divider/divider.component.mjs +16 -0
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +19 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +31 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +57 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +110 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +130 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +89 -0
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +41 -0
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +45 -0
- package/esm2022/lib/components/filters/index.mjs +3 -0
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +155 -0
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +39 -0
- package/esm2022/lib/components/index.mjs +11 -0
- package/esm2022/lib/components/inputs/index.mjs +20 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +166 -0
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +45 -0
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +12 -0
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +76 -0
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +60 -0
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +86 -0
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +95 -0
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +50 -0
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +62 -0
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +309 -0
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +233 -0
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +21 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +28 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +3 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +105 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +10 -0
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +40 -0
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +38 -0
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +37 -0
- package/esm2022/lib/components/inputs/param-tree/index.mjs +8 -0
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +207 -0
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +116 -0
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +3 -0
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +2 -0
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +9 -0
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +80 -0
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +85 -0
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +15 -0
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +12 -0
- package/esm2022/lib/components/menu-constructor/index.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +559 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +3 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +3 -0
- package/esm2022/lib/components/page-menu/index.mjs +6 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +9 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +2 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +4 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +3 -0
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +275 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +159 -0
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +2 -0
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +4 -0
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +19 -0
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +18 -0
- package/esm2022/lib/components/register-table/index.mjs +4 -0
- package/esm2022/lib/components/register-table/model/schema.mjs +10 -0
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +33 -0
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +17 -0
- package/esm2022/lib/components/register-table/register-table.component.mjs +544 -0
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +18 -0
- package/esm2022/lib/components/search-input/search-input.component.mjs +28 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +48 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +19 -0
- package/esm2022/lib/consts/date-time.consts.mjs +2 -0
- package/esm2022/lib/consts/index.mjs +4 -0
- package/esm2022/lib/consts/inputs.consts.mjs +4 -0
- package/esm2022/lib/consts/month.consts.mjs +77 -0
- package/esm2022/lib/consts/params.consts.mjs +2 -0
- package/esm2022/lib/consts/register-base.consts.mjs +26 -0
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +8 -0
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +81 -0
- package/esm2022/lib/core/form-group-wrapper/index.mjs +2 -0
- package/esm2022/lib/core/index.mjs +5 -0
- package/esm2022/lib/core/input-control/index.mjs +2 -0
- package/esm2022/lib/core/input-control/input-control.mjs +11 -0
- package/esm2022/lib/core/param/index.mjs +6 -0
- package/esm2022/lib/core/param/param-base.mjs +215 -0
- package/esm2022/lib/core/param/param-date-base.mjs +26 -0
- package/esm2022/lib/core/param/param-select-base.mjs +114 -0
- package/esm2022/lib/core/param/param-text-base.mjs +25 -0
- package/esm2022/lib/core/param/param.tokens.mjs +4 -0
- package/esm2022/lib/core/register-base/index.mjs +3 -0
- package/esm2022/lib/core/register-base/register-base.mjs +575 -0
- package/esm2022/lib/core/register-base/register-base.store.mjs +43 -0
- package/esm2022/lib/directives/date/date-time.types.mjs +34 -0
- package/esm2022/lib/directives/date/format-date.pipe.mjs +33 -0
- package/esm2022/lib/directives/index.mjs +3 -0
- package/esm2022/lib/directives/number/number-only.directive.mjs +41 -0
- package/esm2022/lib/directives/sticky/index.mjs +3 -0
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +169 -0
- package/esm2022/lib/services/date-time.service.mjs +314 -0
- package/esm2022/lib/services/dialog/dialog.service.mjs +53 -0
- package/esm2022/lib/services/dialog/dialog.types.mjs +2 -0
- package/esm2022/lib/services/dialog/index.mjs +3 -0
- package/esm2022/lib/services/dom-intersection.service.mjs +22 -0
- package/esm2022/lib/services/filter/filters-state.service.mjs +65 -0
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +82 -0
- package/esm2022/lib/services/filter/filters.service.mjs +23 -0
- package/esm2022/lib/services/index.mjs +8 -0
- package/esm2022/lib/services/inputs-state.service.mjs +130 -0
- package/esm2022/lib/services/inputs.service.mjs +88 -0
- package/esm2022/lib/services/key-pressed.service.mjs +37 -0
- package/esm2022/lib/services/resize-window-observer.service.mjs +33 -0
- package/esm2022/lib/services/selected-objects-state.service.mjs +123 -0
- package/esm2022/lib/store/fast-query-store.service.mjs +110 -0
- package/esm2022/lib/store/index.mjs +2 -0
- package/esm2022/lib/types/event.types.mjs +2 -0
- package/esm2022/lib/types/hasura.types.mjs +2 -0
- package/esm2022/lib/types/index.mjs +7 -0
- package/esm2022/lib/types/inputs.types.mjs +19 -0
- package/esm2022/lib/types/params.types.mjs +2 -0
- package/esm2022/lib/types/register-base.types.mjs +6 -0
- package/esm2022/lib/types/sub-types.mjs +2 -0
- package/esm2022/lib/types/user-profile.types.mjs +2 -0
- package/esm2022/lib/utils/functions.mjs +10 -0
- package/esm2022/lib/utils/get-url-segment.mjs +35 -0
- package/esm2022/lib/utils/index.mjs +5 -0
- package/esm2022/lib/utils/prizm.shared.module.mjs +284 -0
- package/esm2022/lib/utils/rxjs.mjs +28 -0
- package/esm2022/lib/utils/select-all-utils.mjs +11 -0
- package/esm2022/ngx-register-base.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/ngx-register-base.mjs +7487 -0
- package/fesm2022/ngx-register-base.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +33 -0
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +7 -0
- package/lib/components/column-settings/column-settings.component.d.ts +80 -0
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +24 -0
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +8 -0
- package/lib/components/column-settings/types/column-settings.types.d.ts +22 -0
- package/lib/components/divider/divider.component.d.ts +6 -0
- package/lib/components/filter-button/filter-button.component.d.ts +8 -0
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +14 -0
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +25 -0
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +39 -0
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +41 -0
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +20 -0
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +15 -0
- package/lib/components/filters/components/filter-list.module.d.ts +15 -0
- package/lib/components/filters/register-table-filter.component.d.ts +40 -0
- package/lib/components/filters/register-table-filter.module.d.ts +13 -0
- package/lib/components/inputs/inputs.module.d.ts +31 -0
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +19 -0
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +6 -0
- package/lib/components/inputs/param-date/param-date.component.d.ts +20 -0
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +26 -0
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +25 -0
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +28 -0
- package/lib/components/inputs/param-month/param-month.component.d.ts +18 -0
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +21 -0
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +46 -0
- package/lib/components/inputs/param-select/param-select.component.d.ts +34 -0
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +8 -0
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +2 -0
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +19 -0
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +8 -0
- package/lib/components/inputs/param-text/param-text.component.d.ts +10 -0
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +10 -0
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +9 -0
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +7 -0
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +41 -0
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +37 -0
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +10 -0
- package/{src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts → lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts} +1 -2
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +32 -0
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +7 -0
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +31 -0
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +30 -0
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +6 -0
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +5 -0
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +113 -0
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +24 -0
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +36 -0
- package/{src/lib/components/menu-constructor/store/sproc-menu.tokens.ts → lib/components/menu-constructor/store/sproc-menu.tokens.d.ts} +1 -4
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +7 -0
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +30 -0
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +3 -0
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +36 -0
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +48 -0
- package/lib/components/paginator/paginator.component.d.ts +52 -0
- package/lib/components/paginator/types/paginator.types.d.ts +15 -0
- package/lib/components/register-table/consts/register-table.consts.d.ts +3 -0
- package/lib/components/register-table/directives/cell-template.directive.d.ts +9 -0
- package/lib/components/register-table/directives/header-template.directive.d.ts +9 -0
- package/lib/components/register-table/model/schema.d.ts +52 -0
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +8 -0
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +7 -0
- package/lib/components/register-table/register-table.component.d.ts +165 -0
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +9 -0
- package/lib/components/search-input/search-input.component.d.ts +11 -0
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +14 -0
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +9 -0
- package/lib/consts/date-time.consts.d.ts +1 -0
- package/lib/consts/index.d.ts +3 -0
- package/lib/consts/inputs.consts.d.ts +4 -0
- package/lib/consts/month.consts.d.ts +49 -0
- package/lib/consts/params.consts.d.ts +1 -0
- package/lib/consts/register-base.consts.d.ts +19 -0
- package/lib/core/form-group-wrapper/errors-consts.d.ts +5 -0
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +15 -0
- package/lib/core/input-control/input-control.d.ts +11 -0
- package/lib/core/param/param-base.d.ts +68 -0
- package/lib/core/param/param-date-base.d.ts +18 -0
- package/lib/core/param/param-select-base.d.ts +42 -0
- package/lib/core/param/param-text-base.d.ts +15 -0
- package/{src/lib/core/param/param.tokens.ts → lib/core/param/param.tokens.d.ts} +1 -2
- package/lib/core/register-base/register-base.d.ts +168 -0
- package/lib/core/register-base/register-base.store.d.ts +35 -0
- package/lib/directives/date/date-time.types.d.ts +32 -0
- package/lib/directives/date/format-date.pipe.d.ts +10 -0
- package/lib/directives/number/number-only.directive.d.ts +10 -0
- package/lib/directives/sticky/sticky-relative.directive.d.ts +13 -0
- package/lib/directives/sticky/sticky-relative.service.d.ts +15 -0
- package/lib/directives/sticky/sticky.directive.d.ts +27 -0
- package/lib/services/date-time.service.d.ts +80 -0
- package/lib/services/dialog/dialog.service.d.ts +22 -0
- package/{src/lib/services/dialog/dialog.types.ts → lib/services/dialog/dialog.types.d.ts} +4 -8
- package/lib/services/dom-intersection.service.d.ts +8 -0
- package/lib/services/filter/filters-state.service.d.ts +21 -0
- package/lib/services/filter/filters-transmit.service.d.ts +28 -0
- package/lib/services/filter/filters.service.d.ts +12 -0
- package/lib/services/inputs-state.service.d.ts +57 -0
- package/lib/services/inputs.service.d.ts +28 -0
- package/lib/services/key-pressed.service.d.ts +15 -0
- package/lib/services/resize-window-observer.service.d.ts +11 -0
- package/lib/services/selected-objects-state.service.d.ts +47 -0
- package/lib/store/fast-query-store.service.d.ts +19 -0
- package/{src/lib/types/event.types.ts → lib/types/event.types.d.ts} +1 -1
- package/lib/types/hasura.types.d.ts +35 -0
- package/lib/types/inputs.types.d.ts +41 -0
- package/lib/types/params.types.d.ts +27 -0
- package/lib/types/register-base.types.d.ts +123 -0
- package/lib/types/sub-types.d.ts +8 -0
- package/lib/types/user-profile.types.d.ts +17 -0
- package/lib/utils/functions.d.ts +3 -0
- package/lib/utils/get-url-segment.d.ts +7 -0
- package/lib/utils/prizm.shared.module.d.ts +14 -0
- package/lib/utils/rxjs.d.ts +10 -0
- package/lib/utils/select-all-utils.d.ts +8 -0
- package/package.json +15 -12
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +2 -0
- package/schematics/ng-update/replace-menu-state-token/index.js +29 -0
- package/schematics/ng-update/replace-menu-state-token/index.js.map +1 -0
- package/schematics/ng-update/update-prefix/index.d.ts +2 -0
- package/schematics/ng-update/update-prefix/index.js +33 -0
- package/schematics/ng-update/update-prefix/index.js.map +1 -0
- package/schematics/utils/{utils.ts → utils.d.ts} +2 -9
- package/schematics/utils/utils.js +25 -0
- package/schematics/utils/utils.js.map +1 -0
- package/ng-package.json +0 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +0 -33
- package/schematics/ng-update/update-prefix/index.ts +0 -38
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +0 -91
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +0 -67
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +0 -176
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +0 -8
- package/src/lib/components/column-settings/column-settings.component.html +0 -160
- package/src/lib/components/column-settings/column-settings.component.less +0 -131
- package/src/lib/components/column-settings/column-settings.component.ts +0 -352
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +0 -65
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +0 -79
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +0 -114
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +0 -9
- package/src/lib/components/column-settings/types/column-settings.types.ts +0 -26
- package/src/lib/components/divider/divider.component.html +0 -4
- package/src/lib/components/divider/divider.component.less +0 -10
- package/src/lib/components/divider/divider.component.ts +0 -12
- package/src/lib/components/filter-button/filter-button.component.html +0 -20
- package/src/lib/components/filter-button/filter-button.component.less +0 -41
- package/src/lib/components/filter-button/filter-button.component.ts +0 -18
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +0 -22
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +0 -23
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +0 -31
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +0 -37
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +0 -66
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +0 -147
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +0 -45
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +0 -114
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +0 -44
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +0 -167
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +0 -97
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +0 -18
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +0 -55
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +0 -69
- package/src/lib/components/filters/components/filter-list.module.ts +0 -29
- package/src/lib/components/filters/register-table-filter.component.html +0 -53
- package/src/lib/components/filters/register-table-filter.component.less +0 -17
- package/src/lib/components/filters/register-table-filter.component.ts +0 -167
- package/src/lib/components/filters/register-table-filter.module.ts +0 -22
- package/src/lib/components/inputs/inputs.module.ts +0 -104
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +0 -49
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +0 -70
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +0 -52
- package/src/lib/components/inputs/param-custom/param-custom.component.html +0 -1
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +0 -9
- package/src/lib/components/inputs/param-date/param-date.component.html +0 -55
- package/src/lib/components/inputs/param-date/param-date.component.less +0 -67
- package/src/lib/components/inputs/param-date/param-date.component.ts +0 -77
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +0 -45
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +0 -75
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +0 -67
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +0 -70
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +0 -72
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +0 -101
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +0 -67
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +0 -103
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +0 -128
- package/src/lib/components/inputs/param-month/param-month.component.html +0 -46
- package/src/lib/components/inputs/param-month/param-month.component.less +0 -72
- package/src/lib/components/inputs/param-month/param-month.component.ts +0 -55
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +0 -39
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +0 -71
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +0 -76
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +0 -84
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +0 -108
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +0 -448
- package/src/lib/components/inputs/param-select/param-select.component.html +0 -106
- package/src/lib/components/inputs/param-select/param-select.component.less +0 -26
- package/src/lib/components/inputs/param-select/param-select.component.ts +0 -318
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +0 -8
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +0 -53
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +0 -13
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +0 -29
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +0 -19
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +0 -76
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +0 -134
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +0 -8
- package/src/lib/components/inputs/param-text/param-text.component.html +0 -59
- package/src/lib/components/inputs/param-text/param-text.component.less +0 -33
- package/src/lib/components/inputs/param-text/param-text.component.ts +0 -36
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +0 -61
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +0 -21
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +0 -33
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +0 -40
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +0 -69
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +0 -14
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +0 -59
- package/src/lib/components/inputs/param-tree/param-tree.component.html +0 -51
- package/src/lib/components/inputs/param-tree/param-tree.component.less +0 -3
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +0 -282
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +0 -176
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +0 -18
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +0 -39
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +0 -18
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +0 -78
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +0 -109
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +0 -89
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +0 -54
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +0 -56
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +0 -91
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +0 -5
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +0 -13
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +0 -4
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +0 -11
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +0 -95
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +0 -183
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +0 -687
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +0 -32
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +0 -46
- package/src/lib/components/page-menu/README.md +0 -60
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +0 -8
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +0 -35
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +0 -5
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +0 -42
- package/src/lib/components/page-menu/sproc-page-menu.component.html +0 -166
- package/src/lib/components/page-menu/sproc-page-menu.component.less +0 -228
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +0 -337
- package/src/lib/components/paginator/paginator.component.html +0 -97
- package/src/lib/components/paginator/paginator.component.less +0 -101
- package/src/lib/components/paginator/paginator.component.ts +0 -192
- package/src/lib/components/paginator/types/paginator.types.ts +0 -16
- package/src/lib/components/register-table/consts/register-table.consts.ts +0 -3
- package/src/lib/components/register-table/directives/cell-template.directive.ts +0 -11
- package/src/lib/components/register-table/directives/header-template.directive.ts +0 -11
- package/src/lib/components/register-table/model/schema.ts +0 -62
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +0 -28
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +0 -11
- package/src/lib/components/register-table/register-table.component.html +0 -257
- package/src/lib/components/register-table/register-table.component.less +0 -151
- package/src/lib/components/register-table/register-table.component.ts +0 -743
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +0 -14
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +0 -26
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +0 -15
- package/src/lib/components/search-input/search-input.component.html +0 -6
- package/src/lib/components/search-input/search-input.component.less +0 -17
- package/src/lib/components/search-input/search-input.component.ts +0 -31
- package/src/lib/components/sliding-panel/sliding-panel.component.html +0 -13
- package/src/lib/components/sliding-panel/sliding-panel.component.less +0 -112
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +0 -36
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +0 -11
- package/src/lib/consts/date-time.consts.ts +0 -1
- package/src/lib/consts/index.ts +0 -8
- package/src/lib/consts/inputs.consts.ts +0 -9
- package/src/lib/consts/month.consts.ts +0 -82
- package/src/lib/consts/params.consts.ts +0 -1
- package/src/lib/consts/register-base.consts.ts +0 -40
- package/src/lib/core/form-group-wrapper/errors-consts.ts +0 -6
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +0 -109
- package/src/lib/core/input-control/input-control.ts +0 -30
- package/src/lib/core/param/param-base.ts +0 -262
- package/src/lib/core/param/param-date-base.ts +0 -30
- package/src/lib/core/param/param-select-base.ts +0 -118
- package/src/lib/core/param/param-text-base.ts +0 -23
- package/src/lib/core/register-base/register-base.store.ts +0 -84
- package/src/lib/core/register-base/register-base.ts +0 -854
- package/src/lib/directives/date/date-time.types.ts +0 -36
- package/src/lib/directives/date/format-date.pipe.ts +0 -28
- package/src/lib/directives/number/number-only.directive.ts +0 -36
- package/src/lib/directives/sticky/sticky-relative.directive.ts +0 -30
- package/src/lib/directives/sticky/sticky-relative.service.ts +0 -34
- package/src/lib/directives/sticky/sticky.directive.ts +0 -189
- package/src/lib/services/date-time.service.ts +0 -399
- package/src/lib/services/dialog/dialog.service.ts +0 -62
- package/src/lib/services/dom-intersection.service.ts +0 -23
- package/src/lib/services/filter/filters-state.service.ts +0 -83
- package/src/lib/services/filter/filters-transmit.service.ts +0 -105
- package/src/lib/services/filter/filters.service.ts +0 -21
- package/src/lib/services/inputs-state.service.ts +0 -157
- package/src/lib/services/inputs.service.ts +0 -114
- package/src/lib/services/key-pressed.service.ts +0 -40
- package/src/lib/services/resize-window-observer.service.ts +0 -37
- package/src/lib/services/selected-objects-state.service.ts +0 -159
- package/src/lib/store/fast-query-store.service.ts +0 -132
- package/src/lib/types/hasura.types.ts +0 -41
- package/src/lib/types/inputs.types.ts +0 -63
- package/src/lib/types/params.types.ts +0 -42
- package/src/lib/types/register-base.types.ts +0 -161
- package/src/lib/types/sub-types.ts +0 -15
- package/src/lib/types/user-profile.types.ts +0 -18
- package/src/lib/utils/functions.ts +0 -11
- package/src/lib/utils/get-url-segment.ts +0 -46
- package/src/lib/utils/prizm.shared.module.ts +0 -176
- package/src/lib/utils/rxjs.ts +0 -33
- package/src/lib/utils/select-all-utils.ts +0 -16
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.schematics.json +0 -26
- package/tsconfig.spec.json +0 -15
- /package/{src/lib/components/column-settings/index.ts → lib/components/column-settings/index.d.ts} +0 -0
- /package/{src/lib/components/filters/index.ts → lib/components/filters/index.d.ts} +0 -0
- /package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/index.ts → lib/components/inputs/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-switcher-date-time-range/index.ts → lib/components/inputs/param-switcher-date-time-range/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-tree/index.ts → lib/components/inputs/param-tree/index.d.ts} +0 -0
- /package/{src/lib/components/menu-constructor/index.ts → lib/components/menu-constructor/index.d.ts} +0 -0
- /package/{src/lib/components/page-menu/index.ts → lib/components/page-menu/index.d.ts} +0 -0
- /package/{src/lib/components/register-table/index.ts → lib/components/register-table/index.d.ts} +0 -0
- /package/{src/lib/core/form-group-wrapper/index.ts → lib/core/form-group-wrapper/index.d.ts} +0 -0
- /package/{src/lib/core/index.ts → lib/core/index.d.ts} +0 -0
- /package/{src/lib/core/input-control/index.ts → lib/core/input-control/index.d.ts} +0 -0
- /package/{src/lib/core/param/index.ts → lib/core/param/index.d.ts} +0 -0
- /package/{src/lib/core/register-base/index.ts → lib/core/register-base/index.d.ts} +0 -0
- /package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
- /package/{src/lib/directives/sticky/index.ts → lib/directives/sticky/index.d.ts} +0 -0
- /package/{src/lib/services/dialog/index.ts → lib/services/dialog/index.d.ts} +0 -0
- /package/{src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
- /package/{src/lib/store/index.ts → lib/store/index.d.ts} +0 -0
- /package/{src/lib/types/index.ts → lib/types/index.d.ts} +0 -0
- /package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
<button
|
|
2
|
-
tuiButton
|
|
3
|
-
class="column-settings__main-button"
|
|
4
|
-
appearance="outline-grayscale"
|
|
5
|
-
size="m"
|
|
6
|
-
[disabled]="disabled()"
|
|
7
|
-
(click)="toggle()"
|
|
8
|
-
>
|
|
9
|
-
<tui-icon class="column-settings__icon gray" [icon]="iconSettings"></tui-icon>
|
|
10
|
-
</button>
|
|
11
|
-
|
|
12
|
-
<tui-drawer
|
|
13
|
-
*tuiPopup="openSettings()"
|
|
14
|
-
class="column-settings__popup"
|
|
15
|
-
direction="right"
|
|
16
|
-
[overlay]="true"
|
|
17
|
-
(click.self)="close()"
|
|
18
|
-
>
|
|
19
|
-
<header class="header" [style.height.px]="columnSettingsHeaderHeightPx">
|
|
20
|
-
<span class="header__title">Настройка таблицы</span>
|
|
21
|
-
<div class="header__buttons">
|
|
22
|
-
<button
|
|
23
|
-
tuiIconButton
|
|
24
|
-
class="reset-button"
|
|
25
|
-
appearance="flat"
|
|
26
|
-
size="m"
|
|
27
|
-
(click)="openResetDialog()"
|
|
28
|
-
>
|
|
29
|
-
<tui-icon class="column-settings__icon" [icon]="iconEraser"></tui-icon>
|
|
30
|
-
</button>
|
|
31
|
-
<sproc-divider layout="vertical"></sproc-divider>
|
|
32
|
-
<button tuiIconButton class="close-button" appearance="flat" size="m" (click)="close()">
|
|
33
|
-
<tui-icon class="column-settings__icon" [icon]="iconCancelClose"></tui-icon>
|
|
34
|
-
</button>
|
|
35
|
-
</div>
|
|
36
|
-
</header>
|
|
37
|
-
<div
|
|
38
|
-
cdkDropListGroup
|
|
39
|
-
class="column-container tui__t-content--no-default-padding"
|
|
40
|
-
[style.height.px]="columnListHeightPx()"
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
cdkDropList
|
|
44
|
-
class="column-list"
|
|
45
|
-
[cdkDropListData]="fixedLeftColumns()"
|
|
46
|
-
(cdkDropListDropped)="dropIntoFixedLeft($event)"
|
|
47
|
-
[cdkDropListEnterPredicate]="fixedLeftListEnterPredicate()"
|
|
48
|
-
>
|
|
49
|
-
@if (showLeftListHeader()) {
|
|
50
|
-
<div class="column-list__label-container">
|
|
51
|
-
<span class="subtitle" [style.height.px]="columnSettingsSubtitleHeightPx">
|
|
52
|
-
Фиксированные колонки слева
|
|
53
|
-
</span>
|
|
54
|
-
</div>
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
<tui-scrollbar
|
|
58
|
-
[style.max-height.px]="scrollBoxFixedColumnsMaxHeightPx"
|
|
59
|
-
(waResizeObserver)="onFixedScrollbarResize($event)"
|
|
60
|
-
>
|
|
61
|
-
@for (fixedLeftColumn of fixedLeftColumns(); track fixedLeftColumn.id) {
|
|
62
|
-
<sproc-column-settings-template
|
|
63
|
-
[column]="fixedLeftColumn"
|
|
64
|
-
></sproc-column-settings-template>
|
|
65
|
-
}
|
|
66
|
-
</tui-scrollbar>
|
|
67
|
-
</div>
|
|
68
|
-
<sproc-divider></sproc-divider>
|
|
69
|
-
<div
|
|
70
|
-
cdkDropList
|
|
71
|
-
class="column-list"
|
|
72
|
-
[style.padding-bottom.px]="columnListBottomPaddingPx"
|
|
73
|
-
[cdkDropListData]="columns()"
|
|
74
|
-
(cdkDropListDropped)="dropIntoColumns($event)"
|
|
75
|
-
[cdkDropListEnterPredicate]="columnsListEnterPredicate()"
|
|
76
|
-
>
|
|
77
|
-
<div class="column-list__label-container">
|
|
78
|
-
<span
|
|
79
|
-
class="subtitle subtitle--flex-grow-1"
|
|
80
|
-
[style.height.px]="columnSettingsSubtitleHeightPx"
|
|
81
|
-
>{{ columnsListHeader() }}</span
|
|
82
|
-
>
|
|
83
|
-
<span class="show-all" (click)="showAllColumns()">Показать все</span>
|
|
84
|
-
</div>
|
|
85
|
-
<tui-scrollbar [style.max-height.px]="scrollBoxColumnsMaxHeightPx()">
|
|
86
|
-
@for (column of columns(); track column.id) {
|
|
87
|
-
<sproc-column-settings-template [column]="column"></sproc-column-settings-template>
|
|
88
|
-
}
|
|
89
|
-
</tui-scrollbar>
|
|
90
|
-
</div>
|
|
91
|
-
@if (showFixedRightList()) {
|
|
92
|
-
<sproc-divider></sproc-divider>
|
|
93
|
-
<div
|
|
94
|
-
cdkDropList
|
|
95
|
-
class="column-list"
|
|
96
|
-
[style.padding-bottom.px]="columnListBottomPaddingPx"
|
|
97
|
-
[cdkDropListData]="fixedRightColumns()"
|
|
98
|
-
(cdkDropListDropped)="dropIntoColumns($event)"
|
|
99
|
-
[cdkDropListEnterPredicate]="fixedRightListEnterPredicate()"
|
|
100
|
-
>
|
|
101
|
-
@if (showRightListHeader()) {
|
|
102
|
-
<div class="column-list__label-container">
|
|
103
|
-
<span
|
|
104
|
-
class="subtitle subtitle--flex-grow-1"
|
|
105
|
-
[style.height.px]="columnSettingsSubtitleHeightPx"
|
|
106
|
-
>Фиксированные колонки справа</span
|
|
107
|
-
>
|
|
108
|
-
</div>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
<tui-scrollbar
|
|
112
|
-
[style.max-height.px]="scrollBoxFixedColumnsMaxHeightPx"
|
|
113
|
-
(waResizeObserver)="onRightFixedScrollbarResize($event)"
|
|
114
|
-
>
|
|
115
|
-
@for (column of fixedRightColumns(); track column.id) {
|
|
116
|
-
<sproc-column-settings-template [column]="column"></sproc-column-settings-template>
|
|
117
|
-
}
|
|
118
|
-
</tui-scrollbar>
|
|
119
|
-
</div>
|
|
120
|
-
}
|
|
121
|
-
</div>
|
|
122
|
-
<footer class="footer" [style.height.px]="columnSettingsFooterHeightPx">
|
|
123
|
-
<button
|
|
124
|
-
tuiButton
|
|
125
|
-
class="save-button"
|
|
126
|
-
size="m"
|
|
127
|
-
appearance="primary"
|
|
128
|
-
(click)="saveTableSettings()"
|
|
129
|
-
>
|
|
130
|
-
Сохранить
|
|
131
|
-
</button>
|
|
132
|
-
</footer>
|
|
133
|
-
</tui-drawer>
|
|
134
|
-
|
|
135
|
-
<ng-template #resetSettings>
|
|
136
|
-
<sproc-reset-settings-form></sproc-reset-settings-form>
|
|
137
|
-
</ng-template>
|
|
138
|
-
|
|
139
|
-
<ng-template #resetSettingsFooter let-completeWith="completeWith">
|
|
140
|
-
<div style="width: 100%; display: flex; justify-content: center; gap: 8px">
|
|
141
|
-
<button
|
|
142
|
-
tuiButton
|
|
143
|
-
style="width: 196px"
|
|
144
|
-
appearance="primary-destructive"
|
|
145
|
-
size="l"
|
|
146
|
-
(click)="deleteSettings(); completeWith(true)"
|
|
147
|
-
>
|
|
148
|
-
Сбросить
|
|
149
|
-
</button>
|
|
150
|
-
<button
|
|
151
|
-
tuiButton
|
|
152
|
-
style="width: 196px"
|
|
153
|
-
appearance="outline-grayscale"
|
|
154
|
-
size="l"
|
|
155
|
-
(click)="completeWith(false)"
|
|
156
|
-
>
|
|
157
|
-
Отмена
|
|
158
|
-
</button>
|
|
159
|
-
</div>
|
|
160
|
-
</ng-template>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'buttons';
|
|
3
|
-
@import '@taiga-ui/core/styles/taiga-ui-local.less';
|
|
4
|
-
|
|
5
|
-
.gray {
|
|
6
|
-
color: var(--gray-icon);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.column-settings {
|
|
10
|
-
&__main-button {
|
|
11
|
-
.top-icon-button();
|
|
12
|
-
|
|
13
|
-
&:disabled {
|
|
14
|
-
.top-icon-button--disabled;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__icon {
|
|
19
|
-
font-size: 16px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__popup {
|
|
23
|
-
top: var(--header-height);
|
|
24
|
-
width: 302px;
|
|
25
|
-
border-radius: 2px 2px 0 0;
|
|
26
|
-
box-shadow: -1px 0 12px rgba(71, 83, 38, 23%);
|
|
27
|
-
|
|
28
|
-
.header {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: row;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
align-items: center;
|
|
33
|
-
padding: 0 0 0 16px;
|
|
34
|
-
gap: 8px;
|
|
35
|
-
border-radius: 2px 2px 0 0;
|
|
36
|
-
border-bottom: 1px solid var(--stroke1);
|
|
37
|
-
background: var(--table-header);
|
|
38
|
-
box-shadow: unset;
|
|
39
|
-
|
|
40
|
-
&__title {
|
|
41
|
-
.static-title-h4;
|
|
42
|
-
|
|
43
|
-
color: var(--main-black);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__buttons {
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 4px;
|
|
50
|
-
|
|
51
|
-
.reset-button {
|
|
52
|
-
color: var(--gray-icon);
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
color: var(--main-black);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
sproc-divider {
|
|
60
|
-
height: 24px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.close-button {
|
|
64
|
-
color: var(--brand-danger-active);
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
color: var(--brand-danger-hovered);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.column-container {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
// padding-bottom задается напрямую через переменную ts
|
|
77
|
-
padding-top: 8px;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
|
|
80
|
-
.subtitle {
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
color: var(--main-black);
|
|
84
|
-
|
|
85
|
-
.main-subtitle;
|
|
86
|
-
|
|
87
|
-
&--flex-grow-1 {
|
|
88
|
-
flex-grow: 1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.show-all {
|
|
93
|
-
color: var(--text-secondary);
|
|
94
|
-
|
|
95
|
-
.main-body-text-12px;
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
color: var(--main-black);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.footer {
|
|
105
|
-
display: flex;
|
|
106
|
-
padding: 8px 16px;
|
|
107
|
-
align-items: center;
|
|
108
|
-
|
|
109
|
-
.save-button {
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.column-list {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-direction: column;
|
|
119
|
-
|
|
120
|
-
&__label-container {
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: row;
|
|
123
|
-
align-items: center;
|
|
124
|
-
padding: 0 8px 0 12px;
|
|
125
|
-
cursor: default;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
::ng-deep &.cdk-drop-list-dragging .column-item:not(.cdk-drag-placeholder) {
|
|
129
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
computed,
|
|
5
|
-
DestroyRef,
|
|
6
|
-
effect,
|
|
7
|
-
inject,
|
|
8
|
-
input,
|
|
9
|
-
OnInit,
|
|
10
|
-
signal,
|
|
11
|
-
TemplateRef,
|
|
12
|
-
untracked,
|
|
13
|
-
viewChild,
|
|
14
|
-
} from '@angular/core';
|
|
15
|
-
import { Router } from '@angular/router';
|
|
16
|
-
import { filter, map, skip } from 'rxjs';
|
|
17
|
-
import { TuiButton, TuiIcon, TuiPopup, TuiScrollbar } from '@taiga-ui/core';
|
|
18
|
-
import { TuiDrawer } from '@taiga-ui/kit';
|
|
19
|
-
import {
|
|
20
|
-
CdkDragDrop,
|
|
21
|
-
CdkDropList,
|
|
22
|
-
CdkDropListGroup,
|
|
23
|
-
moveItemInArray,
|
|
24
|
-
transferArrayItem,
|
|
25
|
-
} from '@angular/cdk/drag-drop';
|
|
26
|
-
import {
|
|
27
|
-
outputFromObservable,
|
|
28
|
-
takeUntilDestroyed,
|
|
29
|
-
toObservable,
|
|
30
|
-
toSignal,
|
|
31
|
-
} from '@angular/core/rxjs-interop';
|
|
32
|
-
import {
|
|
33
|
-
EColumnStatus,
|
|
34
|
-
IColumnSettings,
|
|
35
|
-
IColumnSettingsChanges,
|
|
36
|
-
ITableColumnSettings,
|
|
37
|
-
} from './types/column-settings.types';
|
|
38
|
-
import { WaResizeObserver } from '@ng-web-apis/resize-observer';
|
|
39
|
-
import { ColumnSettingsTemplateComponent } from './components/column-settings-template/column-settings-template.component';
|
|
40
|
-
import { ICON_CANCEL_CLOSE, ICON_ERASER, ICON_SETTINGS } from './consts/column-settings.consts';
|
|
41
|
-
import { DialogService, ResizeWindowObserverService } from '../../services';
|
|
42
|
-
import { getLastSegmentOfPathName, isNonNull } from '../../utils';
|
|
43
|
-
import { SETTINGS_TYPE, USER_PROFILE_LOADER, USER_SETTINGS_LOADER } from '../../consts';
|
|
44
|
-
import { ResetSettingsFormComponent } from '../reset-settings-form/reset-settings-form.component';
|
|
45
|
-
import { DividerComponent } from '../divider/divider.component';
|
|
46
|
-
import { ITpUserSettings } from '../../types';
|
|
47
|
-
|
|
48
|
-
@Component({
|
|
49
|
-
selector: 'sproc-column-settings',
|
|
50
|
-
standalone: true,
|
|
51
|
-
templateUrl: './column-settings.component.html',
|
|
52
|
-
styleUrls: ['./column-settings.component.less'],
|
|
53
|
-
imports: [
|
|
54
|
-
TuiButton,
|
|
55
|
-
TuiIcon,
|
|
56
|
-
TuiDrawer,
|
|
57
|
-
TuiPopup,
|
|
58
|
-
DividerComponent,
|
|
59
|
-
ResetSettingsFormComponent,
|
|
60
|
-
CdkDropList,
|
|
61
|
-
CdkDropListGroup,
|
|
62
|
-
TuiScrollbar,
|
|
63
|
-
WaResizeObserver,
|
|
64
|
-
ColumnSettingsTemplateComponent,
|
|
65
|
-
],
|
|
66
|
-
providers: [ResizeWindowObserverService],
|
|
67
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
68
|
-
})
|
|
69
|
-
export class ColumnSettingsComponent implements OnInit {
|
|
70
|
-
public resetColumnSettingsRef = viewChild('resetSettings', { read: TemplateRef<unknown> });
|
|
71
|
-
public resetColumnSettingsFooter = viewChild('resetSettingsFooter', {
|
|
72
|
-
read: TemplateRef<unknown>,
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
public defaultSettings = input.required<ITableColumnSettings>();
|
|
76
|
-
/** Высота всего компонента настроек */
|
|
77
|
-
public height = input<number | undefined>();
|
|
78
|
-
public disabled = input(false);
|
|
79
|
-
/** показ заголовка листа фикс. слева колонок */
|
|
80
|
-
public showLeftListHeader = input(true);
|
|
81
|
-
/** показ заголовка листа фикс. справа колонок */
|
|
82
|
-
public showRightListHeader = input(true);
|
|
83
|
-
/** заголовок листа с колонками (нефиксированные) */
|
|
84
|
-
public columnsListHeader = input('Колонки');
|
|
85
|
-
/** показ фикс. справа колонок */
|
|
86
|
-
public showFixedRightList = input(false);
|
|
87
|
-
/** функция предикат - возможность добавления элемента в лист фикс. слева колонок */
|
|
88
|
-
public fixedLeftListEnterPredicate = input<() => boolean>(() => true);
|
|
89
|
-
/** функция предикат - возможность добавления элемента в лист колонок (нефиксированные) */
|
|
90
|
-
public columnsListEnterPredicate = input<() => boolean>(() => true);
|
|
91
|
-
/** функция предикат - возможность добавления элемента в лист фикс. справа колонок */
|
|
92
|
-
public fixedRightListEnterPredicate = input<() => boolean>(() => true);
|
|
93
|
-
|
|
94
|
-
protected readonly openSettings = signal(false);
|
|
95
|
-
protected readonly inputSettings = signal<ITableColumnSettings | null>(null);
|
|
96
|
-
protected readonly fixedLeftColumns = computed(() => this.inputSettings()?.stickyLeft ?? []);
|
|
97
|
-
protected readonly columns = computed(() => this.inputSettings()?.columns ?? []);
|
|
98
|
-
protected readonly fixedRightColumns = computed(() => this.inputSettings()?.stickyRight ?? []);
|
|
99
|
-
|
|
100
|
-
public columnsChanges = outputFromObservable<IColumnSettingsChanges>(
|
|
101
|
-
toObservable(this.inputSettings).pipe(
|
|
102
|
-
skip(1),
|
|
103
|
-
map((settings) => ({ settings }))
|
|
104
|
-
)
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
protected readonly settingsStore = inject(USER_SETTINGS_LOADER);
|
|
108
|
-
|
|
109
|
-
private readonly _dr = inject(DestroyRef);
|
|
110
|
-
private readonly _router = inject(Router);
|
|
111
|
-
private readonly _userProfileService = inject(USER_PROFILE_LOADER);
|
|
112
|
-
private readonly _dialogService = inject(DialogService);
|
|
113
|
-
private readonly _resizeWindowObserver = inject(ResizeWindowObserverService);
|
|
114
|
-
|
|
115
|
-
protected readonly iconSettings = ICON_SETTINGS;
|
|
116
|
-
protected readonly iconEraser = ICON_ERASER;
|
|
117
|
-
protected readonly iconCancelClose = ICON_CANCEL_CLOSE;
|
|
118
|
-
|
|
119
|
-
protected readonly columnSettingsHeaderHeightPx = 40;
|
|
120
|
-
protected readonly columnSettingsSubtitleHeightPx = 32;
|
|
121
|
-
protected readonly scrollBoxFixedColumnsHeightPx = signal(0);
|
|
122
|
-
protected readonly scrollBoxRightFixedColumnsHeightPx = signal(0);
|
|
123
|
-
protected readonly scrollBoxFixedColumnsMaxHeightPx = 287;
|
|
124
|
-
protected readonly scrollBoxColumnsMaxHeightPx = signal(0);
|
|
125
|
-
protected readonly columnSettingsFooterHeightPx = 48;
|
|
126
|
-
protected readonly columnListHeightPx = toSignal(
|
|
127
|
-
this._resizeWindowObserver.innerHeight$.pipe(
|
|
128
|
-
skip(1),
|
|
129
|
-
map((innerHeight) => this._calcColumnListHeightPx(innerHeight))
|
|
130
|
-
),
|
|
131
|
-
{
|
|
132
|
-
initialValue: this._calcColumnListHeightPx(this._resizeWindowObserver.innerHeight()),
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
protected readonly columnListBottomPaddingPx = 8;
|
|
136
|
-
|
|
137
|
-
private readonly _idUser = this._userProfileService.getUserProfile().id;
|
|
138
|
-
private readonly _moduleName = getLastSegmentOfPathName(this._router.url);
|
|
139
|
-
|
|
140
|
-
private _columnsSettings: ITpUserSettings | undefined;
|
|
141
|
-
|
|
142
|
-
constructor() {
|
|
143
|
-
this.setDefaultSettings();
|
|
144
|
-
this._effectOnSetScrollBoxColumnsMaxHeight();
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
public setDefaultSettings(): void {
|
|
148
|
-
effect(() => {
|
|
149
|
-
const defaultSettings = this.defaultSettings();
|
|
150
|
-
const clonedSettings = JSON.parse(JSON.stringify(defaultSettings));
|
|
151
|
-
|
|
152
|
-
untracked(() => {
|
|
153
|
-
this.inputSettings.set(clonedSettings);
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
private _effectOnSetScrollBoxColumnsMaxHeight(): void {
|
|
159
|
-
effect(() => {
|
|
160
|
-
const parentHeightPx = this.columnListHeightPx();
|
|
161
|
-
const fixedHeightPx = this.scrollBoxFixedColumnsHeightPx();
|
|
162
|
-
const rightFixedHeightPx = this.scrollBoxRightFixedColumnsHeightPx();
|
|
163
|
-
const sumFixedHeightPx = fixedHeightPx + rightFixedHeightPx;
|
|
164
|
-
|
|
165
|
-
untracked(() => {
|
|
166
|
-
const newHeightPx = this._calcScrollBoxColumnsMaxHeightPx(parentHeightPx, sumFixedHeightPx);
|
|
167
|
-
this.scrollBoxColumnsMaxHeightPx.set(newHeightPx);
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
public ngOnInit(): void {
|
|
173
|
-
this.subscribeOnSettings();
|
|
174
|
-
this.fetchSettings(this._idUser, this._moduleName);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
private fetchSettings(userId: string, moduleName: string): void {
|
|
178
|
-
this.settingsStore.fetchUserSettingsByUserId({
|
|
179
|
-
userId,
|
|
180
|
-
settingsType: SETTINGS_TYPE.COLUMNS,
|
|
181
|
-
moduleName,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
private subscribeOnSettings(): void {
|
|
186
|
-
this.settingsStore.settings$
|
|
187
|
-
.pipe(
|
|
188
|
-
filter((settings) => settings.length > 0),
|
|
189
|
-
map(([settings]) => settings),
|
|
190
|
-
filter((settings) => isNonNull(settings)),
|
|
191
|
-
takeUntilDestroyed(this._dr)
|
|
192
|
-
)
|
|
193
|
-
.subscribe((settings) => {
|
|
194
|
-
this._columnsSettings = settings;
|
|
195
|
-
const { tableFields } = settings.settings;
|
|
196
|
-
|
|
197
|
-
if (tableFields) {
|
|
198
|
-
this.inputSettings.set(tableFields);
|
|
199
|
-
this.close();
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
protected deleteSettings(): void {
|
|
205
|
-
const clonedSettings = JSON.parse(JSON.stringify(this.defaultSettings()));
|
|
206
|
-
this.inputSettings.set(clonedSettings);
|
|
207
|
-
|
|
208
|
-
if (this._columnsSettings) {
|
|
209
|
-
this.settingsStore.deleteUserSettingsById({
|
|
210
|
-
id: this._columnsSettings?.id,
|
|
211
|
-
updateSettings: true,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
this.close();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
protected saveSettings(settings: ITableColumnSettings): void {
|
|
219
|
-
this.settingsStore.upsertUserSettingsByUserId({
|
|
220
|
-
settings: {
|
|
221
|
-
id: this._columnsSettings?.id,
|
|
222
|
-
module_name: this._moduleName,
|
|
223
|
-
settings: {
|
|
224
|
-
...this._columnsSettings?.settings,
|
|
225
|
-
tableFields: settings,
|
|
226
|
-
},
|
|
227
|
-
settings_type: SETTINGS_TYPE.COLUMNS,
|
|
228
|
-
},
|
|
229
|
-
updateSettings: true,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
protected saveTableSettings(): void {
|
|
234
|
-
this.saveSettings({
|
|
235
|
-
stickyLeft: this.fixedLeftColumns(),
|
|
236
|
-
columns: this.columns(),
|
|
237
|
-
stickyRight: this.fixedRightColumns(),
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
protected openResetDialog(): void {
|
|
242
|
-
this._dialogService
|
|
243
|
-
.openModal(this.resetColumnSettingsRef(), {
|
|
244
|
-
closeable: true,
|
|
245
|
-
width: 466,
|
|
246
|
-
footer: this.resetColumnSettingsFooter(),
|
|
247
|
-
dismissible: true,
|
|
248
|
-
})
|
|
249
|
-
.subscribe();
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
protected toggle(): void {
|
|
253
|
-
this.openSettings.update((isOpen) => !isOpen);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
protected close(): void {
|
|
257
|
-
this.openSettings.set(false);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
protected dropIntoFixedLeft(event: CdkDragDrop<IColumnSettings[]>): void {
|
|
261
|
-
const droppedElement = event.previousContainer.data[event.previousIndex];
|
|
262
|
-
this._setStatusRecursive(droppedElement, EColumnStatus.STICKY);
|
|
263
|
-
this._moveDroppedItem(event);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
protected dropIntoColumns(event: CdkDragDrop<IColumnSettings[]>): void {
|
|
267
|
-
const fromOther = event.previousContainer !== event.container;
|
|
268
|
-
|
|
269
|
-
if (fromOther) {
|
|
270
|
-
const droppedElement = event.previousContainer.data[event.previousIndex];
|
|
271
|
-
this._setStatusRecursive(droppedElement, EColumnStatus.DEFAULT);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
this._moveDroppedItem(event);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
private _moveDroppedItem(event: CdkDragDrop<IColumnSettings[]>): void {
|
|
278
|
-
if (event.previousContainer === event.container) {
|
|
279
|
-
moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
|
|
280
|
-
} else {
|
|
281
|
-
transferArrayItem(
|
|
282
|
-
event.previousContainer.data,
|
|
283
|
-
event.container.data,
|
|
284
|
-
event.previousIndex,
|
|
285
|
-
event.currentIndex
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
protected toggleVisibility(col: IColumnSettings): void {
|
|
291
|
-
const isHidden = col.status === EColumnStatus.HIDDEN;
|
|
292
|
-
col.status = isHidden ? EColumnStatus.DEFAULT : EColumnStatus.HIDDEN;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
protected showAllColumns(): void {
|
|
296
|
-
const settings = this.inputSettings();
|
|
297
|
-
|
|
298
|
-
if (!settings) {
|
|
299
|
-
throw new Error('Настройки таблицы не инициализированы');
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
this._setColumnsStatusRecursive(settings.columns, EColumnStatus.DEFAULT);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
protected isHiddenColumn(column: IColumnSettings): boolean {
|
|
306
|
-
return column.status === EColumnStatus.HIDDEN;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
protected onFixedScrollbarResize([fixedScrollbar]: readonly ResizeObserverEntry[]): void {
|
|
310
|
-
this.scrollBoxFixedColumnsHeightPx.set(fixedScrollbar.contentRect.height);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
protected onRightFixedScrollbarResize([fixedScrollbar]: readonly ResizeObserverEntry[]): void {
|
|
314
|
-
this.scrollBoxRightFixedColumnsHeightPx.set(fixedScrollbar.contentRect.height);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
private _calcColumnListHeightPx(windowInnerHeight: number): number {
|
|
318
|
-
const mainHeaderPx = 52;
|
|
319
|
-
const columnSettingsHeaderFooterSumHeightPx =
|
|
320
|
-
this.columnSettingsHeaderHeightPx + this.columnSettingsFooterHeightPx;
|
|
321
|
-
|
|
322
|
-
return windowInnerHeight - mainHeaderPx - columnSettingsHeaderFooterSumHeightPx;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
private _calcScrollBoxColumnsMaxHeightPx(
|
|
326
|
-
parentHeightPx: number,
|
|
327
|
-
fixedScrollbarHeightPx: number
|
|
328
|
-
): number {
|
|
329
|
-
const twoSubtitleHeightPx = 2 * this.columnSettingsSubtitleHeightPx;
|
|
330
|
-
const bottomPaddingPx = this.columnListBottomPaddingPx;
|
|
331
|
-
|
|
332
|
-
return parentHeightPx - twoSubtitleHeightPx - fixedScrollbarHeightPx - bottomPaddingPx;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
private _setStatusRecursive(column: IColumnSettings, status: EColumnStatus): void {
|
|
336
|
-
column.status = status;
|
|
337
|
-
|
|
338
|
-
if (column.children) {
|
|
339
|
-
this._setColumnsStatusRecursive(column.children, status);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
private _setColumnsStatusRecursive(columns: IColumnSettings[], status: EColumnStatus): void {
|
|
344
|
-
for (const [index, col] of columns.entries()) {
|
|
345
|
-
columns[index] = { ...col, status };
|
|
346
|
-
|
|
347
|
-
if (col.children) {
|
|
348
|
-
this._setColumnsStatusRecursive(col.children, status);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@let col = column();
|
|
2
|
-
@let isHidden = isHiddenColumn(col);
|
|
3
|
-
@let currentEyeIcon = isHidden ? iconEyeClosed : iconEye;
|
|
4
|
-
@let childrenColumns = col.children ?? [];
|
|
5
|
-
|
|
6
|
-
<div
|
|
7
|
-
class="column-item"
|
|
8
|
-
[class.hidden]="isHidden"
|
|
9
|
-
cdkDrag
|
|
10
|
-
[cdkDragData]="col"
|
|
11
|
-
(cdkDragStarted)="collapseNested()"
|
|
12
|
-
>
|
|
13
|
-
<img [ngSrc]="iconEditorDots" [width]="16" [height]="32" alt="" />
|
|
14
|
-
@if (canExpand()) {
|
|
15
|
-
<img
|
|
16
|
-
class="expanded"
|
|
17
|
-
[ngSrc]="iconChevron"
|
|
18
|
-
[width]="16"
|
|
19
|
-
[height]="16"
|
|
20
|
-
[attr.expanded]="expanded()"
|
|
21
|
-
alt=""
|
|
22
|
-
(click)="toggleNested()"
|
|
23
|
-
/>
|
|
24
|
-
}
|
|
25
|
-
<span class="column-item__name">{{ col.name }}</span>
|
|
26
|
-
@if (status() === EColumnStatus.STICKY) {
|
|
27
|
-
<img
|
|
28
|
-
class="pointer"
|
|
29
|
-
[ngSrc]="iconLock"
|
|
30
|
-
[width]="16"
|
|
31
|
-
[height]="16"
|
|
32
|
-
tuiHint="Нельзя скрыть закрепленную колонку"
|
|
33
|
-
/>
|
|
34
|
-
} @else {
|
|
35
|
-
<img
|
|
36
|
-
class="eye-icon"
|
|
37
|
-
[ngSrc]="currentEyeIcon"
|
|
38
|
-
[width]="16"
|
|
39
|
-
[height]="16"
|
|
40
|
-
tuiHint="Показать/Скрыть колонку"
|
|
41
|
-
(click)="toggleVisibility(col)"
|
|
42
|
-
/>
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
<ng-template cdkDragPlaceholder>
|
|
46
|
-
<div class="custom-placeholder"></div>
|
|
47
|
-
</ng-template>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
@if (canExpand()) {
|
|
51
|
-
<tui-expand
|
|
52
|
-
class="nested-columns"
|
|
53
|
-
cdkDropList
|
|
54
|
-
[expanded]="expanded()"
|
|
55
|
-
[cdkDropListData]="childrenColumns"
|
|
56
|
-
(cdkDropListDropped)="dropIntoChildren($event)"
|
|
57
|
-
>
|
|
58
|
-
@for (childCol of childrenColumns; track childCol.id) {
|
|
59
|
-
<sproc-column-settings-template
|
|
60
|
-
[column]="childCol"
|
|
61
|
-
[parent]="col"
|
|
62
|
-
></sproc-column-settings-template>
|
|
63
|
-
}
|
|
64
|
-
</tui-expand>
|
|
65
|
-
}
|