ngx-register-base 1.2.3 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ng-package.json +15 -0
- package/package.json +12 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +33 -0
- package/schematics/ng-update/update-prefix/index.ts +38 -0
- package/schematics/utils/{utils.d.ts → utils.ts} +9 -2
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +91 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +67 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +176 -0
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +8 -0
- package/src/lib/components/column-settings/column-settings.component.html +160 -0
- package/src/lib/components/column-settings/column-settings.component.less +131 -0
- package/src/lib/components/column-settings/column-settings.component.ts +352 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +65 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +79 -0
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +114 -0
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +9 -0
- package/src/lib/components/column-settings/types/column-settings.types.ts +26 -0
- package/src/lib/components/divider/divider.component.html +4 -0
- package/src/lib/components/divider/divider.component.less +10 -0
- package/src/lib/components/divider/divider.component.ts +12 -0
- package/src/lib/components/filter-button/filter-button.component.html +20 -0
- package/src/lib/components/filter-button/filter-button.component.less +41 -0
- package/src/lib/components/filter-button/filter-button.component.ts +18 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +22 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +23 -0
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +31 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +49 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +37 -0
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +66 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +147 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +45 -0
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +114 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +44 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +49 -0
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +167 -0
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +97 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +18 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +55 -0
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +69 -0
- package/src/lib/components/filters/components/filter-list.module.ts +29 -0
- package/src/lib/components/filters/register-table-filter.component.html +53 -0
- package/src/lib/components/filters/register-table-filter.component.less +17 -0
- package/src/lib/components/filters/register-table-filter.component.ts +167 -0
- package/src/lib/components/filters/register-table-filter.module.ts +22 -0
- package/src/lib/components/inputs/inputs.module.ts +104 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +49 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +70 -0
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +52 -0
- package/src/lib/components/inputs/param-custom/param-custom.component.html +1 -0
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +9 -0
- package/src/lib/components/inputs/param-date/param-date.component.html +55 -0
- package/src/lib/components/inputs/param-date/param-date.component.less +67 -0
- package/src/lib/components/inputs/param-date/param-date.component.ts +77 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +45 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +75 -0
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +67 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +70 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +72 -0
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +101 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +67 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +103 -0
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +128 -0
- package/src/lib/components/inputs/param-month/param-month.component.html +46 -0
- package/src/lib/components/inputs/param-month/param-month.component.less +72 -0
- package/src/lib/components/inputs/param-month/param-month.component.ts +55 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +39 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +71 -0
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +76 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +84 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +108 -0
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +448 -0
- package/src/lib/components/inputs/param-select/param-select.component.html +106 -0
- package/src/lib/components/inputs/param-select/param-select.component.less +26 -0
- package/src/lib/components/inputs/param-select/param-select.component.ts +318 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +8 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +53 -0
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +13 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +29 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +19 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +76 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +134 -0
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +8 -0
- package/src/lib/components/inputs/param-text/param-text.component.html +59 -0
- package/src/lib/components/inputs/param-text/param-text.component.less +33 -0
- package/src/lib/components/inputs/param-text/param-text.component.ts +36 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +61 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +21 -0
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +33 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +40 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +69 -0
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +14 -0
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +59 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.html +51 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.less +3 -0
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +282 -0
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +176 -0
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +18 -0
- package/{lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts → src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts} +2 -1
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +39 -0
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +18 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +78 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +109 -0
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +89 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +54 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +56 -0
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +91 -0
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +5 -0
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +13 -0
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +4 -0
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +11 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +95 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +183 -0
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +687 -0
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +32 -0
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +46 -0
- package/{lib/components/menu-constructor/store/sproc-menu.tokens.d.ts → src/lib/components/menu-constructor/store/sproc-menu.tokens.ts} +4 -1
- package/src/lib/components/page-menu/README.md +60 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +8 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +35 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +5 -0
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +42 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.html +166 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.less +228 -0
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +337 -0
- package/src/lib/components/paginator/paginator.component.html +97 -0
- package/src/lib/components/paginator/paginator.component.less +101 -0
- package/src/lib/components/paginator/paginator.component.ts +192 -0
- package/src/lib/components/paginator/types/paginator.types.ts +16 -0
- package/src/lib/components/register-table/consts/register-table.consts.ts +3 -0
- package/src/lib/components/register-table/directives/cell-template.directive.ts +11 -0
- package/src/lib/components/register-table/directives/header-template.directive.ts +11 -0
- package/src/lib/components/register-table/model/schema.ts +62 -0
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +28 -0
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +11 -0
- package/src/lib/components/register-table/register-table.component.html +257 -0
- package/src/lib/components/register-table/register-table.component.less +151 -0
- package/src/lib/components/register-table/register-table.component.ts +743 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +14 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +26 -0
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +15 -0
- package/src/lib/components/search-input/search-input.component.html +6 -0
- package/src/lib/components/search-input/search-input.component.less +17 -0
- package/src/lib/components/search-input/search-input.component.ts +31 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.html +13 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.less +112 -0
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +36 -0
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +11 -0
- package/src/lib/consts/date-time.consts.ts +1 -0
- package/src/lib/consts/index.ts +8 -0
- package/src/lib/consts/inputs.consts.ts +9 -0
- package/src/lib/consts/month.consts.ts +82 -0
- package/src/lib/consts/params.consts.ts +1 -0
- package/src/lib/consts/register-base.consts.ts +40 -0
- package/src/lib/core/form-group-wrapper/errors-consts.ts +6 -0
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +109 -0
- package/src/lib/core/input-control/input-control.ts +30 -0
- package/src/lib/core/param/param-base.ts +262 -0
- package/src/lib/core/param/param-date-base.ts +30 -0
- package/src/lib/core/param/param-select-base.ts +118 -0
- package/src/lib/core/param/param-text-base.ts +23 -0
- package/{lib/core/param/param.tokens.d.ts → src/lib/core/param/param.tokens.ts} +2 -1
- package/src/lib/core/register-base/register-base.store.ts +84 -0
- package/src/lib/core/register-base/register-base.ts +854 -0
- package/src/lib/directives/date/date-time.types.ts +36 -0
- package/src/lib/directives/date/format-date.pipe.ts +28 -0
- package/src/lib/directives/number/number-only.directive.ts +36 -0
- package/src/lib/directives/sticky/sticky-relative.directive.ts +30 -0
- package/src/lib/directives/sticky/sticky-relative.service.ts +34 -0
- package/src/lib/directives/sticky/sticky.directive.ts +189 -0
- package/src/lib/services/date-time.service.ts +399 -0
- package/src/lib/services/dialog/dialog.service.ts +62 -0
- package/{lib/services/dialog/dialog.types.d.ts → src/lib/services/dialog/dialog.types.ts} +8 -4
- package/src/lib/services/dom-intersection.service.ts +23 -0
- package/src/lib/services/filter/filters-state.service.ts +83 -0
- package/src/lib/services/filter/filters-transmit.service.ts +105 -0
- package/src/lib/services/filter/filters.service.ts +21 -0
- package/src/lib/services/inputs-state.service.ts +157 -0
- package/src/lib/services/inputs.service.ts +114 -0
- package/src/lib/services/key-pressed.service.ts +40 -0
- package/src/lib/services/resize-window-observer.service.ts +37 -0
- package/src/lib/services/selected-objects-state.service.ts +159 -0
- package/src/lib/store/fast-query-store.service.ts +132 -0
- package/{lib/types/event.types.d.ts → src/lib/types/event.types.ts} +1 -1
- package/src/lib/types/hasura.types.ts +41 -0
- package/src/lib/types/inputs.types.ts +63 -0
- package/src/lib/types/params.types.ts +42 -0
- package/src/lib/types/register-base.types.ts +161 -0
- package/src/lib/types/sub-types.ts +15 -0
- package/src/lib/types/user-profile.types.ts +18 -0
- package/src/lib/utils/functions.ts +11 -0
- package/src/lib/utils/get-url-segment.ts +46 -0
- package/src/lib/utils/prizm.shared.module.ts +176 -0
- package/src/lib/utils/rxjs.ts +33 -0
- package/src/lib/utils/select-all-utils.ts +16 -0
- package/tsconfig.lib.json +16 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.schematics.json +26 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +0 -129
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +0 -8
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +0 -249
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +0 -80
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +0 -10
- package/esm2022/lib/components/column-settings/index.mjs +0 -3
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +0 -7
- package/esm2022/lib/components/divider/divider.component.mjs +0 -16
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +0 -19
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +0 -31
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +0 -57
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +0 -110
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +0 -130
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +0 -89
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +0 -41
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +0 -45
- package/esm2022/lib/components/filters/index.mjs +0 -3
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +0 -155
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +0 -39
- package/esm2022/lib/components/index.mjs +0 -11
- package/esm2022/lib/components/inputs/index.mjs +0 -20
- package/esm2022/lib/components/inputs/inputs.module.mjs +0 -166
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +0 -45
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +0 -12
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +0 -76
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +0 -61
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +0 -86
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +0 -96
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +0 -50
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +0 -62
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +0 -309
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +0 -209
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +0 -21
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +0 -28
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +0 -3
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +0 -105
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +0 -10
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +0 -40
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +0 -38
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +0 -20
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +0 -37
- package/esm2022/lib/components/inputs/param-tree/index.mjs +0 -8
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +0 -207
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +0 -116
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +0 -20
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +0 -3
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +0 -2
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +0 -9
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +0 -80
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +0 -85
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +0 -15
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +0 -12
- package/esm2022/lib/components/menu-constructor/index.mjs +0 -5
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +0 -559
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +0 -3
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +0 -5
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +0 -3
- package/esm2022/lib/components/page-menu/index.mjs +0 -6
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +0 -9
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +0 -2
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +0 -4
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +0 -3
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +0 -275
- package/esm2022/lib/components/paginator/paginator.component.mjs +0 -159
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +0 -2
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +0 -4
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +0 -19
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +0 -18
- package/esm2022/lib/components/register-table/index.mjs +0 -4
- package/esm2022/lib/components/register-table/model/schema.mjs +0 -10
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +0 -33
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +0 -17
- package/esm2022/lib/components/register-table/register-table.component.mjs +0 -544
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +0 -18
- package/esm2022/lib/components/search-input/search-input.component.mjs +0 -28
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +0 -48
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +0 -19
- package/esm2022/lib/consts/date-time.consts.mjs +0 -2
- package/esm2022/lib/consts/index.mjs +0 -4
- package/esm2022/lib/consts/inputs.consts.mjs +0 -4
- package/esm2022/lib/consts/month.consts.mjs +0 -77
- package/esm2022/lib/consts/params.consts.mjs +0 -2
- package/esm2022/lib/consts/register-base.consts.mjs +0 -26
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +0 -8
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +0 -81
- package/esm2022/lib/core/form-group-wrapper/index.mjs +0 -2
- package/esm2022/lib/core/index.mjs +0 -5
- package/esm2022/lib/core/input-control/index.mjs +0 -2
- package/esm2022/lib/core/input-control/input-control.mjs +0 -11
- package/esm2022/lib/core/param/index.mjs +0 -6
- package/esm2022/lib/core/param/param-base.mjs +0 -215
- package/esm2022/lib/core/param/param-date-base.mjs +0 -26
- package/esm2022/lib/core/param/param-select-base.mjs +0 -114
- package/esm2022/lib/core/param/param-text-base.mjs +0 -25
- package/esm2022/lib/core/param/param.tokens.mjs +0 -4
- package/esm2022/lib/core/register-base/index.mjs +0 -3
- package/esm2022/lib/core/register-base/register-base.mjs +0 -575
- package/esm2022/lib/core/register-base/register-base.store.mjs +0 -43
- package/esm2022/lib/directives/date/date-time.types.mjs +0 -34
- package/esm2022/lib/directives/date/format-date.pipe.mjs +0 -33
- package/esm2022/lib/directives/index.mjs +0 -3
- package/esm2022/lib/directives/number/number-only.directive.mjs +0 -41
- package/esm2022/lib/directives/sticky/index.mjs +0 -3
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +0 -32
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +0 -32
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +0 -169
- package/esm2022/lib/services/date-time.service.mjs +0 -314
- package/esm2022/lib/services/dialog/dialog.service.mjs +0 -53
- package/esm2022/lib/services/dialog/dialog.types.mjs +0 -2
- package/esm2022/lib/services/dialog/index.mjs +0 -3
- package/esm2022/lib/services/dom-intersection.service.mjs +0 -22
- package/esm2022/lib/services/filter/filters-state.service.mjs +0 -65
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +0 -82
- package/esm2022/lib/services/filter/filters.service.mjs +0 -23
- package/esm2022/lib/services/index.mjs +0 -8
- package/esm2022/lib/services/inputs-state.service.mjs +0 -130
- package/esm2022/lib/services/inputs.service.mjs +0 -88
- package/esm2022/lib/services/key-pressed.service.mjs +0 -37
- package/esm2022/lib/services/resize-window-observer.service.mjs +0 -33
- package/esm2022/lib/services/selected-objects-state.service.mjs +0 -123
- package/esm2022/lib/store/fast-query-store.service.mjs +0 -110
- package/esm2022/lib/store/index.mjs +0 -2
- package/esm2022/lib/types/event.types.mjs +0 -2
- package/esm2022/lib/types/hasura.types.mjs +0 -2
- package/esm2022/lib/types/index.mjs +0 -7
- package/esm2022/lib/types/inputs.types.mjs +0 -19
- package/esm2022/lib/types/params.types.mjs +0 -2
- package/esm2022/lib/types/register-base.types.mjs +0 -6
- package/esm2022/lib/types/sub-types.mjs +0 -2
- package/esm2022/lib/types/user-profile.types.mjs +0 -2
- package/esm2022/lib/utils/functions.mjs +0 -10
- package/esm2022/lib/utils/get-url-segment.mjs +0 -35
- package/esm2022/lib/utils/index.mjs +0 -5
- package/esm2022/lib/utils/prizm.shared.module.mjs +0 -284
- package/esm2022/lib/utils/rxjs.mjs +0 -28
- package/esm2022/lib/utils/select-all-utils.mjs +0 -11
- package/esm2022/ngx-register-base.mjs +0 -5
- package/esm2022/public-api.mjs +0 -9
- package/fesm2022/ngx-register-base.mjs +0 -7465
- package/fesm2022/ngx-register-base.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +0 -33
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +0 -7
- package/lib/components/column-settings/column-settings.component.d.ts +0 -80
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +0 -24
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +0 -8
- package/lib/components/column-settings/types/column-settings.types.d.ts +0 -22
- package/lib/components/divider/divider.component.d.ts +0 -6
- package/lib/components/filter-button/filter-button.component.d.ts +0 -8
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +0 -14
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +0 -25
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +0 -39
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +0 -41
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +0 -20
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +0 -15
- package/lib/components/filters/components/filter-list.module.d.ts +0 -15
- package/lib/components/filters/register-table-filter.component.d.ts +0 -40
- package/lib/components/filters/register-table-filter.module.d.ts +0 -13
- package/lib/components/inputs/inputs.module.d.ts +0 -31
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +0 -19
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +0 -6
- package/lib/components/inputs/param-date/param-date.component.d.ts +0 -20
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +0 -26
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +0 -25
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +0 -28
- package/lib/components/inputs/param-month/param-month.component.d.ts +0 -18
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +0 -21
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +0 -46
- package/lib/components/inputs/param-select/param-select.component.d.ts +0 -30
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +0 -8
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +0 -2
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +0 -19
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +0 -8
- package/lib/components/inputs/param-text/param-text.component.d.ts +0 -10
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +0 -10
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +0 -9
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +0 -7
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +0 -41
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +0 -37
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +0 -10
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +0 -32
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +0 -7
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +0 -31
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +0 -30
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +0 -6
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +0 -5
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +0 -113
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +0 -24
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +0 -36
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +0 -7
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +0 -30
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +0 -3
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +0 -36
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +0 -48
- package/lib/components/paginator/paginator.component.d.ts +0 -52
- package/lib/components/paginator/types/paginator.types.d.ts +0 -15
- package/lib/components/register-table/consts/register-table.consts.d.ts +0 -3
- package/lib/components/register-table/directives/cell-template.directive.d.ts +0 -9
- package/lib/components/register-table/directives/header-template.directive.d.ts +0 -9
- package/lib/components/register-table/model/schema.d.ts +0 -52
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +0 -8
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +0 -7
- package/lib/components/register-table/register-table.component.d.ts +0 -165
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +0 -9
- package/lib/components/search-input/search-input.component.d.ts +0 -11
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +0 -14
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +0 -9
- package/lib/consts/date-time.consts.d.ts +0 -1
- package/lib/consts/index.d.ts +0 -3
- package/lib/consts/inputs.consts.d.ts +0 -4
- package/lib/consts/month.consts.d.ts +0 -49
- package/lib/consts/params.consts.d.ts +0 -1
- package/lib/consts/register-base.consts.d.ts +0 -19
- package/lib/core/form-group-wrapper/errors-consts.d.ts +0 -5
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +0 -15
- package/lib/core/input-control/input-control.d.ts +0 -11
- package/lib/core/param/param-base.d.ts +0 -68
- package/lib/core/param/param-date-base.d.ts +0 -18
- package/lib/core/param/param-select-base.d.ts +0 -42
- package/lib/core/param/param-text-base.d.ts +0 -15
- package/lib/core/register-base/register-base.d.ts +0 -168
- package/lib/core/register-base/register-base.store.d.ts +0 -35
- package/lib/directives/date/date-time.types.d.ts +0 -32
- package/lib/directives/date/format-date.pipe.d.ts +0 -10
- package/lib/directives/number/number-only.directive.d.ts +0 -10
- package/lib/directives/sticky/sticky-relative.directive.d.ts +0 -13
- package/lib/directives/sticky/sticky-relative.service.d.ts +0 -15
- package/lib/directives/sticky/sticky.directive.d.ts +0 -27
- package/lib/services/date-time.service.d.ts +0 -80
- package/lib/services/dialog/dialog.service.d.ts +0 -22
- package/lib/services/dom-intersection.service.d.ts +0 -8
- package/lib/services/filter/filters-state.service.d.ts +0 -21
- package/lib/services/filter/filters-transmit.service.d.ts +0 -28
- package/lib/services/filter/filters.service.d.ts +0 -12
- package/lib/services/inputs-state.service.d.ts +0 -57
- package/lib/services/inputs.service.d.ts +0 -28
- package/lib/services/key-pressed.service.d.ts +0 -15
- package/lib/services/resize-window-observer.service.d.ts +0 -11
- package/lib/services/selected-objects-state.service.d.ts +0 -47
- package/lib/store/fast-query-store.service.d.ts +0 -19
- package/lib/types/hasura.types.d.ts +0 -35
- package/lib/types/inputs.types.d.ts +0 -41
- package/lib/types/params.types.d.ts +0 -27
- package/lib/types/register-base.types.d.ts +0 -123
- package/lib/types/sub-types.d.ts +0 -8
- package/lib/types/user-profile.types.d.ts +0 -17
- package/lib/utils/functions.d.ts +0 -3
- package/lib/utils/get-url-segment.d.ts +0 -7
- package/lib/utils/prizm.shared.module.d.ts +0 -14
- package/lib/utils/rxjs.d.ts +0 -10
- package/lib/utils/select-all-utils.d.ts +0 -8
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +0 -2
- package/schematics/ng-update/replace-menu-state-token/index.js +0 -29
- package/schematics/ng-update/replace-menu-state-token/index.js.map +0 -1
- package/schematics/ng-update/update-prefix/index.d.ts +0 -2
- package/schematics/ng-update/update-prefix/index.js +0 -33
- package/schematics/ng-update/update-prefix/index.js.map +0 -1
- package/schematics/utils/utils.js +0 -25
- package/schematics/utils/utils.js.map +0 -1
- /package/{lib/components/column-settings/index.d.ts → src/lib/components/column-settings/index.ts} +0 -0
- /package/{lib/components/filters/index.d.ts → src/lib/components/filters/index.ts} +0 -0
- /package/{lib/components/index.d.ts → src/lib/components/index.ts} +0 -0
- /package/{lib/components/inputs/index.d.ts → src/lib/components/inputs/index.ts} +0 -0
- /package/{lib/components/inputs/param-switcher-date-time-range/index.d.ts → src/lib/components/inputs/param-switcher-date-time-range/index.ts} +0 -0
- /package/{lib/components/inputs/param-tree/index.d.ts → src/lib/components/inputs/param-tree/index.ts} +0 -0
- /package/{lib/components/menu-constructor/index.d.ts → src/lib/components/menu-constructor/index.ts} +0 -0
- /package/{lib/components/page-menu/index.d.ts → src/lib/components/page-menu/index.ts} +0 -0
- /package/{lib/components/register-table/index.d.ts → src/lib/components/register-table/index.ts} +0 -0
- /package/{lib/core/form-group-wrapper/index.d.ts → src/lib/core/form-group-wrapper/index.ts} +0 -0
- /package/{lib/core/index.d.ts → src/lib/core/index.ts} +0 -0
- /package/{lib/core/input-control/index.d.ts → src/lib/core/input-control/index.ts} +0 -0
- /package/{lib/core/param/index.d.ts → src/lib/core/param/index.ts} +0 -0
- /package/{lib/core/register-base/index.d.ts → src/lib/core/register-base/index.ts} +0 -0
- /package/{lib/directives/index.d.ts → src/lib/directives/index.ts} +0 -0
- /package/{lib/directives/sticky/index.d.ts → src/lib/directives/sticky/index.ts} +0 -0
- /package/{lib/services/dialog/index.d.ts → src/lib/services/dialog/index.ts} +0 -0
- /package/{lib/services/index.d.ts → src/lib/services/index.ts} +0 -0
- /package/{lib/store/index.d.ts → src/lib/store/index.ts} +0 -0
- /package/{lib/types/index.d.ts → src/lib/types/index.ts} +0 -0
- /package/{lib/utils/index.d.ts → src/lib/utils/index.ts} +0 -0
- /package/{public-api.d.ts → src/public-api.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<section class="reset-warning">
|
|
2
|
+
<div class="main-warning">
|
|
3
|
+
Сбросить все параметры <br />
|
|
4
|
+
отображения реестра?
|
|
5
|
+
</div>
|
|
6
|
+
<div style="display: flex; flex-direction: row; padding: 16px 0 0 10px">
|
|
7
|
+
<img [src]="svgSrc.WARNING" alt="!" />
|
|
8
|
+
|
|
9
|
+
<span class="info"
|
|
10
|
+
>будут сброшены настройки отображения столбцов реестра <br />
|
|
11
|
+
(порядок, ширина, отображение и т.д.)</span
|
|
12
|
+
>
|
|
13
|
+
</div>
|
|
14
|
+
</section>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.reset-warning {
|
|
2
|
+
.main-warning {
|
|
3
|
+
text-align: center;
|
|
4
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
line-height: 20px;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.info {
|
|
13
|
+
padding-left: 4px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
flex: 1 0 0;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
color: var(--main-black);
|
|
20
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
21
|
+
font-size: 10px;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
line-height: 12px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
export enum SvgSrc {
|
|
4
|
+
WARNING = 'assets/ngx-register-base/icons/circle-exclamation-empty.svg',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'sproc-reset-settings-form',
|
|
9
|
+
templateUrl: './reset-settings-form.component.html',
|
|
10
|
+
styleUrls: ['./reset-settings-form.component.less'],
|
|
11
|
+
standalone: true,
|
|
12
|
+
})
|
|
13
|
+
export class ResetSettingsFormComponent {
|
|
14
|
+
protected readonly svgSrc = SvgSrc;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<sproc-param-custom [formControl]="searchControl()" [formatGqlValue]="formatGqlValueProxy">
|
|
2
|
+
<tui-textfield tuiTextfieldSize="m" [tuiTextfieldCleaner]="true">
|
|
3
|
+
<input placeholder="Поиск" tuiTextfield [formControl]="searchControl()" />
|
|
4
|
+
<tui-icon icon="@tui.search" [style.width.px]="16" />
|
|
5
|
+
</tui-textfield>
|
|
6
|
+
</sproc-param-custom>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--tui-height-m: var(--top-bar-button-height);
|
|
3
|
+
|
|
4
|
+
width: 260px;
|
|
5
|
+
height: var(--tui-height-m);
|
|
6
|
+
|
|
7
|
+
input {
|
|
8
|
+
outline: none;
|
|
9
|
+
box-shadow: none;
|
|
10
|
+
border: 1px solid var(--input-stroke);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[tuiAppearance][data-appearance='textfield']:focus-visible:not([data-focus='false']) {
|
|
14
|
+
border-color: var(--brand-blue);
|
|
15
|
+
box-shadow: 0 0 0 2px #cae6f8;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Injector, input } from '@angular/core';
|
|
2
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { TuiIcon, TuiTextfield } from '@taiga-ui/core';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { InputsModule } from '../inputs';
|
|
6
|
+
import { FormatterGqlValueType, IInputControl } from '../../types';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'sproc-search-input',
|
|
10
|
+
standalone: true,
|
|
11
|
+
templateUrl: './search-input.component.html',
|
|
12
|
+
styleUrls: ['./search-input.component.less'],
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
imports: [CommonModule, ReactiveFormsModule, InputsModule, TuiIcon, TuiTextfield],
|
|
15
|
+
})
|
|
16
|
+
export class SearchInputComponent {
|
|
17
|
+
public searchControl = input.required<
|
|
18
|
+
FormControl<string | null> | IInputControl<string | null>
|
|
19
|
+
>();
|
|
20
|
+
public searchGqlFormatter = input<FormatterGqlValueType<string>>();
|
|
21
|
+
public disabled = input<boolean>(false);
|
|
22
|
+
|
|
23
|
+
public readonly formatGqlValueProxy: FormatterGqlValueType<string> = (
|
|
24
|
+
value: string,
|
|
25
|
+
injector?: Injector
|
|
26
|
+
) => {
|
|
27
|
+
const formatter = this.searchGqlFormatter();
|
|
28
|
+
const trimmedValue = value.trim();
|
|
29
|
+
return formatter ? formatter(trimmedValue, injector) : undefined;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div class="sproc-sliding-panel" [attr.show]="!!isOpen">
|
|
2
|
+
<div #headerContainer>
|
|
3
|
+
<ng-content select="[header]"></ng-content>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<prizm-scrollbar class="scrolled-content">
|
|
7
|
+
<ng-content />
|
|
8
|
+
</prizm-scrollbar>
|
|
9
|
+
|
|
10
|
+
<div #footerContainer>
|
|
11
|
+
<ng-content select="[footer]"></ng-content>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@import 'fonts';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: 3;
|
|
6
|
+
border-right: 1px;
|
|
7
|
+
box-shadow: 1px 0 12px 0 rgba(59, 71, 83, 15%);
|
|
8
|
+
//change
|
|
9
|
+
clip-path: inset(0 -12px 0 0);
|
|
10
|
+
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
11
|
+
scrollbar-width: none; /* for Firefox */
|
|
12
|
+
overflow-y: scroll;
|
|
13
|
+
|
|
14
|
+
.sproc-sliding-panel {
|
|
15
|
+
transition: width var(--page-menu-transition-time);
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
|
|
18
|
+
&[show='true'] {
|
|
19
|
+
width: 302px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[show='false'] {
|
|
23
|
+
width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.scrolled-content {
|
|
27
|
+
height: calc(
|
|
28
|
+
100vh - var(--header-height) - var(--header-offset-height) - var(--footer-offset-height) -
|
|
29
|
+
var(--sub-offset-height)
|
|
30
|
+
);
|
|
31
|
+
margin-bottom: var(--footer-offset-height);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.divider {
|
|
36
|
+
::ng-deep .horizontal-solid {
|
|
37
|
+
margin-bottom: 8px !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
::ng-deep {
|
|
42
|
+
sproc-param-date-time-range .prizm-icon-16.date-calendar-range::before {
|
|
43
|
+
mask-image: url('../../../../icons/calendar-icon.svg') !important;
|
|
44
|
+
background-color: #777b92;
|
|
45
|
+
color: #777b92;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
sproc-param-date-time-range .prizm-icon-16:hover {
|
|
49
|
+
&.date-calendar-range::before {
|
|
50
|
+
background-color: #000000 !important;
|
|
51
|
+
color: #000000 !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.label {
|
|
56
|
+
color: #000000;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input {
|
|
60
|
+
color: #000000;
|
|
61
|
+
font-weight: 400 !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
prizm-input-layout .prizm-input-form {
|
|
65
|
+
padding: 0 0 0 8px !important;
|
|
66
|
+
|
|
67
|
+
input {
|
|
68
|
+
padding-left: 4px !important;
|
|
69
|
+
padding-right: 4px !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.multiple-input-box {
|
|
73
|
+
padding-left: 4px !important;
|
|
74
|
+
padding-right: 4px !important;
|
|
75
|
+
|
|
76
|
+
input {
|
|
77
|
+
padding-left: unset !important;
|
|
78
|
+
padding-right: unset !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
::placeholder {
|
|
84
|
+
font-family: Inter, sans-serif;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
font-weight: 300;
|
|
87
|
+
line-height: 16px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
prizm-chips {
|
|
91
|
+
margin: 0 !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.chips-name,
|
|
95
|
+
.chips-list__item {
|
|
96
|
+
color: #000000;
|
|
97
|
+
|
|
98
|
+
.table-text-12px-400;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
button[data-appearance='secondary'][data-appearance-type='ghost']:hover {
|
|
102
|
+
background: inherit !important;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
::ng-deep {
|
|
108
|
+
.z-overlay-wrapper prizm-hint-container[data-prizm-theme='dark'] {
|
|
109
|
+
background: #ffffff !important;
|
|
110
|
+
color: #000000 !important;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, ElementRef, HostBinding, Input, ViewChild } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'sproc-sliding-panel',
|
|
5
|
+
templateUrl: './sliding-panel.component.html',
|
|
6
|
+
styleUrls: ['./sliding-panel.component.less'],
|
|
7
|
+
})
|
|
8
|
+
export class SlidingPanelComponent {
|
|
9
|
+
@HostBinding('style.--header-offset-height')
|
|
10
|
+
get headerOffsetHeightPx(): string {
|
|
11
|
+
const height: number = this._headerContainer?.nativeElement.children[0]?.offsetHeight ?? 0;
|
|
12
|
+
|
|
13
|
+
return `${height}px`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@HostBinding('style.--footer-offset-height')
|
|
17
|
+
get footerOffsetHeightPx(): string {
|
|
18
|
+
const height: number = this._footerContainer?.nativeElement.children[0]?.offsetHeight ?? 0;
|
|
19
|
+
|
|
20
|
+
return `${height}px`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@HostBinding('style.--sub-offset-height')
|
|
24
|
+
get subOffsetHeightPx(): string {
|
|
25
|
+
return `${this.subOffsetHeight}px`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Доп. отступ для вычисления высоты панели (в пикселях) */
|
|
29
|
+
@Input() subOffsetHeight = 0;
|
|
30
|
+
|
|
31
|
+
/** Состояние видимости панели */
|
|
32
|
+
@Input() isOpen: boolean | null | undefined = false;
|
|
33
|
+
|
|
34
|
+
@ViewChild('headerContainer') private readonly _headerContainer: ElementRef | undefined;
|
|
35
|
+
@ViewChild('footerContainer') private readonly _footerContainer: ElementRef | undefined;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SlidingPanelComponent } from './sliding-panel.component';
|
|
4
|
+
import { PrizmScrollbarComponent } from '@prizm-ui/components';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [SlidingPanelComponent],
|
|
8
|
+
imports: [CommonModule, PrizmScrollbarComponent],
|
|
9
|
+
exports: [SlidingPanelComponent],
|
|
10
|
+
})
|
|
11
|
+
export class SlidingPanelModule {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const STORED_TIMEZONE = 'storedTimezone';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { IInputsStateConfig } from '../types';
|
|
3
|
+
|
|
4
|
+
export const INPUTS_STATE_CONFIG_KEY = new InjectionToken<IInputsStateConfig>(
|
|
5
|
+
'INPUTS_STATE_CONFIG_KEY'
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
export const WARN_SEARCH_INPUT_UNDEFINED =
|
|
9
|
+
'Поле поиска не инициализировано. Пожалуйста задайте конфигурацию searchInput: true при провайде INPUTS_STATE_CONFIG_KEY';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export enum EMonth {
|
|
2
|
+
JAN,
|
|
3
|
+
FEB,
|
|
4
|
+
MAR,
|
|
5
|
+
APR,
|
|
6
|
+
MAY,
|
|
7
|
+
JUN,
|
|
8
|
+
JUL,
|
|
9
|
+
AUG,
|
|
10
|
+
SEP,
|
|
11
|
+
OCT,
|
|
12
|
+
NOV,
|
|
13
|
+
DEC,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum MonthsNumber {
|
|
17
|
+
January = 1,
|
|
18
|
+
February = 2,
|
|
19
|
+
March = 3,
|
|
20
|
+
April = 4,
|
|
21
|
+
May = 5,
|
|
22
|
+
June = 6,
|
|
23
|
+
July = 7,
|
|
24
|
+
August = 8,
|
|
25
|
+
September = 9,
|
|
26
|
+
October = 10,
|
|
27
|
+
November = 11,
|
|
28
|
+
December = 12,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum MonthsName {
|
|
32
|
+
January = 'Январь',
|
|
33
|
+
February = 'Февраль',
|
|
34
|
+
March = 'Март',
|
|
35
|
+
April = 'Апрель',
|
|
36
|
+
May = 'Май',
|
|
37
|
+
June = 'Июнь',
|
|
38
|
+
July = 'Июль',
|
|
39
|
+
August = 'Август',
|
|
40
|
+
September = 'Сентябрь',
|
|
41
|
+
October = 'Октябрь',
|
|
42
|
+
November = 'Ноябрь',
|
|
43
|
+
December = 'Декабрь',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class MonthMapper {
|
|
47
|
+
public static readonly MONTH_NUMBER_NAMES: Map<string, MonthsNumber> = new Map([
|
|
48
|
+
[MonthsName.January, MonthsNumber.January],
|
|
49
|
+
[MonthsName.February, MonthsNumber.February],
|
|
50
|
+
[MonthsName.March, MonthsNumber.March],
|
|
51
|
+
[MonthsName.April, MonthsNumber.April],
|
|
52
|
+
[MonthsName.May, MonthsNumber.May],
|
|
53
|
+
[MonthsName.June, MonthsNumber.June],
|
|
54
|
+
[MonthsName.July, MonthsNumber.July],
|
|
55
|
+
[MonthsName.August, MonthsNumber.August],
|
|
56
|
+
[MonthsName.September, MonthsNumber.September],
|
|
57
|
+
[MonthsName.October, MonthsNumber.October],
|
|
58
|
+
[MonthsName.November, MonthsNumber.November],
|
|
59
|
+
[MonthsName.December, MonthsNumber.December],
|
|
60
|
+
]);
|
|
61
|
+
|
|
62
|
+
public static getMonthNumber(monthName: string): number | undefined {
|
|
63
|
+
return this.MONTH_NUMBER_NAMES.get(monthName);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static getRusNamesArr(): string[] {
|
|
67
|
+
const rusNamesArr: string[] = [...this.MONTH_NUMBER_NAMES.keys()];
|
|
68
|
+
return rusNamesArr;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public static getNumbersArr(): number[] {
|
|
72
|
+
const numberArr: number[] = [...this.MONTH_NUMBER_NAMES.values()];
|
|
73
|
+
return numberArr;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public static getMonthRusNameByNumber(monthNumber: number): string | undefined {
|
|
77
|
+
const monthName = Object.keys(MonthsNumber).find(
|
|
78
|
+
(key) => MonthsNumber[key as keyof typeof MonthsNumber] === monthNumber
|
|
79
|
+
);
|
|
80
|
+
return monthName ? MonthsName[monthName as keyof typeof MonthsName] : undefined;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PARAM_SEARCH_INPUT_DEBOUNCE_TIME_MLS = 1000;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ERegisterObjectState,
|
|
3
|
+
ITpUserSettings,
|
|
4
|
+
IUserProfileLoader,
|
|
5
|
+
IUserSettingsLoader,
|
|
6
|
+
} from '../types/register-base.types';
|
|
7
|
+
import { InjectionToken } from '@angular/core';
|
|
8
|
+
import { IUserProfile } from '../types/user-profile.types';
|
|
9
|
+
|
|
10
|
+
export const SEARCH_INPUT_DEBOUNCE_TIME_MLS = 1000;
|
|
11
|
+
export const THS_WIDTH_CHANGES_DEBOUNCE_TIME_MLS = 2000;
|
|
12
|
+
|
|
13
|
+
export const invertState = (state: ERegisterObjectState): ERegisterObjectState => {
|
|
14
|
+
if (state === ERegisterObjectState.SELECTED) {
|
|
15
|
+
return ERegisterObjectState.UNSELECTED;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return ERegisterObjectState.SELECTED;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export enum EOrder {
|
|
22
|
+
ASC = 'asc',
|
|
23
|
+
DESC = 'desc',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum SETTINGS_TYPE {
|
|
27
|
+
FILTER = 0,
|
|
28
|
+
COLUMNS = 1,
|
|
29
|
+
PAGE_MENU_STATE = 2,
|
|
30
|
+
REGISTER_PAGE_ROWS_LIMIT = 4,
|
|
31
|
+
REGISTER_PINNED_INPUTS = 5,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const USER_SETTINGS_LOADER = new InjectionToken<IUserSettingsLoader<ITpUserSettings>>(
|
|
35
|
+
'USER_SETTINGS_LOADER'
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export const USER_PROFILE_LOADER = new InjectionToken<IUserProfileLoader<IUserProfile>>(
|
|
39
|
+
'USER_PROFILE_LOADER'
|
|
40
|
+
);
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AbstractControl,
|
|
3
|
+
FormArray,
|
|
4
|
+
FormGroup,
|
|
5
|
+
ɵFormGroupRawValue,
|
|
6
|
+
ɵFormGroupValue,
|
|
7
|
+
} from '@angular/forms';
|
|
8
|
+
import { ɵRuntimeError as RuntimeError } from '@angular/core';
|
|
9
|
+
import { ERuntimeErrorCode } from './errors-consts';
|
|
10
|
+
import { ControlsWrapper, ExtractForm } from '../../types/sub-types';
|
|
11
|
+
|
|
12
|
+
function assertAllValuesPresent(control: any, isGroup: boolean, value: any): void {
|
|
13
|
+
control._forEachChild((_: unknown, key: string | number) => {
|
|
14
|
+
if (value[key] === undefined) {
|
|
15
|
+
throw new RuntimeError(ERuntimeErrorCode.MISSING_CONTROL_VALUE, '');
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function assertControlPresent(parent: any, isGroup: boolean, key: string | number): void {
|
|
21
|
+
const controls = parent.controls as { [key: string | number]: unknown };
|
|
22
|
+
const collection = isGroup ? Object.keys(controls) : controls;
|
|
23
|
+
|
|
24
|
+
if (collection.length === 0) {
|
|
25
|
+
throw new RuntimeError(ERuntimeErrorCode.NO_CONTROLS, '');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (!controls[key]) {
|
|
29
|
+
throw new RuntimeError(ERuntimeErrorCode.MISSING_CONTROL, '');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** @deprecated заменить на FormGroup */
|
|
34
|
+
export class FormGroupWrapper<TItem> extends FormGroup<ControlsWrapper<TItem>> {
|
|
35
|
+
public override setValue(
|
|
36
|
+
value: TItem & ɵFormGroupRawValue<any>,
|
|
37
|
+
options?: { onlySelf?: boolean; emitEvent?: boolean }
|
|
38
|
+
): void {
|
|
39
|
+
assertAllValuesPresent(this, true, value);
|
|
40
|
+
|
|
41
|
+
for (const name of Object.keys(value) as (keyof TItem)[]) {
|
|
42
|
+
assertControlPresent(this, true, name as any);
|
|
43
|
+
const control = (this.controls as any)[name];
|
|
44
|
+
const currentValue = (value as any)[name];
|
|
45
|
+
|
|
46
|
+
if (control instanceof FormArray && Array.isArray(currentValue)) {
|
|
47
|
+
control.clear();
|
|
48
|
+
|
|
49
|
+
for (const item of currentValue as AbstractControl<any, any>[]) {
|
|
50
|
+
item.setParent(control);
|
|
51
|
+
control.push(item, { emitEvent: options?.emitEvent });
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
control.setValue(currentValue, {
|
|
55
|
+
onlySelf: true,
|
|
56
|
+
emitEvent: options?.emitEvent,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
this.updateValueAndValidity(options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public override patchValue(
|
|
65
|
+
value: Partial<TItem> | ɵFormGroupValue<any>,
|
|
66
|
+
options?: { onlySelf?: boolean; emitEvent?: boolean }
|
|
67
|
+
): void {
|
|
68
|
+
if (value === null) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
for (const name of Object.keys(value) as (keyof TItem)[]) {
|
|
73
|
+
const control = (this.controls as any)[name];
|
|
74
|
+
const currentValue = value[name as keyof ({ [key: string]: any } | Partial<TItem>)]!;
|
|
75
|
+
|
|
76
|
+
if (control) {
|
|
77
|
+
if (control instanceof FormArray && Array.isArray(currentValue)) {
|
|
78
|
+
control.clear();
|
|
79
|
+
|
|
80
|
+
for (const item of currentValue as AbstractControl<any, any>[]) {
|
|
81
|
+
item.setParent(control);
|
|
82
|
+
control.push(item, { emitEvent: options?.emitEvent });
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
control.patchValue(currentValue, {
|
|
86
|
+
onlySelf: true,
|
|
87
|
+
emitEvent: options?.emitEvent,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
this.updateValueAndValidity(options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public getDirtyValues(): Partial<ExtractForm<TItem>> {
|
|
97
|
+
const values: Partial<ExtractForm<TItem>> = {};
|
|
98
|
+
|
|
99
|
+
for (const key of Object.keys(this.controls)) {
|
|
100
|
+
const control = this.get(key);
|
|
101
|
+
|
|
102
|
+
if (control?.dirty) {
|
|
103
|
+
values[key as keyof TItem] = control.getRawValue();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return values;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AsyncValidatorFn,
|
|
3
|
+
FormControl,
|
|
4
|
+
FormControlOptions,
|
|
5
|
+
FormControlState,
|
|
6
|
+
ValidatorFn,
|
|
7
|
+
} from '@angular/forms';
|
|
8
|
+
import { BehaviorSubject } from 'rxjs';
|
|
9
|
+
import { IInputControl, InputControlGqlValue } from '../../types/inputs.types';
|
|
10
|
+
import { signal, WritableSignal } from '@angular/core';
|
|
11
|
+
|
|
12
|
+
export class InputControl<ValueType = any, SavedValueType = any>
|
|
13
|
+
extends FormControl
|
|
14
|
+
implements IInputControl<ValueType, SavedValueType>
|
|
15
|
+
{
|
|
16
|
+
public saved_value$!: BehaviorSubject<SavedValueType | null>;
|
|
17
|
+
public gql_value: InputControlGqlValue;
|
|
18
|
+
/** По полю применена фильтрация */
|
|
19
|
+
applied?: WritableSignal<boolean>;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
value: FormControlState<ValueType> | ValueType,
|
|
23
|
+
validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions | null,
|
|
24
|
+
asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null
|
|
25
|
+
) {
|
|
26
|
+
super(value, validatorOrOpts, asyncValidator);
|
|
27
|
+
this.saved_value$ = new BehaviorSubject<SavedValueType | null>(null);
|
|
28
|
+
this.applied = signal(false);
|
|
29
|
+
}
|
|
30
|
+
}
|