@dflat-core/web 1.0.0-beta
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/LICENSE +21 -0
- package/README.md +94 -0
- package/assets/bootswatch.scss +100 -0
- package/assets/buttons.scss +70 -0
- package/assets/components/datagrid.scss +138 -0
- package/assets/components/fonts.scss +24 -0
- package/assets/components/login.scss +59 -0
- package/assets/components/menu.scss +0 -0
- package/assets/components/modals.scss +62 -0
- package/assets/components/select.scss +387 -0
- package/assets/fonts/ErasITC-Bold/ErasITC-Bold.eot +0 -0
- package/assets/fonts/ErasITC-Bold/ErasITC-Bold.svg +748 -0
- package/assets/fonts/ErasITC-Bold/ErasITC-Bold.ttf +0 -0
- package/assets/fonts/ErasITC-Bold/ErasITC-Bold.woff +0 -0
- package/assets/fonts/SegoeUI/SegoeUI.eot +0 -0
- package/assets/fonts/SegoeUI/SegoeUI.svg +15203 -0
- package/assets/fonts/SegoeUI/SegoeUI.ttf +0 -0
- package/assets/fonts/SegoeUI/SegoeUI.woff +0 -0
- package/assets/fonts/SegoeUI/preview.html +132 -0
- package/assets/fonts/SegoeUI/styles.css +7 -0
- package/assets/fonts/SegoeUI-Light/SegoeUI-Light.eot +0 -0
- package/assets/fonts/SegoeUI-Light/SegoeUI-Light.svg +27429 -0
- package/assets/fonts/SegoeUI-Light/SegoeUI-Light.ttf +0 -0
- package/assets/fonts/SegoeUI-Light/SegoeUI-Light.woff +0 -0
- package/assets/fonts/SegoeUI-Light/preview.html +132 -0
- package/assets/fonts/SegoeUI-Light/styles.css +7 -0
- package/assets/forms.scss +342 -0
- package/assets/images/Algerie.png +0 -0
- package/assets/images/Burkina Faso.png +0 -0
- package/assets/images/Cameroun.png +0 -0
- package/assets/images/Cara/303/257bes.png +0 -0
- package/assets/images/Congo.png +0 -0
- package/assets/images/C/303/264te d'Ivoire.png +0 -0
- package/assets/images/France.png +0 -0
- package/assets/images/Gabon.png +0 -0
- package/assets/images/Ile Maurice.png +0 -0
- package/assets/images/LogoMarsow.svg +1 -0
- package/assets/images/Maroc.png +0 -0
- package/assets/images/Menu.svg +3 -0
- package/assets/images/R/303/251union.png +0 -0
- package/assets/images/S/303/251n/303/251gal.png +0 -0
- package/assets/images/Tunisie.png +0 -0
- package/assets/images/Unchecked.svg +25 -0
- package/assets/images/account.svg +3 -0
- package/assets/images/adresslabel1.svg +3 -0
- package/assets/images/adresslabel2.svg +3 -0
- package/assets/images/allergen.svg +3 -0
- package/assets/images/arrow-up-1-9.svg +1 -0
- package/assets/images/attention.svg +3 -0
- package/assets/images/backward.svg +1 -0
- package/assets/images/ban.svg +1 -0
- package/assets/images/book-open.svg +1 -0
- package/assets/images/book-solid.svg +2 -0
- package/assets/images/border-all.svg +1 -0
- package/assets/images/boxes-packing-solid.svg +2 -0
- package/assets/images/calculator-solid.svg +1 -0
- package/assets/images/calendar.svg +3 -0
- package/assets/images/chatting.svg +3 -0
- package/assets/images/check.svg +3 -0
- package/assets/images/checkmark.png +0 -0
- package/assets/images/circle-check-solid.svg +2 -0
- package/assets/images/circle-info.svg +1 -0
- package/assets/images/circle-radiation-solid.svg +2 -0
- package/assets/images/circle-solid.svg +1 -0
- package/assets/images/circlecheck.svg +3 -0
- package/assets/images/circlecross.svg +3 -0
- package/assets/images/circleminus.svg +3 -0
- package/assets/images/circleplus.svg +3 -0
- package/assets/images/circularoption.svg +1 -0
- package/assets/images/circularoptionselected.svg +1 -0
- package/assets/images/classification-tool.svg +3 -0
- package/assets/images/click-collect.svg +1 -0
- package/assets/images/clientlocation.svg +9 -0
- package/assets/images/cloud-arrow-down-solid.svg +1 -0
- package/assets/images/cloud-arrow-up-solid.svg +1 -0
- package/assets/images/contact.svg +3 -0
- package/assets/images/cross.svg +3 -0
- package/assets/images/delivery-square.svg +32 -0
- package/assets/images/delivery.svg +3 -0
- package/assets/images/deliverymanlocation.svg +28 -0
- package/assets/images/dolly-solid.svg +1 -0
- package/assets/images/down.svg +3 -0
- package/assets/images/download.svg +1 -0
- package/assets/images/edition.svg +3 -0
- package/assets/images/email.svg +3 -0
- package/assets/images/emptyheart.svg +3 -0
- package/assets/images/emptystar.svg +3 -0
- package/assets/images/erase.svg +1 -0
- package/assets/images/error.png +0 -0
- package/assets/images/error.svg +1 -0
- package/assets/images/favicon.ico +0 -0
- package/assets/images/file-arrow-down-solid.svg +2 -0
- package/assets/images/file-arrow-up-solid.svg +1 -0
- package/assets/images/file-csv-solid.svg +2 -0
- package/assets/images/file-excel-solid.svg +2 -0
- package/assets/images/file-export-solid.svg +1 -0
- package/assets/images/file-image-solid.svg +2 -0
- package/assets/images/file-invoice-solid.svg +2 -0
- package/assets/images/file-lines-solid.svg +2 -0
- package/assets/images/file-pdf-solid.svg +2 -0
- package/assets/images/file-solid.svg +2 -0
- package/assets/images/file-word-solid.svg +2 -0
- package/assets/images/file-zipper-solid.svg +2 -0
- package/assets/images/files-o.svg +1 -0
- package/assets/images/filter-circle-xmark-solid.svg +1 -0
- package/assets/images/filter-solid.svg +2 -0
- package/assets/images/filter.svg +3 -0
- package/assets/images/filter1.svg +3 -0
- package/assets/images/filter2.svg +3 -0
- package/assets/images/filterdelete.svg +3 -0
- package/assets/images/folder.svg +3 -0
- package/assets/images/forward.svg +1 -0
- package/assets/images/fullheart.svg +3 -0
- package/assets/images/fullstar.svg +3 -0
- package/assets/images/halfstar.svg +3 -0
- package/assets/images/hand-point-down.svg +1 -0
- package/assets/images/hand-point-left.svg +1 -0
- package/assets/images/hand-point-right.svg +1 -0
- package/assets/images/hand-point-up.svg +1 -0
- package/assets/images/history.svg +4 -0
- package/assets/images/home.svg +3 -0
- package/assets/images/info-circle.svg +1 -0
- package/assets/images/information.png +0 -0
- package/assets/images/ingredient.svg +3 -0
- package/assets/images/left.svg +3 -0
- package/assets/images/location.svg +3 -0
- package/assets/images/map-marker.svg +6 -0
- package/assets/images/map.svg +3 -0
- package/assets/images/minus.svg +3 -0
- package/assets/images/neworder.svg +3 -0
- package/assets/images/notification.svg +3 -0
- package/assets/images/ordercollected.svg +3 -0
- package/assets/images/orderconfirmed.svg +8 -0
- package/assets/images/orderdelivered.svg +3 -0
- package/assets/images/orderindelivering.svg +3 -0
- package/assets/images/orderinpreparation.svg +3 -0
- package/assets/images/orderprepared.svg +3 -0
- package/assets/images/orderrefused.svg +8 -0
- package/assets/images/pencil.svg +1 -0
- package/assets/images/picture-editor-V3.svg +11 -0
- package/assets/images/picture-export-v3.svg +5 -0
- package/assets/images/picture-import-v3.svg +5 -0
- package/assets/images/plus-square.svg +1 -0
- package/assets/images/plus.svg +3 -0
- package/assets/images/power-off.svg +1 -0
- package/assets/images/print.svg +3 -0
- package/assets/images/refresh.svg +1 -0
- package/assets/images/return.svg +40 -0
- package/assets/images/right.svg +3 -0
- package/assets/images/sale.svg +3 -0
- package/assets/images/save.svg +2 -0
- package/assets/images/schedule.svg +3 -0
- package/assets/images/search-sprite.png +0 -0
- package/assets/images/search.svg +3 -0
- package/assets/images/selection.svg +3 -0
- package/assets/images/separator_back.png +0 -0
- package/assets/images/setting.svg +3 -0
- package/assets/images/ship-solid.svg +1 -0
- package/assets/images/shoppingbag.svg +3 -0
- package/assets/images/squareoption.svg +1 -0
- package/assets/images/squareoptionselected.svg +1 -0
- package/assets/images/star-of-life-solid.svg +2 -0
- package/assets/images/step-backward.svg +7 -0
- package/assets/images/step-forward.svg +7 -0
- package/assets/images/store-square.svg +19 -0
- package/assets/images/store.png +0 -0
- package/assets/images/store.svg +3 -0
- package/assets/images/storelocation.svg +6 -0
- package/assets/images/table-columns.svg +1 -0
- package/assets/images/tag.svg +22 -0
- package/assets/images/times-circle-solid.svg +1 -0
- package/assets/images/trash-o.svg +3 -0
- package/assets/images/triangle-down.svg +3 -0
- package/assets/images/triangle-up.svg +3 -0
- package/assets/images/truck-solid.svg +1 -0
- package/assets/images/up.svg +3 -0
- package/assets/images/upload.svg +1 -0
- package/assets/images/user-square.svg +10 -0
- package/assets/images/user.svg +13 -0
- package/assets/images/warning.png +0 -0
- package/assets/images/warning.svg +5 -0
- package/assets/images/watch.svg +3 -0
- package/assets/modals.scss +104 -0
- package/assets/property.scss +113 -0
- package/assets/shared.scss +157 -0
- package/assets/site.scss +374 -0
- package/assets/text.scss +162 -0
- package/assets/variables.scss +91 -0
- package/core/index.d.ts +6 -0
- package/core/lib/array.function.d.ts +8 -0
- package/core/lib/core.module.d.ts +9 -0
- package/core/lib/global/EnvironmentBase.d.ts +7 -0
- package/core/lib/nameof.function.d.ts +4 -0
- package/core/lib/services/ensuremoduleloadedonceguard.d.ts +3 -0
- package/core/lib/services/utilities.service.d.ts +87 -0
- package/core-data/index.d.ts +3 -0
- package/core-data/lib/core-data.module.d.ts +7 -0
- package/core-data/lib/services/data-service.d.ts +68 -0
- package/core-data/lib/services/entity-data-service.d.ts +37 -0
- package/core-model/index.d.ts +4 -0
- package/core-model/lib/core-model.module.d.ts +7 -0
- package/core-model/lib/interface.d.ts +140 -0
- package/core-model/lib/model/interface.generated.d.ts +286 -0
- package/core-model/lib/model/model.d.ts +38 -0
- package/core-services/index.d.ts +23 -0
- package/core-services/lib/core-services.module.d.ts +10 -0
- package/core-services/lib/model/model.d.ts +25 -0
- package/core-services/lib/services/app-keys.d.ts +15 -0
- package/core-services/lib/services/appConfig.service.d.ts +8 -0
- package/core-services/lib/services/auth-guard.service.d.ts +18 -0
- package/core-services/lib/services/auth.interceptor.d.ts +15 -0
- package/core-services/lib/services/auth.service.d.ts +67 -0
- package/core-services/lib/services/breadcrumb.service.d.ts +14 -0
- package/core-services/lib/services/busmessage.service.d.ts +19 -0
- package/core-services/lib/services/can-activate-guard.service.d.ts +12 -0
- package/core-services/lib/services/filter.service.d.ts +15 -0
- package/core-services/lib/services/geolocation.service.d.ts +29 -0
- package/core-services/lib/services/headers.service.d.ts +15 -0
- package/core-services/lib/services/hub.service.d.ts +33 -0
- package/core-services/lib/services/local-store-manager.service.d.ts +50 -0
- package/core-services/lib/services/menu.service.d.ts +27 -0
- package/core-services/lib/services/message.service.d.ts +14 -0
- package/core-services/lib/services/notifications.service.d.ts +14 -0
- package/core-services/lib/services/permission.service.d.ts +12 -0
- package/core-services/lib/services/screen.service.d.ts +14 -0
- package/core-services/lib/services/server-url.d.ts +12 -0
- package/core-services/lib/services/string.function.d.ts +1 -0
- package/core-services/lib/services/user.service.d.ts +22 -0
- package/core-ux/index.d.ts +144 -0
- package/core-ux/lib/components/actions/actions-content.component.d.ts +10 -0
- package/core-ux/lib/components/actions/actions.component.d.ts +57 -0
- package/core-ux/lib/components/actions/extended-action/extended-action.component.d.ts +34 -0
- package/core-ux/lib/components/base-editor/base-editor.component.d.ts +93 -0
- package/core-ux/lib/components/base-item-list/base-item-list.component.d.ts +21 -0
- package/core-ux/lib/components/basefilter/basefilter.component.d.ts +275 -0
- package/core-ux/lib/components/breadcrumb/breadcrumb.component.d.ts +12 -0
- package/core-ux/lib/components/datagrid-custom/datagrid-cell/datagrid-cell.component.d.ts +32 -0
- package/core-ux/lib/components/datagrid-custom/datagrid-custom.component.d.ts +159 -0
- package/core-ux/lib/components/datagrid-custom/datagrid-sorter.component.d.ts +15 -0
- package/core-ux/lib/components/datapage/layout-page/page-layout.component.d.ts +13 -0
- package/core-ux/lib/components/datapage/old/old.datapage.component.d.ts +10 -0
- package/core-ux/lib/components/datapage/old-layout-handler.directive.d.ts +31 -0
- package/core-ux/lib/components/dynamic-components/dynamic-field/dynamic-field.component.d.ts +41 -0
- package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter-extra.component.d.ts +27 -0
- package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter-panel.component.d.ts +8 -0
- package/core-ux/lib/components/dynamic-components/dynamic-filter/dynamic-filter.component.d.ts +54 -0
- package/core-ux/lib/components/dynamic-components/dynamic-form/dynamic-form.component.d.ts +122 -0
- package/core-ux/lib/components/filtersummary/filtersummary.component.d.ts +27 -0
- package/core-ux/lib/components/form-password/form-password.component.d.ts +9 -0
- package/core-ux/lib/components/grid-row/grid-row.component.d.ts +12 -0
- package/core-ux/lib/components/image-display/image.component.d.ts +20 -0
- package/core-ux/lib/components/input-selector/input-selector.component.d.ts +50 -0
- package/core-ux/lib/components/input-tree-selector/input-tree-selector.component.d.ts +25 -0
- package/core-ux/lib/components/logs/logs.component.d.ts +32 -0
- package/core-ux/lib/components/menu/menu.component.d.ts +39 -0
- package/core-ux/lib/components/menu-dashboard/menu-dashboard.component.d.ts +15 -0
- package/core-ux/lib/components/paginator/paginator.component.d.ts +17 -0
- package/core-ux/lib/components/parameter-field/parameter-field.component.d.ts +13 -0
- package/core-ux/lib/components/parameter-field/parameter-types/base-array-parameter-type.component.d.ts +16 -0
- package/core-ux/lib/components/parameter-field/parameter-types/base-parameter-type.component.d.ts +21 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-bool/parameter-type-bool.component.d.ts +9 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-bool-array/parameter-type-bool-array.component.d.ts +12 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-date/parameter-type-date.component.d.ts +16 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-date-array/parameter-type-date-array.component.d.ts +17 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-number/parameter-type-number.component.d.ts +6 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-number-array/parameter-type-number-array.component.d.ts +6 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-password/parameter-type-password.component.d.ts +9 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-text/parameter-type-text.component.d.ts +7 -0
- package/core-ux/lib/components/parameter-field/parameter-types/parameter-type-text-array/parameter-type-text-array.component.d.ts +6 -0
- package/core-ux/lib/components/property-grid/property-grid.component.d.ts +125 -0
- package/core-ux/lib/components/search-results/search-results.component.d.ts +7 -0
- package/core-ux/lib/components/tab/tab.component.d.ts +14 -0
- package/core-ux/lib/components/tabset/tabset.component.d.ts +15 -0
- package/core-ux/lib/components/text-viewer/text-viewer.component.d.ts +21 -0
- package/core-ux/lib/components/time-picker/time-picker.component.d.ts +27 -0
- package/core-ux/lib/components/tree/tree.component.d.ts +39 -0
- package/core-ux/lib/components/validation-error/validation-error.component.d.ts +8 -0
- package/core-ux/lib/components/wizard/wizard-step/wizard-step.component.d.ts +26 -0
- package/core-ux/lib/components/wizard/wizard.component.d.ts +29 -0
- package/core-ux/lib/core-ux.module.d.ts +102 -0
- package/core-ux/lib/directives/addclass.directive.d.ts +11 -0
- package/core-ux/lib/directives/collapse.directive.d.ts +34 -0
- package/core-ux/lib/directives/draggable.directive.d.ts +39 -0
- package/core-ux/lib/directives/droppable.directive.d.ts +55 -0
- package/core-ux/lib/directives/editMode.directive.d.ts +8 -0
- package/core-ux/lib/directives/focusable.directive.d.ts +16 -0
- package/core-ux/lib/directives/insertion.directive.d.ts +8 -0
- package/core-ux/lib/directives/onEnter.directive.d.ts +11 -0
- package/core-ux/lib/directives/tab-heading.d.ts +8 -0
- package/core-ux/lib/directives/tab-transclude.d.ts +11 -0
- package/core-ux/lib/directives/tooltip.directive.d.ts +16 -0
- package/core-ux/lib/directives/validate-on-enter.directive.d.ts +10 -0
- package/core-ux/lib/directives/viewMode.directive.d.ts +8 -0
- package/core-ux/lib/layout/default/default-layout.d.ts +36 -0
- package/core-ux/lib/layout/login/login-layout.d.ts +9 -0
- package/core-ux/lib/log.service.d.ts +8 -0
- package/core-ux/lib/modals/confirm-modal/confirm-modal.component.d.ts +17 -0
- package/core-ux/lib/modals/dialog/dialog.component.d.ts +57 -0
- package/core-ux/lib/modals/dialog-component.tokens.d.ts +3 -0
- package/core-ux/lib/modals/export-data-modal/export-data-modal.component.d.ts +11 -0
- package/core-ux/lib/modals/track-record-modal/track-record-modal.component.d.ts +21 -0
- package/core-ux/lib/modals/validation-modal/validation-modal.component.d.ts +24 -0
- package/core-ux/lib/model/datagrid.d.ts +194 -0
- package/core-ux/lib/model/model.d.ts +222 -0
- package/core-ux/lib/model/tree.d.ts +12 -0
- package/core-ux/lib/pipes/euro.pipe.d.ts +9 -0
- package/core-ux/lib/pipes/todefine.pipe.d.ts +8 -0
- package/core-ux/lib/pipes/tofixedsizeinteger.pipe.d.ts +8 -0
- package/core-ux/lib/services/action.service.d.ts +42 -0
- package/core-ux/lib/services/alert.service.d.ts +51 -0
- package/core-ux/lib/services/application.service.d.ts +73 -0
- package/core-ux/lib/services/can-deactivate-guard.d.ts +12 -0
- package/core-ux/lib/services/drag.service.d.ts +54 -0
- package/core-ux/lib/services/fire-authentication.service.d.ts +13 -0
- package/core-ux/lib/services/image.service.d.ts +15 -0
- package/core-ux/lib/services/modal-state.service.d.ts +26 -0
- package/core-ux/lib/services/modal.service.d.ts +30 -0
- package/core-ux/lib/services/presentation-profile.token.d.ts +40 -0
- package/core-ux/lib/services/selectorMapperBase.service.d.ts +36 -0
- package/core-ux/lib/v2/components/actions-panel/action-panel.component.d.ts +48 -0
- package/core-ux/lib/v2/components/base-component/base-component.d.ts +80 -0
- package/core-ux/lib/v2/components/cell-renderer/cell-renderer.component.d.ts +11 -0
- package/core-ux/lib/v2/components/data-grid/data-grid.component.d.ts +104 -0
- package/core-ux/lib/v2/components/data-grid/grid-field-descriptor/grid-field.component.d.ts +55 -0
- package/core-ux/lib/v2/components/data-list/data-list.component.d.ts +29 -0
- package/core-ux/lib/v2/components/editor-tab/editor-tab.component.d.ts +15 -0
- package/core-ux/lib/v2/components/editor-tabset/editor-tabset.component.d.ts +18 -0
- package/core-ux/lib/v2/components/field-descriptor/field.component.d.ts +61 -0
- package/core-ux/lib/v2/components/filter-form/filter-form.component.d.ts +12 -0
- package/core-ux/lib/v2/components/filter-summary/filter-summary.component.d.ts +34 -0
- package/core-ux/lib/v2/components/new-editor/new-editor.component.d.ts +66 -0
- package/core-ux/lib/v2/components/new-paginator/new-paginator.component.d.ts +31 -0
- package/core-ux/lib/v2/components/orderable/orderable-modal.component.d.ts +36 -0
- package/core-ux/lib/v2/components/orderable/orderable-modal.service.d.ts +11 -0
- package/core-ux/lib/v2/components/orderable/orderable.interface.d.ts +52 -0
- package/core-ux/lib/v2/components/property-editor/property-editor-component.d.ts +89 -0
- package/core-ux/lib/v2/components/selector/selector-registry.service.d.ts +9 -0
- package/core-ux/lib/v2/components/selector/selector.component.d.ts +33 -0
- package/core-ux/lib/v2/components/selector/selector.model.d.ts +19 -0
- package/core-ux/lib/v2/components/standard-page-layout/standard-page-layout.component.d.ts +29 -0
- package/core-ux/lib/v2/directives/base-shortcut.directive.d.ts +15 -0
- package/core-ux/lib/v2/directives/hide-on-threshold.directive.d.ts +20 -0
- package/core-ux/lib/v2/directives/layout-handler.directive.d.ts +54 -0
- package/core-ux/lib/v2/directives/row-ref.directive.d.ts +21 -0
- package/core-ux/lib/v2/models/aggregation-model.d.ts +8 -0
- package/core-ux/lib/v2/models/contexts/action-context.d.ts +66 -0
- package/core-ux/lib/v2/models/contexts/action-handler-context.d.ts +49 -0
- package/core-ux/lib/v2/models/contexts/base-form-context.d.ts +42 -0
- package/core-ux/lib/v2/models/contexts/change-detection-context.d.ts +41 -0
- package/core-ux/lib/v2/models/contexts/data-context.d.ts +25 -0
- package/core-ux/lib/v2/models/contexts/data-grid-style-context.d.ts +36 -0
- package/core-ux/lib/v2/models/contexts/editor-context.d.ts +30 -0
- package/core-ux/lib/v2/models/contexts/entity-config-context.d.ts +49 -0
- package/core-ux/lib/v2/models/contexts/filter-context.d.ts +49 -0
- package/core-ux/lib/v2/models/contexts/layout-context.d.ts +57 -0
- package/core-ux/lib/v2/models/contexts/logger-context.d.ts +5 -0
- package/core-ux/lib/v2/models/contexts/section-context.d.ts +73 -0
- package/core-ux/lib/v2/models/contexts/selection-context.d.ts +45 -0
- package/core-ux/lib/v2/models/entity-facade.d.ts +35 -0
- package/core-ux/lib/v2/models/guards/facade-load-guard.d.ts +35 -0
- package/core-ux/lib/v2/models/guards/filter-lifecycle-guard.d.ts +29 -0
- package/core-ux/lib/v2/models/states/sorting-state.d.ts +14 -0
- package/core-ux/lib/v2/models/utilities/action-definition.d.ts +38 -0
- package/core-ux/lib/v2/models/utilities/change-utilities.d.ts +11 -0
- package/core-ux/lib/v2/models/utilities/entity-updater.d.ts +11 -0
- package/core-ux/lib/v2/models/utilities/form-wrapper.d.ts +30 -0
- package/core-ux/lib/v2/models/utilities/row-registry.d.ts +15 -0
- package/core-ux/lib/v2/models/utilities/selection-styler.d.ts +15 -0
- package/core-ux/lib/v2/pipes/gridstyle.pipe.d.ts +15 -0
- package/core-ux/lib/v2/services/app-config.service.d.ts +22 -0
- package/core-ux/lib/v2/services/entity-facade-registry.service.d.ts +28 -0
- package/core-ux/lib/v2/services/facade-modal.service.d.ts +21 -0
- package/core-ux/lib/v2/services/layout.service.d.ts +93 -0
- package/core-ux/lib/v2/services/property-change-bus.service.d.ts +9 -0
- package/core-ux/lib/v2/services/selection.service.d.ts +23 -0
- package/core-ux/lib/v2/services/test.service.d.ts +7 -0
- package/core-ux/lib/v2/services/validation.service.d.ts +10 -0
- package/core-ux/lib/v2/services/view-model-loader.service.d.ts +13 -0
- package/fesm2022/dflat-core-web-core-data.mjs +431 -0
- package/fesm2022/dflat-core-web-core-data.mjs.map +1 -0
- package/fesm2022/dflat-core-web-core-model.mjs +245 -0
- package/fesm2022/dflat-core-web-core-model.mjs.map +1 -0
- package/fesm2022/dflat-core-web-core-services.mjs +1568 -0
- package/fesm2022/dflat-core-web-core-services.mjs.map +1 -0
- package/fesm2022/dflat-core-web-core-ux.mjs +16294 -0
- package/fesm2022/dflat-core-web-core-ux.mjs.map +1 -0
- package/fesm2022/dflat-core-web-core.mjs +743 -0
- package/fesm2022/dflat-core-web-core.mjs.map +1 -0
- package/fesm2022/dflat-core-web-system-data.mjs +1031 -0
- package/fesm2022/dflat-core-web-system-data.mjs.map +1 -0
- package/fesm2022/dflat-core-web-system-model.mjs +283 -0
- package/fesm2022/dflat-core-web-system-model.mjs.map +1 -0
- package/fesm2022/dflat-core-web-system-root.mjs +289 -0
- package/fesm2022/dflat-core-web-system-root.mjs.map +1 -0
- package/fesm2022/dflat-core-web-system-ux.mjs +5677 -0
- package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -0
- package/fesm2022/dflat-core-web.mjs +18 -0
- package/fesm2022/dflat-core-web.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +82 -0
- package/scss/core-ux.scss +5 -0
- package/scss/images/circle-info.svg +1 -0
- package/scss/images/circlecross.svg +3 -0
- package/scss/images/circularoptionselected.svg +1 -0
- package/scss/images/error.png +0 -0
- package/scss/images/filter.svg +2 -0
- package/scss/images/information.png +0 -0
- package/scss/images/pen-solid.svg +1 -0
- package/scss/images/search-sprite.png +0 -0
- package/scss/images/search.svg +3 -0
- package/scss/images/warning.png +0 -0
- package/scss/layout/default/default-layout.scss +270 -0
- package/scss/layout/login/login-layout.scss +204 -0
- package/scss/styles/drag-and-drop.scss +36 -0
- package/scss/styles/forms.scss +94 -0
- package/scss/styles/shared.scss +222 -0
- package/system-data/index.d.ts +50 -0
- package/system-data/lib/data-services/account-service.generated.d.ts +20 -0
- package/system-data/lib/data-services/action-service.generated.d.ts +15 -0
- package/system-data/lib/data-services/address-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/checkout-service.generated.d.ts +13 -0
- package/system-data/lib/data-services/company-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/config-service.generated.d.ts +18 -0
- package/system-data/lib/data-services/country-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/currency-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/custom-field-group-entity-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/custom-field-group-item-service.generated.d.ts +13 -0
- package/system-data/lib/data-services/custom-field-group-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/custom-field-options-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/custom-field-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/error-category-service.generated.d.ts +12 -0
- package/system-data/lib/data-services/exchange-rate-detail-service.generated.d.ts +35 -0
- package/system-data/lib/data-services/exchange-rate-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/file-service.generated.d.ts +26 -0
- package/system-data/lib/data-services/keyword-service.generated.d.ts +12 -0
- package/system-data/lib/data-services/meta-entity-field-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/meta-entity-keyword-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/meta-entity-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/news-service.generated.d.ts +13 -0
- package/system-data/lib/data-services/parameter-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/parameter-value-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/permission-service.generated.d.ts +12 -0
- package/system-data/lib/data-services/permission-view-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/plugin-parameter-value-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/presentation-profile-item-service.generated.d.ts +14 -0
- package/system-data/lib/data-services/presentation-profile-service.generated.d.ts +13 -0
- package/system-data/lib/data-services/rating-service.generated.d.ts +14 -0
- package/system-data/lib/data-services/rating-summary-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/rating-view-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/request-result-service.generated.d.ts +12 -0
- package/system-data/lib/data-services/request-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/resource-key-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/resource-language-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/resource-translation-view-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/role-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/subcompany-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/supplier-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/synchronized-company-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/tva-rate-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-account-company-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-account-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-favorite-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-group-definition-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-group-service.generated.d.ts +10 -0
- package/system-data/lib/data-services/user-role-service.generated.d.ts +10 -0
- package/system-data/lib/system-data.module.d.ts +9 -0
- package/system-model/index.d.ts +3 -0
- package/system-model/lib/model/interface.generated.d.ts +1162 -0
- package/system-model/lib/model/model.d.ts +11 -0
- package/system-model/lib/system-model.module.d.ts +7 -0
- package/system-root/index.d.ts +5 -0
- package/system-root/lib/system-entity-keys.d.ts +36 -0
- package/system-root/lib/system-menu-item-provider.d.ts +28 -0
- package/system-root/lib/system-menu-service.d.ts +13 -0
- package/system-root/lib/system-permissions.generated.d.ts +128 -0
- package/system-root/lib/system-root.module.d.ts +7 -0
- package/system-ux/index.d.ts +76 -0
- package/system-ux/lib/activate/activate.component.d.ts +36 -0
- package/system-ux/lib/address/address-editor.component.d.ts +12 -0
- package/system-ux/lib/address/address.component.d.ts +15 -0
- package/system-ux/lib/company/company-editor.component.d.ts +12 -0
- package/system-ux/lib/company/company.component.d.ts +19 -0
- package/system-ux/lib/components/image-upload/image-upload.component.d.ts +99 -0
- package/system-ux/lib/config/config-component.d.ts +22 -0
- package/system-ux/lib/config/datawarehouse-supply/dw-supply.component.d.ts +14 -0
- package/system-ux/lib/country/country-editor.component.d.ts +12 -0
- package/system-ux/lib/country/country.component.d.ts +14 -0
- package/system-ux/lib/currency/currency-editor.component.d.ts +12 -0
- package/system-ux/lib/currency/currency.component.d.ts +14 -0
- package/system-ux/lib/custom-field/custom-field-editor.component.d.ts +13 -0
- package/system-ux/lib/custom-field/custom-field.component.d.ts +19 -0
- package/system-ux/lib/custom-field-group/custom-field-group-editor.component.d.ts +14 -0
- package/system-ux/lib/custom-field-group/custom-field-group-entity/custom-field-group-entity-editor.component.d.ts +13 -0
- package/system-ux/lib/custom-field-group/custom-field-group-entity/custom-field-group-entity.component.d.ts +19 -0
- package/system-ux/lib/custom-field-group/custom-field-group-item/custom-field-group-item-editor.component.d.ts +12 -0
- package/system-ux/lib/custom-field-group/custom-field-group-item/custom-field-group-item.component.d.ts +27 -0
- package/system-ux/lib/custom-field-group/custom-field-group.component.d.ts +23 -0
- package/system-ux/lib/custom-field-options/custom-field-options-editor.component.d.ts +17 -0
- package/system-ux/lib/custom-field-options/custom-field-options.component.d.ts +22 -0
- package/system-ux/lib/entity-files/entity-files.component.d.ts +37 -0
- package/system-ux/lib/exchange-rate/exchange-rate-detail.component.d.ts +17 -0
- package/system-ux/lib/exchange-rate/exchange-rate-editor.component.d.ts +25 -0
- package/system-ux/lib/exchange-rate/exchange-rate.component.d.ts +18 -0
- package/system-ux/lib/global-parameter/global-parameter.component.d.ts +15 -0
- package/system-ux/lib/login/login.component.d.ts +37 -0
- package/system-ux/lib/meta-entity/meta-entity.component.d.ts +22 -0
- package/system-ux/lib/meta-entity-field/meta-entity-field-editor.component.d.ts +12 -0
- package/system-ux/lib/meta-entity-field/meta-entity-field.component.d.ts +20 -0
- package/system-ux/lib/news/news-component.d.ts +16 -0
- package/system-ux/lib/news/news-editor.component.d.ts +28 -0
- package/system-ux/lib/permission/permission-component.d.ts +16 -0
- package/system-ux/lib/permission/permission-editor.component.d.ts +12 -0
- package/system-ux/lib/presentation-profile/pp-facade.service.d.ts +39 -0
- package/system-ux/lib/presentation-profile/presentation-profile-action-service.d.ts +16 -0
- package/system-ux/lib/presentation-profile/presentation-profile-column-grid/presentation-profile-column.component.d.ts +73 -0
- package/system-ux/lib/presentation-profile/presentation-profile-column-grid/presentation-profile-items.component.d.ts +50 -0
- package/system-ux/lib/presentation-profile/presentation-profile-resolver.service.d.ts +34 -0
- package/system-ux/lib/presentation-profile/presentation-profile-transformer.d.ts +48 -0
- package/system-ux/lib/presentation-profile/presentation-profile.component.d.ts +16 -0
- package/system-ux/lib/presentation-profile/presentation-profile.service.d.ts +58 -0
- package/system-ux/lib/request/request-editor.component.d.ts +12 -0
- package/system-ux/lib/request/request.component.d.ts +20 -0
- package/system-ux/lib/request-results/request-results.component.d.ts +15 -0
- package/system-ux/lib/reset-password/reset-password.component.d.ts +32 -0
- package/system-ux/lib/resource-key/resource-key.component.d.ts +18 -0
- package/system-ux/lib/resource-language/resource-language.component.d.ts +16 -0
- package/system-ux/lib/resource-language/resourcelanguage-editor.component.d.ts +12 -0
- package/system-ux/lib/resource-translation/resource-translation-editor.component.d.ts +12 -0
- package/system-ux/lib/resource-translation/resource-translation.component.d.ts +16 -0
- package/system-ux/lib/role/role-component.d.ts +14 -0
- package/system-ux/lib/role/role-editor.component.d.ts +27 -0
- package/system-ux/lib/services/custom-field-action-service.d.ts +25 -0
- package/system-ux/lib/services/custom-field-service.d.ts +21 -0
- package/system-ux/lib/services/rates-action-service.d.ts +28 -0
- package/system-ux/lib/services/select-user-company-action-service.d.ts +23 -0
- package/system-ux/lib/services/system-section.service.d.ts +12 -0
- package/system-ux/lib/services/system-selector-mapper.service.d.ts +24 -0
- package/system-ux/lib/services/user-action-service.d.ts +20 -0
- package/system-ux/lib/sub-company/sub-company.component.d.ts +15 -0
- package/system-ux/lib/supplier/supplier-editor.component.d.ts +12 -0
- package/system-ux/lib/supplier/supplier.component.d.ts +16 -0
- package/system-ux/lib/synchronised-company/synchronised-company.component.d.ts +16 -0
- package/system-ux/lib/system-ux.module.d.ts +88 -0
- package/system-ux/lib/tva-rate/tva-rate-detail.component.d.ts +17 -0
- package/system-ux/lib/tva-rate/tva-rate-editor.component.d.ts +25 -0
- package/system-ux/lib/tva-rate/tva-rate.component.d.ts +17 -0
- package/system-ux/lib/user-account/user-account-component.d.ts +18 -0
- package/system-ux/lib/user-account/user-account-editor.component.d.ts +12 -0
- package/system-ux/lib/user-account-profile/user-account-profile.component.d.ts +31 -0
- package/system-ux/lib/user-company/user-company-component.d.ts +21 -0
- package/system-ux/lib/user-group/user-group-definition.component.d.ts +18 -0
- package/system-ux/lib/user-group/user-group-editor.component.d.ts +12 -0
- package/system-ux/lib/user-group/user-group.component.d.ts +16 -0
- package/system-ux/lib/user-permission/user-permission-component.d.ts +14 -0
- package/system-ux/lib/user-role/user-role-component.d.ts +20 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FieldDescriptor } from "@dflat-core/web/core-model";
|
|
2
|
+
import { InputSelectorOptions } from "../../../model/model";
|
|
3
|
+
import { SelectorMapperServiceBase } from "../../../services/selectorMapperBase.service";
|
|
4
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
5
|
+
import { AbstractControl, FormControl } from "@angular/forms";
|
|
6
|
+
import { Observable } from "rxjs";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SelectorComponent implements AfterViewInit {
|
|
9
|
+
private selectorMapperService;
|
|
10
|
+
private cd;
|
|
11
|
+
field: FieldDescriptor;
|
|
12
|
+
control: AbstractControl;
|
|
13
|
+
SupplierId: number;
|
|
14
|
+
get formControl(): FormControl;
|
|
15
|
+
private search$;
|
|
16
|
+
private page$;
|
|
17
|
+
items$: Observable<any[]>;
|
|
18
|
+
options: InputSelectorOptions;
|
|
19
|
+
private context;
|
|
20
|
+
constructor(selectorMapperService: SelectorMapperServiceBase, cd: ChangeDetectorRef);
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
onSearch(param: {
|
|
23
|
+
term: string;
|
|
24
|
+
items: any[];
|
|
25
|
+
}): void;
|
|
26
|
+
loadNextPage(): void;
|
|
27
|
+
openModal(): void;
|
|
28
|
+
createNewItem(searchTerm: string): void;
|
|
29
|
+
change: EventEmitter<any>;
|
|
30
|
+
onChanged(event: any): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectorComponent, "alg-selector", never, { "field": { "alias": "field"; "required": true; }; "control": { "alias": "control"; "required": true; }; "SupplierId": { "alias": "SupplierId"; "required": false; }; }, { "change": "change"; }, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputSelectorOptions } from "../../../model/model";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
export interface SelectorConfig {
|
|
4
|
+
load: (req: SelectorRequest) => Observable<any[]>;
|
|
5
|
+
options: InputSelectorOptions;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectorRequest {
|
|
9
|
+
term: string;
|
|
10
|
+
page: number;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class SelectorDataSource {
|
|
14
|
+
private config;
|
|
15
|
+
private cache;
|
|
16
|
+
constructor(config: SelectorConfig);
|
|
17
|
+
load(term: string, page: number): Observable<any[]>;
|
|
18
|
+
clearCache(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EntityViewModel } from '@dflat-core/web/core-model';
|
|
2
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { Guid } from 'guid-typescript';
|
|
4
|
+
import { ApplicationService } from '../../../services/application.service';
|
|
5
|
+
import { BaseShortcutsDirective } from '../../directives/base-shortcut.directive';
|
|
6
|
+
import { LayoutHandlerDirective } from '../../directives/layout-handler.directive';
|
|
7
|
+
import { EntityFacade } from '../../models/entity-facade';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class StandardPageLayoutComponent implements OnInit, OnDestroy {
|
|
10
|
+
private app;
|
|
11
|
+
layoutKey: string;
|
|
12
|
+
entityKey: string;
|
|
13
|
+
guid: Guid;
|
|
14
|
+
facade: EntityFacade<EntityViewModel>;
|
|
15
|
+
layoutHandlerDirective: LayoutHandlerDirective;
|
|
16
|
+
baseShortcutsDirective: BaseShortcutsDirective;
|
|
17
|
+
set rightPanelRef(ref: ElementRef<HTMLDivElement> | undefined);
|
|
18
|
+
set separatorRef(ref: ElementRef<HTMLDivElement> | undefined);
|
|
19
|
+
middlePanelRef: ElementRef<HTMLDivElement>;
|
|
20
|
+
constructor(app: ApplicationService);
|
|
21
|
+
private destroy$;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
onBeforeUnload(): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
toggleLayout(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StandardPageLayoutComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StandardPageLayoutComponent, "alg-standard-page-layout", never, { "layoutKey": { "alias": "layoutKey"; "required": false; }; "entityKey": { "alias": "entityKey"; "required": false; }; "guid": { "alias": "guid"; "required": false; }; }, {}, never, ["[actionsContent]", "[middleHeader]", "[middleContent]", "[middleFooter]", "[rightContent]"], false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EntityFacade } from "../models/entity-facade";
|
|
2
|
+
import { OnDestroy, ElementRef } from "@angular/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BaseShortcutsDirective implements OnDestroy {
|
|
5
|
+
private el;
|
|
6
|
+
facade: EntityFacade<any>;
|
|
7
|
+
private destroy$;
|
|
8
|
+
isFocused: boolean;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
private handleKeydown;
|
|
11
|
+
private execute;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseShortcutsDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseShortcutsDirective, "[baseShortcuts]", ["baseShortcuts"], { "facade": { "alias": "facade"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HideOnThresholdDirective implements OnInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
minWidth: number;
|
|
7
|
+
minHeight: number | null;
|
|
8
|
+
minFlexGrow: number | null;
|
|
9
|
+
private resizeObserver;
|
|
10
|
+
/**
|
|
11
|
+
* Constructor injects required services
|
|
12
|
+
* @param el Reference to the host element
|
|
13
|
+
* @param renderer Service for safe DOM manipulation
|
|
14
|
+
*/
|
|
15
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HideOnThresholdDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HideOnThresholdDirective, "[hideOnThreshold]", never, { "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "minFlexGrow": { "alias": "minFlexGrow"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LayoutContext } from '../models/contexts/layout-context';
|
|
2
|
+
import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LayoutHandlerDirective implements OnDestroy, AfterViewInit {
|
|
5
|
+
private renderer;
|
|
6
|
+
private elRef;
|
|
7
|
+
isVerticalLayout: boolean;
|
|
8
|
+
propertyflexGrow: number;
|
|
9
|
+
middlePanel: HTMLElement;
|
|
10
|
+
rightPanel?: HTMLElement;
|
|
11
|
+
_separator?: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* Constructor for the directive
|
|
14
|
+
* @param layoutService Layout management service
|
|
15
|
+
* @param renderer DOM rendering service
|
|
16
|
+
* @param elRef Reference to the DOM element
|
|
17
|
+
*/
|
|
18
|
+
constructor(renderer: Renderer2, elRef: ElementRef);
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
scheduleLayout(): void;
|
|
21
|
+
entityKey: string;
|
|
22
|
+
isSection: boolean;
|
|
23
|
+
layoutContext: LayoutContext;
|
|
24
|
+
private destroy$;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Toggles the property panel size
|
|
28
|
+
* @param event Click event
|
|
29
|
+
*/
|
|
30
|
+
expandPropertyflexGrow(event: MouseEvent): void;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves an HTML element by its class
|
|
33
|
+
* @param className CSS class name
|
|
34
|
+
* @returns HTML Element
|
|
35
|
+
*/
|
|
36
|
+
getHtmlElement(className: string): HTMLElement;
|
|
37
|
+
lastPropertyflexGrow: number;
|
|
38
|
+
hidePropertyGrid(): void;
|
|
39
|
+
showPropertyGrid(): void;
|
|
40
|
+
updateLayout(): void;
|
|
41
|
+
updateSeparator(): void;
|
|
42
|
+
private dragInProgress;
|
|
43
|
+
/**
|
|
44
|
+
* Starts the resizing process
|
|
45
|
+
* @param event Mouse event
|
|
46
|
+
*/
|
|
47
|
+
startResizing(event: MouseEvent): void;
|
|
48
|
+
onMouseMove(event: MouseEvent): void;
|
|
49
|
+
onMouseUp(): void;
|
|
50
|
+
stopResizing(event: MouseEvent): void;
|
|
51
|
+
onBeforeUnload(): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutHandlerDirective, never>;
|
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LayoutHandlerDirective, "[layoutHandler]", ["layoutHandler"], { "middlePanel": { "alias": "middlePanel"; "required": false; }; "entityKey": { "alias": "entityKey"; "required": false; }; "isSection": { "alias": "isSection"; "required": false; }; "layoutContext": { "alias": "layoutContext"; "required": false; }; }, {}, never, never, false, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { RowRegistry } from "../models/utilities/row-registry";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Hôte d'une directive rowRef, fourni par DataGridComponent.
|
|
6
|
+
* La directive injecte ce jeton plutôt que DataGridComponent pour éviter un cycle d'imports
|
|
7
|
+
* entre les deux fichiers, non supporté en compilation partielle (librairie).
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class RowRefHost {
|
|
10
|
+
abstract readonly rowRegistry: RowRegistry;
|
|
11
|
+
}
|
|
12
|
+
export declare class RowRefDirective implements AfterViewInit, OnDestroy {
|
|
13
|
+
private el;
|
|
14
|
+
private dataGrid;
|
|
15
|
+
rowId: string;
|
|
16
|
+
constructor(el: ElementRef, dataGrid: RowRefHost);
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowRefDirective, [null, { host: true; }]>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RowRefDirective, "[rowRef]", never, { "rowId": { "alias": "rowRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EntityViewModel } from '@dflat-core/web/core-model';
|
|
2
|
+
import { Action } from '../../../model/model';
|
|
3
|
+
import { ActionDefinition } from '../utilities/action-definition';
|
|
4
|
+
import { ActionHandlerContext } from './action-handler-context';
|
|
5
|
+
import { ChangeDetectionContext } from './change-detection-context';
|
|
6
|
+
import { EditorContext } from './editor-context';
|
|
7
|
+
import { EntityConfigContext } from './entity-config-context';
|
|
8
|
+
import { FacadeDeps } from '../../services/entity-facade-registry.service';
|
|
9
|
+
import { FilterContext } from './filter-context';
|
|
10
|
+
import { SectionContext } from './section-context';
|
|
11
|
+
import { SelectionContext } from './selection-context';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
export interface ActionResult<TData> {
|
|
14
|
+
actionName?: string;
|
|
15
|
+
success: boolean;
|
|
16
|
+
affectedEntities?: TData[];
|
|
17
|
+
sectionName?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ActionExecutionContext {
|
|
20
|
+
sectionName?: string;
|
|
21
|
+
entityKey?: string;
|
|
22
|
+
source?: 'parent' | 'child';
|
|
23
|
+
isDefault?: boolean;
|
|
24
|
+
getParam?: () => any;
|
|
25
|
+
}
|
|
26
|
+
export declare class ActionContext<TData extends EntityViewModel> {
|
|
27
|
+
deps: FacadeDeps;
|
|
28
|
+
entityKey: string;
|
|
29
|
+
selection: SelectionContext<TData>;
|
|
30
|
+
change: ChangeDetectionContext<TData>;
|
|
31
|
+
filter: FilterContext<TData, any>;
|
|
32
|
+
section: SectionContext<TData>;
|
|
33
|
+
editor: EditorContext;
|
|
34
|
+
config: EntityConfigContext<TData, any>;
|
|
35
|
+
private readonly actionsMap;
|
|
36
|
+
private readonly actionsSubject;
|
|
37
|
+
readonly actions$: Observable<Action[]>;
|
|
38
|
+
readonly handler: ActionHandlerContext<TData>;
|
|
39
|
+
constructor(deps: FacadeDeps, entityKey: string, selection: SelectionContext<TData>, change: ChangeDetectionContext<TData>, filter: FilterContext<TData, any>, section: SectionContext<TData>, editor: EditorContext, config: EntityConfigContext<TData, any>);
|
|
40
|
+
private registerActions;
|
|
41
|
+
private bindActions;
|
|
42
|
+
private createAction;
|
|
43
|
+
emit(): void;
|
|
44
|
+
getAction(key: string): Action;
|
|
45
|
+
addAction(def: Action): void;
|
|
46
|
+
addActions(actionsToAdd: Action[]): void;
|
|
47
|
+
patch(name: string, patch: Partial<ActionDefinition>): void;
|
|
48
|
+
setHandlerPath(path: string): void;
|
|
49
|
+
hideAction(actionName: string): void;
|
|
50
|
+
hideActions(actionsName?: string[]): void;
|
|
51
|
+
clearActions(): void;
|
|
52
|
+
private static readonly READ_ONLY_HIDDEN_ACTIONS;
|
|
53
|
+
private readOnlyHiddenState;
|
|
54
|
+
setReadOnlyMode(v: boolean): void;
|
|
55
|
+
hasAction(key: string): boolean;
|
|
56
|
+
hasActions(): boolean;
|
|
57
|
+
executeAction(actionName: string, executeDefaultAction?: boolean, param?: any): Observable<ActionResult<TData>>;
|
|
58
|
+
showAction(actionName: string): void;
|
|
59
|
+
emitActionResult(result: ActionResult<TData>): void;
|
|
60
|
+
private readonly actionResultSubject;
|
|
61
|
+
readonly actionResult$: Observable<ActionResult<TData>>;
|
|
62
|
+
private executionContext?;
|
|
63
|
+
setExecutionContext(ctx: ActionExecutionContext): void;
|
|
64
|
+
private permissionKey?;
|
|
65
|
+
setPermissionKey(key: string): void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EntityViewModel, SaveResults } from "@dflat-core/web/core-model";
|
|
2
|
+
import { ActionResult } from "./action-context";
|
|
3
|
+
import { ChangeDetectionContext } from "./change-detection-context";
|
|
4
|
+
import { EditorContext } from "./editor-context";
|
|
5
|
+
import { FacadeDeps } from "../../services/entity-facade-registry.service";
|
|
6
|
+
import { FilterContext } from "./filter-context";
|
|
7
|
+
import { SectionContext } from "./section-context";
|
|
8
|
+
import { SelectionContext } from "./selection-context";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
export declare class ActionHandlerContext<TData extends EntityViewModel> {
|
|
11
|
+
deps: FacadeDeps;
|
|
12
|
+
entityKey: string;
|
|
13
|
+
permissionKey: string;
|
|
14
|
+
selection: SelectionContext<TData>;
|
|
15
|
+
change: ChangeDetectionContext<TData>;
|
|
16
|
+
filter: FilterContext<TData, any>;
|
|
17
|
+
section: SectionContext<TData>;
|
|
18
|
+
editor: EditorContext;
|
|
19
|
+
private destroy$;
|
|
20
|
+
readonly state$: Observable<{
|
|
21
|
+
sel: TData[];
|
|
22
|
+
dirty: boolean;
|
|
23
|
+
valid: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
constructor(deps: FacadeDeps, entityKey: string, permissionKey: string, selection: SelectionContext<TData>, change: ChangeDetectionContext<TData>, filter: FilterContext<TData, any>, section: SectionContext<TData>, editor: EditorContext);
|
|
26
|
+
path: string;
|
|
27
|
+
oldAdd(): void;
|
|
28
|
+
add(initValue: Partial<TData>): void;
|
|
29
|
+
canShowHistory(): boolean;
|
|
30
|
+
showHistory(): Observable<any>;
|
|
31
|
+
canSave(): boolean;
|
|
32
|
+
canAdd(): boolean;
|
|
33
|
+
canDelete(): boolean;
|
|
34
|
+
getActionPermissionKey(action: string): string;
|
|
35
|
+
export(): void;
|
|
36
|
+
exportXLSX(): void;
|
|
37
|
+
exportCSV(): void;
|
|
38
|
+
onSaveCompleted(): void;
|
|
39
|
+
edit(): void;
|
|
40
|
+
delete(deleteMessage?: string): Observable<ActionResult<TData>>;
|
|
41
|
+
removeFromResults<TData extends EntityViewModel>(d: TData): void;
|
|
42
|
+
performLoadData(): void;
|
|
43
|
+
handleDeleteFail(res: SaveResults<TData>): void;
|
|
44
|
+
save(): Observable<ActionResult<TData>>;
|
|
45
|
+
afterDelete(): void;
|
|
46
|
+
refresh(): void;
|
|
47
|
+
innerDelete(): Observable<ActionResult<TData>>;
|
|
48
|
+
reset(): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FieldDescriptor } from '@dflat-core/web/core-model';
|
|
2
|
+
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ValidationService } from '../../services/validation.service';
|
|
5
|
+
export declare abstract class BaseFormContext<TDescriptor extends FieldDescriptor> {
|
|
6
|
+
private fb;
|
|
7
|
+
private validationService;
|
|
8
|
+
form: FormGroup;
|
|
9
|
+
entity: any;
|
|
10
|
+
fields: TDescriptor[];
|
|
11
|
+
constructor(fb: FormBuilder, validationService: ValidationService);
|
|
12
|
+
/** Initialize form from descriptors */
|
|
13
|
+
private initPropertyForm;
|
|
14
|
+
/** Called manually for initial load */
|
|
15
|
+
triggerField(desc: TDescriptor): void;
|
|
16
|
+
private setupCascade;
|
|
17
|
+
private setupConditional;
|
|
18
|
+
/** Single observable for all changes with debounce */
|
|
19
|
+
changes$(): Observable<any>;
|
|
20
|
+
/** Optional: trackBy helper for template loops */
|
|
21
|
+
trackByField: (_: number, d: TDescriptor) => string;
|
|
22
|
+
/** Patch form with an object */
|
|
23
|
+
patch(values: any): void;
|
|
24
|
+
/** Convert current form to plain object */
|
|
25
|
+
serialize(): any;
|
|
26
|
+
protected abstract applyCascadeRules(descriptors: TDescriptor[]): void;
|
|
27
|
+
protected abstract applyConditionalRules(descriptors: TDescriptor[]): void;
|
|
28
|
+
/** --------------------------
|
|
29
|
+
* CASCADE LOGIC
|
|
30
|
+
* -------------------------- */
|
|
31
|
+
protected handleCascade(field: TDescriptor): void;
|
|
32
|
+
/** --------------------------
|
|
33
|
+
* CONDITIONAL LOGIC
|
|
34
|
+
* conditional logic
|
|
35
|
+
* -------------------------- */
|
|
36
|
+
protected handleConditional(field: TDescriptor): void;
|
|
37
|
+
/** --------------------------
|
|
38
|
+
* RESET FIELD DATA LOGIC
|
|
39
|
+
* -------------------------- */
|
|
40
|
+
private resetFieldData;
|
|
41
|
+
protected updateControlValidators(ctrl: AbstractControl, validators: any[]): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EntityViewModel, PropertyEditorEvent } from '@dflat-core/web/core-model';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { SelectionContext } from './selection-context';
|
|
5
|
+
export interface PropertyChangeInterceptor<TData extends EntityViewModel> {
|
|
6
|
+
beforeApply?(entity: TData, event: PropertyEditorEvent): TData;
|
|
7
|
+
afterApply?(entity: TData, event: PropertyEditorEvent): TData;
|
|
8
|
+
}
|
|
9
|
+
export declare class ChangeDetectionContext<TData extends EntityViewModel> {
|
|
10
|
+
private selection;
|
|
11
|
+
private modifiedEntities;
|
|
12
|
+
private propertyChangedSubject;
|
|
13
|
+
private buttonClickedSubject;
|
|
14
|
+
private styleUpdateSubject;
|
|
15
|
+
private pendingChange$;
|
|
16
|
+
readonly buttonClicked$: Observable<PropertyEditorEvent>;
|
|
17
|
+
private interceptor;
|
|
18
|
+
constructor(selection: SelectionContext<TData>);
|
|
19
|
+
setInterceptor(_interceptor: PropertyChangeInterceptor<TData>): void;
|
|
20
|
+
getPropertyChanged$(): Observable<PropertyEditorEvent>;
|
|
21
|
+
getStyleUpdated$(): Observable<TData[]>;
|
|
22
|
+
private compareToOriginal;
|
|
23
|
+
updateSelected(event: PropertyEditorEvent): void;
|
|
24
|
+
updateEntity(entity: TData, evt: PropertyEditorEvent): void;
|
|
25
|
+
emitUpdated(entities: TData[]): void;
|
|
26
|
+
private updateDataset;
|
|
27
|
+
private updateModified;
|
|
28
|
+
applyChangedValue(item: TData, evt: PropertyEditorEvent): void;
|
|
29
|
+
private serializeExtendedValue;
|
|
30
|
+
markPendingChange(evt: PropertyEditorEvent): void;
|
|
31
|
+
emitButtonClicked(evt: PropertyEditorEvent): void;
|
|
32
|
+
private correspondingForm;
|
|
33
|
+
setForm(form: FormGroup): void;
|
|
34
|
+
get isDirty(): boolean;
|
|
35
|
+
get isInvalid(): boolean;
|
|
36
|
+
get valid(): boolean;
|
|
37
|
+
reset(): void;
|
|
38
|
+
get Modified(): TData[];
|
|
39
|
+
getModified(id: number): TData;
|
|
40
|
+
hasPendingChanges(): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EntityViewModel, FilterViewModel, PagedList } from '@dflat-core/web/core-model';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { FacadeLoadGuard } from '../guards/facade-load-guard';
|
|
4
|
+
import { FilterContext } from './filter-context';
|
|
5
|
+
import { LoggerContext } from './logger-context';
|
|
6
|
+
export declare class DataContext<TData extends EntityViewModel> {
|
|
7
|
+
private readonly filterContext;
|
|
8
|
+
private logger;
|
|
9
|
+
private interceptor;
|
|
10
|
+
private loadDataFn?;
|
|
11
|
+
data$: Observable<PagedList<TData>>;
|
|
12
|
+
readonly originalDataChange$: BehaviorSubject<TData>;
|
|
13
|
+
private originals;
|
|
14
|
+
constructor(filterContext: FilterContext<TData, any>, logger: LoggerContext, interceptor: FacadeLoadGuard);
|
|
15
|
+
loadData(filter: FilterViewModel): Observable<PagedList<TData>>;
|
|
16
|
+
setCriteriaSource(criteria$: Observable<FilterViewModel>): void;
|
|
17
|
+
getOriginal(id: number): TData;
|
|
18
|
+
setOriginal(newData: TData): void;
|
|
19
|
+
private readonly mutationsSubject;
|
|
20
|
+
readonly mutations$: Observable<TData>;
|
|
21
|
+
insertAtStart(entity: TData): void;
|
|
22
|
+
hasData(): boolean;
|
|
23
|
+
setloadDataFn(fn: (criteria: FilterViewModel) => Observable<PagedList<TData>>): void;
|
|
24
|
+
private resetResultsFlags;
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ColumnDescriptor, EntityViewModel } from "@dflat-core/web/core-model";
|
|
2
|
+
export interface IDataGridStyleContext {
|
|
3
|
+
getAlternatingStyle?: (index: number, maxIndex: number, hasAggregates: boolean, row: EntityViewModel) => string;
|
|
4
|
+
getHeaderStyle?: (column: ColumnDescriptor) => string;
|
|
5
|
+
getColumnStyle?: (row: EntityViewModel, column: ColumnDescriptor) => string;
|
|
6
|
+
getRowStateStyle?: (row: EntityViewModel) => string;
|
|
7
|
+
getCellStyle?: (row: EntityViewModel, column: ColumnDescriptor, index: number, maxIndex: number, hasAggregates: boolean) => string;
|
|
8
|
+
canEditCell?: (row: EntityViewModel, column: ColumnDescriptor) => boolean;
|
|
9
|
+
showOnToolTip?: (row: EntityViewModel, column: ColumnDescriptor) => any;
|
|
10
|
+
enableLastColumnResize?: boolean;
|
|
11
|
+
displayDetail?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class DataGridStyleContext implements IDataGridStyleContext {
|
|
14
|
+
private readonly defaults;
|
|
15
|
+
private readonly patchContext;
|
|
16
|
+
constructor(defaults: IDataGridStyleContext);
|
|
17
|
+
patch(partial: Partial<IDataGridStyleContext>): void;
|
|
18
|
+
getAlternatingStyle(index: number, maxIndex: number, hasAggregates: boolean, row: EntityViewModel): string;
|
|
19
|
+
getHeaderStyle(column: ColumnDescriptor): string;
|
|
20
|
+
getColumnStyle(row: EntityViewModel, column: ColumnDescriptor): string;
|
|
21
|
+
getRowStateStyle(row: EntityViewModel): string;
|
|
22
|
+
getCellStyle(row: EntityViewModel, column: ColumnDescriptor, index: number, maxIndex: number, hasAggregates: boolean): string;
|
|
23
|
+
canEditCell(row: EntityViewModel, column: ColumnDescriptor): boolean;
|
|
24
|
+
showOnToolTip?(row: EntityViewModel, column: ColumnDescriptor): any;
|
|
25
|
+
get enableLastColumnResize(): boolean;
|
|
26
|
+
get displayDetail(): boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class DefaultDataGridStyleContext implements IDataGridStyleContext {
|
|
29
|
+
getAlternatingStyle(index: any, maxIndex: any, hasAggregates: any): string;
|
|
30
|
+
getHeaderStyle(column: ColumnDescriptor): string;
|
|
31
|
+
getColumnStyle(row: EntityViewModel, column: ColumnDescriptor): string;
|
|
32
|
+
getRowStateStyle(row: any): "mw-invalid" | "mw-modified" | "mw-warning" | "row-state";
|
|
33
|
+
getCellStyle(row: any, column: any, index: any, maxIndex: any, hasAggregates: any): string;
|
|
34
|
+
enableLastColumnResize: true;
|
|
35
|
+
displayDetail: false;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EntityViewModel, EntityViewModelWithFields, FieldDescriptor } from '@dflat-core/web/core-model';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { ChangeDetectionContext } from './change-detection-context';
|
|
4
|
+
import { DataGridStyleContext } from './data-grid-style-context';
|
|
5
|
+
export declare class EditorContext {
|
|
6
|
+
private change?;
|
|
7
|
+
private ViewModel;
|
|
8
|
+
setViewModel(vm: EntityViewModelWithFields<EntityViewModel>): void;
|
|
9
|
+
readonly isValid$: BehaviorSubject<boolean>;
|
|
10
|
+
readonly isStandaloneMode$: BehaviorSubject<boolean>;
|
|
11
|
+
private readonly isDirtySubject;
|
|
12
|
+
readonly isDirty$: Observable<boolean>;
|
|
13
|
+
readonly readOnlyMode$: BehaviorSubject<boolean>;
|
|
14
|
+
private destroy$;
|
|
15
|
+
constructor(change?: ChangeDetectionContext<any>);
|
|
16
|
+
private bindChangeContext;
|
|
17
|
+
setStandaloneMode(value: boolean): void;
|
|
18
|
+
setReadOnlyMode(value: boolean): void;
|
|
19
|
+
get isReadOnlyMode(): boolean;
|
|
20
|
+
setIsDirty(value: boolean): void;
|
|
21
|
+
setIsValid(value: boolean): void;
|
|
22
|
+
reset(): void;
|
|
23
|
+
get Fields(): FieldDescriptor[];
|
|
24
|
+
getEditableContext(): Partial<DataGridStyleContext>;
|
|
25
|
+
enableEdit(prop: string, row: EntityViewModel): boolean;
|
|
26
|
+
isRowEditable(row: EntityViewModel): boolean;
|
|
27
|
+
isPropertyEditable(prop: string): boolean;
|
|
28
|
+
getField(prop?: string): FieldDescriptor;
|
|
29
|
+
destroy(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DataService } from "@dflat-core/web/core-data";
|
|
2
|
+
import { ColumnDescriptor, EntityViewModel, EntityViewModelWithFields, ExtendedProperty, FieldDescriptor, FilterDescriptor, FilterViewModel, Section } from "@dflat-core/web/core-model";
|
|
3
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
4
|
+
export declare class EntityConfigContext<TData extends EntityViewModel, TFilter extends FilterViewModel> {
|
|
5
|
+
private dataService;
|
|
6
|
+
private entityKey;
|
|
7
|
+
private readonly columnSource$;
|
|
8
|
+
setColumnSource(factory: () => Observable<ColumnDescriptor[]>): void;
|
|
9
|
+
private readonly alteredColumns$;
|
|
10
|
+
readonly columns$: Observable<ColumnDescriptor[]>;
|
|
11
|
+
private readonly viewModelSource$;
|
|
12
|
+
setviewModelSource(factory: () => Observable<EntityViewModelWithFields<TData>>): void;
|
|
13
|
+
private readonly alteredViewModel$;
|
|
14
|
+
readonly viewModel$: Observable<any>;
|
|
15
|
+
updateFieldSections(newSections: Section[]): void;
|
|
16
|
+
readonly alteredDefaultFilter$: BehaviorSubject<((filter: TFilter) => TFilter)[]>;
|
|
17
|
+
readonly defaultFilter$: Observable<TFilter>;
|
|
18
|
+
readonly alteredFilterDescriptors$: BehaviorSubject<((fds: FilterDescriptor[]) => FilterDescriptor[])[]>;
|
|
19
|
+
readonly filterDescriptors$: Observable<FieldDescriptor[]>;
|
|
20
|
+
readonly actions$: Observable<import("@dflat-core/web/core-model").ActionDescriptor[]>;
|
|
21
|
+
readonly config$: Observable<{
|
|
22
|
+
columns: ColumnDescriptor[];
|
|
23
|
+
viewModel: any;
|
|
24
|
+
emptyFilter: TFilter;
|
|
25
|
+
filterDescriptors: FieldDescriptor[];
|
|
26
|
+
actions: import("@dflat-core/web/core-model").ActionDescriptor[];
|
|
27
|
+
}>;
|
|
28
|
+
/** Enable cell auto-focus on edit (accounting-data keyboard navigation). Set from the component TS. */
|
|
29
|
+
cellFocus: boolean;
|
|
30
|
+
constructor(dataService: DataService, entityKey: string);
|
|
31
|
+
getApiViewModel(id: number): Observable<EntityViewModelWithFields<TData>>;
|
|
32
|
+
getExtendedProperties(ids: number[]): Observable<ExtendedProperty[]>;
|
|
33
|
+
addAlterViewModelFunction(alterFunction: ((vm: EntityViewModelWithFields<TData>) => EntityViewModelWithFields<TData>)): void;
|
|
34
|
+
addAlterColumnsFunction(alterFunction: ((cols: ColumnDescriptor[]) => ColumnDescriptor[])): void;
|
|
35
|
+
/**
|
|
36
|
+
* Replaces the active column set with the given descriptors.
|
|
37
|
+
* This is the primary entry point for Presentation Profile integration:
|
|
38
|
+
* pass the result of PresentationProfileTransformer.buildDescriptors() here.
|
|
39
|
+
*/
|
|
40
|
+
replaceColumns(descriptors: ColumnDescriptor[]): void;
|
|
41
|
+
/** Appends columns not already present (matched by Property). */
|
|
42
|
+
addColumns(descriptors: ColumnDescriptor[]): void;
|
|
43
|
+
/** Removes columns by Property name. */
|
|
44
|
+
removeColumns(propertyNames: string[]): void;
|
|
45
|
+
/** Patches a single column matched by Property name. */
|
|
46
|
+
updateColumn(propertyName: string, updates: Partial<ColumnDescriptor>): void;
|
|
47
|
+
addAlterDefaultFilterFunction<F extends TFilter>(alterFunction: ((filter: TFilter) => TFilter)): void;
|
|
48
|
+
addAlterFilterDescriptorsFunction(alterFunction: ((cols: FilterDescriptor[]) => FilterDescriptor[])): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EntityViewModel, FilterQuery, FilterViewModel } from '@dflat-core/web/core-model';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { FacadeLoadGuard } from '../guards/facade-load-guard';
|
|
4
|
+
import { EntityConfigContext } from './entity-config-context';
|
|
5
|
+
export declare class FilterContext<TData extends EntityViewModel, TFilter extends FilterViewModel> {
|
|
6
|
+
private config;
|
|
7
|
+
private interceptor;
|
|
8
|
+
forceRefresh: boolean;
|
|
9
|
+
defaultFilter: TFilter;
|
|
10
|
+
filterSnapshot?: TFilter;
|
|
11
|
+
defaultAdditionalQuery: FilterQuery;
|
|
12
|
+
readonly filter$: BehaviorSubject<TFilter>;
|
|
13
|
+
readonly additionalQuery$: BehaviorSubject<FilterQuery>;
|
|
14
|
+
readonly pageNumber$: BehaviorSubject<number>;
|
|
15
|
+
readonly rowsPerPage$: BehaviorSubject<number>;
|
|
16
|
+
readonly totalItems$: BehaviorSubject<number>;
|
|
17
|
+
readonly totalPages$: BehaviorSubject<number>;
|
|
18
|
+
readonly lastExecutionTime$: BehaviorSubject<string>;
|
|
19
|
+
readonly baseCriteria$: Observable<TFilter>;
|
|
20
|
+
readonly keyword$: BehaviorSubject<string>;
|
|
21
|
+
private columns;
|
|
22
|
+
constructor(config: EntityConfigContext<TData, TFilter>, interceptor: FacadeLoadGuard);
|
|
23
|
+
setDefaultFilter(df: TFilter): void;
|
|
24
|
+
private readonly openFilterRequest$;
|
|
25
|
+
readonly openFilter$: Observable<void>;
|
|
26
|
+
requestOpenFilter(): void;
|
|
27
|
+
private readonly filterReady$;
|
|
28
|
+
openFilterResolved$: Observable<void>;
|
|
29
|
+
markReady(): void;
|
|
30
|
+
_filterReady$(): Observable<void>;
|
|
31
|
+
private applyFilterUrl$;
|
|
32
|
+
readonly applyFilterUrlEnabled$: Observable<boolean>;
|
|
33
|
+
setApplyFilterUrl(enabled: boolean): void;
|
|
34
|
+
private refresh$;
|
|
35
|
+
triggerSearch(): void;
|
|
36
|
+
setFilter(filter: Partial<TFilter>, pageNumber?: number): void;
|
|
37
|
+
setKeyword(keyword: string): void;
|
|
38
|
+
isSorting(property?: string): boolean;
|
|
39
|
+
isAsc(property?: string): boolean;
|
|
40
|
+
isDesc(property?: string): boolean;
|
|
41
|
+
setSorting(property: keyof TData, dir?: 'asc' | 'desc'): void;
|
|
42
|
+
setPage(page: number): void;
|
|
43
|
+
setPageSize(ps: number): void;
|
|
44
|
+
updateStates(totalCount: number, execMs: number, take: number): void;
|
|
45
|
+
addNewQuery(): void;
|
|
46
|
+
removeQueryAtIndex(index: number): void;
|
|
47
|
+
applyAdditionalQuery(): void;
|
|
48
|
+
setAggregateClause(aggregationRequest: any): void;
|
|
49
|
+
}
|