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,55 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'indicator';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
padding-top: 8px;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
|
|
10
|
-
.panel-head {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
padding-right: 4px;
|
|
14
|
-
height: 24px;
|
|
15
|
-
align-items: center;
|
|
16
|
-
border-bottom: 1px solid var(--brand-blue);
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
|
|
19
|
-
.title {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
height: 20px;
|
|
23
|
-
|
|
24
|
-
&__font {
|
|
25
|
-
.main-subtitle;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&--has-filters {
|
|
29
|
-
&::after {
|
|
30
|
-
.indicator(6px, var(--brand-danger));
|
|
31
|
-
|
|
32
|
-
margin-left: 5px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.filters-block {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
gap: 8px;
|
|
42
|
-
padding: 0 2px;
|
|
43
|
-
transform-origin: top;
|
|
44
|
-
transition: max-height 0.4s;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
|
|
47
|
-
&[show='true'] {
|
|
48
|
-
max-height: 1000px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&[show='false'] {
|
|
52
|
-
max-height: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
computed,
|
|
5
|
-
contentChildren,
|
|
6
|
-
inject,
|
|
7
|
-
Injector,
|
|
8
|
-
input,
|
|
9
|
-
runInInjectionContext,
|
|
10
|
-
signal,
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import { NgControl } from '@angular/forms';
|
|
13
|
-
import { combineLatest, of, switchMap } from 'rxjs';
|
|
14
|
-
import { toObservable, toSignal } from '@angular/core/rxjs-interop';
|
|
15
|
-
import { IInputControl } from '../../../../../types';
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'sproc-filters-section',
|
|
19
|
-
templateUrl: './filters-section.component.html',
|
|
20
|
-
styleUrls: ['./filters-section.component.less'],
|
|
21
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
-
})
|
|
23
|
-
export class FiltersSectionComponent {
|
|
24
|
-
public controls = contentChildren<NgControl>(NgControl, { descendants: true });
|
|
25
|
-
|
|
26
|
-
public label = input<string>('');
|
|
27
|
-
|
|
28
|
-
protected isOpen = signal(true);
|
|
29
|
-
protected haveAppliedFilters = computed(() => this._sameControlApplied());
|
|
30
|
-
|
|
31
|
-
private _sameControlApplied = computed(() => this._checkSomeControlApplied());
|
|
32
|
-
|
|
33
|
-
private _controlsChanges = toSignal(
|
|
34
|
-
toObservable(this.controls).pipe(
|
|
35
|
-
switchMap((controls) =>
|
|
36
|
-
combineLatest(
|
|
37
|
-
controls.map(({ control }) =>
|
|
38
|
-
runInInjectionContext(this._injector, () => {
|
|
39
|
-
const applied = (control as IInputControl)?.applied;
|
|
40
|
-
|
|
41
|
-
return applied ? toObservable(applied) : of(false);
|
|
42
|
-
})
|
|
43
|
-
)
|
|
44
|
-
)
|
|
45
|
-
)
|
|
46
|
-
),
|
|
47
|
-
{ initialValue: [] }
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
private readonly _injector = inject(Injector);
|
|
51
|
-
|
|
52
|
-
protected toggleHeader(): void {
|
|
53
|
-
this.isOpen.update((isOpen) => !isOpen);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
private _checkSomeControlApplied(): boolean {
|
|
57
|
-
return this._controlsChanges().some((controlValue) => {
|
|
58
|
-
if (!controlValue) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (Array.isArray(controlValue)) {
|
|
63
|
-
return controlValue.some((value) => !!value);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return true;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { FilterListFooterComponent } from './filter-list/filter-list-footer/filter-list-footer.component';
|
|
5
|
-
import { FilterListHeaderComponent } from './filter-list/filter-list-header/filter-list-header.component';
|
|
6
|
-
import { FilterEditComponent } from './filter-list/filter-edit/filter-edit.component';
|
|
7
|
-
import { FilterListSavedComponent } from './filter-list/filter-list-saved/filter-list-saved.component';
|
|
8
|
-
import { FiltersSectionComponent } from './filter-list/filters-section/filters-section.component';
|
|
9
|
-
import { DividerComponent } from '../../divider/divider.component';
|
|
10
|
-
import { PrizmSharedModule } from '../../../utils/prizm.shared.module';
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
declarations: [
|
|
14
|
-
FilterListHeaderComponent,
|
|
15
|
-
FilterEditComponent,
|
|
16
|
-
FilterListSavedComponent,
|
|
17
|
-
FiltersSectionComponent,
|
|
18
|
-
FilterListFooterComponent,
|
|
19
|
-
],
|
|
20
|
-
imports: [CommonModule, FormsModule, ReactiveFormsModule, PrizmSharedModule, DividerComponent],
|
|
21
|
-
exports: [
|
|
22
|
-
FilterEditComponent,
|
|
23
|
-
FilterListSavedComponent,
|
|
24
|
-
FiltersSectionComponent,
|
|
25
|
-
FilterListHeaderComponent,
|
|
26
|
-
FilterListFooterComponent,
|
|
27
|
-
],
|
|
28
|
-
})
|
|
29
|
-
export class FilterListModule {}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<sproc-sliding-panel [isOpen]="isOpen$ | async" [subOffsetHeight]="subOffsetHeight">
|
|
2
|
-
<sproc-filter-list-header
|
|
3
|
-
header
|
|
4
|
-
[showTotal]="showTotal"
|
|
5
|
-
[showPin]="showPin"
|
|
6
|
-
[showCloseButton]="showCloseButton"
|
|
7
|
-
[total]="total$ | async"
|
|
8
|
-
[acceptButtonDisabled]="acceptButtonDisabled"
|
|
9
|
-
[applyButtonDisabled]="applyButtonDisabled"
|
|
10
|
-
[filterListHeaderTitle]="filterListHeaderTitle"
|
|
11
|
-
(pinnedChange)="closeMenu($event)"
|
|
12
|
-
(applyFilter)="onApplyFilter($event)"
|
|
13
|
-
></sproc-filter-list-header>
|
|
14
|
-
|
|
15
|
-
<ng-container [ngSwitch]="filterState$ | async">
|
|
16
|
-
<ng-container *ngSwitchCase="FilterState.FILTER_LIST" [ngTemplateOutlet]="filtersTemplate">
|
|
17
|
-
</ng-container>
|
|
18
|
-
|
|
19
|
-
<div *ngSwitchCase="FilterState.SAVED_LIST">
|
|
20
|
-
<sproc-filter-list-saved></sproc-filter-list-saved>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div *ngSwitchCase="FilterState.ON_EDIT_FILTER">
|
|
24
|
-
<sproc-filter-edit></sproc-filter-edit>
|
|
25
|
-
|
|
26
|
-
<sproc-divider></sproc-divider>
|
|
27
|
-
|
|
28
|
-
<ng-container [ngTemplateOutlet]="filtersTemplate"></ng-container>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div *ngSwitchCase="FilterState.ON_SAVE_FILTER">
|
|
32
|
-
<sproc-filter-edit></sproc-filter-edit>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<ng-template #filtersTemplate>
|
|
36
|
-
@defer (on viewport) {
|
|
37
|
-
<ng-content />
|
|
38
|
-
} @loading (minimum 1s) {
|
|
39
|
-
<tui-loader size="m" class="loader"></tui-loader>
|
|
40
|
-
} @placeholder {
|
|
41
|
-
<span>...</span>
|
|
42
|
-
}
|
|
43
|
-
</ng-template>
|
|
44
|
-
</ng-container>
|
|
45
|
-
|
|
46
|
-
<sproc-filter-list-footer
|
|
47
|
-
footer
|
|
48
|
-
[acceptButtonDisabled]="acceptButtonDisabled"
|
|
49
|
-
[applyButtonDisabled]="applyButtonDisabled"
|
|
50
|
-
(apply)="onApplyFilter($event)"
|
|
51
|
-
[footerApplyButtonLabel]="footerApplyButtonLabel"
|
|
52
|
-
></sproc-filter-list-footer>
|
|
53
|
-
</sproc-sliding-panel>
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
inject,
|
|
7
|
-
Input,
|
|
8
|
-
OnDestroy,
|
|
9
|
-
OnInit,
|
|
10
|
-
Output,
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import { combineLatest, debounceTime, map, Subject, takeUntil, of } from 'rxjs';
|
|
13
|
-
import {
|
|
14
|
-
EInputsAction,
|
|
15
|
-
EInputsState,
|
|
16
|
-
GqlFields,
|
|
17
|
-
IInputsState,
|
|
18
|
-
ITpUserSettings,
|
|
19
|
-
ITpUserSettingsSettingsFilter,
|
|
20
|
-
} from '../../types';
|
|
21
|
-
import { FiltersService, FiltersStateService } from '../../services';
|
|
22
|
-
import { RegisterBaseStore } from '../../core';
|
|
23
|
-
import { PAGE_MENU_STATE } from '../page-menu';
|
|
24
|
-
|
|
25
|
-
@Component({
|
|
26
|
-
selector: 'sproc-register-table-filter',
|
|
27
|
-
templateUrl: './register-table-filter.component.html',
|
|
28
|
-
styleUrls: ['./register-table-filter.component.less'],
|
|
29
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
-
})
|
|
31
|
-
export class RegisterTableFilterComponent<Type extends Record<string, any>>
|
|
32
|
-
implements OnInit, AfterViewInit, OnDestroy
|
|
33
|
-
{
|
|
34
|
-
/** Высота всего компонента фильтров */
|
|
35
|
-
@Input() height: string | undefined;
|
|
36
|
-
@Input() showTotal = true;
|
|
37
|
-
@Input() showPin = true;
|
|
38
|
-
@Input() showCloseButton = true;
|
|
39
|
-
@Input() acceptButtonDisabled = false;
|
|
40
|
-
@Input() applyButtonDisabled = false;
|
|
41
|
-
/** Доп. отступ для вычисления высоты панели (в пикселях) */
|
|
42
|
-
@Input() subOffsetHeight = 0;
|
|
43
|
-
@Input() filterListHeaderTitle = 'Фильтр';
|
|
44
|
-
@Input() footerApplyButtonLabel = 'Применить';
|
|
45
|
-
|
|
46
|
-
@Output() clickApplyButton = new EventEmitter<void>();
|
|
47
|
-
|
|
48
|
-
private readonly _menuState = inject(PAGE_MENU_STATE);
|
|
49
|
-
|
|
50
|
-
private readonly _unsubscribe$: Subject<void> = new Subject<void>();
|
|
51
|
-
|
|
52
|
-
public readonly FilterState = EInputsState;
|
|
53
|
-
public readonly filterState$ = this._filterStateService.state$.pipe(
|
|
54
|
-
map((filterState) => filterState.state)
|
|
55
|
-
);
|
|
56
|
-
public readonly isOpen$ = this.filterState$.pipe(map((state) => state !== EInputsState.HIDDEN));
|
|
57
|
-
public readonly total$ = this._store.total$ ?? of(0);
|
|
58
|
-
|
|
59
|
-
private _currentFilters: ITpUserSettingsSettingsFilter[] = [];
|
|
60
|
-
private _previousState: IInputsState = {
|
|
61
|
-
state: EInputsState.HIDDEN,
|
|
62
|
-
action: EInputsAction.CANCEL,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
constructor(
|
|
66
|
-
private readonly _store: RegisterBaseStore<Type>,
|
|
67
|
-
private readonly _filterStateService: FiltersStateService<Type>,
|
|
68
|
-
private readonly _filterListService: FiltersService<Type>
|
|
69
|
-
) {}
|
|
70
|
-
|
|
71
|
-
public ngOnInit(): void {
|
|
72
|
-
combineLatest([this._filterStateService.state$, this._filterStateService.selectedSavedFilter])
|
|
73
|
-
.pipe(takeUntil(this._unsubscribe$))
|
|
74
|
-
.subscribe({
|
|
75
|
-
next: ([state, selected]) => {
|
|
76
|
-
if (state.state === EInputsState.SAVED_LIST) {
|
|
77
|
-
this.acceptButtonDisabled = !selected;
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (state.state === EInputsState.ON_EDIT_FILTER) {
|
|
82
|
-
this.acceptButtonDisabled = false;
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (state.state === EInputsState.ON_SAVE_FILTER) {
|
|
87
|
-
this.acceptButtonDisabled = false;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
this.acceptButtonDisabled = true;
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
if (this._filterStateService.isPin) {
|
|
95
|
-
this._filterStateService.setState({
|
|
96
|
-
state: EInputsState.FILTER_LIST,
|
|
97
|
-
action: EInputsAction.OPEN,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
protected closeMenu(isPin: boolean): void {
|
|
103
|
-
if (isPin) {
|
|
104
|
-
this._menuState.setOpen(false);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
public onApplyFilter(gqlFilter: GqlFields, savePage?: boolean): void {
|
|
109
|
-
if (!savePage) {
|
|
110
|
-
this._filterStateService.setOffset(0);
|
|
111
|
-
this._filterStateService.setPage(1);
|
|
112
|
-
}
|
|
113
|
-
this._filterStateService.setGqlValues(gqlFilter);
|
|
114
|
-
this.clickApplyButton.next();
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
public ngAfterViewInit(): void {
|
|
118
|
-
this._subscribeOnState();
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
private _subscribeOnState(): void {
|
|
122
|
-
combineLatest([this._filterStateService.state$, this._filterStateService.selectedSavedFilter])
|
|
123
|
-
.pipe(debounceTime(500), takeUntil(this._unsubscribe$))
|
|
124
|
-
.subscribe(([state, settings]) => {
|
|
125
|
-
this._setFilters(state, settings);
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private _setFilters(state: IInputsState, settings: ITpUserSettings | null): void {
|
|
130
|
-
const { state: currentState, action: currentAction } = state;
|
|
131
|
-
const { state: previousState } = this._previousState;
|
|
132
|
-
|
|
133
|
-
switch (currentState) {
|
|
134
|
-
case EInputsState.ON_EDIT_FILTER:
|
|
135
|
-
if (previousState !== EInputsState.ON_EDIT_FILTER) {
|
|
136
|
-
this._filterListService.setUserSettingsFilterValues(settings?.settings?.filter ?? []);
|
|
137
|
-
}
|
|
138
|
-
break;
|
|
139
|
-
case EInputsState.SAVED_LIST:
|
|
140
|
-
if (
|
|
141
|
-
previousState !== EInputsState.SAVED_LIST &&
|
|
142
|
-
previousState !== EInputsState.ON_EDIT_FILTER &&
|
|
143
|
-
previousState !== EInputsState.ON_SAVE_FILTER
|
|
144
|
-
) {
|
|
145
|
-
this._currentFilters = this._filterListService.userSettingsFilter;
|
|
146
|
-
}
|
|
147
|
-
break;
|
|
148
|
-
case EInputsState.FILTER_LIST:
|
|
149
|
-
if (previousState !== EInputsState.FILTER_LIST) {
|
|
150
|
-
if (currentAction === EInputsAction.CANCEL) {
|
|
151
|
-
this._filterListService.setUserSettingsFilterValues(this._currentFilters);
|
|
152
|
-
} else if (currentAction === EInputsAction.APPLY_SAVED_FILTER) {
|
|
153
|
-
this._currentFilters = settings?.settings?.filter ?? [];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
break;
|
|
157
|
-
default:
|
|
158
|
-
console.warn('Состояние фильтра', currentState);
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
public ngOnDestroy(): void {
|
|
164
|
-
this._unsubscribe$.next();
|
|
165
|
-
this._unsubscribe$.complete();
|
|
166
|
-
}
|
|
167
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { RegisterTableFilterComponent } from './register-table-filter.component';
|
|
5
|
-
import { FilterListModule } from './components/filter-list.module';
|
|
6
|
-
import { SlidingPanelModule } from '../sliding-panel/sliding-panel.module';
|
|
7
|
-
import { DividerComponent } from '../divider/divider.component';
|
|
8
|
-
import { TuiLoader } from '@taiga-ui/core';
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
declarations: [RegisterTableFilterComponent],
|
|
12
|
-
imports: [
|
|
13
|
-
CommonModule,
|
|
14
|
-
ReactiveFormsModule,
|
|
15
|
-
FilterListModule,
|
|
16
|
-
DividerComponent,
|
|
17
|
-
SlidingPanelModule,
|
|
18
|
-
TuiLoader,
|
|
19
|
-
],
|
|
20
|
-
exports: [RegisterTableFilterComponent],
|
|
21
|
-
})
|
|
22
|
-
export class RegisterTableFilterModule {}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { ParamSelectComponent } from './param-select/param-select.component';
|
|
4
|
-
import { ParamMultiSelectComponent } from './param-multi-select/param-multi-select.component';
|
|
5
|
-
import { ParamDateRangeComponent } from './param-date-range/param-date-range.component';
|
|
6
|
-
import { ParamMonthComponent } from './param-month/param-month.component';
|
|
7
|
-
import { ParamMonthRangeComponent } from './param-month-range/param-month-range.component';
|
|
8
|
-
import { ParamToggleComponent } from './param-toggle/param-toggle.component';
|
|
9
|
-
import { ParamTextComponent } from './param-text/param-text.component';
|
|
10
|
-
import { ParamDateTimeRangeComponent } from './param-date-time-range/param-date-time-range.component';
|
|
11
|
-
import { ParamCustomComponent } from './param-custom/param-custom.component';
|
|
12
|
-
import { ParamSwitcherComponent } from './param-switcher/param-switcher.component';
|
|
13
|
-
import { ParamDateComponent } from './param-date/param-date.component';
|
|
14
|
-
import { ParamSwitcherDateTimeRangeComponent } from './param-switcher-date-time-range/param-switcher-date-time-range.component';
|
|
15
|
-
import { ParamDateTimeComponent } from './param-date-time/param-date-time.component';
|
|
16
|
-
import {
|
|
17
|
-
TuiAppearance,
|
|
18
|
-
TuiButton,
|
|
19
|
-
TuiIcon,
|
|
20
|
-
TuiTextfieldComponent,
|
|
21
|
-
TuiTextfieldDirective,
|
|
22
|
-
TuiTextfieldDropdownDirective,
|
|
23
|
-
TuiTextfieldOptionsDirective,
|
|
24
|
-
} from '@taiga-ui/core';
|
|
25
|
-
import { TuiInputModule, TuiInputYearModule, TuiTextfieldControllerModule } from '@taiga-ui/legacy';
|
|
26
|
-
import {
|
|
27
|
-
TuiChevron,
|
|
28
|
-
TuiDataListWrapperComponent,
|
|
29
|
-
TuiFilterByInputPipe,
|
|
30
|
-
TuiSelectDirective,
|
|
31
|
-
TuiSwitch,
|
|
32
|
-
} from '@taiga-ui/kit';
|
|
33
|
-
import { TuiInputSearch } from '@taiga-ui/layout';
|
|
34
|
-
import { ParamTextareaComponent } from './param-textarea/param-textarea.component';
|
|
35
|
-
import { ParamCalendarYearComponent } from './param-calendar-year/param-calendar-year.component';
|
|
36
|
-
import { FormatDatePipe } from '../../directives/date/format-date.pipe';
|
|
37
|
-
import { PrizmSharedModule } from '../../utils/prizm.shared.module';
|
|
38
|
-
import { PrizmInputMultiSelectModule } from '@prizm-ui/components';
|
|
39
|
-
import { ParamDeleteContentBtnComponent } from './sub-components/param-delete-content-icon/param-delete-content-btn.component';
|
|
40
|
-
import { ParamInvalidIconComponent } from './sub-components/param-invalid-icon/param-invalid-icon.component';
|
|
41
|
-
|
|
42
|
-
@NgModule({
|
|
43
|
-
declarations: [
|
|
44
|
-
ParamDateRangeComponent,
|
|
45
|
-
ParamDateTimeComponent,
|
|
46
|
-
ParamMonthComponent,
|
|
47
|
-
ParamMonthRangeComponent,
|
|
48
|
-
ParamToggleComponent,
|
|
49
|
-
ParamDateTimeRangeComponent,
|
|
50
|
-
ParamCustomComponent,
|
|
51
|
-
ParamSwitcherComponent,
|
|
52
|
-
ParamSwitcherDateTimeRangeComponent,
|
|
53
|
-
ParamSwitcherDateTimeRangeComponent,
|
|
54
|
-
ParamCalendarYearComponent,
|
|
55
|
-
],
|
|
56
|
-
imports: [
|
|
57
|
-
CommonModule,
|
|
58
|
-
ParamTextComponent,
|
|
59
|
-
PrizmSharedModule,
|
|
60
|
-
PrizmInputMultiSelectModule,
|
|
61
|
-
TuiTextfieldComponent,
|
|
62
|
-
TuiTextfieldDirective,
|
|
63
|
-
TuiTextfieldOptionsDirective,
|
|
64
|
-
TuiAppearance,
|
|
65
|
-
TuiInputModule,
|
|
66
|
-
TuiTextfieldControllerModule,
|
|
67
|
-
TuiIcon,
|
|
68
|
-
TuiButton,
|
|
69
|
-
TuiChevron,
|
|
70
|
-
TuiSelectDirective,
|
|
71
|
-
TuiDataListWrapperComponent,
|
|
72
|
-
TuiTextfieldDropdownDirective,
|
|
73
|
-
TuiFilterByInputPipe,
|
|
74
|
-
TuiInputSearch,
|
|
75
|
-
ParamMultiSelectComponent,
|
|
76
|
-
ParamSelectComponent,
|
|
77
|
-
ParamDateComponent,
|
|
78
|
-
TuiSwitch,
|
|
79
|
-
ParamTextareaComponent,
|
|
80
|
-
TuiInputYearModule,
|
|
81
|
-
FormatDatePipe,
|
|
82
|
-
ParamDeleteContentBtnComponent,
|
|
83
|
-
ParamInvalidIconComponent,
|
|
84
|
-
],
|
|
85
|
-
exports: [
|
|
86
|
-
ParamSelectComponent,
|
|
87
|
-
ParamMultiSelectComponent,
|
|
88
|
-
ParamDateRangeComponent,
|
|
89
|
-
ParamDateTimeComponent,
|
|
90
|
-
ParamMonthComponent,
|
|
91
|
-
ParamMonthRangeComponent,
|
|
92
|
-
ParamToggleComponent,
|
|
93
|
-
ParamTextComponent,
|
|
94
|
-
ParamDateTimeRangeComponent,
|
|
95
|
-
ParamCustomComponent,
|
|
96
|
-
ParamSwitcherComponent,
|
|
97
|
-
ParamDateComponent,
|
|
98
|
-
ParamSwitcherDateTimeRangeComponent,
|
|
99
|
-
ParamSwitcherDateTimeRangeComponent,
|
|
100
|
-
ParamTextareaComponent,
|
|
101
|
-
ParamCalendarYearComponent,
|
|
102
|
-
],
|
|
103
|
-
})
|
|
104
|
-
export class InputsModule {}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="readmode ? readTemplate : editTemplate">
|
|
2
|
-
<ng-template #readTemplate>
|
|
3
|
-
<div class="container container--read" [attr.sproc-param-style]="paramStyle">
|
|
4
|
-
<ng-container *ngIf="label">
|
|
5
|
-
<ng-container [ngSwitch]="paramStyle">
|
|
6
|
-
<ng-template ngSwitchCase="filter">
|
|
7
|
-
<div class="label-wrapper">
|
|
8
|
-
<span class="label">{{ label }}</span>
|
|
9
|
-
<div class="dashed-row"></div>
|
|
10
|
-
</div>
|
|
11
|
-
</ng-template>
|
|
12
|
-
<ng-template ngSwitchDefault>
|
|
13
|
-
<span class="label">{{ label }}</span>
|
|
14
|
-
<div class="dashed-row"></div>
|
|
15
|
-
</ng-template>
|
|
16
|
-
</ng-container>
|
|
17
|
-
</ng-container>
|
|
18
|
-
<div class="value">
|
|
19
|
-
<span>{{ showedValue }}</span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</ng-template>
|
|
23
|
-
<ng-template #editTemplate>
|
|
24
|
-
<div class="container container--edit" [attr.sproc-param-style]="paramStyle">
|
|
25
|
-
<div *ngIf="label" class="label-wrapper" [class.applied]="applied()">
|
|
26
|
-
<span class="label" [class.required]="required">
|
|
27
|
-
{{ label }}
|
|
28
|
-
</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<tui-textfield
|
|
32
|
-
[tuiTextfieldSize]="size()"
|
|
33
|
-
[tuiTextfieldLabelOutside]="true"
|
|
34
|
-
[tuiTextfieldCleaner]="true"
|
|
35
|
-
(click)="click()"
|
|
36
|
-
>
|
|
37
|
-
<tui-input-year
|
|
38
|
-
#yearInput
|
|
39
|
-
[formControl]="control"
|
|
40
|
-
[max]="max()"
|
|
41
|
-
[min]="min()"
|
|
42
|
-
[disabledItemHandler]="disabledHandler"
|
|
43
|
-
>
|
|
44
|
-
Выберите год
|
|
45
|
-
</tui-input-year>
|
|
46
|
-
</tui-textfield>
|
|
47
|
-
</div>
|
|
48
|
-
</ng-template>
|
|
49
|
-
</ng-container>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'common-param';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
::ng-deep {
|
|
6
|
-
tui-textfield {
|
|
7
|
-
padding: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[tuiWrapper][data-appearance='textfield'] {
|
|
11
|
-
box-shadow: none !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
tui-textfield > .t-content {
|
|
15
|
-
width: 100% !important;
|
|
16
|
-
height: 100% !important;
|
|
17
|
-
margin-inline-end: 0 !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
tui-input-year {
|
|
21
|
-
height: 100% !important;
|
|
22
|
-
width: 100% !important;
|
|
23
|
-
|
|
24
|
-
tui-primitive-textfield {
|
|
25
|
-
height: 100% !important;
|
|
26
|
-
max-block-size: none !important;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.t-wrapper label {
|
|
31
|
-
.input-label;
|
|
32
|
-
.input-text-14px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[automation-id='tui-primitive-textfield__wrapper'] {
|
|
36
|
-
padding-inline-start: calc(var(--t-start, 0rem) + var(--t-padding));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[tuiAppearance][data-appearance='textfield'] {
|
|
40
|
-
min-height: 32px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.t-icons {
|
|
44
|
-
margin-inline-end: 0.5rem !important;
|
|
45
|
-
min-height: 32px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.container {
|
|
50
|
-
&--read {
|
|
51
|
-
.read-style-card;
|
|
52
|
-
.read-style-filter;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&--edit {
|
|
56
|
-
.edit-style-card;
|
|
57
|
-
.edit-style-filter;
|
|
58
|
-
|
|
59
|
-
&[sproc-param-style='card'] {
|
|
60
|
-
::ng-deep {
|
|
61
|
-
input {
|
|
62
|
-
.input-text-14px;
|
|
63
|
-
|
|
64
|
-
color: var(--text-contrast);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
|
-
Component,
|
|
5
|
-
inject,
|
|
6
|
-
input,
|
|
7
|
-
viewChild,
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { type TuiBooleanHandler } from '@taiga-ui/cdk';
|
|
10
|
-
import { TuiSizeL, TuiSizeM } from '@taiga-ui/core';
|
|
11
|
-
import { ParamBase } from '../../../core/param/param-base';
|
|
12
|
-
import { TuiInputYearComponent } from '@taiga-ui/legacy';
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'sproc-param-calendar-year',
|
|
16
|
-
templateUrl: './param-calendar-year.component.html',
|
|
17
|
-
styleUrls: ['./param-calendar-year.component.less'],
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
})
|
|
20
|
-
export class ParamCalendarYearComponent extends ParamBase<number, string> {
|
|
21
|
-
private readonly _cdr = inject(ChangeDetectorRef);
|
|
22
|
-
public yearInputComponent = viewChild<TuiInputYearComponent>('yearInput');
|
|
23
|
-
|
|
24
|
-
override buildShowedValue = input((value: number): string => value?.toString() ?? '-');
|
|
25
|
-
protected readonly disabledHandler: TuiBooleanHandler<number> = (value) =>
|
|
26
|
-
this.disabledYears().includes(value);
|
|
27
|
-
|
|
28
|
-
public disabledYears = input<number[]>([]);
|
|
29
|
-
public min = input<number | null>(null);
|
|
30
|
-
public max = input<number | null>(null);
|
|
31
|
-
public size = input<TuiSizeL | TuiSizeM>('m');
|
|
32
|
-
protected isYearPickerOpen = false;
|
|
33
|
-
|
|
34
|
-
protected click(): void {
|
|
35
|
-
this.isYearPickerOpen = !this.isYearPickerOpen;
|
|
36
|
-
|
|
37
|
-
const yearComponent = this.yearInputComponent();
|
|
38
|
-
if (yearComponent) {
|
|
39
|
-
const inputEl = yearComponent.nativeFocusableElement!;
|
|
40
|
-
const onDocumentClick = (event: MouseEvent) => {
|
|
41
|
-
if (!inputEl.contains(event.target as Node) && this.isYearPickerOpen) {
|
|
42
|
-
(yearComponent as any).onOpenChange(false);
|
|
43
|
-
yearComponent.checkControlUpdate();
|
|
44
|
-
document.removeEventListener('click', onDocumentClick);
|
|
45
|
-
this.isYearPickerOpen = false;
|
|
46
|
-
this._cdr.markForCheck();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
document.addEventListener('click', onDocumentClick);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|