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,337 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
computed,
|
|
5
|
-
DestroyRef,
|
|
6
|
-
effect,
|
|
7
|
-
HostBinding,
|
|
8
|
-
inject,
|
|
9
|
-
input,
|
|
10
|
-
OnInit,
|
|
11
|
-
signal,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import {
|
|
14
|
-
EPageMenuIconsSrc,
|
|
15
|
-
SIDE_MENU_CLOSED_WIDTH,
|
|
16
|
-
SIDE_MENU_OPENED_WIDTH,
|
|
17
|
-
} from './schema/sproc-page-menu.consts';
|
|
18
|
-
import { Router, RouterLink } from '@angular/router';
|
|
19
|
-
import { AbstractMenuStateService, IClsMenuItem } from './schema/sproc-page-menu.types';
|
|
20
|
-
import { PAGE_MENU_STATE } from './schema/sproc-page-menu.tokens';
|
|
21
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
22
|
-
import { INavigation } from './schema/sproc-page-menu.schema';
|
|
23
|
-
import { AsyncPipe, NgClass, NgOptimizedImage, NgTemplateOutlet } from '@angular/common';
|
|
24
|
-
import { animate, style, transition, trigger } from '@angular/animations';
|
|
25
|
-
|
|
26
|
-
@Component({
|
|
27
|
-
selector: 'sproc-page-menu',
|
|
28
|
-
templateUrl: './sproc-page-menu.component.html',
|
|
29
|
-
styleUrls: ['./sproc-page-menu.component.less'],
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
|
-
standalone: true,
|
|
32
|
-
imports: [RouterLink, NgTemplateOutlet, NgClass, AsyncPipe, NgOptimizedImage],
|
|
33
|
-
animations: [
|
|
34
|
-
trigger('fadeInOut', [
|
|
35
|
-
transition(':enter', [
|
|
36
|
-
style({
|
|
37
|
-
opacity: 0,
|
|
38
|
-
transform: 'translateY(-10px)',
|
|
39
|
-
transformOrigin: 'top',
|
|
40
|
-
}),
|
|
41
|
-
animate(
|
|
42
|
-
'0.15s ease-in',
|
|
43
|
-
style({
|
|
44
|
-
opacity: 1,
|
|
45
|
-
transform: 'translateY(0)',
|
|
46
|
-
})
|
|
47
|
-
),
|
|
48
|
-
]),
|
|
49
|
-
]),
|
|
50
|
-
],
|
|
51
|
-
})
|
|
52
|
-
export class SprocPageMenuComponent implements OnInit {
|
|
53
|
-
public menuItems = input.required<IClsMenuItem[]>();
|
|
54
|
-
public menuIconsSrc = input<string>('');
|
|
55
|
-
public openLogoSrc = input<string>('');
|
|
56
|
-
public closedLogoSrc = input<string>('');
|
|
57
|
-
public findActiveSection =
|
|
58
|
-
input.required<(reset: () => void, findRoute: (routeToFind: string) => void) => void>();
|
|
59
|
-
|
|
60
|
-
// TODO Добавить кастомную ширину меню
|
|
61
|
-
@HostBinding('style.--page-menu-opened-width')
|
|
62
|
-
public readonly menuOpenedWidth = `${SIDE_MENU_OPENED_WIDTH}px`;
|
|
63
|
-
@HostBinding('style.--page-menu-closed-width')
|
|
64
|
-
public readonly menuClosedWidth = `${SIDE_MENU_CLOSED_WIDTH}px`;
|
|
65
|
-
|
|
66
|
-
private readonly _router = inject(Router);
|
|
67
|
-
private readonly _state = inject<AbstractMenuStateService>(PAGE_MENU_STATE);
|
|
68
|
-
private readonly _dr = inject(DestroyRef);
|
|
69
|
-
|
|
70
|
-
protected readonly toggleDisabled$ = this._state.toggleDisabled$;
|
|
71
|
-
protected menuState = toSignal(this._state.isOpen$);
|
|
72
|
-
protected selectedSection = signal<string>('register');
|
|
73
|
-
protected expandedIds = signal<Set<string>>(new Set());
|
|
74
|
-
|
|
75
|
-
protected selectedItem = computed(() =>
|
|
76
|
-
this.selectedSection() ? this.codeToItem[this.selectedSection()] : null
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
// Хранит parent элементы выбранного пункта меню
|
|
80
|
-
protected parentItems = computed(() => {
|
|
81
|
-
const item = this.selectedItem();
|
|
82
|
-
if (!item) {
|
|
83
|
-
return [];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const parents: INavigation[] = [];
|
|
87
|
-
let current = item.parent;
|
|
88
|
-
while (current) {
|
|
89
|
-
parents.push(current);
|
|
90
|
-
current = current.parent;
|
|
91
|
-
}
|
|
92
|
-
return parents;
|
|
93
|
-
});
|
|
94
|
-
protected parentItemCodes = computed<Set<string>>(() => {
|
|
95
|
-
const parentItems = this.parentItems();
|
|
96
|
-
|
|
97
|
-
return new Set(parentItems.map((val) => val.code ?? ''));
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
public navigationHierarchy = signal<INavigation[]>([]);
|
|
101
|
-
|
|
102
|
-
protected codeToItem: Record<string, INavigation> = {};
|
|
103
|
-
|
|
104
|
-
protected isOpenServiceVersionInfo = false;
|
|
105
|
-
|
|
106
|
-
protected readonly ICONS_SRC = EPageMenuIconsSrc;
|
|
107
|
-
|
|
108
|
-
constructor() {
|
|
109
|
-
// Построить меню и найти активную секцию
|
|
110
|
-
effect(
|
|
111
|
-
() => {
|
|
112
|
-
const menuItems = this.menuItems();
|
|
113
|
-
this.buildMenu(menuItems);
|
|
114
|
-
this._findActiveSection();
|
|
115
|
-
},
|
|
116
|
-
{ allowSignalWrites: true }
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
public addMenuScrollbar(id: string): void {
|
|
121
|
-
setTimeout(() => {
|
|
122
|
-
// TODO Меню второго уровня есть скролл,третьего нет
|
|
123
|
-
const collapsedMenu = document.querySelector<HTMLElement>(`[id="${id}"]`);
|
|
124
|
-
const sideMenu = collapsedMenu?.querySelector<HTMLElement>('#side-menu__subitems');
|
|
125
|
-
const sideMenuLevelTwo = sideMenu?.querySelector<HTMLElement>('#side-menu__subitems');
|
|
126
|
-
|
|
127
|
-
const subitem = sideMenuLevelTwo
|
|
128
|
-
? sideMenuLevelTwo.querySelectorAll('.side-menu__subitem')
|
|
129
|
-
: sideMenu?.querySelectorAll('.side-menu__subitem');
|
|
130
|
-
if (subitem) {
|
|
131
|
-
const lastSubitem = subitem[subitem.length - 1];
|
|
132
|
-
const rect = lastSubitem?.getBoundingClientRect();
|
|
133
|
-
|
|
134
|
-
if (sideMenu && window.innerHeight - rect.bottom < 0) {
|
|
135
|
-
// 40 тк высота плашки меню
|
|
136
|
-
sideMenu.style.height = `${
|
|
137
|
-
subitem.length * 40 + (window.innerHeight - rect.bottom - 1)
|
|
138
|
-
}px`;
|
|
139
|
-
sideMenu.style.overflowY = 'scroll';
|
|
140
|
-
sideMenu.style.overflowX = 'hidden';
|
|
141
|
-
}
|
|
142
|
-
if (window.innerHeight - rect.bottom < 0 && sideMenuLevelTwo) {
|
|
143
|
-
// 40 тк высота плашки меню
|
|
144
|
-
sideMenuLevelTwo.style.height = `${
|
|
145
|
-
subitem.length * 40 + (window.innerHeight - rect.bottom - 1)
|
|
146
|
-
}px`;
|
|
147
|
-
sideMenuLevelTwo.style.overflowY = 'scroll';
|
|
148
|
-
sideMenuLevelTwo.style.overflowX = 'hidden';
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}, 0);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
public ngOnInit(): void {
|
|
155
|
-
this._state.isOpen$.subscribe((menuState) => {
|
|
156
|
-
if (menuState) {
|
|
157
|
-
this.findRoute(this.selectedSection());
|
|
158
|
-
} else {
|
|
159
|
-
this.collapseMenu();
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
protected toggleNavigation(): void {
|
|
165
|
-
this._state.toggle();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
protected toggleItem(item: INavigation): void {
|
|
169
|
-
this.addMenuScrollbar(item.id || '');
|
|
170
|
-
|
|
171
|
-
this.expandedIds.update((currentExpand) => {
|
|
172
|
-
const code = item.code;
|
|
173
|
-
const copy = new Set<string>(currentExpand);
|
|
174
|
-
|
|
175
|
-
if (copy.has(code)) {
|
|
176
|
-
copy.delete(code);
|
|
177
|
-
} else {
|
|
178
|
-
copy.clear();
|
|
179
|
-
copy.add(code);
|
|
180
|
-
|
|
181
|
-
const parents = this.getParents(item);
|
|
182
|
-
for (const parent of parents) {
|
|
183
|
-
copy.add(parent.code);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return copy;
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
protected collapseMenu(exception?: INavigation): void {
|
|
192
|
-
let codes: string[] = [];
|
|
193
|
-
if (exception) {
|
|
194
|
-
const parents = this.getParents(exception);
|
|
195
|
-
codes = [exception.code, ...parents.map((parent) => parent.code)];
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
this.expandedIds.set(new Set<string>(codes));
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
protected get isMenuOpened(): boolean {
|
|
202
|
-
return this._state.isOpen;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
protected get isMenuClosed(): boolean {
|
|
206
|
-
return !this._state.isOpen;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
protected isExternalLink(route: string | undefined): boolean {
|
|
210
|
-
if (!route) {
|
|
211
|
-
return false;
|
|
212
|
-
}
|
|
213
|
-
return /^(https?:\/\/|www\.)/i.test(route);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
protected handleNavigation(item: INavigation): void {
|
|
217
|
-
if (!item.route) {
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (this.isExternalLink(item.route)) {
|
|
222
|
-
window.open(item.route, '_blank');
|
|
223
|
-
} else {
|
|
224
|
-
this._router.navigate([item.route]);
|
|
225
|
-
this.selectedSection.set(item.code ?? '');
|
|
226
|
-
|
|
227
|
-
if (this.isMenuClosed) {
|
|
228
|
-
this.collapseMenu();
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
protected serviceInfoOnActiveZone(active: boolean): void {
|
|
234
|
-
this.isOpenServiceVersionInfo = active && this.isOpenServiceVersionInfo;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
protected serviceInfoOnObscured(obscured: boolean): void {
|
|
238
|
-
if (obscured) {
|
|
239
|
-
this.isOpenServiceVersionInfo = false;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
private buildMenu(menu: IClsMenuItem[]): void {
|
|
244
|
-
const sortedMenuItems = [...menu].sort((a, b) => (a.order_num ?? 0) - (b.order_num ?? 0));
|
|
245
|
-
|
|
246
|
-
const menuHash: Record<string, INavigation> = {};
|
|
247
|
-
for (const item of sortedMenuItems) {
|
|
248
|
-
menuHash[item.id] = {
|
|
249
|
-
title: item.title ?? '',
|
|
250
|
-
route: item.route ?? '',
|
|
251
|
-
id: item.id,
|
|
252
|
-
children: [],
|
|
253
|
-
code: item.code,
|
|
254
|
-
icon: item.icon,
|
|
255
|
-
accessedRoles: undefined,
|
|
256
|
-
parent: undefined,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
const rootMenuItems: INavigation[] = [];
|
|
261
|
-
|
|
262
|
-
for (const item of sortedMenuItems) {
|
|
263
|
-
if (item.id_parent && menuHash[item.id_parent]) {
|
|
264
|
-
const parent = menuHash[item.id_parent];
|
|
265
|
-
const child = menuHash[item.id];
|
|
266
|
-
child.parent = parent;
|
|
267
|
-
parent.children?.push(child);
|
|
268
|
-
} else {
|
|
269
|
-
rootMenuItems.push(menuHash[item.id]);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
this.navigationHierarchy.set(rootMenuItems);
|
|
274
|
-
|
|
275
|
-
this.codeToItem = {};
|
|
276
|
-
for (const id of Object.keys(menuHash)) {
|
|
277
|
-
const item = menuHash[id];
|
|
278
|
-
if (item.code) {
|
|
279
|
-
this.codeToItem[item.code] = item;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
private findRoute(routeToFind: string): void {
|
|
285
|
-
const routeItem = this.codeToItem[routeToFind];
|
|
286
|
-
|
|
287
|
-
if (!routeItem) {
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (this.isMenuOpened) {
|
|
292
|
-
this.toggleItem(routeItem);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
this.selectedSection.set(routeItem.code ?? '');
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
private _findActiveSection(): void {
|
|
299
|
-
this.findActiveSection()(this.resetSelection, this.findRoute);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
private getParents(item: INavigation): INavigation[] {
|
|
303
|
-
const parents: INavigation[] = [];
|
|
304
|
-
let current = item.parent;
|
|
305
|
-
|
|
306
|
-
while (current) {
|
|
307
|
-
parents.push(current);
|
|
308
|
-
current = current.parent;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return parents;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
private resetSelection(): void {
|
|
315
|
-
this.expandedIds.set(new Set<string>());
|
|
316
|
-
this.selectedSection.set('');
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
private collectChildren(item: INavigation): INavigation[] {
|
|
320
|
-
const result: INavigation[] = [];
|
|
321
|
-
const queue: INavigation[] = item.children?.slice() ?? [];
|
|
322
|
-
|
|
323
|
-
let index = 0;
|
|
324
|
-
while (index < queue.length) {
|
|
325
|
-
const node = queue[index];
|
|
326
|
-
result.push(node);
|
|
327
|
-
|
|
328
|
-
if (node.children) {
|
|
329
|
-
queue.push(...node.children);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
index += 1;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return result;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<tui-loader class="loader" [showLoader]="isLoading()" [overlay]="true">
|
|
2
|
-
<div class="container">
|
|
3
|
-
<div class="content">
|
|
4
|
-
@if (!paginatorOptions().noRowsSelector && !paginatorOptions().noRowsSelectorLabel) {
|
|
5
|
-
<span class="rows rows__count">
|
|
6
|
-
<ng-container *polymorphOutlet="textOnPage() as title">
|
|
7
|
-
{{ title }}
|
|
8
|
-
</ng-container>
|
|
9
|
-
</span>
|
|
10
|
-
}
|
|
11
|
-
@if (!paginatorOptions().noRowsSelector) {
|
|
12
|
-
<div class="rows-selector">
|
|
13
|
-
<tui-combo-box
|
|
14
|
-
numberOnly
|
|
15
|
-
[ngModel]="currentRows"
|
|
16
|
-
[ngModelOptions]="{ standalone: true }"
|
|
17
|
-
[strict]="false"
|
|
18
|
-
[tuiTextfieldLabelOutside]="true"
|
|
19
|
-
[tuiTextfieldCleaner]="false"
|
|
20
|
-
tuiTextfieldSize="s"
|
|
21
|
-
[disabled]="disabled()"
|
|
22
|
-
[tuiHint]="rowsCountErrorMessage()"
|
|
23
|
-
[tuiHintManual]="isIncorrectRowsCount()"
|
|
24
|
-
(ngModelChange)="currentRowsInputChange.next($event)"
|
|
25
|
-
>
|
|
26
|
-
<tui-data-list-wrapper
|
|
27
|
-
*tuiDataList
|
|
28
|
-
[items]="rowsCountOptions().length ? rowsCountOptions() : [currentRows]"
|
|
29
|
-
/>
|
|
30
|
-
</tui-combo-box>
|
|
31
|
-
</div>
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
<div class="selected-panel">
|
|
35
|
-
<div class="selected-container">
|
|
36
|
-
<span>Выбрано</span>
|
|
37
|
-
<span class="selected-counter">{{ selectedCounter() }}</span>
|
|
38
|
-
</div>
|
|
39
|
-
<sproc-divider layout="vertical"></sproc-divider>
|
|
40
|
-
@if (!paginatorOptions().noFilterInfo) {
|
|
41
|
-
<div class="selected-container">
|
|
42
|
-
<span>Отфильтровано</span>
|
|
43
|
-
<span class="selected-counter">{{ totalRecords() }}</span>
|
|
44
|
-
<span>из</span>
|
|
45
|
-
<span class="selected-counter">{{ totalNotFiltered() }}</span>
|
|
46
|
-
</div>
|
|
47
|
-
}
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div class="content">
|
|
52
|
-
@if (!paginatorOptions().noInfo) {
|
|
53
|
-
<span class="rows rows__show" [hidden]="disabled()">
|
|
54
|
-
Показано строк: {{ (currentPage - 1) * currentRows + 1 }}-{{
|
|
55
|
-
currentPage * currentRows > totalRecords() ? totalRecords() : currentPage * currentRows
|
|
56
|
-
}}
|
|
57
|
-
<ng-container> из {{ totalRecords() }} </ng-container>
|
|
58
|
-
</span>
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
<div class="paginator">
|
|
62
|
-
<button
|
|
63
|
-
tuiIconButton
|
|
64
|
-
class="paginator__control"
|
|
65
|
-
appearance="flat"
|
|
66
|
-
type="button"
|
|
67
|
-
size="xs"
|
|
68
|
-
tabIndex="-1"
|
|
69
|
-
[disabled]="disabled() || currentPage === 1"
|
|
70
|
-
(click)="toFirstPage()"
|
|
71
|
-
>
|
|
72
|
-
<img [src]="SvgSrc.CHEVRONS_DOUBLE_LEFT" />
|
|
73
|
-
</button>
|
|
74
|
-
<tui-pagination
|
|
75
|
-
[index]="currentPage - 1"
|
|
76
|
-
[length]="pagesCount()"
|
|
77
|
-
[activePadding]="pageLinkSize()"
|
|
78
|
-
(indexChange)="changePage($event + 1)"
|
|
79
|
-
/>
|
|
80
|
-
@if (paginatorOptions().noToLastPageBtn ?? true) {
|
|
81
|
-
<button
|
|
82
|
-
tuiIconButton
|
|
83
|
-
class="paginator__control"
|
|
84
|
-
appearance="flat"
|
|
85
|
-
type="button"
|
|
86
|
-
size="xs"
|
|
87
|
-
tabIndex="-1"
|
|
88
|
-
[disabled]="disabled() || currentPage === pagesCount() || currentPage === 0"
|
|
89
|
-
(click)="toLastPage()"
|
|
90
|
-
>
|
|
91
|
-
<img [src]="SvgSrc.CHEVRONS_DOUBLE_RIGHT" />
|
|
92
|
-
</button>
|
|
93
|
-
}
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
</tui-loader>
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
height: 40px;
|
|
5
|
-
display: flex;
|
|
6
|
-
|
|
7
|
-
.container {
|
|
8
|
-
height: 100%;
|
|
9
|
-
width: 100%;
|
|
10
|
-
padding: 8px 16px;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
align-items: center;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
background: var(--main-white);
|
|
16
|
-
box-shadow: 0 -2px 4px 0 rgba(191, 198, 215, 50%);
|
|
17
|
-
z-index: 1;
|
|
18
|
-
|
|
19
|
-
.content {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
span {
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.rows {
|
|
31
|
-
.input-label;
|
|
32
|
-
|
|
33
|
-
color: var(--text-main);
|
|
34
|
-
|
|
35
|
-
&__count {
|
|
36
|
-
margin-right: 12px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__show {
|
|
40
|
-
margin-right: 32px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.selected-panel {
|
|
45
|
-
display: flex;
|
|
46
|
-
gap: 12px;
|
|
47
|
-
align-items: center;
|
|
48
|
-
|
|
49
|
-
sproc-divider {
|
|
50
|
-
height: 24px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.selected-container {
|
|
54
|
-
width: 100%;
|
|
55
|
-
display: flex;
|
|
56
|
-
gap: 12px;
|
|
57
|
-
|
|
58
|
-
.input-label;
|
|
59
|
-
|
|
60
|
-
color: var(--text-main);
|
|
61
|
-
|
|
62
|
-
.selected-counter {
|
|
63
|
-
padding: 0 8px;
|
|
64
|
-
border-bottom: 1px solid var(--table-stroke);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.rows-selector {
|
|
70
|
-
margin-right: 12px;
|
|
71
|
-
width: 80px;
|
|
72
|
-
min-width: 80px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.paginator {
|
|
76
|
-
display: flex;
|
|
77
|
-
gap: 8px;
|
|
78
|
-
|
|
79
|
-
&__control {
|
|
80
|
-
--tui-text-action: var(--gray-icon);
|
|
81
|
-
|
|
82
|
-
tui-icon {
|
|
83
|
-
font-size: var(--icon-font-size-m);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::ng-deep [tuiAppearance][data-appearance='textfield'] {
|
|
89
|
-
box-shadow: none;
|
|
90
|
-
padding-right: 10px !important;
|
|
91
|
-
|
|
92
|
-
::ng-deep tui-icon {
|
|
93
|
-
--t-icon: url('../../../../icons/chevrons-dropdown.svg') !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.loader {
|
|
100
|
-
width: 100%;
|
|
101
|
-
}
|