ngx-register-base 1.3.1 → 1.3.2
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 +225 -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 +7479 -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,32 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { IClsMenuItemInput } from './sproc-menu-constructor.consts';
|
|
3
|
-
import { IClsMenuItem } from '../../page-menu';
|
|
4
|
-
import { Apollo } from 'apollo-angular';
|
|
5
|
-
import { DestroyRef, Injectable } from '@angular/core';
|
|
6
|
-
import { ScalarUUID } from 'hasura';
|
|
7
|
-
|
|
8
|
-
export abstract class SprocAbstractMenuConstructorStore {
|
|
9
|
-
protected abstract _menuItems$: BehaviorSubject<IClsMenuItem[]>;
|
|
10
|
-
protected abstract _loading$: BehaviorSubject<boolean>;
|
|
11
|
-
protected abstract _apollo: Apollo;
|
|
12
|
-
protected abstract _dr: DestroyRef;
|
|
13
|
-
|
|
14
|
-
public abstract menuItems$: Observable<IClsMenuItem[]>;
|
|
15
|
-
public abstract loading$: Observable<boolean>;
|
|
16
|
-
public abstract originalMenu: IClsMenuItem[];
|
|
17
|
-
|
|
18
|
-
public abstract getMenu(): IClsMenuItem[];
|
|
19
|
-
|
|
20
|
-
public abstract updateMenu(
|
|
21
|
-
objectsToUpdate: {
|
|
22
|
-
_set: IClsMenuItemInput;
|
|
23
|
-
where: { [key: string]: any };
|
|
24
|
-
}[],
|
|
25
|
-
objectsToInsert?: IClsMenuItemInput[],
|
|
26
|
-
idsToDelete?: ScalarUUID[]
|
|
27
|
-
): void;
|
|
28
|
-
|
|
29
|
-
protected abstract setLoading(state: boolean): void;
|
|
30
|
-
|
|
31
|
-
protected abstract _fetchMenu(): void;
|
|
32
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ScalarUUID } from 'hasura';
|
|
2
|
-
import { IClsMenuItem } from '../../page-menu';
|
|
3
|
-
|
|
4
|
-
export interface FlatNode {
|
|
5
|
-
id: ScalarUUID;
|
|
6
|
-
id_parent: ScalarUUID | null;
|
|
7
|
-
title: string;
|
|
8
|
-
code: string;
|
|
9
|
-
route: string;
|
|
10
|
-
icon: string;
|
|
11
|
-
order_num: number;
|
|
12
|
-
allowed_roles: string | null;
|
|
13
|
-
depth: number;
|
|
14
|
-
collapsed?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const ROOT_TITLE = 'root';
|
|
18
|
-
|
|
19
|
-
export const NEW_ITEM_PREFIX = 'NEW_';
|
|
20
|
-
|
|
21
|
-
export const MIGRATION_HINT =
|
|
22
|
-
'Генерирует SQL код для миграции таблицы cls_menu_item. Генерация кода происходит на основе последней версии сохраненного меню.';
|
|
23
|
-
|
|
24
|
-
export interface IClsMenuItemResponse {
|
|
25
|
-
usr_cls_menu_item: IClsMenuItem[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type AlertAppearance = 'info' | 'negative' | 'warning' | 'positive' | 'neutral';
|
|
29
|
-
|
|
30
|
-
export interface IClsMenuItemInput {
|
|
31
|
-
title: string | null;
|
|
32
|
-
route: string | null;
|
|
33
|
-
code: string | null;
|
|
34
|
-
icon: string | null;
|
|
35
|
-
order_num: number;
|
|
36
|
-
allowed_roles: string[] | null;
|
|
37
|
-
id_parent: ScalarUUID | null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface IMenuConstructorError {
|
|
41
|
-
label: string;
|
|
42
|
-
content: any;
|
|
43
|
-
appearance: AlertAppearance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const EMPTY_UUID = '00000000-0000-0000-0000-000000000000';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Sibdigital Page Menu
|
|
2
|
-
|
|
3
|
-
- Боковое навигационное меню с двумя состояниями: **открытое** ↔ **свёрнутое**
|
|
4
|
-
- Angular 18
|
|
5
|
-
|
|
6
|
-
### Использование компонента
|
|
7
|
-
|
|
8
|
-
1. В **angular.json** Добавить ассеты меню (выше определения директории assets проекта). Путь - app -> architect -> build -> options -> assets:
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
{
|
|
12
|
-
"glob": "**/*",
|
|
13
|
-
"input": "node_modules/ngx-register-base/assets/sibdigital-page-menu",
|
|
14
|
-
"output": "assets/sibdigital-page-menu"
|
|
15
|
-
},
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
2. Для использования компонента необходимо реализовать абстрактный класс сервиса [**AbstractMenuStateService**](/TODO)
|
|
19
|
-
1. Создать инстанс сервиса с использованием токена **PAGE_MENU_STATE** и сервисом, который был создан на первом пункте:
|
|
20
|
-
2.
|
|
21
|
-
```
|
|
22
|
-
{
|
|
23
|
-
provide: PAGE_MENU_STATE,
|
|
24
|
-
useExisting: MenuStateService,
|
|
25
|
-
},
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
1. Добавить компонент
|
|
29
|
-
```angular2html
|
|
30
|
-
|
|
31
|
-
<sibdigital-page-menu
|
|
32
|
-
[findActiveSection]="findActiveSession" -> Реализация метода нахождения активной сессии
|
|
33
|
-
[menuItems]="menu" -> Массив объектов типа IClsMenuItem
|
|
34
|
-
>
|
|
35
|
-
Для отображения данных внизу меню используется провайдер ng-content
|
|
36
|
-
</sibdigital-page-menu>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Переменные стилей для переопределения:
|
|
40
|
-
|
|
41
|
-
- `var(--main-black)` - цвет текста (по умолчанию черный);
|
|
42
|
-
- `var(--main-white)` - цвет текста (по умолчанию белый);
|
|
43
|
-
- `var(--page-menu-main)` - основной цвет меню
|
|
44
|
-
- `var(--page-menu-main-hovered)` - цвет при наведении
|
|
45
|
-
- `var(--page-menu-active)` - используется для подсветки активного пункта меню
|
|
46
|
-
- `var(--page-menu-transition-time)` - время открытия меню
|
|
47
|
-
- `var(--page-menu-opened-width)` - ширина открытого меню
|
|
48
|
-
- `var(--page-menu-closed-width)` - ширина закрытого меню
|
|
49
|
-
- `page-menu-text-14px` - шрифт меню
|
|
50
|
-
|
|
51
|
-
### SVG файлы для переопределения:
|
|
52
|
-
|
|
53
|
-
#### Все svg файлы хранятся по пути `/assets/sibdigital-page-menu/`
|
|
54
|
-
|
|
55
|
-
1. Логотип (открытое состояние меню): `/assets/sibdigital-page-menu/logo/logo.svg`
|
|
56
|
-
1. Логотип (закрытое состояние меню): `/assets/sibdigital-page-menu/logo/logo_closed.svg`
|
|
57
|
-
1. Шеврон вправо: `/assets/sibdigital-page-menu/chevrons/chevron-right.svg`
|
|
58
|
-
1. Шеврон вправо: `/assets/sibdigital-page-menu/chevrons/chevron-up.svg`
|
|
59
|
-
1. Шеврон меню (клювик): `/assets/sibdigital-page-menu/chevrons/menu-chevron.svg`
|
|
60
|
-
1. Все иконки которые должно отображать меню на первом уровне: `/assets/sibdigital-page-menu/page-menu`
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const SIDE_MENU_OPENED_WIDTH = 350;
|
|
2
|
-
export const SIDE_MENU_CLOSED_WIDTH = 48;
|
|
3
|
-
|
|
4
|
-
export enum EPageMenuIconsSrc {
|
|
5
|
-
CHEVRON_RIGHT = 'assets/ngx-register-base/icons/chevron-right.svg',
|
|
6
|
-
CHEVRON_UP = 'assets/ngx-register-base/icons/chevron-up.svg',
|
|
7
|
-
MENU_CHEVRON = 'assets/ngx-register-base/icons/chevron-menu.svg',
|
|
8
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export interface IScreen {
|
|
4
|
-
title: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface NavigationMenuItem {
|
|
9
|
-
text: string;
|
|
10
|
-
extraTemplate?: TemplateRef<unknown> | null;
|
|
11
|
-
icon?: string | null;
|
|
12
|
-
isGroup?: boolean;
|
|
13
|
-
children?: NavigationMenuItem[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface CustomItem extends NavigationMenuItem {
|
|
17
|
-
id: string;
|
|
18
|
-
children?: CustomItem[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface INavigationBase extends IScreen {
|
|
22
|
-
isExpanded?: boolean;
|
|
23
|
-
children?: INavigationBase[];
|
|
24
|
-
route?: string;
|
|
25
|
-
code?: string;
|
|
26
|
-
id?: string;
|
|
27
|
-
accessedRoles?: string[]; // если не задан, то доступен для всех
|
|
28
|
-
parent?: INavigationBase;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface INavigation extends Omit<INavigationBase, 'isExpanded'> {
|
|
32
|
-
code: string;
|
|
33
|
-
children?: INavigation[];
|
|
34
|
-
parent?: INavigation;
|
|
35
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { AbstractMenuStateService } from './sproc-page-menu.types';
|
|
3
|
-
|
|
4
|
-
export const PAGE_MENU_STATE = new InjectionToken<AbstractMenuStateService>('PAGE_MENU_STATE');
|
|
5
|
-
// export const PAGE_MENU_STORE = new InjectionToken<AbstractMenuStateService>('PAGE_MENU_STATE');
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ScalarUUID } from 'hasura';
|
|
3
|
-
|
|
4
|
-
export interface IClsMenuItem {
|
|
5
|
-
code: string;
|
|
6
|
-
id: ScalarUUID;
|
|
7
|
-
id_parent: string;
|
|
8
|
-
route: string | null;
|
|
9
|
-
title: string | null;
|
|
10
|
-
icon: string | undefined;
|
|
11
|
-
allowed_roles: string[] | null;
|
|
12
|
-
is_deleted: boolean;
|
|
13
|
-
order_num: number | null;
|
|
14
|
-
children?: IClsMenuItem[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export abstract class AbstractMenuStateService {
|
|
18
|
-
/**
|
|
19
|
-
* Observable, отражающий текущее состояние меню (открыто / закрыто)
|
|
20
|
-
*/
|
|
21
|
-
public abstract readonly isOpen$: Observable<boolean>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Observable, сигнализирующий, доступно ли переключение меню
|
|
25
|
-
*/
|
|
26
|
-
public abstract readonly toggleDisabled$: Observable<boolean>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Текущее синхронное состояние меню
|
|
30
|
-
*/
|
|
31
|
-
public abstract get isOpen(): boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Принудительно установить состояние меню
|
|
35
|
-
*/
|
|
36
|
-
public abstract setOpen(value: boolean): void;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Переключить состояние меню
|
|
40
|
-
*/
|
|
41
|
-
public abstract toggle(): void;
|
|
42
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
<section [class]="menuState() ? 'side-menu side-menu_opened' : 'side-menu side-menu_closed'">
|
|
2
|
-
<div class="side-menu__header">
|
|
3
|
-
<img
|
|
4
|
-
[src]="menuState() ? openLogoSrc() : closedLogoSrc()"
|
|
5
|
-
alt="Logo Icon"
|
|
6
|
-
class="side-menu__header__logo"
|
|
7
|
-
/>
|
|
8
|
-
<img
|
|
9
|
-
(click)="toggleNavigation()"
|
|
10
|
-
[class.disabled]="toggleDisabled$ | async"
|
|
11
|
-
[height]="16"
|
|
12
|
-
[ngClass]="menuState() ? 'side-menu__header__chevron_opened' : 'side-menu__header__chevron_closed'"
|
|
13
|
-
[ngSrc]="ICONS_SRC.MENU_CHEVRON" [width]="16" alt="Menu Chevron"/>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
@if (menuState()) {
|
|
17
|
-
<div class="expanded-menu-content">
|
|
18
|
-
@for (navigation_item of navigationHierarchy(); track $index) {
|
|
19
|
-
<ng-container
|
|
20
|
-
*ngTemplateOutlet="
|
|
21
|
-
menuItemOpened;
|
|
22
|
-
context: { navigation_item: navigation_item, level: 0 }
|
|
23
|
-
"
|
|
24
|
-
></ng-container>
|
|
25
|
-
}
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<ng-content></ng-content>
|
|
29
|
-
} @else {
|
|
30
|
-
@for (navigation_item of navigationHierarchy(); track $index) {
|
|
31
|
-
<ng-container
|
|
32
|
-
*ngTemplateOutlet="closedMenu; context: { navigation_item: navigation_item }"
|
|
33
|
-
></ng-container>
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</section>
|
|
37
|
-
|
|
38
|
-
<ng-template #menuItemOpened let-level="level" let-navigation_item="navigation_item">
|
|
39
|
-
@let isExpanded = expandedIds().has(navigation_item.code);
|
|
40
|
-
@let childrenCount = navigation_item.children.length;
|
|
41
|
-
@let code = navigation_item.code;
|
|
42
|
-
@let route = navigation_item.code;
|
|
43
|
-
@let icon = navigation_item.icon;
|
|
44
|
-
@let isHighlighted = selectedSection() === code;
|
|
45
|
-
|
|
46
|
-
<a
|
|
47
|
-
(click)="childrenCount === 0 ? handleNavigation(navigation_item) : toggleItem(navigation_item)"
|
|
48
|
-
[@fadeInOut]
|
|
49
|
-
[class.menu-item_selected]="isHighlighted"
|
|
50
|
-
[class.padding-level-0]="level === 0"
|
|
51
|
-
[routerLink]="childrenCount > 0 || isExternalLink(route) ? undefined : route"
|
|
52
|
-
[style.padding-left.px]="level === 0 ? 0 : 44 + level * 20"
|
|
53
|
-
class="menu-item"
|
|
54
|
-
>
|
|
55
|
-
@if (icon) {
|
|
56
|
-
<span class="menu-item__icon">
|
|
57
|
-
<img [alt]="icon" [width]="16" [height]="16" [ngSrc]="menuIconsSrc() + icon + '.svg'">
|
|
58
|
-
</span>
|
|
59
|
-
}
|
|
60
|
-
<span class="menu-item__title"> {{ navigation_item.title }} </span>
|
|
61
|
-
@if (childrenCount > 0) {
|
|
62
|
-
<img
|
|
63
|
-
class="menu-item__chevron"
|
|
64
|
-
[class.menu-item__chevron_rotated]="!isExpanded"
|
|
65
|
-
[alt]="icon" [width]="16" [height]="16"
|
|
66
|
-
[ngSrc]="ICONS_SRC.CHEVRON_UP">
|
|
67
|
-
}
|
|
68
|
-
</a>
|
|
69
|
-
@if (isExpanded && childrenCount > 0) {
|
|
70
|
-
@for (children of navigation_item.children ?? []; track $index) {
|
|
71
|
-
<ng-container
|
|
72
|
-
*ngTemplateOutlet="menuItemOpened; context: { navigation_item: children, level: level + 1 }"
|
|
73
|
-
></ng-container>
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</ng-template>
|
|
77
|
-
|
|
78
|
-
<ng-template #closedMenu let-navigation_item="navigation_item">
|
|
79
|
-
@let isExpanded = expandedIds().has(navigation_item.code);
|
|
80
|
-
@let childrenCount = navigation_item.children.length;
|
|
81
|
-
@let code = navigation_item.code;
|
|
82
|
-
@let route = navigation_item.code;
|
|
83
|
-
@let icon = navigation_item.icon;
|
|
84
|
-
@let isHighlighted = selectedSection() === code || parentItemCodes().has(code);
|
|
85
|
-
|
|
86
|
-
<div
|
|
87
|
-
(mouseleave)="collapseMenu()"
|
|
88
|
-
[id]="navigation_item.id"
|
|
89
|
-
class="collapsed-menu-content"
|
|
90
|
-
>
|
|
91
|
-
@if (icon) {
|
|
92
|
-
<a
|
|
93
|
-
class="menu-item__icon_closed"
|
|
94
|
-
[class.menu-item_selected]="isHighlighted"
|
|
95
|
-
(click)="childrenCount === 0 ? handleNavigation(navigation_item) : toggleItem(navigation_item)"
|
|
96
|
-
[routerLink]="childrenCount > 0 || isExternalLink(route) ? undefined : route"
|
|
97
|
-
(mouseenter)="toggleItem(navigation_item)">
|
|
98
|
-
<img
|
|
99
|
-
[height]="16"
|
|
100
|
-
[width]="16"
|
|
101
|
-
[ngSrc]="menuIconsSrc() + icon + '.svg'" alt="Menu Chevron"/>
|
|
102
|
-
</a>
|
|
103
|
-
}
|
|
104
|
-
<ng-container
|
|
105
|
-
*ngTemplateOutlet="
|
|
106
|
-
menuClosedItem;
|
|
107
|
-
context: { item: navigation_item, level: 1, topPadding: 1 }
|
|
108
|
-
"
|
|
109
|
-
>
|
|
110
|
-
</ng-container>
|
|
111
|
-
@if (isExpanded && childrenCount > 0) {
|
|
112
|
-
<div class="static-item">
|
|
113
|
-
<span class="static-item__element">
|
|
114
|
-
{{ navigation_item.title }}
|
|
115
|
-
</span>
|
|
116
|
-
</div>
|
|
117
|
-
}
|
|
118
|
-
</div>
|
|
119
|
-
</ng-template>
|
|
120
|
-
|
|
121
|
-
<ng-template #menuClosedItem let-item="item" let-level="level" let-topPadding="topPadding">
|
|
122
|
-
@let isExpanded = expandedIds().has(item.code);
|
|
123
|
-
<div [id]="item.id">
|
|
124
|
-
@if (isExpanded && item.children.length > 0) {
|
|
125
|
-
<div
|
|
126
|
-
class="side-menu__subitems"
|
|
127
|
-
[class.padding-level-1]="level === 1"
|
|
128
|
-
[style.top.px]="topPadding * 40"
|
|
129
|
-
id="side-menu__subitems"
|
|
130
|
-
>
|
|
131
|
-
@for (navigation_item of item.children; track navigation_item; let index = $index) {
|
|
132
|
-
@let childrenCount = navigation_item.children.length;
|
|
133
|
-
@let code = navigation_item.code;
|
|
134
|
-
@let route = navigation_item.code;
|
|
135
|
-
@let isHighlighted = selectedSection() === code || parentItemCodes().has(code);
|
|
136
|
-
<a
|
|
137
|
-
class="side-menu__subitem"
|
|
138
|
-
[class.menu-item_selected]="isHighlighted"
|
|
139
|
-
(mouseenter)="childrenCount > 0 ? toggleItem(navigation_item) : collapseMenu(navigation_item)"
|
|
140
|
-
(click)="childrenCount === 0 ? handleNavigation(navigation_item) : toggleItem(navigation_item)"
|
|
141
|
-
[routerLink]="childrenCount > 0 || isExternalLink(route) ? undefined : route"
|
|
142
|
-
>
|
|
143
|
-
<span
|
|
144
|
-
[class.padding-level-1]="level === 1">{{
|
|
145
|
-
navigation_item.title
|
|
146
|
-
}}</span>
|
|
147
|
-
|
|
148
|
-
@if (childrenCount > 0) {
|
|
149
|
-
<img
|
|
150
|
-
class="chevron-right"
|
|
151
|
-
[height]="16"
|
|
152
|
-
[width]="16"
|
|
153
|
-
[ngSrc]="ICONS_SRC.CHEVRON_RIGHT" alt="Menu Chevron"/>
|
|
154
|
-
}
|
|
155
|
-
</a>
|
|
156
|
-
<ng-container
|
|
157
|
-
*ngTemplateOutlet="
|
|
158
|
-
menuClosedItem;
|
|
159
|
-
context: { item: navigation_item, level: level + 1, topPadding: index }
|
|
160
|
-
"
|
|
161
|
-
></ng-container>
|
|
162
|
-
}
|
|
163
|
-
</div>
|
|
164
|
-
}
|
|
165
|
-
</div>
|
|
166
|
-
</ng-template>
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
@closedMenuWidth: 48px;
|
|
3
|
-
@closedMenuLevelWidth: 294px;
|
|
4
|
-
@closedMenuLabelPaddingLevel1: 64px;
|
|
5
|
-
@closedMenuLabelPadding: 16px;
|
|
6
|
-
|
|
7
|
-
background: var(--page-menu-main);
|
|
8
|
-
height: 100vh;
|
|
9
|
-
max-height: 100vh;
|
|
10
|
-
z-index: 1000;
|
|
11
|
-
display: flex;
|
|
12
|
-
|
|
13
|
-
tui-icon {
|
|
14
|
-
width: 16px;
|
|
15
|
-
height: 16px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
::-webkit-scrollbar {
|
|
19
|
-
width: 6px;
|
|
20
|
-
background: var(--page-menu-main);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
::-webkit-scrollbar-thumb {
|
|
24
|
-
width: 6px;
|
|
25
|
-
background: #c3c7cf;
|
|
26
|
-
border-radius: 2px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.side-menu {
|
|
30
|
-
transition: all var(--page-menu-transition-time);
|
|
31
|
-
display: flex;
|
|
32
|
-
color: var(--main-white);
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
flex-shrink: 0;
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
|
|
37
|
-
&__header {
|
|
38
|
-
height: 64px;
|
|
39
|
-
width: 100%;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
|
|
44
|
-
&__chevron {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
transition: rotate 0.15s linear;
|
|
47
|
-
|
|
48
|
-
&_opened {
|
|
49
|
-
margin: 0 8px 0 0;
|
|
50
|
-
rotate: 0deg;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&_closed {
|
|
54
|
-
margin: 0 0 0 -4px;
|
|
55
|
-
rotate: 180deg;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.disabled {
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&__logo {
|
|
64
|
-
margin-left: 8px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&_opened {
|
|
69
|
-
width: var(--page-menu-opened-width);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&_closed {
|
|
73
|
-
width: var(--page-menu-closed-width);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__subitems,
|
|
77
|
-
.static-item {
|
|
78
|
-
position: absolute;
|
|
79
|
-
display: flex;
|
|
80
|
-
z-index: 3;
|
|
81
|
-
right: 0;
|
|
82
|
-
top: 0;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&__subitems {
|
|
87
|
-
width: @closedMenuLevelWidth;
|
|
88
|
-
box-shadow: 0 2px 6px 0 rgba(40, 40, 40, 25%);
|
|
89
|
-
left: @closedMenuLevelWidth;
|
|
90
|
-
|
|
91
|
-
&.padding-level-1 {
|
|
92
|
-
left: @closedMenuWidth;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.chevron-right {
|
|
96
|
-
margin-right: 16px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
a {
|
|
100
|
-
span {
|
|
101
|
-
height: 40px;
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
padding-left: 40px;
|
|
105
|
-
|
|
106
|
-
.padding-level-1 {
|
|
107
|
-
padding-left: @closedMenuLabelPaddingLevel1;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.static-item {
|
|
114
|
-
color: var(--main-black);
|
|
115
|
-
left: 48px;
|
|
116
|
-
top: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&__subitem,
|
|
120
|
-
.static-item__element {
|
|
121
|
-
box-sizing: border-box;
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
color: var(--main-white);
|
|
125
|
-
height: 40px;
|
|
126
|
-
width: 294px;
|
|
127
|
-
background: var(--page-menu-main);
|
|
128
|
-
justify-content: space-between;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&__subitem:hover {
|
|
132
|
-
background: var(--page-menu-main-hovered);
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.static-item__element {
|
|
137
|
-
justify-content: unset;
|
|
138
|
-
padding-left: 16px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.expanded-menu-content {
|
|
142
|
-
height: calc(100vh - 103px);
|
|
143
|
-
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
144
|
-
scrollbar-width: none; /* for Firefox */
|
|
145
|
-
overflow-y: scroll;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.expanded-menu-content::-webkit-scrollbar {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.collapsed-menu-content {
|
|
153
|
-
position: relative;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.menu-item {
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-direction: row;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
justify-content: start;
|
|
161
|
-
align-items: center;
|
|
162
|
-
box-sizing: border-box;
|
|
163
|
-
transition: background 0.9ms;
|
|
164
|
-
height: 40px;
|
|
165
|
-
|
|
166
|
-
&_selected {
|
|
167
|
-
background: var(--page-menu-active) !important;
|
|
168
|
-
box-shadow: inset 3px 0 var(--main-white);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&_selected:hover {
|
|
172
|
-
background: var(--page-menu-active) !important;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&__chevron {
|
|
176
|
-
margin-left: auto;
|
|
177
|
-
margin-right: 8px;
|
|
178
|
-
transition: rotate 0.15s linear;
|
|
179
|
-
|
|
180
|
-
&_rotated {
|
|
181
|
-
rotate: 180deg;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&__title {
|
|
186
|
-
.page-menu-text-14px {
|
|
187
|
-
font-family: Inter, serif;
|
|
188
|
-
font-size: 14px;
|
|
189
|
-
font-weight: 300;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
padding: 10px 0 10px 8px;
|
|
193
|
-
overflow: hidden;
|
|
194
|
-
color: var(--main-white);
|
|
195
|
-
font-variant-numeric: lining-nums tabular-nums;
|
|
196
|
-
text-overflow: ellipsis;
|
|
197
|
-
white-space: nowrap;
|
|
198
|
-
|
|
199
|
-
.page-menu-text-14px;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&__icon {
|
|
203
|
-
padding: 0 8px 0 16px;
|
|
204
|
-
|
|
205
|
-
&_closed {
|
|
206
|
-
display: flex;
|
|
207
|
-
height: 40px;
|
|
208
|
-
justify-content: center;
|
|
209
|
-
align-items: center;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&_closed:hover {
|
|
213
|
-
background: var(--page-menu-main-hovered);
|
|
214
|
-
cursor: pointer;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.menu-item:hover {
|
|
220
|
-
background: var(--page-menu-main-hovered);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
a {
|
|
225
|
-
text-decoration: none;
|
|
226
|
-
color: unset;
|
|
227
|
-
}
|
|
228
|
-
}
|