ontimize-web-ngx 15.5.0 → 15.6.0-next.0
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/esm2020/lib/components/app-header/o-app-header.component.mjs +4 -4
- package/esm2020/lib/components/app-header/o-app-header.module.mjs +5 -5
- package/esm2020/lib/components/app-sidenav/image/o-app-sidenav-image.component.mjs +4 -4
- package/esm2020/lib/components/app-sidenav/menu-group/o-app-sidenav-menu-group.component.mjs +4 -4
- package/esm2020/lib/components/app-sidenav/menu-item/o-app-sidenav-menu-item.component.mjs +4 -4
- package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +4 -4
- package/esm2020/lib/components/app-sidenav/o-app-sidenav.module.mjs +5 -5
- package/esm2020/lib/components/bar-menu/locale-menu-item/o-locale-bar-menu-item.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/menu-group/o-bar-menu-group.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/menu-item/o-bar-menu-item.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/menu-nested/o-bar-menu-nested.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/menu-separator/o-bar-menu-separator.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/o-bar-menu-base.class.mjs +4 -4
- package/esm2020/lib/components/bar-menu/o-bar-menu.component.mjs +4 -4
- package/esm2020/lib/components/bar-menu/o-bar-menu.module.mjs +5 -5
- package/esm2020/lib/components/bar-menu/o-base-menu-item.class.mjs +4 -4
- package/esm2020/lib/components/breadcrumb/o-breadcrumb.component.mjs +4 -4
- package/esm2020/lib/components/breadcrumb/o-breadcrumb.module.mjs +5 -5
- package/esm2020/lib/components/button/o-button.component.mjs +4 -4
- package/esm2020/lib/components/button/o-button.module.mjs +5 -5
- package/esm2020/lib/components/button-toggle/o-button-toggle-group/o-button-toggle-group.component.mjs +4 -4
- package/esm2020/lib/components/button-toggle/o-button-toggle.component.mjs +4 -4
- package/esm2020/lib/components/button-toggle/o-button-toggle.module.mjs +5 -5
- package/esm2020/lib/components/card-menu-item/o-card-menu-item.component.mjs +4 -4
- package/esm2020/lib/components/card-menu-item/o-card-menu-item.module.mjs +5 -5
- package/esm2020/lib/components/container/column/o-column.component.mjs +4 -4
- package/esm2020/lib/components/container/column/o-column.module.mjs +5 -5
- package/esm2020/lib/components/container/column-collapsible/o-column-collapsible.component.mjs +4 -4
- package/esm2020/lib/components/container/column-collapsible/o-column-collapsible.module.mjs +5 -5
- package/esm2020/lib/components/container/o-container-collapsible-component.class.mjs +4 -4
- package/esm2020/lib/components/container/o-container-component.class.mjs +4 -4
- package/esm2020/lib/components/container/row/o-row.component.mjs +4 -4
- package/esm2020/lib/components/container/row/o-row.module.mjs +5 -5
- package/esm2020/lib/components/container/row-collapsible/o-row-collapsible.component.mjs +4 -4
- package/esm2020/lib/components/container/row-collapsible/o-row-collapsible.module.mjs +5 -5
- package/esm2020/lib/components/contextmenu/context-menu/o-context-menu-content.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/context-menu/o-wrapper-content-menu/o-wrapper-content-menu.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/context-menu-group/o-context-menu-group.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/context-menu-item/o-context-menu-item.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/context-menu-separator/o-context-menu-separator.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/o-content-menu-base-item.class.mjs +4 -4
- package/esm2020/lib/components/contextmenu/o-context-menu-overlay.service.mjs +4 -4
- package/esm2020/lib/components/contextmenu/o-context-menu.component.mjs +4 -4
- package/esm2020/lib/components/contextmenu/o-context-menu.directive.mjs +4 -4
- package/esm2020/lib/components/contextmenu/o-context-menu.module.mjs +5 -5
- package/esm2020/lib/components/contextmenu/o-context-menu.service.mjs +4 -4
- package/esm2020/lib/components/dual-list-selector/dual-list-selector-item/date/o-dual-list-selector-date-item.component.mjs +4 -4
- package/esm2020/lib/components/dual-list-selector/o-dual-list-selector.component.mjs +4 -4
- package/esm2020/lib/components/dual-list-selector/o-dual-list-selector.module.mjs +5 -5
- package/esm2020/lib/components/expandable-container/o-expandable-container.component.mjs +4 -4
- package/esm2020/lib/components/expandable-container/o-expandable-container.module.mjs +5 -5
- package/esm2020/lib/components/filter-builder/filter-builder-menu/filter-builder-menu.component.mjs +4 -4
- package/esm2020/lib/components/filter-builder/o-filter-builder-clear.directive.mjs +4 -4
- package/esm2020/lib/components/filter-builder/o-filter-builder-query.directive.mjs +4 -4
- package/esm2020/lib/components/filter-builder/o-filter-builder.component.mjs +4 -4
- package/esm2020/lib/components/filter-builder/o-filter-builder.module.mjs +5 -5
- package/esm2020/lib/components/form/guards/o-form-can-deactivate.guard.mjs +4 -4
- package/esm2020/lib/components/form/navigation/o-form-confirm-exit.service.mjs +4 -4
- package/esm2020/lib/components/form/navigation/o-form-navigation.component.mjs +6 -5
- package/esm2020/lib/components/form/o-form.component.mjs +27 -13
- package/esm2020/lib/components/form/o-form.module.mjs +5 -5
- package/esm2020/lib/components/form/services/o-form-message.service.mjs +4 -4
- package/esm2020/lib/components/form/toolbar/o-form-toolbar.component.mjs +4 -4
- package/esm2020/lib/components/form/toolbar/o-form-toolbar.module.mjs +5 -5
- package/esm2020/lib/components/form-container/o-form-container.component.mjs +4 -4
- package/esm2020/lib/components/form-container/o-form-container.module.mjs +5 -5
- package/esm2020/lib/components/grid/grid-item/o-grid-item.component.mjs +4 -4
- package/esm2020/lib/components/grid/grid-item/o-grid-item.directive.mjs +4 -4
- package/esm2020/lib/components/grid/o-grid.component.mjs +5 -5
- package/esm2020/lib/components/grid/o-grid.module.mjs +5 -5
- package/esm2020/lib/components/grid/skeketon/o-grid-skeleton.component.mjs +4 -4
- package/esm2020/lib/components/image/fullscreen/fullscreen-dialog.component.mjs +4 -4
- package/esm2020/lib/components/image/o-image.component.mjs +6 -6
- package/esm2020/lib/components/image/o-image.module.mjs +5 -5
- package/esm2020/lib/components/input/checkbox/o-checkbox.component.mjs +4 -4
- package/esm2020/lib/components/input/checkbox/o-checkbox.module.mjs +5 -5
- package/esm2020/lib/components/input/combo/combo-renderer/boolean/o-combo-renderer-boolean.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/currency/o-combo-renderer-currency.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/date/o-combo-renderer-date.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/icon/o-combo-renderer-icon.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/integer/o-combo-renderer-integer.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/o-combo-renderer.class.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/percentage/o-combo-renderer-percentage.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-renderer/real/o-combo-renderer-real.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/combo-search/o-combo-search.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/o-combo.component.mjs +4 -4
- package/esm2020/lib/components/input/combo/o-combo.module.mjs +5 -5
- package/esm2020/lib/components/input/currency-input/o-currency-input.component.mjs +5 -5
- package/esm2020/lib/components/input/currency-input/o-currency-input.module.mjs +5 -5
- package/esm2020/lib/components/input/date-input/o-date-input.component.mjs +4 -4
- package/esm2020/lib/components/input/date-input/o-date-input.module.mjs +5 -5
- package/esm2020/lib/components/input/date-range/o-daterange-input.component.mjs +4 -4
- package/esm2020/lib/components/input/date-range/o-daterange-input.module.mjs +5 -5
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.component.mjs +4 -4
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.directive.mjs +4 -4
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-input.module.mjs +5 -5
- package/esm2020/lib/components/input/date-range-legacy/o-daterange-picker.component.mjs +4 -4
- package/esm2020/lib/components/input/email-input/o-email-input.component.mjs +4 -4
- package/esm2020/lib/components/input/email-input/o-email-input.module.mjs +5 -5
- package/esm2020/lib/components/input/file-input/o-file-input.component.mjs +9 -5
- package/esm2020/lib/components/input/file-input/o-file-input.module.mjs +5 -5
- package/esm2020/lib/components/input/hour-input/o-hour-input.component.mjs +4 -4
- package/esm2020/lib/components/input/hour-input/o-hour-input.module.mjs +5 -5
- package/esm2020/lib/components/input/html-input/o-html-input.component.mjs +4 -4
- package/esm2020/lib/components/input/html-input/o-html-input.module.mjs +5 -5
- package/esm2020/lib/components/input/integer-input/o-integer-input.component.mjs +4 -4
- package/esm2020/lib/components/input/integer-input/o-integer-input.module.mjs +5 -5
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/currency/o-list-picker-renderer-currency.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/date/o-list-picker-renderer-date.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/integer/o-list-picker-renderer-integer.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/o-list-picker-renderer.class.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/percentage/o-list-picker-renderer-percentage.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/listpicker-renderer/real/o-list-picker-renderer-real.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/o-list-picker-dialog.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/o-list-picker.component.mjs +4 -4
- package/esm2020/lib/components/input/listpicker/o-list-picker.module.mjs +5 -5
- package/esm2020/lib/components/input/nif-input/o-nif-input.component.mjs +4 -4
- package/esm2020/lib/components/input/nif-input/o-nif-input.module.mjs +5 -5
- package/esm2020/lib/components/input/o-boolean-form-data-component.class.mjs +4 -4
- package/esm2020/lib/components/input/o-form-service-component.class.mjs +20 -11
- package/esm2020/lib/components/input/password-input/o-password-input.component.mjs +4 -4
- package/esm2020/lib/components/input/password-input/o-password-input.module.mjs +5 -5
- package/esm2020/lib/components/input/percent-input/o-percent-input.component.mjs +4 -4
- package/esm2020/lib/components/input/percent-input/o-percent-input.module.mjs +5 -5
- package/esm2020/lib/components/input/phone-input/data/country-code.mjs +4 -4
- package/esm2020/lib/components/input/phone-input/o-phone-input.component.mjs +4 -4
- package/esm2020/lib/components/input/phone-input/o-phone-input.module.mjs +5 -5
- package/esm2020/lib/components/input/radio/o-radio.component.mjs +4 -4
- package/esm2020/lib/components/input/radio/o-radio.module.mjs +5 -5
- package/esm2020/lib/components/input/real-input/o-real-input.component.mjs +4 -4
- package/esm2020/lib/components/input/real-input/o-real-input.module.mjs +5 -5
- package/esm2020/lib/components/input/search-input/o-search-input.component.mjs +4 -4
- package/esm2020/lib/components/input/search-input/o-search-input.module.mjs +5 -5
- package/esm2020/lib/components/input/slide-toggle/o-slide-toggle.component.mjs +4 -4
- package/esm2020/lib/components/input/slide-toggle/o-slide-toggle.module.mjs +5 -5
- package/esm2020/lib/components/input/slider/o-slider.component.mjs +4 -4
- package/esm2020/lib/components/input/slider/o-slider.module.mjs +5 -5
- package/esm2020/lib/components/input/text-input/o-text-input.component.mjs +4 -4
- package/esm2020/lib/components/input/text-input/o-text-input.module.mjs +5 -5
- package/esm2020/lib/components/input/textarea-input/o-textarea-input.component.mjs +4 -4
- package/esm2020/lib/components/input/textarea-input/o-textarea-input.module.mjs +5 -5
- package/esm2020/lib/components/input/time-input/o-time-input.component.mjs +4 -4
- package/esm2020/lib/components/input/time-input/o-time-input.module.mjs +5 -5
- package/esm2020/lib/components/language-selector/o-language-selector.component.mjs +4 -4
- package/esm2020/lib/components/language-selector/o-language-selector.module.mjs +5 -5
- package/esm2020/lib/components/list/list-item/o-list-item.component.mjs +4 -4
- package/esm2020/lib/components/list/list-item/o-list-item.directive.mjs +4 -4
- package/esm2020/lib/components/list/o-list.component.mjs +5 -5
- package/esm2020/lib/components/list/o-list.module.mjs +5 -5
- package/esm2020/lib/components/list/renderers/avatar/o-list-item-avatar.component.mjs +4 -4
- package/esm2020/lib/components/list/renderers/card/o-list-item-card.component.mjs +4 -4
- package/esm2020/lib/components/list/renderers/card-image/o-list-item-card-image.component.mjs +4 -4
- package/esm2020/lib/components/list/renderers/o-list-item-card-renderer.class.mjs +4 -4
- package/esm2020/lib/components/list/renderers/o-list-item-text-renderer.class.mjs +4 -4
- package/esm2020/lib/components/list/renderers/text/o-list-item-text.component.mjs +4 -4
- package/esm2020/lib/components/list/skeleton/o-list-skeleton.component.mjs +4 -4
- package/esm2020/lib/components/material/ckeditor/ck-editor.component.mjs +4 -4
- package/esm2020/lib/components/material/ckeditor/ck-editor.module.mjs +5 -5
- package/esm2020/lib/components/o-data-toolbar/o-data-toolbar.component.mjs +4 -4
- package/esm2020/lib/components/o-data-toolbar/o-data-toolbar.module.mjs +5 -5
- package/esm2020/lib/components/o-form-data-component.class.mjs +4 -4
- package/esm2020/lib/components/o-service-base-component.class.mjs +35 -24
- package/esm2020/lib/components/o-service-component.class.mjs +8 -8
- package/esm2020/lib/components/o-skeleton.component.mjs +4 -4
- package/esm2020/lib/components/table/column/calculated/o-table-column-calculated.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/boolean/o-table-cell-editor-boolean.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/date/o-table-cell-editor-date.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/email/o-table-cell-editor-email.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/integer/o-table-cell-editor-integer.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/o-base-table-cell-editor.class.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/real/o-table-cell-editor-real.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/text/o-table-cell-editor-text.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-editor/time/o-table-cell-editor-time.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/action/o-table-cell-renderer-action.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/boolean/o-table-cell-renderer-boolean.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/currency/o-table-cell-renderer-currency.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/date/o-table-cell-renderer-date.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/image/o-table-cell-renderer-image.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/integer/o-table-cell-renderer-integer.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/o-base-table-cell-renderer.class.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/percentage/o-table-cell-renderer-percentage.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/real/o-table-cell-renderer-real.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/service/o-table-cell-renderer-service.component.mjs +23 -9
- package/esm2020/lib/components/table/column/cell-renderer/time/o-table-cell-renderer-time.component.mjs +4 -4
- package/esm2020/lib/components/table/column/cell-renderer/translate/o-table-cell-renderer-translate.component.mjs +4 -4
- package/esm2020/lib/components/table/column/o-table-column.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/contextmenu/o-table-context-menu.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/apply-configuration/o-table-apply-configuration-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/export/o-table-export-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/group-by-columns/o-table-group-by-columns-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/o-table-base-dialog.class.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/store-configuration/o-table-store-configuration-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/dialog/visible-columns/o-table-visible-columns-dialog.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/export-button/o-table-export-button.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/export-button/o-table-export-button.service.mjs +4 -4
- package/esm2020/lib/components/table/extensions/footer/aggregate/o-table-column-aggregate.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/footer/expanded/o-table-expanded-footer.directive.mjs +4 -4
- package/esm2020/lib/components/table/extensions/footer/paginator/o-table-mat-paginator-intl.mjs +4 -4
- package/esm2020/lib/components/table/extensions/footer/paginator/o-table-paginator.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/o-table-header-components.mjs +3 -2
- package/esm2020/lib/components/table/extensions/header/table-button/o-table-button.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-buttons/o-table-buttons.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-column-resizer/o-table-column-resizer.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-column-select-all/o-table-column-select-all.directive.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-columns-filter/columns/o-table-columns-filter-column.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-columns-filter/o-table-columns-filter.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-columns-grouping/columns/o-table-columns-grouping-column.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-columns-grouping/o-table-columns-grouping.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-header/o-table-header.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-header-column-filter-icon/o-table-header-column-filter-icon.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-header-select-all/o-table-header-select-all.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-insertable-row/o-table-insertable-row.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-menu/o-table-menu.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-option/o-table-option.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/header/table-quickfilter/o-table-quickfilter.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/o-table-datasource.service.mjs +4 -4
- package/esm2020/lib/components/table/extensions/o-table-strategy.service.mjs +4 -4
- package/esm2020/lib/components/table/extensions/o-table.dao.mjs +2 -2
- package/esm2020/lib/components/table/extensions/pipes/o-table-row-class.pipe.mjs +4 -4
- package/esm2020/lib/components/table/extensions/row/o-table-row.directive.mjs +4 -4
- package/esm2020/lib/components/table/extensions/row/table-row-expandable/o-table-row-expandable.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +4 -4
- package/esm2020/lib/components/table/extensions/sort/o-mat-sort-header.mjs +4 -4
- package/esm2020/lib/components/table/extensions/sort/o-mat-sort-module.mjs +5 -5
- package/esm2020/lib/components/table/extensions/sort/o-mat-sort.mjs +4 -4
- package/esm2020/lib/components/table/o-table.component.mjs +21 -16
- package/esm2020/lib/components/table/o-table.module.mjs +6 -6
- package/esm2020/lib/components/tree/header/tree-menu/o-tree-menu.component.mjs +4 -4
- package/esm2020/lib/components/tree/o-tree-dao.service.mjs +4 -4
- package/esm2020/lib/components/tree/o-tree.component.mjs +6 -6
- package/esm2020/lib/components/tree/o-tree.module.mjs +5 -5
- package/esm2020/lib/components/tree/tree-node/tree-node.component.mjs +4 -4
- package/esm2020/lib/components/user-info/o-user-info.component.mjs +4 -4
- package/esm2020/lib/components/user-info/o-user-info.module.mjs +5 -5
- package/esm2020/lib/components/user-info/user-info-configuration/o-user-info-configuration.directive.mjs +4 -4
- package/esm2020/lib/components/user-info/user-info-configuration-item/o-user-info-configuration-item.directive.mjs +4 -4
- package/esm2020/lib/config/app-config.mjs +4 -1
- package/esm2020/lib/config/o-modules.mjs +5 -5
- package/esm2020/lib/config/o-providers.mjs +9 -4
- package/esm2020/lib/directives/input-regulate.directive.mjs +4 -4
- package/esm2020/lib/directives/keyboard-listener.directive.mjs +4 -4
- package/esm2020/lib/directives/locker.directive.mjs +4 -4
- package/esm2020/lib/directives/o-file-drag-and-drop.directive.mjs +4 -4
- package/esm2020/lib/directives/o-hidden.directive.mjs +4 -4
- package/esm2020/lib/directives/o-mat-error.directive.mjs +4 -4
- package/esm2020/lib/directives/o-mat-prefix.directive.mjs +4 -4
- package/esm2020/lib/directives/o-mat-suffix.directive.mjs +4 -4
- package/esm2020/lib/directives/o-tab-group.directive.mjs +4 -4
- package/esm2020/lib/interfaces/base-response.interface.mjs +2 -0
- package/esm2020/lib/interfaces/data-service.interface.mjs +1 -1
- package/esm2020/lib/interfaces/form-data-component.interface.mjs +1 -1
- package/esm2020/lib/interfaces/index.mjs +4 -1
- package/esm2020/lib/interfaces/jsonapi-response.interface.mjs +2 -0
- package/esm2020/lib/interfaces/name-convention.interface.mjs +2 -0
- package/esm2020/lib/interfaces/prefereces-service.interface.mjs +2 -0
- package/esm2020/lib/interfaces/service-response-adapter.interface.mjs +1 -1
- package/esm2020/lib/interfaces/service-response.interface.mjs +1 -1
- package/esm2020/lib/layouts/app-layout/app-layout-header/o-app-layout-header.component.mjs +4 -4
- package/esm2020/lib/layouts/app-layout/app-layout-sidenav/o-app-layout-sidenav.component.mjs +4 -4
- package/esm2020/lib/layouts/app-layout/o-app-layout.component.mjs +4 -4
- package/esm2020/lib/layouts/app-layout/o-app-layout.module.mjs +5 -5
- package/esm2020/lib/layouts/card-menu-layout/o-card-menu-layout.component.mjs +4 -4
- package/esm2020/lib/layouts/card-menu-layout/o-card-menu-layout.module.mjs +5 -5
- package/esm2020/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/dialog/options/o-form-layout-dialog-options.directive.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/directives/o-form-layout-manager-content.directive.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/guards/o-form-layout-can-activate-child.guard.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.module.mjs +5 -5
- package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/split-pane/options/o-form-layout-split-pane-options.directive.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +4 -4
- package/esm2020/lib/layouts/form-layout/tabgroup/options/o-form-layout-tabgroup-options.directive.mjs +4 -4
- package/esm2020/lib/ontimize-web-ngx.module.mjs +5 -5
- package/esm2020/lib/pipes/columns-filter.pipe.mjs +4 -4
- package/esm2020/lib/pipes/is-empty-value.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-currency.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-icon.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-integer.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-moment.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-percentage.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-real.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-safe.pipe.mjs +4 -4
- package/esm2020/lib/pipes/o-translate.pipe.mjs +8 -8
- package/esm2020/lib/pipes/order-by.pipe.mjs +4 -4
- package/esm2020/lib/services/app-menu.service.mjs +4 -4
- package/esm2020/lib/services/appearance.service.mjs +4 -4
- package/esm2020/lib/services/auth-guard.service.mjs +4 -4
- package/esm2020/lib/services/auth.service.mjs +4 -4
- package/esm2020/lib/services/base-data-service.class.mjs +19 -0
- package/esm2020/lib/services/base-service.class.mjs +36 -9
- package/esm2020/lib/services/currency.service.mjs +4 -4
- package/esm2020/lib/services/dialog.service.mjs +4 -4
- package/esm2020/lib/services/factories.mjs +73 -4
- package/esm2020/lib/services/icon.service.mjs +4 -4
- package/esm2020/lib/services/index.mjs +4 -1
- package/esm2020/lib/services/jsonapi/index.mjs +5 -0
- package/esm2020/lib/services/jsonapi/jsonapi-preferences.service.mjs +45 -0
- package/esm2020/lib/services/jsonapi/jsonapi-service-response.adapter.mjs +31 -0
- package/esm2020/lib/services/jsonapi/jsonapi-service-response.class.mjs +45 -0
- package/esm2020/lib/services/jsonapi/jsonapi.service.mjs +166 -0
- package/esm2020/lib/services/local-storage.service.mjs +4 -4
- package/esm2020/lib/services/login-storage.service.mjs +4 -4
- package/esm2020/lib/services/moment.service.mjs +4 -4
- package/esm2020/lib/services/name-convention/base-name-convention.service.mjs +59 -0
- package/esm2020/lib/services/name-convention/index.mjs +4 -0
- package/esm2020/lib/services/name-convention/name-convention-lower.service.mjs +11 -0
- package/esm2020/lib/services/name-convention/name-convention-upper.service.mjs +11 -0
- package/esm2020/lib/services/name-convention/name-convention.service.mjs +24 -0
- package/esm2020/lib/services/navigation.service.mjs +4 -4
- package/esm2020/lib/services/number.service.mjs +4 -4
- package/esm2020/lib/services/o-auth.service.mjs +4 -4
- package/esm2020/lib/services/o-breadcrumb.service.mjs +4 -4
- package/esm2020/lib/services/o-error-dialog-manager.service.mjs +4 -4
- package/esm2020/lib/services/o-form-layout-manager.service.mjs +4 -4
- package/esm2020/lib/services/o-modules-info.service.mjs +4 -4
- package/esm2020/lib/services/o-user-info.service.mjs +4 -4
- package/esm2020/lib/services/ontimize/index.mjs +4 -1
- package/esm2020/lib/services/ontimize/o-preference-query-argument.adapter.mjs +17 -0
- package/esm2020/lib/services/ontimize/o-preference-response.adapter.mjs +22 -0
- package/esm2020/lib/services/ontimize/ontimize-base-service.class.mjs +7 -12
- package/esm2020/lib/services/ontimize/ontimize-ee.service.mjs +33 -12
- package/esm2020/lib/services/ontimize/ontimize-export-3xx.service.mjs +6 -6
- package/esm2020/lib/services/ontimize/ontimize-export.service.mjs +6 -6
- package/esm2020/lib/services/ontimize/ontimize-file.service.mjs +6 -6
- package/esm2020/lib/services/ontimize/ontimize-preferences.service.mjs +58 -0
- package/esm2020/lib/services/ontimize/ontimize-service-response.adapter.mjs +7 -4
- package/esm2020/lib/services/ontimize/ontimize.service.mjs +32 -23
- package/esm2020/lib/services/ontimize-export-data-base-provider.service.mjs +4 -4
- package/esm2020/lib/services/ontimize-export-data-provider-3x.service.mjs +4 -4
- package/esm2020/lib/services/ontimize-export-data-provider.service.mjs +4 -4
- package/esm2020/lib/services/ontimize-icon-registry.service.mjs +4 -4
- package/esm2020/lib/services/pagination-context.service.mjs +4 -4
- package/esm2020/lib/services/parser/o-service-response.parser.mjs +21 -4
- package/esm2020/lib/services/permissions/o-permissions.module.mjs +5 -5
- package/esm2020/lib/services/permissions/ontimize-ee-permissions.service.mjs +4 -4
- package/esm2020/lib/services/permissions/ontimize-permissions.service.mjs +4 -4
- package/esm2020/lib/services/permissions/permissions-can-activate.guard.mjs +4 -4
- package/esm2020/lib/services/permissions/permissions.service.mjs +4 -4
- package/esm2020/lib/services/query-arguments/base-query-argument.adapter.mjs +9 -0
- package/esm2020/lib/services/query-arguments/base-query-argument.interface.mjs +2 -0
- package/esm2020/lib/services/query-arguments/index.mjs +5 -0
- package/esm2020/lib/services/query-arguments/jsonapi-query-arguments.adapter.mjs +63 -0
- package/esm2020/lib/services/query-arguments/ontimize-query-arguments.adapter.mjs +19 -0
- package/esm2020/lib/services/remote-config.service.mjs +5 -5
- package/esm2020/lib/services/share-can-activate-child.service.mjs +4 -4
- package/esm2020/lib/services/snackbar.service.mjs +4 -4
- package/esm2020/lib/services/state/o-app-menu-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-component-state.service.mjs +10 -10
- package/esm2020/lib/services/state/o-filter-builder-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-form-layout-manager-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-grid-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-list-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-table-component-state.service.mjs +4 -4
- package/esm2020/lib/services/state/o-tree-component-state.service.mjs +4 -4
- package/esm2020/lib/services/translate/o-translate.parser.mjs +4 -4
- package/esm2020/lib/services/translate/o-translate.service.mjs +4 -4
- package/esm2020/lib/shared/components/dialog/o-dialog-internal.component.mjs +4 -4
- package/esm2020/lib/shared/components/dialog/o-dialog.component.mjs +4 -4
- package/esm2020/lib/shared/components/error403/o-error-403.component.mjs +4 -4
- package/esm2020/lib/shared/components/filter/load-filter/o-load-filter-dialog.component.mjs +4 -4
- package/esm2020/lib/shared/components/filter/store-filter/o-store-filter-dialog.component.mjs +4 -4
- package/esm2020/lib/shared/components/snackbar/o-snackbar-base.class.mjs +4 -4
- package/esm2020/lib/shared/components/snackbar/o-snackbar.component.mjs +4 -4
- package/esm2020/lib/shared/components/validation/o-error.component.mjs +4 -4
- package/esm2020/lib/shared/components/validation/o-validator.component.mjs +4 -4
- package/esm2020/lib/shared/material/custom.material.module.mjs +5 -5
- package/esm2020/lib/shared/material/date/ontimize-moment-date-adapter.mjs +4 -4
- package/esm2020/lib/shared/shared.module.mjs +5 -5
- package/esm2020/lib/types/config.type.mjs +1 -1
- package/esm2020/lib/types/configure-service-args.type.mjs +1 -1
- package/esm2020/lib/types/index.mjs +5 -1
- package/esm2020/lib/types/json-query-parameter.type.mjs +2 -0
- package/esm2020/lib/types/preferences.type.mjs +2 -0
- package/esm2020/lib/types/query-params.type.mjs +2 -0
- package/esm2020/lib/types/service-configuration.type.mjs +2 -0
- package/esm2020/lib/types/service-request-param.type.mjs +1 -1
- package/esm2020/lib/types/service-type.type.mjs +8 -0
- package/esm2020/lib/util/codes.mjs +2 -1
- package/esm2020/lib/util/index.mjs +2 -1
- package/esm2020/lib/util/preference-mapping-util.mjs +80 -0
- package/esm2020/lib/util/sqltypes.mjs +5 -1
- package/esm2020/lib/util/util.mjs +103 -12
- package/fesm2015/ontimize-web-ngx.mjs +3565 -2638
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +3561 -2637
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/form/navigation/o-form-navigation.component.d.ts +3 -1
- package/lib/components/form/o-form.component.d.ts +12 -7
- package/lib/components/grid/o-grid.component.d.ts +2 -1
- package/lib/components/input/file-input/o-file-input.component.d.ts +3 -1
- package/lib/components/input/o-form-service-component.class.d.ts +11 -4
- package/lib/components/list/o-list.component.d.ts +2 -1
- package/lib/components/o-service-base-component.class.d.ts +8 -4
- package/lib/components/o-service-component.class.d.ts +1 -1
- package/lib/components/table/column/cell-renderer/service/o-table-cell-renderer-service.component.d.ts +7 -2
- package/lib/components/table/column/o-table-column.component.d.ts +1 -1
- package/lib/components/table/extensions/o-table.dao.d.ts +4 -2
- package/lib/components/table/o-table.component.d.ts +4 -2
- package/lib/components/table/o-table.module.d.ts +1 -1
- package/lib/config/app-config.d.ts +1 -0
- package/lib/config/o-directives.d.ts +1 -1
- package/lib/interfaces/base-response.interface.d.ts +7 -0
- package/lib/interfaces/data-service.interface.d.ts +1 -0
- package/lib/interfaces/form-data-component.interface.d.ts +1 -0
- package/lib/interfaces/index.d.ts +3 -0
- package/lib/interfaces/jsonapi-response.interface.d.ts +9 -0
- package/lib/interfaces/name-convention.interface.d.ts +9 -0
- package/lib/interfaces/prefereces-service.interface.d.ts +7 -0
- package/lib/interfaces/service-response-adapter.interface.d.ts +4 -2
- package/lib/interfaces/service-response.interface.d.ts +2 -6
- package/lib/services/base-data-service.class.d.ts +17 -0
- package/lib/services/base-service.class.d.ts +27 -20
- package/lib/services/factories.d.ts +30 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/jsonapi/index.d.ts +4 -0
- package/lib/services/jsonapi/jsonapi-preferences.service.d.ts +13 -0
- package/lib/services/jsonapi/jsonapi-service-response.adapter.d.ts +12 -0
- package/lib/services/jsonapi/jsonapi-service-response.class.d.ts +23 -0
- package/lib/services/jsonapi/jsonapi.service.d.ts +31 -0
- package/lib/services/name-convention/base-name-convention.service.d.ts +12 -0
- package/lib/services/name-convention/index.d.ts +3 -0
- package/lib/services/name-convention/name-convention-lower.service.d.ts +5 -0
- package/lib/services/name-convention/name-convention-upper.service.d.ts +5 -0
- package/lib/services/name-convention/name-convention.service.d.ts +10 -0
- package/lib/services/ontimize/index.d.ts +3 -0
- package/lib/services/ontimize/o-preference-query-argument.adapter.d.ts +7 -0
- package/lib/services/ontimize/o-preference-response.adapter.d.ts +9 -0
- package/lib/services/ontimize/ontimize-base-service.class.d.ts +3 -3
- package/lib/services/ontimize/ontimize-ee.service.d.ts +1 -0
- package/lib/services/ontimize/ontimize-export-3xx.service.d.ts +3 -2
- package/lib/services/ontimize/ontimize-export.service.d.ts +2 -2
- package/lib/services/ontimize/ontimize-file.service.d.ts +3 -2
- package/lib/services/ontimize/ontimize-preferences.service.d.ts +16 -0
- package/lib/services/ontimize/ontimize-service-response.adapter.d.ts +6 -5
- package/lib/services/ontimize/ontimize.service.d.ts +2 -0
- package/lib/services/parser/o-service-response.parser.d.ts +11 -5
- package/lib/services/query-arguments/base-query-argument.adapter.d.ts +6 -0
- package/lib/services/query-arguments/base-query-argument.interface.d.ts +3 -0
- package/lib/services/query-arguments/index.d.ts +4 -0
- package/lib/services/query-arguments/jsonapi-query-arguments.adapter.d.ts +12 -0
- package/lib/services/query-arguments/ontimize-query-arguments.adapter.d.ts +8 -0
- package/lib/types/config.type.d.ts +3 -1
- package/lib/types/configure-service-args.type.d.ts +5 -5
- package/lib/types/index.d.ts +4 -0
- package/lib/types/json-query-parameter.type.d.ts +15 -0
- package/lib/types/preferences.type.d.ts +7 -0
- package/lib/types/query-params.type.d.ts +11 -0
- package/lib/types/service-configuration.type.d.ts +7 -0
- package/lib/types/service-request-param.type.d.ts +5 -5
- package/lib/types/service-type.type.d.ts +5 -0
- package/lib/util/codes.d.ts +6 -5
- package/lib/util/index.d.ts +1 -0
- package/lib/util/preference-mapping-util.d.ts +74 -0
- package/lib/util/util.d.ts +10 -2
- package/package.json +1 -1
- package/theme.scss +69 -69
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
1
|
+
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { Observable, Subscriber } from 'rxjs';
|
|
5
5
|
import { AppConfig } from '../config/app-config';
|
|
6
|
-
import {
|
|
6
|
+
import { PaginationContext } from '../interfaces/pagination-context.interface';
|
|
7
|
+
import { IServiceResponseAdapter } from '../interfaces/service-response-adapter.interface';
|
|
7
8
|
import { ServiceResponse } from '../interfaces/service-response.interface';
|
|
8
9
|
import { Config } from '../types/config.type';
|
|
9
10
|
import { ServiceRequestParam } from '../types/service-request-param.type';
|
|
10
11
|
import { AuthService } from './auth.service';
|
|
11
12
|
import { BaseServiceResponse } from './base-service-response.class';
|
|
12
13
|
import { LoginStorageService } from './login-storage.service';
|
|
13
|
-
import {
|
|
14
|
-
import { PaginationContext } from '../interfaces/pagination-context.interface';
|
|
14
|
+
import { NameConvention } from './name-convention/name-convention.service';
|
|
15
15
|
import { PaginationContextService } from './pagination-context.service';
|
|
16
|
-
|
|
16
|
+
import { OntimizeServiceResponseParser } from './parser/o-service-response.parser';
|
|
17
|
+
import { BaseQueryArgument } from './query-arguments/base-query-argument.adapter';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export declare class BaseService<T extends ServiceResponse> {
|
|
17
20
|
protected injector: Injector;
|
|
18
21
|
protected httpClient: HttpClient;
|
|
19
22
|
protected router: Router;
|
|
20
23
|
protected _urlBase: string;
|
|
21
24
|
protected _appConfig: Config;
|
|
22
25
|
protected _config: AppConfig;
|
|
23
|
-
protected responseParser: OntimizeServiceResponseParser
|
|
26
|
+
protected responseParser: OntimizeServiceResponseParser<T>;
|
|
24
27
|
protected authService: AuthService;
|
|
25
|
-
protected adapter:
|
|
28
|
+
protected adapter: IServiceResponseAdapter<BaseServiceResponse>;
|
|
26
29
|
protected loginStorageService: LoginStorageService;
|
|
30
|
+
nameConvention: NameConvention;
|
|
31
|
+
queryArgumentAdapter: BaseQueryArgument;
|
|
27
32
|
protected paginationContextService: PaginationContextService;
|
|
28
33
|
constructor(injector: Injector);
|
|
29
34
|
configureAdapter(): void;
|
|
@@ -31,24 +36,26 @@ export declare class BaseService {
|
|
|
31
36
|
getDefaultServiceConfiguration(serviceName?: string): any;
|
|
32
37
|
get urlBase(): string;
|
|
33
38
|
set urlBase(value: string);
|
|
34
|
-
doRequest(param: ServiceRequestParam): Observable<
|
|
39
|
+
doRequest(param: ServiceRequestParam<T>): Observable<T>;
|
|
35
40
|
protected buildHeaders(): HttpHeaders;
|
|
36
41
|
clientErrorFallback(errorCode: number): void;
|
|
37
42
|
serverErrorFallback(errorCode: number): void;
|
|
38
|
-
protected parseSuccessfulResponse(resp:
|
|
39
|
-
protected parseSuccessfulQueryResponse(resp:
|
|
40
|
-
protected parseSuccessfulAdvancedQueryResponse(resp:
|
|
41
|
-
protected parseSuccessfulInsertResponse(resp:
|
|
42
|
-
protected parseSuccessfulUpdateResponse(resp:
|
|
43
|
-
protected parseSuccessfulDeleteResponse(resp:
|
|
44
|
-
protected parseUnsuccessfulResponse(error:
|
|
45
|
-
protected parseUnsuccessfulQueryResponse(resp:
|
|
46
|
-
protected parseUnsuccessfulAdvancedQueryResponse(resp:
|
|
47
|
-
protected parseUnsuccessfulInsertResponse(resp:
|
|
48
|
-
protected parseUnsuccessfulUpdateResponse(resp:
|
|
49
|
-
protected parseUnsuccessfulDeleteResponse(resp:
|
|
43
|
+
protected parseSuccessfulResponse(resp: T, observer: Subscriber<T>): void;
|
|
44
|
+
protected parseSuccessfulQueryResponse(resp: T, observer: Subscriber<T>): void;
|
|
45
|
+
protected parseSuccessfulAdvancedQueryResponse(resp: T, observer: Subscriber<T>): void;
|
|
46
|
+
protected parseSuccessfulInsertResponse(resp: T, observer: Subscriber<T>): void;
|
|
47
|
+
protected parseSuccessfulUpdateResponse(resp: T, observer: Subscriber<T>): void;
|
|
48
|
+
protected parseSuccessfulDeleteResponse(resp: T, observer: Subscriber<T>): void;
|
|
49
|
+
protected parseUnsuccessfulResponse(error: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
50
|
+
protected parseUnsuccessfulQueryResponse(resp: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
51
|
+
protected parseUnsuccessfulAdvancedQueryResponse(resp: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
52
|
+
protected parseUnsuccessfulInsertResponse(resp: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
53
|
+
protected parseUnsuccessfulUpdateResponse(resp: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
54
|
+
protected parseUnsuccessfulDeleteResponse(resp: HttpErrorResponse, observer: Subscriber<T>): void;
|
|
50
55
|
protected refreshAuthToken(res: HttpResponse<any>): void;
|
|
51
56
|
setPaginationContext(context: PaginationContext): void;
|
|
52
57
|
getPaginationContext(): PaginationContext | null;
|
|
53
58
|
reinitializePaginationContext(pageSize?: number): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService<any>, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService<any>>;
|
|
54
61
|
}
|
|
@@ -4,17 +4,27 @@ import { IExportDataProvider } from '../interfaces/export-data-provider.interfac
|
|
|
4
4
|
import { IExportService } from '../interfaces/export-service.interface';
|
|
5
5
|
import { IFileService } from '../interfaces/file-service.interface';
|
|
6
6
|
import { IPermissionsService } from '../interfaces/permissions-service.interface';
|
|
7
|
+
import { IPreferencesService } from '../interfaces/prefereces-service.interface';
|
|
7
8
|
import { IReportService } from '../interfaces/report-on-demand-service.interface';
|
|
9
|
+
import { IServiceResponseAdapter } from '../interfaces/service-response-adapter.interface';
|
|
8
10
|
import { OMatErrorOptions } from '../types/o-mat-error.type';
|
|
11
|
+
import { ServiceType } from '../types/service-type.type';
|
|
9
12
|
import { AuthService } from './auth.service';
|
|
13
|
+
import { BaseServiceResponse } from './base-service-response.class';
|
|
14
|
+
import { INameConvention } from '../interfaces/name-convention.interface';
|
|
15
|
+
import { NameConvention } from './name-convention/name-convention.service';
|
|
10
16
|
import { OErrorDialogManager } from './o-error-dialog-manager.service';
|
|
11
17
|
import { OntimizeExportDataProviderService } from './ontimize-export-data-provider.service';
|
|
12
18
|
import { OntimizeExportService } from './ontimize/ontimize-export.service';
|
|
19
|
+
import { OntimizeServiceResponseAdapter } from './ontimize/ontimize-service-response.adapter';
|
|
13
20
|
import { OntimizeService } from './ontimize/ontimize.service';
|
|
21
|
+
import { IBaseQueryArgument } from './query-arguments/base-query-argument.interface';
|
|
22
|
+
import { OntimizeQueryArgumentsAdapter } from './query-arguments/ontimize-query-arguments.adapter';
|
|
14
23
|
import { AbstractComponentStateService, DefaultComponentStateService } from './state/o-component-state.service';
|
|
15
24
|
import { LocalStorageService } from './local-storage.service';
|
|
16
25
|
import { ILocalStorageService } from '../interfaces/local-service.interface';
|
|
17
26
|
export declare const O_DATA_SERVICE: InjectionToken<unknown>;
|
|
27
|
+
export declare const O_RESPONSE_ADAPTER: InjectionToken<IServiceResponseAdapter<BaseServiceResponse>>;
|
|
18
28
|
export declare const O_TRANSLATE_SERVICE: InjectionToken<unknown>;
|
|
19
29
|
export declare const O_FILE_SERVICE: InjectionToken<IFileService>;
|
|
20
30
|
export declare const O_LOCALSTORAGE_SERVICE: InjectionToken<ILocalStorageService>;
|
|
@@ -29,11 +39,15 @@ export declare const O_EXPORT_DATA_SERVICE: InjectionToken<IExportDataProvider>;
|
|
|
29
39
|
export declare const O_MAT_ERROR_OPTIONS: InjectionToken<OMatErrorOptions>;
|
|
30
40
|
export declare const O_FORM_MESSAGE_SERVICE: InjectionToken<unknown>;
|
|
31
41
|
export declare function dataServiceFactory(injector: Injector): any;
|
|
42
|
+
export declare function createServiceInstance(serviceType: ServiceType, injector: Injector): any;
|
|
32
43
|
export declare function fileServiceFactory(injector: Injector): IFileService;
|
|
33
44
|
export declare function localStorageServiceFactory(injector: Injector): ILocalStorageService;
|
|
34
45
|
export declare function exportServiceFactory(injector: Injector): IExportService;
|
|
35
46
|
export declare function exportDataFactory(injector: Injector): IExportDataProvider;
|
|
47
|
+
export declare function serviceRequestAdapterFactory(injector: Injector): IBaseQueryArgument;
|
|
48
|
+
export declare function serviceResponseAdapterFactory(injector: Injector): IServiceResponseAdapter<BaseServiceResponse>;
|
|
36
49
|
export declare function permissionsServiceFactory(injector: Injector): IPermissionsService;
|
|
50
|
+
export declare function preferencesServiceFactory(injector: Injector): IPreferencesService;
|
|
37
51
|
export declare function authServiceFactory(injector: Injector): AuthService;
|
|
38
52
|
export declare function componentStateFactory(injector: Injector): AbstractComponentStateService<any, any>;
|
|
39
53
|
export declare const OntimizeServiceProvider: {
|
|
@@ -61,9 +75,25 @@ export declare const ExportDataServiceProvider: {
|
|
|
61
75
|
useFactory: typeof exportDataFactory;
|
|
62
76
|
deps: (typeof Injector)[];
|
|
63
77
|
};
|
|
78
|
+
export declare const ServiceRequestAdapter: {
|
|
79
|
+
provide: typeof OntimizeQueryArgumentsAdapter;
|
|
80
|
+
useFactory: typeof serviceRequestAdapterFactory;
|
|
81
|
+
deps: (typeof Injector)[];
|
|
82
|
+
};
|
|
83
|
+
export declare const ServiceResponseAdapter: {
|
|
84
|
+
provide: typeof OntimizeServiceResponseAdapter;
|
|
85
|
+
useFactory: typeof serviceResponseAdapterFactory;
|
|
86
|
+
deps: (typeof Injector)[];
|
|
87
|
+
};
|
|
88
|
+
export declare const NameConventionProvider: {
|
|
89
|
+
provide: typeof NameConvention;
|
|
90
|
+
useFactory: typeof nameConventionServiceFactory;
|
|
91
|
+
deps: (typeof Injector)[];
|
|
92
|
+
};
|
|
64
93
|
export declare const OntimizeLocalStorageServiceProvider: {
|
|
65
94
|
provide: typeof LocalStorageService;
|
|
66
95
|
useFactory: typeof localStorageServiceFactory;
|
|
67
96
|
deps: (typeof Injector)[];
|
|
68
97
|
};
|
|
69
98
|
export declare function _getInjectionTokenValue<T>(token: InjectionToken<T>, injector: Injector): T;
|
|
99
|
+
export declare function nameConventionServiceFactory(injector: Injector): INameConvention;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './o-modules-info.service';
|
|
|
21
21
|
export * from './o-user-info.service';
|
|
22
22
|
export * from './ontimize-icon-registry.service';
|
|
23
23
|
export * from './ontimize/index';
|
|
24
|
+
export * from './jsonapi/index';
|
|
24
25
|
export * from './parser/o-service-response.parser';
|
|
25
26
|
export * from './permissions/index';
|
|
26
27
|
export * from './remote-config.service';
|
|
@@ -31,4 +32,6 @@ export * from './translate/index';
|
|
|
31
32
|
export * from './ontimize-export-data-provider-3x.service';
|
|
32
33
|
export * from './ontimize-export-data-provider.service';
|
|
33
34
|
export * from './appearance.service';
|
|
35
|
+
export * from './query-arguments/index';
|
|
36
|
+
export * from './name-convention/index';
|
|
34
37
|
export * from './pagination-context.service';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { JSONAPIService } from './jsonapi.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class JSONAPIPreferencesService extends JSONAPIService {
|
|
5
|
+
configureService(config: any): void;
|
|
6
|
+
saveAsPreferences(preferencesparams: object): Observable<any>;
|
|
7
|
+
savePreferences(id: number, preferencesparams: object): Observable<any>;
|
|
8
|
+
protected parseObjectToPreference(preferencesparams: object): object;
|
|
9
|
+
getPreferences(entity: string, service: string, type: string): Observable<any>;
|
|
10
|
+
deletePreferences(id?: number): Observable<any>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIPreferencesService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JSONAPIPreferencesService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { IServiceResponseAdapter } from '../../interfaces/service-response-adapter.interface';
|
|
3
|
+
import { JSONAPIServiceResponse } from './jsonapi-service-response.class';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class JSONAPIServiceResponseAdapter implements IServiceResponseAdapter<JSONAPIServiceResponse> {
|
|
6
|
+
context: any;
|
|
7
|
+
adapt(res: HttpResponse<any>): JSONAPIServiceResponse;
|
|
8
|
+
adaptError(httpError: HttpErrorResponse): any;
|
|
9
|
+
getErrorMessage(error: any): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIServiceResponseAdapter, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JSONAPIServiceResponseAdapter>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HttpHeaders } from "@angular/common/http";
|
|
2
|
+
import { ServiceResponse } from "../../interfaces/service-response.interface";
|
|
3
|
+
import { PaginationContext } from "../../interfaces/pagination-context.interface";
|
|
4
|
+
export declare class JSONAPIServiceResponse implements ServiceResponse {
|
|
5
|
+
status: number;
|
|
6
|
+
statusText: string;
|
|
7
|
+
headers: HttpHeaders;
|
|
8
|
+
ok: boolean;
|
|
9
|
+
body: any;
|
|
10
|
+
context: PaginationContext;
|
|
11
|
+
code: number;
|
|
12
|
+
message: string;
|
|
13
|
+
sqlTypes: {
|
|
14
|
+
[key: string]: number;
|
|
15
|
+
};
|
|
16
|
+
startRecordIndex: number;
|
|
17
|
+
totalQueryRecordsNumber: number;
|
|
18
|
+
data: any;
|
|
19
|
+
constructor(status: number, statusText: string, headers: HttpHeaders, ok: boolean, body: any, context: PaginationContext);
|
|
20
|
+
isSuccessful(): boolean;
|
|
21
|
+
isFailed(): boolean;
|
|
22
|
+
isUnauthorized(): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { Injector } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AppConfig } from '../../config/app-config';
|
|
5
|
+
import { IAuthService } from '../../interfaces/auth-service.interface';
|
|
6
|
+
import { JSONAPIResponse } from '../../interfaces/jsonapi-response.interface';
|
|
7
|
+
import { JSONAPIQueryParameter } from '../../types/json-query-parameter.type';
|
|
8
|
+
import { BaseDataService } from '../base-data-service.class';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class JSONAPIService extends BaseDataService<JSONAPIResponse> implements IAuthService {
|
|
11
|
+
protected injector: Injector;
|
|
12
|
+
path: string;
|
|
13
|
+
protected _startSessionPath: string;
|
|
14
|
+
protected config: AppConfig;
|
|
15
|
+
constructor(injector: Injector);
|
|
16
|
+
startsession(user: string, password: string): Observable<string | number>;
|
|
17
|
+
endsession(user: string, sessionId: number): Observable<number>;
|
|
18
|
+
protected buildHeaders(): HttpHeaders;
|
|
19
|
+
hassession(user: string, sessionId: any): Observable<boolean>;
|
|
20
|
+
configureService(config: any): void;
|
|
21
|
+
query(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
22
|
+
advancedQuery(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
23
|
+
queryById(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
24
|
+
protected parseNameConventionQueryParams(queryParams: JSONAPIQueryParameter): JSONAPIQueryParameter;
|
|
25
|
+
insert(av: object, entity: string): Observable<JSONAPIResponse>;
|
|
26
|
+
update(kv: object, av: object, entity?: string): Observable<JSONAPIResponse>;
|
|
27
|
+
delete(kv?: object): Observable<JSONAPIResponse>;
|
|
28
|
+
getStandartEntity(entity: string): string;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JSONAPIService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { INameConvention } from '../../interfaces/name-convention.interface';
|
|
2
|
+
export declare abstract class BaseNameConvention implements INameConvention {
|
|
3
|
+
abstract parseToStringCase(value: string | object | string[]): any;
|
|
4
|
+
abstract parseOppositeToStringCase(value: string | object | string[]): any;
|
|
5
|
+
parseFilterToNameConvention(data: any): {};
|
|
6
|
+
parseColumnsToNameConventionForOntimize(value: object | string): any;
|
|
7
|
+
parseColumnsToNameConventionForJSONAPI(value: string): any;
|
|
8
|
+
parseDataToNameConvention(data: any): any;
|
|
9
|
+
parseResultToNameConvention(data: any): any;
|
|
10
|
+
parseValuesDataToNameConvention(data: any): any;
|
|
11
|
+
parseFilterExpresionNameConvention(data: any): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { INameConvention } from '../../interfaces/name-convention.interface';
|
|
2
|
+
export declare class NameConvention implements INameConvention {
|
|
3
|
+
parseColumnsToNameConventionForOntimize(value: any): any[];
|
|
4
|
+
parseColumnsToNameConventionForJSONAPI(value: any): string;
|
|
5
|
+
parseDataToNameConvention(data: any): any;
|
|
6
|
+
parseValuesDataToNameConvention(data: any): any;
|
|
7
|
+
parseFilterExpresionNameConvention(data: any): any;
|
|
8
|
+
parseResultToNameConvention(data: any): any;
|
|
9
|
+
parseFilterToNameConvention(data: any): any;
|
|
10
|
+
}
|
|
@@ -6,3 +6,6 @@ export * from './ontimize-file.service';
|
|
|
6
6
|
export * from './ontimize-service-response.adapter';
|
|
7
7
|
export * from './ontimize-service-response.class';
|
|
8
8
|
export * from './ontimize.service';
|
|
9
|
+
export * from './ontimize-preferences.service';
|
|
10
|
+
export * from './o-preference-query-argument.adapter';
|
|
11
|
+
export * from './o-preference-response.adapter';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OntimizeQueryArgumentsAdapter } from '../query-arguments/ontimize-query-arguments.adapter';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OPreferenceQueryArgumentsAdapter extends OntimizeQueryArgumentsAdapter {
|
|
4
|
+
parseQueryParameters(args: any): any[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OPreferenceQueryArgumentsAdapter, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OPreferenceQueryArgumentsAdapter>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpResponse } from "@angular/common/http";
|
|
2
|
+
import { OntimizeServiceResponseAdapter } from "./ontimize-service-response.adapter";
|
|
3
|
+
import { OntimizeServiceResponse } from "./ontimize-service-response.class";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OPreferenceResponseAdapter extends OntimizeServiceResponseAdapter {
|
|
6
|
+
adapt(res: HttpResponse<any>): OntimizeServiceResponse;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OPreferenceResponseAdapter, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OPreferenceResponseAdapter>;
|
|
9
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IAuthService } from '../../interfaces/auth-service.interface';
|
|
4
|
-
import {
|
|
4
|
+
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
5
|
+
import { BaseDataService } from '../base-data-service.class';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OntimizeBaseService extends
|
|
7
|
+
export declare abstract class OntimizeBaseService extends BaseDataService<ServiceResponse> implements IAuthService {
|
|
7
8
|
protected injector: Injector;
|
|
8
9
|
protected _startSessionPath: string;
|
|
9
10
|
kv: {};
|
|
@@ -18,7 +19,6 @@ export declare class OntimizeBaseService extends BaseService implements IAuthSer
|
|
|
18
19
|
startsession(user: string, password: string): Observable<any>;
|
|
19
20
|
endsession(user: string, sessionId: number): Observable<any>;
|
|
20
21
|
hassession(user: string, sessionId: string | number): Observable<boolean>;
|
|
21
|
-
clientErrorFallback(errorCode: number): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeBaseService, never>;
|
|
23
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeBaseService>;
|
|
24
24
|
}
|
|
@@ -11,6 +11,7 @@ export declare class OntimizeEEService extends OntimizeBaseService implements ID
|
|
|
11
11
|
endsession(user: string, sessionId: any): Observable<number>;
|
|
12
12
|
hassession(user: string, sessionId: any): Observable<boolean>;
|
|
13
13
|
query(kv?: object, av?: Array<string>, entity?: string, sqltypes?: object): Observable<ServiceResponse>;
|
|
14
|
+
queryById(kv?: object, av?: string[], entity?: string, sqltypes?: object): Observable<ServiceResponse>;
|
|
14
15
|
advancedQuery(kv?: object, av?: Array<string>, entity?: string, sqltypes?: object, offset?: number, pagesize?: number, orderby?: Array<object>): Observable<ServiceResponse>;
|
|
15
16
|
insert(av: object, entity: string, sqltypes?: object): Observable<ServiceResponse>;
|
|
16
17
|
update(kv?: object, av?: object, entity?: string, sqltypes?: object): Observable<ServiceResponse>;
|
|
@@ -3,9 +3,10 @@ import { Injector } from '@angular/core';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { IExportDataProvider } from '../../interfaces/export-data-provider.interface';
|
|
5
5
|
import { IExportService } from '../../interfaces/export-service.interface';
|
|
6
|
-
import {
|
|
6
|
+
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
7
|
+
import { BaseService } from '../base-service.class';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class OntimizeExportService3X extends
|
|
9
|
+
export declare class OntimizeExportService3X extends BaseService<ServiceResponse> implements IExportService {
|
|
9
10
|
protected injector: Injector;
|
|
10
11
|
exportPath: string;
|
|
11
12
|
servicePath: string;
|
|
@@ -4,9 +4,9 @@ import { Observable, Subscriber } from 'rxjs';
|
|
|
4
4
|
import { IExportDataProvider } from '../../interfaces/export-data-provider.interface';
|
|
5
5
|
import { IExportService } from '../../interfaces/export-service.interface';
|
|
6
6
|
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
7
|
-
import {
|
|
7
|
+
import { BaseService } from '../base-service.class';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class OntimizeExportService extends
|
|
9
|
+
export declare class OntimizeExportService extends BaseService<ServiceResponse> implements IExportService {
|
|
10
10
|
protected injector: Injector;
|
|
11
11
|
exportPath: string;
|
|
12
12
|
downloadPath: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IFileService } from '../../interfaces/file-service.interface';
|
|
4
|
-
import {
|
|
4
|
+
import { BaseService } from '../base-service.class';
|
|
5
|
+
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OntimizeFileService extends
|
|
7
|
+
export declare class OntimizeFileService extends BaseService<ServiceResponse> implements IFileService {
|
|
7
8
|
path: string;
|
|
8
9
|
configureService(config: any): void;
|
|
9
10
|
upload(files: any[], entity: string, data?: object): Observable<any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { OntimizeEEService } from './ontimize-ee.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OntimizePreferencesService extends OntimizeEEService {
|
|
6
|
+
constructor(injector: Injector);
|
|
7
|
+
path: string;
|
|
8
|
+
configureService(config: any): void;
|
|
9
|
+
configureAdapter(): void;
|
|
10
|
+
saveAsPreferences(preferencesparams?: object): Observable<any>;
|
|
11
|
+
savePreferences(id: number, preferencesparams?: object): Observable<any>;
|
|
12
|
+
getPreferences(entity: string, service: string, type: string): Observable<any>;
|
|
13
|
+
deletePreferences(id?: number): Observable<any>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizePreferencesService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizePreferencesService>;
|
|
16
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { HttpResponse } from '@angular/common/http';
|
|
2
|
-
import {
|
|
3
|
-
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
1
|
+
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { IServiceResponseAdapter } from '../../interfaces/service-response-adapter.interface';
|
|
4
3
|
import { OntimizeServiceResponse } from './ontimize-service-response.class';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OntimizeServiceResponseAdapter implements
|
|
7
|
-
|
|
5
|
+
export declare class OntimizeServiceResponseAdapter implements IServiceResponseAdapter<OntimizeServiceResponse> {
|
|
6
|
+
context: any;
|
|
7
|
+
adapt(res: HttpResponse<any>): OntimizeServiceResponse;
|
|
8
|
+
adaptError(error: HttpErrorResponse): HttpErrorResponse;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeServiceResponseAdapter, never>;
|
|
9
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeServiceResponseAdapter>;
|
|
10
11
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IDataService } from '../../interfaces/data-service.interface';
|
|
3
3
|
import { OntimizeBaseService } from './ontimize-base-service.class';
|
|
4
|
+
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class OntimizeService extends OntimizeBaseService implements IDataService {
|
|
6
7
|
entity: string;
|
|
@@ -10,6 +11,7 @@ export declare class OntimizeService extends OntimizeBaseService implements IDat
|
|
|
10
11
|
endsession(user: string, sessionId: number): Observable<number>;
|
|
11
12
|
hassession(user: string, sessionId: number): Observable<boolean>;
|
|
12
13
|
query(kv?: object, av?: Array<string>, entity?: string, sqltypes?: object): Observable<any>;
|
|
14
|
+
queryById(kv?: object, av?: string[], entity?: string, sqltypes?: object): Observable<ServiceResponse>;
|
|
13
15
|
advancedQuery(kv?: object, av?: Array<string>, entity?: string, sqltypes?: object, offset?: number, pagesize?: number, orderby?: Array<object>): Observable<any>;
|
|
14
16
|
insert(av?: object, entity?: string, sqltypes?: object): Observable<any>;
|
|
15
17
|
update(kv?: object, av?: object, entity?: string, sqltypes?: object): Observable<any>;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
1
2
|
import { Injector } from '@angular/core';
|
|
2
3
|
import { Subscriber } from 'rxjs';
|
|
4
|
+
import { AppConfig } from '../../config/app-config';
|
|
3
5
|
import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
4
6
|
import { BaseService } from '../base-service.class';
|
|
7
|
+
import { NameConvention } from '../name-convention/name-convention.service';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OntimizeServiceResponseParser {
|
|
9
|
+
export declare class OntimizeServiceResponseParser<T extends ServiceResponse> {
|
|
7
10
|
protected injector: Injector;
|
|
11
|
+
appConfig: AppConfig;
|
|
12
|
+
nameConvention: NameConvention;
|
|
8
13
|
constructor(injector: Injector);
|
|
9
|
-
parseSuccessfulResponse(resp:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
static
|
|
14
|
+
parseSuccessfulResponse(resp: T, subscriber: Subscriber<T>, service: BaseService<T>): void;
|
|
15
|
+
parseData(data: any): any;
|
|
16
|
+
parseUnsuccessfulResponse(error: HttpErrorResponse, subscriber: Subscriber<T>, service: BaseService<T>): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeServiceResponseParser<any>, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeServiceResponseParser<any>>;
|
|
13
19
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ServiceResponse } from "../../interfaces/service-response.interface";
|
|
3
|
+
export declare class BaseQueryArgument {
|
|
4
|
+
request(method: string, service: any, queryArguments: any): Observable<ServiceResponse>;
|
|
5
|
+
parseQueryParameters(args: any): any;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSONAPIQueryParameter } from '../../types/json-query-parameter.type';
|
|
2
|
+
import { BaseQueryArgument } from './base-query-argument.adapter';
|
|
3
|
+
import { IBaseQueryArgument } from './base-query-argument.interface';
|
|
4
|
+
import { OQueryParams } from '../../types/query-params.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class JSONAPIQueryArgumentsAdapter extends BaseQueryArgument implements IBaseQueryArgument {
|
|
7
|
+
parseQueryParameters(args: OQueryParams): JSONAPIQueryParameter[];
|
|
8
|
+
deCompose(expresion: any, columns: Array<string>, kv: Object): Object;
|
|
9
|
+
deComposeExpresion(expresion: any, columns: Array<string>, kv: Object): any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIQueryArgumentsAdapter, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JSONAPIQueryArgumentsAdapter>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseQueryArgument } from './base-query-argument.adapter';
|
|
2
|
+
import { IBaseQueryArgument } from './base-query-argument.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OntimizeQueryArgumentsAdapter extends BaseQueryArgument implements IBaseQueryArgument {
|
|
5
|
+
parseQueryParameters(args: any): any[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeQueryArgumentsAdapter, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeQueryArgumentsAdapter>;
|
|
8
|
+
}
|
|
@@ -3,6 +3,7 @@ import { MenuRootItem } from './menu-root-item.type';
|
|
|
3
3
|
import { OntimizeEEPermissionsConfig } from './ontimize-ee-permissions-config.type';
|
|
4
4
|
import { OntimizePermissionsConfig } from './ontimize-permissions-config.type';
|
|
5
5
|
import { ORemoteConfiguration } from './remote-configuration.type';
|
|
6
|
+
import { ServiceConfigType } from './service-configuration.type';
|
|
6
7
|
export type Config = {
|
|
7
8
|
apiEndpoint?: string;
|
|
8
9
|
bundle?: {
|
|
@@ -27,9 +28,10 @@ export type Config = {
|
|
|
27
28
|
defaultLocale?: string;
|
|
28
29
|
serviceType?: any;
|
|
29
30
|
exportServiceType?: any;
|
|
30
|
-
servicesConfiguration?:
|
|
31
|
+
servicesConfiguration?: ServiceConfigType;
|
|
31
32
|
appMenuConfiguration?: MenuRootItem[];
|
|
32
33
|
permissionsConfiguration?: OntimizePermissionsConfig | OntimizeEEPermissionsConfig;
|
|
33
34
|
permissionsServiceType?: any;
|
|
34
35
|
exportConfiguration?: OExportConfiguration;
|
|
36
|
+
nameConvention?: 'upper' | 'lower' | 'database';
|
|
35
37
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Injector } from "@angular/core";
|
|
2
2
|
export type OConfigureServiceArgs = {
|
|
3
|
-
injector
|
|
4
|
-
baseService
|
|
5
|
-
entity
|
|
6
|
-
service
|
|
7
|
-
serviceType
|
|
3
|
+
injector?: Injector;
|
|
4
|
+
baseService?: any;
|
|
5
|
+
entity?: string;
|
|
6
|
+
service?: string;
|
|
7
|
+
serviceType?: string;
|
|
8
8
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -39,4 +39,8 @@ export * from './o-grouped-column-types.type';
|
|
|
39
39
|
export * from './o-filter-definition.type';
|
|
40
40
|
export * from './form/index';
|
|
41
41
|
export * from './o-global-config.type';
|
|
42
|
+
export * from './preferences.type';
|
|
43
|
+
export * from './query-params.type';
|
|
44
|
+
export * from './json-query-parameter.type';
|
|
42
45
|
export * from './error-form-validation.type';
|
|
46
|
+
export * from './service-configuration.type';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type JSONAPIQueryParameter = {
|
|
2
|
+
id?: any;
|
|
3
|
+
type?: string;
|
|
4
|
+
attributes?: object;
|
|
5
|
+
relationships?: object;
|
|
6
|
+
link?: object;
|
|
7
|
+
meta?: object;
|
|
8
|
+
page?: object;
|
|
9
|
+
include?: string;
|
|
10
|
+
fields?: {
|
|
11
|
+
[entity: string]: string;
|
|
12
|
+
};
|
|
13
|
+
filter?: object;
|
|
14
|
+
sort?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OQueryDataArgs } from "./query-data-args.type";
|
|
2
|
+
import { SQLOrder } from "./sql-order.type";
|
|
3
|
+
export type OQueryParams = {
|
|
4
|
+
filter: Object;
|
|
5
|
+
columns: string[];
|
|
6
|
+
entity: string;
|
|
7
|
+
pageable?: boolean;
|
|
8
|
+
sqlTypes?: Object;
|
|
9
|
+
sort?: SQLOrder[];
|
|
10
|
+
ovrrArgs?: OQueryDataArgs;
|
|
11
|
+
};
|