ngx-register-base 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +129 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +8 -0
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +249 -0
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +80 -0
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +10 -0
- package/esm2022/lib/components/column-settings/index.mjs +3 -0
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +7 -0
- package/esm2022/lib/components/divider/divider.component.mjs +16 -0
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +19 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +31 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +57 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +110 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +130 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +89 -0
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +41 -0
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +45 -0
- package/esm2022/lib/components/filters/index.mjs +3 -0
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +155 -0
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +39 -0
- package/esm2022/lib/components/index.mjs +11 -0
- package/esm2022/lib/components/inputs/index.mjs +20 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +166 -0
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +45 -0
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +12 -0
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +76 -0
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +60 -0
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +86 -0
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +95 -0
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +50 -0
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +62 -0
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +309 -0
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +225 -0
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +21 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +28 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +3 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +105 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +10 -0
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +40 -0
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +38 -0
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +37 -0
- package/esm2022/lib/components/inputs/param-tree/index.mjs +8 -0
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +207 -0
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +116 -0
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +3 -0
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +2 -0
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +9 -0
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +80 -0
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +85 -0
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +15 -0
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +12 -0
- package/esm2022/lib/components/menu-constructor/index.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +559 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +3 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +3 -0
- package/esm2022/lib/components/page-menu/index.mjs +6 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +9 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +2 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +4 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +3 -0
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +275 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +159 -0
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +2 -0
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +4 -0
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +19 -0
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +18 -0
- package/esm2022/lib/components/register-table/index.mjs +4 -0
- package/esm2022/lib/components/register-table/model/schema.mjs +10 -0
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +33 -0
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +17 -0
- package/esm2022/lib/components/register-table/register-table.component.mjs +544 -0
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +18 -0
- package/esm2022/lib/components/search-input/search-input.component.mjs +28 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +48 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +19 -0
- package/esm2022/lib/consts/date-time.consts.mjs +2 -0
- package/esm2022/lib/consts/index.mjs +4 -0
- package/esm2022/lib/consts/inputs.consts.mjs +4 -0
- package/esm2022/lib/consts/month.consts.mjs +77 -0
- package/esm2022/lib/consts/params.consts.mjs +2 -0
- package/esm2022/lib/consts/register-base.consts.mjs +26 -0
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +8 -0
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +81 -0
- package/esm2022/lib/core/form-group-wrapper/index.mjs +2 -0
- package/esm2022/lib/core/index.mjs +5 -0
- package/esm2022/lib/core/input-control/index.mjs +2 -0
- package/esm2022/lib/core/input-control/input-control.mjs +11 -0
- package/esm2022/lib/core/param/index.mjs +6 -0
- package/esm2022/lib/core/param/param-base.mjs +215 -0
- package/esm2022/lib/core/param/param-date-base.mjs +26 -0
- package/esm2022/lib/core/param/param-select-base.mjs +114 -0
- package/esm2022/lib/core/param/param-text-base.mjs +25 -0
- package/esm2022/lib/core/param/param.tokens.mjs +4 -0
- package/esm2022/lib/core/register-base/index.mjs +3 -0
- package/esm2022/lib/core/register-base/register-base.mjs +575 -0
- package/esm2022/lib/core/register-base/register-base.store.mjs +43 -0
- package/esm2022/lib/directives/date/date-time.types.mjs +34 -0
- package/esm2022/lib/directives/date/format-date.pipe.mjs +33 -0
- package/esm2022/lib/directives/index.mjs +3 -0
- package/esm2022/lib/directives/number/number-only.directive.mjs +41 -0
- package/esm2022/lib/directives/sticky/index.mjs +3 -0
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +169 -0
- package/esm2022/lib/services/date-time.service.mjs +314 -0
- package/esm2022/lib/services/dialog/dialog.service.mjs +53 -0
- package/esm2022/lib/services/dialog/dialog.types.mjs +2 -0
- package/esm2022/lib/services/dialog/index.mjs +3 -0
- package/esm2022/lib/services/dom-intersection.service.mjs +22 -0
- package/esm2022/lib/services/filter/filters-state.service.mjs +65 -0
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +82 -0
- package/esm2022/lib/services/filter/filters.service.mjs +23 -0
- package/esm2022/lib/services/index.mjs +8 -0
- package/esm2022/lib/services/inputs-state.service.mjs +130 -0
- package/esm2022/lib/services/inputs.service.mjs +88 -0
- package/esm2022/lib/services/key-pressed.service.mjs +37 -0
- package/esm2022/lib/services/resize-window-observer.service.mjs +33 -0
- package/esm2022/lib/services/selected-objects-state.service.mjs +123 -0
- package/esm2022/lib/store/fast-query-store.service.mjs +110 -0
- package/esm2022/lib/store/index.mjs +2 -0
- package/esm2022/lib/types/event.types.mjs +2 -0
- package/esm2022/lib/types/hasura.types.mjs +2 -0
- package/esm2022/lib/types/index.mjs +7 -0
- package/esm2022/lib/types/inputs.types.mjs +19 -0
- package/esm2022/lib/types/params.types.mjs +2 -0
- package/esm2022/lib/types/register-base.types.mjs +6 -0
- package/esm2022/lib/types/sub-types.mjs +2 -0
- package/esm2022/lib/types/user-profile.types.mjs +2 -0
- package/esm2022/lib/utils/functions.mjs +10 -0
- package/esm2022/lib/utils/get-url-segment.mjs +35 -0
- package/esm2022/lib/utils/index.mjs +5 -0
- package/esm2022/lib/utils/prizm.shared.module.mjs +284 -0
- package/esm2022/lib/utils/rxjs.mjs +28 -0
- package/esm2022/lib/utils/select-all-utils.mjs +11 -0
- package/esm2022/ngx-register-base.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/ngx-register-base.mjs +7479 -0
- package/fesm2022/ngx-register-base.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +33 -0
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +7 -0
- package/lib/components/column-settings/column-settings.component.d.ts +80 -0
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +24 -0
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +8 -0
- package/lib/components/column-settings/types/column-settings.types.d.ts +22 -0
- package/lib/components/divider/divider.component.d.ts +6 -0
- package/lib/components/filter-button/filter-button.component.d.ts +8 -0
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +14 -0
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +25 -0
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +39 -0
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +41 -0
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +20 -0
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +15 -0
- package/lib/components/filters/components/filter-list.module.d.ts +15 -0
- package/lib/components/filters/register-table-filter.component.d.ts +40 -0
- package/lib/components/filters/register-table-filter.module.d.ts +13 -0
- package/lib/components/inputs/inputs.module.d.ts +31 -0
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +19 -0
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +6 -0
- package/lib/components/inputs/param-date/param-date.component.d.ts +20 -0
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +26 -0
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +25 -0
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +28 -0
- package/lib/components/inputs/param-month/param-month.component.d.ts +18 -0
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +21 -0
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +46 -0
- package/lib/components/inputs/param-select/param-select.component.d.ts +34 -0
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +8 -0
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +2 -0
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +19 -0
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +8 -0
- package/lib/components/inputs/param-text/param-text.component.d.ts +10 -0
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +10 -0
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +9 -0
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +7 -0
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +41 -0
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +37 -0
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +10 -0
- package/{src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts → lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts} +1 -2
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +32 -0
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +7 -0
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +31 -0
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +30 -0
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +6 -0
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +5 -0
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +113 -0
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +24 -0
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +36 -0
- package/{src/lib/components/menu-constructor/store/sproc-menu.tokens.ts → lib/components/menu-constructor/store/sproc-menu.tokens.d.ts} +1 -4
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +7 -0
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +30 -0
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +3 -0
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +36 -0
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +48 -0
- package/lib/components/paginator/paginator.component.d.ts +52 -0
- package/lib/components/paginator/types/paginator.types.d.ts +15 -0
- package/lib/components/register-table/consts/register-table.consts.d.ts +3 -0
- package/lib/components/register-table/directives/cell-template.directive.d.ts +9 -0
- package/lib/components/register-table/directives/header-template.directive.d.ts +9 -0
- package/lib/components/register-table/model/schema.d.ts +52 -0
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +8 -0
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +7 -0
- package/lib/components/register-table/register-table.component.d.ts +165 -0
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +9 -0
- package/lib/components/search-input/search-input.component.d.ts +11 -0
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +14 -0
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +9 -0
- package/lib/consts/date-time.consts.d.ts +1 -0
- package/lib/consts/index.d.ts +3 -0
- package/lib/consts/inputs.consts.d.ts +4 -0
- package/lib/consts/month.consts.d.ts +49 -0
- package/lib/consts/params.consts.d.ts +1 -0
- package/lib/consts/register-base.consts.d.ts +19 -0
- package/lib/core/form-group-wrapper/errors-consts.d.ts +5 -0
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +15 -0
- package/lib/core/input-control/input-control.d.ts +11 -0
- package/lib/core/param/param-base.d.ts +68 -0
- package/lib/core/param/param-date-base.d.ts +18 -0
- package/lib/core/param/param-select-base.d.ts +42 -0
- package/lib/core/param/param-text-base.d.ts +15 -0
- package/{src/lib/core/param/param.tokens.ts → lib/core/param/param.tokens.d.ts} +1 -2
- package/lib/core/register-base/register-base.d.ts +168 -0
- package/lib/core/register-base/register-base.store.d.ts +35 -0
- package/lib/directives/date/date-time.types.d.ts +32 -0
- package/lib/directives/date/format-date.pipe.d.ts +10 -0
- package/lib/directives/number/number-only.directive.d.ts +10 -0
- package/lib/directives/sticky/sticky-relative.directive.d.ts +13 -0
- package/lib/directives/sticky/sticky-relative.service.d.ts +15 -0
- package/lib/directives/sticky/sticky.directive.d.ts +27 -0
- package/lib/services/date-time.service.d.ts +80 -0
- package/lib/services/dialog/dialog.service.d.ts +22 -0
- package/{src/lib/services/dialog/dialog.types.ts → lib/services/dialog/dialog.types.d.ts} +4 -8
- package/lib/services/dom-intersection.service.d.ts +8 -0
- package/lib/services/filter/filters-state.service.d.ts +21 -0
- package/lib/services/filter/filters-transmit.service.d.ts +28 -0
- package/lib/services/filter/filters.service.d.ts +12 -0
- package/lib/services/inputs-state.service.d.ts +57 -0
- package/lib/services/inputs.service.d.ts +28 -0
- package/lib/services/key-pressed.service.d.ts +15 -0
- package/lib/services/resize-window-observer.service.d.ts +11 -0
- package/lib/services/selected-objects-state.service.d.ts +47 -0
- package/lib/store/fast-query-store.service.d.ts +19 -0
- package/{src/lib/types/event.types.ts → lib/types/event.types.d.ts} +1 -1
- package/lib/types/hasura.types.d.ts +35 -0
- package/lib/types/inputs.types.d.ts +41 -0
- package/lib/types/params.types.d.ts +27 -0
- package/lib/types/register-base.types.d.ts +123 -0
- package/lib/types/sub-types.d.ts +8 -0
- package/lib/types/user-profile.types.d.ts +17 -0
- package/lib/utils/functions.d.ts +3 -0
- package/lib/utils/get-url-segment.d.ts +7 -0
- package/lib/utils/prizm.shared.module.d.ts +14 -0
- package/lib/utils/rxjs.d.ts +10 -0
- package/lib/utils/select-all-utils.d.ts +8 -0
- package/package.json +15 -12
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +2 -0
- package/schematics/ng-update/replace-menu-state-token/index.js +29 -0
- package/schematics/ng-update/replace-menu-state-token/index.js.map +1 -0
- package/schematics/ng-update/update-prefix/index.d.ts +2 -0
- package/schematics/ng-update/update-prefix/index.js +33 -0
- package/schematics/ng-update/update-prefix/index.js.map +1 -0
- package/schematics/utils/{utils.ts → utils.d.ts} +2 -9
- package/schematics/utils/utils.js +25 -0
- package/schematics/utils/utils.js.map +1 -0
- package/ng-package.json +0 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +0 -33
- package/schematics/ng-update/update-prefix/index.ts +0 -38
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +0 -91
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +0 -67
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +0 -176
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +0 -8
- package/src/lib/components/column-settings/column-settings.component.html +0 -160
- package/src/lib/components/column-settings/column-settings.component.less +0 -131
- package/src/lib/components/column-settings/column-settings.component.ts +0 -352
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +0 -65
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +0 -79
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +0 -114
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +0 -9
- package/src/lib/components/column-settings/types/column-settings.types.ts +0 -26
- package/src/lib/components/divider/divider.component.html +0 -4
- package/src/lib/components/divider/divider.component.less +0 -10
- package/src/lib/components/divider/divider.component.ts +0 -12
- package/src/lib/components/filter-button/filter-button.component.html +0 -20
- package/src/lib/components/filter-button/filter-button.component.less +0 -41
- package/src/lib/components/filter-button/filter-button.component.ts +0 -18
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +0 -22
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +0 -23
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +0 -31
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +0 -37
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +0 -66
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +0 -147
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +0 -45
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +0 -114
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +0 -44
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +0 -167
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +0 -97
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +0 -18
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +0 -55
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +0 -69
- package/src/lib/components/filters/components/filter-list.module.ts +0 -29
- package/src/lib/components/filters/register-table-filter.component.html +0 -53
- package/src/lib/components/filters/register-table-filter.component.less +0 -17
- package/src/lib/components/filters/register-table-filter.component.ts +0 -167
- package/src/lib/components/filters/register-table-filter.module.ts +0 -22
- package/src/lib/components/inputs/inputs.module.ts +0 -104
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +0 -49
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +0 -70
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +0 -52
- package/src/lib/components/inputs/param-custom/param-custom.component.html +0 -1
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +0 -9
- package/src/lib/components/inputs/param-date/param-date.component.html +0 -55
- package/src/lib/components/inputs/param-date/param-date.component.less +0 -67
- package/src/lib/components/inputs/param-date/param-date.component.ts +0 -77
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +0 -45
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +0 -75
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +0 -67
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +0 -70
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +0 -72
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +0 -101
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +0 -67
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +0 -103
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +0 -128
- package/src/lib/components/inputs/param-month/param-month.component.html +0 -46
- package/src/lib/components/inputs/param-month/param-month.component.less +0 -72
- package/src/lib/components/inputs/param-month/param-month.component.ts +0 -55
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +0 -39
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +0 -71
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +0 -76
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +0 -84
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +0 -108
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +0 -448
- package/src/lib/components/inputs/param-select/param-select.component.html +0 -106
- package/src/lib/components/inputs/param-select/param-select.component.less +0 -26
- package/src/lib/components/inputs/param-select/param-select.component.ts +0 -318
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +0 -8
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +0 -53
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +0 -13
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +0 -29
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +0 -19
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +0 -76
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +0 -134
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +0 -8
- package/src/lib/components/inputs/param-text/param-text.component.html +0 -59
- package/src/lib/components/inputs/param-text/param-text.component.less +0 -33
- package/src/lib/components/inputs/param-text/param-text.component.ts +0 -36
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +0 -61
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +0 -21
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +0 -33
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +0 -40
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +0 -69
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +0 -14
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +0 -59
- package/src/lib/components/inputs/param-tree/param-tree.component.html +0 -51
- package/src/lib/components/inputs/param-tree/param-tree.component.less +0 -3
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +0 -282
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +0 -176
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +0 -18
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +0 -39
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +0 -18
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +0 -78
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +0 -109
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +0 -89
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +0 -54
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +0 -56
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +0 -91
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +0 -5
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +0 -13
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +0 -4
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +0 -11
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +0 -95
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +0 -183
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +0 -687
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +0 -32
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +0 -46
- package/src/lib/components/page-menu/README.md +0 -60
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +0 -8
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +0 -35
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +0 -5
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +0 -42
- package/src/lib/components/page-menu/sproc-page-menu.component.html +0 -166
- package/src/lib/components/page-menu/sproc-page-menu.component.less +0 -228
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +0 -337
- package/src/lib/components/paginator/paginator.component.html +0 -97
- package/src/lib/components/paginator/paginator.component.less +0 -101
- package/src/lib/components/paginator/paginator.component.ts +0 -192
- package/src/lib/components/paginator/types/paginator.types.ts +0 -16
- package/src/lib/components/register-table/consts/register-table.consts.ts +0 -3
- package/src/lib/components/register-table/directives/cell-template.directive.ts +0 -11
- package/src/lib/components/register-table/directives/header-template.directive.ts +0 -11
- package/src/lib/components/register-table/model/schema.ts +0 -62
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +0 -28
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +0 -11
- package/src/lib/components/register-table/register-table.component.html +0 -257
- package/src/lib/components/register-table/register-table.component.less +0 -151
- package/src/lib/components/register-table/register-table.component.ts +0 -743
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +0 -14
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +0 -26
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +0 -15
- package/src/lib/components/search-input/search-input.component.html +0 -6
- package/src/lib/components/search-input/search-input.component.less +0 -17
- package/src/lib/components/search-input/search-input.component.ts +0 -31
- package/src/lib/components/sliding-panel/sliding-panel.component.html +0 -13
- package/src/lib/components/sliding-panel/sliding-panel.component.less +0 -112
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +0 -36
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +0 -11
- package/src/lib/consts/date-time.consts.ts +0 -1
- package/src/lib/consts/index.ts +0 -8
- package/src/lib/consts/inputs.consts.ts +0 -9
- package/src/lib/consts/month.consts.ts +0 -82
- package/src/lib/consts/params.consts.ts +0 -1
- package/src/lib/consts/register-base.consts.ts +0 -40
- package/src/lib/core/form-group-wrapper/errors-consts.ts +0 -6
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +0 -109
- package/src/lib/core/input-control/input-control.ts +0 -30
- package/src/lib/core/param/param-base.ts +0 -262
- package/src/lib/core/param/param-date-base.ts +0 -30
- package/src/lib/core/param/param-select-base.ts +0 -118
- package/src/lib/core/param/param-text-base.ts +0 -23
- package/src/lib/core/register-base/register-base.store.ts +0 -84
- package/src/lib/core/register-base/register-base.ts +0 -854
- package/src/lib/directives/date/date-time.types.ts +0 -36
- package/src/lib/directives/date/format-date.pipe.ts +0 -28
- package/src/lib/directives/number/number-only.directive.ts +0 -36
- package/src/lib/directives/sticky/sticky-relative.directive.ts +0 -30
- package/src/lib/directives/sticky/sticky-relative.service.ts +0 -34
- package/src/lib/directives/sticky/sticky.directive.ts +0 -189
- package/src/lib/services/date-time.service.ts +0 -399
- package/src/lib/services/dialog/dialog.service.ts +0 -62
- package/src/lib/services/dom-intersection.service.ts +0 -23
- package/src/lib/services/filter/filters-state.service.ts +0 -83
- package/src/lib/services/filter/filters-transmit.service.ts +0 -105
- package/src/lib/services/filter/filters.service.ts +0 -21
- package/src/lib/services/inputs-state.service.ts +0 -157
- package/src/lib/services/inputs.service.ts +0 -114
- package/src/lib/services/key-pressed.service.ts +0 -40
- package/src/lib/services/resize-window-observer.service.ts +0 -37
- package/src/lib/services/selected-objects-state.service.ts +0 -159
- package/src/lib/store/fast-query-store.service.ts +0 -132
- package/src/lib/types/hasura.types.ts +0 -41
- package/src/lib/types/inputs.types.ts +0 -63
- package/src/lib/types/params.types.ts +0 -42
- package/src/lib/types/register-base.types.ts +0 -161
- package/src/lib/types/sub-types.ts +0 -15
- package/src/lib/types/user-profile.types.ts +0 -18
- package/src/lib/utils/functions.ts +0 -11
- package/src/lib/utils/get-url-segment.ts +0 -46
- package/src/lib/utils/prizm.shared.module.ts +0 -176
- package/src/lib/utils/rxjs.ts +0 -33
- package/src/lib/utils/select-all-utils.ts +0 -16
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.schematics.json +0 -26
- package/tsconfig.spec.json +0 -15
- /package/{src/lib/components/column-settings/index.ts → lib/components/column-settings/index.d.ts} +0 -0
- /package/{src/lib/components/filters/index.ts → lib/components/filters/index.d.ts} +0 -0
- /package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/index.ts → lib/components/inputs/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-switcher-date-time-range/index.ts → lib/components/inputs/param-switcher-date-time-range/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-tree/index.ts → lib/components/inputs/param-tree/index.d.ts} +0 -0
- /package/{src/lib/components/menu-constructor/index.ts → lib/components/menu-constructor/index.d.ts} +0 -0
- /package/{src/lib/components/page-menu/index.ts → lib/components/page-menu/index.d.ts} +0 -0
- /package/{src/lib/components/register-table/index.ts → lib/components/register-table/index.d.ts} +0 -0
- /package/{src/lib/core/form-group-wrapper/index.ts → lib/core/form-group-wrapper/index.d.ts} +0 -0
- /package/{src/lib/core/index.ts → lib/core/index.d.ts} +0 -0
- /package/{src/lib/core/input-control/index.ts → lib/core/input-control/index.d.ts} +0 -0
- /package/{src/lib/core/param/index.ts → lib/core/param/index.d.ts} +0 -0
- /package/{src/lib/core/register-base/index.ts → lib/core/register-base/index.d.ts} +0 -0
- /package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
- /package/{src/lib/directives/sticky/index.ts → lib/directives/sticky/index.d.ts} +0 -0
- /package/{src/lib/services/dialog/index.ts → lib/services/dialog/index.d.ts} +0 -0
- /package/{src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
- /package/{src/lib/store/index.ts → lib/store/index.d.ts} +0 -0
- /package/{src/lib/types/index.ts → lib/types/index.d.ts} +0 -0
- /package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrizmDateTimeRange, PrizmDay, PrizmDayLike, PrizmTimeMode } from '@prizm-ui/components';
|
|
2
|
+
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
3
|
+
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type InputDateTimeRangeSaveValue = {
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare class ParamDateTimeRangeComponent extends ParamDateBase<PrizmDateTimeRange | null, InputDateTimeRangeSaveValue> {
|
|
10
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
11
|
+
min: PrizmDay | undefined;
|
|
12
|
+
max: PrizmDay | undefined;
|
|
13
|
+
timeMode: PrizmTimeMode;
|
|
14
|
+
maxLength: PrizmDayLike | null;
|
|
15
|
+
set formatSavedValue(formatter: FormatterSavedValueType<PrizmDateTimeRange | null, InputDateTimeRangeSaveValue> | undefined);
|
|
16
|
+
set parseSavedValue(parser: ParserSavedValueType<InputDateTimeRangeSaveValue, PrizmDateTimeRange | null> | undefined);
|
|
17
|
+
protected formatterSavedValue: (range: PrizmDateTimeRange | null) => InputDateTimeRangeSaveValue;
|
|
18
|
+
protected parserSavedValue: (value: InputDateTimeRangeSaveValue) => PrizmDateTimeRange | null;
|
|
19
|
+
private _defaultFormatterSaveValue;
|
|
20
|
+
private _defaultParserSaveValue;
|
|
21
|
+
protected onInit(): void;
|
|
22
|
+
private _subscribeOnTimeZoneChanges;
|
|
23
|
+
protected get from(): Date | null;
|
|
24
|
+
protected get to(): Date | null;
|
|
25
|
+
private _getDateFromRange;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamDateTimeRangeComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateTimeRangeComponent, "sproc-param-date-time-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "timeMode": { "alias": "timeMode"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
2
|
+
import { PrizmMonth } from '@prizm-ui/components';
|
|
3
|
+
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type InputMonthSavedValue = string | null;
|
|
6
|
+
export declare class ParamMonthComponent extends ParamDateBase<PrizmMonth | null, InputMonthSavedValue> {
|
|
7
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
8
|
+
set formatSavedValue(formatter: FormatterSavedValueType<PrizmMonth | null, InputMonthSavedValue> | undefined);
|
|
9
|
+
set parseSavedValue(parser: ParserSavedValueType<InputMonthSavedValue, PrizmMonth | null> | undefined);
|
|
10
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: PrizmMonth | null) => string>;
|
|
11
|
+
protected formatterSavedValue: (month: PrizmMonth | null) => InputMonthSavedValue;
|
|
12
|
+
protected parserSavedValue: (value: InputMonthSavedValue) => PrizmMonth | null;
|
|
13
|
+
private _defaultFormatterSaveValue;
|
|
14
|
+
private _defaultParserSaveValue;
|
|
15
|
+
private _formatMonth;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamMonthComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamMonthComponent, "sproc-param-month", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PrizmMonthRange } from '@prizm-ui/components';
|
|
2
|
+
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
3
|
+
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type InputMonthRangeSavedValue = {
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare class ParamMonthRangeComponent extends ParamDateBase<PrizmMonthRange | null, InputMonthRangeSavedValue> {
|
|
10
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
11
|
+
set formatSavedValue(formatter: FormatterSavedValueType<PrizmMonthRange | null, InputMonthRangeSavedValue> | undefined);
|
|
12
|
+
set parseSavedValue(parser: ParserSavedValueType<InputMonthRangeSavedValue, PrizmMonthRange | null> | undefined);
|
|
13
|
+
buildShowedValue: import("@angular/core").InputSignal<(range: PrizmMonthRange | null) => string>;
|
|
14
|
+
protected formatterSavedValue: (range: PrizmMonthRange | null) => InputMonthRangeSavedValue;
|
|
15
|
+
protected parserSavedValue: (value: InputMonthRangeSavedValue) => PrizmMonthRange | null;
|
|
16
|
+
private _defaultFormatterSaveValue;
|
|
17
|
+
private _defaultParserSaveValue;
|
|
18
|
+
private _formatMonth;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamMonthRangeComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamMonthRangeComponent, "sproc-param-month-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { PrizmMultiSelectSearchMatcher } from '@prizm-ui/components';
|
|
3
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
4
|
+
import { TuiContext, TuiIdentityMatcher, TuiStringHandler } from '@taiga-ui/cdk';
|
|
5
|
+
import { IFilterSelectValue } from '../../../types/params.types';
|
|
6
|
+
import { ParamSelectBase } from '../../../core/param/param-select-base';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ParamMultiSelectComponent extends ParamSelectBase<IFilterSelectValue[], IFilterSelectValue[]> implements OnDestroy {
|
|
9
|
+
private document;
|
|
10
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly itemSelectAll: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
readonly searchMatcher: import("@angular/core").InputSignal<PrizmMultiSelectSearchMatcher<IFilterSelectValue>>;
|
|
13
|
+
readonly shortPickedLength: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
readonly stringify: import("@angular/core").InputSignal<TuiStringHandler<IFilterSelectValue | TuiContext<IFilterSelectValue>>>;
|
|
15
|
+
readonly identityMatcher: import("@angular/core").InputSignal<TuiIdentityMatcher<IFilterSelectValue>>;
|
|
16
|
+
readonly buildShowedValue: import("@angular/core").InputSignal<(values: IFilterSelectValue[]) => string>;
|
|
17
|
+
readonly onSelect: import("@angular/core").OutputEmitterRef<IFilterSelectValue[]>;
|
|
18
|
+
protected readonly selectAllItem: IFilterSelectValue;
|
|
19
|
+
protected onCancelButtonSubscription: Subscription;
|
|
20
|
+
protected searchValue: string;
|
|
21
|
+
protected readonly onSearch$: BehaviorSubject<string>;
|
|
22
|
+
private onSearchSubscription;
|
|
23
|
+
private cachedString;
|
|
24
|
+
private onClearButtonSubscription;
|
|
25
|
+
choosedHint: string;
|
|
26
|
+
constructor(injector: Injector, document: Document);
|
|
27
|
+
onInit(): void;
|
|
28
|
+
private _subscribeOnSearch;
|
|
29
|
+
afterViewInit(): void;
|
|
30
|
+
private _observeFetchItems;
|
|
31
|
+
private _subscribeOnMetaChanges;
|
|
32
|
+
private _subscribeOnValueControl;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
protected fetchItems(searchValue?: string): void;
|
|
35
|
+
private _subscribeOnClearButton;
|
|
36
|
+
private _getSelectedItemIDs;
|
|
37
|
+
private _buildSelectedItemIdsWhere;
|
|
38
|
+
private _handleResults;
|
|
39
|
+
private _updateControlValues;
|
|
40
|
+
private _getNameFromField;
|
|
41
|
+
private _getNameFromDeepField;
|
|
42
|
+
protected onSearch(value: string | null): void;
|
|
43
|
+
protected getListLength(list: IFilterSelectValue[]): string;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamMultiSelectComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamMultiSelectComponent, "sproc-param-multi-select", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "itemSelectAll": { "alias": "itemSelectAll"; "required": false; "isSignal": true; }; "searchMatcher": { "alias": "searchMatcher"; "required": false; "isSignal": true; }; "shortPickedLength": { "alias": "shortPickedLength"; "required": false; "isSignal": true; }; "stringify": { "alias": "stringify"; "required": false; "isSignal": true; }; "identityMatcher": { "alias": "identityMatcher"; "required": false; "isSignal": true; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { TuiStringMatcher } from '@taiga-ui/cdk';
|
|
4
|
+
import { ParamSelectBase } from '../../../core/param/param-select-base';
|
|
5
|
+
import { IFilterSelectValue } from '../../../types/params.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ParamSelectComponent extends ParamSelectBase<IFilterSelectValue | null, IFilterSelectValue | null> implements OnDestroy {
|
|
8
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly stringify: import("@angular/core").InputSignal<(item: IFilterSelectValue) => string>;
|
|
10
|
+
readonly identityMatcher: import("@angular/core").InputSignal<(a: IFilterSelectValue, b: IFilterSelectValue) => boolean>;
|
|
11
|
+
readonly matcher: import("@angular/core").InputSignal<TuiStringMatcher<IFilterSelectValue>>;
|
|
12
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: IFilterSelectValue | null) => string>;
|
|
13
|
+
strict: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
onSelect: EventEmitter<IFilterSelectValue>;
|
|
15
|
+
protected readonly search$: BehaviorSubject<string | undefined>;
|
|
16
|
+
afterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private _subscribeOnSearch;
|
|
19
|
+
private _observeFetchItems;
|
|
20
|
+
private _observeValueFill;
|
|
21
|
+
private _observeEmptyValue;
|
|
22
|
+
private _observeValueFetch;
|
|
23
|
+
private _getIdFromValue;
|
|
24
|
+
private _subscribeOnMetaChanges;
|
|
25
|
+
protected fetchItems(searchValue?: string): void;
|
|
26
|
+
private _getSelectedItemIDs;
|
|
27
|
+
private _buildSelectedItemIdsWhere;
|
|
28
|
+
private _handleResults;
|
|
29
|
+
private _getNameFromField;
|
|
30
|
+
private _getNameFromDeepField;
|
|
31
|
+
private _updateControlValues;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamSelectComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamSelectComponent, "sproc-param-select", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "stringify": { "alias": "stringify"; "required": false; "isSignal": true; }; "identityMatcher": { "alias": "identityMatcher"; "required": false; "isSignal": true; }; "matcher": { "alias": "matcher"; "required": false; "isSignal": true; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "strict": { "alias": "strict"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PrizmSwitcherItem } from '@prizm-ui/components';
|
|
2
|
+
import { ParamBase } from '../../../core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParamSwitcherComponent extends ParamBase<number, number> {
|
|
5
|
+
switchers: PrizmSwitcherItem[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamSwitcherComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamSwitcherComponent, "sproc-param-switcher", never, { "switchers": { "alias": "switchers"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { ESwitcherValue } from './types/param-switcher-date-time-range.types';
|
|
3
|
+
import { ParamDateTimeRangeComponent } from '../param-date-time-range/param-date-time-range.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ParamSwitcherDateTimeRangeComponent extends ParamDateTimeRangeComponent {
|
|
6
|
+
protected switcherControl: FormControl<ESwitcherValue | null>;
|
|
7
|
+
protected switchers: import("@prizm-ui/components").PrizmSwitcherItem<import("@prizm-ui/components").PrizmSwitcherId>[];
|
|
8
|
+
onInit(): void;
|
|
9
|
+
afterViewInit(): void;
|
|
10
|
+
private _subscribeOnSwitcher;
|
|
11
|
+
private _calcMonthRange;
|
|
12
|
+
private _calcFirstQuarterRange;
|
|
13
|
+
private _calcSecondQuarterRange;
|
|
14
|
+
private _calcThirdQuarterRange;
|
|
15
|
+
private _calcFourthQuarterRange;
|
|
16
|
+
private _calcYearRange;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamSwitcherDateTimeRangeComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamSwitcherDateTimeRangeComponent, "sproc-param-switcher-date-time-range", never, {}, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
2
|
+
import { ParamTextBase } from '../../../core/param';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParamTextComponent extends ParamTextBase {
|
|
5
|
+
maskOptions: import("@angular/core").InputSignal<MaskitoOptions | null>;
|
|
6
|
+
/** сообщение об ошибке для текстового поля */
|
|
7
|
+
errorMessage: import("@angular/core").InputSignal<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTextComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamTextComponent, "sproc-param-text", never, { "maskOptions": { "alias": "maskOptions"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParamTextBase } from '../../../core/param';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ParamTextareaComponent extends ParamTextBase {
|
|
4
|
+
/** Минимальное кол-во строк в инпуте */
|
|
5
|
+
min: import("@angular/core").InputSignal<number>;
|
|
6
|
+
/** Максимальное кол-во строк в инпуте */
|
|
7
|
+
max: import("@angular/core").InputSignal<number>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTextareaComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamTextareaComponent, "sproc-param-textarea", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParamBase } from '../../../core/param/param-base';
|
|
2
|
+
import { TuiSizeS } from '@taiga-ui/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParamToggleComponent extends ParamBase<boolean, boolean> {
|
|
5
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: boolean) => string>;
|
|
6
|
+
size: import("@angular/core").InputSignal<TuiSizeS>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamToggleComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamToggleComponent, "sproc-param-toggle", never, { "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParamTreeService } from '../services/param-tree.service';
|
|
2
|
+
import { ITreeNode } from '../types/param-tree.types';
|
|
3
|
+
export declare const TREE_LOADING_NODE: ITreeNode;
|
|
4
|
+
export declare const DEBOUNCE_TIME_FOR_SYNC_NEXT_VALUES = 250;
|
|
5
|
+
export declare const notEmpty: (children?: ITreeNode[]) => boolean;
|
|
6
|
+
export declare function treeNodesFlatten<T>(node: ITreeNode<T>, service: ParamTreeService<T>): ITreeNode<T>[];
|
|
7
|
+
export declare function updatesCheckedNodesEqual<T>(prev: ITreeNode<T>[] | undefined, curr: ITreeNode<T>[] | undefined, service: ParamTreeService<T>): boolean;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { ChildrenHandlerType, ITreeNode } from './types/param-tree.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Компонент иерархического списка */
|
|
5
|
+
export declare class ParamTreeComponent<T> {
|
|
6
|
+
/**
|
|
7
|
+
* Режим выбора нескольких значений
|
|
8
|
+
*
|
|
9
|
+
* @default Выбор единственного узла */
|
|
10
|
+
multi: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
/** Задать выбранные узлы */
|
|
12
|
+
checkedNodes: import("@angular/core").InputSignal<ITreeNode<T>[]>;
|
|
13
|
+
/** Кастомный шаблон узла */
|
|
14
|
+
nodeTemplate: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
15
|
+
/** Выбранные узлы верхнего уровня */
|
|
16
|
+
readonly selectedNodesChange: import("@angular/core").OutputEmitterRef<ITreeNode<T>[]>;
|
|
17
|
+
private readonly _treeService;
|
|
18
|
+
private readonly _dr;
|
|
19
|
+
protected readonly defaultNodeOpenedState: import("@angular/core").Signal<boolean | undefined>;
|
|
20
|
+
protected readonly openedNodesState: import("@angular/core").WritableSignal<Map<ITreeNode<T>, boolean>>;
|
|
21
|
+
protected readonly checkedNodesState: import("@angular/core").WritableSignal<Map<ITreeNode<T>, boolean | null>>;
|
|
22
|
+
private readonly _lastCheckedNode;
|
|
23
|
+
private readonly updatesCheckedNodes;
|
|
24
|
+
protected readonly treeNodes$: import("rxjs").Observable<ITreeNode<T>[]>;
|
|
25
|
+
protected readonly TREE_LOADER: ITreeNode<any>;
|
|
26
|
+
protected readonly childrenHandler: ChildrenHandlerType<T>;
|
|
27
|
+
constructor();
|
|
28
|
+
protected getValue(currentNode: ITreeNode<T>, state: Map<ITreeNode<T>, boolean | null>): boolean | null;
|
|
29
|
+
private _isSelectedMulti;
|
|
30
|
+
private _isSelectedSingle;
|
|
31
|
+
private _isDeepParent;
|
|
32
|
+
private _isDeepChild;
|
|
33
|
+
protected onToggle(currentNode: ITreeNode<T>): void;
|
|
34
|
+
protected onChecked: (currentNode: ITreeNode<T>, check: boolean) => void;
|
|
35
|
+
private _updateCheckedNodes;
|
|
36
|
+
private _findFullySelectedNodes;
|
|
37
|
+
private _calcCheckedStateNodes;
|
|
38
|
+
private _tryToSetNodesRecursive;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTreeComponent<any>, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamTreeComponent<any>, "sproc-param-tree", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "checkedNodes": { "alias": "checkedNodes"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; }, { "selectedNodesChange": "selectedNodesChange"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ITreeNode } from '../types/param-tree.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParamTreeService<T> {
|
|
5
|
+
private readonly _loading;
|
|
6
|
+
private readonly _start$;
|
|
7
|
+
private readonly _loader;
|
|
8
|
+
private readonly _destroyRef;
|
|
9
|
+
private readonly _loaderNode$;
|
|
10
|
+
private readonly _defaultNodeOpenedState$;
|
|
11
|
+
private readonly _lastCheckedNode$;
|
|
12
|
+
private readonly _load$;
|
|
13
|
+
private readonly _parentChildrenMap;
|
|
14
|
+
private readonly _nodes$;
|
|
15
|
+
private readonly _loadedChildren$;
|
|
16
|
+
readonly defaultNodeOpenedState$: Observable<boolean | undefined>;
|
|
17
|
+
readonly lastCheckedNode$: Observable<ITreeNode<T> | null>;
|
|
18
|
+
readonly loaderNode$: Observable<ITreeNode<T>>;
|
|
19
|
+
readonly openedNodesState: import("@angular/core").WritableSignal<Map<ITreeNode<T>, boolean>>;
|
|
20
|
+
readonly checkedNodesState: import("@angular/core").WritableSignal<Map<ITreeNode<T>, boolean | null>>;
|
|
21
|
+
private _firstLevelNodes;
|
|
22
|
+
private _firstLevelNodesLoaded;
|
|
23
|
+
readonly nodes$: Observable<ITreeNode<T>[]>;
|
|
24
|
+
constructor();
|
|
25
|
+
private _recursiveLoad;
|
|
26
|
+
loadFirstLevelNodes(node: ITreeNode<T>, opened?: boolean): void;
|
|
27
|
+
private _load;
|
|
28
|
+
loadChildren(node: ITreeNode<T>): Observable<ITreeNode<T>[]>;
|
|
29
|
+
getChildren(node: ITreeNode<T>): ITreeNode<T>[];
|
|
30
|
+
hasChildren(node: ITreeNode<T>): boolean;
|
|
31
|
+
getTopLevelNodes(): ITreeNode<T>[];
|
|
32
|
+
setLoaderNode(loaderNode: ITreeNode<T>, defaultNodeOpenedState?: boolean): void;
|
|
33
|
+
setLastCheckedNode(node: ITreeNode<T> | null): void;
|
|
34
|
+
equals(node1: ITreeNode<T>, node2: ITreeNode<T>): boolean;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTreeService<any>, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ParamTreeService<any>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ITreeNode, SmaTreeLoader } from '../types/param-tree.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SyncTreeLoaderService<T> implements SmaTreeLoader<ITreeNode<T>> {
|
|
5
|
+
loadChildren({ children }: ITreeNode<T>): Observable<ITreeNode<T>[]>;
|
|
6
|
+
hasChildren({ haveChildren }: ITreeNode<T>): boolean;
|
|
7
|
+
equals(value1: ITreeNode<T>, value2: ITreeNode<T>): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SyncTreeLoaderService<any>, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SyncTreeLoaderService<any>>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { SmaTreeLoader } from '../types/param-tree.types';
|
|
3
|
-
|
|
4
|
-
export const TREE_LOADER = new InjectionToken<SmaTreeLoader<unknown>>('SMA_TREE_LOADER');
|
|
3
|
+
export declare const TREE_LOADER: InjectionToken<SmaTreeLoader<unknown>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TuiHandler } from '@taiga-ui/cdk';
|
|
2
|
+
import { TuiTreeLoader } from '@taiga-ui/kit';
|
|
3
|
+
export interface SmaTreeLoader<T> extends TuiTreeLoader<T> {
|
|
4
|
+
equals(value1: T, value2: T): boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Конфиг для подгрузки дочерних узлов */
|
|
7
|
+
export interface ILoadConfig<T> {
|
|
8
|
+
/** Узел для которого происходит загрузка */
|
|
9
|
+
node: ITreeNode<T>;
|
|
10
|
+
/** Дополнительная конфигурация загрузки */
|
|
11
|
+
config?: {
|
|
12
|
+
/** Является ли текущая загрузка начальной (для инициализации верхнего уровня узлов) */
|
|
13
|
+
initial?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Режим загрузки дочерних узлов.
|
|
16
|
+
* Если true - дочерние узлы загружаются рекурсивно до последнего уровня
|
|
17
|
+
* */
|
|
18
|
+
opened?: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface ITreeNode<T = any> {
|
|
22
|
+
/** Название узла */
|
|
23
|
+
name: string;
|
|
24
|
+
parent?: ITreeNode<T>;
|
|
25
|
+
/** Есть дочерние узлы которые можно загрузить */
|
|
26
|
+
haveChildren?: boolean;
|
|
27
|
+
/** Дочерние загруженные узлы */
|
|
28
|
+
children?: ITreeNode<T>[];
|
|
29
|
+
/** Дополнительные свойства узла */
|
|
30
|
+
data?: T;
|
|
31
|
+
}
|
|
32
|
+
export type ChildrenHandlerType<NodeType> = TuiHandler<ITreeNode<NodeType>, readonly ITreeNode<NodeType>[]>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ITreeNode } from '../param-tree/types/param-tree.types';
|
|
3
|
+
import { ParamSelectBase } from '../../../core/param/param-select-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type InputTreeSelectSavedValue<T> = ITreeNode<T> & {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
/** Компонент выбора единственного значения из иерархического списка */
|
|
9
|
+
export declare class ParamTreeMultiSelectComponent<T> extends ParamSelectBase<ITreeNode<T>[], InputTreeSelectSavedValue<T>[]> {
|
|
10
|
+
/** Передача загрузочного узла для загрузки начального уровня иерархического списка */
|
|
11
|
+
loaderNode: import("@angular/core").InputSignal<ITreeNode<T>>;
|
|
12
|
+
/**
|
|
13
|
+
* Возможность раскрывать/скрывать узлы иерархического списка.
|
|
14
|
+
* Логическое значение - это значение узла по умолчанию (раскрыты/скрыты).
|
|
15
|
+
*
|
|
16
|
+
* @default Без указания параметра (или значении null) - все узлы раскрыты без возможности изменять состояние.
|
|
17
|
+
* */
|
|
18
|
+
defaultNodeOpenedState: import("@angular/core").InputSignal<boolean | undefined>;
|
|
19
|
+
stringify: import("@angular/core").InputSignal<(item: ITreeNode<T>) => string>;
|
|
20
|
+
shortPickedLength: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
readonly buildShowedValue: import("@angular/core").InputSignal<(values: ITreeNode[]) => string>;
|
|
22
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
23
|
+
private readonly _treeService;
|
|
24
|
+
protected readonly checkedNodes: import("@angular/core").WritableSignal<ITreeNode<T>[]>;
|
|
25
|
+
constructor(injector: Injector);
|
|
26
|
+
protected afterViewInit(): void;
|
|
27
|
+
private _subscribeForUpdateCheckedNodes;
|
|
28
|
+
protected setSelectedNodes(node: ITreeNode<T>[]): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTreeMultiSelectComponent<any>, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamTreeMultiSelectComponent<any>, "sproc-param-tree-multi-select", never, { "loaderNode": { "alias": "loaderNode"; "required": true; "isSignal": true; }; "defaultNodeOpenedState": { "alias": "defaultNodeOpenedState"; "required": false; "isSignal": true; }; "stringify": { "alias": "stringify"; "required": false; "isSignal": true; }; "shortPickedLength": { "alias": "shortPickedLength"; "required": false; "isSignal": true; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ITreeNode } from '../param-tree/types/param-tree.types';
|
|
3
|
+
import { ParamSelectBase } from '../../../core/param/param-select-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type InputTreeSelectSavedValue<T> = ITreeNode<T> & {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
/** Компонент выбора единственного значения из иерархического списка */
|
|
9
|
+
export declare class ParamTreeSelectComponent<T> extends ParamSelectBase<ITreeNode<T>, InputTreeSelectSavedValue<T>> {
|
|
10
|
+
/** Передача загрузочного узла для загрузки начального уровня иерархического списка */
|
|
11
|
+
loaderNode: import("@angular/core").InputSignal<ITreeNode<T>>;
|
|
12
|
+
/**
|
|
13
|
+
* Возможность раскрывать/скрывать узлы иерархического списка.
|
|
14
|
+
* Логическое значение - это значение узла по умолчанию (раскрыты/скрыты).
|
|
15
|
+
*
|
|
16
|
+
* @default Без указания параметра (или значении null) - все узлы раскрыты без возможности изменять состояние.
|
|
17
|
+
* */
|
|
18
|
+
defaultNodeOpenedState: import("@angular/core").InputSignal<boolean | undefined>;
|
|
19
|
+
stringify: import("@angular/core").InputSignal<(item: ITreeNode<T>) => string>;
|
|
20
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: ITreeNode<T>) => string>;
|
|
21
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
22
|
+
private readonly _treeService;
|
|
23
|
+
protected readonly checkedNodes: import("@angular/core").WritableSignal<ITreeNode<T>[]>;
|
|
24
|
+
constructor(injector: Injector);
|
|
25
|
+
protected afterViewInit(): void;
|
|
26
|
+
private _subscribeForUpdateCheckedNodes;
|
|
27
|
+
protected setSelectedNodes([node]: ITreeNode<T>[]): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamTreeSelectComponent<any>, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamTreeSelectComponent<any>, "sproc-param-tree-select", never, { "loaderNode": { "alias": "loaderNode"; "required": true; "isSignal": true; }; "defaultNodeOpenedState": { "alias": "defaultNodeOpenedState"; "required": false; "isSignal": true; }; "stringify": { "alias": "stringify"; "required": false; "isSignal": true; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ParamDeleteContentBtnComponent {
|
|
3
|
+
readonly iconClicked: import("@angular/core").OutputEmitterRef<void>;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamDeleteContentBtnComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDeleteContentBtnComponent, "sproc-param-delete-content-button", never, {}, { "iconClicked": "iconClicked"; }, never, never, true, never>;
|
|
6
|
+
}
|
package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ParamInvalidIconComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParamInvalidIconComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamInvalidIconComponent, "sproc-param-invalid-icon", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { FlatNode, IMenuConstructorError } from './store/sproc-menu-constructor.consts';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SprocMenuConstructorComponent implements OnInit {
|
|
6
|
+
private _store;
|
|
7
|
+
private _ref;
|
|
8
|
+
protected ROOT_TITLE: string;
|
|
9
|
+
protected loading$: import("rxjs").Observable<boolean>;
|
|
10
|
+
protected originalTree: Map<string, FlatNode>;
|
|
11
|
+
protected MIGRATION_HINT: string;
|
|
12
|
+
private deletedIds;
|
|
13
|
+
errorMsgOutput: import("@angular/core").OutputEmitterRef<IMenuConstructorError>;
|
|
14
|
+
protected flatTree: import("@angular/core").WritableSignal<FlatNode[]>;
|
|
15
|
+
protected draggedBranch: import("@angular/core").WritableSignal<FlatNode[]>;
|
|
16
|
+
protected visibleFlatTree: import("@angular/core").Signal<FlatNode[]>;
|
|
17
|
+
private _pendingRecalc;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Переключает состояние свернутости узла (collapse/expand)
|
|
21
|
+
* После изменения создает новый массив для триггера обновления сигнала
|
|
22
|
+
*/
|
|
23
|
+
protected toggleCollapse(node: FlatNode): void;
|
|
24
|
+
/**
|
|
25
|
+
* Начало перетаскивания: сохраняет всю ветку узла, которую тянут
|
|
26
|
+
*/
|
|
27
|
+
protected dragStarted(node: FlatNode): void;
|
|
28
|
+
/**
|
|
29
|
+
* Завершение перетаскивания: очищает информацию о текущей ветке
|
|
30
|
+
*/
|
|
31
|
+
protected dragEnded(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Основная логика drag&drop при отпускании элемента
|
|
34
|
+
* Определяет новую позицию узла, пересчитывает глубины и связи
|
|
35
|
+
*/
|
|
36
|
+
protected drop(event: CdkDragDrop<FlatNode[]>): void;
|
|
37
|
+
/**
|
|
38
|
+
* Увеличивает глубину (depth) конкретного узла, если возможно
|
|
39
|
+
*/
|
|
40
|
+
protected indent(node: FlatNode): void;
|
|
41
|
+
/**
|
|
42
|
+
* Уменьшает глубину (depth) узла + по возможности превращает его в родителя
|
|
43
|
+
*/
|
|
44
|
+
protected outdent(node: FlatNode): void;
|
|
45
|
+
/**
|
|
46
|
+
* Увеличивает глубину всей ветки узла (вместе с потомками)
|
|
47
|
+
*/
|
|
48
|
+
protected indentBranch(node: FlatNode): void;
|
|
49
|
+
/**
|
|
50
|
+
* Уменьшает глубину всей ветки узла
|
|
51
|
+
*/
|
|
52
|
+
protected outdentBranch(node: FlatNode): void;
|
|
53
|
+
/**
|
|
54
|
+
* Проверяет, есть ли у узла дочерние элементы
|
|
55
|
+
*/
|
|
56
|
+
protected hasChildren(node: FlatNode): boolean;
|
|
57
|
+
protected save(): void;
|
|
58
|
+
protected handleFold(state: boolean): void;
|
|
59
|
+
/**
|
|
60
|
+
* Удаляет один элемент из дерева.
|
|
61
|
+
* Потомки становятся дочерними элементами родителя удалённого узла.
|
|
62
|
+
*/
|
|
63
|
+
protected deleteItem(node: FlatNode): void;
|
|
64
|
+
/**
|
|
65
|
+
* Добавляет новый элемент в дерево.
|
|
66
|
+
* По умолчанию он создаётся как дочерний элемент root.
|
|
67
|
+
*/
|
|
68
|
+
protected addNewItem(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Сбрасывает текущее состояние в исходное
|
|
71
|
+
*/
|
|
72
|
+
protected reset(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Проверяет, находится ли элемент в текущей перетаскиваемой ветке
|
|
75
|
+
*/
|
|
76
|
+
protected isDragged(node: FlatNode): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Собирает всю ветку элементов начиная с указанного узла (включая потомков)
|
|
79
|
+
*/
|
|
80
|
+
private _collectBranch;
|
|
81
|
+
/**
|
|
82
|
+
* Сдвигает глубину всех элементов ветки на указанную разницу
|
|
83
|
+
* Не допускает отрицательных глубин
|
|
84
|
+
*/
|
|
85
|
+
private _applyDepthShift;
|
|
86
|
+
/**
|
|
87
|
+
* Преобразует иерархический JSON в плоский массив FlatNode[]
|
|
88
|
+
* Сохраняет порядок элементов и их вложенность
|
|
89
|
+
*/
|
|
90
|
+
private _convertToFlatNode;
|
|
91
|
+
/**
|
|
92
|
+
* Возвращает список видимых элементов на основе флагов collapsed
|
|
93
|
+
* Использует стек для отслеживания свернутости на каждом уровне
|
|
94
|
+
*/
|
|
95
|
+
private _getVisibleFrom;
|
|
96
|
+
/**
|
|
97
|
+
* Пересчитывает order_num и id_parent у всех элементов массива
|
|
98
|
+
* После перемещений поддерживает корректную структуру дерева
|
|
99
|
+
* order_num назначается относительно родителя (1..N)
|
|
100
|
+
*/
|
|
101
|
+
private _recalculateTree;
|
|
102
|
+
/**
|
|
103
|
+
* Асинхронно планирует пересчет дерева через requestAnimationFrame
|
|
104
|
+
* Это предотвращает множественные лишние пересчеты при частых изменениях
|
|
105
|
+
*/
|
|
106
|
+
private _scheduleRecalc;
|
|
107
|
+
/**
|
|
108
|
+
* Проверяет равенство двух массивов FlatNode по ключевым свойствам
|
|
109
|
+
*/
|
|
110
|
+
private _arraysEqual;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprocMenuConstructorComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SprocMenuConstructorComponent, "sproc-menu-constructor", never, {}, { "errorMsgOutput": "errorMsgOutput"; }, never, never, true, never>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { IClsMenuItemInput } from './sproc-menu-constructor.consts';
|
|
3
|
+
import { IClsMenuItem } from '../../page-menu';
|
|
4
|
+
import { Apollo } from 'apollo-angular';
|
|
5
|
+
import { DestroyRef } from '@angular/core';
|
|
6
|
+
import { ScalarUUID } from 'hasura';
|
|
7
|
+
export declare abstract class SprocAbstractMenuConstructorStore {
|
|
8
|
+
protected abstract _menuItems$: BehaviorSubject<IClsMenuItem[]>;
|
|
9
|
+
protected abstract _loading$: BehaviorSubject<boolean>;
|
|
10
|
+
protected abstract _apollo: Apollo;
|
|
11
|
+
protected abstract _dr: DestroyRef;
|
|
12
|
+
abstract menuItems$: Observable<IClsMenuItem[]>;
|
|
13
|
+
abstract loading$: Observable<boolean>;
|
|
14
|
+
abstract originalMenu: IClsMenuItem[];
|
|
15
|
+
abstract getMenu(): IClsMenuItem[];
|
|
16
|
+
abstract updateMenu(objectsToUpdate: {
|
|
17
|
+
_set: IClsMenuItemInput;
|
|
18
|
+
where: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}[], objectsToInsert?: IClsMenuItemInput[], idsToDelete?: ScalarUUID[]): void;
|
|
22
|
+
protected abstract setLoading(state: boolean): void;
|
|
23
|
+
protected abstract _fetchMenu(): void;
|
|
24
|
+
}
|