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 { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';
|
|
2
|
+
import { EColumnStatus, IColumnSettings } from '../../types/column-settings.types';
|
|
3
|
+
import {
|
|
4
|
+
CdkDrag,
|
|
5
|
+
CdkDragDrop,
|
|
6
|
+
CdkDragPlaceholder,
|
|
7
|
+
CdkDropList,
|
|
8
|
+
moveItemInArray,
|
|
9
|
+
transferArrayItem,
|
|
10
|
+
} from '@angular/cdk/drag-drop';
|
|
11
|
+
import { NgOptimizedImage } from '@angular/common';
|
|
12
|
+
import { TuiHintDirective } from '@taiga-ui/core';
|
|
13
|
+
import {
|
|
14
|
+
ICON_CHEVRONS_RIGHT,
|
|
15
|
+
ICON_EDITOR_DOTS,
|
|
16
|
+
ICON_EYE,
|
|
17
|
+
ICON_EYE_CLOSED,
|
|
18
|
+
ICON_LOCK,
|
|
19
|
+
} from '../../consts/column-settings.consts';
|
|
20
|
+
import { TuiExpand } from '@taiga-ui/experimental';
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
selector: 'sproc-column-settings-template',
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [
|
|
26
|
+
NgOptimizedImage,
|
|
27
|
+
CdkDrag,
|
|
28
|
+
CdkDragPlaceholder,
|
|
29
|
+
CdkDropList,
|
|
30
|
+
TuiExpand,
|
|
31
|
+
TuiHintDirective,
|
|
32
|
+
],
|
|
33
|
+
templateUrl: './column-settings-template.component.html',
|
|
34
|
+
styleUrl: './column-settings-template.component.less',
|
|
35
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
36
|
+
})
|
|
37
|
+
export class ColumnSettingsTemplateComponent {
|
|
38
|
+
public column = input.required<IColumnSettings>();
|
|
39
|
+
public parent = input<IColumnSettings>();
|
|
40
|
+
public expand = input(true);
|
|
41
|
+
|
|
42
|
+
protected readonly iconEditorDots = ICON_EDITOR_DOTS;
|
|
43
|
+
protected readonly iconChevron = ICON_CHEVRONS_RIGHT;
|
|
44
|
+
protected readonly iconEye = ICON_EYE;
|
|
45
|
+
protected readonly iconEyeClosed = ICON_EYE_CLOSED;
|
|
46
|
+
protected readonly iconLock = ICON_LOCK;
|
|
47
|
+
|
|
48
|
+
protected readonly EColumnStatus = EColumnStatus;
|
|
49
|
+
|
|
50
|
+
protected readonly status = computed(() => this.column().status);
|
|
51
|
+
protected readonly canExpand = computed(() => {
|
|
52
|
+
const wantExpand = this.expand();
|
|
53
|
+
const children = this.column().children ?? [];
|
|
54
|
+
const haveChildren = children.length > 0;
|
|
55
|
+
|
|
56
|
+
return wantExpand && haveChildren;
|
|
57
|
+
});
|
|
58
|
+
protected readonly expanded = signal(false);
|
|
59
|
+
|
|
60
|
+
protected collapseNested(): void {
|
|
61
|
+
this.expanded.set(false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
protected toggleNested(): void {
|
|
65
|
+
this.expanded.update((value) => !value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
protected isHiddenColumn(column: IColumnSettings): boolean {
|
|
69
|
+
return column.status === EColumnStatus.HIDDEN;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
protected toggleVisibility(column: IColumnSettings): void {
|
|
73
|
+
const isHidden = column.status === EColumnStatus.HIDDEN;
|
|
74
|
+
column.status = isHidden ? EColumnStatus.DEFAULT : EColumnStatus.HIDDEN;
|
|
75
|
+
|
|
76
|
+
const { children } = column;
|
|
77
|
+
|
|
78
|
+
// Если есть дочерние узлы то устанавливать статус текущего узла
|
|
79
|
+
if (children) {
|
|
80
|
+
column.children = children.map((childColumn) => ({ ...childColumn, status: column.status }));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const parentColumn = this.parent();
|
|
84
|
+
const parentChildren = parentColumn?.children;
|
|
85
|
+
|
|
86
|
+
if (parentColumn && parentChildren && parentChildren.length > 0) {
|
|
87
|
+
const allChildrenHidden = parentChildren.every(
|
|
88
|
+
(childColumn) => childColumn.status === EColumnStatus.HIDDEN
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
parentColumn.status = allChildrenHidden ? EColumnStatus.HIDDEN : EColumnStatus.DEFAULT;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
protected dropIntoChildren(event: CdkDragDrop<IColumnSettings[]>): void {
|
|
96
|
+
const currentChildren = this.column().children;
|
|
97
|
+
|
|
98
|
+
if (!currentChildren) {
|
|
99
|
+
console.warn('Попытка переместить в столбец без дочернего массива:', this.column());
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (event.previousContainer === event.container) {
|
|
104
|
+
moveItemInArray(currentChildren, event.previousIndex, event.currentIndex);
|
|
105
|
+
} else {
|
|
106
|
+
transferArrayItem(
|
|
107
|
+
event.previousContainer.data,
|
|
108
|
+
currentChildren,
|
|
109
|
+
event.previousIndex,
|
|
110
|
+
event.currentIndex
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Icons
|
|
2
|
+
export const ICON_SETTINGS = '/assets/ngx-register-base/icons/settings.svg';
|
|
3
|
+
export const ICON_ERASER = '/assets/ngx-register-base/icons/eraser.svg';
|
|
4
|
+
export const ICON_CANCEL_CLOSE = '/assets/ngx-register-base/icons/cancel-close.svg';
|
|
5
|
+
export const ICON_EDITOR_DOTS = '/assets/ngx-register-base/icons/16-editor-dots.svg';
|
|
6
|
+
export const ICON_CHEVRONS_RIGHT = '/assets/ngx-register-base/icons/chevrons/chevrons-right.svg';
|
|
7
|
+
export const ICON_EYE = '/assets/ngx-register-base/icons/eye.svg';
|
|
8
|
+
export const ICON_EYE_CLOSED = '/assets/ngx-register-base/icons/eye-closed.svg';
|
|
9
|
+
export const ICON_LOCK = '/assets/ngx-register-base/icons/lock.svg';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ITableColumnSettings {
|
|
2
|
+
columns: IColumnSettings[];
|
|
3
|
+
stickyLeft: IColumnSettings[];
|
|
4
|
+
stickyRight: IColumnSettings[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IColumnSettings {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
status: EColumnStatus | IColumnStatus;
|
|
11
|
+
children?: IColumnSettings[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** @deprecated используйте EColumnStatus */
|
|
15
|
+
export type IColumnStatus = 'sticky' | 'hidden' | 'default';
|
|
16
|
+
|
|
17
|
+
export enum EColumnStatus {
|
|
18
|
+
STICKY = 'sticky',
|
|
19
|
+
HIDDEN = 'hidden',
|
|
20
|
+
DEFAULT = 'default',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IColumnSettingsChanges {
|
|
24
|
+
settings: ITableColumnSettings | null;
|
|
25
|
+
id?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'sproc-divider',
|
|
5
|
+
templateUrl: './divider.component.html',
|
|
6
|
+
styleUrls: ['./divider.component.less'],
|
|
7
|
+
standalone: true,
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
})
|
|
10
|
+
export class DividerComponent {
|
|
11
|
+
@Input() layout: 'horizontal' | 'vertical' = 'horizontal';
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<button
|
|
2
|
+
tuiButton
|
|
3
|
+
size="m"
|
|
4
|
+
appearance="outline-grayscale"
|
|
5
|
+
tuiHint
|
|
6
|
+
tuiHintDirection="bottom"
|
|
7
|
+
[class.--indicator]="filterApplied()"
|
|
8
|
+
[disabled]="disabled()"
|
|
9
|
+
(click)="filterToggle.emit()"
|
|
10
|
+
>
|
|
11
|
+
<img ngSrc="assets/ngx-register-base/icons/filter.svg" alt="" height="16" width="16" />
|
|
12
|
+
|
|
13
|
+
<tui-hint
|
|
14
|
+
*tuiHint
|
|
15
|
+
class="filter-button__tooltip"
|
|
16
|
+
[class.filter-button__tooltip--showed]="filterApplied()"
|
|
17
|
+
>
|
|
18
|
+
<span>К реестру применены фильтры</span>
|
|
19
|
+
</tui-hint>
|
|
20
|
+
</button>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import 'buttons';
|
|
2
|
+
@import 'indicator';
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
button {
|
|
6
|
+
.top-icon-button();
|
|
7
|
+
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&:disabled {
|
|
11
|
+
.top-icon-button--disabled();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.--indicator {
|
|
15
|
+
&::after {
|
|
16
|
+
.indicator(8px, var(--brand-danger));
|
|
17
|
+
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 10px;
|
|
20
|
+
right: 6px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.filter-button__tooltip {
|
|
27
|
+
background-color: var(--brand-danger-light) !important;
|
|
28
|
+
padding: 16px;
|
|
29
|
+
border: 1px solid var(--brand-danger);
|
|
30
|
+
border-left-width: 4px;
|
|
31
|
+
display: none;
|
|
32
|
+
|
|
33
|
+
span {
|
|
34
|
+
font: var(--input-text-12px);
|
|
35
|
+
color: var(--main-black);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--showed {
|
|
39
|
+
display: unset;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
|
|
2
|
+
import { TuiButton, TuiHint } from '@taiga-ui/core';
|
|
3
|
+
import { NgOptimizedImage } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'sproc-filter-button',
|
|
7
|
+
templateUrl: './filter-button.component.html',
|
|
8
|
+
styleUrl: './filter-button.component.less',
|
|
9
|
+
standalone: true,
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
imports: [TuiButton, TuiHint, NgOptimizedImage],
|
|
12
|
+
})
|
|
13
|
+
export class FilterButtonComponent {
|
|
14
|
+
public filterApplied = input.required<boolean>();
|
|
15
|
+
public disabled = input(false);
|
|
16
|
+
|
|
17
|
+
public filterToggle = output<void>();
|
|
18
|
+
}
|
package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="input-wrapper">
|
|
2
|
+
<prizm-input-layout [clearButton]="clearButtonTemplate" size="s">
|
|
3
|
+
<input [formControl]="valueControl" placeholder="Введите название фильтра" prizmInput />
|
|
4
|
+
</prizm-input-layout>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<ng-template
|
|
8
|
+
#clearButtonTemplate
|
|
9
|
+
let-showStatusButton="showStatusButton"
|
|
10
|
+
let-disabled="disabled"
|
|
11
|
+
let-clear="clear"
|
|
12
|
+
>
|
|
13
|
+
<button
|
|
14
|
+
class="{{ showStatusButton ? '' : 'alone' }}"
|
|
15
|
+
[interactive]="true"
|
|
16
|
+
[disabled]="disabled"
|
|
17
|
+
[prizmHint]="'Нажмите для очистки'"
|
|
18
|
+
[prizmHintTheme]="'light'"
|
|
19
|
+
[prizmInputIconButton]="'cancel-delete-content'"
|
|
20
|
+
(click)="clear($event)"
|
|
21
|
+
></button>
|
|
22
|
+
</ng-template>
|
package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import 'fonts';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
.input-wrapper {
|
|
5
|
+
padding: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
::ng-deep {
|
|
9
|
+
.prizm-input-form {
|
|
10
|
+
background: inherit;
|
|
11
|
+
border: 1px solid #d7d8df;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.prizm-input-form-inner {
|
|
15
|
+
min-height: 32px;
|
|
16
|
+
height: 32px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
input {
|
|
20
|
+
.input-text-12px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { FiltersStateService } from '../../../../../services';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'sproc-filter-edit',
|
|
8
|
+
templateUrl: './filter-edit.component.html',
|
|
9
|
+
styleUrls: ['./filter-edit.component.less'],
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
})
|
|
12
|
+
export class FilterEditComponent implements OnInit, OnDestroy {
|
|
13
|
+
public readonly valueControl: FormControl<string | null> = new FormControl<string | null>('');
|
|
14
|
+
private subscription: Subscription | null = null;
|
|
15
|
+
|
|
16
|
+
constructor(private readonly _filterStateService: FiltersStateService<any>) {}
|
|
17
|
+
|
|
18
|
+
public ngOnInit(): void {
|
|
19
|
+
const name = this._filterStateService.getSelectedSavedFilter()?.name ?? '';
|
|
20
|
+
|
|
21
|
+
this.valueControl.setValue(name);
|
|
22
|
+
this._filterStateService.setName(name);
|
|
23
|
+
this.subscription = this.valueControl.valueChanges.subscribe((value) => {
|
|
24
|
+
this._filterStateService.setName(value ?? '');
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public ngOnDestroy(): void {
|
|
29
|
+
this.subscription?.unsubscribe();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<div class="sproc-filter-list-footer-container">
|
|
2
|
+
<ng-container [ngSwitch]="filterState$ | async">
|
|
3
|
+
<ng-container *ngSwitchCase="FilterState.FILTER_LIST">
|
|
4
|
+
<button
|
|
5
|
+
class="filter-list__button"
|
|
6
|
+
prizmButton
|
|
7
|
+
size="s"
|
|
8
|
+
[disabled]="applyButtonDisabled"
|
|
9
|
+
(click)="onApplyFilter()"
|
|
10
|
+
>
|
|
11
|
+
{{ footerApplyButtonLabel }}
|
|
12
|
+
</button>
|
|
13
|
+
</ng-container>
|
|
14
|
+
|
|
15
|
+
<ng-container *ngSwitchCase="FilterState.SAVED_LIST">
|
|
16
|
+
<button
|
|
17
|
+
class="filter-list__button"
|
|
18
|
+
prizmButton
|
|
19
|
+
size="s"
|
|
20
|
+
[disabled]="acceptButtonDisabled"
|
|
21
|
+
(click)="onApplySavedFilter()"
|
|
22
|
+
>
|
|
23
|
+
Применить
|
|
24
|
+
</button>
|
|
25
|
+
</ng-container>
|
|
26
|
+
|
|
27
|
+
<ng-container
|
|
28
|
+
*ngSwitchCase="FilterState.ON_EDIT_FILTER"
|
|
29
|
+
[ngTemplateOutlet]="onEditFilter"
|
|
30
|
+
></ng-container>
|
|
31
|
+
|
|
32
|
+
<ng-container
|
|
33
|
+
*ngSwitchCase="FilterState.ON_SAVE_FILTER"
|
|
34
|
+
[ngTemplateOutlet]="onEditFilter"
|
|
35
|
+
></ng-container>
|
|
36
|
+
|
|
37
|
+
<ng-template #onEditFilter>
|
|
38
|
+
<button
|
|
39
|
+
class="filter-list__button"
|
|
40
|
+
prizmButton
|
|
41
|
+
size="s"
|
|
42
|
+
[disabled]="acceptButtonDisabled"
|
|
43
|
+
(click)="onSaveFilter()"
|
|
44
|
+
>
|
|
45
|
+
Сохранить
|
|
46
|
+
</button>
|
|
47
|
+
</ng-template>
|
|
48
|
+
</ng-container>
|
|
49
|
+
</div>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
position: absolute;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
.sproc-filter-list-footer-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
height: 48px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
border-top: 1px;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
padding: 8px 16px 8px 16px;
|
|
15
|
+
background: var(--main-white);
|
|
16
|
+
|
|
17
|
+
.filter-list__button {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 32px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
button {
|
|
23
|
+
::ng-deep .z-wrapper {
|
|
24
|
+
display: flex !important;
|
|
25
|
+
|
|
26
|
+
::ng-deep .z-content .prizm-font-btn-links-14 {
|
|
27
|
+
font-weight: 400 !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::ng-deep .z-content {
|
|
31
|
+
margin: auto !important;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
DestroyRef,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
inject,
|
|
7
|
+
Input,
|
|
8
|
+
OnInit,
|
|
9
|
+
Output,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { Router } from '@angular/router';
|
|
12
|
+
import { map } from 'rxjs';
|
|
13
|
+
import { FilterListService } from '../filter-list.service';
|
|
14
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
|
+
import { EInputsState, GqlFields } from '../../../../../types';
|
|
16
|
+
import { FiltersStateService } from '../../../../../services';
|
|
17
|
+
import { getLastSegmentOfPathName } from '../../../../../utils/get-url-segment';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'sproc-filter-list-footer',
|
|
21
|
+
templateUrl: './filter-list-footer.component.html',
|
|
22
|
+
styleUrls: ['./filter-list-footer.component.less'],
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
providers: [FilterListService],
|
|
25
|
+
})
|
|
26
|
+
export class FilterListFooterComponent implements OnInit {
|
|
27
|
+
@Input() acceptButtonDisabled = false;
|
|
28
|
+
@Input() applyButtonDisabled = false;
|
|
29
|
+
@Input() footerApplyButtonLabel = 'Применить';
|
|
30
|
+
@Output() apply: EventEmitter<GqlFields> = new EventEmitter<GqlFields>();
|
|
31
|
+
|
|
32
|
+
private readonly _dr = inject(DestroyRef);
|
|
33
|
+
|
|
34
|
+
public readonly filterState$ = this._filterStateService.state$.pipe(
|
|
35
|
+
map((filterState) => filterState.state)
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
public readonly FilterState = EInputsState;
|
|
39
|
+
|
|
40
|
+
constructor(
|
|
41
|
+
private readonly _router: Router,
|
|
42
|
+
private readonly _filterStateService: FiltersStateService<any>,
|
|
43
|
+
private readonly _filterListService: FilterListService
|
|
44
|
+
) {}
|
|
45
|
+
|
|
46
|
+
public ngOnInit(): void {
|
|
47
|
+
this._filterListService.modulePath = getLastSegmentOfPathName(this._router.url);
|
|
48
|
+
|
|
49
|
+
this._filterListService.apply$.pipe(takeUntilDestroyed(this._dr)).subscribe((gql) => {
|
|
50
|
+
this.apply.emit(gql);
|
|
51
|
+
this._filterListService.savePinnedFilters();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public onApplyFilter(): void {
|
|
56
|
+
this._filterListService.applyFilter();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public onApplySavedFilter(): void {
|
|
60
|
+
this._filterListService.applySavedFilter();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public onSaveFilter(): void {
|
|
64
|
+
this._filterListService.saveFilter();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<ng-container [ngSwitch]="filterState$ | async">
|
|
2
|
+
<h4 *ngSwitchCase="FilterState.FILTER_LIST">{{ filterListHeaderTitle }}</h4>
|
|
3
|
+
<h4 *ngSwitchCase="FilterState.SAVED_LIST">Сохраненные фильтры</h4>
|
|
4
|
+
<h4 *ngSwitchCase="FilterState.ON_EDIT_FILTER">Редактирование фильтра</h4>
|
|
5
|
+
<h4 *ngSwitchCase="FilterState.ON_SAVE_FILTER">Сохранить фильтр</h4>
|
|
6
|
+
</ng-container>
|
|
7
|
+
|
|
8
|
+
<div class="sproc-filter-list-header-actions-button">
|
|
9
|
+
<ng-container [ngSwitch]="filterState$ | async">
|
|
10
|
+
<ng-container
|
|
11
|
+
*ngSwitchCase="FilterState.FILTER_LIST"
|
|
12
|
+
[ngTemplateOutlet]="filterListTemplate"
|
|
13
|
+
></ng-container>
|
|
14
|
+
<ng-container
|
|
15
|
+
*ngSwitchCase="FilterState.SAVED_LIST"
|
|
16
|
+
[ngTemplateOutlet]="savedListTemplate"
|
|
17
|
+
></ng-container>
|
|
18
|
+
<ng-container
|
|
19
|
+
*ngSwitchCase="FilterState.ON_EDIT_FILTER"
|
|
20
|
+
[ngTemplateOutlet]="saveFilterTemplate"
|
|
21
|
+
></ng-container>
|
|
22
|
+
<ng-container
|
|
23
|
+
*ngSwitchCase="FilterState.ON_SAVE_FILTER"
|
|
24
|
+
[ngTemplateOutlet]="saveFilterTemplate"
|
|
25
|
+
></ng-container>
|
|
26
|
+
<ng-container *ngSwitchDefault [ngTemplateOutlet]="backButtonTemplate"></ng-container>
|
|
27
|
+
</ng-container>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<ng-template #filterListTemplate>
|
|
31
|
+
<ng-container *ngIf="showPin">
|
|
32
|
+
<button
|
|
33
|
+
size="s"
|
|
34
|
+
appearanceType="ghost"
|
|
35
|
+
appearance="secondary"
|
|
36
|
+
prizmButton
|
|
37
|
+
class="icon-button"
|
|
38
|
+
(click)="onTogglePin()"
|
|
39
|
+
>
|
|
40
|
+
<img
|
|
41
|
+
[src]="
|
|
42
|
+
'assets/ngx-register-base/icons/' + (isPin ? 'thumbtack-directly.svg' : 'thumbtack.svg')
|
|
43
|
+
"
|
|
44
|
+
/>
|
|
45
|
+
</button>
|
|
46
|
+
|
|
47
|
+
<sproc-divider layout="vertical"></sproc-divider>
|
|
48
|
+
</ng-container>
|
|
49
|
+
|
|
50
|
+
<button
|
|
51
|
+
icon="social-star"
|
|
52
|
+
size="s"
|
|
53
|
+
appearanceType="ghost"
|
|
54
|
+
appearance="secondary"
|
|
55
|
+
prizmButton
|
|
56
|
+
class="icon-button"
|
|
57
|
+
(click)="onSavedList()"
|
|
58
|
+
></button>
|
|
59
|
+
|
|
60
|
+
<button
|
|
61
|
+
icon="tools-content-save"
|
|
62
|
+
size="s"
|
|
63
|
+
appearanceType="ghost"
|
|
64
|
+
appearance="secondary"
|
|
65
|
+
prizmButton
|
|
66
|
+
class="icon-button"
|
|
67
|
+
(click)="onSave()"
|
|
68
|
+
></button>
|
|
69
|
+
|
|
70
|
+
<sproc-divider layout="vertical"></sproc-divider>
|
|
71
|
+
|
|
72
|
+
<button
|
|
73
|
+
icon="selection-check-simple"
|
|
74
|
+
size="s"
|
|
75
|
+
appearanceType="ghost"
|
|
76
|
+
appearance="primary"
|
|
77
|
+
prizmButton
|
|
78
|
+
class="icon-button"
|
|
79
|
+
[disabled]="applyButtonDisabled"
|
|
80
|
+
(click)="onApplyFilter()"
|
|
81
|
+
></button>
|
|
82
|
+
|
|
83
|
+
<button
|
|
84
|
+
icon="tools-eraser"
|
|
85
|
+
size="s"
|
|
86
|
+
appearanceType="ghost"
|
|
87
|
+
appearance="secondary"
|
|
88
|
+
prizmButton
|
|
89
|
+
class="icon-button"
|
|
90
|
+
(click)="onReset()"
|
|
91
|
+
></button>
|
|
92
|
+
|
|
93
|
+
<button
|
|
94
|
+
*ngIf="showCloseButton"
|
|
95
|
+
icon="cancel-close"
|
|
96
|
+
size="s"
|
|
97
|
+
appearanceType="ghost"
|
|
98
|
+
appearance="danger"
|
|
99
|
+
prizmButton
|
|
100
|
+
class="icon-button"
|
|
101
|
+
(click)="onClose()"
|
|
102
|
+
></button>
|
|
103
|
+
</ng-template>
|
|
104
|
+
|
|
105
|
+
<ng-template #savedListTemplate>
|
|
106
|
+
<button
|
|
107
|
+
icon="selection-check-simple"
|
|
108
|
+
size="s"
|
|
109
|
+
appearanceType="ghost"
|
|
110
|
+
appearance="primary"
|
|
111
|
+
prizmButton
|
|
112
|
+
class="icon-button"
|
|
113
|
+
[disabled]="acceptButtonDisabled"
|
|
114
|
+
(click)="onApplySavedFilter()"
|
|
115
|
+
></button>
|
|
116
|
+
|
|
117
|
+
<ng-container *ngTemplateOutlet="backButtonTemplate"></ng-container>
|
|
118
|
+
</ng-template>
|
|
119
|
+
|
|
120
|
+
<ng-template #saveFilterTemplate>
|
|
121
|
+
<button
|
|
122
|
+
icon="tools-content-save"
|
|
123
|
+
size="s"
|
|
124
|
+
appearanceType="ghost"
|
|
125
|
+
appearance="secondary"
|
|
126
|
+
prizmButton
|
|
127
|
+
class="icon-button"
|
|
128
|
+
[disabled]="acceptButtonDisabled"
|
|
129
|
+
(click)="onSaveFilter()"
|
|
130
|
+
></button>
|
|
131
|
+
|
|
132
|
+
<ng-container *ngTemplateOutlet="backButtonTemplate"></ng-container>
|
|
133
|
+
</ng-template>
|
|
134
|
+
|
|
135
|
+
<ng-template #backButtonTemplate>
|
|
136
|
+
<button
|
|
137
|
+
icon="arrows-corner-up-left"
|
|
138
|
+
size="s"
|
|
139
|
+
appearanceType="ghost"
|
|
140
|
+
appearance="secondary"
|
|
141
|
+
prizmButton
|
|
142
|
+
class="icon-button"
|
|
143
|
+
prizmHint="Главное меню фильтров"
|
|
144
|
+
prizmHintTheme="light"
|
|
145
|
+
(click)="onBack()"
|
|
146
|
+
></button>
|
|
147
|
+
</ng-template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import 'fonts';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
min-height: 40px;
|
|
8
|
+
height: 40px;
|
|
9
|
+
padding: 0 8px 0 16px;
|
|
10
|
+
border-radius: 2px 2px 0 0;
|
|
11
|
+
background: var(--table-header, #eef0f5);
|
|
12
|
+
border-bottom: 1px solid rgba(119, 123, 146, 30%);
|
|
13
|
+
|
|
14
|
+
h4 {
|
|
15
|
+
.static-title-h4;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sproc-filter-list-header-actions-button {
|
|
19
|
+
height: 32px;
|
|
20
|
+
display: flex;
|
|
21
|
+
|
|
22
|
+
.icon-button {
|
|
23
|
+
height: 32px;
|
|
24
|
+
|
|
25
|
+
::ng-deep {
|
|
26
|
+
.prizm-font-btn-links-14 {
|
|
27
|
+
height: 16px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.z-wrapper {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
|
|
34
|
+
&[data-appearance='secondary'][data-appearance-type='ghost'] {
|
|
35
|
+
color: #4f5669;
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
color: var(--main-black);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|