@mediusinc/mng-commons 0.0.1-rc.4 → 0.1.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/.pnpm-debug.log +15 -0
- package/README.md +95 -0
- package/assets/i18n/en.json +54 -3
- package/assets/i18n/sl.json +54 -8
- package/assets/images/effect-ondark.png +0 -0
- package/assets/images/effect-ondark.svg +38 -0
- package/assets/images/effect-ondark@2x.png +0 -0
- package/assets/images/effect-onlight.png +0 -0
- package/assets/images/effect-onlight.svg +38 -0
- package/assets/images/effect-onlight@2x.png +0 -0
- package/assets/images/pages/exception-ondark.png +0 -0
- package/assets/images/pages/exception-onlight.png +0 -0
- package/assets/images/pages/login-ondark.png +0 -0
- package/assets/images/pages/login-onlight.png +0 -0
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +8 -8
- package/esm2020/lib/api/models/filter-match-type.model.mjs +14 -12
- package/esm2020/lib/api/models/filter-param.model.mjs +6 -6
- package/esm2020/lib/api/models/mappers.mjs +12 -12
- package/esm2020/lib/api/models/query-mode.model.mjs +7 -7
- package/esm2020/lib/api/models/query-param.model.mjs +5 -5
- package/esm2020/lib/api/models/query-result.model.mjs +15 -15
- package/esm2020/lib/api/services/abstract-crud-api.service.mjs +1 -1
- package/esm2020/lib/api/utils/medius-rest.util.mjs +99 -47
- package/esm2020/lib/components/action/action.component.mjs +3 -3
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +6 -4
- package/esm2020/lib/components/action/route/action-route.component.mjs +3 -3
- package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +114 -0
- package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +113 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +7 -46
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +7 -39
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +1 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +6 -6
- package/esm2020/lib/components/form/index.mjs +3 -1
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +17 -0
- package/esm2020/lib/components/layout/footer.component.mjs +17 -0
- package/esm2020/lib/components/layout/index.mjs +7 -7
- package/esm2020/lib/components/layout/main-layout.component.mjs +33 -0
- package/esm2020/lib/components/layout/menu-item.component.mjs +173 -0
- package/esm2020/lib/components/layout/menu.component.mjs +20 -0
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -0
- package/esm2020/lib/components/layout/topbar.component.mjs +40 -0
- package/esm2020/lib/components/tableview/index.mjs +3 -1
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +74 -0
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -0
- package/esm2020/lib/components/tableview/table/table.component.mjs +175 -41
- package/esm2020/lib/components/tableview/tableview.component.mjs +5 -5
- package/esm2020/lib/mng-commons.module.mjs +70 -40
- package/esm2020/lib/models/config/mng-config.model.mjs +1 -1
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +1 -1
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +17 -12
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +291 -13
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +12 -3
- package/esm2020/lib/models/events/table-event.model.mjs +1 -1
- package/esm2020/lib/models/interfaces/index.mjs +2 -1
- package/esm2020/lib/models/interfaces/lookup.model.mjs +2 -0
- package/esm2020/lib/models/providers/data-provider.model.mjs +3 -3
- package/esm2020/lib/models/router/index.mjs +2 -0
- package/esm2020/lib/models/router/router.model.mjs +2 -0
- package/esm2020/lib/models/user/index.mjs +2 -0
- package/esm2020/lib/models/user/user.model.mjs +2 -0
- package/esm2020/lib/pipes/boolean.pipe.mjs +22 -0
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/services/action.service.mjs +8 -7
- package/esm2020/lib/services/commons.service.mjs +357 -0
- package/esm2020/lib/services/configuration.service.mjs +7 -7
- package/esm2020/lib/services/index.mjs +2 -4
- package/esm2020/lib/services/navigation.service.mjs +5 -6
- package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -0
- package/esm2020/lib/services/providers/config-service.provider.mjs +5 -5
- package/esm2020/lib/services/providers/formly-config.provider.mjs +2 -2
- package/esm2020/lib/utils/editor-formly.util.mjs +4 -4
- package/esm2020/lib/utils/i18n.util.mjs +37 -3
- package/esm2020/lib/utils/model.util.mjs +20 -1
- package/esm2020/lib/utils/toast.util.mjs +14 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/mediusinc-mng-commons.mjs +3404 -2526
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +3328 -2472
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/builders/query-param.builder.d.ts +9 -9
- package/lib/api/models/filter-match-type.model.d.ts +7 -5
- package/lib/api/models/filter-param.model.d.ts +3 -3
- package/lib/api/models/query-mode.model.d.ts +1 -1
- package/lib/api/models/query-param.model.d.ts +5 -5
- package/lib/api/models/query-result.model.d.ts +5 -5
- package/lib/api/services/abstract-crud-api.service.d.ts +3 -3
- package/lib/api/utils/medius-rest.util.d.ts +9 -3
- package/lib/components/action/action.component.d.ts +2 -2
- package/lib/components/action/dialog/action-dialog.component.d.ts +3 -2
- package/lib/components/action/route/action-route.component.d.ts +2 -2
- package/lib/components/form/autocomplete/mng-autocomplete.component.d.ts +36 -0
- package/lib/components/form/dropdown/mng-dropdown.component.d.ts +34 -0
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +1 -11
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -8
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +3 -3
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/layout/breadcrumb.component.d.ts +8 -0
- package/lib/components/layout/footer.component.d.ts +9 -0
- package/lib/components/layout/index.d.ts +6 -6
- package/lib/components/layout/main-layout.component.d.ts +13 -0
- package/lib/components/layout/menu-item.component.d.ts +29 -0
- package/lib/components/layout/menu.component.d.ts +10 -0
- package/lib/components/layout/services/main-layout.component.service.d.ts +65 -0
- package/lib/components/layout/topbar.component.d.ts +18 -0
- package/lib/components/tableview/index.d.ts +2 -0
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +22 -0
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -0
- package/lib/components/tableview/table/table.component.d.ts +42 -10
- package/lib/components/tableview/tableview.component.d.ts +3 -3
- package/lib/mng-commons.module.d.ts +66 -59
- package/lib/models/config/mng-config.model.d.ts +18 -1
- package/lib/models/descriptors/editor-descriptor.model.d.ts +9 -7
- package/lib/models/descriptors/table-descriptor.model.d.ts +133 -14
- package/lib/models/descriptors/tableview-descriptor.model.d.ts +6 -3
- package/lib/models/events/table-event.model.d.ts +4 -4
- package/lib/models/interfaces/index.d.ts +1 -0
- package/lib/models/interfaces/lookup.model.d.ts +17 -0
- package/lib/models/providers/data-provider.model.d.ts +10 -10
- package/lib/models/router/index.d.ts +1 -0
- package/lib/models/router/router.model.d.ts +9 -0
- package/lib/models/user/index.d.ts +1 -0
- package/lib/models/user/user.model.d.ts +8 -0
- package/lib/pipes/boolean.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/services/action.service.d.ts +3 -3
- package/lib/services/commons.service.d.ts +74 -0
- package/lib/services/configuration.service.d.ts +3 -3
- package/lib/services/index.d.ts +1 -3
- package/lib/services/navigation.service.d.ts +3 -3
- package/lib/services/providers/commons-init.provider.d.ts +2 -0
- package/lib/services/providers/config-service.provider.d.ts +3 -3
- package/lib/services/providers/formly-config.provider.d.ts +1 -1
- package/lib/utils/i18n.util.d.ts +3 -0
- package/lib/utils/model.util.d.ts +2 -0
- package/lib/utils/toast.util.d.ts +2 -1
- package/mediusinc-mng-commons-0.1.0.tgz +0 -0
- package/package.json +37 -36
- package/public-api.d.ts +2 -0
- package/scss/common/layout/_breadcrumb.scss +96 -0
- package/scss/common/layout/_config.scss +101 -0
- package/scss/common/layout/_dashboard.scss +16 -0
- package/scss/common/layout/_exception.scss +131 -0
- package/scss/common/layout/_footer.scss +29 -0
- package/scss/common/layout/_help.scss +157 -0
- package/scss/common/layout/_inlinemenu.scss +55 -0
- package/scss/common/layout/_invoice.scss +176 -0
- package/scss/common/layout/_landing.scss +639 -0
- package/scss/common/layout/_layout_dark.scss +23 -0
- package/scss/common/layout/_layout_light.scss +23 -0
- package/scss/common/layout/_loader.scss +18 -0
- package/scss/common/layout/_login.scss +106 -0
- package/scss/common/layout/_main.scss +45 -0
- package/scss/common/layout/_mixins.scss +214 -0
- package/scss/common/layout/_rightmenu.scss +125 -0
- package/scss/common/layout/_topbar.scss +189 -0
- package/scss/common/layout/_typography.scss +63 -0
- package/scss/common/layout/_utils.scss +96 -0
- package/scss/common/layout/_widgets.scss +391 -0
- package/scss/common/layout/menu/_menu.scss +7 -0
- package/scss/common/layout/menu/_menu_common.scss +183 -0
- package/scss/common/layout/menu/_menu_overlay.scss +52 -0
- package/scss/common/layout/menu/_menu_sidebar.scss +232 -0
- package/scss/common/layout/menu/_menu_slim.scss +138 -0
- package/scss/common/layout/menu/_menu_static.scss +70 -0
- package/scss/common/layout/menu/_menu_theme.scss +365 -0
- package/scss/common/theme/_theme_dark.scss +5 -0
- package/scss/common/theme/_theme_light.scss +5 -0
- package/scss/common/theme/designer/_colors.scss +18 -0
- package/scss/common/theme/designer/_common.scss +40 -0
- package/scss/common/theme/designer/_components.scss +101 -0
- package/scss/common/theme/designer/_mixins.scss +174 -0
- package/scss/common/theme/designer/components/button/_button.scss +560 -0
- package/scss/common/theme/designer/components/button/_speeddial.scss +79 -0
- package/scss/common/theme/designer/components/button/_splitbutton.scss +1 -0
- package/scss/common/theme/designer/components/data/_carousel.scss +37 -0
- package/scss/common/theme/designer/components/data/_datatable.scss +266 -0
- package/scss/common/theme/designer/components/data/_dataview.scss +55 -0
- package/scss/common/theme/designer/components/data/_filter.scss +138 -0
- package/scss/common/theme/designer/components/data/_fullcalendar.scss +324 -0
- package/scss/common/theme/designer/components/data/_orderlist.scss +91 -0
- package/scss/common/theme/designer/components/data/_organizationchart.scss +50 -0
- package/scss/common/theme/designer/components/data/_paginator.scss +83 -0
- package/scss/common/theme/designer/components/data/_picklist.scss +91 -0
- package/scss/common/theme/designer/components/data/_timeline.scss +38 -0
- package/scss/common/theme/designer/components/data/_tree.scss +144 -0
- package/scss/common/theme/designer/components/data/_treetable.scss +242 -0
- package/scss/common/theme/designer/components/data/_virtualscroller.scss +28 -0
- package/scss/common/theme/designer/components/file/_fileupload.scss +58 -0
- package/scss/common/theme/designer/components/input/_autocomplete.scss +103 -0
- package/scss/common/theme/designer/components/input/_calendar.scss +212 -0
- package/scss/common/theme/designer/components/input/_cascadeselect.scss +98 -0
- package/scss/common/theme/designer/components/input/_checkbox.scss +85 -0
- package/scss/common/theme/designer/components/input/_chips.scss +41 -0
- package/scss/common/theme/designer/components/input/_colorpicker.scss +19 -0
- package/scss/common/theme/designer/components/input/_dropdown.scss +136 -0
- package/scss/common/theme/designer/components/input/_editor.scss +122 -0
- package/scss/common/theme/designer/components/input/_inputgroup.scss +69 -0
- package/scss/common/theme/designer/components/input/_inputmask.scss +3 -0
- package/scss/common/theme/designer/components/input/_inputnumber.scss +3 -0
- package/scss/common/theme/designer/components/input/_inputswitch.scss +58 -0
- package/scss/common/theme/designer/components/input/_inputtext.scss +97 -0
- package/scss/common/theme/designer/components/input/_listbox.scss +82 -0
- package/scss/common/theme/designer/components/input/_multiselect.scss +164 -0
- package/scss/common/theme/designer/components/input/_password.scss +33 -0
- package/scss/common/theme/designer/components/input/_radiobutton.scss +78 -0
- package/scss/common/theme/designer/components/input/_rating.scss +48 -0
- package/scss/common/theme/designer/components/input/_selectbutton.scss +50 -0
- package/scss/common/theme/designer/components/input/_slider.scss +69 -0
- package/scss/common/theme/designer/components/input/_togglebutton.scss +48 -0
- package/scss/common/theme/designer/components/input/_treeselect.scss +89 -0
- package/scss/common/theme/designer/components/menu/_breadcrumb.scss +42 -0
- package/scss/common/theme/designer/components/menu/_contextmenu.scss +50 -0
- package/scss/common/theme/designer/components/menu/_dock.scss +51 -0
- package/scss/common/theme/designer/components/menu/_megamenu.scss +102 -0
- package/scss/common/theme/designer/components/menu/_menu.scss +41 -0
- package/scss/common/theme/designer/components/menu/_menubar.scss +179 -0
- package/scss/common/theme/designer/components/menu/_panelmenu.scss +137 -0
- package/scss/common/theme/designer/components/menu/_slidemenu.scss +55 -0
- package/scss/common/theme/designer/components/menu/_steps.scss +55 -0
- package/scss/common/theme/designer/components/menu/_tabmenu.scss +49 -0
- package/scss/common/theme/designer/components/menu/_tieredmenu.scss +56 -0
- package/scss/common/theme/designer/components/messages/_inlinemessage.scss +64 -0
- package/scss/common/theme/designer/components/messages/_message.scss +102 -0
- package/scss/common/theme/designer/components/messages/_toast.scss +95 -0
- package/scss/common/theme/designer/components/misc/_avatar.scss +30 -0
- package/scss/common/theme/designer/components/misc/_badge.scss +48 -0
- package/scss/common/theme/designer/components/misc/_blockui.scss +3 -0
- package/scss/common/theme/designer/components/misc/_chip.scss +36 -0
- package/scss/common/theme/designer/components/misc/_inplace.scss +17 -0
- package/scss/common/theme/designer/components/misc/_progressbar.scss +17 -0
- package/scss/common/theme/designer/components/misc/_scrolltop.scss +20 -0
- package/scss/common/theme/designer/components/misc/_skeleton.scss +8 -0
- package/scss/common/theme/designer/components/misc/_tag.scss +33 -0
- package/scss/common/theme/designer/components/misc/_terminal.scss +11 -0
- package/scss/common/theme/designer/components/multimedia/_galleria.scss +141 -0
- package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +67 -0
- package/scss/common/theme/designer/components/overlay/_dialog.scss +63 -0
- package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +62 -0
- package/scss/common/theme/designer/components/overlay/_sidebar.scss +27 -0
- package/scss/common/theme/designer/components/overlay/_tooltip.scss +33 -0
- package/scss/common/theme/designer/components/panel/_accordion.scss +119 -0
- package/scss/common/theme/designer/components/panel/_card.scss +30 -0
- package/scss/common/theme/designer/components/panel/_divider.scss +31 -0
- package/scss/common/theme/designer/components/panel/_fieldset.scss +47 -0
- package/scss/common/theme/designer/components/panel/_panel.scss +42 -0
- package/scss/common/theme/designer/components/panel/_scrollpanel.scss +6 -0
- package/scss/common/theme/designer/components/panel/_splitter.scss +19 -0
- package/scss/common/theme/designer/components/panel/_tabview.scss +66 -0
- package/scss/common/theme/designer/components/panel/_toolbar.scss +10 -0
- package/scss/common/theme/extensions/_button.scss +99 -0
- package/scss/common/theme/extensions/_calendar.scss +18 -0
- package/scss/common/theme/extensions/_card.scss +6 -0
- package/scss/common/theme/extensions/_carousel.scss +13 -0
- package/scss/common/theme/extensions/_checkbox.scss +10 -0
- package/scss/common/theme/extensions/_contextmenu.scss +16 -0
- package/scss/common/theme/extensions/_datatable.scss +83 -0
- package/scss/common/theme/extensions/_dialog.scss +14 -0
- package/scss/common/theme/extensions/_fieldset.scss +6 -0
- package/scss/common/theme/extensions/_galleria.scss +25 -0
- package/scss/common/theme/extensions/_megamenu.scss +18 -0
- package/scss/common/theme/extensions/_menu.scss +14 -0
- package/scss/common/theme/extensions/_menubar.scss +14 -0
- package/scss/common/theme/extensions/_orderlist.scss +38 -0
- package/scss/common/theme/extensions/_paginator.scss +19 -0
- package/scss/common/theme/extensions/_panelmenu.scss +20 -0
- package/scss/common/theme/extensions/_password.scss +5 -0
- package/scss/common/theme/extensions/_picklist.scss +38 -0
- package/scss/common/theme/extensions/_radiobutton.scss +8 -0
- package/scss/common/theme/extensions/_sidebar.scss +19 -0
- package/scss/common/theme/extensions/_slidemenu.scss +10 -0
- package/scss/common/theme/extensions/_slider.scss +6 -0
- package/scss/common/theme/extensions/_steps.scss +50 -0
- package/scss/common/theme/extensions/_tieredmenu.scss +14 -0
- package/scss/common/theme/extensions/_toast.scss +6 -0
- package/scss/common/theme/extensions/_tree.scss +36 -0
- package/scss/common/theme/extensions/_treetable.scss +35 -0
- package/scss/common/theme/extensions/_vendor_extensions.scss +27 -0
- package/scss/common/variables/layout/_common.scss +10 -0
- package/scss/common/variables/layout/_layout_dark.scss +70 -0
- package/scss/common/variables/layout/_layout_light.scss +70 -0
- package/scss/common/variables/theme/_theme_dark.scss +897 -0
- package/scss/common/variables/theme/_theme_light.scss +885 -0
- package/scss/layout/default/_mng-variables-layout-dark.scss +2 -0
- package/scss/layout/default/_mng-variables-layout-light.scss +2 -0
- package/scss/layout/default/layout-dark.scss +2 -0
- package/scss/layout/default/layout-light.scss +2 -0
- package/scss/mng-commons-dark.scss +10 -0
- package/scss/mng-commons-light.scss +13 -0
- package/scss/mng-overrides/_layout_action.scss +3 -0
- package/scss/mng-overrides/_layout_dialog.scss +34 -0
- package/scss/mng-overrides/_layout_forms.scss +31 -0
- package/scss/mng-overrides/_layout_radio.scss +3 -0
- package/scss/mng-overrides/_layout_styles.scss +4 -0
- package/scss/mng-overrides/_theme_datatable.scss +9 -0
- package/scss/mng-overrides/_theme_dialog.scss +9 -0
- package/scss/mng-overrides/_theme_dropdown.scss +6 -0
- package/scss/mng-overrides/_theme_styles.scss +9 -0
- package/scss/mng-overrides/_theme_tableview.scss +94 -0
- package/scss/theme/default/_mng-variables-theme-dark.scss +8 -0
- package/scss/theme/default/_mng-variables-theme-light.scss +8 -0
- package/scss/theme/default/theme-dark.scss +2 -0
- package/scss/theme/default/theme-light.scss +2 -0
- package/esm2020/lib/components/layout/app.breadcrumb.component.mjs +0 -26
- package/esm2020/lib/components/layout/app.footer.component.mjs +0 -35
- package/esm2020/lib/components/layout/app.main.component.mjs +0 -25
- package/esm2020/lib/components/layout/app.main.component.service.mjs +0 -133
- package/esm2020/lib/components/layout/app.menu.component.mjs +0 -24
- package/esm2020/lib/components/layout/app.menuitem.component.mjs +0 -241
- package/esm2020/lib/components/layout/app.topbar.component.mjs +0 -135
- package/esm2020/lib/services/breadcrumb.service.mjs +0 -74
- package/esm2020/lib/services/menu.service.mjs +0 -37
- package/esm2020/lib/services/settings.service.mjs +0 -81
- package/lib/components/layout/app.breadcrumb.component.d.ts +0 -14
- package/lib/components/layout/app.footer.component.d.ts +0 -8
- package/lib/components/layout/app.main.component.d.ts +0 -12
- package/lib/components/layout/app.main.component.service.d.ts +0 -40
- package/lib/components/layout/app.menu.component.d.ts +0 -15
- package/lib/components/layout/app.menuitem.component.d.ts +0 -31
- package/lib/components/layout/app.topbar.component.d.ts +0 -15
- package/lib/services/breadcrumb.service.d.ts +0 -15
- package/lib/services/menu.service.d.ts +0 -16
- package/lib/services/settings.service.d.ts +0 -30
- package/mediusinc-mng-commons-0.0.1-rc.4.tgz +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { MediusFilterMatchType, MediusQueryParam } from '../';
|
|
2
|
+
export declare class MediusQueryParamBuilder {
|
|
3
3
|
private queryParam;
|
|
4
|
-
constructor(
|
|
5
|
-
static create(itemsPerPage?: number, itemsOffset?: number):
|
|
6
|
-
withItemsPerPage(itemsPerPage: number):
|
|
7
|
-
withItemsOffset(itemsOffset: number):
|
|
8
|
-
withSort(property: string, asc?: boolean):
|
|
9
|
-
withFilter(property: string, value: any, valueTo?: any, matchType?:
|
|
10
|
-
build():
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
|
|
6
|
+
withItemsPerPage(itemsPerPage: number): MediusQueryParamBuilder;
|
|
7
|
+
withItemsOffset(itemsOffset: number): MediusQueryParamBuilder;
|
|
8
|
+
withSort(property: string, asc?: boolean): MediusQueryParamBuilder;
|
|
9
|
+
withFilter(property: string, value: any, valueTo?: any, matchType?: MediusFilterMatchType, matchCaseSensitive?: boolean): MediusQueryParamBuilder;
|
|
10
|
+
build(): MediusQueryParam;
|
|
11
11
|
}
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export declare enum
|
|
12
|
+
export declare enum MediusFilterMatchType {
|
|
13
|
+
Equals,
|
|
14
|
+
NotEquals,
|
|
13
15
|
Contains,
|
|
14
16
|
EndsWith,
|
|
15
|
-
|
|
17
|
+
StartsWith,
|
|
16
18
|
FromTo,
|
|
19
|
+
SmallerThan,
|
|
20
|
+
GreaterThan,
|
|
17
21
|
In,
|
|
18
|
-
|
|
19
|
-
NotIn,
|
|
20
|
-
StartsWith
|
|
22
|
+
NotIn
|
|
21
23
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AttributeDef } from './serialization.model';
|
|
13
|
-
import {
|
|
14
|
-
export declare class
|
|
13
|
+
import { MediusFilterMatchType } from './filter-match-type.model';
|
|
14
|
+
export declare class MediusFilterParam {
|
|
15
15
|
'property'?: string;
|
|
16
16
|
'filterMatchCaseSensitive'?: boolean;
|
|
17
|
-
'filterMatchType'?:
|
|
17
|
+
'filterMatchType'?: MediusFilterMatchType;
|
|
18
18
|
'filterValue'?: object;
|
|
19
19
|
'filterValueTo'?: object;
|
|
20
20
|
static discriminator: string | undefined;
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { MediusFilterParam } from './filter-param.model';
|
|
13
|
+
import { MediusQueryMode } from './query-mode.model';
|
|
14
14
|
import { AttributeDef } from './serialization.model';
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class MediusQueryParam {
|
|
16
16
|
'filterAllParam'?: string;
|
|
17
17
|
'filterAllProperties'?: Array<string>;
|
|
18
|
-
'filterParams'?: Array<
|
|
18
|
+
'filterParams'?: Array<MediusFilterParam>;
|
|
19
19
|
'groupByProperties'?: Array<string>;
|
|
20
20
|
'itemsOffset': number;
|
|
21
21
|
'itemsPerPage': number;
|
|
22
|
-
'queryMode'?:
|
|
22
|
+
'queryMode'?: MediusQueryMode;
|
|
23
23
|
'selectInTwoSteps'?: boolean;
|
|
24
24
|
'sortAsc'?: Array<boolean>;
|
|
25
25
|
'sortEnumByOrdinal'?: boolean;
|
|
@@ -10,27 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AttributeDef } from './serialization.model';
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class MediusQueryResultBase {
|
|
14
14
|
'selectInTwoSteps'?: boolean;
|
|
15
15
|
'allDataCount'?: number;
|
|
16
16
|
static discriminator: string | undefined;
|
|
17
17
|
static attributeTypeMap: Array<AttributeDef>;
|
|
18
18
|
}
|
|
19
|
-
export declare class
|
|
19
|
+
export declare class MediusQueryResultWithObject extends MediusQueryResultBase {
|
|
20
20
|
'pageData'?: Array<object>;
|
|
21
21
|
static discriminator: string | undefined;
|
|
22
22
|
static attributeTypeMap: Array<AttributeDef>;
|
|
23
23
|
static getAttributeTypeMap(): AttributeDef[];
|
|
24
24
|
}
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class MediusQueryResult<T> extends MediusQueryResultBase implements IMediusQueryResult<T> {
|
|
26
26
|
'pageData'?: Array<T>;
|
|
27
27
|
static discriminator: string | undefined;
|
|
28
28
|
static attributeTypeMapBase: Array<AttributeDef>;
|
|
29
29
|
static attributeTypeMap: Array<AttributeDef>;
|
|
30
30
|
static getAttributeTypeMap(): AttributeDef[];
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
32
|
+
export interface IMediusQueryResult<T> {
|
|
33
33
|
selectInTwoSteps?: boolean;
|
|
34
34
|
allDataCount?: number;
|
|
35
|
-
pageData?: Array<
|
|
35
|
+
pageData?: Array<T>;
|
|
36
36
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { MediusQueryParam, MediusQueryResult } from '../models';
|
|
4
4
|
import { ClassType } from '../../models/types';
|
|
5
|
-
export declare abstract class AbstractCrudApiService<T, QRT extends
|
|
5
|
+
export declare abstract class AbstractCrudApiService<T, QRT extends MediusQueryResult<T>> {
|
|
6
6
|
protected type: ClassType<T>;
|
|
7
7
|
protected queryResultType: ClassType<QRT>;
|
|
8
8
|
protected http: HttpClient;
|
|
@@ -16,7 +16,7 @@ export declare abstract class AbstractCrudApiService<T, QRT extends QueryResult<
|
|
|
16
16
|
protected getGetByIdGetPath(id: any): string;
|
|
17
17
|
protected getRemoveDeletePath(id: any, item: T): string;
|
|
18
18
|
createPost(item: T): Observable<T>;
|
|
19
|
-
getAllPost(queryParam?:
|
|
19
|
+
getAllPost(queryParam?: MediusQueryParam): Observable<QRT>;
|
|
20
20
|
getByIdGet(id: any): Observable<T>;
|
|
21
21
|
updatePut(id: any, item: T): Observable<T>;
|
|
22
22
|
removeDelete(id: any, item: T): Observable<any>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { Params } from '@angular/router';
|
|
1
2
|
import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
|
|
2
|
-
import {
|
|
3
|
+
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
4
|
+
import { FilterDescriptor } from '../../models/descriptors';
|
|
3
5
|
export declare class MediusRestUtil {
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
+
static readonly matchModeMapping: Array<[string, string, MediusFilterMatchType]>;
|
|
7
|
+
static fromAngularQueryParamsToMediusQueryParams(params: Params, filterDescriptors: Array<FilterDescriptor<any>>, defaultItemsPerPage?: number, defaultOffset?: number): MediusQueryParam;
|
|
8
|
+
static fromPrimeLazyLoadEventToAngularQueryParams(event: LazyLoadEvent, defaultItemsPerPage?: number, defaultOffset?: number): Params;
|
|
9
|
+
static fromPrimeLazyLoadEventToMediusQueryParams(event: LazyLoadEvent): MediusQueryParam;
|
|
10
|
+
static addMediusFilterFromPrimeFilterMetadata(queryParamBuilder: MediusQueryParamBuilder, property: string, filterMetadata: FilterMetadata): void;
|
|
11
|
+
static getMediusFilterMatchTypeFromPrimeMatchMode(matchMode: string): MediusFilterMatchType;
|
|
6
12
|
}
|
|
@@ -7,7 +7,7 @@ import { IdType } from '../../models/types';
|
|
|
7
7
|
import { ActionData } from '../../models/action';
|
|
8
8
|
import { ActionDescriptor } from '../../models/descriptors';
|
|
9
9
|
import { IConfirmationService } from '../../models/interfaces';
|
|
10
|
-
import {
|
|
10
|
+
import { MngActionService } from '../../services';
|
|
11
11
|
import { TableviewComponentService } from '../tableview/tableview.component.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class ActionComponent<T, S> implements OnInit, IConfirmationService {
|
|
@@ -26,7 +26,7 @@ export declare class ActionComponent<T, S> implements OnInit, IConfirmationServi
|
|
|
26
26
|
$isVisible: Observable<boolean>;
|
|
27
27
|
$isEnabled: Observable<boolean>;
|
|
28
28
|
$label: Observable<string | null>;
|
|
29
|
-
constructor(route: ActivatedRoute, translate: TranslateService, actionService:
|
|
29
|
+
constructor(route: ActivatedRoute, translate: TranslateService, actionService: MngActionService, confirmationService: ConfirmationService, tableviewService: TableviewComponentService<T, S>);
|
|
30
30
|
ngOnInit(): void;
|
|
31
31
|
triggerAction(event: Event): void;
|
|
32
32
|
getConfirmationService(): ConfirmationService;
|
|
@@ -7,7 +7,7 @@ import { ActionEditorDescriptor } from '../../../models/descriptors';
|
|
|
7
7
|
import { IdType } from '../../../models/types';
|
|
8
8
|
import { IEditorDataProvider } from '../../../models/providers';
|
|
9
9
|
import { MngEditorSubmitEvent } from '../../../models/events';
|
|
10
|
-
import {
|
|
10
|
+
import { MngActionService, MngCommonsService } from '../../../services';
|
|
11
11
|
import { TemplateDirective } from '../../../directives';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class ActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
@@ -16,6 +16,7 @@ export declare class ActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
|
16
16
|
dialogRef: DynamicDialogRef;
|
|
17
17
|
dialogConfig: DynamicDialogConfig;
|
|
18
18
|
private actionService;
|
|
19
|
+
private mngCommonsService;
|
|
19
20
|
action: ActionEditorDescriptor<T>;
|
|
20
21
|
itemId?: IdType;
|
|
21
22
|
item?: T;
|
|
@@ -35,7 +36,7 @@ export declare class ActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
|
35
36
|
private tableviewService?;
|
|
36
37
|
private sourceComponent;
|
|
37
38
|
private subscriptions;
|
|
38
|
-
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService:
|
|
39
|
+
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService, mngCommonsService: MngCommonsService);
|
|
39
40
|
ngOnInit(): void;
|
|
40
41
|
ngOnDestroy(): void;
|
|
41
42
|
onSubmit(event: MngEditorSubmitEvent<T>): void;
|
|
@@ -3,7 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
3
3
|
import { ConfirmationService } from 'primeng/api';
|
|
4
4
|
import { ActionDescriptor } from '../../../models/descriptors';
|
|
5
5
|
import { IConfirmationService } from '../../../models/interfaces';
|
|
6
|
-
import {
|
|
6
|
+
import { MngActionService, MngNavigationService } from '../../../services';
|
|
7
7
|
import { TableviewComponentService } from '../../tableview/tableview.component.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ActionRouteComponent<T, S> implements OnInit, OnDestroy, IConfirmationService {
|
|
@@ -19,7 +19,7 @@ export declare class ActionRouteComponent<T, S> implements OnInit, OnDestroy, IC
|
|
|
19
19
|
private dialogCloseSubscription?;
|
|
20
20
|
private subscriptions;
|
|
21
21
|
cmpId: string;
|
|
22
|
-
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService:
|
|
22
|
+
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
ngOnDestroy(): void;
|
|
25
25
|
getConfirmationService(): ConfirmationService;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ILookupDataProvider } from '../../../models/providers';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
+
export declare class MngAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
private injector;
|
|
9
|
+
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
+
dataKeyProperty?: string;
|
|
11
|
+
itemsLabelProperty?: string;
|
|
12
|
+
multiselect: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
className: string | null;
|
|
15
|
+
dropdownClassName: string | null;
|
|
16
|
+
onChange: EventEmitter<any>;
|
|
17
|
+
private primeAutocomplete?;
|
|
18
|
+
private suggestionsSubject;
|
|
19
|
+
private searchSubscription;
|
|
20
|
+
private dataProviderService;
|
|
21
|
+
private onChangeFn;
|
|
22
|
+
private onTouchedFn;
|
|
23
|
+
autocompleteFormControl: FormControl;
|
|
24
|
+
suggestions$: Observable<Array<any>>;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
constructor(injector: Injector);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
onSearch(event: any): void;
|
|
29
|
+
onSelect(value: any): void;
|
|
30
|
+
registerOnChange(fn: any): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
writeValue(obj: any): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ILookupDataProvider } from '../../../models/providers';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const MNG_DROPDOWN_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
+
export declare class MngDropdownComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
private injector;
|
|
9
|
+
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
+
dataKeyProperty?: string;
|
|
11
|
+
itemsLabelProperty?: string;
|
|
12
|
+
itemsValueProperty?: string;
|
|
13
|
+
multiselect: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
showClear: boolean;
|
|
16
|
+
className: string | null;
|
|
17
|
+
dropdownClassName: string | null;
|
|
18
|
+
onChange: EventEmitter<any>;
|
|
19
|
+
private primeDropdown?;
|
|
20
|
+
private itemsSubject;
|
|
21
|
+
private dataProviderService;
|
|
22
|
+
private onChangeFn;
|
|
23
|
+
private onTouchedFn;
|
|
24
|
+
dropdownFormControl: FormControl;
|
|
25
|
+
items$: Observable<Array<any>>;
|
|
26
|
+
constructor(injector: Injector);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(fn: any): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
writeValue(obj: any): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
34
|
+
}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import { Injector, OnInit } from '@angular/core';
|
|
2
1
|
import { FormControl } from '@angular/forms';
|
|
3
2
|
import { FieldType } from '@ngx-formly/core';
|
|
4
|
-
import { Observable, Subject, Subscription } from 'rxjs';
|
|
5
3
|
import { FieldLookupDescriptor } from '../../../../../models/descriptors';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormlyFieldAutocompleteComponent<T> extends FieldType
|
|
8
|
-
private injector;
|
|
5
|
+
export declare class FormlyFieldAutocompleteComponent<T> extends FieldType {
|
|
9
6
|
aFormControl: FormControl;
|
|
10
7
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
11
|
-
suggestionsSubject: Subject<Array<any>>;
|
|
12
|
-
suggestionsAsync: Observable<Array<any>>;
|
|
13
|
-
searchSubscription: Subscription | null;
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
private dataProviderService;
|
|
16
|
-
constructor(injector: Injector);
|
|
17
8
|
ngOnInit(): void;
|
|
18
|
-
onSearch(event: any): void;
|
|
19
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldAutocompleteComponent<any>, never>;
|
|
20
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
|
|
21
11
|
}
|
package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
1
|
import { FormControl } from '@angular/forms';
|
|
3
2
|
import { FieldType } from '@ngx-formly/core';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
3
|
import { FieldLookupDescriptor } from '../../../../../models/descriptors';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class FormlyFieldDropdownComponent<T> extends FieldType {
|
|
8
|
-
private injector;
|
|
9
6
|
dFormControl: FormControl;
|
|
10
7
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
11
|
-
itemsSubject: Subject<Array<any>>;
|
|
12
|
-
itemsAsync: Observable<Array<any>>;
|
|
13
|
-
useDataProvider: boolean;
|
|
14
|
-
private dataProviderService;
|
|
15
|
-
constructor(injector: Injector);
|
|
16
8
|
ngOnInit(): void;
|
|
17
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDropdownComponent<any>, never>;
|
|
18
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
|
|
@@ -2,7 +2,7 @@ import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import { Message } from 'primeng/api';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { MediusQueryResult } from '../../../../../api/models';
|
|
6
6
|
import { FieldManyToManyEditorDescriptor } from '../../../../../models/descriptors';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class FormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
|
|
@@ -10,8 +10,8 @@ export declare class FormlyFieldTableDialogMultiselectComponent<T, ET> extends F
|
|
|
10
10
|
descriptor: FieldManyToManyEditorDescriptor<T, ET>;
|
|
11
11
|
itemsSubject: Subject<Array<T>>;
|
|
12
12
|
itemsAsync: Observable<Array<T>>;
|
|
13
|
-
addItemsSubject: Subject<
|
|
14
|
-
addItemsAsync: Observable<
|
|
13
|
+
addItemsSubject: Subject<MediusQueryResult<T>>;
|
|
14
|
+
addItemsAsync: Observable<MediusQueryResult<T>>;
|
|
15
15
|
dialogUseDataProvider: boolean;
|
|
16
16
|
private dialogDataProviderService;
|
|
17
17
|
private dialogIsLoadingSubject;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngBreadcrumbComponent {
|
|
4
|
+
mngCommons: MngCommonsService;
|
|
5
|
+
constructor(mngCommons: MngCommonsService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngBreadcrumbComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngBreadcrumbComponent, "mng-breadcrumb", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngFooterComponent {
|
|
4
|
+
mngCommons: MngCommonsService;
|
|
5
|
+
currentYear: number;
|
|
6
|
+
constructor(mngCommons: MngCommonsService);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFooterComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFooterComponent, "mng-footer", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './breadcrumb.component';
|
|
2
|
+
export * from './footer.component';
|
|
3
|
+
export * from './main-layout.component';
|
|
4
|
+
export * from './menu.component';
|
|
5
|
+
export * from './menu-item.component';
|
|
6
|
+
export * from './topbar.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { MngCommonsService } from '../../services';
|
|
3
|
+
import { MainLayoutComponentService } from './services/main-layout.component.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MngMainLayoutComponent implements AfterViewInit {
|
|
6
|
+
mngCommons: MngCommonsService;
|
|
7
|
+
mainLayoutService: MainLayoutComponentService;
|
|
8
|
+
constructor(mngCommons: MngCommonsService, mainLayoutService: MainLayoutComponentService);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
onWindowResize(event: UIEvent): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngMainLayoutComponent, "mng-main-layout", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { MngCommonsService } from '../../services';
|
|
5
|
+
import { MainLayoutComponentService } from './services/main-layout.component.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
8
|
+
router: Router;
|
|
9
|
+
private cd;
|
|
10
|
+
mngCommons: MngCommonsService;
|
|
11
|
+
mainLayoutService: MainLayoutComponentService;
|
|
12
|
+
item: any;
|
|
13
|
+
index: number;
|
|
14
|
+
root: boolean;
|
|
15
|
+
parentKey: string | null;
|
|
16
|
+
active: boolean;
|
|
17
|
+
hover: boolean;
|
|
18
|
+
menuSourceSubscription: Subscription;
|
|
19
|
+
menuResetSubscription: Subscription;
|
|
20
|
+
key: string;
|
|
21
|
+
constructor(router: Router, cd: ChangeDetectorRef, mngCommons: MngCommonsService, mainLayoutService: MainLayoutComponentService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
updateActiveStateFromRoute(): void;
|
|
24
|
+
itemClick(event: Event): void;
|
|
25
|
+
onMouseEnter(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuItemComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../services';
|
|
2
|
+
import { MainLayoutComponentService } from './services/main-layout.component.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngMenuComponent {
|
|
5
|
+
mngCommons: MngCommonsService;
|
|
6
|
+
mainLayoutService: MainLayoutComponentService;
|
|
7
|
+
constructor(mngCommons: MngCommonsService, mainLayoutService: MainLayoutComponentService);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuComponent, "mng-menu", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../../services';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MainLayoutComponentService {
|
|
5
|
+
private mngCommons;
|
|
6
|
+
private _overlayMenuActive;
|
|
7
|
+
private _overlayMenuActiveSubject;
|
|
8
|
+
private _staticMenuDesktopInactive;
|
|
9
|
+
private _staticMenuDesktopInactiveSubject;
|
|
10
|
+
private _staticMenuMobileActive;
|
|
11
|
+
private _staticMenuMobileActiveSubject;
|
|
12
|
+
private _sidebarActive;
|
|
13
|
+
private _sidebarActiveSubject;
|
|
14
|
+
private _sidebarStatic;
|
|
15
|
+
private _sidebarStaticSubject;
|
|
16
|
+
private _menuClick;
|
|
17
|
+
private _menuHoverActive;
|
|
18
|
+
private _topbarItemClick;
|
|
19
|
+
private _activeTopbarItem;
|
|
20
|
+
private _activeTopbarItemSubject;
|
|
21
|
+
private _pinActive;
|
|
22
|
+
private _pinActiveSubject;
|
|
23
|
+
private _innerWidth;
|
|
24
|
+
private _innerWidthSubject;
|
|
25
|
+
constructor(mngCommons: MngCommonsService);
|
|
26
|
+
get overlayMenuActive$(): Observable<boolean>;
|
|
27
|
+
set overlayMenuActive(value: boolean);
|
|
28
|
+
get staticMenuDesktopInactive$(): Observable<boolean>;
|
|
29
|
+
set staticMenuDesktopInactive(value: boolean);
|
|
30
|
+
get staticMenuMobileActive$(): Observable<boolean>;
|
|
31
|
+
set staticMenuMobileActive(value: boolean);
|
|
32
|
+
get sidebarActive$(): Observable<boolean>;
|
|
33
|
+
set sidebarActive(value: boolean);
|
|
34
|
+
get sidebarStatic$(): Observable<boolean>;
|
|
35
|
+
set sidebarStatic(value: boolean);
|
|
36
|
+
set menuHoverActive(value: boolean);
|
|
37
|
+
set topbarItemClick(value: boolean);
|
|
38
|
+
get activeTopbarItem$(): Observable<any>;
|
|
39
|
+
set activeTopbarItem(value: any);
|
|
40
|
+
get pinActive$(): Observable<boolean>;
|
|
41
|
+
set pinActive(value: boolean);
|
|
42
|
+
get isDesktop$(): Observable<boolean>;
|
|
43
|
+
get isMobile$(): Observable<boolean>;
|
|
44
|
+
set innerWidth(value: number);
|
|
45
|
+
onLayoutClick(): void;
|
|
46
|
+
onSidebarClick(event: any): void;
|
|
47
|
+
onToggleMenu(event: any): void;
|
|
48
|
+
onSidebarMouseOver(event: any): void;
|
|
49
|
+
onSidebarMouseLeave(event: any): void;
|
|
50
|
+
onMenuButtonClick(event: any): void;
|
|
51
|
+
onTopbarItemClick(event: any, item: any): void;
|
|
52
|
+
onTopbarSubItemClick(event: any): void;
|
|
53
|
+
/**
|
|
54
|
+
* Checks if is desktop width, DO NOT use within HTML templates or within functions called by HTML templates
|
|
55
|
+
*/
|
|
56
|
+
isDesktop(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Checks if is mobile width, DO NOT use within HTML templates or within functions called by HTML templates
|
|
59
|
+
*/
|
|
60
|
+
isMobile(): boolean;
|
|
61
|
+
private isWidthDesktop;
|
|
62
|
+
private isWidthMobile;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainLayoutComponentService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MainLayoutComponentService>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MainLayoutComponentService } from './services/main-layout.component.service';
|
|
3
|
+
import { MngCommonsService } from '../../services';
|
|
4
|
+
import { IUser } from '../../models/user';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MngTopbarComponent implements OnInit {
|
|
7
|
+
mngCommons: MngCommonsService;
|
|
8
|
+
mainLayoutService: MainLayoutComponentService;
|
|
9
|
+
languages: Array<string>;
|
|
10
|
+
selectedLanguage: string;
|
|
11
|
+
user?: IUser;
|
|
12
|
+
constructor(mngCommons: MngCommonsService, mainLayoutService: MainLayoutComponentService);
|
|
13
|
+
switchLanguage(language: string): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
logout(user: IUser, event: Event): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngTopbarComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTopbarComponent, "mng-topbar", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FilterDescriptor, FilterLookupDescriptor, TableDescriptor } from '../../../../models/descriptors';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
6
|
+
* and these must be propagated through to this component and beyond to primeNG.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MngTableColumnFilterComponent<T> implements OnInit {
|
|
9
|
+
readonly lookupTypeDropdown: FilterLookupDescriptor.LookupTypeEnum;
|
|
10
|
+
readonly lookupTypeAutocomplete: FilterLookupDescriptor.LookupTypeEnum;
|
|
11
|
+
descriptor: FilterDescriptor<T>;
|
|
12
|
+
display: TableDescriptor.FilterDisplayEnum;
|
|
13
|
+
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
14
|
+
primeField: string;
|
|
15
|
+
primeType: string;
|
|
16
|
+
primeDefaultMatchMode: string;
|
|
17
|
+
primeDisplay: string;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": "descriptor"; "display": "display"; }, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnDescriptor } from '../../../../models/descriptors';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngTableColumnValueComponent<T, TT> {
|
|
4
|
+
readonly columnTypeString: ColumnDescriptor.TypeEnum;
|
|
5
|
+
readonly columnTypeNumber: ColumnDescriptor.TypeEnum;
|
|
6
|
+
readonly columnTypeBoolean: ColumnDescriptor.TypeEnum;
|
|
7
|
+
readonly columnTypeDate: ColumnDescriptor.TypeEnum;
|
|
8
|
+
descriptor: ColumnDescriptor<T, TT>;
|
|
9
|
+
item: any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnValueComponent<any, any>, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": "descriptor"; "item": "item"; }, {}, never, never>;
|
|
12
|
+
}
|