ngx-register-base 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +129 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +8 -0
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +249 -0
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +80 -0
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +10 -0
- package/esm2022/lib/components/column-settings/index.mjs +3 -0
- package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +7 -0
- package/esm2022/lib/components/divider/divider.component.mjs +16 -0
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +19 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +31 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +57 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +110 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +130 -0
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +89 -0
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +41 -0
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +45 -0
- package/esm2022/lib/components/filters/index.mjs +3 -0
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +155 -0
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +39 -0
- package/esm2022/lib/components/index.mjs +11 -0
- package/esm2022/lib/components/inputs/index.mjs +20 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +166 -0
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +45 -0
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +12 -0
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +76 -0
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +60 -0
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +86 -0
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +95 -0
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +50 -0
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +62 -0
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +309 -0
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +233 -0
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +21 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +28 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +3 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +105 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +10 -0
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +40 -0
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +38 -0
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +37 -0
- package/esm2022/lib/components/inputs/param-tree/index.mjs +8 -0
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +207 -0
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +116 -0
- package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +20 -0
- package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +3 -0
- package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +2 -0
- package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +9 -0
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +80 -0
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +85 -0
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +15 -0
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +12 -0
- package/esm2022/lib/components/menu-constructor/index.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +559 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +3 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +5 -0
- package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +3 -0
- package/esm2022/lib/components/page-menu/index.mjs +6 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +9 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +2 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +4 -0
- package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +3 -0
- package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +275 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +159 -0
- package/esm2022/lib/components/paginator/types/paginator.types.mjs +2 -0
- package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +4 -0
- package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +19 -0
- package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +18 -0
- package/esm2022/lib/components/register-table/index.mjs +4 -0
- package/esm2022/lib/components/register-table/model/schema.mjs +10 -0
- package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +33 -0
- package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +17 -0
- package/esm2022/lib/components/register-table/register-table.component.mjs +544 -0
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +18 -0
- package/esm2022/lib/components/search-input/search-input.component.mjs +28 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +48 -0
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +19 -0
- package/esm2022/lib/consts/date-time.consts.mjs +2 -0
- package/esm2022/lib/consts/index.mjs +4 -0
- package/esm2022/lib/consts/inputs.consts.mjs +4 -0
- package/esm2022/lib/consts/month.consts.mjs +77 -0
- package/esm2022/lib/consts/params.consts.mjs +2 -0
- package/esm2022/lib/consts/register-base.consts.mjs +26 -0
- package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +8 -0
- package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +81 -0
- package/esm2022/lib/core/form-group-wrapper/index.mjs +2 -0
- package/esm2022/lib/core/index.mjs +5 -0
- package/esm2022/lib/core/input-control/index.mjs +2 -0
- package/esm2022/lib/core/input-control/input-control.mjs +11 -0
- package/esm2022/lib/core/param/index.mjs +6 -0
- package/esm2022/lib/core/param/param-base.mjs +215 -0
- package/esm2022/lib/core/param/param-date-base.mjs +26 -0
- package/esm2022/lib/core/param/param-select-base.mjs +114 -0
- package/esm2022/lib/core/param/param-text-base.mjs +25 -0
- package/esm2022/lib/core/param/param.tokens.mjs +4 -0
- package/esm2022/lib/core/register-base/index.mjs +3 -0
- package/esm2022/lib/core/register-base/register-base.mjs +575 -0
- package/esm2022/lib/core/register-base/register-base.store.mjs +43 -0
- package/esm2022/lib/directives/date/date-time.types.mjs +34 -0
- package/esm2022/lib/directives/date/format-date.pipe.mjs +33 -0
- package/esm2022/lib/directives/index.mjs +3 -0
- package/esm2022/lib/directives/number/number-only.directive.mjs +41 -0
- package/esm2022/lib/directives/sticky/index.mjs +3 -0
- package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +32 -0
- package/esm2022/lib/directives/sticky/sticky.directive.mjs +169 -0
- package/esm2022/lib/services/date-time.service.mjs +314 -0
- package/esm2022/lib/services/dialog/dialog.service.mjs +53 -0
- package/esm2022/lib/services/dialog/dialog.types.mjs +2 -0
- package/esm2022/lib/services/dialog/index.mjs +3 -0
- package/esm2022/lib/services/dom-intersection.service.mjs +22 -0
- package/esm2022/lib/services/filter/filters-state.service.mjs +65 -0
- package/esm2022/lib/services/filter/filters-transmit.service.mjs +82 -0
- package/esm2022/lib/services/filter/filters.service.mjs +23 -0
- package/esm2022/lib/services/index.mjs +8 -0
- package/esm2022/lib/services/inputs-state.service.mjs +130 -0
- package/esm2022/lib/services/inputs.service.mjs +88 -0
- package/esm2022/lib/services/key-pressed.service.mjs +37 -0
- package/esm2022/lib/services/resize-window-observer.service.mjs +33 -0
- package/esm2022/lib/services/selected-objects-state.service.mjs +123 -0
- package/esm2022/lib/store/fast-query-store.service.mjs +110 -0
- package/esm2022/lib/store/index.mjs +2 -0
- package/esm2022/lib/types/event.types.mjs +2 -0
- package/esm2022/lib/types/hasura.types.mjs +2 -0
- package/esm2022/lib/types/index.mjs +7 -0
- package/esm2022/lib/types/inputs.types.mjs +19 -0
- package/esm2022/lib/types/params.types.mjs +2 -0
- package/esm2022/lib/types/register-base.types.mjs +6 -0
- package/esm2022/lib/types/sub-types.mjs +2 -0
- package/esm2022/lib/types/user-profile.types.mjs +2 -0
- package/esm2022/lib/utils/functions.mjs +10 -0
- package/esm2022/lib/utils/get-url-segment.mjs +35 -0
- package/esm2022/lib/utils/index.mjs +5 -0
- package/esm2022/lib/utils/prizm.shared.module.mjs +284 -0
- package/esm2022/lib/utils/rxjs.mjs +28 -0
- package/esm2022/lib/utils/select-all-utils.mjs +11 -0
- package/esm2022/ngx-register-base.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/ngx-register-base.mjs +7487 -0
- package/fesm2022/ngx-register-base.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +33 -0
- package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +7 -0
- package/lib/components/column-settings/column-settings.component.d.ts +80 -0
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +24 -0
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +8 -0
- package/lib/components/column-settings/types/column-settings.types.d.ts +22 -0
- package/lib/components/divider/divider.component.d.ts +6 -0
- package/lib/components/filter-button/filter-button.component.d.ts +8 -0
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +14 -0
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +25 -0
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +39 -0
- package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +41 -0
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +20 -0
- package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +15 -0
- package/lib/components/filters/components/filter-list.module.d.ts +15 -0
- package/lib/components/filters/register-table-filter.component.d.ts +40 -0
- package/lib/components/filters/register-table-filter.module.d.ts +13 -0
- package/lib/components/inputs/inputs.module.d.ts +31 -0
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +19 -0
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +6 -0
- package/lib/components/inputs/param-date/param-date.component.d.ts +20 -0
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +26 -0
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +25 -0
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +28 -0
- package/lib/components/inputs/param-month/param-month.component.d.ts +18 -0
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +21 -0
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +46 -0
- package/lib/components/inputs/param-select/param-select.component.d.ts +34 -0
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +8 -0
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +2 -0
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +19 -0
- package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +8 -0
- package/lib/components/inputs/param-text/param-text.component.d.ts +10 -0
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +10 -0
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +9 -0
- package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +7 -0
- package/lib/components/inputs/param-tree/param-tree.component.d.ts +41 -0
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +37 -0
- package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +10 -0
- package/{src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts → lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts} +1 -2
- package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +32 -0
- package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +7 -0
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +31 -0
- package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +30 -0
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +6 -0
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +5 -0
- package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +113 -0
- package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +24 -0
- package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +36 -0
- package/{src/lib/components/menu-constructor/store/sproc-menu.tokens.ts → lib/components/menu-constructor/store/sproc-menu.tokens.d.ts} +1 -4
- package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +7 -0
- package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +30 -0
- package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +3 -0
- package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +36 -0
- package/lib/components/page-menu/sproc-page-menu.component.d.ts +48 -0
- package/lib/components/paginator/paginator.component.d.ts +52 -0
- package/lib/components/paginator/types/paginator.types.d.ts +15 -0
- package/lib/components/register-table/consts/register-table.consts.d.ts +3 -0
- package/lib/components/register-table/directives/cell-template.directive.d.ts +9 -0
- package/lib/components/register-table/directives/header-template.directive.d.ts +9 -0
- package/lib/components/register-table/model/schema.d.ts +52 -0
- package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +8 -0
- package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +7 -0
- package/lib/components/register-table/register-table.component.d.ts +165 -0
- package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +9 -0
- package/lib/components/search-input/search-input.component.d.ts +11 -0
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +14 -0
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +9 -0
- package/lib/consts/date-time.consts.d.ts +1 -0
- package/lib/consts/index.d.ts +3 -0
- package/lib/consts/inputs.consts.d.ts +4 -0
- package/lib/consts/month.consts.d.ts +49 -0
- package/lib/consts/params.consts.d.ts +1 -0
- package/lib/consts/register-base.consts.d.ts +19 -0
- package/lib/core/form-group-wrapper/errors-consts.d.ts +5 -0
- package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +15 -0
- package/lib/core/input-control/input-control.d.ts +11 -0
- package/lib/core/param/param-base.d.ts +68 -0
- package/lib/core/param/param-date-base.d.ts +18 -0
- package/lib/core/param/param-select-base.d.ts +42 -0
- package/lib/core/param/param-text-base.d.ts +15 -0
- package/{src/lib/core/param/param.tokens.ts → lib/core/param/param.tokens.d.ts} +1 -2
- package/lib/core/register-base/register-base.d.ts +168 -0
- package/lib/core/register-base/register-base.store.d.ts +35 -0
- package/lib/directives/date/date-time.types.d.ts +32 -0
- package/lib/directives/date/format-date.pipe.d.ts +10 -0
- package/lib/directives/number/number-only.directive.d.ts +10 -0
- package/lib/directives/sticky/sticky-relative.directive.d.ts +13 -0
- package/lib/directives/sticky/sticky-relative.service.d.ts +15 -0
- package/lib/directives/sticky/sticky.directive.d.ts +27 -0
- package/lib/services/date-time.service.d.ts +80 -0
- package/lib/services/dialog/dialog.service.d.ts +22 -0
- package/{src/lib/services/dialog/dialog.types.ts → lib/services/dialog/dialog.types.d.ts} +4 -8
- package/lib/services/dom-intersection.service.d.ts +8 -0
- package/lib/services/filter/filters-state.service.d.ts +21 -0
- package/lib/services/filter/filters-transmit.service.d.ts +28 -0
- package/lib/services/filter/filters.service.d.ts +12 -0
- package/lib/services/inputs-state.service.d.ts +57 -0
- package/lib/services/inputs.service.d.ts +28 -0
- package/lib/services/key-pressed.service.d.ts +15 -0
- package/lib/services/resize-window-observer.service.d.ts +11 -0
- package/lib/services/selected-objects-state.service.d.ts +47 -0
- package/lib/store/fast-query-store.service.d.ts +19 -0
- package/{src/lib/types/event.types.ts → lib/types/event.types.d.ts} +1 -1
- package/lib/types/hasura.types.d.ts +35 -0
- package/lib/types/inputs.types.d.ts +41 -0
- package/lib/types/params.types.d.ts +27 -0
- package/lib/types/register-base.types.d.ts +123 -0
- package/lib/types/sub-types.d.ts +8 -0
- package/lib/types/user-profile.types.d.ts +17 -0
- package/lib/utils/functions.d.ts +3 -0
- package/lib/utils/get-url-segment.d.ts +7 -0
- package/lib/utils/prizm.shared.module.d.ts +14 -0
- package/lib/utils/rxjs.d.ts +10 -0
- package/lib/utils/select-all-utils.d.ts +8 -0
- package/package.json +15 -12
- package/schematics/ng-update/replace-menu-state-token/index.d.ts +2 -0
- package/schematics/ng-update/replace-menu-state-token/index.js +29 -0
- package/schematics/ng-update/replace-menu-state-token/index.js.map +1 -0
- package/schematics/ng-update/update-prefix/index.d.ts +2 -0
- package/schematics/ng-update/update-prefix/index.js +33 -0
- package/schematics/ng-update/update-prefix/index.js.map +1 -0
- package/schematics/utils/{utils.ts → utils.d.ts} +2 -9
- package/schematics/utils/utils.js +25 -0
- package/schematics/utils/utils.js.map +1 -0
- package/ng-package.json +0 -15
- package/schematics/ng-update/replace-menu-state-token/index.ts +0 -33
- package/schematics/ng-update/update-prefix/index.ts +0 -38
- package/src/lib/components/checkbox-selector/checkbox-selector.component.html +0 -91
- package/src/lib/components/checkbox-selector/checkbox-selector.component.less +0 -67
- package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +0 -176
- package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +0 -8
- package/src/lib/components/column-settings/column-settings.component.html +0 -160
- package/src/lib/components/column-settings/column-settings.component.less +0 -131
- package/src/lib/components/column-settings/column-settings.component.ts +0 -352
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +0 -65
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +0 -79
- package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +0 -114
- package/src/lib/components/column-settings/consts/column-settings.consts.ts +0 -9
- package/src/lib/components/column-settings/types/column-settings.types.ts +0 -26
- package/src/lib/components/divider/divider.component.html +0 -4
- package/src/lib/components/divider/divider.component.less +0 -10
- package/src/lib/components/divider/divider.component.ts +0 -12
- package/src/lib/components/filter-button/filter-button.component.html +0 -20
- package/src/lib/components/filter-button/filter-button.component.less +0 -41
- package/src/lib/components/filter-button/filter-button.component.ts +0 -18
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +0 -22
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +0 -23
- package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +0 -31
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +0 -37
- package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +0 -66
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +0 -147
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +0 -45
- package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +0 -114
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +0 -44
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +0 -49
- package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +0 -167
- package/src/lib/components/filters/components/filter-list/filter-list.service.ts +0 -97
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +0 -18
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +0 -55
- package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +0 -69
- package/src/lib/components/filters/components/filter-list.module.ts +0 -29
- package/src/lib/components/filters/register-table-filter.component.html +0 -53
- package/src/lib/components/filters/register-table-filter.component.less +0 -17
- package/src/lib/components/filters/register-table-filter.component.ts +0 -167
- package/src/lib/components/filters/register-table-filter.module.ts +0 -22
- package/src/lib/components/inputs/inputs.module.ts +0 -104
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +0 -49
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +0 -70
- package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +0 -52
- package/src/lib/components/inputs/param-custom/param-custom.component.html +0 -1
- package/src/lib/components/inputs/param-custom/param-custom.component.ts +0 -9
- package/src/lib/components/inputs/param-date/param-date.component.html +0 -55
- package/src/lib/components/inputs/param-date/param-date.component.less +0 -67
- package/src/lib/components/inputs/param-date/param-date.component.ts +0 -77
- package/src/lib/components/inputs/param-date-range/param-date-range.component.html +0 -45
- package/src/lib/components/inputs/param-date-range/param-date-range.component.less +0 -75
- package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +0 -67
- package/src/lib/components/inputs/param-date-time/param-date-time.component.html +0 -70
- package/src/lib/components/inputs/param-date-time/param-date-time.component.less +0 -72
- package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +0 -101
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +0 -67
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +0 -103
- package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +0 -128
- package/src/lib/components/inputs/param-month/param-month.component.html +0 -46
- package/src/lib/components/inputs/param-month/param-month.component.less +0 -72
- package/src/lib/components/inputs/param-month/param-month.component.ts +0 -55
- package/src/lib/components/inputs/param-month-range/param-month-range.component.html +0 -39
- package/src/lib/components/inputs/param-month-range/param-month-range.component.less +0 -71
- package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +0 -76
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +0 -84
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +0 -108
- package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +0 -448
- package/src/lib/components/inputs/param-select/param-select.component.html +0 -106
- package/src/lib/components/inputs/param-select/param-select.component.less +0 -26
- package/src/lib/components/inputs/param-select/param-select.component.ts +0 -318
- package/src/lib/components/inputs/param-switcher/param-switcher.component.html +0 -8
- package/src/lib/components/inputs/param-switcher/param-switcher.component.less +0 -53
- package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +0 -13
- package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +0 -29
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +0 -19
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +0 -76
- package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +0 -134
- package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +0 -8
- package/src/lib/components/inputs/param-text/param-text.component.html +0 -59
- package/src/lib/components/inputs/param-text/param-text.component.less +0 -33
- package/src/lib/components/inputs/param-text/param-text.component.ts +0 -36
- package/src/lib/components/inputs/param-textarea/param-textarea.component.html +0 -61
- package/src/lib/components/inputs/param-textarea/param-textarea.component.less +0 -21
- package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +0 -33
- package/src/lib/components/inputs/param-toggle/param-toggle.component.html +0 -40
- package/src/lib/components/inputs/param-toggle/param-toggle.component.less +0 -69
- package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +0 -14
- package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +0 -59
- package/src/lib/components/inputs/param-tree/param-tree.component.html +0 -51
- package/src/lib/components/inputs/param-tree/param-tree.component.less +0 -3
- package/src/lib/components/inputs/param-tree/param-tree.component.ts +0 -282
- package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +0 -176
- package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +0 -18
- package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +0 -39
- package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +0 -18
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +0 -78
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +0 -109
- package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +0 -89
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +0 -54
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +0 -56
- package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +0 -91
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +0 -5
- package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +0 -13
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +0 -4
- package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +0 -11
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +0 -95
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +0 -183
- package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +0 -687
- package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +0 -32
- package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +0 -46
- package/src/lib/components/page-menu/README.md +0 -60
- package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +0 -8
- package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +0 -35
- package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +0 -5
- package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +0 -42
- package/src/lib/components/page-menu/sproc-page-menu.component.html +0 -166
- package/src/lib/components/page-menu/sproc-page-menu.component.less +0 -228
- package/src/lib/components/page-menu/sproc-page-menu.component.ts +0 -337
- package/src/lib/components/paginator/paginator.component.html +0 -97
- package/src/lib/components/paginator/paginator.component.less +0 -101
- package/src/lib/components/paginator/paginator.component.ts +0 -192
- package/src/lib/components/paginator/types/paginator.types.ts +0 -16
- package/src/lib/components/register-table/consts/register-table.consts.ts +0 -3
- package/src/lib/components/register-table/directives/cell-template.directive.ts +0 -11
- package/src/lib/components/register-table/directives/header-template.directive.ts +0 -11
- package/src/lib/components/register-table/model/schema.ts +0 -62
- package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +0 -28
- package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +0 -11
- package/src/lib/components/register-table/register-table.component.html +0 -257
- package/src/lib/components/register-table/register-table.component.less +0 -151
- package/src/lib/components/register-table/register-table.component.ts +0 -743
- package/src/lib/components/reset-settings-form/reset-settings-form.component.html +0 -14
- package/src/lib/components/reset-settings-form/reset-settings-form.component.less +0 -26
- package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +0 -15
- package/src/lib/components/search-input/search-input.component.html +0 -6
- package/src/lib/components/search-input/search-input.component.less +0 -17
- package/src/lib/components/search-input/search-input.component.ts +0 -31
- package/src/lib/components/sliding-panel/sliding-panel.component.html +0 -13
- package/src/lib/components/sliding-panel/sliding-panel.component.less +0 -112
- package/src/lib/components/sliding-panel/sliding-panel.component.ts +0 -36
- package/src/lib/components/sliding-panel/sliding-panel.module.ts +0 -11
- package/src/lib/consts/date-time.consts.ts +0 -1
- package/src/lib/consts/index.ts +0 -8
- package/src/lib/consts/inputs.consts.ts +0 -9
- package/src/lib/consts/month.consts.ts +0 -82
- package/src/lib/consts/params.consts.ts +0 -1
- package/src/lib/consts/register-base.consts.ts +0 -40
- package/src/lib/core/form-group-wrapper/errors-consts.ts +0 -6
- package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +0 -109
- package/src/lib/core/input-control/input-control.ts +0 -30
- package/src/lib/core/param/param-base.ts +0 -262
- package/src/lib/core/param/param-date-base.ts +0 -30
- package/src/lib/core/param/param-select-base.ts +0 -118
- package/src/lib/core/param/param-text-base.ts +0 -23
- package/src/lib/core/register-base/register-base.store.ts +0 -84
- package/src/lib/core/register-base/register-base.ts +0 -854
- package/src/lib/directives/date/date-time.types.ts +0 -36
- package/src/lib/directives/date/format-date.pipe.ts +0 -28
- package/src/lib/directives/number/number-only.directive.ts +0 -36
- package/src/lib/directives/sticky/sticky-relative.directive.ts +0 -30
- package/src/lib/directives/sticky/sticky-relative.service.ts +0 -34
- package/src/lib/directives/sticky/sticky.directive.ts +0 -189
- package/src/lib/services/date-time.service.ts +0 -399
- package/src/lib/services/dialog/dialog.service.ts +0 -62
- package/src/lib/services/dom-intersection.service.ts +0 -23
- package/src/lib/services/filter/filters-state.service.ts +0 -83
- package/src/lib/services/filter/filters-transmit.service.ts +0 -105
- package/src/lib/services/filter/filters.service.ts +0 -21
- package/src/lib/services/inputs-state.service.ts +0 -157
- package/src/lib/services/inputs.service.ts +0 -114
- package/src/lib/services/key-pressed.service.ts +0 -40
- package/src/lib/services/resize-window-observer.service.ts +0 -37
- package/src/lib/services/selected-objects-state.service.ts +0 -159
- package/src/lib/store/fast-query-store.service.ts +0 -132
- package/src/lib/types/hasura.types.ts +0 -41
- package/src/lib/types/inputs.types.ts +0 -63
- package/src/lib/types/params.types.ts +0 -42
- package/src/lib/types/register-base.types.ts +0 -161
- package/src/lib/types/sub-types.ts +0 -15
- package/src/lib/types/user-profile.types.ts +0 -18
- package/src/lib/utils/functions.ts +0 -11
- package/src/lib/utils/get-url-segment.ts +0 -46
- package/src/lib/utils/prizm.shared.module.ts +0 -176
- package/src/lib/utils/rxjs.ts +0 -33
- package/src/lib/utils/select-all-utils.ts +0 -16
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.schematics.json +0 -26
- package/tsconfig.spec.json +0 -15
- /package/{src/lib/components/column-settings/index.ts → lib/components/column-settings/index.d.ts} +0 -0
- /package/{src/lib/components/filters/index.ts → lib/components/filters/index.d.ts} +0 -0
- /package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/index.ts → lib/components/inputs/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-switcher-date-time-range/index.ts → lib/components/inputs/param-switcher-date-time-range/index.d.ts} +0 -0
- /package/{src/lib/components/inputs/param-tree/index.ts → lib/components/inputs/param-tree/index.d.ts} +0 -0
- /package/{src/lib/components/menu-constructor/index.ts → lib/components/menu-constructor/index.d.ts} +0 -0
- /package/{src/lib/components/page-menu/index.ts → lib/components/page-menu/index.d.ts} +0 -0
- /package/{src/lib/components/register-table/index.ts → lib/components/register-table/index.d.ts} +0 -0
- /package/{src/lib/core/form-group-wrapper/index.ts → lib/core/form-group-wrapper/index.d.ts} +0 -0
- /package/{src/lib/core/index.ts → lib/core/index.d.ts} +0 -0
- /package/{src/lib/core/input-control/index.ts → lib/core/input-control/index.d.ts} +0 -0
- /package/{src/lib/core/param/index.ts → lib/core/param/index.d.ts} +0 -0
- /package/{src/lib/core/register-base/index.ts → lib/core/register-base/index.d.ts} +0 -0
- /package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +0 -0
- /package/{src/lib/directives/sticky/index.ts → lib/directives/sticky/index.d.ts} +0 -0
- /package/{src/lib/services/dialog/index.ts → lib/services/dialog/index.d.ts} +0 -0
- /package/{src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
- /package/{src/lib/store/index.ts → lib/store/index.d.ts} +0 -0
- /package/{src/lib/types/index.ts → lib/types/index.d.ts} +0 -0
- /package/{src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<ng-content></ng-content>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ParamBase } from '../../../core/param/param-base';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'sproc-param-custom',
|
|
6
|
-
templateUrl: './param-custom.component.html',
|
|
7
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
-
})
|
|
9
|
-
export class ParamCustomComponent extends ParamBase<any, any> {}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="readmode ? readTemplate : editTemplate">
|
|
2
|
-
<ng-template #readTemplate>
|
|
3
|
-
<div class="container container--read" [attr.sproc-param-style]="paramStyle">
|
|
4
|
-
<ng-container *ngIf="label">
|
|
5
|
-
<ng-container [ngSwitch]="paramStyle">
|
|
6
|
-
<ng-template ngSwitchCase="filter">
|
|
7
|
-
<div class="label-wrapper">
|
|
8
|
-
<span class="label">{{ label }}</span>
|
|
9
|
-
<div class="dashed-row"></div>
|
|
10
|
-
</div>
|
|
11
|
-
</ng-template>
|
|
12
|
-
<ng-template ngSwitchDefault>
|
|
13
|
-
<span class="label">{{ label }}</span>
|
|
14
|
-
<div class="dashed-row"></div>
|
|
15
|
-
</ng-template>
|
|
16
|
-
</ng-container>
|
|
17
|
-
</ng-container>
|
|
18
|
-
<div class="value">
|
|
19
|
-
<span>{{ showedValue }}</span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</ng-template>
|
|
23
|
-
<ng-template #editTemplate>
|
|
24
|
-
<div class="container container--edit" [attr.sproc-param-style]="paramStyle">
|
|
25
|
-
<div *ngIf="label" class="label-wrapper" [class.applied]="applied()">
|
|
26
|
-
<span class="label" [class.required]="required">
|
|
27
|
-
{{ label }}
|
|
28
|
-
</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<tui-textfield
|
|
32
|
-
tuiAppearance="sproc-input-appearance"
|
|
33
|
-
tuiTextfieldSize="m"
|
|
34
|
-
[tuiTextfieldLabelOutside]="true"
|
|
35
|
-
[style.--t-icon-end]="'url(/assets/ngx-register-base/icons/calendar-blank.svg)'"
|
|
36
|
-
[style.--t-icon-size]="'16px'"
|
|
37
|
-
>
|
|
38
|
-
<input
|
|
39
|
-
tuiInputDate
|
|
40
|
-
[min]="min"
|
|
41
|
-
[max]="max"
|
|
42
|
-
[placeholder]="placeholder()"
|
|
43
|
-
[formControl]="control"
|
|
44
|
-
/>
|
|
45
|
-
<tui-calendar *tuiTextfieldDropdown />
|
|
46
|
-
|
|
47
|
-
<div class="textfield-icons-container">
|
|
48
|
-
@if (isInvalidAndNotPristine) {
|
|
49
|
-
<sproc-param-invalid-icon></sproc-param-invalid-icon>
|
|
50
|
-
}
|
|
51
|
-
</div>
|
|
52
|
-
</tui-textfield>
|
|
53
|
-
</div>
|
|
54
|
-
</ng-template>
|
|
55
|
-
</ng-container>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'common-param';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
.container {
|
|
6
|
-
&--read {
|
|
7
|
-
.read-style-card;
|
|
8
|
-
.read-style-filter;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&--edit {
|
|
12
|
-
.edit-style-card;
|
|
13
|
-
.edit-style-filter;
|
|
14
|
-
|
|
15
|
-
&[sproc-param-style='card'] {
|
|
16
|
-
::ng-deep {
|
|
17
|
-
input {
|
|
18
|
-
.input-text-14px;
|
|
19
|
-
|
|
20
|
-
color: var(--text-contrast);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&[sproc-param-style='filter'] {
|
|
26
|
-
::ng-deep {
|
|
27
|
-
input {
|
|
28
|
-
.input-text-12px;
|
|
29
|
-
|
|
30
|
-
color: var(--text-contrast);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
::ng-deep {
|
|
36
|
-
tui-textfield {
|
|
37
|
-
--t-icon-end: url('/assets/ngx-register-base/icons/calendar-custom.svg') !important;
|
|
38
|
-
|
|
39
|
-
&::after {
|
|
40
|
-
padding-top: 14px;
|
|
41
|
-
width: 16px !important;
|
|
42
|
-
height: 16px !important;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::ng-deep {
|
|
50
|
-
tui-textfield[tuiIcons] .t-content {
|
|
51
|
-
display: flex !important;
|
|
52
|
-
align-items: center !important;
|
|
53
|
-
justify-content: flex-end !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
tui-textfield[tuiIcons]::after {
|
|
57
|
-
content: '';
|
|
58
|
-
width: 16px !important;
|
|
59
|
-
height: 16px !important;
|
|
60
|
-
background-size: 16px 16px !important;
|
|
61
|
-
background-repeat: no-repeat !important;
|
|
62
|
-
background-position: center !important;
|
|
63
|
-
order: 2;
|
|
64
|
-
align-self: center;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, input } from '@angular/core';
|
|
2
|
-
import { TuiAppearance, TuiTextfield } from '@taiga-ui/core';
|
|
3
|
-
import { TuiInputDate } from '@taiga-ui/kit';
|
|
4
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet } from '@angular/common';
|
|
6
|
-
import { TuiTextfieldControllerModule } from '@taiga-ui/legacy';
|
|
7
|
-
import { TuiDay } from '@taiga-ui/cdk';
|
|
8
|
-
import { ParamInvalidIconComponent } from '../sub-components/param-invalid-icon/param-invalid-icon.component';
|
|
9
|
-
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
10
|
-
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
11
|
-
import { EDatePattern } from '../../../directives/date/date-time.types';
|
|
12
|
-
|
|
13
|
-
export type InputDateSaveValue = string | null;
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'sproc-param-date',
|
|
17
|
-
templateUrl: './param-date.component.html',
|
|
18
|
-
styleUrls: ['./param-date.component.less'],
|
|
19
|
-
standalone: true,
|
|
20
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
|
-
imports: [
|
|
22
|
-
TuiTextfield,
|
|
23
|
-
TuiInputDate,
|
|
24
|
-
ReactiveFormsModule,
|
|
25
|
-
NgIf,
|
|
26
|
-
NgTemplateOutlet,
|
|
27
|
-
NgSwitch,
|
|
28
|
-
NgSwitchCase,
|
|
29
|
-
NgSwitchDefault,
|
|
30
|
-
TuiAppearance,
|
|
31
|
-
TuiTextfieldControllerModule,
|
|
32
|
-
ParamInvalidIconComponent,
|
|
33
|
-
],
|
|
34
|
-
})
|
|
35
|
-
export class ParamDateComponent extends ParamDateBase<TuiDay | null, InputDateSaveValue> {
|
|
36
|
-
override placeholder = input('Выберите дату');
|
|
37
|
-
@Input() min: TuiDay | null = null;
|
|
38
|
-
@Input() max: TuiDay | null = null;
|
|
39
|
-
@Input() override set formatSavedValue(
|
|
40
|
-
formatter: FormatterSavedValueType<TuiDay | null, InputDateSaveValue> | undefined
|
|
41
|
-
) {
|
|
42
|
-
this.formatterSavedValue = formatter ?? this._defaultFormatterSaveValue;
|
|
43
|
-
}
|
|
44
|
-
@Input() override set parseSavedValue(
|
|
45
|
-
parser: ParserSavedValueType<InputDateSaveValue, TuiDay | null> | undefined
|
|
46
|
-
) {
|
|
47
|
-
this.parserSavedValue = parser ?? this._defaultParserSaveValue;
|
|
48
|
-
}
|
|
49
|
-
override buildShowedValue = input((value: TuiDay | null): string =>
|
|
50
|
-
value ? this._defaultDateConvert(value) : '-'
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
protected override formatterSavedValue = this._defaultFormatterSaveValue;
|
|
54
|
-
protected override parserSavedValue = this._defaultParserSaveValue;
|
|
55
|
-
|
|
56
|
-
private _defaultDateConvert(value: TuiDay): string {
|
|
57
|
-
return this._dts.parseDate(value.toString(EDatePattern.TUI_YMD, '-'), EDatePattern.DATE);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
private _defaultFormatterSaveValue(value: TuiDay | null): InputDateSaveValue {
|
|
61
|
-
if (!value) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const iso = this._dts.toISOString(value.toLocalNativeDate());
|
|
66
|
-
|
|
67
|
-
return this._dts.parseDate(iso, EDatePattern.YEAR_MONTH_DAY);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
private _defaultParserSaveValue(value: InputDateSaveValue): TuiDay | null {
|
|
71
|
-
if (!value) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return TuiDay.fromLocalNativeDate(this._dts.isoToLocalDate(value));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="readmode ? readTemplate : editTemplate">
|
|
2
|
-
<ng-template #readTemplate>
|
|
3
|
-
<div class="container container--read" [attr.sproc-param-style]="paramStyle">
|
|
4
|
-
<ng-container *ngIf="label">
|
|
5
|
-
<ng-container [ngSwitch]="paramStyle">
|
|
6
|
-
<ng-template ngSwitchCase="filter">
|
|
7
|
-
<div class="label-wrapper">
|
|
8
|
-
<span class="label">{{ label }}</span>
|
|
9
|
-
<div class="dashed-row"></div>
|
|
10
|
-
</div>
|
|
11
|
-
</ng-template>
|
|
12
|
-
<ng-template ngSwitchDefault>
|
|
13
|
-
<span class="label">{{ label }}</span>
|
|
14
|
-
<div class="dashed-row"></div>
|
|
15
|
-
</ng-template>
|
|
16
|
-
</ng-container>
|
|
17
|
-
</ng-container>
|
|
18
|
-
<div class="value">
|
|
19
|
-
<span>{{ showedValue }}</span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</ng-template>
|
|
23
|
-
<ng-template #editTemplate>
|
|
24
|
-
<div class="container container--edit" [attr.sproc-param-style]="paramStyle">
|
|
25
|
-
<div *ngIf="label" class="label-wrapper" [class.applied]="applied()">
|
|
26
|
-
<span class="label" [class.required]="required">
|
|
27
|
-
{{ label }}
|
|
28
|
-
</span>
|
|
29
|
-
@if (errorMessage() && control.invalid) {
|
|
30
|
-
<div class="errorMessage">{{ errorMessage() }}</div>
|
|
31
|
-
}
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<prizm-input-layout class="flex-shrink--zero" size="s" [forceClear]="forceClear">
|
|
35
|
-
<prizm-input-layout-date-range
|
|
36
|
-
[placeholder]="placeholder()"
|
|
37
|
-
[maxLength]="maxLength()"
|
|
38
|
-
[min]="$any(min)"
|
|
39
|
-
[max]="$any(max)"
|
|
40
|
-
[formControl]="control"
|
|
41
|
-
></prizm-input-layout-date-range>
|
|
42
|
-
</prizm-input-layout>
|
|
43
|
-
</div>
|
|
44
|
-
</ng-template>
|
|
45
|
-
</ng-container>
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'common-param';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
.container {
|
|
6
|
-
&--read {
|
|
7
|
-
.read-style-card;
|
|
8
|
-
.read-style-filter;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&--edit {
|
|
12
|
-
.edit-style-card;
|
|
13
|
-
.edit-style-filter;
|
|
14
|
-
|
|
15
|
-
&[sproc-param-style='card'] {
|
|
16
|
-
::ng-deep {
|
|
17
|
-
.prizm-input-form:not(.prizm-input-form-focused) {
|
|
18
|
-
background: inherit;
|
|
19
|
-
border: 1px solid var(--input-stroke);
|
|
20
|
-
padding: 0 3.5px 0 8px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.prizm-input-form .prizm-input-form-focused {
|
|
24
|
-
background: inherit;
|
|
25
|
-
border: 1px solid var(--input-stroke);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.prizm-input-form-inner {
|
|
29
|
-
min-height: 32px;
|
|
30
|
-
height: 32px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
input {
|
|
34
|
-
.input-text-14px;
|
|
35
|
-
|
|
36
|
-
color: var(--text-contrast);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&[sproc-param-style='filter'] {
|
|
42
|
-
::ng-deep {
|
|
43
|
-
.prizm-input-form:not(.prizm-input-form-focused) {
|
|
44
|
-
background: inherit;
|
|
45
|
-
border: none;
|
|
46
|
-
border-bottom: 1px solid var(--input-stroke);
|
|
47
|
-
padding: 0 3.5px 0 8px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.prizm-input-form .prizm-input-form-focused {
|
|
51
|
-
background: inherit;
|
|
52
|
-
border: 1px !important;
|
|
53
|
-
border-bottom: 1px solid var(--input-stroke);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.prizm-input-form-inner {
|
|
57
|
-
min-height: 32px;
|
|
58
|
-
height: 32px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
input {
|
|
62
|
-
.input-text-12px;
|
|
63
|
-
|
|
64
|
-
color: var(--text-contrast);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.errorMessage {
|
|
71
|
-
margin-left: auto;
|
|
72
|
-
color: var(--brand-danger);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, input, Input } from '@angular/core';
|
|
2
|
-
import { PrizmDay, PrizmDayLike, PrizmDayRange } from '@prizm-ui/components';
|
|
3
|
-
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
4
|
-
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
5
|
-
import { EDatePattern } from '../../../directives/date/date-time.types';
|
|
6
|
-
import { TuiDay } from '@taiga-ui/cdk';
|
|
7
|
-
|
|
8
|
-
export type InputDateRangeSavedValue = { from: string; to: string } | null;
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'sproc-param-date-range',
|
|
12
|
-
templateUrl: './param-date-range.component.html',
|
|
13
|
-
styleUrls: ['./param-date-range.component.less'],
|
|
14
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
-
})
|
|
16
|
-
export class ParamDateRangeComponent extends ParamDateBase<
|
|
17
|
-
PrizmDayRange | null,
|
|
18
|
-
InputDateRangeSavedValue
|
|
19
|
-
> {
|
|
20
|
-
public maxLength = input<PrizmDayLike | null>(null);
|
|
21
|
-
/** текст сообщения об ошибке */
|
|
22
|
-
public errorMessage = input<string>('');
|
|
23
|
-
override placeholder = input('Выберите период');
|
|
24
|
-
@Input() min: TuiDay | PrizmDay | undefined;
|
|
25
|
-
@Input() max: TuiDay | PrizmDay | undefined;
|
|
26
|
-
@Input() override set formatSavedValue(
|
|
27
|
-
formatter: FormatterSavedValueType<PrizmDayRange | null, InputDateRangeSavedValue> | undefined
|
|
28
|
-
) {
|
|
29
|
-
this.formatterSavedValue = formatter ?? this._defaultFormatterSaveValue;
|
|
30
|
-
}
|
|
31
|
-
@Input() override set parseSavedValue(
|
|
32
|
-
parser: ParserSavedValueType<InputDateRangeSavedValue, PrizmDayRange | null> | undefined
|
|
33
|
-
) {
|
|
34
|
-
this.parserSavedValue = parser ?? this._defaultParserSaveValue;
|
|
35
|
-
}
|
|
36
|
-
override buildShowedValue = input(
|
|
37
|
-
(value: PrizmDayRange | null): string => value?.toString() ?? '-'
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
protected override formatterSavedValue = this._defaultFormatterSaveValue;
|
|
41
|
-
protected override parserSavedValue = this._defaultParserSaveValue;
|
|
42
|
-
|
|
43
|
-
private _defaultFormatterSaveValue(range: PrizmDayRange | null): InputDateRangeSavedValue {
|
|
44
|
-
if (!range) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const isoFrom = this._dts.toISOString(range.from.toLocalNativeDate());
|
|
49
|
-
const isoTo = this._dts.toISOString(range.to.toLocalNativeDate());
|
|
50
|
-
|
|
51
|
-
return {
|
|
52
|
-
from: this._dts.parseDate(isoFrom, EDatePattern.YEAR_MONTH_DAY),
|
|
53
|
-
to: this._dts.parseDate(isoTo, EDatePattern.YEAR_MONTH_DAY),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
private _defaultParserSaveValue(value: InputDateRangeSavedValue): PrizmDayRange | null {
|
|
58
|
-
if (!value) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const from = this._dts.isoToLocalDate(value.from);
|
|
63
|
-
const to = this._dts.isoToLocalDate(value.to);
|
|
64
|
-
|
|
65
|
-
return PrizmDayRange.fromLocalNativeDate(from, to);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="readmode ? readTemplate : editTemplate">
|
|
2
|
-
<ng-template #readTemplate>
|
|
3
|
-
<div class="container container--read" [attr.sproc-param-style]="paramStyle">
|
|
4
|
-
<ng-container *ngIf="label">
|
|
5
|
-
<ng-container [ngSwitch]="paramStyle">
|
|
6
|
-
<ng-template ngSwitchCase="filter">
|
|
7
|
-
<div class="label-wrapper">
|
|
8
|
-
<span class="label">{{ label }}</span>
|
|
9
|
-
<div class="dashed-row"></div>
|
|
10
|
-
</div>
|
|
11
|
-
</ng-template>
|
|
12
|
-
<ng-template ngSwitchDefault>
|
|
13
|
-
<span class="label">{{ label }}</span>
|
|
14
|
-
<div class="dashed-row"></div>
|
|
15
|
-
</ng-template>
|
|
16
|
-
</ng-container>
|
|
17
|
-
</ng-container>
|
|
18
|
-
<div class="value">
|
|
19
|
-
<span *ngIf="nativeDate; else emptyTemplate">
|
|
20
|
-
{{
|
|
21
|
-
nativeDate
|
|
22
|
-
| formatDate
|
|
23
|
-
: (timezoneChange | async)!.time_diff!
|
|
24
|
-
: EDatePattern.DATE_TIME_WITHOUT_SECONDS
|
|
25
|
-
: (timezoneChange | async)
|
|
26
|
-
}}
|
|
27
|
-
</span>
|
|
28
|
-
<ng-template #emptyTemplate>-</ng-template>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</ng-template>
|
|
32
|
-
<ng-template #editTemplate>
|
|
33
|
-
<div class="container container--edit" [attr.sproc-param-style]="paramStyle">
|
|
34
|
-
<div *ngIf="label" class="label-wrapper" [class.applied]="applied()">
|
|
35
|
-
<span class="label" [class.required]="required">
|
|
36
|
-
{{ label }}
|
|
37
|
-
</span>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<prizm-input-layout
|
|
41
|
-
class="flex-shrink--zero"
|
|
42
|
-
size="s"
|
|
43
|
-
[forceClear]="forceClear"
|
|
44
|
-
[clearButton]="clearButtonTemplate"
|
|
45
|
-
>
|
|
46
|
-
<prizm-input-layout-date-time
|
|
47
|
-
[placeholder]="placeholder()"
|
|
48
|
-
[max]="$any(max)"
|
|
49
|
-
[min]="$any(min)"
|
|
50
|
-
[formControl]="control"
|
|
51
|
-
></prizm-input-layout-date-time>
|
|
52
|
-
<ng-template
|
|
53
|
-
#clearButtonTemplate
|
|
54
|
-
let-showStatusButton="showStatusButton"
|
|
55
|
-
let-disabled="disabled"
|
|
56
|
-
>
|
|
57
|
-
<button
|
|
58
|
-
[interactive]="true"
|
|
59
|
-
[disabled]="disabled"
|
|
60
|
-
prizmHint="Нажмите для очистки"
|
|
61
|
-
prizmHintTheme="light"
|
|
62
|
-
prizmInputIconButton="cancel-delete-content"
|
|
63
|
-
class="{{ showStatusButton ? '' : 'alone' }}"
|
|
64
|
-
(click)="clearValue()"
|
|
65
|
-
></button>
|
|
66
|
-
</ng-template>
|
|
67
|
-
</prizm-input-layout>
|
|
68
|
-
</div>
|
|
69
|
-
</ng-template>
|
|
70
|
-
</ng-container>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
|
-
@import 'common-param';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
.container {
|
|
6
|
-
&--read {
|
|
7
|
-
.read-style-card;
|
|
8
|
-
.read-style-filter;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&--edit {
|
|
12
|
-
.edit-style-card;
|
|
13
|
-
.edit-style-filter;
|
|
14
|
-
|
|
15
|
-
&[sproc-param-style='card'] {
|
|
16
|
-
padding: 0 2px;
|
|
17
|
-
|
|
18
|
-
::ng-deep {
|
|
19
|
-
.prizm-input-form:not(.prizm-input-form-focused) {
|
|
20
|
-
background: inherit;
|
|
21
|
-
border: 1px solid var(--input-stroke);
|
|
22
|
-
padding: 0 3.5px 0 8px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.prizm-input-form .prizm-input-form-focused {
|
|
26
|
-
background: inherit;
|
|
27
|
-
border: 1px solid var(--input-stroke);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.prizm-input-form-inner {
|
|
31
|
-
min-height: 32px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
input {
|
|
36
|
-
.input-text-14px;
|
|
37
|
-
|
|
38
|
-
color: var(--text-contrast);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&[sproc-param-style='filter'] {
|
|
44
|
-
::ng-deep {
|
|
45
|
-
.prizm-input-form:not(.prizm-input-form-focused) {
|
|
46
|
-
background: inherit;
|
|
47
|
-
border: none;
|
|
48
|
-
border-bottom: 1px solid var(--input-stroke);
|
|
49
|
-
padding: 0 3.5px 0 8px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.prizm-input-form .prizm-input-form-focused {
|
|
53
|
-
background: inherit;
|
|
54
|
-
border: 1px !important;
|
|
55
|
-
border-bottom: 1px solid var(--input-stroke);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.prizm-input-form-inner {
|
|
59
|
-
min-height: 32px;
|
|
60
|
-
height: 32px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
input {
|
|
64
|
-
.input-text-12px;
|
|
65
|
-
|
|
66
|
-
color: var(--text-contrast);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, input, Input } from '@angular/core';
|
|
2
|
-
import { PrizmDay, PrizmTime, PrizmTimeMode } from '@prizm-ui/components';
|
|
3
|
-
import { distinctUntilChanged, filter, map, pairwise } from 'rxjs';
|
|
4
|
-
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
5
|
-
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
6
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
-
|
|
8
|
-
export type SmaPrizmDateTime = [PrizmDay, PrizmTime | undefined];
|
|
9
|
-
|
|
10
|
-
export type InputDateTimeSaveValue = string | null;
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: 'sproc-param-date-time',
|
|
14
|
-
templateUrl: './param-date-time.component.html',
|
|
15
|
-
styleUrls: ['./param-date-time.component.less'],
|
|
16
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
-
})
|
|
18
|
-
export class ParamDateTimeComponent extends ParamDateBase<
|
|
19
|
-
SmaPrizmDateTime | null,
|
|
20
|
-
InputDateTimeSaveValue
|
|
21
|
-
> {
|
|
22
|
-
override placeholder = input('Выберите дату и время');
|
|
23
|
-
@Input() min: PrizmDay | [PrizmDay, PrizmTime] | undefined;
|
|
24
|
-
@Input() max: PrizmDay | [PrizmDay, PrizmTime] | undefined;
|
|
25
|
-
@Input() timeMode: PrizmTimeMode = 'HH:MM';
|
|
26
|
-
@Input() override set formatSavedValue(
|
|
27
|
-
formatter: FormatterSavedValueType<SmaPrizmDateTime | null, InputDateTimeSaveValue> | undefined
|
|
28
|
-
) {
|
|
29
|
-
this.formatterSavedValue = formatter ?? this._defaultFormatterSaveValue;
|
|
30
|
-
}
|
|
31
|
-
@Input() override set parseSavedValue(
|
|
32
|
-
parser: ParserSavedValueType<InputDateTimeSaveValue, SmaPrizmDateTime | null> | undefined
|
|
33
|
-
) {
|
|
34
|
-
this.parserSavedValue = parser ?? this._defaultParserSaveValue;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
protected override formatterSavedValue = this._defaultFormatterSaveValue;
|
|
38
|
-
protected override parserSavedValue = this._defaultParserSaveValue;
|
|
39
|
-
|
|
40
|
-
private _defaultFormatterSaveValue(value: SmaPrizmDateTime | null): InputDateTimeSaveValue {
|
|
41
|
-
if (!value) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const date = this._dts.prizmDateTimeToNativeDate(value);
|
|
46
|
-
|
|
47
|
-
return this._dts.toISOString(date);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
private _defaultParserSaveValue(value: InputDateTimeSaveValue): SmaPrizmDateTime | null {
|
|
51
|
-
if (!value) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const date = this._dts.isoToLocalDate(value);
|
|
56
|
-
|
|
57
|
-
return this._valueFromLocalNativeDate(date);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
protected override onInit(): void {
|
|
61
|
-
this._subscribeOnTimeZoneChanges();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
protected clearValue(): void {
|
|
65
|
-
this.control.setValue(null);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
protected get nativeDate(): Date | null {
|
|
69
|
-
if (!this.value) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
return typeof this.value === 'string'
|
|
73
|
-
? this._dts.isoToLocalDate(this.value)
|
|
74
|
-
: this._dts.prizmDateTimeToNativeDate(this.value);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
private _subscribeOnTimeZoneChanges(): void {
|
|
78
|
-
this.timezoneChange
|
|
79
|
-
.pipe(
|
|
80
|
-
distinctUntilChanged((prev, curr) => prev.time_diff === curr.time_diff),
|
|
81
|
-
pairwise(),
|
|
82
|
-
map(([prev, curr]) => ({
|
|
83
|
-
prevDiff: prev.time_diff,
|
|
84
|
-
currDiff: curr.time_diff,
|
|
85
|
-
value: this.value,
|
|
86
|
-
})),
|
|
87
|
-
filter(({ value }) => !!value),
|
|
88
|
-
takeUntilDestroyed(this.dr)
|
|
89
|
-
)
|
|
90
|
-
.subscribe(({ prevDiff, currDiff, value }) => {
|
|
91
|
-
const date = this._dts.prizmDateTimeToNativeDate(value!);
|
|
92
|
-
const newDate = this.rebuildDateInNewTimezone(date, prevDiff, currDiff);
|
|
93
|
-
|
|
94
|
-
this.control.setValue(this._valueFromLocalNativeDate(newDate), { emitEvent: false });
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private _valueFromLocalNativeDate(date: Date): SmaPrizmDateTime {
|
|
99
|
-
return [PrizmDay.fromLocalNativeDate(date), PrizmTime.fromLocalNativeDate(date)];
|
|
100
|
-
}
|
|
101
|
-
}
|