@mediusinc/mng-commons 0.0.1-rc.2 → 0.2.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/README.md +97 -2
- package/assets/i18n/en.json +156 -0
- package/assets/i18n/sl.json +156 -0
- 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/assets/templates/tableview-route.component.html +5 -0
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +9 -10
- 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 → crud-api.abstract.service.mjs} +2 -2
- package/esm2020/lib/api/services/index.mjs +2 -2
- package/esm2020/lib/api/utils/medius-rest.util.mjs +99 -47
- package/esm2020/lib/api/utils/object-serializer.util.mjs +1 -1
- package/esm2020/lib/components/action/action.component.mjs +10 -8
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +24 -24
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
- package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
- package/esm2020/lib/components/action/models/index.mjs +3 -0
- package/esm2020/lib/components/action/route/action-route.component.mjs +9 -9
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +24 -23
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +9 -48
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +9 -41
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +33 -18
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +11 -13
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/index.mjs +3 -1
- package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
- package/esm2020/lib/components/form/models/index.mjs +2 -0
- 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 +54 -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/index.mjs +2 -0
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -0
- package/esm2020/lib/components/layout/topbar.component.mjs +59 -0
- package/esm2020/lib/components/tableview/index.mjs +3 -1
- package/esm2020/lib/components/tableview/models/index.mjs +2 -0
- package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -9
- package/esm2020/lib/components/tableview/services/index.mjs +2 -0
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
- 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 +180 -46
- package/esm2020/lib/components/tableview/tableview.component.mjs +13 -13
- package/esm2020/lib/config/formly.config.mjs +35 -64
- package/esm2020/lib/{models/config → config/models}/index.mjs +1 -1
- package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
- package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
- package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
- package/esm2020/lib/data-providers/index.mjs +6 -0
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
- package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
- package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
- package/esm2020/lib/descriptors/field.validator.mjs +21 -0
- package/esm2020/lib/descriptors/index.mjs +8 -0
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
- package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
- package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
- package/esm2020/lib/directives/component.directive.mjs +23 -0
- package/esm2020/lib/directives/index.mjs +2 -1
- package/esm2020/lib/directives/template.directive.mjs +11 -7
- package/esm2020/lib/mng-commons.module.mjs +201 -129
- package/esm2020/lib/models/index.mjs +3 -0
- package/esm2020/lib/models/router.model.mjs +2 -0
- package/esm2020/lib/models/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/pipes/property-path.pipe.mjs +5 -5
- package/esm2020/lib/services/action.service.mjs +55 -25
- package/esm2020/lib/services/commons.service.mjs +353 -0
- package/esm2020/lib/services/configuration.service.mjs +8 -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 +14 -6
- package/esm2020/lib/services/providers/formly-config.provider.mjs +2 -2
- package/esm2020/lib/services/providers/index.mjs +2 -1
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
- package/esm2020/lib/services/tokens/index.mjs +3 -0
- package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
- package/esm2020/lib/types/index.mjs +3 -0
- package/esm2020/lib/types/type.decorator.mjs +7 -0
- package/esm2020/lib/types/type.model.mjs +2 -0
- package/esm2020/lib/utils/editor-formly.util.mjs +23 -12
- package/esm2020/lib/utils/i18n.util.mjs +63 -13
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/model.util.mjs +20 -1
- package/esm2020/lib/utils/toast.util.mjs +39 -0
- package/esm2020/lib/utils/type.util.mjs +2 -6
- package/esm2020/public-api.mjs +12 -9
- package/fesm2015/mediusinc-mng-commons.mjs +4552 -3358
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +4520 -3356
- 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 → crud-api.abstract.service.d.ts} +4 -4
- package/lib/api/services/index.d.ts +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +9 -3
- package/lib/api/utils/object-serializer.util.d.ts +1 -1
- package/lib/components/action/action.component.d.ts +10 -10
- package/lib/components/action/dialog/action-dialog.component.d.ts +13 -15
- package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +2 -2
- package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +3 -3
- package/lib/components/action/models/index.d.ts +2 -0
- package/lib/components/action/route/action-route.component.d.ts +8 -8
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +36 -0
- package/lib/components/form/dropdown/dropdown.component.d.ts +34 -0
- package/lib/components/form/editor/form-editor.component.d.ts +9 -7
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +4 -14
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -12
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -3
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +7 -7
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +3 -3
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/models/form-editor.event.d.ts +5 -0
- package/lib/components/form/models/index.d.ts +1 -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 +21 -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/index.d.ts +1 -0
- package/lib/components/layout/services/main-layout.component.service.d.ts +65 -0
- package/lib/components/layout/topbar.component.d.ts +25 -0
- package/lib/components/tableview/index.d.ts +2 -0
- package/lib/components/tableview/models/index.d.ts +1 -0
- package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +5 -5
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -3
- package/lib/components/tableview/services/index.d.ts +1 -0
- package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +4 -2
- 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 +45 -13
- package/lib/components/tableview/tableview.component.d.ts +11 -12
- package/lib/config/formly.config.d.ts +8 -2
- package/lib/{models/config → config/models}/index.d.ts +0 -0
- package/lib/config/models/mng-config.model.d.ts +34 -0
- package/lib/data-providers/base.data-provider.d.ts +17 -0
- package/lib/data-providers/editor.data-provider.d.ts +25 -0
- package/lib/data-providers/index.d.ts +5 -0
- package/lib/data-providers/lookup.data-provider.d.ts +14 -0
- package/lib/data-providers/table.data-provider.d.ts +6 -0
- package/lib/data-providers/tableview.data-provider.d.ts +15 -0
- package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +27 -3
- package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +18 -11
- package/lib/{models/validators → descriptors}/field.validator.d.ts +0 -0
- package/lib/descriptors/index.d.ts +7 -0
- package/lib/descriptors/lookup.descriptor.d.ts +17 -0
- package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +0 -0
- package/lib/descriptors/table.descriptor.d.ts +164 -0
- package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +7 -6
- package/lib/directives/component.directive.d.ts +11 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/template.directive.d.ts +7 -5
- package/lib/mng-commons.module.d.ts +70 -65
- package/lib/models/index.d.ts +2 -0
- package/lib/models/router.model.d.ts +14 -0
- package/lib/models/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/pipes/property-path.pipe.d.ts +3 -3
- package/lib/services/action.service.d.ts +10 -10
- package/lib/services/commons.service.d.ts +72 -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 +4 -4
- package/lib/services/providers/formly-config.provider.d.ts +2 -2
- package/lib/services/providers/index.d.ts +1 -0
- package/lib/services/tokens/browser-storage.token.d.ts +2 -0
- package/lib/services/tokens/index.d.ts +2 -0
- package/lib/services/tokens/module-config.token.d.ts +3 -0
- package/lib/{models/types → types}/index.d.ts +0 -0
- package/lib/{models/types → types}/type.decorator.d.ts +0 -0
- package/lib/{models/types → types}/type.model.d.ts +0 -0
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/i18n.util.d.ts +8 -4
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/model.util.d.ts +3 -1
- package/lib/utils/toast.util.d.ts +13 -0
- package/lib/utils/type.util.d.ts +1 -1
- package/mediusinc-mng-commons-0.2.0.tgz +0 -0
- package/package.json +4 -4
- package/public-api.d.ts +10 -7
- 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 +12 -0
- package/scss/common/variables/layout/_layout_dark.scss +71 -0
- package/scss/common/variables/layout/_layout_light.scss +71 -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 +5 -0
- package/scss/mng-commons-light.scss +5 -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 -27
- 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 -38
- package/esm2020/lib/components/layout/app.menuitem.component.mjs +0 -243
- package/esm2020/lib/components/layout/app.topbar.component.mjs +0 -135
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
- package/esm2020/lib/models/action/action.model.mjs +0 -58
- package/esm2020/lib/models/action/index.mjs +0 -2
- package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -283
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -647
- package/esm2020/lib/models/descriptors/index.mjs +0 -6
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -123
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -124
- package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
- package/esm2020/lib/models/events/index.mjs +0 -3
- package/esm2020/lib/models/events/table-event.model.mjs +0 -16
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
- package/esm2020/lib/models/interfaces/index.mjs +0 -2
- package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
- package/esm2020/lib/models/providers/index.mjs +0 -2
- package/esm2020/lib/models/types/index.mjs +0 -3
- package/esm2020/lib/models/types/type.decorator.mjs +0 -8
- package/esm2020/lib/models/types/type.model.mjs +0 -2
- package/esm2020/lib/models/validators/field.validator.mjs +0 -21
- package/esm2020/lib/models/validators/index.mjs +0 -2
- package/esm2020/lib/services/breadcrumb.service.mjs +0 -21
- package/esm2020/lib/services/menu.service.mjs +0 -26
- package/esm2020/lib/services/settings.service.mjs +0 -40
- package/lib/components/layout/app.breadcrumb.component.d.ts +0 -16
- 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 -14
- package/lib/components/layout/app.menuitem.component.d.ts +0 -31
- package/lib/components/layout/app.topbar.component.d.ts +0 -16
- package/lib/models/action/index.d.ts +0 -1
- package/lib/models/config/mng-config.model.d.ts +0 -19
- package/lib/models/descriptors/index.d.ts +0 -5
- package/lib/models/descriptors/table-descriptor.model.d.ts +0 -45
- package/lib/models/events/editor-event.model.d.ts +0 -11
- package/lib/models/events/index.d.ts +0 -2
- package/lib/models/interfaces/index.d.ts +0 -1
- package/lib/models/providers/data-provider.model.d.ts +0 -62
- package/lib/models/providers/index.d.ts +0 -1
- package/lib/models/validators/index.d.ts +0 -1
- package/lib/services/breadcrumb.service.d.ts +0 -9
- package/lib/services/menu.service.d.ts +0 -11
- package/lib/services/settings.service.d.ts +0 -18
- package/mediusinc-mng-commons-0.0.1-rc.2.tgz +0 -0
package/lib/pipes/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class MngPropertyPathPipe implements PipeTransform {
|
|
4
4
|
transform(value: any, path?: string): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngPropertyPathPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngPropertyPathPipe, "propertyPath">;
|
|
7
7
|
}
|
|
@@ -4,14 +4,14 @@ import { DialogService } from 'primeng/dynamicdialog';
|
|
|
4
4
|
import { ConfirmationService } from 'primeng/api';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult, ActionTriggerResult } from '../
|
|
8
|
-
import { ActionDescriptor, ActionEditorDescriptor } from '../
|
|
9
|
-
import { MngTableCellClickEvent } from '../models
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
7
|
+
import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult, ActionTriggerResult } from '../components/action/models';
|
|
8
|
+
import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors';
|
|
9
|
+
import { MngTableCellClickEvent } from '../components/tableview/models';
|
|
10
|
+
import { TableviewComponentService } from '../components/tableview/services';
|
|
11
|
+
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
12
|
+
import { IdType } from '../types';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class MngActionService {
|
|
15
15
|
private injector;
|
|
16
16
|
private router;
|
|
17
17
|
private dialogService;
|
|
@@ -78,7 +78,7 @@ export declare class ActionService {
|
|
|
78
78
|
* @param event Target table click event.
|
|
79
79
|
* @param route Currently activate route.
|
|
80
80
|
*/
|
|
81
|
-
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route
|
|
81
|
+
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route: ActivatedRoute): Observable<ActionTriggerResult<T, unknown, IDataProvider<T, unknown>>>;
|
|
82
82
|
/**
|
|
83
83
|
* Triggers action with optional data (item, itemId, ...) and currently activated route.
|
|
84
84
|
*
|
|
@@ -87,6 +87,6 @@ export declare class ActionService {
|
|
|
87
87
|
* @param route Optional activated route.
|
|
88
88
|
*/
|
|
89
89
|
triggerAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, route?: ActivatedRoute, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionTriggerResult<T, S, IDataProvider<T, S>>>;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
91
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionService, never>;
|
|
91
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngActionService>;
|
|
92
92
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { Title } from '@angular/platform-browser';
|
|
3
|
+
import { MenuItem, PrimeNGConfig } from 'primeng/api';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { MngConfigurationService } from './configuration.service';
|
|
7
|
+
import { MngModuleConfig } from '../config/models';
|
|
8
|
+
import { IUser } from '../models';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class MngCommonsService {
|
|
11
|
+
private router;
|
|
12
|
+
private primengConfig;
|
|
13
|
+
private translate;
|
|
14
|
+
private titleService;
|
|
15
|
+
private configurationService;
|
|
16
|
+
private moduleConfig;
|
|
17
|
+
private localStorage;
|
|
18
|
+
private _menuMode;
|
|
19
|
+
private _menuModeSubject;
|
|
20
|
+
private _menuItems;
|
|
21
|
+
private _menuPinEnabled;
|
|
22
|
+
private _menuActiveKeySubject;
|
|
23
|
+
private _menuResetSubject;
|
|
24
|
+
private readonly breadcrumbHomeSubject;
|
|
25
|
+
private readonly breadcrumbsSubject;
|
|
26
|
+
private breadcrumbsTranslateSubscription?;
|
|
27
|
+
private breadcrumbHomeTranslateSubscription?;
|
|
28
|
+
private _colorScheme;
|
|
29
|
+
private _user?;
|
|
30
|
+
private userSubject;
|
|
31
|
+
constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title, configurationService: MngConfigurationService, moduleConfig: MngModuleConfig, localStorage: Storage);
|
|
32
|
+
get appName(): string;
|
|
33
|
+
get appOwner(): string;
|
|
34
|
+
get appLogoLight(): string;
|
|
35
|
+
get appLogoDark(): string;
|
|
36
|
+
get appLogoNameLight(): string;
|
|
37
|
+
get appLogoNameDark(): string;
|
|
38
|
+
get appLanguages(): string[];
|
|
39
|
+
get appLanguage(): string;
|
|
40
|
+
set appLanguage(language: string);
|
|
41
|
+
get menuModeIsStatic(): boolean;
|
|
42
|
+
get menuModeIsStatic$(): Observable<boolean>;
|
|
43
|
+
get menuModeIsOverlay(): boolean;
|
|
44
|
+
get menuModeIsOverlay$(): Observable<boolean>;
|
|
45
|
+
get menuModeIsSlim(): boolean;
|
|
46
|
+
get menuModeIsSlim$(): Observable<boolean>;
|
|
47
|
+
get menuModeIsSidebar(): boolean;
|
|
48
|
+
get menuModeIsSidebar$(): Observable<boolean>;
|
|
49
|
+
get menuActiveKey$(): Observable<string>;
|
|
50
|
+
get menuReset$(): Observable<any>;
|
|
51
|
+
get menuItems(): MenuItem[];
|
|
52
|
+
set menuItems(menuItems: MenuItem[]);
|
|
53
|
+
get menuPinEnabled(): boolean;
|
|
54
|
+
get breadcrumbHome$(): Observable<MenuItem | null>;
|
|
55
|
+
get breadcrumbs$(): Observable<MenuItem[]>;
|
|
56
|
+
get colorSchemeIsLight(): boolean;
|
|
57
|
+
get colorSchemeIsDark(): boolean;
|
|
58
|
+
get user(): IUser;
|
|
59
|
+
get user$(): Observable<IUser>;
|
|
60
|
+
set user(user: IUser);
|
|
61
|
+
initialize(): void;
|
|
62
|
+
menuChangeActiveKey(key: string): void;
|
|
63
|
+
menuReset(): void;
|
|
64
|
+
private updateBreadcrumbs;
|
|
65
|
+
private generateHomeBreadcrumb;
|
|
66
|
+
private generateBreadcrumbs;
|
|
67
|
+
private createBreadcrumb;
|
|
68
|
+
setPageTitle(title?: string): void;
|
|
69
|
+
private formatPageTitle;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsService, never>;
|
|
71
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsService>;
|
|
72
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class MngConfigurationService {
|
|
4
4
|
private http;
|
|
5
5
|
private static _instance;
|
|
6
|
-
static init(httpClient: HttpClient):
|
|
7
|
-
static get():
|
|
6
|
+
static init(httpClient: HttpClient): MngConfigurationService;
|
|
7
|
+
static get(): MngConfigurationService;
|
|
8
8
|
private projectEnvironment?;
|
|
9
9
|
private jsonEnvironments;
|
|
10
10
|
private configuration;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Router } from '@angular/router';
|
|
2
2
|
import { Location } from '@angular/common';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class MngNavigationService {
|
|
5
5
|
private router;
|
|
6
6
|
private location;
|
|
7
7
|
private history;
|
|
@@ -9,6 +9,6 @@ export declare class NavigationService {
|
|
|
9
9
|
getCurrentLocation(): string | null;
|
|
10
10
|
getPreviousLocation(): string | null;
|
|
11
11
|
back(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngNavigationService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngNavigationService>;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { MngModuleConfig } from '../../models
|
|
3
|
-
import {
|
|
4
|
-
export declare const
|
|
5
|
-
export declare function
|
|
2
|
+
import { MngModuleConfig } from '../../config/models';
|
|
3
|
+
import { MngConfigurationService } from '../configuration.service';
|
|
4
|
+
export declare const mngConfigurationServiceProvider: (httpClient: HttpClient, moduleConfig: MngModuleConfig) => MngConfigurationService;
|
|
5
|
+
export declare function mngConfigJsonAppInitializerProvider(configService: MngConfigurationService, moduleConfig: MngModuleConfig): () => import("rxjs").Observable<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import { ConfigOption } from '@ngx-formly/core';
|
|
3
|
-
import { MngModuleConfig } from '../../models
|
|
4
|
-
export declare function
|
|
3
|
+
import { MngModuleConfig } from '../../config/models';
|
|
4
|
+
export declare function mngFormlyConfigProvider(translate: TranslateService, moduleConfig?: MngModuleConfig): ConfigOption;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import { EditorDescriptor, AFieldDescriptor, FieldTabGroupDescriptor, FieldGroupDescriptor } from '../
|
|
2
|
+
import { EditorDescriptor, AFieldDescriptor, FieldTabGroupDescriptor, FieldGroupDescriptor } from '../descriptors';
|
|
3
3
|
export declare class EditorFormlyUtil {
|
|
4
4
|
static createFormlyConfigFromDescriptor(descriptor: EditorDescriptor<any>): FormlyFieldConfig[];
|
|
5
5
|
static createFormlyTabType(tabGroups: FieldTabGroupDescriptor<any>[]): FormlyFieldConfig[];
|
package/lib/utils/i18n.util.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { ActionDescriptor, ModelDescriptor } from '../descriptors';
|
|
4
4
|
export declare class I18nUtil {
|
|
5
|
-
static
|
|
5
|
+
static instantModelTranslation(translate: TranslateService, model: ModelDescriptor<any>, keyPath: string, customKey?: string, item?: any, fallbackKey?: string, i18nParams?: any): string | null;
|
|
6
|
+
static instantActionTranslation(translate: TranslateService, action: ActionDescriptor<any>, keyPath: string, customKey?: string, item?: any, fallbackKey?: string, functionNameKey?: string, i18nParams?: any): string | null;
|
|
6
7
|
static streamActionTranslation(translate: TranslateService, action: ActionDescriptor<any>, keyPath: string, customKey?: string, item?: any, fallbackKey?: string): Observable<string | null>;
|
|
7
8
|
static getActionTranslation(translate: TranslateService, action: ActionDescriptor<any>, keyPath: string, customKey?: string, item?: any, fallbackKey?: string, oneTime?: boolean): Observable<string | null>;
|
|
9
|
+
private static getModelKeysByPriority;
|
|
8
10
|
private static getActionKeysByPriority;
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
+
static getModelI18nParams(model: ModelDescriptor<any>, item: any, i18nModelName?: string, i18nParameters?: any): any;
|
|
12
|
+
static getActionI18nParams(action: ActionDescriptor<any>, item: any, i18nModelName?: string, i18nParameters?: any, functionTitle?: string): any;
|
|
13
|
+
static instantModelName(translate: TranslateService, model: ModelDescriptor<any>, singular?: boolean): string | null;
|
|
11
14
|
static getModelName(translate: TranslateService, model: ModelDescriptor<any>, oneTime?: boolean, singular?: boolean): Observable<string | null>;
|
|
12
15
|
static getModelNameKeys(model: ModelDescriptor<any>, singular?: boolean): string[];
|
|
13
16
|
private static selectKeyByPriority;
|
|
17
|
+
private static getFunctionTitle;
|
|
14
18
|
}
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ClassType } from '../
|
|
1
|
+
import { ClassType } from '../types';
|
|
2
|
+
import { ILookupDescriptor } from '../descriptors';
|
|
2
3
|
export declare class ModelUtil {
|
|
3
4
|
static findIdAttribute<T>(classType: ClassType<T>): string | null;
|
|
4
5
|
static findTitleAttribute<T>(classType: ClassType<T>): string | null;
|
|
6
|
+
static trySetLookupItemsProperties<T>(lookup: ILookupDescriptor<T>): void;
|
|
5
7
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { ActionDescriptor, TableDescriptor } from '../descriptors';
|
|
3
|
+
import { TableviewComponentService } from '../components/tableview/services';
|
|
4
|
+
export declare class ToastUtil {
|
|
5
|
+
static tableNotificationError(translationService: TranslateService, table: TableDescriptor<any>, error: any, tableview?: TableviewComponentService<any, any>): void;
|
|
6
|
+
static actionNotificationSuccess(translationService: TranslateService, action: ActionDescriptor<any>, functionName: string, customTitleKey?: string, customMessageKey?: string, tableview?: TableviewComponentService<any, any>, item?: any): void;
|
|
7
|
+
static actionNotificationError(translationService: TranslateService, action: ActionDescriptor<any>, error: any, functionName: string, tableview?: TableviewComponentService<any, any>, item?: any): void;
|
|
8
|
+
static getFormEditorWarningMessage(translationService: TranslateService, title: string, message: string): {
|
|
9
|
+
severity: string;
|
|
10
|
+
summary: any;
|
|
11
|
+
detail: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
package/lib/utils/type.util.d.ts
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^13.1.0",
|
|
6
6
|
"@angular/common": "^13.1.0",
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"@angular/router": "^13.1.0",
|
|
9
9
|
"@ngx-formly/core": "^6.0.0-next.6",
|
|
10
10
|
"@ngx-translate/core": "^14.0.0",
|
|
11
|
-
"
|
|
12
|
-
"primeng": "^13.1.0"
|
|
11
|
+
"primeng": "^13.0.0"
|
|
13
12
|
},
|
|
14
13
|
"dependencies": {
|
|
15
14
|
"tslib": "^2.3.0",
|
|
@@ -34,5 +33,6 @@
|
|
|
34
33
|
"default": "./fesm2020/mediusinc-mng-commons.mjs"
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
"sideEffects": false
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"readme": "# Angular Commons\n\nCommons knjižnica za izgradnjo uporabniškega vmesnika na ogrodju Angular.\n\n## Predhodne zahteve\n\n- Node.js (LTS v14) in npm\n- pnpm package manager (https://pnpm.io/), ki optimizira delovanje privzetega npm.\n- Zahtevane skupne odvisnosti (peer dependencies)\n - Angular (moduli `@angular/core`, `@angular/common`, `@angular/forms`, `@angular/router`) verzije `^13.1.0`\n - Ngx Formly (modul `@ngx-formly/core`) verzije `^6.0.0-next.6`\n - Ngx Translate (module `@ngx-translate/core`) verzije `^14.0.0`\n - PrimeNG (modul `primeng`) verzije `^13.0.0`\n\n## Namestitev\n\n```bash\npnpm i @mediusinc/mng-commons\n```\n\n## Lokalizacija (i18n)\n\nModul `ngx-translate` se konfigurira na končnem projektu in je na končnem projektu potrebno določiti način za load prevodov.\nPrimer konfiguracije za multi-module HTTP loader:\n\n- HTTP loader factory:\n```ts\nexport function i18nHttpLoaderFactory(http: HttpClient) {\n return new MultiTranslateHttpLoader(http, [\n {prefix: './assets/i18n/mng/', suffix: '.json'},\n {prefix: './assets/i18n/', suffix: '.json'}\n ]);\n}\n```\n\n- Konfiguracija v `AppModule`:\n```ts\nTranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: i18nHttpLoaderFactory,\n deps: [HttpClient]\n }\n})\n```\n\n- Definicijo jezikov podamo preko konfiguracije `MngCommonsModule`:\n```ts\nMngCommonsModule.forRoot({\n languages: ['en', 'sl']\n})\n```\n\nKnjižnica pakira tudi osnovne prevode, ki so del modula. Za vključitev na zgornji način je potrebno dodati naslednjo konfiguracijo v `angular.json` med `assets` nastavitve:\n```json\n{\n \"glob\": \"**/*\",\n \"input\": \"./node_modules/@mediusinc/mng-commons/assets/i18n\",\n \"output\": \"/assets/i18n/mng\"\n}\n```\n\n## Tema\n\nOpcijsko se vključi tudi tema MNG Commons, ki ima dve svetlo in temno varianto.\nZa vključitev se v stile na končnem projektu doda import v `style.scss`:\n\n```scss\n# Za svetlo temo:\n@import '~../node_modules/@mediusinc/mng-commons/scss/mng-commons-light';\n\n# Za temno temo:\n@import '~../node_modules/@mediusinc/mng-commons/scss/mng-commons-dark';\n```\n\n~~~~\nPrimarno se uporablja svetla tema!\n~~~~\n\nPri uporabi temne teme je potrebno dodatno nastaviti tudi `colorMode` v modulu:\n```ts\nMngCommonsModule.forRoot({\n app: {\n colorScheme: 'dark'\n }\n});\n```\n\nTema za svoje delovanje uporablja primeNG stile (za posamezne komponente) in PrimeFlex kot pomožno CSS knjižnico.\nDodatno se lahko na končnem projektu lahko uporabi še ikone PrimeIcons.\nGlede ne preference se opcijsko dodajo naslednji importi (**pred importom MNG commons teme!**):\n\n```scss\n@import '~../node_modules/primeng/resources/primeng.min.css';\n@import '~../node_modules/primeflex/primeflex.scss';\n@import '~../node_modules/primeicons/primeicons.css';\n```\n\nPri prvem importu ni potrebno namestiti dodatnih odvisnosti (je že vključeno z primeng), za drugi dve pa je potrebno namestiti:\n```bash\npnpm i primeflex\npnpm i primeicons\n```\n\nDodajanje MNG Commons slik v `assets` na končnem projektu se uredi z konfiguracijo v `assets` segmentu znotraj `angular.json`, kjer se doda:\n\n```json\n{\n \"glob\": \"**/*\",\n \"input\": \"./node_modules/@mediusinc/mng-commons/assets/images\",\n \"output\": \"/assets/images/mng\"\n}\n```\n\n"
|
|
38
38
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './lib/mng-commons.module';
|
|
2
2
|
export * from './lib/api/services';
|
|
3
|
+
export * from './lib/components/layout/services';
|
|
4
|
+
export * from './lib/components/tableview/services';
|
|
3
5
|
export * from './lib/services';
|
|
4
6
|
export * from './lib/services/providers';
|
|
5
7
|
export * from './lib/api/utils';
|
|
@@ -13,10 +15,11 @@ export * from './lib/components/tableview';
|
|
|
13
15
|
export * from './lib/directives';
|
|
14
16
|
export * from './lib/pipes';
|
|
15
17
|
export * from './lib/api/models';
|
|
16
|
-
export * from './lib/models
|
|
17
|
-
export * from './lib/models
|
|
18
|
-
export * from './lib/models
|
|
19
|
-
export * from './lib/
|
|
20
|
-
export * from './lib/
|
|
21
|
-
export * from './lib/
|
|
22
|
-
export * from './lib/models
|
|
18
|
+
export * from './lib/components/action/models';
|
|
19
|
+
export * from './lib/components/form/models';
|
|
20
|
+
export * from './lib/config/models';
|
|
21
|
+
export * from './lib/config';
|
|
22
|
+
export * from './lib/data-providers';
|
|
23
|
+
export * from './lib/descriptors';
|
|
24
|
+
export * from './lib/models';
|
|
25
|
+
export * from './lib/types';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
.layout-breadcrumb-container {
|
|
2
|
+
background-color: transparent;
|
|
3
|
+
|
|
4
|
+
.layout-breadcrumb {
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: 0 none;
|
|
7
|
+
border-radius: 0;
|
|
8
|
+
padding-left: 20px;
|
|
9
|
+
|
|
10
|
+
ul {
|
|
11
|
+
li {
|
|
12
|
+
&.p-breadcrumb-chevron {
|
|
13
|
+
margin: 0 .75rem;
|
|
14
|
+
|
|
15
|
+
&::before {
|
|
16
|
+
content: "\2044";
|
|
17
|
+
font-weight: bold;
|
|
18
|
+
font-size: 1.25rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.p-menuitem-link {
|
|
23
|
+
font-size: 1.25rem;
|
|
24
|
+
|
|
25
|
+
.p-menuitem-text {
|
|
26
|
+
color: $textThirdColor;
|
|
27
|
+
font-weight: $submenuHeaderFontWeight;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:last-child {
|
|
32
|
+
.p-menuitem-text {
|
|
33
|
+
color: $textColor;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.layout-breadcrumb-right-items {
|
|
41
|
+
.search-icon {
|
|
42
|
+
display:none;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
color: $textColor;
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 32px;
|
|
48
|
+
margin-right: .5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.search-wrapper {
|
|
52
|
+
transition: transform $animationDuration $animationTimingFunction;
|
|
53
|
+
|
|
54
|
+
.p-input-icon-left {
|
|
55
|
+
margin-right: .5rem;
|
|
56
|
+
width: 100%;
|
|
57
|
+
|
|
58
|
+
input {
|
|
59
|
+
background: transparent;
|
|
60
|
+
border-color: transparent;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media screen and (max-width: $tabletBreakpoint) {
|
|
68
|
+
.layout-breadcrumb-container {
|
|
69
|
+
.layout-breadcrumb-right-items {
|
|
70
|
+
.search-icon {
|
|
71
|
+
display:flex;
|
|
72
|
+
}
|
|
73
|
+
.search-wrapper {
|
|
74
|
+
width: 0;
|
|
75
|
+
position: absolute;
|
|
76
|
+
right: 40px;
|
|
77
|
+
background: $topbarSubmenuBg;
|
|
78
|
+
border-radius: 6px;
|
|
79
|
+
transition: width $animationDuration $animationTimingFunction;
|
|
80
|
+
|
|
81
|
+
input {
|
|
82
|
+
width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.active-search-wrapper {
|
|
86
|
+
width: calc(100% - 70px);
|
|
87
|
+
transition: width $animationDuration $animationTimingFunction;
|
|
88
|
+
|
|
89
|
+
input {
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.layout-config {
|
|
2
|
+
width: 16em;
|
|
3
|
+
height: 100%;
|
|
4
|
+
position: fixed;
|
|
5
|
+
right: 0;
|
|
6
|
+
top: 0;
|
|
7
|
+
padding: 1rem;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
background: $bodyBg;
|
|
10
|
+
color: $textColor !important;
|
|
11
|
+
z-index: 999;
|
|
12
|
+
border-left: 0 none;
|
|
13
|
+
transform: translateX(100%);
|
|
14
|
+
transition: transform .4s cubic-bezier(.05,.74,.2,.99);
|
|
15
|
+
|
|
16
|
+
&.layout-config-active {
|
|
17
|
+
transform: translateX(0);
|
|
18
|
+
box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
|
|
19
|
+
|
|
20
|
+
.layout-config-content {
|
|
21
|
+
.layout-config-button {
|
|
22
|
+
i {
|
|
23
|
+
transform: rotate(360deg);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
p {
|
|
30
|
+
line-height: 1.5rem;
|
|
31
|
+
color: #000000 !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.layout-themes {
|
|
35
|
+
@include flex();
|
|
36
|
+
@include flex-wrap(wrap);
|
|
37
|
+
|
|
38
|
+
> div {
|
|
39
|
+
padding: .25rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
a {
|
|
44
|
+
width: 2rem;
|
|
45
|
+
height: 2rem;
|
|
46
|
+
border-radius: $borderRadius;
|
|
47
|
+
display: block;
|
|
48
|
+
position: relative;
|
|
49
|
+
@include flex-align-center();
|
|
50
|
+
@include flex-justify-center();
|
|
51
|
+
transition: transform $transitionDuration;
|
|
52
|
+
box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
|
|
53
|
+
|
|
54
|
+
i {
|
|
55
|
+
font-size: 1rem;
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: 50%;
|
|
58
|
+
left: 50%;
|
|
59
|
+
margin-left: -.5rem;
|
|
60
|
+
margin-top: -.5rem;
|
|
61
|
+
color: #ffffff;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
transform: scale(1.1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.layout-config-button {
|
|
72
|
+
display: block;
|
|
73
|
+
position: fixed;
|
|
74
|
+
width: 3rem;
|
|
75
|
+
height: 3rem;
|
|
76
|
+
line-height: 3rem;
|
|
77
|
+
background: $primaryColor;
|
|
78
|
+
color: $primaryTextColor;
|
|
79
|
+
text-align: center;
|
|
80
|
+
top: 50%;
|
|
81
|
+
right: 0;
|
|
82
|
+
margin-top: -1.5rem;
|
|
83
|
+
border-top-left-radius: $borderRadius;
|
|
84
|
+
border-bottom-left-radius: $borderRadius;
|
|
85
|
+
transition: background-color $transitionDuration;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
z-index: 999;
|
|
89
|
+
box-shadow: -.25rem 0 1rem rgba(0,0,0,.15);
|
|
90
|
+
|
|
91
|
+
i {
|
|
92
|
+
font-size: 2rem;
|
|
93
|
+
line-height: inherit;
|
|
94
|
+
transform: rotate(0deg);
|
|
95
|
+
transition: transform 1s;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
background: lighten($primaryColor, 5%);
|
|
100
|
+
}
|
|
101
|
+
}
|