ngx-register-base 1.3.0 → 1.3.1
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/ng-package.json +15 -0
- package/package.json +12 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +33 -0
- package/schematics/ng-update/update-prefix/index.ts +38 -0
- package/schematics/utils/{utils.d.ts → utils.ts} +9 -2
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +91 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +67 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +176 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +8 -0
- package/src/lib/components/column-settings/column-settings.component.html +160 -0
- package/src/lib/components/column-settings/column-settings.component.less +131 -0
- package/src/lib/components/column-settings/column-settings.component.ts +352 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +65 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +79 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +114 -0
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +9 -0
- package/src/lib/components/column-settings/types/column-settings.types.ts +26 -0
- package/src/lib/components/divider/divider.component.html +4 -0
- package/src/lib/components/divider/divider.component.less +10 -0
- package/src/lib/components/divider/divider.component.ts +12 -0
- package/src/lib/components/filter-button/filter-button.component.html +20 -0
- package/src/lib/components/filter-button/filter-button.component.less +41 -0
- package/src/lib/components/filter-button/filter-button.component.ts +18 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +22 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +23 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +31 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +49 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +37 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +66 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +147 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +45 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +114 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +44 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +49 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +167 -0
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +97 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +18 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +55 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +69 -0
- package/src/lib/components/filters/components/filter-list.module.ts +29 -0
- package/src/lib/components/filters/register-table-filter.component.html +53 -0
- package/src/lib/components/filters/register-table-filter.component.less +17 -0
- package/src/lib/components/filters/register-table-filter.component.ts +167 -0
- package/src/lib/components/filters/register-table-filter.module.ts +22 -0
- package/src/lib/components/inputs/inputs.module.ts +104 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +49 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +70 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +52 -0
- package/src/lib/components/inputs/param-custom/param-custom.component.html +1 -0
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +9 -0
- package/src/lib/components/inputs/param-date/param-date.component.html +55 -0
- package/src/lib/components/inputs/param-date/param-date.component.less +67 -0
- package/src/lib/components/inputs/param-date/param-date.component.ts +77 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +45 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +75 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +67 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +70 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +72 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +101 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +67 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +103 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +128 -0
- package/src/lib/components/inputs/param-month/param-month.component.html +46 -0
- package/src/lib/components/inputs/param-month/param-month.component.less +72 -0
- package/src/lib/components/inputs/param-month/param-month.component.ts +55 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +39 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +71 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +76 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +84 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +108 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +448 -0
- package/src/lib/components/inputs/param-select/param-select.component.html +106 -0
- package/src/lib/components/inputs/param-select/param-select.component.less +26 -0
- package/src/lib/components/inputs/param-select/param-select.component.ts +318 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +8 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +53 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +13 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +29 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +19 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +76 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +134 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +8 -0
- package/src/lib/components/inputs/param-text/param-text.component.html +59 -0
- package/src/lib/components/inputs/param-text/param-text.component.less +33 -0
- package/src/lib/components/inputs/param-text/param-text.component.ts +36 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +61 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +21 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +33 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +40 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +69 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +14 -0
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +59 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.html +51 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.less +3 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +282 -0
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +176 -0
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +18 -0
- package/{lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts → src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts} +2 -1
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +39 -0
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +18 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +78 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +109 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +89 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +54 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +56 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +91 -0
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +5 -0
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +13 -0
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +4 -0
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +11 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +95 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +183 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +687 -0
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +32 -0
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +46 -0
- package/{lib/components/menu-constructor/store/sproc-menu.tokens.d.ts → src/lib/components/menu-constructor/store/sproc-menu.tokens.ts} +4 -1
- package/src/lib/components/page-menu/README.md +60 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +8 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +35 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +5 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +42 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.html +166 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.less +228 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +337 -0
- package/src/lib/components/paginator/paginator.component.html +97 -0
- package/src/lib/components/paginator/paginator.component.less +101 -0
- package/src/lib/components/paginator/paginator.component.ts +192 -0
- package/src/lib/components/paginator/types/paginator.types.ts +16 -0
- package/src/lib/components/register-table/consts/register-table.consts.ts +3 -0
- package/src/lib/components/register-table/directives/cell-template.directive.ts +11 -0
- package/src/lib/components/register-table/directives/header-template.directive.ts +11 -0
- package/src/lib/components/register-table/model/schema.ts +62 -0
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +28 -0
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +11 -0
- package/src/lib/components/register-table/register-table.component.html +257 -0
- package/src/lib/components/register-table/register-table.component.less +151 -0
- package/src/lib/components/register-table/register-table.component.ts +743 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +14 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +26 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +15 -0
- package/src/lib/components/search-input/search-input.component.html +6 -0
- package/src/lib/components/search-input/search-input.component.less +17 -0
- package/src/lib/components/search-input/search-input.component.ts +31 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.html +13 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.less +112 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +36 -0
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +11 -0
- package/src/lib/consts/date-time.consts.ts +1 -0
- package/src/lib/consts/index.ts +8 -0
- package/src/lib/consts/inputs.consts.ts +9 -0
- package/src/lib/consts/month.consts.ts +82 -0
- package/src/lib/consts/params.consts.ts +1 -0
- package/src/lib/consts/register-base.consts.ts +40 -0
- package/src/lib/core/form-group-wrapper/errors-consts.ts +6 -0
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +109 -0
- package/src/lib/core/input-control/input-control.ts +30 -0
- package/src/lib/core/param/param-base.ts +262 -0
- package/src/lib/core/param/param-date-base.ts +30 -0
- package/src/lib/core/param/param-select-base.ts +118 -0
- package/src/lib/core/param/param-text-base.ts +23 -0
- package/{lib/core/param/param.tokens.d.ts → src/lib/core/param/param.tokens.ts} +2 -1
- package/src/lib/core/register-base/register-base.store.ts +84 -0
- package/src/lib/core/register-base/register-base.ts +854 -0
- package/src/lib/directives/date/date-time.types.ts +36 -0
- package/src/lib/directives/date/format-date.pipe.ts +28 -0
- package/src/lib/directives/number/number-only.directive.ts +36 -0
- package/src/lib/directives/sticky/sticky-relative.directive.ts +30 -0
- package/src/lib/directives/sticky/sticky-relative.service.ts +34 -0
- package/src/lib/directives/sticky/sticky.directive.ts +189 -0
- package/src/lib/services/date-time.service.ts +399 -0
- package/src/lib/services/dialog/dialog.service.ts +62 -0
- package/{lib/services/dialog/dialog.types.d.ts → src/lib/services/dialog/dialog.types.ts} +8 -4
- package/src/lib/services/dom-intersection.service.ts +23 -0
- package/src/lib/services/filter/filters-state.service.ts +83 -0
- package/src/lib/services/filter/filters-transmit.service.ts +105 -0
- package/src/lib/services/filter/filters.service.ts +21 -0
- package/src/lib/services/inputs-state.service.ts +157 -0
- package/src/lib/services/inputs.service.ts +114 -0
- package/src/lib/services/key-pressed.service.ts +40 -0
- package/src/lib/services/resize-window-observer.service.ts +37 -0
- package/src/lib/services/selected-objects-state.service.ts +159 -0
- package/src/lib/store/fast-query-store.service.ts +132 -0
- package/{lib/types/event.types.d.ts → src/lib/types/event.types.ts} +1 -1
- package/src/lib/types/hasura.types.ts +41 -0
- package/src/lib/types/inputs.types.ts +63 -0
- package/src/lib/types/params.types.ts +42 -0
- package/src/lib/types/register-base.types.ts +161 -0
- package/src/lib/types/sub-types.ts +15 -0
- package/src/lib/types/user-profile.types.ts +18 -0
- package/src/lib/utils/functions.ts +11 -0
- package/src/lib/utils/get-url-segment.ts +46 -0
- package/src/lib/utils/prizm.shared.module.ts +176 -0
- package/src/lib/utils/rxjs.ts +33 -0
- package/src/lib/utils/select-all-utils.ts +16 -0
- package/tsconfig.lib.json +16 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.schematics.json +26 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +0 -129
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +0 -8
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +0 -249
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +0 -80
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +0 -10
- package/esm2022/lib/components/column-settings/index.mjs +0 -3
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +0 -7
- package/esm2022/lib/components/divider/divider.component.mjs +0 -16
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +0 -19
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +0 -31
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +0 -57
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +0 -110
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +0 -130
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +0 -89
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +0 -41
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +0 -45
- package/esm2022/lib/components/filters/index.mjs +0 -3
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +0 -155
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +0 -39
- package/esm2022/lib/components/index.mjs +0 -11
- package/esm2022/lib/components/inputs/index.mjs +0 -20
- package/esm2022/lib/components/inputs/inputs.module.mjs +0 -166
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +0 -45
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +0 -12
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +0 -76
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +0 -61
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +0 -86
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +0 -96
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +0 -50
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +0 -62
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +0 -309
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +0 -209
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +0 -21
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +0 -28
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +0 -3
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +0 -105
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +0 -10
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +0 -40
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +0 -38
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +0 -20
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +0 -37
- package/esm2022/lib/components/inputs/param-tree/index.mjs +0 -8
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +0 -207
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +0 -116
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +0 -20
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +0 -3
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +0 -2
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +0 -9
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +0 -80
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +0 -85
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +0 -15
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +0 -12
- package/esm2022/lib/components/menu-constructor/index.mjs +0 -5
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +0 -559
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +0 -3
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +0 -5
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +0 -3
- package/esm2022/lib/components/page-menu/index.mjs +0 -6
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +0 -9
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +0 -2
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +0 -4
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +0 -3
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +0 -275
- package/esm2022/lib/components/paginator/paginator.component.mjs +0 -159
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +0 -2
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +0 -4
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +0 -19
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +0 -18
- package/esm2022/lib/components/register-table/index.mjs +0 -4
- package/esm2022/lib/components/register-table/model/schema.mjs +0 -10
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +0 -33
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +0 -17
- package/esm2022/lib/components/register-table/register-table.component.mjs +0 -544
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +0 -18
- package/esm2022/lib/components/search-input/search-input.component.mjs +0 -28
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +0 -48
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +0 -19
- package/esm2022/lib/consts/date-time.consts.mjs +0 -2
- package/esm2022/lib/consts/index.mjs +0 -4
- package/esm2022/lib/consts/inputs.consts.mjs +0 -4
- package/esm2022/lib/consts/month.consts.mjs +0 -77
- package/esm2022/lib/consts/params.consts.mjs +0 -2
- package/esm2022/lib/consts/register-base.consts.mjs +0 -26
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +0 -8
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +0 -81
- package/esm2022/lib/core/form-group-wrapper/index.mjs +0 -2
- package/esm2022/lib/core/index.mjs +0 -5
- package/esm2022/lib/core/input-control/index.mjs +0 -2
- package/esm2022/lib/core/input-control/input-control.mjs +0 -11
- package/esm2022/lib/core/param/index.mjs +0 -6
- package/esm2022/lib/core/param/param-base.mjs +0 -215
- package/esm2022/lib/core/param/param-date-base.mjs +0 -26
- package/esm2022/lib/core/param/param-select-base.mjs +0 -114
- package/esm2022/lib/core/param/param-text-base.mjs +0 -25
- package/esm2022/lib/core/param/param.tokens.mjs +0 -4
- package/esm2022/lib/core/register-base/index.mjs +0 -3
- package/esm2022/lib/core/register-base/register-base.mjs +0 -575
- package/esm2022/lib/core/register-base/register-base.store.mjs +0 -43
- package/esm2022/lib/directives/date/date-time.types.mjs +0 -34
- package/esm2022/lib/directives/date/format-date.pipe.mjs +0 -33
- package/esm2022/lib/directives/index.mjs +0 -3
- package/esm2022/lib/directives/number/number-only.directive.mjs +0 -41
- package/esm2022/lib/directives/sticky/index.mjs +0 -3
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +0 -32
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +0 -32
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +0 -169
- package/esm2022/lib/services/date-time.service.mjs +0 -314
- package/esm2022/lib/services/dialog/dialog.service.mjs +0 -53
- package/esm2022/lib/services/dialog/dialog.types.mjs +0 -2
- package/esm2022/lib/services/dialog/index.mjs +0 -3
- package/esm2022/lib/services/dom-intersection.service.mjs +0 -22
- package/esm2022/lib/services/filter/filters-state.service.mjs +0 -65
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +0 -82
- package/esm2022/lib/services/filter/filters.service.mjs +0 -23
- package/esm2022/lib/services/index.mjs +0 -8
- package/esm2022/lib/services/inputs-state.service.mjs +0 -130
- package/esm2022/lib/services/inputs.service.mjs +0 -88
- package/esm2022/lib/services/key-pressed.service.mjs +0 -37
- package/esm2022/lib/services/resize-window-observer.service.mjs +0 -33
- package/esm2022/lib/services/selected-objects-state.service.mjs +0 -123
- package/esm2022/lib/store/fast-query-store.service.mjs +0 -110
- package/esm2022/lib/store/index.mjs +0 -2
- package/esm2022/lib/types/event.types.mjs +0 -2
- package/esm2022/lib/types/hasura.types.mjs +0 -2
- package/esm2022/lib/types/index.mjs +0 -7
- package/esm2022/lib/types/inputs.types.mjs +0 -19
- package/esm2022/lib/types/params.types.mjs +0 -2
- package/esm2022/lib/types/register-base.types.mjs +0 -6
- package/esm2022/lib/types/sub-types.mjs +0 -2
- package/esm2022/lib/types/user-profile.types.mjs +0 -2
- package/esm2022/lib/utils/functions.mjs +0 -10
- package/esm2022/lib/utils/get-url-segment.mjs +0 -35
- package/esm2022/lib/utils/index.mjs +0 -5
- package/esm2022/lib/utils/prizm.shared.module.mjs +0 -284
- package/esm2022/lib/utils/rxjs.mjs +0 -28
- package/esm2022/lib/utils/select-all-utils.mjs +0 -11
- package/esm2022/ngx-register-base.mjs +0 -5
- package/esm2022/public-api.mjs +0 -9
- package/fesm2022/ngx-register-base.mjs +0 -7465
- package/fesm2022/ngx-register-base.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +0 -33
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +0 -7
- package/lib/components/column-settings/column-settings.component.d.ts +0 -80
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +0 -24
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +0 -8
- package/lib/components/column-settings/types/column-settings.types.d.ts +0 -22
- package/lib/components/divider/divider.component.d.ts +0 -6
- package/lib/components/filter-button/filter-button.component.d.ts +0 -8
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +0 -14
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +0 -25
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +0 -39
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +0 -41
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +0 -20
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +0 -15
- package/lib/components/filters/components/filter-list.module.d.ts +0 -15
- package/lib/components/filters/register-table-filter.component.d.ts +0 -40
- package/lib/components/filters/register-table-filter.module.d.ts +0 -13
- package/lib/components/inputs/inputs.module.d.ts +0 -31
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +0 -19
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +0 -6
- package/lib/components/inputs/param-date/param-date.component.d.ts +0 -20
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +0 -26
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +0 -25
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +0 -28
- package/lib/components/inputs/param-month/param-month.component.d.ts +0 -18
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +0 -21
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +0 -46
- package/lib/components/inputs/param-select/param-select.component.d.ts +0 -30
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +0 -8
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +0 -2
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +0 -19
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +0 -8
- package/lib/components/inputs/param-text/param-text.component.d.ts +0 -10
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +0 -10
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +0 -9
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +0 -7
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +0 -41
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +0 -37
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +0 -10
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +0 -32
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +0 -7
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +0 -31
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +0 -30
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +0 -6
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +0 -5
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +0 -113
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +0 -24
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +0 -36
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +0 -7
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +0 -30
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +0 -3
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +0 -36
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +0 -48
- package/lib/components/paginator/paginator.component.d.ts +0 -52
- package/lib/components/paginator/types/paginator.types.d.ts +0 -15
- package/lib/components/register-table/consts/register-table.consts.d.ts +0 -3
- package/lib/components/register-table/directives/cell-template.directive.d.ts +0 -9
- package/lib/components/register-table/directives/header-template.directive.d.ts +0 -9
- package/lib/components/register-table/model/schema.d.ts +0 -52
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +0 -8
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +0 -7
- package/lib/components/register-table/register-table.component.d.ts +0 -165
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +0 -9
- package/lib/components/search-input/search-input.component.d.ts +0 -11
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +0 -14
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +0 -9
- package/lib/consts/date-time.consts.d.ts +0 -1
- package/lib/consts/index.d.ts +0 -3
- package/lib/consts/inputs.consts.d.ts +0 -4
- package/lib/consts/month.consts.d.ts +0 -49
- package/lib/consts/params.consts.d.ts +0 -1
- package/lib/consts/register-base.consts.d.ts +0 -19
- package/lib/core/form-group-wrapper/errors-consts.d.ts +0 -5
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +0 -15
- package/lib/core/input-control/input-control.d.ts +0 -11
- package/lib/core/param/param-base.d.ts +0 -68
- package/lib/core/param/param-date-base.d.ts +0 -18
- package/lib/core/param/param-select-base.d.ts +0 -42
- package/lib/core/param/param-text-base.d.ts +0 -15
- package/lib/core/register-base/register-base.d.ts +0 -168
- package/lib/core/register-base/register-base.store.d.ts +0 -35
- package/lib/directives/date/date-time.types.d.ts +0 -32
- package/lib/directives/date/format-date.pipe.d.ts +0 -10
- package/lib/directives/number/number-only.directive.d.ts +0 -10
- package/lib/directives/sticky/sticky-relative.directive.d.ts +0 -13
- package/lib/directives/sticky/sticky-relative.service.d.ts +0 -15
- package/lib/directives/sticky/sticky.directive.d.ts +0 -27
- package/lib/services/date-time.service.d.ts +0 -80
- package/lib/services/dialog/dialog.service.d.ts +0 -22
- package/lib/services/dom-intersection.service.d.ts +0 -8
- package/lib/services/filter/filters-state.service.d.ts +0 -21
- package/lib/services/filter/filters-transmit.service.d.ts +0 -28
- package/lib/services/filter/filters.service.d.ts +0 -12
- package/lib/services/inputs-state.service.d.ts +0 -57
- package/lib/services/inputs.service.d.ts +0 -28
- package/lib/services/key-pressed.service.d.ts +0 -15
- package/lib/services/resize-window-observer.service.d.ts +0 -11
- package/lib/services/selected-objects-state.service.d.ts +0 -47
- package/lib/store/fast-query-store.service.d.ts +0 -19
- package/lib/types/hasura.types.d.ts +0 -35
- package/lib/types/inputs.types.d.ts +0 -41
- package/lib/types/params.types.d.ts +0 -27
- package/lib/types/register-base.types.d.ts +0 -123
- package/lib/types/sub-types.d.ts +0 -8
- package/lib/types/user-profile.types.d.ts +0 -17
- package/lib/utils/functions.d.ts +0 -3
- package/lib/utils/get-url-segment.d.ts +0 -7
- package/lib/utils/prizm.shared.module.d.ts +0 -14
- package/lib/utils/rxjs.d.ts +0 -10
- package/lib/utils/select-all-utils.d.ts +0 -8
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +0 -2
- package/schematics/ng-update/replace-menu-state-token/index.js +0 -29
- package/schematics/ng-update/replace-menu-state-token/index.js.map +0 -1
- package/schematics/ng-update/update-prefix/index.d.ts +0 -2
- package/schematics/ng-update/update-prefix/index.js +0 -33
- package/schematics/ng-update/update-prefix/index.js.map +0 -1
- package/schematics/utils/utils.js +0 -25
- package/schematics/utils/utils.js.map +0 -1
- /package/{lib/components/column-settings/index.d.ts → src/lib/components/column-settings/index.ts} +0 -0
- /package/{lib/components/filters/index.d.ts → src/lib/components/filters/index.ts} +0 -0
- /package/{lib/components/index.d.ts → src/lib/components/index.ts} +0 -0
- /package/{lib/components/inputs/index.d.ts → src/lib/components/inputs/index.ts} +0 -0
- /package/{lib/components/inputs/param-switcher-date-time-range/index.d.ts → src/lib/components/inputs/param-switcher-date-time-range/index.ts} +0 -0
- /package/{lib/components/inputs/param-tree/index.d.ts → src/lib/components/inputs/param-tree/index.ts} +0 -0
- /package/{lib/components/menu-constructor/index.d.ts → src/lib/components/menu-constructor/index.ts} +0 -0
- /package/{lib/components/page-menu/index.d.ts → src/lib/components/page-menu/index.ts} +0 -0
- /package/{lib/components/register-table/index.d.ts → src/lib/components/register-table/index.ts} +0 -0
- /package/{lib/core/form-group-wrapper/index.d.ts → src/lib/core/form-group-wrapper/index.ts} +0 -0
- /package/{lib/core/index.d.ts → src/lib/core/index.ts} +0 -0
- /package/{lib/core/input-control/index.d.ts → src/lib/core/input-control/index.ts} +0 -0
- /package/{lib/core/param/index.d.ts → src/lib/core/param/index.ts} +0 -0
- /package/{lib/core/register-base/index.d.ts → src/lib/core/register-base/index.ts} +0 -0
- /package/{lib/directives/index.d.ts → src/lib/directives/index.ts} +0 -0
- /package/{lib/directives/sticky/index.d.ts → src/lib/directives/sticky/index.ts} +0 -0
- /package/{lib/services/dialog/index.d.ts → src/lib/services/dialog/index.ts} +0 -0
- /package/{lib/services/index.d.ts → src/lib/services/index.ts} +0 -0
- /package/{lib/store/index.d.ts → src/lib/store/index.ts} +0 -0
- /package/{lib/types/index.d.ts → src/lib/types/index.ts} +0 -0
- /package/{lib/utils/index.d.ts → src/lib/utils/index.ts} +0 -0
- /package/{public-api.d.ts → src/public-api.ts} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
DestroyRef,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
inject,
|
|
7
|
+
Input,
|
|
8
|
+
OnInit,
|
|
9
|
+
Output,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { map } from 'rxjs';
|
|
12
|
+
import { FilterListService } from '../filter-list.service';
|
|
13
|
+
import { Router } from '@angular/router';
|
|
14
|
+
import { getLastSegmentOfPathName } from '../../../../../utils/get-url-segment';
|
|
15
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
16
|
+
import { EInputsAction, EInputsState, GqlFields } from '../../../../../types';
|
|
17
|
+
import { FiltersStateService } from '../../../../../services';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'sproc-filter-list-header',
|
|
21
|
+
templateUrl: './filter-list-header.component.html',
|
|
22
|
+
styleUrls: ['./filter-list-header.component.less'],
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
providers: [FilterListService],
|
|
25
|
+
})
|
|
26
|
+
export class FilterListHeaderComponent implements OnInit {
|
|
27
|
+
@Input() total: number | null = 0;
|
|
28
|
+
@Input() showTotal = true;
|
|
29
|
+
@Input() showPin = true;
|
|
30
|
+
@Input() showCloseButton = true;
|
|
31
|
+
@Input() acceptButtonDisabled = false;
|
|
32
|
+
@Input() applyButtonDisabled = false;
|
|
33
|
+
@Input() filterListHeaderTitle = 'Фильтр';
|
|
34
|
+
|
|
35
|
+
@Output() pinnedChange = new EventEmitter<boolean>();
|
|
36
|
+
@Output() applyFilter = new EventEmitter<GqlFields>();
|
|
37
|
+
@Output() resetFilter = new EventEmitter<void>();
|
|
38
|
+
|
|
39
|
+
private readonly _dr = inject(DestroyRef);
|
|
40
|
+
|
|
41
|
+
public readonly count$ = this._filterStateService.count$;
|
|
42
|
+
public readonly filterState$ = this._filterStateService.state$.pipe(
|
|
43
|
+
map((filterState) => filterState.state)
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
public readonly FilterState = EInputsState;
|
|
47
|
+
|
|
48
|
+
constructor(
|
|
49
|
+
private readonly _router: Router,
|
|
50
|
+
private readonly _filterStateService: FiltersStateService<any>,
|
|
51
|
+
private readonly _filterListService: FilterListService
|
|
52
|
+
) {}
|
|
53
|
+
|
|
54
|
+
public ngOnInit(): void {
|
|
55
|
+
this._filterListService.modulePath = getLastSegmentOfPathName(this._router.url);
|
|
56
|
+
|
|
57
|
+
this._filterListService.apply$.pipe(takeUntilDestroyed(this._dr)).subscribe((gql) => {
|
|
58
|
+
this.applyFilter.emit(gql);
|
|
59
|
+
this._filterListService.savePinnedFilters();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public onTogglePin(): void {
|
|
64
|
+
this._filterStateService.togglePin();
|
|
65
|
+
this.pinnedChange.emit(this._filterStateService.isPin);
|
|
66
|
+
this._filterListService.savePinnedFilters();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public onSavedList(): void {
|
|
70
|
+
this._filterStateService.setState({
|
|
71
|
+
state: EInputsState.SAVED_LIST,
|
|
72
|
+
action: EInputsAction.OPEN,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public onSave(): void {
|
|
77
|
+
this._filterStateService.setState({
|
|
78
|
+
state: EInputsState.ON_SAVE_FILTER,
|
|
79
|
+
action: EInputsAction.AFTER_SAVE_FILTER,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public onApplyFilter(): void {
|
|
84
|
+
this._filterListService.applyFilter();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public onReset(): void {
|
|
88
|
+
this._filterListService.clear();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public onClose(): void {
|
|
92
|
+
this._filterStateService.setPin(false);
|
|
93
|
+
this._filterStateService.setState({ state: EInputsState.HIDDEN, action: EInputsAction.CANCEL });
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public onApplySavedFilter(): void {
|
|
97
|
+
this._filterListService.applySavedFilter();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public onSaveFilter(): void {
|
|
101
|
+
this._filterListService.saveFilter();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public onBack(): void {
|
|
105
|
+
this._filterStateService.setState({
|
|
106
|
+
state: EInputsState.FILTER_LIST,
|
|
107
|
+
action: EInputsAction.OPEN,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
protected get isPin(): boolean {
|
|
112
|
+
return this._filterStateService.isPin;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<div class="sproc-filter-list-saved">
|
|
2
|
+
<prizm-loader [showLoader]="$any(loading$ | async)" [overlay]="true">
|
|
3
|
+
<span *ngIf="savedItems.length === 0" class="input-text-12px"
|
|
4
|
+
>Сохраненых фильтров не найдено
|
|
5
|
+
</span>
|
|
6
|
+
<div
|
|
7
|
+
*ngFor="let item of savedItems; let i = index"
|
|
8
|
+
[class.selected]="item.selected"
|
|
9
|
+
class="sproc-filter-list-saved-item"
|
|
10
|
+
(click)="onSelect(item.id)"
|
|
11
|
+
>
|
|
12
|
+
<div class="input-text-12px">{{ item.name }}</div>
|
|
13
|
+
|
|
14
|
+
<div class="sproc-filter-list-saved-item-action-buttons">
|
|
15
|
+
<button
|
|
16
|
+
[icon]="item.favorite ? 'social-star-fill' : 'social-star'"
|
|
17
|
+
prizmIconButton
|
|
18
|
+
appearanceType="ghost"
|
|
19
|
+
[appearance]="item.favorite ? 'primary' : 'secondary'"
|
|
20
|
+
size="xl"
|
|
21
|
+
(click)="onFavorite(item.id)"
|
|
22
|
+
></button>
|
|
23
|
+
|
|
24
|
+
<button
|
|
25
|
+
[icon]="'editor-mode'"
|
|
26
|
+
prizmIconButton
|
|
27
|
+
appearanceType="ghost"
|
|
28
|
+
appearance="secondary"
|
|
29
|
+
size="xl"
|
|
30
|
+
(click)="onEdit(item.id)"
|
|
31
|
+
></button>
|
|
32
|
+
|
|
33
|
+
<button
|
|
34
|
+
[icon]="'delete'"
|
|
35
|
+
prizmIconButton
|
|
36
|
+
appearanceType="ghost"
|
|
37
|
+
appearance="secondary"
|
|
38
|
+
size="xl"
|
|
39
|
+
(click)="onDelete(item.id)"
|
|
40
|
+
></button>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</prizm-loader>
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
.sproc-filter-list-saved {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: 8px 0;
|
|
6
|
+
gap: 1px;
|
|
7
|
+
|
|
8
|
+
.sproc-filter-list-saved-item {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
height: 32px;
|
|
14
|
+
padding: 0 8px 0 16px;
|
|
15
|
+
|
|
16
|
+
.sproc-filter-list-saved-item-action-buttons {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
|
|
20
|
+
button {
|
|
21
|
+
height: 32px;
|
|
22
|
+
min-height: 32px;
|
|
23
|
+
width: 32px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
::ng-deep prizm-wrapper {
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
|
|
29
|
+
:hover {
|
|
30
|
+
color: var(--brand-blue);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.prizm-icon-16.social-star-fill::before {
|
|
34
|
+
color: var(--brand-blue) !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sproc-filter-list-saved-item:hover {
|
|
41
|
+
background-color: var(--brand-hovered);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.selected {
|
|
47
|
+
background-color: #d0edff !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
inject,
|
|
6
|
+
OnDestroy,
|
|
7
|
+
OnInit,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { Router } from '@angular/router';
|
|
10
|
+
import { map, Subscription } from 'rxjs';
|
|
11
|
+
import { SETTINGS_TYPE, USER_PROFILE_LOADER, USER_SETTINGS_LOADER } from '../../../../../consts';
|
|
12
|
+
import { EInputsAction, EInputsState, ITpUserSettings } from '../../../../../types';
|
|
13
|
+
import { FiltersStateService } from '../../../../../services';
|
|
14
|
+
import { getLastSegmentOfPathName } from '../../../../../utils/get-url-segment';
|
|
15
|
+
|
|
16
|
+
interface IFilterSavedItem {
|
|
17
|
+
id: string;
|
|
18
|
+
user_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
favorite: boolean;
|
|
21
|
+
selected: boolean;
|
|
22
|
+
filter: Record<string, any>;
|
|
23
|
+
settingType: SETTINGS_TYPE;
|
|
24
|
+
sourceSettings: ITpUserSettings;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'sproc-filter-list-saved',
|
|
29
|
+
templateUrl: './filter-list-saved.component.html',
|
|
30
|
+
styleUrls: ['./filter-list-saved.component.less'],
|
|
31
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
|
+
})
|
|
33
|
+
export class FilterListSavedComponent implements OnInit, OnDestroy {
|
|
34
|
+
public savedItems: IFilterSavedItem[] = [];
|
|
35
|
+
|
|
36
|
+
private filterStateSubscription: Subscription | null = null;
|
|
37
|
+
private savedFiltersSubscription: Subscription | null = null;
|
|
38
|
+
private selectedFilter: ITpUserSettings | null = null;
|
|
39
|
+
private modulePath?: string;
|
|
40
|
+
|
|
41
|
+
private readonly _userSettingsStore = inject(USER_SETTINGS_LOADER);
|
|
42
|
+
private readonly _userProfileService = inject(USER_PROFILE_LOADER);
|
|
43
|
+
|
|
44
|
+
public readonly loading$ = this._userSettingsStore.loading$;
|
|
45
|
+
|
|
46
|
+
constructor(
|
|
47
|
+
private readonly _router: Router,
|
|
48
|
+
private readonly _filterStateService: FiltersStateService<any>,
|
|
49
|
+
private readonly _cdr: ChangeDetectorRef
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
public ngOnInit(): void {
|
|
53
|
+
this.modulePath = getLastSegmentOfPathName(this._router.url);
|
|
54
|
+
this.subscribeOnSettings();
|
|
55
|
+
this.subscribeOnFilterState();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public ngOnDestroy(): void {
|
|
59
|
+
this.filterStateSubscription?.unsubscribe();
|
|
60
|
+
this.savedFiltersSubscription?.unsubscribe();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private subscribeOnFilterState(): void {
|
|
64
|
+
this.filterStateSubscription = this._filterStateService.state$.subscribe((state) => {
|
|
65
|
+
if (state.state === EInputsState.SAVED_LIST) {
|
|
66
|
+
this._userSettingsStore.fetchUserSettingsByUserId({
|
|
67
|
+
userId: this._userProfileService.getUserProfile().id,
|
|
68
|
+
settingsType: SETTINGS_TYPE.FILTER,
|
|
69
|
+
moduleName: this.modulePath!,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private subscribeOnSettings(): void {
|
|
76
|
+
this.savedFiltersSubscription = this._userSettingsStore.settings$
|
|
77
|
+
.pipe(
|
|
78
|
+
map((filters) =>
|
|
79
|
+
filters.map((filter) => ({
|
|
80
|
+
id: filter.id,
|
|
81
|
+
user_id: filter.id_user,
|
|
82
|
+
name: filter.name,
|
|
83
|
+
selected: false,
|
|
84
|
+
favorite: filter.settings.favorite!,
|
|
85
|
+
filter: filter.settings.filter!,
|
|
86
|
+
settingType: filter.settings_type,
|
|
87
|
+
sourceSettings: filter,
|
|
88
|
+
}))
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
.subscribe((values) => {
|
|
92
|
+
this.savedItems = values.filter(
|
|
93
|
+
(value) => value.settingType === undefined || value.settingType === SETTINGS_TYPE.FILTER
|
|
94
|
+
);
|
|
95
|
+
this._cdr.markForCheck();
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public onSelect(id: string): void {
|
|
100
|
+
this.savedItems = this.savedItems.map((item) => {
|
|
101
|
+
if (id === item.id) {
|
|
102
|
+
this.selectedFilter = item.sourceSettings;
|
|
103
|
+
this._filterStateService.setSelectedSavedFilter(item.sourceSettings);
|
|
104
|
+
return { ...item, selected: true };
|
|
105
|
+
}
|
|
106
|
+
return { ...item, selected: false };
|
|
107
|
+
});
|
|
108
|
+
this._cdr.markForCheck();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public onFavorite(id: string): void {
|
|
112
|
+
const foundedItem = this.savedItems.find((item) => item.id === id);
|
|
113
|
+
const defaultFounded = this.savedItems.find((item) => item.favorite && item.id !== id);
|
|
114
|
+
if (!foundedItem) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
foundedItem.favorite = !foundedItem.favorite;
|
|
118
|
+
|
|
119
|
+
if (defaultFounded) {
|
|
120
|
+
this.savedItems = this.savedItems.map((item) => {
|
|
121
|
+
const newItem = { ...item };
|
|
122
|
+
|
|
123
|
+
if (item.sourceSettings.id === defaultFounded.sourceSettings.id) {
|
|
124
|
+
newItem.favorite = false;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return newItem;
|
|
128
|
+
});
|
|
129
|
+
this._userSettingsStore.updateUserSettingsSettingsById({
|
|
130
|
+
id: defaultFounded.sourceSettings.id,
|
|
131
|
+
settings: {
|
|
132
|
+
...defaultFounded.sourceSettings.settings,
|
|
133
|
+
favorite: false,
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
this._userSettingsStore.updateUserSettingsSettingsById({
|
|
138
|
+
id,
|
|
139
|
+
settings: {
|
|
140
|
+
...foundedItem.sourceSettings.settings,
|
|
141
|
+
favorite: foundedItem.favorite,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
this._cdr.markForCheck();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public onEdit(id: string): void {
|
|
148
|
+
const foundedFilter = this.savedItems.find((item) => id === item.id);
|
|
149
|
+
if (foundedFilter) {
|
|
150
|
+
this._filterStateService.setSelectedSavedFilter(foundedFilter.sourceSettings);
|
|
151
|
+
this._filterStateService.setState({
|
|
152
|
+
state: EInputsState.ON_EDIT_FILTER,
|
|
153
|
+
action: EInputsAction.EDIT_FILTER,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
public onDelete(id: string): void {
|
|
159
|
+
const foundedIndex = this.savedItems.findIndex((item) => item.id === id);
|
|
160
|
+
if (foundedIndex === -1) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.savedItems.splice(foundedIndex, 1);
|
|
164
|
+
this._userSettingsStore.deleteUserSettingsById({ id });
|
|
165
|
+
this._cdr.markForCheck();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { inject, Injectable } from '@angular/core';
|
|
2
|
+
import { ReplaySubject, take } from 'rxjs';
|
|
3
|
+
import { EInputsAction, EInputsState, GqlFields, ITpUserSettings } from '../../../../types';
|
|
4
|
+
import { FiltersService, FiltersStateService } from '../../../../services';
|
|
5
|
+
import { SETTINGS_TYPE, USER_SETTINGS_LOADER } from '../../../../consts';
|
|
6
|
+
|
|
7
|
+
@Injectable()
|
|
8
|
+
export class FilterListService {
|
|
9
|
+
public readonly apply$ = new ReplaySubject<GqlFields>();
|
|
10
|
+
|
|
11
|
+
public modulePath!: string;
|
|
12
|
+
|
|
13
|
+
private _pinnedFilterSetting: ITpUserSettings | undefined;
|
|
14
|
+
|
|
15
|
+
private readonly settingsStore = inject(USER_SETTINGS_LOADER);
|
|
16
|
+
|
|
17
|
+
constructor(
|
|
18
|
+
private readonly _filtersService: FiltersService<any>,
|
|
19
|
+
private readonly _filterStateService: FiltersStateService<any>
|
|
20
|
+
) {}
|
|
21
|
+
|
|
22
|
+
public applyFilter(): void {
|
|
23
|
+
this.apply$.next(this._filtersService.gqlFilter);
|
|
24
|
+
this._filterStateService.setState({
|
|
25
|
+
state: EInputsState.FILTER_LIST,
|
|
26
|
+
action: EInputsAction.APPLY_FILTERS,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public applySavedFilter(): void {
|
|
31
|
+
const savedFilter = this._filterStateService.getSelectedSavedFilter();
|
|
32
|
+
if (savedFilter) {
|
|
33
|
+
this._filtersService.setUserSettingsFilterValues(savedFilter.settings?.filter ?? []);
|
|
34
|
+
this._filterStateService.setSelectedSavedFilter(null);
|
|
35
|
+
this._filterStateService.setState({
|
|
36
|
+
state: EInputsState.FILTER_LIST,
|
|
37
|
+
action: EInputsAction.APPLY_SAVED_FILTER,
|
|
38
|
+
});
|
|
39
|
+
this.apply$.next(this._filtersService.gqlFilter);
|
|
40
|
+
} else {
|
|
41
|
+
console.error('Выбранный фильтр не найден');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public saveFilter(): void {
|
|
46
|
+
if (!this.modulePath) {
|
|
47
|
+
console.error('modulePath не инициализирован');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const saved = this._filterStateService.getSelectedSavedFilter();
|
|
51
|
+
this.settingsStore.upsertEnded$.pipe(take(1)).subscribe(() => {
|
|
52
|
+
this._filterStateService.setSelectedSavedFilter(null);
|
|
53
|
+
this._filterStateService.setState({
|
|
54
|
+
state: EInputsState.SAVED_LIST,
|
|
55
|
+
action: EInputsAction.AFTER_SAVE_FILTER,
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
this.settingsStore.upsertUserSettingsByUserId({
|
|
60
|
+
settings: {
|
|
61
|
+
id: saved?.id ?? undefined,
|
|
62
|
+
name: this._filterStateService.name,
|
|
63
|
+
settings: {
|
|
64
|
+
favorite: saved?.settings?.favorite ?? false,
|
|
65
|
+
filter: this._filtersService.userSettingsFilter,
|
|
66
|
+
},
|
|
67
|
+
module_name: this.modulePath,
|
|
68
|
+
settings_type: SETTINGS_TYPE.FILTER,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public clear(): void {
|
|
74
|
+
this._filtersService.clear();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public savePinnedFilters(): void {
|
|
78
|
+
this.settingsStore
|
|
79
|
+
.upsertReturningOne$(SETTINGS_TYPE.REGISTER_PINNED_INPUTS)
|
|
80
|
+
.subscribe((setting) => {
|
|
81
|
+
this._pinnedFilterSetting = setting ?? undefined;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
this.settingsStore.upsertUserSettingsByUserId({
|
|
85
|
+
settings: {
|
|
86
|
+
id: this._pinnedFilterSetting?.id,
|
|
87
|
+
settings: {
|
|
88
|
+
filter: this._filtersService.userSettingsFilter,
|
|
89
|
+
pinned: this._filterStateService.isPin,
|
|
90
|
+
},
|
|
91
|
+
module_name: this.modulePath,
|
|
92
|
+
settings_type: SETTINGS_TYPE.REGISTER_PINNED_INPUTS,
|
|
93
|
+
},
|
|
94
|
+
hidden: true,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div class="panel-head" (click)="toggleHeader()">
|
|
2
|
+
<div class="title">
|
|
3
|
+
<span class="title__font">{{ label() }}</span>
|
|
4
|
+
@if (haveAppliedFilters()) {
|
|
5
|
+
<div class="title__wrapper--relative">
|
|
6
|
+
<div class="title-wrapper--absolute indicator__wrapper">
|
|
7
|
+
<div class="indicator__icon indicator--danger"></div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
}
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<prizm-icons [name]="isOpen() ? 'chevrons-up' : 'chevrons-down'" size="16"></prizm-icons>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="filters-block" [attr.show]="isOpen()">
|
|
17
|
+
<ng-content></ng-content>
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import 'fonts';
|
|
2
|
+
@import 'indicator';
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
padding-top: 8px;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
|
|
10
|
+
.panel-head {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
padding-right: 4px;
|
|
14
|
+
height: 24px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
border-bottom: 1px solid var(--brand-blue);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
.title {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
height: 20px;
|
|
23
|
+
|
|
24
|
+
&__font {
|
|
25
|
+
.main-subtitle;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--has-filters {
|
|
29
|
+
&::after {
|
|
30
|
+
.indicator(6px, var(--brand-danger));
|
|
31
|
+
|
|
32
|
+
margin-left: 5px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.filters-block {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
padding: 0 2px;
|
|
43
|
+
transform-origin: top;
|
|
44
|
+
transition: max-height 0.4s;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
|
|
47
|
+
&[show='true'] {
|
|
48
|
+
max-height: 1000px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[show='false'] {
|
|
52
|
+
max-height: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
computed,
|
|
5
|
+
contentChildren,
|
|
6
|
+
inject,
|
|
7
|
+
Injector,
|
|
8
|
+
input,
|
|
9
|
+
runInInjectionContext,
|
|
10
|
+
signal,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import { NgControl } from '@angular/forms';
|
|
13
|
+
import { combineLatest, of, switchMap } from 'rxjs';
|
|
14
|
+
import { toObservable, toSignal } from '@angular/core/rxjs-interop';
|
|
15
|
+
import { IInputControl } from '../../../../../types';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'sproc-filters-section',
|
|
19
|
+
templateUrl: './filters-section.component.html',
|
|
20
|
+
styleUrls: ['./filters-section.component.less'],
|
|
21
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
+
})
|
|
23
|
+
export class FiltersSectionComponent {
|
|
24
|
+
public controls = contentChildren<NgControl>(NgControl, { descendants: true });
|
|
25
|
+
|
|
26
|
+
public label = input<string>('');
|
|
27
|
+
|
|
28
|
+
protected isOpen = signal(true);
|
|
29
|
+
protected haveAppliedFilters = computed(() => this._sameControlApplied());
|
|
30
|
+
|
|
31
|
+
private _sameControlApplied = computed(() => this._checkSomeControlApplied());
|
|
32
|
+
|
|
33
|
+
private _controlsChanges = toSignal(
|
|
34
|
+
toObservable(this.controls).pipe(
|
|
35
|
+
switchMap((controls) =>
|
|
36
|
+
combineLatest(
|
|
37
|
+
controls.map(({ control }) =>
|
|
38
|
+
runInInjectionContext(this._injector, () => {
|
|
39
|
+
const applied = (control as IInputControl)?.applied;
|
|
40
|
+
|
|
41
|
+
return applied ? toObservable(applied) : of(false);
|
|
42
|
+
})
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
)
|
|
46
|
+
),
|
|
47
|
+
{ initialValue: [] }
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
private readonly _injector = inject(Injector);
|
|
51
|
+
|
|
52
|
+
protected toggleHeader(): void {
|
|
53
|
+
this.isOpen.update((isOpen) => !isOpen);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private _checkSomeControlApplied(): boolean {
|
|
57
|
+
return this._controlsChanges().some((controlValue) => {
|
|
58
|
+
if (!controlValue) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (Array.isArray(controlValue)) {
|
|
63
|
+
return controlValue.some((value) => !!value);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return true;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { FilterListFooterComponent } from './filter-list/filter-list-footer/filter-list-footer.component';
|
|
5
|
+
import { FilterListHeaderComponent } from './filter-list/filter-list-header/filter-list-header.component';
|
|
6
|
+
import { FilterEditComponent } from './filter-list/filter-edit/filter-edit.component';
|
|
7
|
+
import { FilterListSavedComponent } from './filter-list/filter-list-saved/filter-list-saved.component';
|
|
8
|
+
import { FiltersSectionComponent } from './filter-list/filters-section/filters-section.component';
|
|
9
|
+
import { DividerComponent } from '../../divider/divider.component';
|
|
10
|
+
import { PrizmSharedModule } from '../../../utils/prizm.shared.module';
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
declarations: [
|
|
14
|
+
FilterListHeaderComponent,
|
|
15
|
+
FilterEditComponent,
|
|
16
|
+
FilterListSavedComponent,
|
|
17
|
+
FiltersSectionComponent,
|
|
18
|
+
FilterListFooterComponent,
|
|
19
|
+
],
|
|
20
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, PrizmSharedModule, DividerComponent],
|
|
21
|
+
exports: [
|
|
22
|
+
FilterEditComponent,
|
|
23
|
+
FilterListSavedComponent,
|
|
24
|
+
FiltersSectionComponent,
|
|
25
|
+
FilterListHeaderComponent,
|
|
26
|
+
FilterListFooterComponent,
|
|
27
|
+
],
|
|
28
|
+
})
|
|
29
|
+
export class FilterListModule {}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<sproc-sliding-panel [isOpen]="isOpen$ | async" [subOffsetHeight]="subOffsetHeight">
|
|
2
|
+
<sproc-filter-list-header
|
|
3
|
+
header
|
|
4
|
+
[showTotal]="showTotal"
|
|
5
|
+
[showPin]="showPin"
|
|
6
|
+
[showCloseButton]="showCloseButton"
|
|
7
|
+
[total]="total$ | async"
|
|
8
|
+
[acceptButtonDisabled]="acceptButtonDisabled"
|
|
9
|
+
[applyButtonDisabled]="applyButtonDisabled"
|
|
10
|
+
[filterListHeaderTitle]="filterListHeaderTitle"
|
|
11
|
+
(pinnedChange)="closeMenu($event)"
|
|
12
|
+
(applyFilter)="onApplyFilter($event)"
|
|
13
|
+
></sproc-filter-list-header>
|
|
14
|
+
|
|
15
|
+
<ng-container [ngSwitch]="filterState$ | async">
|
|
16
|
+
<ng-container *ngSwitchCase="FilterState.FILTER_LIST" [ngTemplateOutlet]="filtersTemplate">
|
|
17
|
+
</ng-container>
|
|
18
|
+
|
|
19
|
+
<div *ngSwitchCase="FilterState.SAVED_LIST">
|
|
20
|
+
<sproc-filter-list-saved></sproc-filter-list-saved>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div *ngSwitchCase="FilterState.ON_EDIT_FILTER">
|
|
24
|
+
<sproc-filter-edit></sproc-filter-edit>
|
|
25
|
+
|
|
26
|
+
<sproc-divider></sproc-divider>
|
|
27
|
+
|
|
28
|
+
<ng-container [ngTemplateOutlet]="filtersTemplate"></ng-container>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div *ngSwitchCase="FilterState.ON_SAVE_FILTER">
|
|
32
|
+
<sproc-filter-edit></sproc-filter-edit>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<ng-template #filtersTemplate>
|
|
36
|
+
@defer (on viewport) {
|
|
37
|
+
<ng-content />
|
|
38
|
+
} @loading (minimum 1s) {
|
|
39
|
+
<tui-loader size="m" class="loader"></tui-loader>
|
|
40
|
+
} @placeholder {
|
|
41
|
+
<span>...</span>
|
|
42
|
+
}
|
|
43
|
+
</ng-template>
|
|
44
|
+
</ng-container>
|
|
45
|
+
|
|
46
|
+
<sproc-filter-list-footer
|
|
47
|
+
footer
|
|
48
|
+
[acceptButtonDisabled]="acceptButtonDisabled"
|
|
49
|
+
[applyButtonDisabled]="applyButtonDisabled"
|
|
50
|
+
(apply)="onApplyFilter($event)"
|
|
51
|
+
[footerApplyButtonLabel]="footerApplyButtonLabel"
|
|
52
|
+
></sproc-filter-list-footer>
|
|
53
|
+
</sproc-sliding-panel>
|