@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,28 @@
|
|
|
1
|
+
import { Component, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { AbstractEnumerationFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../data-field-template/data-field-template.component";
|
|
5
|
+
import * as i2 from "./enumeration-autocomplete-dynamic-field/enumeration-autocomplete-dynamic-field.component";
|
|
6
|
+
import * as i3 from "./enumeration-autocomplete-select-field/enumeration-autocomplete-select-field.component";
|
|
7
|
+
import * as i4 from "./enumeration-list-field/enumeration-list-field.component";
|
|
8
|
+
import * as i5 from "./enumeration-stepper-field/enumeration-stepper-field.component";
|
|
9
|
+
import * as i6 from "./enumeration-icon-field/enumeration-icon-field.component";
|
|
10
|
+
import * as i7 from "./enumeration-select-field/enumeration-select-field.component";
|
|
11
|
+
import * as i8 from "@angular/common";
|
|
12
|
+
export class EnumerationFieldComponent extends AbstractEnumerationFieldComponent {
|
|
13
|
+
constructor(informAboutInvalidData) {
|
|
14
|
+
super(informAboutInvalidData);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
EnumerationFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationFieldComponent, deps: [{ token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
EnumerationFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationFieldComponent, selector: "nc-enumeration-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"enumFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #enumFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div [ngSwitch]=\"dataField.getType()\">\n <nc-enumeration-autocomplete-dynamic-field *ngSwitchCase=\"'autocomplete_dynamic'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-dynamic-field>\n <nc-enumeration-autocomplete-select-field *ngSwitchCase=\"'autocomplete'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-select-field>\n <nc-enumeration-list-field *ngSwitchCase=\"'list'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-list-field>\n <nc-enumeration-stepper-field *ngSwitchCase=\"'stepper'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-stepper-field>\n <nc-enumeration-icon-field *ngSwitchCase=\"'icon'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-icon-field>\n <nc-enumeration-select-field *ngSwitchDefault\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-select-field>\n </div>\n</ng-template>\n", styles: [""], components: [{ type: i1.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i2.EnumerationAutocompleteDynamicFieldComponent, selector: "nc-enumeration-autocomplete-dynamic-field" }, { type: i3.EnumerationAutocompleteSelectFieldComponent, selector: "nc-enumeration-autocomplete-select-field" }, { type: i4.EnumerationListFieldComponent, selector: "nc-enumeration-list-field" }, { type: i5.EnumerationStepperFieldComponent, selector: "nc-enumeration-stepper-field" }, { type: i6.EnumerationIconFieldComponent, selector: "nc-enumeration-icon-field" }, { type: i7.EnumerationSelectFieldComponent, selector: "nc-enumeration-select-field" }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationFieldComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'nc-enumeration-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"enumFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #enumFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div [ngSwitch]=\"dataField.getType()\">\n <nc-enumeration-autocomplete-dynamic-field *ngSwitchCase=\"'autocomplete_dynamic'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-dynamic-field>\n <nc-enumeration-autocomplete-select-field *ngSwitchCase=\"'autocomplete'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-autocomplete-select-field>\n <nc-enumeration-list-field *ngSwitchCase=\"'list'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-list-field>\n <nc-enumeration-stepper-field *ngSwitchCase=\"'stepper'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-stepper-field>\n <nc-enumeration-icon-field *ngSwitchCase=\"'icon'\"\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-icon-field>\n <nc-enumeration-select-field *ngSwitchDefault\n [showLargeLayout]=\"showLargeLayout\"\n [enumerationField]=\"dataField\"\n [formControlRef]=\"formControl\">\n </nc-enumeration-select-field>\n </div>\n</ng-template>\n", styles: [""] }]
|
|
22
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
23
|
+
type: Optional
|
|
24
|
+
}, {
|
|
25
|
+
type: Inject,
|
|
26
|
+
args: [NAE_INFORM_ABOUT_INVALID_DATA]
|
|
27
|
+
}] }]; } });
|
|
28
|
+
//# sourceM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3dMYXJnZUxheW91dFwiPlxuICAgIDxkaXYgW25nU3dpdGNoXT1cImRhdGFGaWVsZC5nZXRUeXBlKClcIj5cbiAgICAgICAgPG5jLWVudW1lcmF0aW9uLWF1dG9jb21wbGV0ZS1keW5hbWljLWZpZWxkICpuZ1N3aXRjaENhc2U9XCInYXV0b2NvbXBsZXRlX2R5bmFtaWMnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1hdXRvY29tcGxldGUtZHluYW1pYy1maWVsZD5cbiAgICAgICAgPG5jLWVudW1lcmF0aW9uLWF1dG9jb21wbGV0ZS1zZWxlY3QtZmllbGQgKm5nU3dpdGNoQ2FzZT1cIidhdXRvY29tcGxldGUnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1hdXRvY29tcGxldGUtc2VsZWN0LWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tbGlzdC1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ2xpc3QnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1saXN0LWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tc3RlcHBlci1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ3N0ZXBwZXInXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Nob3dMYXJnZUxheW91dF09XCJzaG93TGFyZ2VMYXlvdXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZW51bWVyYXRpb25GaWVsZF09XCJkYXRhRmllbGRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1zdGVwcGVyLWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24taWNvbi1maWVsZCAqbmdTd2l0Y2hDYXNlPVwiJ2ljb24nXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd0xhcmdlTGF5b3V0XT1cInNob3dMYXJnZUxheW91dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2VudW1lcmF0aW9uRmllbGRdPVwiZGF0YUZpZWxkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1pY29uLWZpZWxkPlxuICAgICAgICA8bmMtZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkICpuZ1N3aXRjaERlZmF1bHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbc2hvd0xhcmdlTGF5b3V0XT1cInNob3dMYXJnZUxheW91dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2VudW1lcmF0aW9uRmllbGRdPVwiZGF0YUZpZWxkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xSZWZdPVwiZm9ybUNvbnRyb2xcIj5cbiAgICAgICAgPC9uYy1lbnVtZXJhdGlvbi1zZWxlY3QtZmllbGQ+XG4gICAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractEnumerationIconFieldComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../required-label/required-label.component";
|
|
5
|
+
import * as i2 from "@angular/material/icon";
|
|
6
|
+
import * as i3 from "@angular/material/divider";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/material/form-field";
|
|
9
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
10
|
+
import * as i7 from "@angular/flex-layout/flex";
|
|
11
|
+
export class EnumerationIconFieldComponent extends AbstractEnumerationIconFieldComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
EnumerationIconFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationIconFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
EnumerationIconFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationIconFieldComponent, selector: "nc-enumeration-icon-field", usesInheritance: true, ngImport: i0, template: "<div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <div *ngFor=\"let option of enumerationField.choices; let i = index\">\n <div class=\"enum-icon-item enum-icon-item-row\" (click)=\"setEnumValue(option.key)\" [ngClass]=\"{'enum-icon-item-active': isSelected(option.key)}\">\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'material'\">{{resolveIconValue(option.key)}}</mat-icon>\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'svg'\" [svgIcon]=\"resolveIconValue(option.key)\"></mat-icon>\n <span fxFlex class=\"enum-icon-text\">{{option.value}}</span>\n <mat-icon *ngIf=\"resolveArrow(option.key)\">arrow_forward</mat-icon>\n </div>\n <mat-divider class=\"enum-icon-divider\" *ngIf=\"i !== enumerationField.choices.length - 1 && resolveDivider(option.key)\"></mat-divider>\n </div>\n</div>\n", styles: [".enum-icon-item{font-size:18px;font-family:Asap,sans-serif;font-weight:500;line-height:24px;letter-spacing:-.2px;text-align:left;color:#333;text-decoration:none;padding:25px 0}.enum-icon-item-row:hover{cursor:pointer}.enum-icon-item:focus,.enum-icon-item-row:focus{outline:none}.enum-icon-divider{position:relative!important}.enum-icon-text{padding:0 16px}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.MatLabel, selector: "mat-label" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i7.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"] }] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationIconFieldComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'nc-enumeration-icon-field', template: "<div>\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <br></mat-label>\n <div *ngFor=\"let option of enumerationField.choices; let i = index\">\n <div class=\"enum-icon-item enum-icon-item-row\" (click)=\"setEnumValue(option.key)\" [ngClass]=\"{'enum-icon-item-active': isSelected(option.key)}\">\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'material'\">{{resolveIconValue(option.key)}}</mat-icon>\n <mat-icon *ngIf=\"resolveIconType(option.key) === 'svg'\" [svgIcon]=\"resolveIconValue(option.key)\"></mat-icon>\n <span fxFlex class=\"enum-icon-text\">{{option.value}}</span>\n <mat-icon *ngIf=\"resolveArrow(option.key)\">arrow_forward</mat-icon>\n </div>\n <mat-divider class=\"enum-icon-divider\" *ngIf=\"i !== enumerationField.choices.length - 1 && resolveDivider(option.key)\"></mat-divider>\n </div>\n</div>\n", styles: [".enum-icon-item{font-size:18px;font-family:Asap,sans-serif;font-weight:500;line-height:24px;letter-spacing:-.2px;text-align:left;color:#333;text-decoration:none;padding:25px 0}.enum-icon-item-row:hover{cursor:pointer}.enum-icon-item:focus,.enum-icon-item-row:focus{outline:none}.enum-icon-divider{position:relative!important}.enum-icon-text{padding:0 16px}\n"] }]
|
|
21
|
+
}], ctorParameters: function () { return []; } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24taWNvbi1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9lbnVtZXJhdGlvbi1maWVsZC9lbnVtZXJhdGlvbi1pY29uLWZpZWxkL2VudW1lcmF0aW9uLWljb24tZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bW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aWNvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxtYXQtZGl2aWRlciBjbGFzcz1cImVudW0taWNvbi1kaXZpZGVyXCIgKm5nSWY9XCJpICE9PSBlbnVtZXJhdGlvbkZpZWxkLmNob2ljZXMubGVuZ3RoIC0gMSAmJiByZXNvbHZlRGl2aWRlcihvcHRpb24ua2V5KVwiPjwvbWF0LWRpdmlkZXI+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractEnumerationListFieldComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../required-label/required-label.component";
|
|
5
|
+
import * as i2 from "@angular/material/button";
|
|
6
|
+
import * as i3 from "@angular/material/radio";
|
|
7
|
+
import * as i4 from "@angular/forms";
|
|
8
|
+
import * as i5 from "@angular/common";
|
|
9
|
+
import * as i6 from "@angular/material/form-field";
|
|
10
|
+
import * as i7 from "@ngx-translate/core";
|
|
11
|
+
export class EnumerationListFieldComponent extends AbstractEnumerationListFieldComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
EnumerationListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationListFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
EnumerationListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationListFieldComponent, selector: "nc-enumeration-list-field", usesInheritance: true, ngImport: i0, template: "<mat-radio-group\n color=\"primary\"\n class=\"full-width example-radio-group\"\n aria-labelledby=\"example-radio-group-label\"\n [required]=\"enumerationField.behavior.required\"\n [formControl]=\"formControlRef\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <button *ngIf=\"enumerationField.behavior.editable\" mat-button (click)=\"resetEnum()\">{{'dataField.enum.reset' | translate}}</button>\n <br></mat-label>\n <mat-radio-button class=\"example-radio-button\" *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-radio-button>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-radio-group>\n", styles: [".example-radio-group{display:flex;flex-direction:column;margin:16px 0}.example-radio-button{margin:8px}.full-width{width:100%}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i3.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatLabel, selector: "mat-label" }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i7.TranslatePipe } });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationListFieldComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'nc-enumeration-list-field', template: "<mat-radio-group\n color=\"primary\"\n class=\"full-width example-radio-group\"\n aria-labelledby=\"example-radio-group-label\"\n [required]=\"enumerationField.behavior.required\"\n [formControl]=\"formControlRef\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"true\"></nc-required-label>\n <button *ngIf=\"enumerationField.behavior.editable\" mat-button (click)=\"resetEnum()\">{{'dataField.enum.reset' | translate}}</button>\n <br></mat-label>\n <mat-radio-button class=\"example-radio-button\" *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-radio-button>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-radio-group>\n", styles: [".example-radio-group{display:flex;flex-direction:column;margin:16px 0}.example-radio-button{margin:8px}.full-width{width:100%}\n"] }]
|
|
21
|
+
}], ctorParameters: function () { return []; } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tbGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9lbnVtZXJhdGlvbi1maWVsZC9lbnVtZXJhdGlvbi1saXN0LWZpZWxkL2VudW1lcmF0aW9uLWxpc3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZm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Zm9ybUNvbnRyb2xSZWYpXCI+e3snZGF0YUZpZWxkLnZhbGlkYXRpb25zLnJlcXVpcmVkJyB8IHRyYW5zbGF0ZX19PC9tYXQtZXJyb3I+XG48L21hdC1yYWRpby1ncm91cD5cbiJdfQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractEnumerationSelectFieldComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/form-field";
|
|
5
|
+
import * as i2 from "@angular/material/select";
|
|
6
|
+
import * as i3 from "@angular/material/core";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/forms";
|
|
9
|
+
import * as i6 from "@ngx-translate/core";
|
|
10
|
+
export class EnumerationSelectFieldComponent extends AbstractEnumerationSelectFieldComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
EnumerationSelectFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationSelectFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
EnumerationSelectFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationSelectFieldComponent, selector: "nc-enumeration-select-field", usesInheritance: true, ngImport: i0, template: "<mat-form-field [appearance]=\"enumerationField.materialAppearance\" class=\"full-width\" color=\"primary\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}</mat-label>\n <mat-select [formControl]=\"formControlRef\"\n [placeholder]=\"enumerationField.placeholder\"\n [required]=\"enumerationField.behavior.required\">\n <mat-option [value]=\"null\">---</mat-option>\n <mat-option *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-option>\n </mat-select>\n <mat-hint>{{enumerationField.description}}</mat-hint>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-form-field>\n", styles: [".full-width{display:block;margin:0 auto;width:100%}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatLabel, selector: "mat-label" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i6.TranslatePipe } });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationSelectFieldComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'nc-enumeration-select-field', template: "<mat-form-field [appearance]=\"enumerationField.materialAppearance\" class=\"full-width\" color=\"primary\">\n <mat-label *ngIf=\"!showLargeLayout.value\">{{enumerationField.title}}</mat-label>\n <mat-select [formControl]=\"formControlRef\"\n [placeholder]=\"enumerationField.placeholder\"\n [required]=\"enumerationField.behavior.required\">\n <mat-option [value]=\"null\">---</mat-option>\n <mat-option *ngFor=\"let option of enumerationField.choices\" [value]=\"option.key\">\n {{option.value}}\n </mat-option>\n </mat-select>\n <mat-hint>{{enumerationField.description}}</mat-hint>\n <mat-error *ngIf=\"enumerationField.isInvalid(formControlRef)\">{{'dataField.validations.required' | translate}}</mat-error>\n</mat-form-field>\n", styles: [".full-width{display:block;margin:0 auto;width:100%}\n"] }]
|
|
20
|
+
}], ctorParameters: function () { return []; } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2VudW1lcmF0aW9uLWZpZWxkL2VudW1lcmF0aW9uLXNlbGVjdC1maWVsZC9lbnVtZXJhdGlvbi1zZWxlY3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bWVyYXRpb24tc2VsZWN0LWZpZWxkL2VudW1lcmF0aW9uLXNlbGVjdC1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3hDLE9BQU8sRUFBQyx1Q0FBdUMsRUFBQyxNQUFNLDBCQUEwQixDQUFDOzs7Ozs7OztBQU9qRixNQUFNLE9BQU8sK0JBQWdDLFNBQVEsdUNBQXVDO0lBQ3hGO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDOzs2SEFIUSwrQkFBK0I7aUhBQS9CL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vbGRlcl09XCJlbnVtZXJhdGlvbkZpZWxkLnBsYWNlaG9sZGVyXCJcbiAgICAgICAgICAgICAgICBbcmVxdWlyZWRdPVwiZW51bWVyYXRpb25GaWVsZC5iZWhhdmlvci5yZXF1aXJlZFwiPlxuICAgICAgICA8bWF0LW9wdGlvbiBbdmFsdWVdPVwibnVsbFwiPi0tLTwvbWF0LW9wdGlvbj5cbiAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBlbnVtZXJhdGlvbkZpZWxkLmNob2ljZXNcIiBbdmFsdWVdPVwib3B0aW9uLmtleVwiPlxuICAgICAgICAgICAge3tvcHRpb24udmFsdWV9fVxuICAgICAgICA8L21hdC1vcHRpb24+XG4gICAgPC9tYXQtc2VsZWN0PlxuICAgIDxtYXQtaGludD57e2VudW1lcmF0aW9uRmllbGQuZGVzY3JpcHRpb259fTwvbWF0LWhpbnQ+XG4gICAgPG1hdC1lcnJvciAqbmdJZj1cImVudW1lcmF0aW9uRmllbGQuaXNJbnZhbGlkKGZvcm1Db250cm9sUmVmKVwiPnt7J2RhdGFGaWVsZC52YWxpZGF0aW9ucy5yZXF1aXJlZCcgfCB0cmFuc2xhdGV9fTwvbWF0LWVycm9yPlxuPC9tYXQtZm9ybS1maWVsZD5cbiJdfQ==
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { AbstractEnumerationStepperFieldComponent } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../required-label/required-label.component";
|
|
5
|
+
import * as i2 from "@angular/material/icon";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
import * as i5 from "@angular/material/tooltip";
|
|
9
|
+
import * as i6 from "@angular/flex-layout/flex";
|
|
10
|
+
import * as i7 from "@angular/flex-layout/extended";
|
|
11
|
+
export class EnumerationStepperFieldComponent extends AbstractEnumerationStepperFieldComponent {
|
|
12
|
+
constructor(ref) {
|
|
13
|
+
super(ref);
|
|
14
|
+
this.ref = ref;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
EnumerationStepperFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationStepperFieldComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
EnumerationStepperFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EnumerationStepperFieldComponent, selector: "nc-enumeration-stepper-field", usesInheritance: true, ngImport: i0, template: "<mat-label class=\"stepper-label\" *ngIf=\"!showLargeLayout.value\" matTooltipClass=\"stepper-tooltip-text\" [matTooltip]=\"enumerationField.description\" matTooltipPosition=\"right\">\n {{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"!enumerationField.disabled\" ></nc-required-label>\n</mat-label>\n\n<div class=\"horizontal-stepper\" fxLayout=\"row\" *ngIf=\"!arrowStepper\">\n <div class=\"horizontal-step\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <div class=\"horizontal-step-header\" #oneStep>\n <div class=\"horizontal-state\" [ngClass]=\"{'horizontal-state-primary': canShowDoneIcon(i), 'horizontal-state-secondary': !canShowDoneIcon(i)}\">\n <mat-icon *ngIf=\"canShowDoneIcon(i + 1)\">done</mat-icon>\n </div>\n <div class=\"horizontal-state-label\">{{option.value}}</div>\n </div>\n <div class=\"horizontal-line\" fxFlex *ngIf=\"i < enumerationField.choices.length - 1\"></div>\n </ng-template>\n </div>\n</div>\n\n<div *ngIf=\"arrowStepper\" class=\"stepper-min-height\" fxLayoutAlign=\"stretch center\" fxLayout=\"row\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <span class=\"stepper-arrow-text\" [ngClass]=\"{'stepper-arrow-selected': isSelected(option.key), 'stepper-disabled': enumerationField.disabled}\"\n (click)=\"setStepperValue(option.key)\" fxFlex fxLayoutAlign=\"center center\">{{option.value}}</span>\n <span fxFlex *ngIf=\"i < enumerationField.choices.length - 1\" fxLayoutAlign=\"center center\">\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </ng-template>\n</div>\n", styles: [".horizontal-stepper{display:flex}.horizontal-step-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px;overflow:hidden;outline:none;position:relative;-webkit-tap-highlight-color:transparent;display:flex;align-items:center}.horizontal-step-header:not(:first-child):before{left:0}.horizontal-step-header:not(:last-child):after{right:0}.horizontal-step-header:not(:last-child):after,.horizontal-step-header:not(:first-child):before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);top:36px}.horizontal-state{color:#fff;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.horizontal-state-label{display:inline-block;overflow:hidden;text-overflow:ellipsis;min-width:36px;vertical-align:middle;padding:16px 0 0;text-align:center;width:100%;word-wrap:break-word}.horizontal-line{position:relative;top:36px;border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:12px}.horizontal-step{flex:auto;display:flex}.stepper-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.stepper-tooltip-text{color:#fff;padding:10px 15px}.stepper-min-height{border-radius:10px;min-height:70px;background-color:#f9f9f9}.stepper-arrow-text{font-weight:500;font-size:16px;letter-spacing:-.2;line-height:24px;color:#333;cursor:pointer}.stepper-disabled{cursor:unset!important}\n"], components: [{ type: i1.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatLabel, selector: "mat-label" }, { type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i6.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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i6.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"] }, { type: i6.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"] }] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumerationStepperFieldComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'nc-enumeration-stepper-field', template: "<mat-label class=\"stepper-label\" *ngIf=\"!showLargeLayout.value\" matTooltipClass=\"stepper-tooltip-text\" [matTooltip]=\"enumerationField.description\" matTooltipPosition=\"right\">\n {{enumerationField.title}}\n <nc-required-label *ngIf=\"enumerationField.behavior.required\" [isIn]=\"!enumerationField.disabled\" ></nc-required-label>\n</mat-label>\n\n<div class=\"horizontal-stepper\" fxLayout=\"row\" *ngIf=\"!arrowStepper\">\n <div class=\"horizontal-step\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <div class=\"horizontal-step-header\" #oneStep>\n <div class=\"horizontal-state\" [ngClass]=\"{'horizontal-state-primary': canShowDoneIcon(i), 'horizontal-state-secondary': !canShowDoneIcon(i)}\">\n <mat-icon *ngIf=\"canShowDoneIcon(i + 1)\">done</mat-icon>\n </div>\n <div class=\"horizontal-state-label\">{{option.value}}</div>\n </div>\n <div class=\"horizontal-line\" fxFlex *ngIf=\"i < enumerationField.choices.length - 1\"></div>\n </ng-template>\n </div>\n</div>\n\n<div *ngIf=\"arrowStepper\" class=\"stepper-min-height\" fxLayoutAlign=\"stretch center\" fxLayout=\"row\">\n <ng-template ngFor let-option [ngForOf]=\"enumerationField.choices\" let-i=\"index\">\n <span class=\"stepper-arrow-text\" [ngClass]=\"{'stepper-arrow-selected': isSelected(option.key), 'stepper-disabled': enumerationField.disabled}\"\n (click)=\"setStepperValue(option.key)\" fxFlex fxLayoutAlign=\"center center\">{{option.value}}</span>\n <span fxFlex *ngIf=\"i < enumerationField.choices.length - 1\" fxLayoutAlign=\"center center\">\n <mat-icon>arrow_forward_ios</mat-icon>\n </span>\n </ng-template>\n</div>\n", styles: [".horizontal-stepper{display:flex}.horizontal-step-header{box-sizing:border-box;flex-direction:column;height:auto;padding:24px;overflow:hidden;outline:none;position:relative;-webkit-tap-highlight-color:transparent;display:flex;align-items:center}.horizontal-step-header:not(:first-child):before{left:0}.horizontal-step-header:not(:last-child):after{right:0}.horizontal-step-header:not(:last-child):after,.horizontal-step-header:not(:first-child):before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);top:36px}.horizontal-state{color:#fff;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.horizontal-state-label{display:inline-block;overflow:hidden;text-overflow:ellipsis;min-width:36px;vertical-align:middle;padding:16px 0 0;text-align:center;width:100%;word-wrap:break-word}.horizontal-line{position:relative;top:36px;border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:12px}.horizontal-step{flex:auto;display:flex}.stepper-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.stepper-tooltip-text{color:#fff;padding:10px 15px}.stepper-min-height{border-radius:10px;min-height:70px;background-color:#f9f9f9}.stepper-arrow-text{font-weight:500;font-size:16px;letter-spacing:-.2;line-height:24px;color:#333;cursor:pointer}.stepper-disabled{cursor:unset!important}\n"] }]
|
|
22
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bWVyYXRpb24tc3RlcHBlci1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9lbnVtZXJhdGlvbi1maWVsZC9lbnVtZXJhdGlvbi1zdGVwcGVyLWZpZWxkL2VudW1lcmF0aW9uLXN0ZXBwZXItZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZW51bWVyYXRpb24tZmllbGQvZW51bWVyYXRpb24tc3RlcHBlci1maWVsZC9lbnVtZXJhdGlvbi1zdGVwcGVyLWZpZWxkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLHdDQUF3QyxFQUFDLE1BQU0sMEJBQTBCLENBQUM7Ozs7Ozs7OztBQU9sRixNQUFNLE9BQU8sZ0NBQWlDLFNBQVEsd0NBQXdDO0lBRTFGLFlBQXNCLEdBQWU7UUFDakMsS0FBSyxDQUFDLEdBQUcsQ0FB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YXQtaWNvbj5cbiAgICAgICAgPC9zcGFuPlxuICAgIDwvbmctdGVtcGxhdGU+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { AbstractFileFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
|
|
3
|
+
import { PreviewDialogComponent } from './preview-dialog/preview-dialog.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@netgrif/components-core";
|
|
6
|
+
import * as i2 from "@ngx-translate/core";
|
|
7
|
+
import * as i3 from "@angular/platform-browser";
|
|
8
|
+
import * as i4 from "@angular/material/dialog";
|
|
9
|
+
import * as i5 from "../data-field-template/data-field-template.component";
|
|
10
|
+
import * as i6 from "../required-label/required-label.component";
|
|
11
|
+
import * as i7 from "@angular/material/button";
|
|
12
|
+
import * as i8 from "@angular/material/icon";
|
|
13
|
+
import * as i9 from "@angular/material/progress-bar";
|
|
14
|
+
import * as i10 from "@angular/material/progress-spinner";
|
|
15
|
+
import * as i11 from "@angular/common";
|
|
16
|
+
import * as i12 from "@angular/flex-layout/flex";
|
|
17
|
+
import * as i13 from "@angular/material/form-field";
|
|
18
|
+
import * as i14 from "@angular/material/tooltip";
|
|
19
|
+
import * as i15 from "@angular/flex-layout/extended";
|
|
20
|
+
import * as i16 from "@angular/forms";
|
|
21
|
+
import * as i17 from "angular-resize-event";
|
|
22
|
+
export class FileFieldComponent extends AbstractFileFieldComponent {
|
|
23
|
+
constructor(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData, _sanitizer, dialog) {
|
|
24
|
+
super(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData, _sanitizer);
|
|
25
|
+
this._sanitizer = _sanitizer;
|
|
26
|
+
this.dialog = dialog;
|
|
27
|
+
}
|
|
28
|
+
showPreviewDialog() {
|
|
29
|
+
super.showPreviewDialog();
|
|
30
|
+
this.dialog.open(PreviewDialogComponent, {
|
|
31
|
+
data: {
|
|
32
|
+
dataField: this.dataField,
|
|
33
|
+
imagePreview: this.previewSource,
|
|
34
|
+
imageFull: this.fullSource,
|
|
35
|
+
extension: this.previewExtension
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
FileFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileFieldComponent, deps: [{ token: i1.TaskResourceService }, { token: i1.LoggerService }, { token: i1.SnackBarService }, { token: i2.TranslateService }, { token: i1.EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }, { token: i3.DomSanitizer }, { token: i4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
FileFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileFieldComponent, selector: "nc-file-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <div fxFlex=\"{{!filePreview ? '100' : '75'}}\">\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span (click)=\"isEmpty() ? chooseFile() : download()\" fxFlex\n [matTooltip]=\"isEmpty() ? '' : ('dataField.file.clickToDownload' | translate : {fileName: constructDisplayName()})\"\n class=\"input-name-ellipsis\"\n [ngClass]=\"{'input-placeholder': isEmpty(), 'no-cursor': isEmpty() && formControl.disabled}\">{{constructDisplayName()}}</span>\n <button (click)=\"deleteFile()\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!isEmpty() && !formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"false\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\">\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\"\n *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\"\n *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n <div *ngIf=\"filePreview\" fxFlex=\"5\"></div>\n <div *ngIf=\"filePreview\" fxFlex=\"20\" fxLayout=\"row\" fxLayoutAlign=\"center center\" #imageDiv\n (resized)=\"changeMaxWidth($event)\"\n [ngStyle]=\"{'max-height': getHeight()+'px'}\">\n <img *ngIf=\"previewSource !== undefined && !state.downloading && isDisplayable\" class=\"image-preview\" #imageEl\n [ngStyle]=\"!isBorderLGBTQ() && !isBorderDefault() && {\n 'border-width': getPreviewBorderWidth(),\n 'border-style': getPreviewBorderStyle(),\n 'border-color': getPreviewBorderColor()\n }\"\n [ngClass]=\"{'border-LGBTQ': isBorderLGBTQ(), 'border-default': isBorderDefault()}\"\n [src]=\"previewSource\" alt=\"Image preview\" (click)=\"showPreviewDialog()\"/>\n <mat-spinner *ngIf=\"previewSource === undefined && !!state.downloading && isDisplayable\"\n [diameter]=\"26\"></mat-spinner>\n </div>\n </div>\n</ng-template>\n", styles: [".invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.file-field-image{width:120px}.file-field-image-wrapper{border-radius:3px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;height:54.81px}.form-input:hover{border-color:#000}.placeholder{color:#0000006b!important}.file-hint-error{padding:0 1em;font-size:75%}.image-preview{width:auto;height:auto;cursor:pointer}.no-cursor{cursor:default!important}.border-LGBTQ{border:5px solid transparent;border-image:linear-gradient(to bottom right,#B827FC 0%,#2C90FC 25%,#B8FD33 50%,#FEC837 75%,#FD1892 100%);border-image-slice:1}.border-default{border-width:1px;border-style:solid;border-color:#000}\n"], components: [{ type: i5.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i6.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i10.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.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: i12.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: i12.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"] }, { type: i13.MatLabel, selector: "mat-label" }, { type: i14.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i11.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i15.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i16.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i16.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i16.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i13.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i13.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i15.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i17.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "translate": i2.TranslatePipe } });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileFieldComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{ selector: 'nc-file-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <div fxFlex=\"{{!filePreview ? '100' : '75'}}\">\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span (click)=\"isEmpty() ? chooseFile() : download()\" fxFlex\n [matTooltip]=\"isEmpty() ? '' : ('dataField.file.clickToDownload' | translate : {fileName: constructDisplayName()})\"\n class=\"input-name-ellipsis\"\n [ngClass]=\"{'input-placeholder': isEmpty(), 'no-cursor': isEmpty() && formControl.disabled}\">{{constructDisplayName()}}</span>\n <button (click)=\"deleteFile()\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!isEmpty() && !formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"false\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\">\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\"\n *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\"\n *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n <div *ngIf=\"filePreview\" fxFlex=\"5\"></div>\n <div *ngIf=\"filePreview\" fxFlex=\"20\" fxLayout=\"row\" fxLayoutAlign=\"center center\" #imageDiv\n (resized)=\"changeMaxWidth($event)\"\n [ngStyle]=\"{'max-height': getHeight()+'px'}\">\n <img *ngIf=\"previewSource !== undefined && !state.downloading && isDisplayable\" class=\"image-preview\" #imageEl\n [ngStyle]=\"!isBorderLGBTQ() && !isBorderDefault() && {\n 'border-width': getPreviewBorderWidth(),\n 'border-style': getPreviewBorderStyle(),\n 'border-color': getPreviewBorderColor()\n }\"\n [ngClass]=\"{'border-LGBTQ': isBorderLGBTQ(), 'border-default': isBorderDefault()}\"\n [src]=\"previewSource\" alt=\"Image preview\" (click)=\"showPreviewDialog()\"/>\n <mat-spinner *ngIf=\"previewSource === undefined && !!state.downloading && isDisplayable\"\n [diameter]=\"26\"></mat-spinner>\n </div>\n </div>\n</ng-template>\n", styles: [".invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.file-field-image{width:120px}.file-field-image-wrapper{border-radius:3px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;height:54.81px}.form-input:hover{border-color:#000}.placeholder{color:#0000006b!important}.file-hint-error{padding:0 1em;font-size:75%}.image-preview{width:auto;height:auto;cursor:pointer}.no-cursor{cursor:default!important}.border-LGBTQ{border:5px solid transparent;border-image:linear-gradient(to bottom right,#B827FC 0%,#2C90FC 25%,#B8FD33 50%,#FEC837 75%,#FD1892 100%);border-image-slice:1}.border-default{border-width:1px;border-style:solid;border-color:#000}\n"] }]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.TaskResourceService }, { type: i1.LoggerService }, { type: i1.SnackBarService }, { type: i2.TranslateService }, { type: i1.EventService }, { type: undefined, decorators: [{
|
|
46
|
+
type: Optional
|
|
47
|
+
}, {
|
|
48
|
+
type: Inject,
|
|
49
|
+
args: [NAE_INFORM_ABOUT_INVALID_DATA]
|
|
50
|
+
}] }, { type: i3.DomSanitizer }, { type: i4.MatDialog }]; } });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6W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ICAgcHVibGljIHNob3dQcmV2aWV3RGlhbG9nKCkge1xuICAgICAgICBzdXBlci5zaG93UHJldmlld0RpYWxvZygpO1xuICAgICAgICB0aGlzLmRpYWxvZy5vcGVuKFByZXZpZXdEaWFsb2dDb21wb25lbnQsIHtcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICBkYXRhRmllbGQ6IHRoaXMuZGF0YUZpZWxkLFxuICAgICAgICAgICAgICAgIGltYWdlUHJldmlldzogdGhpcy5wcmV2aWV3U291cmNlLFxuICAgICAgICAgICAgICAgIGltYWdlRnVsbDogdGhpcy5mdWxsU291cmNlLFxuICAgICAgICAgICAgICAgIGV4dGVuc2lvbjogdGhpcy5wcmV2aWV3RXh0ZW5zaW9uXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cbn1cblxuIiwiPG5jLWRhdGEtZmllbGQtdGVtcGxhdGUgKm5nSWY9XCIhZGF0YUZpZWxkLmJlaGF2aW9yLmhpZGRlblwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbZGF0YUZpZWxkXT1cImRhdGFGaWVsZFwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbZGF0YUZpZWxkVGVtcGxhdGVdPVwiZGF0YUZpZWxkVGVtcGxhdGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW29mZnNldF09XCJ0YXNrT2Zmc2V0XCI+XG48L25jLWRhdGEtZmllbGQtdGVtcGxhdGU+XG5cbjxuZy10ZW1wbGF0ZSAjZGF0YUZpZWxkVGVtcGxhdGUgbGV0LXNob3dMYXJnZUxheW91dD1cInNob3dMYXJnZUxheW91dFwiPlxuICAgIDxkaXYgZnhMYXlvdXRBbGlnbj1cImNlbnRlciBjZW50ZXJcIiBmeExheW91dD1cInJvd1wiPlxuICAgICAgICA8ZGl2IGZ4RmxleD1cInt7IWZpbGVQcmV2aWV3ID8gJzEwMCcgOiAnNzUnfX1cIj5cbiAgICAgICAgICAgIDxtYXQtbGFiZWwgKm5nSWY9XCIhc2hvd0xhcmdlTGF5b3V0LnZhbHVlXCI+XG4gICAgICAgICAgICAgICAge3tkYXRhRmllbGQudGl0bGV9fVxuICAgICAgICAgICAgICAgIDxuYy1yZXF1aXJlZC1sYWJlbCAqbmdJZj1cImRhdGFGaWVsZC5iZWhhdmlvci5yZXF1aXJlZFwiIFtpc0luXT1cIiFkYXRhRmllbGQuZGlzYWJsZWRcIj48L25jLXJlcXVpcmVkLWxhYmVsPlxuICAgICAgICAgICAgICAgIDxicj5cbiAgICAgICAgICAgIDwvbWF0LWxhYmVsPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImZvcm0taW5wdXQgYnV0dG9uLWljb24taW5wdXQgZnVsbC13aWR0aCBpbnB1dC1tYXJnaW5cIiBmeExheW91dD1cInJvd1wiIGZ4TGF5b3V0QWxpZ249XCJzdGFydCBjZW50ZXJcIj5cbiAgICAgICAgICAgICAgICA8YnV0dG9uIG1hdC1pY29uLWJ1dHRvbiBjb2xvcj1cImFjY2VudFwiIChjbGljayk9XCJjaG9vc2VGaWxlKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW21hdFRvb2x0aXBdPVwiJ2RhdGFGaWVsZC5maWxlLmNsaWNrVG9VcGxvYWQnIHwgdHJhbnNsYXRlXCIgKm5nSWY9XCIhZm9ybUNvbnRyb2wuZGlzYWJsZWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2NsYXNzLmRvLW5vdC1jbGlja109XCJzdGF0ZS51cGxvYWRpbmdcIj5cbiAgICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPmZpbGVfdXBsb2FkPC9tYXQtaWNvbj5cbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICA8c3BhbiAoY2xpY2spPVwiaXNFbXB0eSgpID8gY2hvb3NlRmlsZSgpIDogZG93bmxvYWQoKVwiIGZ4RmxleFxuICAgICAgICAgICAgICAgICAgICAgIFttYXRUb29sdGlwXT1cImlzRW1wdHk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lXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICBbZGlhbWV0ZXJdPVwiMjZcIj48L21hdC1zcGlubmVyPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
+
import { FilePreviewType } from '@netgrif/components-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/button";
|
|
6
|
+
import * as i2 from "@angular/material/icon";
|
|
7
|
+
import * as i3 from "@angular/material/dialog";
|
|
8
|
+
import * as i4 from "@angular/common";
|
|
9
|
+
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
+
export class PreviewDialogComponent {
|
|
11
|
+
constructor(data) {
|
|
12
|
+
this.data = data;
|
|
13
|
+
data.imageFull.subscribe(imageSource => {
|
|
14
|
+
this.image = imageSource;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
fullImageExists() {
|
|
18
|
+
return !!this.image;
|
|
19
|
+
}
|
|
20
|
+
isPdf() {
|
|
21
|
+
return this.data.extension === FilePreviewType.pdf;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
PreviewDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PreviewDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
PreviewDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PreviewDialogComponent, selector: "nc-preview-dialog", ngImport: i0, template: "<button class=\"close\" mat-icon-button [mat-dialog-close]=\"true\">\n <mat-icon>close</mat-icon>\n</button>\n<h1 mat-dialog-title *ngIf=\"!isPdf()\">Image: {{data.dataField.value.name}}</h1>\n<h1 mat-dialog-title *ngIf=\"isPdf()\">PDF: {{data.dataField.value.name}}</h1>\n<div mat-dialog-content fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <img class=\"image-size\" *ngIf=\"!fullImageExists()\" [src]=\"data.imagePreview\" alt=\"Image preview\"/>\n <img class=\"image-size\" *ngIf=\"fullImageExists() && !isPdf()\" [src]=\"image\" alt=\"Image\"/>\n <embed class=\"pdf-view\" *ngIf=\"fullImageExists() && isPdf()\" [src]=\"image\" [type]=\"'application/pdf'\" />\n</div>\n", styles: [".image-size{max-height:64vh}.close{float:right;top:-24px;right:-24px}.pdf-view{width:50vw;height:64vh}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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"] }] });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PreviewDialogComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: 'nc-preview-dialog', template: "<button class=\"close\" mat-icon-button [mat-dialog-close]=\"true\">\n <mat-icon>close</mat-icon>\n</button>\n<h1 mat-dialog-title *ngIf=\"!isPdf()\">Image: {{data.dataField.value.name}}</h1>\n<h1 mat-dialog-title *ngIf=\"isPdf()\">PDF: {{data.dataField.value.name}}</h1>\n<div mat-dialog-content fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <img class=\"image-size\" *ngIf=\"!fullImageExists()\" [src]=\"data.imagePreview\" alt=\"Image preview\"/>\n <img class=\"image-size\" *ngIf=\"fullImageExists() && !isPdf()\" [src]=\"image\" alt=\"Image\"/>\n <embed class=\"pdf-view\" *ngIf=\"fullImageExists() && isPdf()\" [src]=\"image\" [type]=\"'application/pdf'\" />\n</div>\n", styles: [".image-size{max-height:64vh}.close{float:right;top:-24px;right:-24px}.pdf-view{width:50vw;height:64vh}\n"] }]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
30
|
+
type: Inject,
|
|
31
|
+
args: [MAT_DIALOG_DATA]
|
|
32
|
+
}] }]; } });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJldmlldy1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsZS1maWVsZC9wcmV2aWV3LWRpYWxvZy9wcmV2aWV3LWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZXRncmlmLWNvbXBvbmVudHMvc3JjL2xpYi9kYXRhLWZpZWxkcy9maWxlLWZpZWxkL3ByZXZpZXctZGlhbG9nL3ByZXZpZXctZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBQ3hELE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUN6RCxPQUFPLEVBQUMsZUFBZSxFQUFvQixNQUFNLDBCQUEwQixDQUFDOzs7Ozs7O0FBUzVFLE1BQU0sT0FBTyxzQkFBc0I7SUFHL0IsWUFBNEMsSUFBdUI7UUFBdkIsU0FBSSxHQUFKLElBQUksQ0FBbUI7UUFDL0QsSUFBSSxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsV0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GF0YS5pbWFnZVByZXZpZXdcIiBhbHQ9XCJJbWFnZSBwcmV2aWV3XCIvPlxuICAgIDxpbWcgY2xhc3M9XCJpbWFnZS1zaXplXCIgKm5nSWY9XCJmdWxsSW1hZ2VFeGlzdHMoKSAmJiAhaXNQZGYoKVwiIFtzcmNdPVwiaW1hZ2VcIiBhbHQ9XCJJbWFnZVwiLz5cbiAgICA8ZW1iZWQgY2xhc3M9XCJwZGYtdmlld1wiICpuZ0lmPVwiZnVsbEltYWdlRXhpc3RzKCkgJiYgaXNQZGYoKVwiIFtzcmNdPVwiaW1hZ2VcIiBbdHlwZV09XCInYXBwbGljYXRpb24vcGRmJ1wiIC8+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { AbstractFileListFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } 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 "../data-field-template/data-field-template.component";
|
|
7
|
+
import * as i4 from "../required-label/required-label.component";
|
|
8
|
+
import * as i5 from "@angular/material/button";
|
|
9
|
+
import * as i6 from "@angular/material/icon";
|
|
10
|
+
import * as i7 from "@angular/material/progress-bar";
|
|
11
|
+
import * as i8 from "@angular/common";
|
|
12
|
+
import * as i9 from "@angular/material/form-field";
|
|
13
|
+
import * as i10 from "@angular/flex-layout/flex";
|
|
14
|
+
import * as i11 from "@angular/material/tooltip";
|
|
15
|
+
import * as i12 from "@angular/flex-layout/extended";
|
|
16
|
+
import * as i13 from "@angular/forms";
|
|
17
|
+
export class FileListFieldComponent extends AbstractFileListFieldComponent {
|
|
18
|
+
constructor(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData) {
|
|
19
|
+
super(taskResourceService, log, snackbar, translate, eventService, informAboutInvalidData);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
FileListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListFieldComponent, deps: [{ token: i1.TaskResourceService }, { token: i1.LoggerService }, { token: i1.SnackBarService }, { token: i2.TranslateService }, { token: i1.EventService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
FileListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileListFieldComponent, selector: "nc-file-list-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span *ngIf=\"uploadedFiles.length === 0\" (click)=\"chooseFile()\" fxFlex\n [ngClass]=\"{'no-cursor': formControl.disabled}\" class=\"input-placeholder input-name-ellipsis\">{{constructDisplayName()}}</span>\n <div *ngIf=\"uploadedFiles.length !== 0\" class=\"input-name-ellipsis\" fxFlex>\n <div *ngFor=\"let name of uploadedFiles\" fxLayoutAlign=\"start center\">\n <span (click)=\"download(name)\" fxFlex [matTooltip]=\"'dataField.file.clickToDownload' | translate : {fileName: name}\"\n class=\"input-name-ellipsis file-list-item\">{{name}}</span>\n <button (click)=\"deleteFile(name)\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"true\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\"/>\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\" *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\" *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n</ng-template>\n", styles: ["@import\"quill/dist/quill.snow.css\";@import\"quill/dist/quill.bubble.css\";@import\"quill/dist/quill.core.css\";.invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;min-height:54.81px}.form-input:hover{border-color:#000}.file-hint-error{padding:0 1em;font-size:75%}.no-cursor{cursor:default!important}\n"], components: [{ type: i3.DataFieldTemplateComponent, selector: "nc-data-field-template" }, { type: i4.RequiredLabelComponent, selector: "nc-required-label", inputs: ["isIn"] }, { type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.MatLabel, selector: "mat-label" }, { type: i10.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: i10.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: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i10.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"] }, { type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i13.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i13.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i9.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i2.TranslatePipe } });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListFieldComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'nc-file-list-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"dataFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #dataFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <div>\n <mat-label *ngIf=\"!showLargeLayout.value\">\n {{dataField.title}}\n <nc-required-label *ngIf=\"dataField.behavior.required\" [isIn]=\"!dataField.disabled\"></nc-required-label>\n <br>\n </mat-label>\n <div class=\"form-input button-icon-input full-width input-margin\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button mat-icon-button color=\"accent\" (click)=\"chooseFile()\"\n [matTooltip]=\"'dataField.file.clickToUpload' | translate\" *ngIf=\"!formControl.disabled\"\n [class.do-not-click]=\"state.uploading\">\n <mat-icon>file_upload</mat-icon>\n </button>\n <span *ngIf=\"uploadedFiles.length === 0\" (click)=\"chooseFile()\" fxFlex\n [ngClass]=\"{'no-cursor': formControl.disabled}\" class=\"input-placeholder input-name-ellipsis\">{{constructDisplayName()}}</span>\n <div *ngIf=\"uploadedFiles.length !== 0\" class=\"input-name-ellipsis\" fxFlex>\n <div *ngFor=\"let name of uploadedFiles\" fxLayoutAlign=\"start center\">\n <span (click)=\"download(name)\" fxFlex [matTooltip]=\"'dataField.file.clickToDownload' | translate : {fileName: name}\"\n class=\"input-name-ellipsis file-list-item\">{{name}}</span>\n <button (click)=\"deleteFile(name)\" [matTooltip]=\"'dataField.file.clickToDelete' | translate\" mat-icon-button\n *ngIf=\"!formControl.disabled\">\n <mat-icon color=\"warn\">close</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <mat-progress-bar *ngIf=\"state.uploading || state.downloading\" color=\"primary\" [value]=\"state.progress\"\n [mode]=\"state.uploading ? 'determinate' : 'indeterminate'\"\n class=\"margin-bottom-default\"></mat-progress-bar>\n <input type=\"file\" #fileUploadInput name=\"fileUpload\" [multiple]=\"true\"\n accept=\"{{dataField.allowTypes}}\" class=\"invisible-input\"/>\n <input type=\"text\" [formControl]=\"formControl\" class=\"invisible-input\">\n <mat-hint class=\"file-hint-error\" *ngIf=\"!dataField.isInvalid(formControl)\">{{dataField.description}}</mat-hint>\n <mat-error class=\"file-hint-error\" *ngIf=\"dataField.isInvalid(formControl)\">{{'dataField.validations.required' | translate}}</mat-error>\n </div>\n</ng-template>\n", styles: ["@import\"quill/dist/quill.snow.css\";@import\"quill/dist/quill.bubble.css\";@import\"quill/dist/quill.core.css\";.invisible-input{display:none}.margin-bottom-default{margin-bottom:8px}.progress-bar-size{height:8px}.margin-bottom-half{margin-bottom:4px}.do-not-click:hover{cursor:not-allowed}.file-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input-name-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.input-placeholder{color:#0000006b}.button-icon-input{padding:2px!important}.full-width{width:100%;min-width:100%}.input-margin{margin-top:7px!important}.form-input{background:transparent;color:#333;outline:none;border:1px solid rgba(0,0,0,.12);text-align:left;font-size:14px;line-height:15.75px;border-radius:6px;min-width:5px;padding:10px 15px;box-sizing:border-box;min-height:54.81px}.form-input:hover{border-color:#000}.file-hint-error{padding:0 1em;font-size:75%}.no-cursor{cursor:default!important}\n"] }]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i1.TaskResourceService }, { type: i1.LoggerService }, { type: i1.SnackBarService }, { type: i2.TranslateService }, { type: i1.EventService }, { type: undefined, decorators: [{
|
|
28
|
+
type: Optional
|
|
29
|
+
}, {
|
|
30
|
+
type: Inject,
|
|
31
|
+
args: [NAE_INFORM_ABOUT_INVALID_DATA]
|
|
32
|
+
}] }]; } });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1saXN0LWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2ZpbGUtZmllbGQtbGlzdC9maWxlLWxpc3QtZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsZS1maWVsZC1saXN0L2ZpbGUtbGlzdC1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFMUQsT0FBTyxFQUNILDhCQUE4QixFQUU5Qiw2QkFBNkIsRUFHaEMsTUFBTSwwQkFBMEIsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7O0FBT2xDLE1BQU0sT0FBTyxzQkFBdUIsU0FBUSw4QkFBOEI7SUFFdEUsWUFBWSxtQkFBd0MsRUFDeEMsR0FBa0IsRUFDbEIsUUFBeUIsRUFDekIsU0FBMkIsRUFDM0IsWUFBMEIsRUFDeUIsc0JBQXNDO1FBQ2pHLEtBQUssQ0FBQyxtQkFBbUIsRUFB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==
|
package/esm2020/lib/data-fields/filter-field/filter-field-content/filter-field-content.component.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { AbstractFilterFieldContentComponent, SearchService, AllowedNetsService, AllowedNetsServiceFactory, NAE_FILTER_FIELD, NAE_BASE_FILTER, SimpleFilter, CategoryResolverService, NAE_SEARCH_CATEGORIES, CategoryFactory } from '@netgrif/components-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@netgrif/components-core";
|
|
5
|
+
import * as i2 from "../../../search/advanced-search/advanced-search-component/advanced-search.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
export function filterFieldBaseFilterFactory(filterField) {
|
|
8
|
+
return {
|
|
9
|
+
filter: SimpleFilter.empty(filterField.filterMetadata.filterType)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function filterFieldAllowedNetsFactory(factory, filterField) {
|
|
13
|
+
return factory.createFromArray(filterField.allowedNets);
|
|
14
|
+
}
|
|
15
|
+
export function filterFieldCategoriesFactory(factory, filterField) {
|
|
16
|
+
const result = filterField.filterMetadata.searchCategories.map(c => factory.toClass(c));
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
export class FilterFieldContentComponent extends AbstractFilterFieldContentComponent {
|
|
20
|
+
constructor(filterField, fieldSearchService) {
|
|
21
|
+
super(filterField, fieldSearchService);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
FilterFieldContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldContentComponent, deps: [{ token: NAE_FILTER_FIELD }, { token: i1.SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
FilterFieldContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterFieldContentComponent, selector: "nc-filter-field-content", providers: [
|
|
26
|
+
{ provide: NAE_BASE_FILTER, useFactory: filterFieldBaseFilterFactory, deps: [NAE_FILTER_FIELD] },
|
|
27
|
+
{ provide: AllowedNetsService, useFactory: filterFieldAllowedNetsFactory, deps: [AllowedNetsServiceFactory, NAE_FILTER_FIELD] },
|
|
28
|
+
CategoryFactory,
|
|
29
|
+
{ provide: NAE_SEARCH_CATEGORIES, useFactory: filterFieldCategoriesFactory, deps: [CategoryResolverService, NAE_FILTER_FIELD] },
|
|
30
|
+
SearchService
|
|
31
|
+
], usesInheritance: true, ngImport: i0, template: "<nc-advanced-search *ngIf=\"filterLoaded\" [editable]=\"editable\"></nc-advanced-search>\n", styles: [""], components: [{ type: i2.AdvancedSearchComponent, selector: "nc-advanced-search" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldContentComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ selector: 'nc-filter-field-content', providers: [
|
|
35
|
+
{ provide: NAE_BASE_FILTER, useFactory: filterFieldBaseFilterFactory, deps: [NAE_FILTER_FIELD] },
|
|
36
|
+
{ provide: AllowedNetsService, useFactory: filterFieldAllowedNetsFactory, deps: [AllowedNetsServiceFactory, NAE_FILTER_FIELD] },
|
|
37
|
+
CategoryFactory,
|
|
38
|
+
{ provide: NAE_SEARCH_CATEGORIES, useFactory: filterFieldCategoriesFactory, deps: [CategoryResolverService, NAE_FILTER_FIELD] },
|
|
39
|
+
SearchService
|
|
40
|
+
], template: "<nc-advanced-search *ngIf=\"filterLoaded\" [editable]=\"editable\"></nc-advanced-search>\n", styles: [""] }]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.FilterField, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [NAE_FILTER_FIELD]
|
|
44
|
+
}] }, { type: i1.SearchService }]; }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
import { Component, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { AbstractFilterFieldComponent, NAE_INFORM_ABOUT_INVALID_DATA } from '@netgrif/components-core';
|
|
3
|
+
import { FilterFieldContentComponent } from './filter-field-content/filter-field-content.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../data-field-template/data-field-template.component";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "@angular/cdk/portal";
|
|
8
|
+
export class FilterFieldComponent extends AbstractFilterFieldComponent {
|
|
9
|
+
constructor(parentInjector, informAboutInvalidData) {
|
|
10
|
+
super(parentInjector, informAboutInvalidData);
|
|
11
|
+
}
|
|
12
|
+
getFilterContentComponent() {
|
|
13
|
+
return FilterFieldContentComponent;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
FilterFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldComponent, deps: [{ token: i0.Injector }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
FilterFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterFieldComponent, selector: "nc-filter-field", usesInheritance: true, ngImport: i0, template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"filterFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #filterFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <!-- TODO: title based on large layout -->\n <ng-template [ngIf]=\"initialized\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-template>\n <!-- TODO: description? -->\n</ng-template>\n", styles: [""], components: [{ type: i1.DataFieldTemplateComponent, selector: "nc-data-field-template" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterFieldComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'nc-filter-field', template: "<nc-data-field-template *ngIf=\"!dataField.behavior.hidden\"\n [dataField]=\"dataField\"\n [dataFieldTemplate]=\"filterFieldTemplate\"\n [offset]=\"taskOffset\">\n</nc-data-field-template>\n\n<ng-template #filterFieldTemplate let-showLargeLayout=\"showLargeLayout\">\n <!-- TODO: title based on large layout -->\n <ng-template [ngIf]=\"initialized\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-template>\n <!-- TODO: description? -->\n</ng-template>\n", styles: [""] }]
|
|
21
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
22
|
+
type: Optional
|
|
23
|
+
}, {
|
|
24
|
+
type: Inject,
|
|
25
|
+
args: [NAE_INFORM_ABOUT_INVALID_DATA]
|
|
26
|
+
}] }]; } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25ldGdyaWYtY29tcG9uZW50cy9zcmMvbGliL2RhdGEtZmllbGRzL2ZpbHRlci1maWVsZC9maWx0ZXItZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmV0Z3JpZi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1maWVsZHMvZmlsdGVyLWZpZWxkL2ZpbHRlci1maWVsZC5jb21wb25lbnQuaHR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