ngx-register-base 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +129 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +8 -0
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +249 -0
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +80 -0
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +10 -0
- package/esm2022/lib/components/column-settings/index.mjs +3 -0
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +7 -0
- package/esm2022/lib/components/divider/divider.component.mjs +16 -0
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +19 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +31 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +57 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +110 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +130 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +89 -0
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +41 -0
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +45 -0
- package/esm2022/lib/components/filters/index.mjs +3 -0
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +155 -0
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +39 -0
- package/esm2022/lib/components/index.mjs +11 -0
- package/esm2022/lib/components/inputs/index.mjs +20 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +166 -0
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +45 -0
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +12 -0
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +76 -0
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +60 -0
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +86 -0
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +95 -0
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +50 -0
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +62 -0
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +309 -0
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +233 -0
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +21 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +28 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +3 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +105 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +10 -0
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +40 -0
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +38 -0
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +37 -0
- package/esm2022/lib/components/inputs/param-tree/index.mjs +8 -0
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +207 -0
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +116 -0
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +3 -0
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +2 -0
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +9 -0
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +80 -0
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +85 -0
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +15 -0
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +12 -0
- package/esm2022/lib/components/menu-constructor/index.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +559 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +3 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +3 -0
- package/esm2022/lib/components/page-menu/index.mjs +6 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +9 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +2 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +4 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +3 -0
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +275 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +159 -0
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +2 -0
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +4 -0
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +19 -0
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +18 -0
- package/esm2022/lib/components/register-table/index.mjs +4 -0
- package/esm2022/lib/components/register-table/model/schema.mjs +10 -0
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +33 -0
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +17 -0
- package/esm2022/lib/components/register-table/register-table.component.mjs +544 -0
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +18 -0
- package/esm2022/lib/components/search-input/search-input.component.mjs +28 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +48 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +19 -0
- package/esm2022/lib/consts/date-time.consts.mjs +2 -0
- package/esm2022/lib/consts/index.mjs +4 -0
- package/esm2022/lib/consts/inputs.consts.mjs +4 -0
- package/esm2022/lib/consts/month.consts.mjs +77 -0
- package/esm2022/lib/consts/params.consts.mjs +2 -0
- package/esm2022/lib/consts/register-base.consts.mjs +26 -0
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +8 -0
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +81 -0
- package/esm2022/lib/core/form-group-wrapper/index.mjs +2 -0
- package/esm2022/lib/core/index.mjs +5 -0
- package/esm2022/lib/core/input-control/index.mjs +2 -0
- package/esm2022/lib/core/input-control/input-control.mjs +11 -0
- package/esm2022/lib/core/param/index.mjs +6 -0
- package/esm2022/lib/core/param/param-base.mjs +215 -0
- package/esm2022/lib/core/param/param-date-base.mjs +26 -0
- package/esm2022/lib/core/param/param-select-base.mjs +114 -0
- package/esm2022/lib/core/param/param-text-base.mjs +25 -0
- package/esm2022/lib/core/param/param.tokens.mjs +4 -0
- package/esm2022/lib/core/register-base/index.mjs +3 -0
- package/esm2022/lib/core/register-base/register-base.mjs +575 -0
- package/esm2022/lib/core/register-base/register-base.store.mjs +43 -0
- package/esm2022/lib/directives/date/date-time.types.mjs +34 -0
- package/esm2022/lib/directives/date/format-date.pipe.mjs +33 -0
- package/esm2022/lib/directives/index.mjs +3 -0
- package/esm2022/lib/directives/number/number-only.directive.mjs +41 -0
- package/esm2022/lib/directives/sticky/index.mjs +3 -0
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +169 -0
- package/esm2022/lib/services/date-time.service.mjs +314 -0
- package/esm2022/lib/services/dialog/dialog.service.mjs +53 -0
- package/esm2022/lib/services/dialog/dialog.types.mjs +2 -0
- package/esm2022/lib/services/dialog/index.mjs +3 -0
- package/esm2022/lib/services/dom-intersection.service.mjs +22 -0
- package/esm2022/lib/services/filter/filters-state.service.mjs +65 -0
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +82 -0
- package/esm2022/lib/services/filter/filters.service.mjs +23 -0
- package/esm2022/lib/services/index.mjs +8 -0
- package/esm2022/lib/services/inputs-state.service.mjs +130 -0
- package/esm2022/lib/services/inputs.service.mjs +88 -0
- package/esm2022/lib/services/key-pressed.service.mjs +37 -0
- package/esm2022/lib/services/resize-window-observer.service.mjs +33 -0
- package/esm2022/lib/services/selected-objects-state.service.mjs +123 -0
- package/esm2022/lib/store/fast-query-store.service.mjs +110 -0
- package/esm2022/lib/store/index.mjs +2 -0
- package/esm2022/lib/types/event.types.mjs +2 -0
- package/esm2022/lib/types/hasura.types.mjs +2 -0
- package/esm2022/lib/types/index.mjs +7 -0
- package/esm2022/lib/types/inputs.types.mjs +19 -0
- package/esm2022/lib/types/params.types.mjs +2 -0
- package/esm2022/lib/types/register-base.types.mjs +6 -0
- package/esm2022/lib/types/sub-types.mjs +2 -0
- package/esm2022/lib/types/user-profile.types.mjs +2 -0
- package/esm2022/lib/utils/functions.mjs +10 -0
- package/esm2022/lib/utils/get-url-segment.mjs +35 -0
- package/esm2022/lib/utils/index.mjs +5 -0
- package/esm2022/lib/utils/prizm.shared.module.mjs +284 -0
- package/esm2022/lib/utils/rxjs.mjs +28 -0
- package/esm2022/lib/utils/select-all-utils.mjs +11 -0
- package/esm2022/ngx-register-base.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/ngx-register-base.mjs +7487 -0
- package/fesm2022/ngx-register-base.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +33 -0
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +7 -0
- package/lib/components/column-settings/column-settings.component.d.ts +80 -0
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +24 -0
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +8 -0
- package/lib/components/column-settings/types/column-settings.types.d.ts +22 -0
- package/lib/components/divider/divider.component.d.ts +6 -0
- package/lib/components/filter-button/filter-button.component.d.ts +8 -0
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +14 -0
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +25 -0
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +39 -0
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +41 -0
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +20 -0
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +15 -0
- package/lib/components/filters/components/filter-list.module.d.ts +15 -0
- package/lib/components/filters/register-table-filter.component.d.ts +40 -0
- package/lib/components/filters/register-table-filter.module.d.ts +13 -0
- package/lib/components/inputs/inputs.module.d.ts +31 -0
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +19 -0
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +6 -0
- package/lib/components/inputs/param-date/param-date.component.d.ts +20 -0
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +26 -0
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +25 -0
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +28 -0
- package/lib/components/inputs/param-month/param-month.component.d.ts +18 -0
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +21 -0
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +46 -0
- package/lib/components/inputs/param-select/param-select.component.d.ts +34 -0
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +8 -0
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +2 -0
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +19 -0
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +8 -0
- package/lib/components/inputs/param-text/param-text.component.d.ts +10 -0
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +10 -0
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +9 -0
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +7 -0
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +41 -0
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +37 -0
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +10 -0
- package/{src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts → lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts} +1 -2
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +32 -0
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +7 -0
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +31 -0
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +30 -0
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +6 -0
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +5 -0
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +113 -0
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +24 -0
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +36 -0
- package/{src/lib/components/menu-constructor/store/sproc-menu.tokens.ts → lib/components/menu-constructor/store/sproc-menu.tokens.d.ts} +1 -4
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +7 -0
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +30 -0
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +3 -0
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +36 -0
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +48 -0
- package/lib/components/paginator/paginator.component.d.ts +52 -0
- package/lib/components/paginator/types/paginator.types.d.ts +15 -0
- package/lib/components/register-table/consts/register-table.consts.d.ts +3 -0
- package/lib/components/register-table/directives/cell-template.directive.d.ts +9 -0
- package/lib/components/register-table/directives/header-template.directive.d.ts +9 -0
- package/lib/components/register-table/model/schema.d.ts +52 -0
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +8 -0
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +7 -0
- package/lib/components/register-table/register-table.component.d.ts +165 -0
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +9 -0
- package/lib/components/search-input/search-input.component.d.ts +11 -0
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +14 -0
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +9 -0
- package/lib/consts/date-time.consts.d.ts +1 -0
- package/lib/consts/index.d.ts +3 -0
- package/lib/consts/inputs.consts.d.ts +4 -0
- package/lib/consts/month.consts.d.ts +49 -0
- package/lib/consts/params.consts.d.ts +1 -0
- package/lib/consts/register-base.consts.d.ts +19 -0
- package/lib/core/form-group-wrapper/errors-consts.d.ts +5 -0
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +15 -0
- package/lib/core/input-control/input-control.d.ts +11 -0
- package/lib/core/param/param-base.d.ts +68 -0
- package/lib/core/param/param-date-base.d.ts +18 -0
- package/lib/core/param/param-select-base.d.ts +42 -0
- package/lib/core/param/param-text-base.d.ts +15 -0
- package/{src/lib/core/param/param.tokens.ts → lib/core/param/param.tokens.d.ts} +1 -2
- package/lib/core/register-base/register-base.d.ts +168 -0
- package/lib/core/register-base/register-base.store.d.ts +35 -0
- package/lib/directives/date/date-time.types.d.ts +32 -0
- package/lib/directives/date/format-date.pipe.d.ts +10 -0
- package/lib/directives/number/number-only.directive.d.ts +10 -0
- package/lib/directives/sticky/sticky-relative.directive.d.ts +13 -0
- package/lib/directives/sticky/sticky-relative.service.d.ts +15 -0
- package/lib/directives/sticky/sticky.directive.d.ts +27 -0
- package/lib/services/date-time.service.d.ts +80 -0
- package/lib/services/dialog/dialog.service.d.ts +22 -0
- package/{src/lib/services/dialog/dialog.types.ts → lib/services/dialog/dialog.types.d.ts} +4 -8
- package/lib/services/dom-intersection.service.d.ts +8 -0
- package/lib/services/filter/filters-state.service.d.ts +21 -0
- package/lib/services/filter/filters-transmit.service.d.ts +28 -0
- package/lib/services/filter/filters.service.d.ts +12 -0
- package/lib/services/inputs-state.service.d.ts +57 -0
- package/lib/services/inputs.service.d.ts +28 -0
- package/lib/services/key-pressed.service.d.ts +15 -0
- package/lib/services/resize-window-observer.service.d.ts +11 -0
- package/lib/services/selected-objects-state.service.d.ts +47 -0
- package/lib/store/fast-query-store.service.d.ts +19 -0
- package/{src/lib/types/event.types.ts → lib/types/event.types.d.ts} +1 -1
- package/lib/types/hasura.types.d.ts +35 -0
- package/lib/types/inputs.types.d.ts +41 -0
- package/lib/types/params.types.d.ts +27 -0
- package/lib/types/register-base.types.d.ts +123 -0
- package/lib/types/sub-types.d.ts +8 -0
- package/lib/types/user-profile.types.d.ts +17 -0
- package/lib/utils/functions.d.ts +3 -0
- package/lib/utils/get-url-segment.d.ts +7 -0
- package/lib/utils/prizm.shared.module.d.ts +14 -0
- package/lib/utils/rxjs.d.ts +10 -0
- package/lib/utils/select-all-utils.d.ts +8 -0
- package/package.json +15 -12
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +2 -0
- package/schematics/ng-update/replace-menu-state-token/index.js +29 -0
- package/schematics/ng-update/replace-menu-state-token/index.js.map +1 -0
- package/schematics/ng-update/update-prefix/index.d.ts +2 -0
- package/schematics/ng-update/update-prefix/index.js +33 -0
- package/schematics/ng-update/update-prefix/index.js.map +1 -0
- package/schematics/utils/{utils.ts → utils.d.ts} +2 -9
- package/schematics/utils/utils.js +25 -0
- package/schematics/utils/utils.js.map +1 -0
- package/ng-package.json +0 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +0 -33
- package/schematics/ng-update/update-prefix/index.ts +0 -38
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +0 -91
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +0 -67
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +0 -176
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +0 -8
- package/src/lib/components/column-settings/column-settings.component.html +0 -160
- package/src/lib/components/column-settings/column-settings.component.less +0 -131
- package/src/lib/components/column-settings/column-settings.component.ts +0 -352
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +0 -65
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +0 -79
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +0 -114
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +0 -9
- package/src/lib/components/column-settings/types/column-settings.types.ts +0 -26
- package/src/lib/components/divider/divider.component.html +0 -4
- package/src/lib/components/divider/divider.component.less +0 -10
- package/src/lib/components/divider/divider.component.ts +0 -12
- package/src/lib/components/filter-button/filter-button.component.html +0 -20
- package/src/lib/components/filter-button/filter-button.component.less +0 -41
- package/src/lib/components/filter-button/filter-button.component.ts +0 -18
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +0 -22
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +0 -23
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +0 -31
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +0 -37
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +0 -66
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +0 -147
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +0 -45
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +0 -114
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +0 -44
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +0 -167
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +0 -97
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +0 -18
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +0 -55
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +0 -69
- package/src/lib/components/filters/components/filter-list.module.ts +0 -29
- package/src/lib/components/filters/register-table-filter.component.html +0 -53
- package/src/lib/components/filters/register-table-filter.component.less +0 -17
- package/src/lib/components/filters/register-table-filter.component.ts +0 -167
- package/src/lib/components/filters/register-table-filter.module.ts +0 -22
- package/src/lib/components/inputs/inputs.module.ts +0 -104
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +0 -49
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +0 -70
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +0 -52
- package/src/lib/components/inputs/param-custom/param-custom.component.html +0 -1
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +0 -9
- package/src/lib/components/inputs/param-date/param-date.component.html +0 -55
- package/src/lib/components/inputs/param-date/param-date.component.less +0 -67
- package/src/lib/components/inputs/param-date/param-date.component.ts +0 -77
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +0 -45
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +0 -75
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +0 -67
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +0 -70
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +0 -72
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +0 -101
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +0 -67
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +0 -103
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +0 -128
- package/src/lib/components/inputs/param-month/param-month.component.html +0 -46
- package/src/lib/components/inputs/param-month/param-month.component.less +0 -72
- package/src/lib/components/inputs/param-month/param-month.component.ts +0 -55
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +0 -39
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +0 -71
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +0 -76
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +0 -84
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +0 -108
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +0 -448
- package/src/lib/components/inputs/param-select/param-select.component.html +0 -106
- package/src/lib/components/inputs/param-select/param-select.component.less +0 -26
- package/src/lib/components/inputs/param-select/param-select.component.ts +0 -318
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +0 -8
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +0 -53
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +0 -13
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +0 -29
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +0 -19
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +0 -76
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +0 -134
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +0 -8
- package/src/lib/components/inputs/param-text/param-text.component.html +0 -59
- package/src/lib/components/inputs/param-text/param-text.component.less +0 -33
- package/src/lib/components/inputs/param-text/param-text.component.ts +0 -36
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +0 -61
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +0 -21
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +0 -33
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +0 -40
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +0 -69
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +0 -14
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +0 -59
- package/src/lib/components/inputs/param-tree/param-tree.component.html +0 -51
- package/src/lib/components/inputs/param-tree/param-tree.component.less +0 -3
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +0 -282
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +0 -176
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +0 -18
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +0 -39
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +0 -18
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +0 -78
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +0 -109
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +0 -89
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +0 -54
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +0 -56
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +0 -91
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +0 -5
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +0 -13
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +0 -4
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +0 -11
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +0 -95
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +0 -183
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +0 -687
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +0 -32
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +0 -46
- package/src/lib/components/page-menu/README.md +0 -60
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +0 -8
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +0 -35
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +0 -5
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +0 -42
- package/src/lib/components/page-menu/sproc-page-menu.component.html +0 -166
- package/src/lib/components/page-menu/sproc-page-menu.component.less +0 -228
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +0 -337
- package/src/lib/components/paginator/paginator.component.html +0 -97
- package/src/lib/components/paginator/paginator.component.less +0 -101
- package/src/lib/components/paginator/paginator.component.ts +0 -192
- package/src/lib/components/paginator/types/paginator.types.ts +0 -16
- package/src/lib/components/register-table/consts/register-table.consts.ts +0 -3
- package/src/lib/components/register-table/directives/cell-template.directive.ts +0 -11
- package/src/lib/components/register-table/directives/header-template.directive.ts +0 -11
- package/src/lib/components/register-table/model/schema.ts +0 -62
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +0 -28
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +0 -11
- package/src/lib/components/register-table/register-table.component.html +0 -257
- package/src/lib/components/register-table/register-table.component.less +0 -151
- package/src/lib/components/register-table/register-table.component.ts +0 -743
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +0 -14
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +0 -26
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +0 -15
- package/src/lib/components/search-input/search-input.component.html +0 -6
- package/src/lib/components/search-input/search-input.component.less +0 -17
- package/src/lib/components/search-input/search-input.component.ts +0 -31
- package/src/lib/components/sliding-panel/sliding-panel.component.html +0 -13
- package/src/lib/components/sliding-panel/sliding-panel.component.less +0 -112
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +0 -36
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +0 -11
- package/src/lib/consts/date-time.consts.ts +0 -1
- package/src/lib/consts/index.ts +0 -8
- package/src/lib/consts/inputs.consts.ts +0 -9
- package/src/lib/consts/month.consts.ts +0 -82
- package/src/lib/consts/params.consts.ts +0 -1
- package/src/lib/consts/register-base.consts.ts +0 -40
- package/src/lib/core/form-group-wrapper/errors-consts.ts +0 -6
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +0 -109
- package/src/lib/core/input-control/input-control.ts +0 -30
- package/src/lib/core/param/param-base.ts +0 -262
- package/src/lib/core/param/param-date-base.ts +0 -30
- package/src/lib/core/param/param-select-base.ts +0 -118
- package/src/lib/core/param/param-text-base.ts +0 -23
- package/src/lib/core/register-base/register-base.store.ts +0 -84
- package/src/lib/core/register-base/register-base.ts +0 -854
- package/src/lib/directives/date/date-time.types.ts +0 -36
- package/src/lib/directives/date/format-date.pipe.ts +0 -28
- package/src/lib/directives/number/number-only.directive.ts +0 -36
- package/src/lib/directives/sticky/sticky-relative.directive.ts +0 -30
- package/src/lib/directives/sticky/sticky-relative.service.ts +0 -34
- package/src/lib/directives/sticky/sticky.directive.ts +0 -189
- package/src/lib/services/date-time.service.ts +0 -399
- package/src/lib/services/dialog/dialog.service.ts +0 -62
- package/src/lib/services/dom-intersection.service.ts +0 -23
- package/src/lib/services/filter/filters-state.service.ts +0 -83
- package/src/lib/services/filter/filters-transmit.service.ts +0 -105
- package/src/lib/services/filter/filters.service.ts +0 -21
- package/src/lib/services/inputs-state.service.ts +0 -157
- package/src/lib/services/inputs.service.ts +0 -114
- package/src/lib/services/key-pressed.service.ts +0 -40
- package/src/lib/services/resize-window-observer.service.ts +0 -37
- package/src/lib/services/selected-objects-state.service.ts +0 -159
- package/src/lib/store/fast-query-store.service.ts +0 -132
- package/src/lib/types/hasura.types.ts +0 -41
- package/src/lib/types/inputs.types.ts +0 -63
- package/src/lib/types/params.types.ts +0 -42
- package/src/lib/types/register-base.types.ts +0 -161
- package/src/lib/types/sub-types.ts +0 -15
- package/src/lib/types/user-profile.types.ts +0 -18
- package/src/lib/utils/functions.ts +0 -11
- package/src/lib/utils/get-url-segment.ts +0 -46
- package/src/lib/utils/prizm.shared.module.ts +0 -176
- package/src/lib/utils/rxjs.ts +0 -33
- package/src/lib/utils/select-all-utils.ts +0 -16
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.schematics.json +0 -26
- package/tsconfig.spec.json +0 -15
- /package/{src/lib/components/column-settings/index.ts → lib/components/column-settings/index.d.ts} +0 -0
- /package/{src/lib/components/filters/index.ts → lib/components/filters/index.d.ts} +0 -0
- /package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/index.ts → lib/components/inputs/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-switcher-date-time-range/index.ts → lib/components/inputs/param-switcher-date-time-range/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-tree/index.ts → lib/components/inputs/param-tree/index.d.ts} +0 -0
- /package/{src/lib/components/menu-constructor/index.ts → lib/components/menu-constructor/index.d.ts} +0 -0
- /package/{src/lib/components/page-menu/index.ts → lib/components/page-menu/index.d.ts} +0 -0
- /package/{src/lib/components/register-table/index.ts → lib/components/register-table/index.d.ts} +0 -0
- /package/{src/lib/core/form-group-wrapper/index.ts → lib/core/form-group-wrapper/index.d.ts} +0 -0
- /package/{src/lib/core/index.ts → lib/core/index.d.ts} +0 -0
- /package/{src/lib/core/input-control/index.ts → lib/core/input-control/index.d.ts} +0 -0
- /package/{src/lib/core/param/index.ts → lib/core/param/index.d.ts} +0 -0
- /package/{src/lib/core/register-base/index.ts → lib/core/register-base/index.d.ts} +0 -0
- /package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
- /package/{src/lib/directives/sticky/index.ts → lib/directives/sticky/index.d.ts} +0 -0
- /package/{src/lib/services/dialog/index.ts → lib/services/dialog/index.d.ts} +0 -0
- /package/{src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
- /package/{src/lib/store/index.ts → lib/store/index.d.ts} +0 -0
- /package/{src/lib/types/index.ts → lib/types/index.d.ts} +0 -0
- /package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
|
|
3
|
-
.column-item {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 0 12px 0 8px;
|
|
7
|
-
gap: 8px;
|
|
8
|
-
height: 32px;
|
|
9
|
-
|
|
10
|
-
&__name {
|
|
11
|
-
flex-grow: 1;
|
|
12
|
-
color: var(--text-main);
|
|
13
|
-
|
|
14
|
-
.table-text-12px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.pointer {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.expanded {
|
|
22
|
-
.pointer;
|
|
23
|
-
|
|
24
|
-
transition: transform 0.2s linear;
|
|
25
|
-
|
|
26
|
-
&[expanded='true'] {
|
|
27
|
-
transform: rotate(90deg);
|
|
28
|
-
transform-origin: center center;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.eye-icon {
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
opacity: 0;
|
|
35
|
-
transition: opacity 0.2s ease-in-out;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.hidden {
|
|
39
|
-
.eye-icon {
|
|
40
|
-
opacity: 1;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
background: var(--brand-hovered);
|
|
46
|
-
cursor: ns-resize;
|
|
47
|
-
|
|
48
|
-
.eye-icon {
|
|
49
|
-
opacity: 1;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.nested-columns {
|
|
55
|
-
margin-left: 24px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.custom-placeholder {
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
height: 32px;
|
|
62
|
-
padding: 0 8px;
|
|
63
|
-
border: 1px dashed #cccccc;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
background-color: #fafafa;
|
|
66
|
-
box-sizing: border-box;
|
|
67
|
-
color: #888888;
|
|
68
|
-
font-style: italic;
|
|
69
|
-
user-select: none;
|
|
70
|
-
width: 100%;
|
|
71
|
-
margin: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.cdk-drag-preview {
|
|
75
|
-
.column-item;
|
|
76
|
-
|
|
77
|
-
box-shadow: -1px 0 12px rgba(71, 83, 38, 23%);
|
|
78
|
-
background: var(--main-white);
|
|
79
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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';
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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>
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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>
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
}
|