@netgrif/components 6.0.4 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/esm2020/lib/admin/admin.module.mjs +31 -0
- package/esm2020/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.mjs +39 -0
- package/esm2020/lib/admin/public-api.mjs +7 -0
- package/esm2020/lib/admin/role-assignment/role-assignment.component.mjs +40 -0
- package/esm2020/lib/admin/user-invite/user-invite.component.mjs +34 -0
- package/esm2020/lib/authentication/auth.module.mjs +22 -0
- package/esm2020/lib/authentication/authentication-overlay/authentication-overlay.component.mjs +22 -0
- package/esm2020/lib/authentication/public-api.mjs +5 -0
- package/esm2020/lib/dashboard/cards/barchart-card/barchart-card.component.mjs +40 -0
- package/esm2020/lib/dashboard/cards/count-card/count-card.component.mjs +20 -0
- package/esm2020/lib/dashboard/cards/iframe-card/iframe-card.component.mjs +19 -0
- package/esm2020/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.mjs +37 -0
- package/esm2020/lib/dashboard/cards/linechart-card/line-chart-card.component.mjs +49 -0
- package/esm2020/lib/dashboard/cards/piechart-card/pie-chart-card.component.mjs +42 -0
- package/esm2020/lib/dashboard/cards/portal-card/portal-card.component.mjs +36 -0
- package/esm2020/lib/dashboard/dashboard-content/dashboard-content.component.mjs +26 -0
- package/esm2020/lib/dashboard/dashboard.module.mjs +77 -0
- package/esm2020/lib/dashboard/public-api.mjs +12 -0
- package/esm2020/lib/data-fields/boolean-field/boolean-field.component.mjs +34 -0
- package/esm2020/lib/data-fields/button-field/button-field.component.mjs +32 -0
- package/esm2020/lib/data-fields/data-field-template/data-field-template.component.mjs +23 -0
- package/esm2020/lib/data-fields/data-fields.module.mjs +226 -0
- package/esm2020/lib/data-fields/date-field/date-field.component.mjs +32 -0
- package/esm2020/lib/data-fields/date-time-field/date-time-field.component.mjs +33 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.mjs +25 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.mjs +23 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-field.component.mjs +28 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.mjs +22 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.mjs +22 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.mjs +21 -0
- package/esm2020/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.mjs +23 -0
- package/esm2020/lib/data-fields/file-field/file-field.component.mjs +51 -0
- package/esm2020/lib/data-fields/file-field/preview-dialog/preview-dialog.component.mjs +33 -0
- package/esm2020/lib/data-fields/file-field-list/file-list-field.component.mjs +33 -0
- package/esm2020/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.mjs +45 -0
- package/esm2020/lib/data-fields/filter-field/filter-field.component.mjs +27 -0
- package/esm2020/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.mjs +18 -0
- package/esm2020/lib/data-fields/i18n-field/i18n-field.component.mjs +24 -0
- package/esm2020/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.mjs +61 -0
- package/esm2020/lib/data-fields/multichoice-field/multichoice-field.component.mjs +24 -0
- package/esm2020/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.mjs +21 -0
- package/esm2020/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.mjs +18 -0
- package/esm2020/lib/data-fields/number-field/number-currency-field/number-currency-field.component.mjs +29 -0
- package/esm2020/lib/data-fields/number-field/number-default-field/number-default-field.component.mjs +20 -0
- package/esm2020/lib/data-fields/number-field/number-field.component.mjs +33 -0
- package/esm2020/lib/data-fields/public-api.mjs +18 -0
- package/esm2020/lib/data-fields/required-label/required-label.component.mjs +18 -0
- package/esm2020/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.mjs +23 -0
- package/esm2020/lib/data-fields/text-field/password-text-field/password-text-field.component.mjs +24 -0
- package/esm2020/lib/data-fields/text-field/rich-textarea-field/easymde-wrapper/easymde-wrapper.component.mjs +82 -0
- package/esm2020/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.mjs +22 -0
- package/esm2020/lib/data-fields/text-field/simple-text-field/simple-text-field.component.mjs +21 -0
- package/esm2020/lib/data-fields/text-field/text-field.component.mjs +27 -0
- package/esm2020/lib/data-fields/text-field/textarea-field/textarea-field.component.mjs +24 -0
- package/esm2020/lib/data-fields/user-field/user-field.component.mjs +32 -0
- package/esm2020/lib/forms/email-submission/email-submission-form.component.mjs +25 -0
- package/esm2020/lib/forms/email-submission/email-submission-form.module.mjs +41 -0
- package/esm2020/lib/forms/forgotten-password/forgotten-password-form-component.module.mjs +37 -0
- package/esm2020/lib/forms/forgotten-password/forgotten-password-form.component.mjs +25 -0
- package/esm2020/lib/forms/login/login-form.component.mjs +26 -0
- package/esm2020/lib/forms/login/login-form.module.mjs +37 -0
- package/esm2020/lib/forms/public-api.mjs +11 -0
- package/esm2020/lib/forms/registration/registration-form.component.mjs +26 -0
- package/esm2020/lib/forms/registration/registration-form.module.mjs +41 -0
- package/esm2020/lib/header/header-modes/edit-mode/edit-mode.component.mjs +27 -0
- package/esm2020/lib/header/header-modes/loading-mode/loading-mode.component.mjs +18 -0
- package/esm2020/lib/header/header-modes/search-mode/search-mode.component.mjs +41 -0
- package/esm2020/lib/header/header-modes/sort-mode/sort-mode.component.mjs +20 -0
- package/esm2020/lib/header/header.component.mjs +49 -0
- package/esm2020/lib/header/header.module.mjs +64 -0
- package/esm2020/lib/header/public-api.mjs +12 -0
- package/esm2020/lib/legal/legal-notice/legal-notice.component.mjs +17 -0
- package/esm2020/lib/legal/legal-notice/legal-notice.module.mjs +26 -0
- package/esm2020/lib/legal/public-api.mjs +5 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.mjs +80 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.mjs +42 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.mjs +85 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.mjs +77 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.mjs +30 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.mjs +2 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.mjs +31 -0
- package/esm2020/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.mjs +23 -0
- package/esm2020/lib/navigation/navigation-drawer/navigation-drawer.component.mjs +31 -0
- package/esm2020/lib/navigation/navigation-rail/navigation-rail.component.mjs +42 -0
- package/esm2020/lib/navigation/navigation-tree/navigation-tree.component.mjs +24 -0
- package/esm2020/lib/navigation/navigation.module.mjs +124 -0
- package/esm2020/lib/navigation/public-api.mjs +14 -0
- package/esm2020/lib/navigation/quick-panel/components/internal-link/internal-link.component.mjs +18 -0
- package/esm2020/lib/navigation/quick-panel/components/language-selector/language-selector.component.mjs +39 -0
- package/esm2020/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.mjs +23 -0
- package/esm2020/lib/navigation/quick-panel/components/quick-panel.component.mjs +26 -0
- package/esm2020/lib/navigation/quick-panel/public-api.mjs +9 -0
- package/esm2020/lib/navigation/quick-panel/quick-panel.module.mjs +52 -0
- package/esm2020/lib/panel/case-panel/case-panel.component.mjs +36 -0
- package/esm2020/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.mjs +21 -0
- package/esm2020/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.mjs +49 -0
- package/esm2020/lib/panel/panel-item/panel-item.component.mjs +22 -0
- package/esm2020/lib/panel/panel.component.mjs +19 -0
- package/esm2020/lib/panel/panel.module.mjs +96 -0
- package/esm2020/lib/panel/public-api.mjs +14 -0
- package/esm2020/lib/panel/public-workflow-panel/public-workflow-panel.component.mjs +22 -0
- package/esm2020/lib/panel/task-panel/task-panel.component.mjs +104 -0
- package/esm2020/lib/panel/task-panel-list/task-list.component.mjs +33 -0
- package/esm2020/lib/panel/task-panel-list-pagination/task-list-pagination.component.mjs +33 -0
- package/esm2020/lib/panel/workflow-panel/workflow-panel.component.mjs +26 -0
- package/esm2020/lib/routing/public-api.mjs +3 -0
- package/esm2020/lib/routing/redirect/redirect.component.mjs +20 -0
- package/esm2020/lib/routing/redirect.module.mjs +17 -0
- package/esm2020/lib/search/advanced-search/advanced-search-component/advanced-search.component.mjs +21 -0
- package/esm2020/lib/search/advanced-search/advanced-search.module.mjs +57 -0
- package/esm2020/lib/search/advanced-search/public-api.mjs +8 -0
- package/esm2020/lib/search/advanced-search/search-clause-component/search-clause.component.mjs +20 -0
- package/esm2020/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.mjs +31 -0
- package/esm2020/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.mjs +36 -0
- package/esm2020/lib/search/advanced-search/search-predicate-component/search-predicate.component.mjs +29 -0
- package/esm2020/lib/search/fulltext-search-component/fulltext-search.component.mjs +20 -0
- package/esm2020/lib/search/public-api.mjs +10 -0
- package/esm2020/lib/search/search-component/case-search/case-search.component.mjs +25 -0
- package/esm2020/lib/search/search-component/search.component.mjs +107 -0
- package/esm2020/lib/search/search-component/task-search/task-search.component.mjs +25 -0
- package/esm2020/lib/search/search.module.mjs +60 -0
- package/esm2020/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.mjs +17 -0
- package/esm2020/lib/side-menu/content-components/filter-selector/filter-selector.component.mjs +51 -0
- package/esm2020/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.mjs +36 -0
- package/esm2020/lib/side-menu/content-components/import-net/import-net.component.mjs +51 -0
- package/esm2020/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.mjs +45 -0
- package/esm2020/lib/side-menu/content-components/load-filter/load-filter.component.mjs +64 -0
- package/esm2020/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.mjs +42 -0
- package/esm2020/lib/side-menu/content-components/new-case/new-case.component.mjs +43 -0
- package/esm2020/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.mjs +57 -0
- package/esm2020/lib/side-menu/content-components/option-selector/option-selector.component.mjs +30 -0
- package/esm2020/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.mjs +38 -0
- package/esm2020/lib/side-menu/content-components/public-api.mjs +19 -0
- package/esm2020/lib/side-menu/content-components/save-filter/save-filter.component.mjs +58 -0
- package/esm2020/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.mjs +38 -0
- package/esm2020/lib/side-menu/content-components/side-menu-content-component.module.mjs +87 -0
- package/esm2020/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.mjs +56 -0
- package/esm2020/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.mjs +22 -0
- package/esm2020/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.mjs +27 -0
- package/esm2020/lib/side-menu/content-components/user-assign/user-assign.component.mjs +36 -0
- package/esm2020/lib/side-menu/public-api.mjs +7 -0
- package/esm2020/lib/side-menu/side-menu-container/side-menu-container.component.mjs +20 -0
- package/esm2020/lib/side-menu/side-menu.module.mjs +42 -0
- package/esm2020/lib/tabs/public-api.mjs +4 -0
- package/esm2020/lib/tabs/tab-creation-detector/tab-creation-detector.component.mjs +21 -0
- package/esm2020/lib/tabs/tab-view/tab-view.component.mjs +32 -0
- package/esm2020/lib/tabs/tabs.module.mjs +44 -0
- package/esm2020/lib/task-content/field-component-resolver/field-component-resolver.component.mjs +32 -0
- package/esm2020/lib/task-content/public-api.mjs +6 -0
- package/esm2020/lib/task-content/task-content/task-content.component.mjs +36 -0
- package/esm2020/lib/task-content/task-content.module.mjs +47 -0
- package/esm2020/lib/toolbar/public-api.mjs +3 -0
- package/esm2020/lib/toolbar/toolbar.component.mjs +26 -0
- package/esm2020/lib/toolbar/toolbar.module.mjs +35 -0
- package/esm2020/lib/user/profile/profile.component.mjs +25 -0
- package/esm2020/lib/user/profile/profile.module.mjs +31 -0
- package/esm2020/lib/user/public-api.mjs +7 -0
- package/esm2020/lib/user/user-card/user-card.component.mjs +23 -0
- package/esm2020/lib/user/user.module.mjs +35 -0
- package/esm2020/lib/view/case-view/case-view.module.mjs +38 -0
- package/esm2020/lib/view/case-view/components/case-list/case-list.component.mjs +34 -0
- package/esm2020/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.mjs +36 -0
- package/esm2020/lib/view/public-api.mjs +11 -0
- package/esm2020/lib/view/tree-case-view/tree-case-view.module.mjs +60 -0
- package/esm2020/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.mjs +22 -0
- package/esm2020/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.mjs +21 -0
- package/esm2020/lib/view/tree-case-view/tree-component/tree.component.mjs +27 -0
- package/esm2020/lib/view/tree-case-view/tree-task-content/tree-task-content.component.mjs +57 -0
- package/esm2020/lib/view/workflow-view/workflow-view.component.mjs +34 -0
- package/esm2020/lib/view/workflow-view.module.mjs +53 -0
- package/esm2020/netgrif-components.mjs +5 -0
- package/esm2020/public-api.mjs +22 -0
- package/fesm2015/netgrif-components.mjs +4255 -0
- package/fesm2015/netgrif-components.mjs.map +1 -0
- package/fesm2020/netgrif-components.mjs +4181 -0
- package/fesm2020/netgrif-components.mjs.map +1 -0
- package/lib/admin/admin.module.d.ts +9 -0
- package/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.d.ts +8 -0
- package/lib/admin/public-api.d.ts +2 -0
- package/lib/admin/role-assignment/role-assignment.component.d.ts +5 -2
- package/lib/admin/user-invite/user-invite.component.d.ts +3 -0
- package/lib/authentication/auth.module.d.ts +6 -0
- package/lib/authentication/authentication-overlay/authentication-overlay.component.d.ts +5 -2
- package/lib/dashboard/cards/barchart-card/barchart-card.component.d.ts +5 -2
- package/lib/dashboard/cards/count-card/count-card.component.d.ts +5 -2
- package/lib/dashboard/cards/iframe-card/iframe-card.component.d.ts +5 -2
- package/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.d.ts +5 -2
- package/lib/dashboard/cards/linechart-card/line-chart-card.component.d.ts +5 -2
- package/lib/dashboard/cards/piechart-card/pie-chart-card.component.d.ts +5 -2
- package/lib/dashboard/cards/portal-card/portal-card.component.d.ts +6 -3
- package/lib/dashboard/dashboard-content/dashboard-content.component.d.ts +5 -2
- package/lib/dashboard/dashboard.module.d.ts +16 -0
- package/lib/data-fields/boolean-field/boolean-field.component.d.ts +3 -0
- package/lib/data-fields/button-field/button-field.component.d.ts +3 -0
- package/lib/data-fields/data-field-template/data-field-template.component.d.ts +3 -0
- package/lib/data-fields/data-fields.module.d.ts +54 -0
- package/lib/data-fields/date-field/date-field.component.d.ts +3 -0
- package/lib/data-fields/date-time-field/date-time-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.d.ts +3 -0
- package/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.d.ts +3 -0
- package/lib/data-fields/file-field/file-field.component.d.ts +3 -0
- package/lib/data-fields/file-field/preview-dialog/preview-dialog.component.d.ts +4 -3
- package/lib/data-fields/file-field-list/file-list-field.component.d.ts +3 -0
- package/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.d.ts +3 -0
- package/lib/data-fields/filter-field/filter-field.component.d.ts +3 -0
- package/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.d.ts +3 -0
- package/lib/data-fields/i18n-field/i18n-field.component.d.ts +3 -0
- package/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.d.ts +6 -2
- package/lib/data-fields/multichoice-field/multichoice-field.component.d.ts +3 -0
- package/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.d.ts +3 -0
- package/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.d.ts +3 -0
- package/lib/data-fields/number-field/number-currency-field/number-currency-field.component.d.ts +6 -3
- package/lib/data-fields/number-field/number-default-field/number-default-field.component.d.ts +3 -0
- package/lib/data-fields/number-field/number-field.component.d.ts +3 -0
- package/lib/data-fields/required-label/required-label.component.d.ts +4 -3
- package/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.d.ts +3 -0
- package/lib/data-fields/text-field/password-text-field/password-text-field.component.d.ts +4 -3
- package/lib/data-fields/text-field/rich-textarea-field/easymde-wrapper/easymde-wrapper.component.d.ts +23 -0
- package/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.d.ts +3 -0
- package/lib/data-fields/text-field/simple-text-field/simple-text-field.component.d.ts +3 -0
- package/lib/data-fields/text-field/text-field.component.d.ts +3 -0
- package/lib/data-fields/text-field/textarea-field/textarea-field.component.d.ts +3 -0
- package/lib/data-fields/user-field/user-field.component.d.ts +3 -0
- package/lib/forms/email-submission/email-submission-form.component.d.ts +3 -0
- package/lib/forms/email-submission/email-submission-form.module.d.ts +10 -0
- package/lib/forms/forgotten-password/forgotten-password-form-component.module.d.ts +9 -0
- package/lib/forms/forgotten-password/forgotten-password-form.component.d.ts +3 -0
- package/lib/forms/login/login-form.component.d.ts +3 -0
- package/lib/forms/login/login-form.module.d.ts +9 -0
- package/lib/forms/registration/registration-form.component.d.ts +3 -0
- package/lib/forms/registration/registration-form.module.d.ts +10 -0
- package/lib/header/header-modes/edit-mode/edit-mode.component.d.ts +3 -0
- package/lib/header/header-modes/loading-mode/loading-mode.component.d.ts +3 -0
- package/lib/header/header-modes/search-mode/search-mode.component.d.ts +3 -0
- package/lib/header/header-modes/sort-mode/sort-mode.component.d.ts +3 -0
- package/lib/header/header.component.d.ts +3 -0
- package/lib/header/header.module.d.ts +13 -0
- package/lib/legal/legal-notice/legal-notice.component.d.ts +3 -0
- package/lib/legal/legal-notice/legal-notice.module.d.ts +7 -0
- package/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.d.ts +5 -2
- package/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.d.ts +3 -0
- package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.d.ts +5 -2
- package/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.d.ts +5 -2
- package/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.d.ts +3 -0
- package/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.d.ts +3 -0
- package/lib/navigation/navigation-drawer/navigation-drawer.component.d.ts +3 -0
- package/lib/navigation/navigation-rail/navigation-rail.component.d.ts +3 -0
- package/lib/navigation/navigation-tree/navigation-tree.component.d.ts +3 -0
- package/lib/navigation/navigation.module.d.ts +25 -0
- package/lib/navigation/public-api.d.ts +5 -0
- package/lib/navigation/quick-panel/components/internal-link/internal-link.component.d.ts +3 -0
- package/lib/navigation/quick-panel/components/language-selector/language-selector.component.d.ts +3 -0
- package/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.d.ts +3 -0
- package/lib/navigation/quick-panel/components/quick-panel.component.d.ts +3 -0
- package/lib/navigation/quick-panel/quick-panel.module.d.ts +11 -0
- package/lib/panel/case-panel/case-panel.component.d.ts +3 -0
- package/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.d.ts +3 -0
- package/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.d.ts +3 -0
- package/lib/panel/panel-item/panel-item.component.d.ts +7 -0
- package/lib/panel/panel.component.d.ts +3 -0
- package/lib/panel/panel.module.d.ts +20 -0
- package/lib/panel/public-api.d.ts +4 -0
- package/lib/panel/public-workflow-panel/public-workflow-panel.component.d.ts +3 -0
- package/lib/panel/task-panel/task-panel.component.d.ts +3 -0
- package/lib/panel/task-panel-list/task-list.component.d.ts +3 -0
- package/lib/panel/task-panel-list-pagination/task-list-pagination.component.d.ts +11 -0
- package/lib/panel/workflow-panel/workflow-panel.component.d.ts +3 -0
- package/lib/routing/redirect/redirect.component.d.ts +3 -0
- package/lib/routing/redirect.module.d.ts +5 -0
- package/lib/search/advanced-search/advanced-search-component/advanced-search.component.d.ts +3 -0
- package/lib/search/advanced-search/advanced-search.module.d.ts +12 -0
- package/lib/search/advanced-search/search-clause-component/search-clause.component.d.ts +3 -0
- package/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.d.ts +3 -0
- package/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.d.ts +3 -0
- package/lib/search/advanced-search/search-predicate-component/search-predicate.component.d.ts +3 -0
- package/lib/search/fulltext-search-component/fulltext-search.component.d.ts +3 -0
- package/lib/search/search-component/case-search/case-search.component.d.ts +3 -0
- package/lib/search/search-component/search.component.d.ts +3 -0
- package/lib/search/search-component/task-search/task-search.component.d.ts +3 -0
- package/lib/search/search.module.d.ts +12 -0
- package/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.d.ts +3 -0
- package/lib/side-menu/content-components/filter-selector/filter-selector.component.d.ts +3 -0
- package/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.d.ts +8 -0
- package/lib/side-menu/content-components/import-net/import-net.component.d.ts +3 -0
- package/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.d.ts +9 -0
- package/lib/side-menu/content-components/load-filter/load-filter.component.d.ts +3 -0
- package/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.d.ts +9 -0
- package/lib/side-menu/content-components/new-case/new-case.component.d.ts +3 -0
- package/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.d.ts +10 -0
- package/lib/side-menu/content-components/option-selector/option-selector.component.d.ts +3 -0
- package/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.d.ts +7 -0
- package/lib/side-menu/content-components/save-filter/save-filter.component.d.ts +3 -0
- package/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.d.ts +8 -0
- package/lib/side-menu/content-components/side-menu-content-component.module.d.ts +12 -0
- package/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.d.ts +11 -0
- package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.d.ts +3 -0
- package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.d.ts +3 -0
- package/lib/side-menu/content-components/user-assign/user-assign.component.d.ts +3 -0
- package/lib/side-menu/side-menu-container/side-menu-container.component.d.ts +3 -0
- package/lib/side-menu/side-menu.module.d.ts +10 -0
- package/lib/tabs/tab-creation-detector/tab-creation-detector.component.d.ts +3 -0
- package/lib/tabs/tab-view/tab-view.component.d.ts +3 -0
- package/lib/tabs/tabs.module.d.ts +10 -0
- package/lib/task-content/field-component-resolver/field-component-resolver.component.d.ts +3 -0
- package/lib/task-content/task-content/task-content.component.d.ts +3 -0
- package/lib/task-content/task-content.module.d.ts +10 -0
- package/lib/toolbar/toolbar.component.d.ts +3 -0
- package/lib/toolbar/toolbar.module.d.ts +8 -0
- package/lib/user/profile/profile.component.d.ts +3 -0
- package/lib/user/profile/profile.module.d.ts +7 -0
- package/lib/user/user-card/user-card.component.d.ts +3 -0
- package/lib/user/user.module.d.ts +8 -0
- package/lib/view/case-view/case-view.module.d.ts +10 -0
- package/lib/view/case-view/components/case-list/case-list.component.d.ts +3 -0
- package/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.d.ts +13 -0
- package/lib/view/public-api.d.ts +1 -0
- package/lib/view/tree-case-view/tree-case-view.module.d.ts +14 -0
- package/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.d.ts +3 -0
- package/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.d.ts +3 -0
- package/lib/view/tree-case-view/tree-component/tree.component.d.ts +3 -0
- package/lib/view/tree-case-view/tree-task-content/tree-task-content.component.d.ts +3 -0
- package/lib/view/workflow-view/workflow-view.component.d.ts +3 -0
- package/lib/view/workflow-view.module.d.ts +12 -0
- package/netgrif-components.d.ts +1 -39
- package/package.json +51 -42
- package/schematics/_commons/view-class-info.js +4 -4
- package/schematics/_commons/view-class-info.js.map +1 -1
- package/schematics/_utility/modified-library-functions.js +6 -6
- package/schematics/_utility/modified-library-functions.js.map +1 -1
- package/schematics/_utility/utility-functions.js +6 -6
- package/schematics/_utility/utility-functions.js.map +1 -1
- package/schematics/add/add/index.js +2 -2
- package/schematics/add/add/index.js.map +1 -1
- package/schematics/add/create-nc-files/index.js +5 -5
- package/schematics/add/create-nc-files/index.js.map +1 -1
- package/schematics/add/custom-themes/files/custom-themes/custom-themes.scss.template +2 -2
- package/schematics/add/custom-themes/files/dark-theme/custom-dark-theme.scss.template +1 -1
- package/schematics/add/custom-themes/files/light-theme/custom-light-theme.scss.template +1 -1
- package/schematics/add/custom-themes/index.js +5 -5
- package/schematics/add/custom-themes/index.js.map +1 -1
- package/schematics/migrations/4.1/migration-4.1.js +6 -6
- package/schematics/migrations/4.1/migration-4.1.js.map +1 -1
- package/schematics/migrations/5.4/migration-5.4.js +20 -20
- package/schematics/migrations/5.4/migration-5.4.js.map +1 -1
- package/schematics/view/_utility/add-view-to-nae-json.js +1 -1
- package/schematics/view/_utility/add-view-to-nae-json.js.map +1 -1
- package/schematics/view/_utility/view-service-functions.js +7 -10
- package/schematics/view/_utility/view-service-functions.js.map +1 -1
- package/schematics/view/_utility/view-utility-functions.js +6 -6
- package/schematics/view/_utility/view-utility-functions.js.map +1 -1
- package/schematics/view/create-view/schematic-create-view.js +4 -4
- package/schematics/view/create-view/schematic-create-view.js.map +1 -1
- package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js +1 -1
- package/schematics/view/create-view-prompt/schematic-create-sidenav-prompt.js.map +1 -1
- package/schematics/view/create-view-prompt/schematic-create-view-prompt.js +15 -15
- package/schematics/view/create-view-prompt/schematic-create-view-prompt.js.map +1 -1
- package/schematics/view/create-view-prompt/views/case-view/create-case-view.js +9 -13
- package/schematics/view/create-view-prompt/views/case-view/create-case-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js +7 -7
- package/schematics/view/create-view-prompt/views/dashboard-view/create-dashboard-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js +6 -6
- package/schematics/view/create-view-prompt/views/empty-view/create-empty-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/group-view/create-group-view.js +7 -7
- package/schematics/view/create-view-prompt/views/group-view/create-group-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/login/create-login-view.js +7 -7
- package/schematics/view/create-view-prompt/views/login/create-login-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js +8 -8
- package/schematics/view/create-view-prompt/views/sidenav-toolbar-view/create-sidenav-or-toolbar-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js +9 -16
- package/schematics/view/create-view-prompt/views/tab-view/create-tab-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/task-view/create-task-view.js +9 -9
- package/schematics/view/create-view-prompt/views/task-view/create-task-view.js.map +1 -1
- package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js +7 -7
- package/schematics/view/create-view-prompt/views/tree-case-view/create-tree-case-view.js.map +1 -1
- package/src/lib/admin/ldap-group-role-assignment/ldap-group-role-assignment.component.theme.scss +10 -0
- package/src/lib/admin/role-assignment/role-assignment.component.theme.scss +2 -2
- package/src/lib/data-fields/data-field.theme.scss +31 -11
- package/src/lib/dialog/dialog.theme.scss +0 -2
- package/src/lib/header/header.theme.scss +2 -2
- package/src/lib/navigation/navigation.theme.scss +2 -2
- package/src/lib/panel/panel.theme.scss +7 -7
- package/src/lib/search/advanced-search/search-clause-component/search-clause.component.theme.scss +2 -2
- package/src/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.theme.scss +2 -2
- package/src/lib/search/advanced-search/search-predicate-component/search-predicate.component.theme.scss +2 -2
- package/src/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/theme/user-assign-item.component.theme.scss +5 -5
- package/src/lib/side-menu/side-menu.theme.scss +3 -3
- package/src/lib/snack-bar/snack-bar.theme.scss +0 -2
- package/src/lib/tabs/tabs.theme.scss +0 -2
- package/src/lib/user/user.theme.scss +2 -2
- package/src/lib/view/view.theme.scss +3 -3
- package/bundles/netgrif-components.umd.js +0 -4769
- package/bundles/netgrif-components.umd.js.map +0 -1
- package/bundles/netgrif-components.umd.min.js +0 -16
- package/bundles/netgrif-components.umd.min.js.map +0 -1
- package/esm2015/lib/admin/admin.module.js +0 -19
- package/esm2015/lib/admin/public-api.js +0 -5
- package/esm2015/lib/admin/role-assignment/role-assignment.component.js +0 -28
- package/esm2015/lib/admin/user-invite/user-invite.component.js +0 -35
- package/esm2015/lib/authentication/auth.module.js +0 -15
- package/esm2015/lib/authentication/authentication-overlay/authentication-overlay.component.js +0 -35
- package/esm2015/lib/authentication/public-api.js +0 -5
- package/esm2015/lib/dashboard/cards/barchart-card/barchart-card.component.js +0 -49
- package/esm2015/lib/dashboard/cards/count-card/count-card.component.js +0 -22
- package/esm2015/lib/dashboard/cards/iframe-card/iframe-card.component.js +0 -23
- package/esm2015/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +0 -47
- package/esm2015/lib/dashboard/cards/linechart-card/line-chart-card.component.js +0 -59
- package/esm2015/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +0 -52
- package/esm2015/lib/dashboard/cards/portal-card/portal-card.component.js +0 -47
- package/esm2015/lib/dashboard/dashboard-content/dashboard-content.component.js +0 -22
- package/esm2015/lib/dashboard/dashboard.module.js +0 -44
- package/esm2015/lib/dashboard/public-api.js +0 -12
- package/esm2015/lib/data-fields/boolean-field/boolean-field.component.js +0 -28
- package/esm2015/lib/data-fields/button-field/button-field.component.js +0 -27
- package/esm2015/lib/data-fields/data-field-template/data-field-template.component.js +0 -25
- package/esm2015/lib/data-fields/data-fields.module.js +0 -134
- package/esm2015/lib/data-fields/date-field/date-field.component.js +0 -30
- package/esm2015/lib/data-fields/date-time-field/date-time-field.component.js +0 -30
- package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +0 -23
- package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +0 -23
- package/esm2015/lib/data-fields/enumeration-field/enumeration-field.component.js +0 -21
- package/esm2015/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +0 -16
- package/esm2015/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +0 -16
- package/esm2015/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +0 -16
- package/esm2015/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +0 -22
- package/esm2015/lib/data-fields/file-field/file-field.component.js +0 -52
- package/esm2015/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +0 -33
- package/esm2015/lib/data-fields/file-field-list/file-list-field.component.js +0 -32
- package/esm2015/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +0 -42
- package/esm2015/lib/data-fields/filter-field/filter-field.component.js +0 -27
- package/esm2015/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +0 -16
- package/esm2015/lib/data-fields/i18n-field/i18n-field.component.js +0 -21
- package/esm2015/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +0 -22
- package/esm2015/lib/data-fields/multichoice-field/multichoice-field.component.js +0 -21
- package/esm2015/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +0 -16
- package/esm2015/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +0 -12
- package/esm2015/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +0 -34
- package/esm2015/lib/data-fields/number-field/number-default-field/number-default-field.component.js +0 -22
- package/esm2015/lib/data-fields/number-field/number-field.component.js +0 -32
- package/esm2015/lib/data-fields/public-api.js +0 -18
- package/esm2015/lib/data-fields/required-label/required-label.component.js +0 -20
- package/esm2015/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +0 -27
- package/esm2015/lib/data-fields/text-field/password-text-field/password-text-field.component.js +0 -26
- package/esm2015/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +0 -23
- package/esm2015/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +0 -23
- package/esm2015/lib/data-fields/text-field/text-field.component.js +0 -21
- package/esm2015/lib/data-fields/text-field/textarea-field/textarea-field.component.js +0 -26
- package/esm2015/lib/data-fields/user-field/user-field.component.js +0 -32
- package/esm2015/lib/forms/email-submission/email-submission-form.component.js +0 -22
- package/esm2015/lib/forms/email-submission/email-submission-form.module.js +0 -24
- package/esm2015/lib/forms/forgotten-password/forgotten-password-form-component.module.js +0 -22
- package/esm2015/lib/forms/forgotten-password/forgotten-password-form.component.js +0 -29
- package/esm2015/lib/forms/login/login-form.component.js +0 -25
- package/esm2015/lib/forms/login/login-form.module.js +0 -22
- package/esm2015/lib/forms/public-api.js +0 -11
- package/esm2015/lib/forms/registration/registration-form.component.js +0 -29
- package/esm2015/lib/forms/registration/registration-form.module.js +0 -24
- package/esm2015/lib/header/header-modes/edit-mode/edit-mode.component.js +0 -26
- package/esm2015/lib/header/header-modes/loading-mode/loading-mode.component.js +0 -16
- package/esm2015/lib/header/header-modes/search-mode/search-mode.component.js +0 -34
- package/esm2015/lib/header/header-modes/sort-mode/sort-mode.component.js +0 -16
- package/esm2015/lib/header/header.component.js +0 -36
- package/esm2015/lib/header/header.module.js +0 -39
- package/esm2015/lib/header/public-api.js +0 -12
- package/esm2015/lib/legal/legal-notice/legal-notice.component.js +0 -21
- package/esm2015/lib/legal/legal-notice/legal-notice.module.js +0 -17
- package/esm2015/lib/legal/public-api.js +0 -5
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +0 -54
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +0 -43
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +0 -67
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +0 -58
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +0 -30
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +0 -2
- package/esm2015/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +0 -35
- package/esm2015/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +0 -30
- package/esm2015/lib/navigation/navigation-drawer/navigation-drawer.component.js +0 -30
- package/esm2015/lib/navigation/navigation-rail/navigation-rail.component.js +0 -40
- package/esm2015/lib/navigation/navigation-tree/navigation-tree.component.js +0 -42
- package/esm2015/lib/navigation/navigation.module.js +0 -81
- package/esm2015/lib/navigation/public-api.js +0 -9
- package/esm2015/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +0 -16
- package/esm2015/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +0 -39
- package/esm2015/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +0 -32
- package/esm2015/lib/navigation/quick-panel/components/quick-panel.component.js +0 -25
- package/esm2015/lib/navigation/quick-panel/public-api.js +0 -9
- package/esm2015/lib/navigation/quick-panel/quick-panel.module.js +0 -33
- package/esm2015/lib/panel/case-panel/case-panel.component.js +0 -50
- package/esm2015/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +0 -25
- package/esm2015/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +0 -46
- package/esm2015/lib/panel/panel.component.js +0 -22
- package/esm2015/lib/panel/panel.module.js +0 -55
- package/esm2015/lib/panel/public-api.js +0 -10
- package/esm2015/lib/panel/public-workflow-panel/public-workflow-panel.component.js +0 -26
- package/esm2015/lib/panel/task-panel/task-panel.component.js +0 -113
- package/esm2015/lib/panel/task-panel-list/task-list.component.js +0 -31
- package/esm2015/lib/panel/workflow-panel/workflow-panel.component.js +0 -26
- package/esm2015/lib/routing/public-api.js +0 -3
- package/esm2015/lib/routing/redirect/redirect.component.js +0 -28
- package/esm2015/lib/routing/redirect.module.js +0 -12
- package/esm2015/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +0 -24
- package/esm2015/lib/search/advanced-search/advanced-search.module.js +0 -36
- package/esm2015/lib/search/advanced-search/public-api.js +0 -8
- package/esm2015/lib/search/advanced-search/search-clause-component/search-clause.component.js +0 -16
- package/esm2015/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +0 -20
- package/esm2015/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +0 -26
- package/esm2015/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +0 -27
- package/esm2015/lib/search/fulltext-search-component/fulltext-search.component.js +0 -21
- package/esm2015/lib/search/public-api.js +0 -10
- package/esm2015/lib/search/search-component/case-search/case-search.component.js +0 -24
- package/esm2015/lib/search/search-component/search.component.js +0 -98
- package/esm2015/lib/search/search-component/task-search/task-search.component.js +0 -24
- package/esm2015/lib/search/search.module.js +0 -36
- package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +0 -16
- package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector.component.js +0 -45
- package/esm2015/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +0 -27
- package/esm2015/lib/side-menu/content-components/import-net/import-net.component.js +0 -44
- package/esm2015/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +0 -27
- package/esm2015/lib/side-menu/content-components/load-filter/load-filter.component.js +0 -54
- package/esm2015/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +0 -28
- package/esm2015/lib/side-menu/content-components/new-case/new-case.component.js +0 -48
- package/esm2015/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +0 -35
- package/esm2015/lib/side-menu/content-components/option-selector/option-selector.component.js +0 -22
- package/esm2015/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +0 -30
- package/esm2015/lib/side-menu/content-components/public-api.js +0 -19
- package/esm2015/lib/side-menu/content-components/save-filter/save-filter.component.js +0 -53
- package/esm2015/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +0 -26
- package/esm2015/lib/side-menu/content-components/side-menu-content-component.module.js +0 -50
- package/esm2015/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +0 -36
- package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +0 -19
- package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +0 -25
- package/esm2015/lib/side-menu/content-components/user-assign/user-assign.component.js +0 -29
- package/esm2015/lib/side-menu/public-api.js +0 -7
- package/esm2015/lib/side-menu/side-menu-container/side-menu-container.component.js +0 -22
- package/esm2015/lib/side-menu/side-menu.module.js +0 -27
- package/esm2015/lib/tabs/public-api.js +0 -4
- package/esm2015/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +0 -22
- package/esm2015/lib/tabs/tab-view/tab-view.component.js +0 -32
- package/esm2015/lib/tabs/tabs.module.js +0 -28
- package/esm2015/lib/task-content/field-component-resolver/field-component-resolver.component.js +0 -21
- package/esm2015/lib/task-content/public-api.js +0 -6
- package/esm2015/lib/task-content/task-content/task-content.component.js +0 -36
- package/esm2015/lib/task-content/task-content.module.js +0 -32
- package/esm2015/lib/toolbar/public-api.js +0 -3
- package/esm2015/lib/toolbar/toolbar.component.js +0 -26
- package/esm2015/lib/toolbar/toolbar.module.js +0 -22
- package/esm2015/lib/user/profile/profile.component.js +0 -22
- package/esm2015/lib/user/profile/profile.module.js +0 -20
- package/esm2015/lib/user/public-api.js +0 -7
- package/esm2015/lib/user/user-card/user-card.component.js +0 -22
- package/esm2015/lib/user/user.module.js +0 -22
- package/esm2015/lib/view/case-view/case-view.module.js +0 -22
- package/esm2015/lib/view/case-view/components/case-list/case-list.component.js +0 -31
- package/esm2015/lib/view/public-api.js +0 -10
- package/esm2015/lib/view/tree-case-view/tree-case-view.module.js +0 -38
- package/esm2015/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +0 -22
- package/esm2015/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +0 -22
- package/esm2015/lib/view/tree-case-view/tree-component/tree.component.js +0 -23
- package/esm2015/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +0 -55
- package/esm2015/lib/view/workflow-view/workflow-view.component.js +0 -36
- package/esm2015/lib/view/workflow-view.module.js +0 -36
- package/esm2015/netgrif-components.js +0 -43
- package/esm2015/public-api.js +0 -22
- package/esm5/lib/admin/admin.module.js +0 -23
- package/esm5/lib/admin/public-api.js +0 -5
- package/esm5/lib/admin/role-assignment/role-assignment.component.js +0 -33
- package/esm5/lib/admin/user-invite/user-invite.component.js +0 -40
- package/esm5/lib/authentication/auth.module.js +0 -19
- package/esm5/lib/authentication/authentication-overlay/authentication-overlay.component.js +0 -40
- package/esm5/lib/authentication/public-api.js +0 -5
- package/esm5/lib/dashboard/cards/barchart-card/barchart-card.component.js +0 -55
- package/esm5/lib/dashboard/cards/count-card/count-card.component.js +0 -27
- package/esm5/lib/dashboard/cards/iframe-card/iframe-card.component.js +0 -28
- package/esm5/lib/dashboard/cards/lineargauge-card/linear-gauge-card.component.js +0 -52
- package/esm5/lib/dashboard/cards/linechart-card/line-chart-card.component.js +0 -65
- package/esm5/lib/dashboard/cards/piechart-card/pie-chart-card.component.js +0 -58
- package/esm5/lib/dashboard/cards/portal-card/portal-card.component.js +0 -52
- package/esm5/lib/dashboard/dashboard-content/dashboard-content.component.js +0 -27
- package/esm5/lib/dashboard/dashboard.module.js +0 -48
- package/esm5/lib/dashboard/public-api.js +0 -12
- package/esm5/lib/data-fields/boolean-field/boolean-field.component.js +0 -33
- package/esm5/lib/data-fields/button-field/button-field.component.js +0 -32
- package/esm5/lib/data-fields/data-field-template/data-field-template.component.js +0 -30
- package/esm5/lib/data-fields/data-fields.module.js +0 -138
- package/esm5/lib/data-fields/date-field/date-field.component.js +0 -34
- package/esm5/lib/data-fields/date-time-field/date-time-field.component.js +0 -34
- package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component.js +0 -28
- package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component.js +0 -28
- package/esm5/lib/data-fields/enumeration-field/enumeration-field.component.js +0 -25
- package/esm5/lib/data-fields/enumeration-field/enumeration-icon-field/enumeration-icon-field.component.js +0 -20
- package/esm5/lib/data-fields/enumeration-field/enumeration-list-field/enumeration-list-field.component.js +0 -20
- package/esm5/lib/data-fields/enumeration-field/enumeration-select-field/enumeration-select-field.component.js +0 -20
- package/esm5/lib/data-fields/enumeration-field/enumeration-stepper-field/enumeration-stepper-field.component.js +0 -27
- package/esm5/lib/data-fields/file-field/file-field.component.js +0 -57
- package/esm5/lib/data-fields/file-field/preview-dialog/preview-dialog.component.js +0 -36
- package/esm5/lib/data-fields/file-field-list/file-list-field.component.js +0 -36
- package/esm5/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.js +0 -46
- package/esm5/lib/data-fields/filter-field/filter-field.component.js +0 -31
- package/esm5/lib/data-fields/i18n-field/i18n-divider-field/i18n-divider-field.component.js +0 -20
- package/esm5/lib/data-fields/i18n-field/i18n-field.component.js +0 -25
- package/esm5/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.js +0 -26
- package/esm5/lib/data-fields/multichoice-field/multichoice-field.component.js +0 -25
- package/esm5/lib/data-fields/multichoice-field/multichoice-list-field/multichoice-list-field.component.js +0 -20
- package/esm5/lib/data-fields/multichoice-field/multichoice-select-field/multichoice-select-field.component.js +0 -19
- package/esm5/lib/data-fields/number-field/number-currency-field/number-currency-field.component.js +0 -38
- package/esm5/lib/data-fields/number-field/number-default-field/number-default-field.component.js +0 -26
- package/esm5/lib/data-fields/number-field/number-field.component.js +0 -36
- package/esm5/lib/data-fields/public-api.js +0 -18
- package/esm5/lib/data-fields/required-label/required-label.component.js +0 -22
- package/esm5/lib/data-fields/text-field/html-textarea-field/html-textarea-field.component.js +0 -32
- package/esm5/lib/data-fields/text-field/password-text-field/password-text-field.component.js +0 -31
- package/esm5/lib/data-fields/text-field/rich-textarea-field/rich-textarea-field.component.js +0 -28
- package/esm5/lib/data-fields/text-field/simple-text-field/simple-text-field.component.js +0 -28
- package/esm5/lib/data-fields/text-field/text-field.component.js +0 -25
- package/esm5/lib/data-fields/text-field/textarea-field/textarea-field.component.js +0 -31
- package/esm5/lib/data-fields/user-field/user-field.component.js +0 -36
- package/esm5/lib/forms/email-submission/email-submission-form.component.js +0 -26
- package/esm5/lib/forms/email-submission/email-submission-form.module.js +0 -28
- package/esm5/lib/forms/forgotten-password/forgotten-password-form-component.module.js +0 -26
- package/esm5/lib/forms/forgotten-password/forgotten-password-form.component.js +0 -33
- package/esm5/lib/forms/login/login-form.component.js +0 -30
- package/esm5/lib/forms/login/login-form.module.js +0 -26
- package/esm5/lib/forms/public-api.js +0 -11
- package/esm5/lib/forms/registration/registration-form.component.js +0 -33
- package/esm5/lib/forms/registration/registration-form.module.js +0 -28
- package/esm5/lib/header/header-modes/edit-mode/edit-mode.component.js +0 -31
- package/esm5/lib/header/header-modes/loading-mode/loading-mode.component.js +0 -20
- package/esm5/lib/header/header-modes/search-mode/search-mode.component.js +0 -39
- package/esm5/lib/header/header-modes/sort-mode/sort-mode.component.js +0 -20
- package/esm5/lib/header/header.component.js +0 -41
- package/esm5/lib/header/header.module.js +0 -43
- package/esm5/lib/header/public-api.js +0 -12
- package/esm5/lib/legal/legal-notice/legal-notice.component.js +0 -25
- package/esm5/lib/legal/legal-notice/legal-notice.module.js +0 -21
- package/esm5/lib/legal/public-api.js +0 -5
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-simple-task-view/default-simple-task-view.component.js +0 -58
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tab-view/default-tab-view.component.js +0 -45
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-case-view/default-tabbed-case-view.component.js +0 -71
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/default-tabbed-task-view/default-tabbed-task-view.component.js +0 -62
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/factory-methods.js +0 -30
- package/esm5/lib/navigation/group-navigation-component-resolver/default-components/model/injected-tabbed-case-view-data-with-navigation-item-task-data.js +0 -2
- package/esm5/lib/navigation/group-navigation-component-resolver/default-group-navigation-component-resolver.service.js +0 -39
- package/esm5/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.component.js +0 -34
- package/esm5/lib/navigation/navigation-drawer/navigation-drawer.component.js +0 -35
- package/esm5/lib/navigation/navigation-rail/navigation-rail.component.js +0 -44
- package/esm5/lib/navigation/navigation-tree/navigation-tree.component.js +0 -46
- package/esm5/lib/navigation/navigation.module.js +0 -85
- package/esm5/lib/navigation/public-api.js +0 -9
- package/esm5/lib/navigation/quick-panel/components/internal-link/internal-link.component.js +0 -20
- package/esm5/lib/navigation/quick-panel/components/language-selector/language-selector.component.js +0 -44
- package/esm5/lib/navigation/quick-panel/components/logout-shortcut/logout-shortcut.component.js +0 -37
- package/esm5/lib/navigation/quick-panel/components/quick-panel.component.js +0 -30
- package/esm5/lib/navigation/quick-panel/public-api.js +0 -9
- package/esm5/lib/navigation/quick-panel/quick-panel.module.js +0 -37
- package/esm5/lib/panel/case-panel/case-panel.component.js +0 -55
- package/esm5/lib/panel/immediate/immediate-filter-text/immediate-filter-text.component.js +0 -29
- package/esm5/lib/panel/immediate/immediate-filter-text-content/immediate-filter-text-content.component.js +0 -50
- package/esm5/lib/panel/panel.component.js +0 -26
- package/esm5/lib/panel/panel.module.js +0 -59
- package/esm5/lib/panel/public-api.js +0 -10
- package/esm5/lib/panel/public-workflow-panel/public-workflow-panel.component.js +0 -30
- package/esm5/lib/panel/task-panel/task-panel.component.js +0 -118
- package/esm5/lib/panel/task-panel-list/task-list.component.js +0 -36
- package/esm5/lib/panel/workflow-panel/workflow-panel.component.js +0 -30
- package/esm5/lib/routing/public-api.js +0 -3
- package/esm5/lib/routing/redirect/redirect.component.js +0 -30
- package/esm5/lib/routing/redirect.module.js +0 -16
- package/esm5/lib/search/advanced-search/advanced-search-component/advanced-search.component.js +0 -28
- package/esm5/lib/search/advanced-search/advanced-search.module.js +0 -40
- package/esm5/lib/search/advanced-search/public-api.js +0 -8
- package/esm5/lib/search/advanced-search/search-clause-component/search-clause.component.js +0 -20
- package/esm5/lib/search/advanced-search/search-configuration-input-component/search-configuration-input.component.js +0 -25
- package/esm5/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.js +0 -31
- package/esm5/lib/search/advanced-search/search-predicate-component/search-predicate.component.js +0 -31
- package/esm5/lib/search/fulltext-search-component/fulltext-search.component.js +0 -25
- package/esm5/lib/search/public-api.js +0 -10
- package/esm5/lib/search/search-component/case-search/case-search.component.js +0 -28
- package/esm5/lib/search/search-component/search.component.js +0 -105
- package/esm5/lib/search/search-component/task-search/task-search.component.js +0 -28
- package/esm5/lib/search/search.module.js +0 -40
- package/esm5/lib/side-menu/content-components/filter-selector/filter-selector-list-item/filter-selector-list-item.component.js +0 -23
- package/esm5/lib/side-menu/content-components/filter-selector/filter-selector.component.js +0 -50
- package/esm5/lib/side-menu/content-components/filter-selector/side-menu-filter-selector-component.module.js +0 -31
- package/esm5/lib/side-menu/content-components/import-net/import-net.component.js +0 -49
- package/esm5/lib/side-menu/content-components/import-net/side-menu-import-net-component.module.js +0 -31
- package/esm5/lib/side-menu/content-components/load-filter/load-filter.component.js +0 -58
- package/esm5/lib/side-menu/content-components/load-filter/side-menu-load-filter-component.module.js +0 -32
- package/esm5/lib/side-menu/content-components/new-case/new-case.component.js +0 -53
- package/esm5/lib/side-menu/content-components/new-case/side-menu-new-case-component.module.js +0 -39
- package/esm5/lib/side-menu/content-components/option-selector/option-selector.component.js +0 -27
- package/esm5/lib/side-menu/content-components/option-selector/side-menu-option-selector-component.module.js +0 -34
- package/esm5/lib/side-menu/content-components/public-api.js +0 -19
- package/esm5/lib/side-menu/content-components/save-filter/save-filter.component.js +0 -57
- package/esm5/lib/side-menu/content-components/save-filter/side-menu-save-filter-component.module.js +0 -30
- package/esm5/lib/side-menu/content-components/side-menu-content-component.module.js +0 -54
- package/esm5/lib/side-menu/content-components/user-assign/side-menu-user-assign-component.module.js +0 -40
- package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/user-assign-item.component.js +0 -23
- package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-list.component.js +0 -30
- package/esm5/lib/side-menu/content-components/user-assign/user-assign.component.js +0 -34
- package/esm5/lib/side-menu/public-api.js +0 -7
- package/esm5/lib/side-menu/side-menu-container/side-menu-container.component.js +0 -27
- package/esm5/lib/side-menu/side-menu.module.js +0 -31
- package/esm5/lib/tabs/public-api.js +0 -4
- package/esm5/lib/tabs/tab-creation-detector/tab-creation-detector.component.js +0 -26
- package/esm5/lib/tabs/tab-view/tab-view.component.js +0 -37
- package/esm5/lib/tabs/tabs.module.js +0 -32
- package/esm5/lib/task-content/field-component-resolver/field-component-resolver.component.js +0 -25
- package/esm5/lib/task-content/public-api.js +0 -6
- package/esm5/lib/task-content/task-content/task-content.component.js +0 -41
- package/esm5/lib/task-content/task-content.module.js +0 -36
- package/esm5/lib/toolbar/public-api.js +0 -3
- package/esm5/lib/toolbar/toolbar.component.js +0 -31
- package/esm5/lib/toolbar/toolbar.module.js +0 -26
- package/esm5/lib/user/profile/profile.component.js +0 -27
- package/esm5/lib/user/profile/profile.module.js +0 -24
- package/esm5/lib/user/public-api.js +0 -7
- package/esm5/lib/user/user-card/user-card.component.js +0 -27
- package/esm5/lib/user/user.module.js +0 -26
- package/esm5/lib/view/case-view/case-view.module.js +0 -26
- package/esm5/lib/view/case-view/components/case-list/case-list.component.js +0 -36
- package/esm5/lib/view/public-api.js +0 -10
- package/esm5/lib/view/tree-case-view/tree-case-view.module.js +0 -42
- package/esm5/lib/view/tree-case-view/tree-component/add-child-node/add-child-node.component.js +0 -27
- package/esm5/lib/view/tree-case-view/tree-component/remove-node/remove-node.component.js +0 -27
- package/esm5/lib/view/tree-case-view/tree-component/tree.component.js +0 -28
- package/esm5/lib/view/tree-case-view/tree-task-content/tree-task-content.component.js +0 -60
- package/esm5/lib/view/workflow-view/workflow-view.component.js +0 -41
- package/esm5/lib/view/workflow-view.module.js +0 -40
- package/esm5/netgrif-components.js +0 -43
- package/esm5/public-api.js +0 -22
- package/fesm2015/netgrif-components.js +0 -4034
- package/fesm2015/netgrif-components.js.map +0 -1
- package/fesm5/netgrif-components.js +0 -4419
- package/fesm5/netgrif-components.js.map +0 -1
- package/netgrif-components.metadata.json +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
import { AbstractCustomCardComponent, DashboardSingleData } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/material/card";
|
|
7
|
+
import * as i4 from "@swimlane/ngx-charts";
|
|
8
|
+
import * as i5 from "@angular/flex-layout/flex";
|
|
9
|
+
export class BarchartCardComponent extends AbstractCustomCardComponent {
|
|
10
|
+
constructor(_injector, resourceService, translateService, loggerService) {
|
|
11
|
+
super(_injector, resourceService, translateService, loggerService);
|
|
12
|
+
this._injector = _injector;
|
|
13
|
+
this.resourceService = resourceService;
|
|
14
|
+
this.translateService = translateService;
|
|
15
|
+
this.loggerService = loggerService;
|
|
16
|
+
this.selectEvent = new EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
super.ngOnInit();
|
|
20
|
+
}
|
|
21
|
+
onSelect(data) {
|
|
22
|
+
this.loggerService.info('BarChart was selected');
|
|
23
|
+
this.selectEvent.emit(data);
|
|
24
|
+
}
|
|
25
|
+
convertData(json) {
|
|
26
|
+
json.aggregations.result.buckets.forEach(bucket => {
|
|
27
|
+
this.single.push(new DashboardSingleData(bucket.key, bucket.doc_count));
|
|
28
|
+
});
|
|
29
|
+
this.single = [...this.single];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
BarchartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BarchartCardComponent, deps: [{ token: i0.Injector }, { token: i1.DashboardResourceService }, { token: i2.TranslateService }, { token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
BarchartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BarchartCardComponent, selector: "nc-barchart-card", outputs: { selectEvent: "selectEvent" }, usesInheritance: true, ngImport: i0, template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-bar-vertical class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n (select)=\"onSelect($event)\">\n </ngx-charts-bar-vertical>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}.custom-mat-card{padding-left:0;padding-top:0}\n"], components: [{ type: i3.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i4.BarVerticalComponent, selector: "ngx-charts-bar-vertical", inputs: ["legend", "legendTitle", "legendPosition", "xAxis", "yAxis", "showXAxisLabel", "showYAxisLabel", "xAxisLabel", "yAxisLabel", "tooltipDisabled", "gradient", "showGridLines", "activeEntries", "schemeType", "trimXAxisTicks", "trimYAxisTicks", "rotateXAxisTicks", "maxXAxisTickLength", "maxYAxisTickLength", "xAxisTickFormatting", "yAxisTickFormatting", "xAxisTicks", "yAxisTicks", "barPadding", "roundDomains", "roundEdges", "yScaleMax", "yScaleMin", "showDataLabel", "dataLabelFormatting", "noBarWhenZero"], outputs: ["activate", "deactivate"] }], directives: [{ type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BarchartCardComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'nc-barchart-card', template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-bar-vertical class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n (select)=\"onSelect($event)\">\n </ngx-charts-bar-vertical>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}.custom-mat-card{padding-left:0;padding-top:0}\n"] }]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DashboardResourceService }, { type: i2.TranslateService }, { type: i1.LoggerService }]; }, propDecorators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AgICAgICAgICAgICAgICAgICAgICAgICBbZ3JhZGllbnRdPVwiZ3JhZGllbnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbeEF4aXNdPVwieEF4aXNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbeUF4aXNdPVwieUF4aXNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbGVnZW5kXT1cInNob3dMZWdlbmRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd1hBeGlzTGFiZWxdPVwic2hvd1hBeGlzTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd1lBeGlzTGFiZWxdPVwic2hvd1lBeGlzTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbeEF4aXNMYWJlbF09XCJjYXJkLnhBeGlzTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbeUF4aXNMYWJlbF09XCJjYXJkLnlBeGlzTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2VsZWN0KT1cIm9uU2VsZWN0KCRldmVudClcIj5cbiAgICA8L25neC1jaGFydHMtYmFyLXZlcnRpY2FsPlxuPC9tYXQtY2FyZD5cbiJdfQ==
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractCountCardComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/card";
|
|
5
|
+
import * as i2 from "@angular/material/progress-spinner";
|
|
6
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
export class CountCardComponent extends AbstractCountCardComponent {
|
|
9
|
+
constructor(_injector) {
|
|
10
|
+
super(_injector);
|
|
11
|
+
this._injector = _injector;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
CountCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CountCardComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
CountCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CountCardComponent, selector: "nc-count-card", usesInheritance: true, ngImport: i0, template: "<mat-card fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"dashboard-card\">\n <span>{{card.title}}</span>\n <ng-template [ngIf]=\"loading\" [ngIfElse]=\"result\">\n <mat-spinner color=\"primary\"></mat-spinner>\n </ng-template>\n <ng-template #result>\n <span class=\"number\">{{count}}</span>\n </ng-template>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.number{font-size:80px}\n"], components: [{ type: i1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CountCardComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'nc-count-card', template: "<mat-card fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"dashboard-card\">\n <span>{{card.title}}</span>\n <ng-template [ngIf]=\"loading\" [ngIfElse]=\"result\">\n <mat-spinner color=\"primary\"></mat-spinner>\n </ng-template>\n <ng-template #result>\n <span class=\"number\">{{count}}</span>\n </ng-template>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.number{font-size:80px}\n"] }]
|
|
19
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnQtY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXNoYm9hcmQvY2FyZHMvY291bnQtY2FyZC9jb3VudC1j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Qge1xuXG4gICAgY29uc3RydWN0b3IocHJvdGVjdGVkIF9pbmplY3RvcjogSW5qZWN0b3IpIHtcbiAgICAgICAgc3VwZXIoX2luamVjdG9yKTtcbiAgICB9XG59XG4iLCI8bWF0LWNhcmQgZnhMYXlvdXQ9XCJjb2x1bW5cIiBmeExheW91dEFsaWduPVwiY2VudGVyIGNlbnRlclwiIGNsYXNzPVwiZGFzaGJvYXJkLWNhcmRcIj5cbiAgICA8c3Bhbj57e2NhcmQudGl0bGV9fTwvc3Bhbj5cbiAgICA8bmctdGVtcGxhdGUgW25nSWZdPVwibG9hZGluZ1wiIFtuZ0lmRWxzZV09XCJyZXN1bHRcIj5cbiAgICAgICAgPG1hdC1zcGlubmVyIGNvbG9yPVwicHJpbWFyeVwiPjwvbWF0LXNwaW5uZXI+XG4gICAgPC9uZy10ZW1wbGF0ZT5cbiAgICA8bmctdGVtcGxhdGUgI3Jlc3VsdD5cbiAgICAgICAgPHNwYW4gY2xhc3M9XCJudW1iZXJcIj57e2NvdW50fX08L3NwYW4+XG4gICAgPC9uZy10ZW1wbGF0ZT5cbjwvbWF0LWNhcmQ+XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractIframeCardComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/platform-browser";
|
|
5
|
+
import * as i2 from "@angular/material/card";
|
|
6
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
7
|
+
export class IframeCardComponent extends AbstractIframeCardComponent {
|
|
8
|
+
constructor(_sanitizer) {
|
|
9
|
+
super(_sanitizer);
|
|
10
|
+
this._sanitizer = _sanitizer;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
IframeCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IframeCardComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
IframeCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: IframeCardComponent, selector: "nc-iframe-card", usesInheritance: true, ngImport: i0, template: "<mat-card class=\"dashboard-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <iframe [src]=\"sanitizedURL\" fxFlex=\"100\" class=\"full-size\" title=\"Dashboard embedded content\"></iframe>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}\n"], components: [{ type: i2.MatCard, selector: "mat-card", exportAs: ["matCard"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IframeCardComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'nc-iframe-card', template: "<mat-card class=\"dashboard-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <iframe [src]=\"sanitizedURL\" fxFlex=\"100\" class=\"full-size\" title=\"Dashboard embedded content\"></iframe>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}\n"] }]
|
|
18
|
+
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi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M6IFsnLi9pZnJhbWUtY2FyZC5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIElmcmFtZUNhcmRDb21wb25lbnQgZXh0ZW5kcyBBYnN0cmFjdElmcmFtZUNhcmRDb21wb25lbnQge1xuXG4gICAgY29uc3RydWN0b3IocHJvdGVjdGVkIF9zYW5pdGl6ZXI6IERvbVNhbml0aXplcikge1xuICAgICAgICBzdXBlcihfc2FuaXRpemVyKTtcbiAgICB9XG59XG4iLCI8bWF0LWNhcmQgY2xhc3M9XCJkYXNoYm9hcmQtY2FyZFwiIGZ4TGF5b3V0PVwicm93XCIgZnhMYXlvdXRBbGlnbj1cInN0YXJ0IHN0YXJ0XCI+XG4gICAgPGlmcmFtZSBbc3JjXT1cInNhbml0aXplZFVSTFwiIGZ4RmxleD1cIjEwMFwiIGNsYXNzPVwiZnVsbC1zaXplXCIgdGl0bGU9XCJEYXNoYm9hcmQgZW1iZWRkZWQgY29udGVudFwiPjwvaWZyYW1lPlxuPC9tYXQtY2FyZD5cbiJdfQ==
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
import { AbstractCustomCardComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/material/card";
|
|
7
|
+
import * as i4 from "@swimlane/ngx-charts";
|
|
8
|
+
import * as i5 from "@angular/flex-layout/flex";
|
|
9
|
+
export class LinearGaugeCardComponent extends AbstractCustomCardComponent {
|
|
10
|
+
constructor(_injector, resourceService, translateService, loggerService) {
|
|
11
|
+
super(_injector, resourceService, translateService, loggerService);
|
|
12
|
+
this._injector = _injector;
|
|
13
|
+
this.resourceService = resourceService;
|
|
14
|
+
this.translateService = translateService;
|
|
15
|
+
this.loggerService = loggerService;
|
|
16
|
+
this.selectEvent = new EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
super.ngOnInit();
|
|
20
|
+
}
|
|
21
|
+
onSelect(data) {
|
|
22
|
+
this.loggerService.info('Linear gauge selected.');
|
|
23
|
+
this.selectEvent.emit(data);
|
|
24
|
+
}
|
|
25
|
+
convertData(json) {
|
|
26
|
+
this.value = json.aggregations.types_count.value;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
LinearGaugeCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeCardComponent, deps: [{ token: i0.Injector }, { token: i1.DashboardResourceService }, { token: i2.TranslateService }, { token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
LinearGaugeCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinearGaugeCardComponent, selector: "nc-linear-gauge-card", outputs: { selectEvent: "selectEvent" }, usesInheritance: true, ngImport: i0, template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-linear-gauge class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [value]=\"value\"\n (select)=\"onSelect($event)\"\n [units]=\"card.units\">\n </ngx-charts-linear-gauge>\n</mat-card>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"], components: [{ type: i3.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i4.LinearGaugeComponent, selector: "ngx-charts-linear-gauge", inputs: ["min", "max", "value", "units", "previousValue", "valueFormatting"] }], directives: [{ type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinearGaugeCardComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'nc-linear-gauge-card', template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-linear-gauge class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [value]=\"value\"\n (select)=\"onSelect($event)\"\n [units]=\"card.units\">\n </ngx-charts-linear-gauge>\n</mat-card>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"] }]
|
|
34
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DashboardResourceService }, { type: i2.TranslateService }, { type: i1.LoggerService }]; }, propDecorators: { selectEvent: [{
|
|
35
|
+
type: Output
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZWFyLWdhdWdlLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGFzaGJvYXJkL2NhcmRzL2xpbmVhcmdhdWdlLWNhcmQvbGluZWFyLWdhdWdlLWNhcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGFzaGJvYXJkL2NhcmRzL2xpbmVhcmdhdWdlLWNhcmQvbGluZWFyLWdhdWdlLWNhcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQW9CLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNoRixPQUFPLEVBQUMsMkJBQTJCLEVBQWtELE1BQU0sMEJBQTBCLENBQUM7Ozs7Ozs7QUFTdEgsTUFBTSxPQUFPLHdCQUF5QixTQUFRLDJCQUEyQjtJQUlyRSxZQUFzQixTQUFtQixFQUNuQixlQUF5QyxFQUN6QyxnQkFBa0MsRUFDbEMsYUFBNEI7UUFDOUMsS0FBSyxDQUFDLFNBQVMsRUFBRSxlQUFlLEVBQUUsZ0JBQWdC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mV3IEV2ZW50RW1pdHRlcigpO1xuICAgIH1cblxuICAgIG5nT25Jbml0KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uSW5pdCgpO1xuICAgIH1cblxuICAgIG9uU2VsZWN0KGRhdGE6IERhc2hib2FyZEV2ZW50Q29udGVudCkge1xuICAgICAgICB0aGlzLmxvZ2dlclNlcnZpY2UuaW5mbygnTGluZWFyIGdhdWdlIHNlbGVjdGVkLicpO1xuICAgICAgICB0aGlzLnNlbGVjdEV2ZW50LmVtaXQoZGF0YSk7XG4gICAgfVxuXG4gICAgY29udmVydERhdGEoanNvbjogQWdncmVnYXRpb25SZXN1bHQpOiB2b2lkIHtcbiAgICAgICAgdGhpcy52YWx1ZSA9IGpzb24uYWdncmVnYXRpb25zLnR5cGVzX2NvdW50LnZhbHVlO1xuICAgIH1cbn1cbiIsIjxtYXQtY2FyZCBjbGFzcz1cImRhc2hib2FyZC1jYXJkIGN1c3RvbS1tYXQtY2FyZFwiIGZ4TGF5b3V0PVwicm93XCIgZnhMYXlvdXRBbGlnbj1cInN0YXJ0IHN0YXJ0XCI+XG4gICAgPG5neC1jaGFydHMtbGluZWFyLWdhdWdlIGNsYXNzPVwiY3VzdG9tLWNoYXJ0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3NjaGVtZV09XCJjb2xvclNjaGVtZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFt2YWx1ZV09XCJ2YWx1ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZWxlY3QpPVwib25TZWxlY3QoJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFt1bml0c109XCJjYXJkLnVuaXRzXCI+XG4gICAgPC9uZ3gtY2hhcnRzLWxpbmVhci1nYXVnZT5cbjwvbWF0LWNhcmQ+XG4iXX0=
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
import { AbstractCustomCardComponent, DashboardMultiData, DashboardSingleData } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/material/card";
|
|
7
|
+
import * as i4 from "@swimlane/ngx-charts";
|
|
8
|
+
import * as i5 from "@angular/flex-layout/flex";
|
|
9
|
+
export class LineChartCardComponent extends AbstractCustomCardComponent {
|
|
10
|
+
constructor(_injector, resourceService, translateService, loggerService) {
|
|
11
|
+
super(_injector, resourceService, translateService, loggerService);
|
|
12
|
+
this._injector = _injector;
|
|
13
|
+
this.resourceService = resourceService;
|
|
14
|
+
this.translateService = translateService;
|
|
15
|
+
this.loggerService = loggerService;
|
|
16
|
+
this.timeline = true;
|
|
17
|
+
this.selectEvent = new EventEmitter();
|
|
18
|
+
}
|
|
19
|
+
ngOnInit() {
|
|
20
|
+
super.ngOnInit();
|
|
21
|
+
}
|
|
22
|
+
onSelect(data) {
|
|
23
|
+
this.loggerService.info('Line chart selected.');
|
|
24
|
+
this.selectEvent.emit(data);
|
|
25
|
+
}
|
|
26
|
+
convertData(json) {
|
|
27
|
+
let index = 0;
|
|
28
|
+
let result;
|
|
29
|
+
for (result in json.aggregations) {
|
|
30
|
+
if (json.aggregations.hasOwnProperty(result)) {
|
|
31
|
+
this.multi.push(new DashboardMultiData(result, new Array()));
|
|
32
|
+
json.aggregations[result].buckets.forEach(bucket => {
|
|
33
|
+
this.multi[index].series.push(new DashboardSingleData(bucket.key, bucket.doc_count));
|
|
34
|
+
});
|
|
35
|
+
index++;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
this.multi = [...this.multi];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
LineChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LineChartCardComponent, deps: [{ token: i0.Injector }, { token: i1.DashboardResourceService }, { token: i2.TranslateService }, { token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
LineChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LineChartCardComponent, selector: "nc-line-chart-card", outputs: { selectEvent: "selectEvent" }, usesInheritance: true, ngImport: i0, template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-line-chart class=\"custom-chart\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n [timeline]=\"timeline\"\n [results]=\"multi\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-line-chart>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-mat-card{padding-left:0;padding-top:0}\n"], components: [{ type: i3.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i4.LineChartComponent, selector: "ngx-charts-line-chart", inputs: ["legend", "legendTitle", "legendPosition", "xAxis", "yAxis", "showXAxisLabel", "showYAxisLabel", "xAxisLabel", "yAxisLabel", "autoScale", "timeline", "gradient", "showGridLines", "curve", "activeEntries", "schemeType", "rangeFillOpacity", "trimXAxisTicks", "trimYAxisTicks", "rotateXAxisTicks", "maxXAxisTickLength", "maxYAxisTickLength", "xAxisTickFormatting", "yAxisTickFormatting", "xAxisTicks", "yAxisTicks", "roundDomains", "tooltipDisabled", "showRefLines", "referenceLines", "showRefLabels", "xScaleMin", "xScaleMax", "yScaleMin", "yScaleMax"], outputs: ["activate", "deactivate"] }], directives: [{ type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LineChartCardComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'nc-line-chart-card', template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-line-chart class=\"custom-chart\"\n [legend]=\"showLegend\"\n [showXAxisLabel]=\"showXAxisLabel\"\n [showYAxisLabel]=\"showYAxisLabel\"\n [xAxis]=\"xAxis\"\n [yAxis]=\"yAxis\"\n [xAxisLabel]=\"card.xAxisLabel\"\n [yAxisLabel]=\"card.yAxisLabel\"\n [timeline]=\"timeline\"\n [results]=\"multi\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-line-chart>\n</mat-card>\n", styles: [".dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-mat-card{padding-left:0;padding-top:0}\n"] }]
|
|
46
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DashboardResourceService }, { type: i2.TranslateService }, { type: i1.LoggerService }]; }, propDecorators: { selectEvent: [{
|
|
47
|
+
type: Output
|
|
48
|
+
}] } });
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jaGFydC1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2Rhc2hib2FyZC9jYXJkcy9saW5lY2hhcnQtY2FyZC9saW5lLWNoYXJ0LWNhcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGFzaGJvYXJkL2NhcmRzL2xpbmVjaGFydC1jYXJkL2xpbmUtY2hhcnQtY2FyZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBb0IsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ2hGLE9BQU8sRUFDSCwyQkFBMkIsRUFFM0Isa0JBQWtCLEVBRWxCLG1CQUFtQixFQUN0QixNQUFNLDBCQUEwQixDQUFDOzs7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IGN1c3RvbS1tYXQtY2FyZFwiIGZ4TGF5b3V0PVwicm93XCIgZnhMYXlvdXRBbGlnbj1cInN0YXJ0IHN0YXJ0XCI+XG4gICAgPG5neC1jaGFydHMtbGluZS1jaGFydCBjbGFzcz1cImN1c3RvbS1jaGFydFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbbGVnZW5kXT1cInNob3dMZWdlbmRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dYQXhpc0xhYmVsXT1cInNob3dYQXhpc0xhYmVsXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtzaG93WUF4aXNMYWJlbF09XCJzaG93WUF4aXNMYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbeEF4aXNdPVwieEF4aXNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3lBeGlzXT1cInlBeGlzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFt4QXhpc0xhYmVsXT1cImNhcmQueEF4aXNMYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbeUF4aXNMYWJlbF09XCJjYXJkLnlBeGlzTGFiZWxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RpbWVsaW5lXT1cInRpbWVsaW5lXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZXN1bHRzXT1cIm11bHRpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZWxlY3QpPVwib25TZWxlY3QoJGV2ZW50KVwiXG4gICAgPlxuICAgIDwvbmd4LWNoYXJ0cy1saW5lLWNoYXJ0PlxuPC9tYXQtY2FyZD5cbiJdfQ==
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
import { AbstractCustomCardComponent, DashboardSingleData } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/material/card";
|
|
7
|
+
import * as i4 from "@swimlane/ngx-charts";
|
|
8
|
+
import * as i5 from "@angular/flex-layout/flex";
|
|
9
|
+
export class PieChartCardComponent extends AbstractCustomCardComponent {
|
|
10
|
+
constructor(_injector, resourceService, translateService, loggerService) {
|
|
11
|
+
super(_injector, resourceService, translateService, loggerService);
|
|
12
|
+
this._injector = _injector;
|
|
13
|
+
this.resourceService = resourceService;
|
|
14
|
+
this.translateService = translateService;
|
|
15
|
+
this.loggerService = loggerService;
|
|
16
|
+
this.isDoughnut = false;
|
|
17
|
+
this.legendPosition = 'right';
|
|
18
|
+
this.selectEvent = new EventEmitter();
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
super.ngOnInit();
|
|
22
|
+
}
|
|
23
|
+
onSelect(data) {
|
|
24
|
+
this.loggerService.info('Pie chart selected.');
|
|
25
|
+
this.selectEvent.emit(data);
|
|
26
|
+
}
|
|
27
|
+
convertData(json) {
|
|
28
|
+
json.aggregations.result.buckets.forEach(bucket => {
|
|
29
|
+
this.single.push(new DashboardSingleData(bucket.key, bucket.doc_count));
|
|
30
|
+
});
|
|
31
|
+
this.single = [...this.single];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
PieChartCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PieChartCardComponent, deps: [{ token: i0.Injector }, { token: i1.DashboardResourceService }, { token: i2.TranslateService }, { token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
PieChartCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PieChartCardComponent, selector: "nc-pie-chart-card", outputs: { selectEvent: "selectEvent" }, usesInheritance: true, ngImport: i0, template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-pie-chart class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [legend]=\"showLegend\"\n [legendPosition]=\"legendPosition\"\n [labels]=\"showLabels\"\n [doughnut]=\"isDoughnut\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-pie-chart>\n</mat-card>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"], components: [{ type: i3.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i4.PieChartComponent, selector: "ngx-charts-pie-chart", inputs: ["labels", "legend", "legendTitle", "legendPosition", "explodeSlices", "doughnut", "arcWidth", "gradient", "activeEntries", "tooltipDisabled", "labelFormatting", "trimLabels", "maxLabelLength", "tooltipText", "margins"], outputs: ["dblclick", "select", "activate", "deactivate"] }], directives: [{ type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PieChartCardComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{ selector: 'nc-pie-chart-card', template: "<mat-card class=\"dashboard-card custom-mat-card\" fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <ngx-charts-pie-chart class=\"custom-chart\"\n [scheme]=\"colorScheme\"\n [results]=\"single\"\n [gradient]=\"gradient\"\n [legend]=\"showLegend\"\n [legendPosition]=\"legendPosition\"\n [labels]=\"showLabels\"\n [doughnut]=\"isDoughnut\"\n (select)=\"onSelect($event)\"\n >\n </ngx-charts-pie-chart>\n</mat-card>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"] }]
|
|
39
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DashboardResourceService }, { type: i2.TranslateService }, { type: i1.LoggerService }]; }, propDecorators: { selectEvent: [{
|
|
40
|
+
type: Output
|
|
41
|
+
}] } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGllLWNoYXJ0LWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4v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AgICBbbGVnZW5kXT1cInNob3dMZWdlbmRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICBbbGVnZW5kUG9zaXRpb25dPVwibGVnZW5kUG9zaXRpb25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICBbbGFiZWxzXT1cInNob3dMYWJlbHNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICBbZG91Z2hudXRdPVwiaXNEb3VnaG51dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgIChzZWxlY3QpPVwib25TZWxlY3QoJGV2ZW50KVwiXG4gICAgPlxuICAgIDwvbmd4LWNoYXJ0cy1waWUtY2hhcnQ+XG48L21hdC1jYXJkPlxuIl19
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { AbstractCustomCardComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/cdk/portal";
|
|
7
|
+
export class PortalCardComponent extends AbstractCustomCardComponent {
|
|
8
|
+
constructor(_injector, resourceService, translateService, loggerService) {
|
|
9
|
+
super(_injector, resourceService, translateService, loggerService);
|
|
10
|
+
this._injector = _injector;
|
|
11
|
+
this.resourceService = resourceService;
|
|
12
|
+
this.translateService = translateService;
|
|
13
|
+
this.loggerService = loggerService;
|
|
14
|
+
this.selectEvent = new EventEmitter();
|
|
15
|
+
}
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
this.injectedDashboard = this.componentPortal;
|
|
18
|
+
}
|
|
19
|
+
onSelect(data) {
|
|
20
|
+
this.loggerService.info('Custom dashboard selected.');
|
|
21
|
+
this.selectEvent.emit(data);
|
|
22
|
+
}
|
|
23
|
+
convertData(json) {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
PortalCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PortalCardComponent, deps: [{ token: i0.Injector }, { token: i1.DashboardResourceService }, { token: i2.TranslateService }, { token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
PortalCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PortalCardComponent, selector: "nc-portal-card", inputs: { componentPortal: "componentPortal" }, outputs: { selectEvent: "selectEvent" }, usesInheritance: true, ngImport: i0, template: "<ng-template [cdkPortalOutlet]=\"injectedDashboard\">\n</ng-template>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PortalCardComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'nc-portal-card', template: "<ng-template [cdkPortalOutlet]=\"injectedDashboard\">\n</ng-template>\n", styles: [".custom-mat-card{padding-left:0;padding-top:0}.dashboard-card{width:calc(100% - 16px);height:calc(100% - 16px);margin:8px}.full-size{width:100%;height:100%;margin:0;padding:0}.custom-chart{width:90%;height:90%}\n"] }]
|
|
31
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DashboardResourceService }, { type: i2.TranslateService }, { type: i1.LoggerService }]; }, propDecorators: { componentPortal: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], selectEvent: [{
|
|
34
|
+
type: Output
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLWNhcmQu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5jb21wb25lbnRQb3J0YWw7XG4gICAgfVxuXG4gICAgb25TZWxlY3QoZGF0YTogRGFzaGJvYXJkRXZlbnRDb250ZW50KSB7XG4gICAgICAgIHRoaXMubG9nZ2VyU2VydmljZS5pbmZvKCdDdXN0b20gZGFzaGJvYXJkIHNlbGVjdGVkLicpO1xuICAgICAgICB0aGlzLnNlbGVjdEV2ZW50LmVtaXQoZGF0YSk7XG4gICAgfVxuXG4gICAgY29udmVydERhdGEoanNvbjogQWdncmVnYXRpb25SZXN1bHQpOiB2b2lkIHtcbiAgICB9XG59XG4iLCI8bmctdGVtcGxhdGUgW2Nka1BvcnRhbE91dGxldF09XCJpbmplY3RlZERhc2hib2FyZFwiPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractDashboardContentComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "@angular/material/grid-list";
|
|
6
|
+
import * as i3 from "../cards/count-card/count-card.component";
|
|
7
|
+
import * as i4 from "../cards/iframe-card/iframe-card.component";
|
|
8
|
+
import * as i5 from "../cards/piechart-card/pie-chart-card.component";
|
|
9
|
+
import * as i6 from "../cards/linechart-card/line-chart-card.component";
|
|
10
|
+
import * as i7 from "../cards/lineargauge-card/linear-gauge-card.component";
|
|
11
|
+
import * as i8 from "../cards/barchart-card/barchart-card.component";
|
|
12
|
+
import * as i9 from "../cards/portal-card/portal-card.component";
|
|
13
|
+
import * as i10 from "@angular/common";
|
|
14
|
+
export class DashboardContentComponent extends AbstractDashboardContentComponent {
|
|
15
|
+
constructor(_log) {
|
|
16
|
+
super(_log);
|
|
17
|
+
this._log = _log;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
DashboardContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardContentComponent, deps: [{ token: i1.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
DashboardContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DashboardContentComponent, selector: "nc-dashboard-content", usesInheritance: true, ngImport: i0, template: "<mat-grid-list [cols]=\"params.columns\" rowHeight=\"210px\">\n <mat-grid-tile *ngFor=\"let card of gridElements\"\n [colspan]=\"card.layout.cols\"\n [rowspan]=\"card.layout.rows\"\n [ngSwitch]=\"card.type\">\n <nc-count-card *ngSwitchCase=\"cardTypes.COUNT\" [card]=\"card.item\" class=\"full-size\"></nc-count-card>\n <nc-iframe-card *ngSwitchCase=\"cardTypes.IFRAME\" [card]=\"card.item\" class=\"full-size\"></nc-iframe-card>\n <nc-pie-chart-card *ngSwitchCase=\"cardTypes.PIE\" [card]=\"card.item\" class=\"full-size\"></nc-pie-chart-card>\n <nc-line-chart-card *ngSwitchCase=\"cardTypes.LINE\" [card]=\"card.item\" class=\"full-size\"></nc-line-chart-card>\n <nc-linear-gauge-card *ngSwitchCase=\"cardTypes.LINEARGAUGE\" [card]=\"card.item\"\n class=\"full-size\"></nc-linear-gauge-card>\n <nc-barchart-card *ngSwitchCase=\"cardTypes.BAR\" [card]=\"card.item\" class=\"full-size\"></nc-barchart-card>\n <nc-portal-card *ngSwitchCase=\"cardTypes.DEFAULT\" [card]=\"card.item\"\n [componentPortal]=\"card.item.portalComponent\" class=\"full-size\"></nc-portal-card>\n <div *ngSwitchCase=\"cardTypes.BLANK\"></div>\n </mat-grid-tile>\n</mat-grid-list>\n", styles: [".full-size{width:100%;height:100%;margin:auto;padding:0}\n"], components: [{ type: i2.MatGridList, selector: "mat-grid-list", inputs: ["cols", "gutterSize", "rowHeight"], exportAs: ["matGridList"] }, { type: i2.MatGridTile, selector: "mat-grid-tile", inputs: ["rowspan", "colspan"], exportAs: ["matGridTile"] }, { type: i3.CountCardComponent, selector: "nc-count-card" }, { type: i4.IframeCardComponent, selector: "nc-iframe-card" }, { type: i5.PieChartCardComponent, selector: "nc-pie-chart-card", outputs: ["selectEvent"] }, { type: i6.LineChartCardComponent, selector: "nc-line-chart-card", outputs: ["selectEvent"] }, { type: i7.LinearGaugeCardComponent, selector: "nc-linear-gauge-card", outputs: ["selectEvent"] }, { type: i8.BarchartCardComponent, selector: "nc-barchart-card", outputs: ["selectEvent"] }, { type: i9.PortalCardComponent, selector: "nc-portal-card", inputs: ["componentPortal"], outputs: ["selectEvent"] }], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardContentComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'nc-dashboard-content', template: "<mat-grid-list [cols]=\"params.columns\" rowHeight=\"210px\">\n <mat-grid-tile *ngFor=\"let card of gridElements\"\n [colspan]=\"card.layout.cols\"\n [rowspan]=\"card.layout.rows\"\n [ngSwitch]=\"card.type\">\n <nc-count-card *ngSwitchCase=\"cardTypes.COUNT\" [card]=\"card.item\" class=\"full-size\"></nc-count-card>\n <nc-iframe-card *ngSwitchCase=\"cardTypes.IFRAME\" [card]=\"card.item\" class=\"full-size\"></nc-iframe-card>\n <nc-pie-chart-card *ngSwitchCase=\"cardTypes.PIE\" [card]=\"card.item\" class=\"full-size\"></nc-pie-chart-card>\n <nc-line-chart-card *ngSwitchCase=\"cardTypes.LINE\" [card]=\"card.item\" class=\"full-size\"></nc-line-chart-card>\n <nc-linear-gauge-card *ngSwitchCase=\"cardTypes.LINEARGAUGE\" [card]=\"card.item\"\n class=\"full-size\"></nc-linear-gauge-card>\n <nc-barchart-card *ngSwitchCase=\"cardTypes.BAR\" [card]=\"card.item\" class=\"full-size\"></nc-barchart-card>\n <nc-portal-card *ngSwitchCase=\"cardTypes.DEFAULT\" [card]=\"card.item\"\n [componentPortal]=\"card.item.portalComponent\" class=\"full-size\"></nc-portal-card>\n <div *ngSwitchCase=\"cardTypes.BLANK\"></div>\n </mat-grid-tile>\n</mat-grid-list>\n", styles: [".full-size{width:100%;height:100%;margin:auto;padding:0}\n"] }]
|
|
25
|
+
}], ctorParameters: function () { return [{ type: i1.LoggerService }]; } });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGFzaGJvYXJkL2Rhc2hib2FyZC1jb250ZW50L2Rhc2hib2FyZC1jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2Rhc2hib2FyZC9kYXNoYm9hcmQtY29udGVudC9kYXNoYm9hcmQtY29udGVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3hDLE9BQU8sRUFBQyxpQ0FBaUMsRUFBZ0IsTUFBTSwwQkFBMEIsQ0FBQzs7Ozs7Ozs7Ozs7O0FBTzFGLE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxpQ0FBaUM7SUFFNUUsWUFBc0IsSUFBbUI7UUFDckMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRE0sU0FBSSxHQUFKLElBQUksQ0FBZTtJQUV6Qy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QtY2FyZD5cbiAgICAgICAgPG5jLXBvcnRhbC1jYXJkICpuZ1N3aXRjaENhc2U9XCJjYXJkVHlwZXMuREVGQVVMVFwiIFtjYXJkXT1cImNhcmQuaXRlbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbY29tcG9uZW50UG9ydGFsXT1cImNhcmQuaXRlbS5wb3J0YWxDb21wb25lbnRcIiBjbGFzcz1cImZ1bGwtc2l6ZVwiPjwvbmMtcG9ydGFsLWNhcmQ+XG4gICAgICAgIDxkaXYgKm5nU3dpdGNoQ2FzZT1cImNhcmRUeXBlcy5CTEFOS1wiPjwvZGl2PlxuICAgIDwvbWF0LWdyaWQtdGlsZT5cbjwvbWF0LWdyaWQtbGlzdD5cbiJdfQ==
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CountCardComponent } from './cards/count-card/count-card.component';
|
|
4
|
+
import { IframeCardComponent } from './cards/iframe-card/iframe-card.component';
|
|
5
|
+
import { DashboardContentComponent } from './dashboard-content/dashboard-content.component';
|
|
6
|
+
import { MaterialModule, TranslateLibModule } from '@netgrif/components-core';
|
|
7
|
+
import { PieChartCardComponent } from './cards/piechart-card/pie-chart-card.component';
|
|
8
|
+
import { LineChartCardComponent } from './cards/linechart-card/line-chart-card.component';
|
|
9
|
+
import { BarchartCardComponent } from './cards/barchart-card/barchart-card.component';
|
|
10
|
+
import { LinearGaugeCardComponent } from './cards/lineargauge-card/linear-gauge-card.component';
|
|
11
|
+
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
|
12
|
+
import { PortalCardComponent } from './cards/portal-card/portal-card.component';
|
|
13
|
+
import { MatGridListModule } from "@angular/material/grid-list";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export class DashboardComponentModule {
|
|
16
|
+
}
|
|
17
|
+
DashboardComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
18
|
+
DashboardComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardComponentModule, declarations: [CountCardComponent,
|
|
19
|
+
IframeCardComponent,
|
|
20
|
+
DashboardContentComponent,
|
|
21
|
+
PieChartCardComponent,
|
|
22
|
+
LineChartCardComponent,
|
|
23
|
+
BarchartCardComponent,
|
|
24
|
+
LinearGaugeCardComponent,
|
|
25
|
+
PortalCardComponent], imports: [CommonModule,
|
|
26
|
+
MaterialModule,
|
|
27
|
+
TranslateLibModule,
|
|
28
|
+
NgxChartsModule,
|
|
29
|
+
MaterialModule,
|
|
30
|
+
MatGridListModule], exports: [CountCardComponent,
|
|
31
|
+
IframeCardComponent,
|
|
32
|
+
DashboardContentComponent,
|
|
33
|
+
PieChartCardComponent,
|
|
34
|
+
LineChartCardComponent,
|
|
35
|
+
BarchartCardComponent,
|
|
36
|
+
LinearGaugeCardComponent] });
|
|
37
|
+
DashboardComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardComponentModule, imports: [[
|
|
38
|
+
CommonModule,
|
|
39
|
+
MaterialModule,
|
|
40
|
+
TranslateLibModule,
|
|
41
|
+
NgxChartsModule,
|
|
42
|
+
MaterialModule,
|
|
43
|
+
MatGridListModule
|
|
44
|
+
]] });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DashboardComponentModule, decorators: [{
|
|
46
|
+
type: NgModule,
|
|
47
|
+
args: [{
|
|
48
|
+
declarations: [
|
|
49
|
+
CountCardComponent,
|
|
50
|
+
IframeCardComponent,
|
|
51
|
+
DashboardContentComponent,
|
|
52
|
+
PieChartCardComponent,
|
|
53
|
+
LineChartCardComponent,
|
|
54
|
+
BarchartCardComponent,
|
|
55
|
+
LinearGaugeCardComponent,
|
|
56
|
+
PortalCardComponent
|
|
57
|
+
],
|
|
58
|
+
exports: [
|
|
59
|
+
CountCardComponent,
|
|
60
|
+
IframeCardComponent,
|
|
61
|
+
DashboardContentComponent,
|
|
62
|
+
PieChartCardComponent,
|
|
63
|
+
LineChartCardComponent,
|
|
64
|
+
BarchartCardComponent,
|
|
65
|
+
LinearGaugeCardComponent
|
|
66
|
+
],
|
|
67
|
+
imports: [
|
|
68
|
+
CommonModule,
|
|
69
|
+
MaterialModule,
|
|
70
|
+
TranslateLibModule,
|
|
71
|
+
NgxChartsModule,
|
|
72
|
+
MaterialModule,
|
|
73
|
+
MatGridListModule
|
|
74
|
+
]
|
|
75
|
+
}]
|
|
76
|
+
}] });
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2Rhc2hib2FyZC9kYXNoYm9hcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLHlDQUF5QyxDQUFDO0FBQzNFLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLDJDQUEyQyxDQUFDO0FBQzlFLE9BQU8sRUFBQyx5QkFBeUIsRUFBQyxNQUFNLGlEQUFpRCxDQUFDO0FBQzFGLE9BQU8sRUFBQyxjQUFjLEVBQUUsa0JBQWtCLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM1RSxPQUFPLEVBQ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G4gICAgICAgIENvdW50Q2FyZENvbXBvbmVudCxcbiAgICAgICAgSWZyYW1lQ2FyZENvbXBvbmVudCxcbiAgICAgICAgRGFzaGJvYXJkQ29udGVudENvbXBvbmVudCxcbiAgICAgICAgUGllQ2hhcnRDYXJkQ29tcG9uZW50LFxuICAgICAgICBMaW5lQ2hhcnRDYXJkQ29tcG9uZW50LFxuICAgICAgICBCYXJjaGFydENhcmRDb21wb25lbnQsXG4gICAgICAgIExpbmVhckdhdWdlQ2FyZENvbXBvbmVudFxuICAgIF0sXG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGUsXG4gICAgICAgIE1hdGVyaWFsTW9kdWxlLFxuICAgICAgICBUcmFuc2xhdGVMaWJNb2R1bGUsXG4gICAgICAgIE5neENoYXJ0c01vZHVsZSxcbiAgICAgICAgTWF0ZXJpYWxNb2R1bGUsXG4gICAgICAgIE1hdEdyaWRMaXN0TW9kdWxlXG4gICAgXVxufSlcbmV4cG9ydCBjbGFzcyBEYXNoYm9hcmRDb21wb25lbnRNb2R1bGUge1xufVxuIl19
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* COMPONENTS */
|
|
2
|
+
export * from './cards/iframe-card/iframe-card.component';
|
|
3
|
+
export * from './cards/count-card/count-card.component';
|
|
4
|
+
export * from './cards/lineargauge-card/linear-gauge-card.component';
|
|
5
|
+
export * from './cards/piechart-card/pie-chart-card.component';
|
|
6
|
+
export * from './cards/barchart-card/barchart-card.component';
|
|
7
|
+
export * from './cards/portal-card/portal-card.component';
|
|
8
|
+
export * from './cards/linechart-card/line-chart-card.component';
|
|
9
|
+
export * from './dashboard-content/dashboard-content.component';
|
|
10
|
+
/* MODULES */
|
|
11
|
+
export * from './dashboard.module';
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4u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wb3J0ICogZnJvbSAnLi9kYXNoYm9hcmQtY29udGVudC9kYXNoYm9hcmQtY29udGVudC5jb21wb25lbnQnO1xuXG4vKiBNT0RVTEVTICovXG5leHBvcnQgKiBmcm9tICcuL2Rhc2hib2FyZC5tb2R1bGUnO1xuIl19
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { AbstractBooleanFieldComponent, BOOLEAN_VALUE_LABEL_ENABLED, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ngx-translate/core";
|
|
5
|
+
import * as i2 from "../data-field-template/data-field-template.component";
|
|
6
|
+
import * as i3 from "../required-label/required-label.component";
|
|
7
|
+
import * as i4 from "@angular/material/slide-toggle";
|
|
8
|
+
import * as i5 from "@angular/common";
|
|
9
|
+
import * as i6 from "@angular/material/form-field";
|
|
10
|
+
import * as i7 from "@angular/forms";
|
|
11
|
+
export class BooleanFieldComponent extends AbstractBooleanFieldComponent {
|
|
12
|
+
constructor(translate, isEnabled, informAboutInvalidData) {
|
|
13
|
+
super(translate, informAboutInvalidData);
|
|
14
|
+
this.isEnabled = isEnabled;
|
|
15
|
+
this.valueLabelEnabled = isEnabled;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
BooleanFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanFieldComponent, deps: [{ token: i1.TranslateService }, { token: BOOLEAN_VALUE_LABEL_ENABLED, optional: true }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
BooleanFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BooleanFieldComponent, selector: "nc-boolean-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"boolean\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #boolean let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <mat-slide-toggle color=\"primary\" [formControl]=\"formControl\">\n {{createValueLabel()}}\n </mat-slide-toggle>\n <mat-error *ngIf=\"dataField.isInvalid(formControl)\">{{getErrorMessage()}}</mat-error>\n </div>\n</ng-template>\n", styles: [""], components: [{ type: i2.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i3.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatLabel, selector: "mat-label" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.MatError, selector: "mat-error", inputs: ["id"] }] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanFieldComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'nc-boolean-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"boolean\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #boolean let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <mat-slide-toggle color=\"primary\" [formControl]=\"formControl\">\n {{createValueLabel()}}\n </mat-slide-toggle>\n <mat-error *ngIf=\"dataField.isInvalid(formControl)\">{{getErrorMessage()}}</mat-error>\n </div>\n</ng-template>\n", styles: [""] }]
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: undefined, decorators: [{
|
|
24
|
+
type: Optional
|
|
25
|
+
}, {
|
|
26
|
+
type: Inject,
|
|
27
|
+
args: [BOOLEAN_VALUE_LABEL_ENABLED]
|
|
28
|
+
}] }, { type: undefined, decorators: [{
|
|
29
|
+
type: Optional
|
|
30
|
+
}, {
|
|
31
|
+
type: Inject,
|
|
32
|
+
args: [NAE_INFORM_ABOUT_INVALID_DATA]
|
|
33
|
+
}] }]; } });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbGVhbi1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9ib29sZWFuLWZpZWxkL2Jvb2xlYW4tZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvYm9vbGVhbi1maWVsZC9ib29sZWFuLWZpZWxkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztB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