@codetectonics/mantle 0.0.2 → 0.0.4
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 +10 -49
- package/bundles/codetectonics-mantle.umd.js +6907 -0
- package/bundles/codetectonics-mantle.umd.js.map +1 -0
- package/esm2015/codetectonics-mantle.js +5 -0
- package/esm2015/lib/components/dashboard/containers/dynamic-dashboard-container/dynamic-dashboard-container.component.js +24 -0
- package/esm2015/lib/components/dashboard/containers/plain-dashboard-container/plain-dashboard-container.component.js +35 -0
- package/esm2015/lib/components/dashboard/dashboard-card/dashboard-card.component.js +133 -0
- package/esm2015/lib/components/dashboard/dashboard-card-search-menu/dashboard-card-search-menu.component.js +55 -0
- package/esm2015/lib/components/dashboard/dynamic-dashboard/dynamic-dashboard.component.js +23 -0
- package/esm2015/lib/components/dashboard/sections/dashboard-section/dashboard-section.component.js +71 -0
- package/esm2015/lib/components/dashboard/widgets/dashboard-info-card/dashboard-info-card.component.js +26 -0
- package/esm2015/lib/components/dashboard/widgets/dashboard-table/dashboard-table-datasource.js +30 -0
- package/esm2015/lib/components/dashboard/widgets/dashboard-table/dashboard-table.component.js +58 -0
- package/esm2015/lib/components/dashboard/widgets/dynamic-chart/dynamic-chart.component.js +85 -0
- package/esm2015/lib/components/dashboard/widgets/dynamic-widget-display/dynamic-widget-display.component.js +29 -0
- package/esm2015/lib/components/details/containers/accordion-details-container/accordion-details-container.component.js +26 -0
- package/esm2015/lib/components/details/containers/dynamic-details-container/dynamic-details-container.component.js +25 -0
- package/esm2015/lib/components/details/containers/plain-details-container/plain-details-container.component.js +25 -0
- package/esm2015/lib/components/details/dialog-details/dialog-details.component.js +77 -0
- package/esm2015/lib/components/details/dialog-nested-details/dialog-nested-details.component.js +40 -0
- package/esm2015/lib/components/details/dynamic-details/dynamic-details.component.js +23 -0
- package/esm2015/lib/components/details/fields/actions-attribute-display/actions-attribute-display.component.js +27 -0
- package/esm2015/lib/components/details/fields/chip-attribute-display/chip-attribute-display.component.js +40 -0
- package/esm2015/lib/components/details/fields/dynamic-attribute-display/dynamic-attribute-display.component.js +46 -0
- package/esm2015/lib/components/details/fields/file-attribute-display/file-attribute-display.component.js +37 -0
- package/esm2015/lib/components/details/fields/image-attribute-display/image-attribute-display.component.js +36 -0
- package/esm2015/lib/components/details/fields/link-attribute-display/link-attribute-display.component.js +30 -0
- package/esm2015/lib/components/details/fields/markdown-attribute-display/markdown-attribute-display.component.js +21 -0
- package/esm2015/lib/components/details/fields/thumbnail-display/thumbnail-display.component.js +33 -0
- package/esm2015/lib/components/details/sections/dynamic-details-section/dynamic-details-section.component.js +42 -0
- package/esm2015/lib/components/details/sections/grid-details-section/grid-details-section.component.js +53 -0
- package/esm2015/lib/components/details/sections/markdown-details-section/markdown-details-section.component.js +19 -0
- package/esm2015/lib/components/details/sections/table-details-section/table-details-section.component.js +37 -0
- package/esm2015/lib/components/form/containers/accordion-form-container/accordion-form-container.component.js +29 -0
- package/esm2015/lib/components/form/containers/dynamic-form-container/dynamic-form-container.component.js +28 -0
- package/esm2015/lib/components/form/containers/plain-form-container/plain-form-container.component.js +28 -0
- package/esm2015/lib/components/form/dialog-form/dialog-form.component.js +91 -0
- package/esm2015/lib/components/form/dialog-nested-form/dialog-nested-form.component.js +57 -0
- package/esm2015/lib/components/form/dynamic-form/dynamic-form.component.js +52 -0
- package/esm2015/lib/components/form/fields/autocomplete-input/autocomplete-input.component.js +69 -0
- package/esm2015/lib/components/form/fields/chip-input/chip-input.component.js +84 -0
- package/esm2015/lib/components/form/fields/datepicker/datepicker.component.js +91 -0
- package/esm2015/lib/components/form/fields/datetimepicker/datetimepicker.component.js +92 -0
- package/esm2015/lib/components/form/fields/dropdown/dropdown.component.js +73 -0
- package/esm2015/lib/components/form/fields/dynamic-form-field/dynamic-form-field.component.js +37 -0
- package/esm2015/lib/components/form/fields/filepicker/filepicker.component.js +97 -0
- package/esm2015/lib/components/form/fields/image-cropper/image-cropper.component.js +52 -0
- package/esm2015/lib/components/form/fields/imagepicker/imagepicker.component.js +139 -0
- package/esm2015/lib/components/form/fields/markdown-input/markdown-input.component.js +53 -0
- package/esm2015/lib/components/form/fields/number-input/number-input.component.js +91 -0
- package/esm2015/lib/components/form/fields/password-input/password-input.component.js +58 -0
- package/esm2015/lib/components/form/fields/text-input/text-input.component.js +55 -0
- package/esm2015/lib/components/form/fields/textarea/textarea.component.js +58 -0
- package/esm2015/lib/components/form/sections/dynamic-form-section/dynamic-form-section.component.js +47 -0
- package/esm2015/lib/components/form/sections/grid-form-section/grid-form-section.component.js +69 -0
- package/esm2015/lib/components/form/sections/table-form-section/table-form-section.component.js +107 -0
- package/esm2015/lib/components/layout-editor/containers/accordion-layout-editor-container/accordion-layout-editor-container.component.js +24 -0
- package/esm2015/lib/components/layout-editor/containers/dynamic-layout-editor-container/dynamic-layout-editor-container.component.js +23 -0
- package/esm2015/lib/components/layout-editor/containers/plain-layout-editor-container/plain-layout-editor-container.component.js +24 -0
- package/esm2015/lib/components/layout-editor/dynamic-layout-editor/dynamic-layout-editor.component.js +23 -0
- package/esm2015/lib/components/layout-editor/elements/dynamic-layout-editor-element/dynamic-layout-editor-element.component.js +38 -0
- package/esm2015/lib/components/layout-editor/elements/layout-editor-field-element/layout-editor-field-element.component.js +76 -0
- package/esm2015/lib/components/layout-editor/elements/layout-editor-table-column-element/layout-editor-table-column-element.component.js +76 -0
- package/esm2015/lib/components/layout-editor/elements/layout-editor-widget-element/layout-editor-widget-element.component.js +19 -0
- package/esm2015/lib/components/layout-editor/sections/dashboard-layout-editor-section/dashboard-layout-editor-section.component.js +21 -0
- package/esm2015/lib/components/layout-editor/sections/dynamic-layout-editor-section/dynamic-layout-editor-section.component.js +25 -0
- package/esm2015/lib/components/layout-editor/sections/grid-layout-editor-section/grid-layout-editor-section.component.js +102 -0
- package/esm2015/lib/components/layout-editor/sections/markdown-layout-editor-section/markdown-layout-editor-section.component.js +19 -0
- package/esm2015/lib/components/layout-editor/sections/table-layout-editor-section/table-layout-editor-section.component.js +74 -0
- package/esm2015/lib/components/navigation/nav-tree/nav-tree.component.js +65 -0
- package/esm2015/lib/components/navigation/reroute/reroute.component.js +28 -0
- package/esm2015/lib/components/pages/dashboard-page/dashboard-page.component.js +34 -0
- package/esm2015/lib/components/pages/detail-page/detail-page.component.js +101 -0
- package/esm2015/lib/components/pages/documents-page/documents-page.component.js +109 -0
- package/esm2015/lib/components/pages/export-page/export-page.component.js +65 -0
- package/esm2015/lib/components/pages/form-page/form-page.component.js +133 -0
- package/esm2015/lib/components/pages/layout-editor-page/layout-editor-page.component.js +72 -0
- package/esm2015/lib/components/pages/list-page/list-page-datasource.js +62 -0
- package/esm2015/lib/components/pages/list-page/list-page.component.js +159 -0
- package/esm2015/lib/components/pages/tabbed-page/tabbed-page.component.js +35 -0
- package/esm2015/lib/components/titles/content-title/content-title.component.js +23 -0
- package/esm2015/lib/components/titles/page-title/page-title.component.js +28 -0
- package/esm2015/lib/components/titles/section-title/section-title.component.js +18 -0
- package/esm2015/lib/components/widgets/delete-confirmation-dialog/delete-confirmation-dialog.component.js +36 -0
- package/esm2015/lib/components/widgets/dynamic-table/dynamic-table-datasource.js +89 -0
- package/esm2015/lib/components/widgets/dynamic-table/dynamic-table.component.js +67 -0
- package/esm2015/lib/components/widgets/file-preview-dialog/file-preview-dialog.component.js +42 -0
- package/esm2015/lib/components/widgets/loader/loader.component.js +21 -0
- package/esm2015/lib/components/widgets/save-confirmation-dialog/save-confirmation-dialog.component.js +35 -0
- package/esm2015/lib/components/widgets/search-panel/search-panel.component.js +67 -0
- package/esm2015/lib/components/widgets/snackbar/snackbar.component.js +42 -0
- package/esm2015/lib/config/charts/column-chart.data.js +38 -0
- package/esm2015/lib/config/charts/gantt-chart.data.js +18 -0
- package/esm2015/lib/config/charts/pie-chart.data.js +21 -0
- package/esm2015/lib/config/charts/progress-bar-chart.data.js +50 -0
- package/esm2015/lib/config/charts/spline-chart.data.js +24 -0
- package/esm2015/lib/data-structures/dynamic-layout.structure.js +2 -0
- package/esm2015/lib/data-structures/file-attachment.structure.js +2 -0
- package/esm2015/lib/directives/click-stop-propagation.directive.js +19 -0
- package/esm2015/lib/directives/file-dropzone.directive.js +53 -0
- package/esm2015/lib/guards/feature.guard.js +42 -0
- package/esm2015/lib/guards/password-check.guard.js +21 -0
- package/esm2015/lib/guards/session.guard.js +21 -0
- package/esm2015/lib/mantle.module.js +518 -0
- package/esm2015/lib/material.module.js +290 -0
- package/esm2015/lib/models/screen-size-map.model.js +9 -0
- package/esm2015/lib/pipes/dynamic.pipe.js +45 -0
- package/esm2015/lib/pipes/secure-image.pipe.js +35 -0
- package/esm2015/lib/services/adapters/web-api-crud.adapter.js +22 -0
- package/esm2015/lib/services/adapters/websocket.adapter.js +2 -0
- package/esm2015/lib/services/announcement.service.js +43 -0
- package/esm2015/lib/services/array.service.js +82 -0
- package/esm2015/lib/services/chart.service.js +45 -0
- package/esm2015/lib/services/confirmation.service.js +45 -0
- package/esm2015/lib/services/current-user.service.js +120 -0
- package/esm2015/lib/services/dynamic-form.service.js +59 -0
- package/esm2015/lib/services/feature-config.service.js +240 -0
- package/esm2015/lib/services/interfaces/authorisable-feature.service.js +2 -0
- package/esm2015/lib/services/interfaces/dashboard-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/dashboard-widget.service.js +2 -0
- package/esm2015/lib/services/interfaces/detail-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/export-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/form-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/layout-editor-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/list-page.service.js +2 -0
- package/esm2015/lib/services/interfaces/nav-tabs.service.js +2 -0
- package/esm2015/lib/services/interfaces/reroute.service.js +2 -0
- package/esm2015/lib/services/object.service.js +69 -0
- package/esm2015/lib/services/password-check.service.js +93 -0
- package/esm2015/lib/services/screen-size.service.js +41 -0
- package/esm2015/lib/services/web-api.service.js +99 -0
- package/esm2015/lib/services/websocket.service.js +58 -0
- package/esm2015/lib/tokens/environment.token.js +3 -0
- package/esm2015/public-api.js +133 -0
- package/fesm2015/codetectonics-mantle.js +5940 -0
- package/fesm2015/codetectonics-mantle.js.map +1 -0
- package/lib/components/dashboard/containers/dynamic-dashboard-container/dynamic-dashboard-container.component.d.ts +11 -0
- package/lib/components/dashboard/containers/plain-dashboard-container/plain-dashboard-container.component.d.ts +14 -0
- package/lib/components/dashboard/dashboard-card/dashboard-card.component.d.ts +41 -0
- package/lib/components/dashboard/dashboard-card-search-menu/dashboard-card-search-menu.component.d.ts +20 -0
- package/lib/components/dashboard/dynamic-dashboard/dynamic-dashboard.component.d.ts +10 -0
- package/lib/components/dashboard/sections/dashboard-section/dashboard-section.component.d.ts +27 -0
- package/lib/components/dashboard/widgets/dashboard-info-card/dashboard-info-card.component.d.ts +8 -0
- package/lib/components/dashboard/widgets/dashboard-table/dashboard-table-datasource.d.ts +22 -0
- package/lib/components/dashboard/widgets/dashboard-table/dashboard-table.component.d.ts +28 -0
- package/lib/components/dashboard/widgets/dynamic-chart/dynamic-chart.component.d.ts +20 -0
- package/lib/components/dashboard/widgets/dynamic-widget-display/dynamic-widget-display.component.d.ts +9 -0
- package/lib/components/details/containers/accordion-details-container/accordion-details-container.component.d.ts +11 -0
- package/lib/components/details/containers/dynamic-details-container/dynamic-details-container.component.d.ts +11 -0
- package/lib/components/details/containers/plain-details-container/plain-details-container.component.d.ts +11 -0
- package/lib/components/details/dialog-details/dialog-details.component.d.ts +36 -0
- package/lib/components/details/dialog-nested-details/dialog-nested-details.component.d.ts +22 -0
- package/lib/components/details/dynamic-details/dynamic-details.component.d.ts +10 -0
- package/lib/components/details/fields/actions-attribute-display/actions-attribute-display.component.d.ts +7 -0
- package/lib/components/details/fields/chip-attribute-display/chip-attribute-display.component.d.ts +9 -0
- package/lib/components/details/fields/dynamic-attribute-display/dynamic-attribute-display.component.d.ts +15 -0
- package/lib/components/details/fields/file-attribute-display/file-attribute-display.component.d.ts +12 -0
- package/lib/components/details/fields/image-attribute-display/image-attribute-display.component.d.ts +12 -0
- package/lib/components/details/fields/link-attribute-display/link-attribute-display.component.d.ts +10 -0
- package/lib/components/details/fields/markdown-attribute-display/markdown-attribute-display.component.d.ts +6 -0
- package/lib/components/details/fields/thumbnail-display/thumbnail-display.component.d.ts +10 -0
- package/lib/components/details/sections/dynamic-details-section/dynamic-details-section.component.d.ts +17 -0
- package/lib/components/details/sections/grid-details-section/grid-details-section.component.d.ts +17 -0
- package/lib/components/details/sections/markdown-details-section/markdown-details-section.component.d.ts +7 -0
- package/lib/components/details/sections/table-details-section/table-details-section.component.d.ts +12 -0
- package/lib/components/form/containers/accordion-form-container/accordion-form-container.component.d.ts +13 -0
- package/lib/components/form/containers/dynamic-form-container/dynamic-form-container.component.d.ts +13 -0
- package/lib/components/form/containers/plain-form-container/plain-form-container.component.d.ts +13 -0
- package/lib/components/form/dialog-form/dialog-form.component.d.ts +39 -0
- package/lib/components/form/dialog-nested-form/dialog-nested-form.component.d.ts +31 -0
- package/lib/components/form/dynamic-form/dynamic-form.component.d.ts +21 -0
- package/lib/components/form/fields/autocomplete-input/autocomplete-input.component.d.ts +32 -0
- package/lib/components/form/fields/chip-input/chip-input.component.d.ts +27 -0
- package/lib/components/form/fields/datepicker/datepicker.component.d.ts +24 -0
- package/lib/components/form/fields/datetimepicker/datetimepicker.component.d.ts +24 -0
- package/lib/components/form/fields/dropdown/dropdown.component.d.ts +31 -0
- package/lib/components/form/fields/dynamic-form-field/dynamic-form-field.component.d.ts +10 -0
- package/lib/components/form/fields/filepicker/filepicker.component.d.ts +27 -0
- package/lib/components/form/fields/image-cropper/image-cropper.component.d.ts +27 -0
- package/lib/components/form/fields/imagepicker/imagepicker.component.d.ts +41 -0
- package/lib/components/form/fields/markdown-input/markdown-input.component.d.ts +17 -0
- package/lib/components/form/fields/number-input/number-input.component.d.ts +27 -0
- package/lib/components/form/fields/password-input/password-input.component.d.ts +19 -0
- package/lib/components/form/fields/text-input/text-input.component.d.ts +18 -0
- package/lib/components/form/fields/textarea/textarea.component.d.ts +19 -0
- package/lib/components/form/sections/dynamic-form-section/dynamic-form-section.component.d.ts +19 -0
- package/lib/components/form/sections/grid-form-section/grid-form-section.component.d.ts +23 -0
- package/lib/components/form/sections/table-form-section/table-form-section.component.d.ts +22 -0
- package/lib/components/layout-editor/containers/accordion-layout-editor-container/accordion-layout-editor-container.component.d.ts +10 -0
- package/lib/components/layout-editor/containers/dynamic-layout-editor-container/dynamic-layout-editor-container.component.d.ts +10 -0
- package/lib/components/layout-editor/containers/plain-layout-editor-container/plain-layout-editor-container.component.d.ts +10 -0
- package/lib/components/layout-editor/dynamic-layout-editor/dynamic-layout-editor.component.d.ts +10 -0
- package/lib/components/layout-editor/elements/dynamic-layout-editor-element/dynamic-layout-editor-element.component.d.ts +13 -0
- package/lib/components/layout-editor/elements/layout-editor-field-element/layout-editor-field-element.component.d.ts +14 -0
- package/lib/components/layout-editor/elements/layout-editor-table-column-element/layout-editor-table-column-element.component.d.ts +14 -0
- package/lib/components/layout-editor/elements/layout-editor-widget-element/layout-editor-widget-element.component.d.ts +8 -0
- package/lib/components/layout-editor/sections/dashboard-layout-editor-section/dashboard-layout-editor-section.component.d.ts +8 -0
- package/lib/components/layout-editor/sections/dynamic-layout-editor-section/dynamic-layout-editor-section.component.d.ts +10 -0
- package/lib/components/layout-editor/sections/grid-layout-editor-section/grid-layout-editor-section.component.d.ts +21 -0
- package/lib/components/layout-editor/sections/markdown-layout-editor-section/markdown-layout-editor-section.component.d.ts +7 -0
- package/lib/components/layout-editor/sections/table-layout-editor-section/table-layout-editor-section.component.d.ts +14 -0
- package/lib/components/navigation/nav-tree/nav-tree.component.d.ts +46 -0
- package/lib/components/navigation/reroute/reroute.component.d.ts +14 -0
- package/lib/components/pages/dashboard-page/dashboard-page.component.d.ts +16 -0
- package/lib/components/pages/detail-page/detail-page.component.d.ts +35 -0
- package/lib/components/pages/documents-page/documents-page.component.d.ts +41 -0
- package/lib/components/pages/export-page/export-page.component.d.ts +29 -0
- package/lib/components/pages/form-page/form-page.component.d.ts +37 -0
- package/lib/components/pages/layout-editor-page/layout-editor-page.component.d.ts +26 -0
- package/lib/components/pages/list-page/list-page-datasource.d.ts +32 -0
- package/lib/components/pages/list-page/list-page.component.d.ts +46 -0
- package/lib/components/pages/tabbed-page/tabbed-page.component.d.ts +16 -0
- package/lib/components/titles/content-title/content-title.component.d.ts +8 -0
- package/lib/components/titles/page-title/page-title.component.d.ts +10 -0
- package/lib/components/titles/section-title/section-title.component.d.ts +7 -0
- package/lib/components/widgets/delete-confirmation-dialog/delete-confirmation-dialog.component.d.ts +20 -0
- package/lib/components/widgets/dynamic-table/dynamic-table-datasource.d.ts +40 -0
- package/lib/components/widgets/dynamic-table/dynamic-table.component.d.ts +30 -0
- package/lib/components/widgets/file-preview-dialog/file-preview-dialog.component.d.ts +17 -0
- package/lib/components/widgets/loader/loader.component.d.ts +6 -0
- package/lib/components/widgets/save-confirmation-dialog/save-confirmation-dialog.component.d.ts +16 -0
- package/lib/components/widgets/search-panel/search-panel.component.d.ts +21 -0
- package/lib/components/widgets/snackbar/snackbar.component.d.ts +11 -0
- package/lib/config/charts/column-chart.data.d.ts +37 -0
- package/lib/config/charts/gantt-chart.data.d.ts +17 -0
- package/lib/config/charts/pie-chart.data.d.ts +20 -0
- package/lib/config/charts/progress-bar-chart.data.d.ts +49 -0
- package/lib/config/charts/spline-chart.data.d.ts +23 -0
- package/lib/data-structures/dynamic-layout.structure.d.ts +161 -0
- package/lib/data-structures/file-attachment.structure.d.ts +6 -0
- package/lib/directives/click-stop-propagation.directive.d.ts +6 -0
- package/lib/directives/file-dropzone.directive.d.ts +12 -0
- package/lib/guards/feature.guard.d.ts +15 -0
- package/lib/guards/password-check.guard.d.ts +11 -0
- package/lib/guards/session.guard.d.ts +10 -0
- package/lib/mantle.module.d.ts +106 -0
- package/lib/material.module.d.ts +34 -0
- package/lib/models/screen-size-map.model.d.ts +13 -0
- package/lib/pipes/dynamic.pipe.d.ts +12 -0
- package/lib/pipes/secure-image.pipe.d.ts +11 -0
- package/lib/services/adapters/web-api-crud.adapter.d.ts +63 -0
- package/lib/services/adapters/websocket.adapter.d.ts +6 -0
- package/lib/services/announcement.service.d.ts +11 -0
- package/lib/services/array.service.d.ts +21 -0
- package/lib/services/chart.service.d.ts +14 -0
- package/lib/services/confirmation.service.d.ts +11 -0
- package/lib/services/current-user.service.d.ts +28 -0
- package/lib/services/dynamic-form.service.d.ts +30 -0
- package/lib/services/feature-config.service.d.ts +82 -0
- package/lib/services/interfaces/authorisable-feature.service.d.ts +5 -0
- package/lib/services/interfaces/dashboard-page.service.d.ts +13 -0
- package/lib/services/interfaces/dashboard-widget.service.d.ts +34 -0
- package/lib/services/interfaces/detail-page.service.d.ts +36 -0
- package/lib/services/interfaces/export-page.service.d.ts +6 -0
- package/lib/services/interfaces/form-page.service.d.ts +30 -0
- package/lib/services/interfaces/layout-editor-page.service.d.ts +14 -0
- package/lib/services/interfaces/list-page.service.d.ts +44 -0
- package/lib/services/interfaces/nav-tabs.service.d.ts +7 -0
- package/lib/services/interfaces/reroute.service.d.ts +3 -0
- package/lib/services/object.service.d.ts +11 -0
- package/lib/services/password-check.service.d.ts +21 -0
- package/lib/services/screen-size.service.d.ts +14 -0
- package/lib/services/web-api.service.d.ts +21 -0
- package/lib/services/websocket.service.d.ts +20 -0
- package/lib/tokens/environment.token.d.ts +2 -0
- package/package.json +33 -15
- package/public-api.d.ts +129 -2
- package/fesm2022/codetectonics-mantle.mjs +0 -42
- package/fesm2022/codetectonics-mantle.mjs.map +0 -1
- package/lib/mantle.component.d.ts +0 -5
- package/lib/mantle.service.d.ts +0 -6
- /package/{index.d.ts → codetectonics-mantle.d.ts} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { AngularTokenService, ResetPasswordData, SignInData, UpdatePasswordData } from 'angular-token';
|
|
4
|
+
import { ArrayService } from './array.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CurrentUserService {
|
|
7
|
+
protected tokenService: AngularTokenService;
|
|
8
|
+
protected router: Router;
|
|
9
|
+
protected arrayService: ArrayService;
|
|
10
|
+
sessionData: BehaviorSubject<any>;
|
|
11
|
+
constructor(tokenService: AngularTokenService, router: Router, arrayService: ArrayService);
|
|
12
|
+
signIn(signInData: SignInData, onSuccess?: (res: any) => void, onFailure?: (res: any) => void): void;
|
|
13
|
+
validateToken(onValid?: (res: any) => void, onInvalid?: (res: any) => void): void;
|
|
14
|
+
updatePassword(updatePasswordData: UpdatePasswordData, onSuccess?: (res: any) => void, onFailure?: (res: any) => void): void;
|
|
15
|
+
resetPassword(resetPasswordData: ResetPasswordData, onSuccess?: (res: any) => void, onFailure?: (res: any) => void): void;
|
|
16
|
+
signOut(callback?: () => void): void;
|
|
17
|
+
isSignedIn(): boolean;
|
|
18
|
+
getSessionData(): any;
|
|
19
|
+
clearSessionData(): void;
|
|
20
|
+
getId(): any;
|
|
21
|
+
changePassword(): void;
|
|
22
|
+
getPermissions(): any;
|
|
23
|
+
hasFeatureAccess(feature: string, action?: string): boolean;
|
|
24
|
+
setLatestPasswordCheckTime(): void;
|
|
25
|
+
getLatestPasswordCheckTime(): string | null;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrentUserService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrentUserService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DynamicFormField {
|
|
4
|
+
label: string;
|
|
5
|
+
attr: string;
|
|
6
|
+
type: string;
|
|
7
|
+
options: any;
|
|
8
|
+
default?: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
hidden: boolean;
|
|
12
|
+
constructor(options: {
|
|
13
|
+
label: string;
|
|
14
|
+
attr: string;
|
|
15
|
+
type: string;
|
|
16
|
+
options?: any;
|
|
17
|
+
default?: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
hidden?: boolean;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export declare class DynamicFormService {
|
|
24
|
+
constructor();
|
|
25
|
+
toFormGroup(data?: any, formGroup?: FormGroup): FormGroup;
|
|
26
|
+
generateFormInitData(fields: DynamicFormField[]): any[];
|
|
27
|
+
transformFormValue(formValue: any): any;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormService>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { AuthorisableFeatureService } from '../services/interfaces/authorisable-feature.service';
|
|
6
|
+
import { ConfirmationService } from '../services/confirmation.service';
|
|
7
|
+
import { CurrentUserService } from '../services/current-user.service';
|
|
8
|
+
import { DetailPageService } from '../services/interfaces/detail-page.service';
|
|
9
|
+
import { FormPageService } from '../services/interfaces/form-page.service';
|
|
10
|
+
import { WebApiCrudAdapter } from '../services/adapters/web-api-crud.adapter';
|
|
11
|
+
import { WebsocketAdapter } from '../services/adapters/websocket.adapter';
|
|
12
|
+
import { WebApiService } from '../services/web-api.service';
|
|
13
|
+
import { WebsocketService } from '../services/websocket.service';
|
|
14
|
+
import { DetailPageButton } from '../services/interfaces/detail-page.service';
|
|
15
|
+
import { DetailPageExportOption } from '../services/interfaces/detail-page.service';
|
|
16
|
+
import { DynamicDetailsContent } from '../data-structures/dynamic-layout.structure';
|
|
17
|
+
import { DynamicFormContent } from '../data-structures/dynamic-layout.structure';
|
|
18
|
+
import { FormPageButton } from '../services/interfaces/form-page.service';
|
|
19
|
+
import { ListPageBulkExportOption } from '../services/interfaces/list-page.service';
|
|
20
|
+
import { ListPageExportOption } from '../services/interfaces/list-page.service';
|
|
21
|
+
import { WebApiDeleteResponse } from '../services/adapters/web-api-crud.adapter';
|
|
22
|
+
import { WebApiDetailsResponse } from '../services/adapters/web-api-crud.adapter';
|
|
23
|
+
import { WebApiFormResponse } from '../services/adapters/web-api-crud.adapter';
|
|
24
|
+
import { WebApiListRequest } from '../services/adapters/web-api-crud.adapter';
|
|
25
|
+
import { WebApiListResponse } from '../services/adapters/web-api-crud.adapter';
|
|
26
|
+
import { WebApiSaveResponse } from '../services/adapters/web-api-crud.adapter';
|
|
27
|
+
export declare class FeatureConfigService implements WebApiCrudAdapter, WebsocketAdapter, AuthorisableFeatureService {
|
|
28
|
+
private parentComponent;
|
|
29
|
+
protected webApiBaseUrl: string;
|
|
30
|
+
protected webApiService: WebApiService;
|
|
31
|
+
private webRtcChannel;
|
|
32
|
+
protected webRtcService: WebsocketService;
|
|
33
|
+
protected feature: string;
|
|
34
|
+
protected currentUserService: CurrentUserService;
|
|
35
|
+
protected sessionData: any;
|
|
36
|
+
protected router: Router;
|
|
37
|
+
protected dialog: MatDialog;
|
|
38
|
+
protected confirmationService: ConfirmationService;
|
|
39
|
+
private webRtcConnection;
|
|
40
|
+
webRtcEvents: EventEmitter<any>;
|
|
41
|
+
listContentChangeEvents: EventEmitter<any>;
|
|
42
|
+
isCommitInProgress: boolean;
|
|
43
|
+
constructor(config: any);
|
|
44
|
+
onInit(): void;
|
|
45
|
+
noun(): string;
|
|
46
|
+
setParentComponent(parentComponent: any): void;
|
|
47
|
+
refreshParentComponent(): void;
|
|
48
|
+
getList(params: WebApiListRequest, headers?: any): Observable<WebApiListResponse>;
|
|
49
|
+
get(id: string, params?: any, headers?: any): Observable<WebApiDetailsResponse>;
|
|
50
|
+
getNew(params?: any, headers?: any): Observable<WebApiFormResponse>;
|
|
51
|
+
create(params: any, headers?: any): Observable<WebApiSaveResponse>;
|
|
52
|
+
getEdit(id: string, params?: any, headers?: any): Observable<WebApiFormResponse>;
|
|
53
|
+
update(id: string, params: any, headers?: any): Observable<WebApiSaveResponse>;
|
|
54
|
+
destroy(id: string, params?: any, headers?: any): Observable<any>;
|
|
55
|
+
downloadList(format: string, filename: string, params?: any, headers?: any): Observable<any>;
|
|
56
|
+
download(id: string, format: string, filename: string, params?: any, headers?: any): Observable<any>;
|
|
57
|
+
connectWebRtc(): void;
|
|
58
|
+
disconnectWebRtc(): void;
|
|
59
|
+
canRead(): boolean;
|
|
60
|
+
canWrite(): boolean;
|
|
61
|
+
authorise(action: string): boolean;
|
|
62
|
+
openRoute(route: string): void;
|
|
63
|
+
openDetailDialog(detailPageService: DetailPageService, title: string, record: any): void;
|
|
64
|
+
openFormDialog(formPageService: FormPageService, title: string, record?: any, initData?: any): void;
|
|
65
|
+
onDetailContentLoaded(content: DynamicDetailsContent): void;
|
|
66
|
+
detailPageExportOptions(): DetailPageExportOption[];
|
|
67
|
+
detailPageSectionActions(sectionSlug: string): any[];
|
|
68
|
+
additionalDetailPageButtons(record: any): DetailPageButton[];
|
|
69
|
+
deletionOptions(): any;
|
|
70
|
+
delete(id: string, onDeleteConfirmed: () => void, onSuccess: (response: WebApiDeleteResponse) => void, onFailure: (response: WebApiDeleteResponse) => void): void;
|
|
71
|
+
onDeleteSuccess(response: WebApiSaveResponse): void;
|
|
72
|
+
onDeleteFailure(response: WebApiSaveResponse): void;
|
|
73
|
+
onFormContentLoaded(content: DynamicFormContent): void;
|
|
74
|
+
onFormValueChanged(pageContent: DynamicFormContent, formValue: any): void;
|
|
75
|
+
additionalFormPageButtons(record: any): FormPageButton[];
|
|
76
|
+
save(id: string | undefined, value: any, onSuccess: (response: WebApiSaveResponse) => void, onFailure: (response: WebApiSaveResponse) => void): void;
|
|
77
|
+
beforeSave(value: any): void;
|
|
78
|
+
onSaveSuccess(response: WebApiSaveResponse): void;
|
|
79
|
+
onSaveFailure(response: WebApiSaveResponse): void;
|
|
80
|
+
listPageExportOptions(): ListPageExportOption[];
|
|
81
|
+
listPageBulkExportOptions(): ListPageBulkExportOption[];
|
|
82
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DynamicLayoutGridDimensions } from '../../data-structures/dynamic-layout.structure';
|
|
3
|
+
import { ScreenSizeMap } from '../../models/screen-size-map.model';
|
|
4
|
+
import { DashboardWidgetService } from '../../services/interfaces/dashboard-widget.service';
|
|
5
|
+
export interface DashboardPageSection {
|
|
6
|
+
sectionSlug: string;
|
|
7
|
+
sectionDimensions: ScreenSizeMap<DynamicLayoutGridDimensions>;
|
|
8
|
+
dashboardWidgetServices: DashboardWidgetService[];
|
|
9
|
+
}
|
|
10
|
+
export interface DashboardPageService {
|
|
11
|
+
getWidgetItems(params: any): Observable<any>;
|
|
12
|
+
dashboardSections(): DashboardPageSection[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DynamicFormField } from '../../services/dynamic-form.service';
|
|
3
|
+
import { DynamicLayoutGridCellDimensions, DynamicLayoutGridDimensions } from '../../data-structures/dynamic-layout.structure';
|
|
4
|
+
import { ScreenSizeMap } from '../../models/screen-size-map.model';
|
|
5
|
+
export interface DashboardWidgetItemConfig {
|
|
6
|
+
label: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
type: string;
|
|
9
|
+
size: ScreenSizeMap<DynamicLayoutGridCellDimensions>;
|
|
10
|
+
configuration: any;
|
|
11
|
+
}
|
|
12
|
+
export interface WidgetExportOption {
|
|
13
|
+
label: string;
|
|
14
|
+
export(params: any): Observable<any>;
|
|
15
|
+
}
|
|
16
|
+
export interface DashboardWidgetButton {
|
|
17
|
+
label: string;
|
|
18
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
19
|
+
styling?: any;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
onClick: (data?: any) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface DashboardWidgetService {
|
|
24
|
+
slug: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
showMenuButton: boolean;
|
|
27
|
+
widgetDimensions: ScreenSizeMap<DynamicLayoutGridDimensions>;
|
|
28
|
+
widgetSize(): ScreenSizeMap<DynamicLayoutGridCellDimensions>;
|
|
29
|
+
widgetItemsConfig(): DashboardWidgetItemConfig[];
|
|
30
|
+
widgetExportOptions(): WidgetExportOption[];
|
|
31
|
+
additionalWidgetButtons(widgetConfig?: any): DashboardWidgetButton[];
|
|
32
|
+
widgetSearchFields(): DynamicFormField[];
|
|
33
|
+
defaultOptions(): any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { WebApiDetailsResponse, WebApiDeleteResponse } from '../../services/adapters/web-api-crud.adapter';
|
|
3
|
+
import { DynamicDetailsContent } from '../../data-structures/dynamic-layout.structure';
|
|
4
|
+
export interface DetailPageButton {
|
|
5
|
+
label: string;
|
|
6
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
7
|
+
position: 'left' | 'right';
|
|
8
|
+
show: boolean;
|
|
9
|
+
isInProgress: () => boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
onClick: (id: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface DetailPageExportOption {
|
|
14
|
+
label: string;
|
|
15
|
+
export(record: any): Observable<any>;
|
|
16
|
+
show?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface DetailPageService {
|
|
19
|
+
showEditButton: boolean;
|
|
20
|
+
showDeleteButton: boolean;
|
|
21
|
+
hideBackButton?: boolean;
|
|
22
|
+
deleteConfirmationMessage?: string;
|
|
23
|
+
isCommitInProgress: boolean;
|
|
24
|
+
noun(): string;
|
|
25
|
+
setParentComponent(parentComponent: any): void;
|
|
26
|
+
get(id: string): Observable<WebApiDetailsResponse>;
|
|
27
|
+
delete(id: string, onDeleteConfirmed: () => void, onSuccess: (response: WebApiDeleteResponse) => void, onFailure: (response: WebApiDeleteResponse) => void): void;
|
|
28
|
+
destroy(id: string): Observable<WebApiDeleteResponse>;
|
|
29
|
+
detailPageExportOptions(record?: any): DetailPageExportOption[];
|
|
30
|
+
onDetailContentLoaded(content: DynamicDetailsContent): void;
|
|
31
|
+
detailPageSectionActions(sectionSlug: string): any[];
|
|
32
|
+
additionalDetailPageButtons(record: any): DetailPageButton[];
|
|
33
|
+
openList(): void;
|
|
34
|
+
openForm(record?: any): void;
|
|
35
|
+
canWrite(): boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { WebApiFormResponse, WebApiSaveResponse } from '../../services/adapters/web-api-crud.adapter';
|
|
3
|
+
import { DynamicFormContent } from '../../data-structures/dynamic-layout.structure';
|
|
4
|
+
export interface FormPageButton {
|
|
5
|
+
label: string;
|
|
6
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
7
|
+
position: 'left' | 'right';
|
|
8
|
+
show: boolean;
|
|
9
|
+
isInProgress: () => boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
onClick: (record: any) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface FormPageService {
|
|
14
|
+
showSaveButton: boolean;
|
|
15
|
+
isCommitInProgress: boolean;
|
|
16
|
+
noun(): string;
|
|
17
|
+
getNew(params?: any): Observable<WebApiFormResponse>;
|
|
18
|
+
create(params: any): Observable<WebApiSaveResponse>;
|
|
19
|
+
getEdit(id: string): Observable<WebApiFormResponse>;
|
|
20
|
+
update(id: string, params: any): Observable<WebApiSaveResponse>;
|
|
21
|
+
save(id: string | undefined, value: any, onSuccess: (response: WebApiSaveResponse) => void, onFailure: (response: WebApiSaveResponse) => void): void;
|
|
22
|
+
onFormContentLoaded(content: DynamicFormContent): void;
|
|
23
|
+
onFormValueChanged(pageContent: DynamicFormContent, formValue: any): void;
|
|
24
|
+
beforeSave(params: any): void;
|
|
25
|
+
onSaveSuccess(response: WebApiSaveResponse): void;
|
|
26
|
+
onSaveFailure(response: WebApiSaveResponse): void;
|
|
27
|
+
additionalFormPageButtons(record: any): FormPageButton[];
|
|
28
|
+
openRecord(record: any): void;
|
|
29
|
+
openList(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { WebApiFormResponse, WebApiSaveResponse } from '../../services/adapters/web-api-crud.adapter';
|
|
3
|
+
export interface LayoutEditorPageService {
|
|
4
|
+
showSaveButton: boolean;
|
|
5
|
+
isCommitInProgress: boolean;
|
|
6
|
+
noun(): string;
|
|
7
|
+
getEdit(id: string): Observable<WebApiFormResponse>;
|
|
8
|
+
openList(): void;
|
|
9
|
+
canWrite(): boolean;
|
|
10
|
+
update(id: string, params: any): Observable<WebApiSaveResponse>;
|
|
11
|
+
save(id: string | undefined, value: any, onSuccess: (response: WebApiSaveResponse) => void, onFailure: (response: WebApiSaveResponse) => void): void;
|
|
12
|
+
onSaveSuccess(response: WebApiSaveResponse): void;
|
|
13
|
+
onSaveFailure(response: WebApiSaveResponse): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { WebApiListRequest, WebApiListResponse } from '../../services/adapters/web-api-crud.adapter';
|
|
5
|
+
import { DynamicFormField } from '../../services/dynamic-form.service';
|
|
6
|
+
export interface ListPageColumn {
|
|
7
|
+
header: string;
|
|
8
|
+
attr: string;
|
|
9
|
+
type: string;
|
|
10
|
+
options?: any;
|
|
11
|
+
sortAttr?: string;
|
|
12
|
+
disableSort?: boolean;
|
|
13
|
+
enableCollapse?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ListPageExportOption {
|
|
16
|
+
label: string;
|
|
17
|
+
export(params: any): Observable<any>;
|
|
18
|
+
}
|
|
19
|
+
export interface ListPageBulkExportOption {
|
|
20
|
+
label: string;
|
|
21
|
+
export(selectedIds: string[]): void;
|
|
22
|
+
}
|
|
23
|
+
export interface ListPageService {
|
|
24
|
+
withCheckableRows?: boolean;
|
|
25
|
+
withClickableRows: boolean;
|
|
26
|
+
withCollapsibleColumns?: boolean;
|
|
27
|
+
showAddButton: boolean;
|
|
28
|
+
webRtcEvents: EventEmitter<any>;
|
|
29
|
+
listContentChangeEvents: EventEmitter<any>;
|
|
30
|
+
defaultOrder?: {
|
|
31
|
+
attr: string;
|
|
32
|
+
direction: 'asc' | 'desc';
|
|
33
|
+
};
|
|
34
|
+
prepare(route: ActivatedRoute): void;
|
|
35
|
+
noun(): string;
|
|
36
|
+
listColumns(): ListPageColumn[];
|
|
37
|
+
searchFields(): DynamicFormField[];
|
|
38
|
+
listPageExportOptions(): ListPageExportOption[];
|
|
39
|
+
listPageBulkExportOptions(): ListPageBulkExportOption[];
|
|
40
|
+
getList(params: WebApiListRequest): Observable<WebApiListResponse>;
|
|
41
|
+
openRecord(record: any): void;
|
|
42
|
+
openForm(record?: any, initData?: any): void;
|
|
43
|
+
canWrite(): boolean;
|
|
44
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ObjectService {
|
|
3
|
+
constructor();
|
|
4
|
+
removeEmptyAttributes(object?: any): void;
|
|
5
|
+
removeAllAttributes(object?: any): void;
|
|
6
|
+
deepMerge(...objects: any[]): any;
|
|
7
|
+
deepClone(object: any): any;
|
|
8
|
+
isObject(objValue: any): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AnnouncementService } from './announcement.service';
|
|
4
|
+
import { CurrentUserService } from './current-user.service';
|
|
5
|
+
import { WebApiService } from './web-api.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PasswordCheckService {
|
|
8
|
+
private dialog;
|
|
9
|
+
private announcementService;
|
|
10
|
+
private currentUserService;
|
|
11
|
+
private webApiService;
|
|
12
|
+
constructor(dialog: MatDialog, announcementService: AnnouncementService, currentUserService: CurrentUserService, webApiService: WebApiService);
|
|
13
|
+
checkPassword(): Observable<boolean>;
|
|
14
|
+
private getLatestPasswordCheckTime;
|
|
15
|
+
private setLatestPasswordCheckTime;
|
|
16
|
+
private hasLatestPasswordCheckExpired;
|
|
17
|
+
private validatePassword;
|
|
18
|
+
private modalConfiguration;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordCheckService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PasswordCheckService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ScreenSizeService implements OnDestroy {
|
|
6
|
+
private breakpointObserver;
|
|
7
|
+
private screenSizes;
|
|
8
|
+
screenSize: BehaviorSubject<any>;
|
|
9
|
+
private destroyed;
|
|
10
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenSizeService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenSizeService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { AngularTokenService } from 'angular-token';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WebApiService {
|
|
5
|
+
private environment;
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected angularTokenService: AngularTokenService;
|
|
8
|
+
private apiUrl;
|
|
9
|
+
constructor(environment: any, http: HttpClient, angularTokenService: AngularTokenService);
|
|
10
|
+
get(path: string, params?: any, headers?: any): import("rxjs").Observable<Object>;
|
|
11
|
+
create(path: string, params?: any, headers?: any): import("rxjs").Observable<Object>;
|
|
12
|
+
update(path: string, params?: any, headers?: any): import("rxjs").Observable<Object>;
|
|
13
|
+
destroy(path: string, params?: any, headers?: any): import("rxjs").Observable<Object>;
|
|
14
|
+
getBlob(path: string, params?: any, headers?: any): import("rxjs").Observable<Blob>;
|
|
15
|
+
download(path: string, filename: string, params?: any, headers?: any): import("rxjs").Observable<void>;
|
|
16
|
+
upload(file: File, onSuccess: (res: any) => void, onFailure: (error: string) => void): void;
|
|
17
|
+
absoluteUrl(url: string): string;
|
|
18
|
+
protected prepareHeaders(headers?: any): any;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebApiService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebApiService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as ActionCable from "@rails/actioncable";
|
|
2
|
+
import { AngularTokenService } from 'angular-token';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WebsocketService {
|
|
5
|
+
private environment;
|
|
6
|
+
private angularTokenService;
|
|
7
|
+
private wsUrl;
|
|
8
|
+
constructor(environment: any, angularTokenService: AngularTokenService);
|
|
9
|
+
connect(): {
|
|
10
|
+
subscribe: (channelName: string, callbacks?: any) => ActionCable.Subscription<ActionCable.Consumer> & ActionCable.Mixin & {
|
|
11
|
+
connected: () => void;
|
|
12
|
+
disconnected: () => void;
|
|
13
|
+
rejected: () => void;
|
|
14
|
+
received: (data: any) => void;
|
|
15
|
+
};
|
|
16
|
+
disconnect(): void;
|
|
17
|
+
};
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codetectonics/mantle",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular-material-components/datetime-picker": "^6.0.3",
|
|
6
|
+
"@angular-material-components/moment-adapter": "^6.0.0",
|
|
7
|
+
"@angular/animations": "^12.1.3",
|
|
8
|
+
"@angular/cdk": "^12.1.3",
|
|
5
9
|
"@angular/common": "^12.1.3",
|
|
6
|
-
"@angular/
|
|
10
|
+
"@angular/compiler": "^12.1.3",
|
|
11
|
+
"@angular/core": "^12.1.3",
|
|
12
|
+
"@angular/flex-layout": "^12.0.0-beta.34",
|
|
13
|
+
"@angular/forms": "^12.1.3",
|
|
14
|
+
"@angular/material": "^12.1.3",
|
|
15
|
+
"@angular/material-moment-adapter": "^12.1.3",
|
|
16
|
+
"@angular/platform-browser": "^12.1.3",
|
|
17
|
+
"@angular/platform-browser-dynamic": "^12.1.3",
|
|
18
|
+
"@angular/router": "^12.1.3",
|
|
19
|
+
"@rails/actioncable": "^6.1.4",
|
|
20
|
+
"@rails/activestorage": "^6.1.4",
|
|
21
|
+
"angular-token": "~9.0.0-beta.0",
|
|
22
|
+
"hammerjs": "^2.0.8",
|
|
23
|
+
"highcharts": "^10.3.1",
|
|
24
|
+
"highcharts-angular": "^2.10.0",
|
|
25
|
+
"moment": "^2.29.1",
|
|
26
|
+
"ngx-image-cropper": "^4.0.1",
|
|
27
|
+
"ngx-markdown": "^12.1.0",
|
|
28
|
+
"rxjs": "~6.6.0",
|
|
29
|
+
"zone.js": "~0.11.4"
|
|
7
30
|
},
|
|
8
31
|
"dependencies": {
|
|
9
|
-
"tslib": "^2.
|
|
32
|
+
"tslib": "^2.2.0"
|
|
10
33
|
},
|
|
11
|
-
"
|
|
12
|
-
"module": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./index.d.ts",
|
|
20
|
-
"default": "./fesm2022/codetectonics-mantle.mjs"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
34
|
+
"main": "bundles/codetectonics-mantle.umd.js",
|
|
35
|
+
"module": "fesm2015/codetectonics-mantle.js",
|
|
36
|
+
"es2015": "fesm2015/codetectonics-mantle.js",
|
|
37
|
+
"esm2015": "esm2015/codetectonics-mantle.js",
|
|
38
|
+
"fesm2015": "fesm2015/codetectonics-mantle.js",
|
|
39
|
+
"typings": "codetectonics-mantle.d.ts",
|
|
40
|
+
"sideEffects": false
|
|
23
41
|
}
|