@colijnit/sharedcomponents 1.0.55 → 1.0.56
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/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/Sharedcomponents.iml +11 -0
- package/angular.json +177 -0
- package/custom-login-bundle.webpack.config.js +3 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +68 -31
- package/projects/sharedcomponents/.browserslistrc +16 -0
- package/projects/sharedcomponents/README.md +24 -0
- package/projects/sharedcomponents/karma.conf.js +44 -0
- package/projects/sharedcomponents/ng-package.json +17 -0
- package/projects/sharedcomponents/package.json +23 -0
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/account.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +4 -0
- package/projects/sharedcomponents/src/lib/assets/icons/at_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_duotone.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/cross_skinny.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +12 -0
- package/projects/sharedcomponents/src/lib/assets/icons/email.svg +5 -0
- package/projects/sharedcomponents/src/lib/assets/icons/envelope_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/eye_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_signature_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/house_blank_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/lock.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +15 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +10 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +9 -0
- package/projects/sharedcomponents/src/lib/assets/icons/tag_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/x_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +1 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +68 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +73 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +53 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +81 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +275 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +46 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +65 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-select-event.component.ts +39 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +41 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +50 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_layout.scss +12 -12
- package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_material-definition.scss +2 -1
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/view-select.component.ts +43 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +37 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +52 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +123 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +200 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +141 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +61 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/material.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +270 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +216 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +20 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +98 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +57 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-base.component.ts +98 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-change-password.component.ts +194 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-entry.component.ts +41 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-setup.component.ts +44 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-username-password.component.ts +167 -0
- package/projects/sharedcomponents/src/lib/components/login/localization/login-translation.ts +15 -0
- package/projects/sharedcomponents/src/lib/components/login/login.component.ts +137 -0
- package/projects/sharedcomponents/src/lib/components/login/login.module.ts +53 -0
- package/projects/sharedcomponents/src/lib/components/login/service/login-adapter.service.ts +58 -0
- package/projects/sharedcomponents/src/lib/components/login/service/login.service.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/enums/field-type.enum.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Config.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Field.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Header.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Module.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Rubric.ts +10 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/ScreenConfig.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubCat.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubRubric.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.component.ts +539 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.ts +91 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.ts +84 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.ts +24 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.ts +60 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.ts +26 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.component.ts +42 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/model/email-address-viewmodel.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +325 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +32 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-params.interface.ts +13 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/service/send-method.service.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.component.ts +243 -0
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.module.ts +24 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar-popup.component.ts +100 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +107 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +25 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-history/order-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-tab/order-stock-tab.component.ts +43 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-tab/order-tab.component.ts +71 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-history/stock-history.component.ts +52 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-location/stock-location.component.ts +276 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-prognose/stock-prognose.component.ts +49 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-tab/stock-tab.component.ts +40 -0
- package/projects/sharedcomponents/src/lib/components/stock/localization/translation.ts +60 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-history-tabs/stock-history-tabs.component.ts +32 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +500 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-tabs/stock-tabs.component.ts +276 -0
- package/{lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts → projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts} +2 -2
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +77 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +178 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +228 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +97 -0
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.component.ts +23 -0
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.component.ts +106 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.module.ts +20 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab.interface.ts +5 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-join-label/tag-join-label.component.ts +61 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-label/tag-label.component.ts +47 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/model/tree-view-node-item.ts +132 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/treeview.component.ts +258 -0
- package/projects/sharedcomponents/src/lib/components/tags/tags.component.ts +192 -0
- package/projects/sharedcomponents/src/lib/components/tags/tags.module.ts +27 -0
- package/projects/sharedcomponents/src/lib/directives/click-outside.directive.ts +25 -0
- package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +8 -0
- package/projects/sharedcomponents/src/lib/enum/gauge-color.enum.ts +8 -0
- package/{lib/enum/icon.enum.d.ts → projects/sharedcomponents/src/lib/enum/icon.enum.ts} +3 -2
- package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +30 -0
- package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +6 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-extra-action-type.enum.ts +4 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-page.type.enum.ts +6 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-query-variables-name.enum.ts +5 -0
- package/{lib/enum/month.enum.d.ts → projects/sharedcomponents/src/lib/enum/month.enum.ts} +2 -1
- package/projects/sharedcomponents/src/lib/enum/tag-category.enum.ts +20 -0
- package/projects/sharedcomponents/src/lib/enum/thumb-three-way-state.ts +18 -0
- package/{lib/enum/time-period.enum.d.ts → projects/sharedcomponents/src/lib/enum/time-period.enum.ts} +2 -1
- package/projects/sharedcomponents/src/lib/localization/localization.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/localization/localize.pipe.ts +21 -0
- package/projects/sharedcomponents/src/lib/localization/localize.service.ts +28 -0
- package/projects/sharedcomponents/src/lib/localization/translation.ts +2 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +6 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +19 -0
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +17 -0
- package/projects/sharedcomponents/src/lib/model/date-range.ts +10 -0
- package/projects/sharedcomponents/src/lib/model/day.model.ts +9 -0
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +37 -0
- package/projects/sharedcomponents/src/lib/model/month.model.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/send-method.ts +13 -0
- package/projects/sharedcomponents/src/lib/model/settings.ts +5 -0
- package/projects/sharedcomponents/src/lib/model/tag-tree-item.bo.ts +28 -0
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +21 -0
- package/projects/sharedcomponents/src/lib/model/tree-object.ts +13 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-default.model.ts +107 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node-default.model.ts +196 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node-item-options.model.ts +12 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node.model.ts +150 -0
- package/projects/sharedcomponents/src/lib/model/tree-view.model.ts +57 -0
- package/projects/sharedcomponents/src/lib/model/week.model.ts +5 -0
- package/projects/sharedcomponents/src/lib/model/weekday.model.ts +17 -0
- package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +7 -0
- package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +86 -0
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
- package/projects/sharedcomponents/src/lib/service/options.service.ts +43 -0
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +401 -0
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +29 -0
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +49 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +124 -0
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +225 -0
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +75 -0
- package/projects/sharedcomponents/src/lib/utils/check-precision-and-scale-result.ts +5 -0
- package/projects/sharedcomponents/src/lib/utils/check-within-stepped-bounds-result.ts +8 -0
- package/projects/sharedcomponents/src/lib/utils/css-utils.ts +275 -0
- package/projects/sharedcomponents/src/lib/utils/date-utils.ts +302 -0
- package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/map-utils.ts +44 -0
- package/projects/sharedcomponents/src/lib/utils/number-utils.ts +439 -0
- package/projects/sharedcomponents/src/lib/utils/object-utils.ts +310 -0
- package/projects/sharedcomponents/src/lib/utils/string-utils.ts +67 -0
- package/projects/sharedcomponents/src/lib/utils/tree-utils.ts +63 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +7 -0
- package/projects/sharedcomponents/src/test.ts +27 -0
- package/projects/sharedcomponents/tsconfig.lib.json +18 -0
- package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
- package/projects/sharedcomponents/tsconfig.spec.json +17 -0
- package/script/create-bundle-version.js +19 -0
- package/script/merge-icons.js +39 -0
- package/src/app/app.component.scss +31 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +454 -0
- package/src/app/app.module.ts +69 -0
- package/src/app/bundle/index.html +14 -0
- package/src/app/bundle/login/login-bundle.component.scss +6 -0
- package/src/app/bundle/login/login-bundle.component.ts +111 -0
- package/src/app/bundle/login/login-bundle.module.ts +30 -0
- package/src/app/bundle/main-login-bundle.ts +11 -0
- package/src/app/bundle/polyfills.ts +63 -0
- package/src/app/test-data.service.ts +60 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.bundle.prod.ts +3 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +13 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +54 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.bundle.json +38 -0
- package/tsconfig.json +64 -0
- package/tsconfig.spec.json +18 -0
- package/webpack.login.bundle.config.js +32 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -6733
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -74
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -75
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +0 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +0 -32
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +0 -54
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +0 -43
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +0 -68
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +0 -232
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +0 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +0 -50
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +0 -46
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +0 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +0 -39
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +0 -35
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +0 -64
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +0 -48
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +0 -42
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +0 -34
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +0 -48
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +0 -107
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +0 -178
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +0 -34
- package/esm2015/lib/components/date-planning/date-planning.component.js +0 -108
- package/esm2015/lib/components/date-planning/date-planning.module.js +0 -63
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
- package/esm2015/lib/components/docsign/docsign.component.js +0 -242
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +0 -200
- package/esm2015/lib/components/key-pad/key-pad.module.js +0 -22
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +0 -74
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +0 -21
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +0 -59
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +0 -19
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +0 -79
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +0 -85
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +0 -64
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +0 -26
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +0 -40
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +0 -23
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +0 -59
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +0 -28
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +0 -38
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +0 -7
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +0 -255
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -35
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +0 -2
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +0 -59
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +0 -229
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +0 -26
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +0 -97
- package/esm2015/lib/components/statusbar/statusbar.component.js +0 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +0 -27
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +0 -67
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +0 -53
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +0 -240
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +0 -52
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +0 -41
- package/esm2015/lib/components/stock/localization/translation.js +0 -63
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +0 -33
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -48
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -457
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +0 -241
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +0 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +0 -72
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -149
- package/esm2015/lib/components/stock/stock.component.js +0 -193
- package/esm2015/lib/components/stock/stock.module.js +0 -80
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +0 -23
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +0 -19
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +0 -88
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +0 -21
- package/esm2015/lib/components/tab-bar/tab.interface.js +0 -2
- package/esm2015/lib/enum/calendar-view.enum.js +0 -8
- package/esm2015/lib/enum/gauge-color.enum.js +0 -10
- package/esm2015/lib/enum/icon.enum.js +0 -38
- package/esm2015/lib/enum/keyboard-code.enum.js +0 -32
- package/esm2015/lib/enum/language-code.enum.js +0 -8
- package/esm2015/lib/enum/month.enum.js +0 -17
- package/esm2015/lib/enum/thumb-three-way-state.js +0 -19
- package/esm2015/lib/enum/time-period.enum.js +0 -11
- package/esm2015/lib/localization/localization.module.js +0 -19
- package/esm2015/lib/localization/localize.pipe.js +0 -26
- package/esm2015/lib/localization/localize.service.js +0 -30
- package/esm2015/lib/localization/translation.js +0 -3
- package/esm2015/lib/model/agenda-event-per-day.model.js +0 -6
- package/esm2015/lib/model/agenda-event.model.js +0 -8
- package/esm2015/lib/model/agenda-null-objects.js +0 -11
- package/esm2015/lib/model/constant/all-months.js +0 -17
- package/esm2015/lib/model/date-range.js +0 -5
- package/esm2015/lib/model/day.model.js +0 -7
- package/esm2015/lib/model/icon-svg.js +0 -37
- package/esm2015/lib/model/month.model.js +0 -11
- package/esm2015/lib/model/send-method.js +0 -8
- package/esm2015/lib/model/settings.js +0 -4
- package/esm2015/lib/model/time-window.bo.js +0 -26
- package/esm2015/lib/model/week.model.js +0 -6
- package/esm2015/lib/model/weekday.model.js +0 -10
- package/esm2015/lib/pipe/array-number.pipe.js +0 -15
- package/esm2015/lib/pipe/master-pipes.js +0 -7
- package/esm2015/lib/pipe/ucfirst.pipe.js +0 -16
- package/esm2015/lib/service/dictionary.service.js +0 -76
- package/esm2015/lib/service/icon-cache.service.js +0 -51
- package/esm2015/lib/service/options.service.js +0 -48
- package/esm2015/lib/service/shared-connector.service.js +0 -424
- package/esm2015/lib/service/shared.service.js +0 -60
- package/esm2015/lib/service/stock.service.js +0 -110
- package/esm2015/lib/utils/calendar.utils.js +0 -69
- package/esm2015/lib/utils/date-utils.js +0 -264
- package/esm2015/lib/utils/function/not-nill.function.js +0 -5
- package/esm2015/lib/utils/map-utils.js +0 -41
- package/esm2015/lib/utils/string-utils.js +0 -64
- package/esm2015/public-api.js +0 -24
- package/fesm2015/colijnit-sharedcomponents.js +0 -7001
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +0 -21
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +0 -6
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +0 -17
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +0 -12
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +0 -18
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +0 -47
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +0 -9
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +0 -8
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +0 -7
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +0 -10
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +0 -12
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +0 -11
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +0 -10
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +0 -8
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +0 -11
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +0 -9
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +0 -9
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +0 -23
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +0 -31
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +0 -10
- package/lib/components/date-planning/date-planning.component.d.ts +0 -26
- package/lib/components/date-planning/date-planning.module.d.ts +0 -2
- package/lib/components/date-planning/style/material.scss +0 -5
- package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
- package/lib/components/docsign/docsign.component.d.ts +0 -94
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/key-pad/key-pad.component.d.ts +0 -38
- package/lib/components/key-pad/key-pad.module.d.ts +0 -2
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +0 -16
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +0 -2
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +0 -11
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +0 -19
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +0 -19
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +0 -14
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +0 -8
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +0 -12
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +0 -12
- package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +0 -2
- package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +0 -5
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -70
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +0 -2
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +0 -13
- package/lib/components/send-method-dialog/service/send-method.service.d.ts +0 -23
- package/lib/components/simple-tags/simple-tags.component.d.ts +0 -31
- package/lib/components/simple-tags/simple-tags.module.d.ts +0 -2
- package/lib/components/statusbar/statusbar-popup.component.d.ts +0 -21
- package/lib/components/statusbar/statusbar.component.d.ts +0 -26
- package/lib/components/statusbar/statusbar.module.d.ts +0 -2
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +0 -11
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +0 -20
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +0 -13
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +0 -50
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +0 -11
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +0 -9
- package/lib/components/stock/localization/translation.d.ts +0 -60
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +0 -7
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -8
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -75
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +0 -56
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +0 -18
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -42
- package/lib/components/stock/stock.component.d.ts +0 -57
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +0 -4
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +0 -2
- package/lib/components/tab-bar/tab-bar.component.d.ts +0 -21
- package/lib/components/tab-bar/tab-bar.module.d.ts +0 -2
- package/lib/components/tab-bar/tab.interface.d.ts +0 -5
- package/lib/enum/calendar-view.enum.d.ts +0 -6
- package/lib/enum/gauge-color.enum.d.ts +0 -8
- package/lib/enum/keyboard-code.enum.d.ts +0 -30
- package/lib/enum/language-code.enum.d.ts +0 -6
- package/lib/enum/thumb-three-way-state.d.ts +0 -6
- package/lib/localization/localization.module.d.ts +0 -2
- package/lib/localization/localize.pipe.d.ts +0 -7
- package/lib/localization/localize.service.d.ts +0 -7
- package/lib/localization/translation.d.ts +0 -2
- package/lib/model/agenda-event-per-day.model.d.ts +0 -5
- package/lib/model/agenda-event.model.d.ts +0 -16
- package/lib/model/agenda-null-objects.d.ts +0 -10
- package/lib/model/constant/all-months.d.ts +0 -2
- package/lib/model/date-range.d.ts +0 -7
- package/lib/model/day.model.d.ts +0 -8
- package/lib/model/icon-svg.d.ts +0 -4
- package/lib/model/month.model.d.ts +0 -5
- package/lib/model/send-method.d.ts +0 -7
- package/lib/model/settings.d.ts +0 -3
- package/lib/model/time-window.bo.d.ts +0 -13
- package/lib/model/week.model.d.ts +0 -4
- package/lib/model/weekday.model.d.ts +0 -16
- package/lib/pipe/array-number.pipe.d.ts +0 -4
- package/lib/pipe/master-pipes.d.ts +0 -1
- package/lib/pipe/ucfirst.pipe.d.ts +0 -4
- package/lib/service/dictionary.service.d.ts +0 -21
- package/lib/service/icon-cache.service.d.ts +0 -18
- package/lib/service/options.service.d.ts +0 -13
- package/lib/service/shared-connector.service.d.ts +0 -53
- package/lib/service/shared.service.d.ts +0 -18
- package/lib/service/stock.service.d.ts +0 -41
- package/lib/utils/calendar.utils.d.ts +0 -10
- package/lib/utils/date-utils.d.ts +0 -44
- package/lib/utils/function/not-nill.function.d.ts +0 -1
- package/lib/utils/map-utils.d.ts +0 -16
- package/lib/utils/string-utils.d.ts +0 -22
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/sharedcomponents-globals.scss +0 -0
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import {Component, HostBinding, OnInit, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {Rubric} from "./models/Rubric";
|
|
3
|
+
import {SubCat} from "./models/SubCat";
|
|
4
|
+
import {Header} from "./models/Header";
|
|
5
|
+
import {Field} from "./models/Field";
|
|
6
|
+
import {FieldType} from "./enums/field-type.enum";
|
|
7
|
+
import {SharedService} from "../../service/shared.service";
|
|
8
|
+
import {Module} from "./models/Module";
|
|
9
|
+
import {Config} from "./models/Config";
|
|
10
|
+
import {SubRubric} from "./models/SubRubric";
|
|
11
|
+
import {ConfigObject} from "@colijnit/sharedapi/build/model/config-object";
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: "co-screen-config-generator",
|
|
15
|
+
template: `
|
|
16
|
+
<div class="tree-wrapper">
|
|
17
|
+
<h4 [textContent]="'Modules'"></h4>
|
|
18
|
+
<div class="tree-entry" *ngFor="let module of configData">
|
|
19
|
+
<span [textContent]="module.title" (click)="module.visible = module.visible === 'T' ? 'F' : 'T'"></span>
|
|
20
|
+
<div class="tree-entry level2" *ngFor="let config of module.configs">
|
|
21
|
+
<span [textContent]="config.title" *ngIf="module.visible === 'T'"
|
|
22
|
+
(click)="config.visible = config.visible === 'T' ? 'F' : 'T'"></span>
|
|
23
|
+
<div class="tree-entry level3" *ngFor="let rubric of config.rubrics">
|
|
24
|
+
<span [textContent]="rubric.title" *ngIf="config.visible === 'T'"
|
|
25
|
+
(click)="rubric.visible = rubric.visible === 'T' ? 'F' : 'T'"></span>
|
|
26
|
+
<div class="tree-entry level4" *ngFor="let subTab of rubric.subCats">
|
|
27
|
+
<span [textContent]="subTab.title" *ngIf="rubric.visible === 'T'"
|
|
28
|
+
(click)="subTab.visible = subTab.visible === 'T' ? 'F' : 'T'"></span>
|
|
29
|
+
<div class="tree-entry level5" *ngFor="let header of subTab.headers">
|
|
30
|
+
<span [textContent]="header.title" *ngIf="subTab.visible === 'T'"
|
|
31
|
+
(click)="handleRubricClicked(rubric, config, module)"></span>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="tree-entry level5" *ngFor="let header of rubric.headers">
|
|
35
|
+
<span [textContent]="header.title" *ngIf="rubric.visible === 'T'"
|
|
36
|
+
(click)="handleRubricClicked(rubric, config, module)"></span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="category-wrapper">
|
|
43
|
+
<div class="header-wrapper">
|
|
44
|
+
<co-input-text [placeholder]="'Module name'" [(model)]="currentModule.title"></co-input-text>
|
|
45
|
+
<co-input-text [placeholder]="'Config name'" [(model)]="currentConfig.title"></co-input-text>
|
|
46
|
+
<co-input-text [placeholder]="'Module ID'" [(model)]="currentModule.moduleId"></co-input-text>
|
|
47
|
+
<co-input-text [placeholder]="'Config ID'" [(model)]="currentConfig.configId"></co-input-text>
|
|
48
|
+
<co-button label="SQL" (click)="copySQLProcedure()"></co-button>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="header-wrapper">
|
|
52
|
+
<h3 [textContent]="'Screen configuration rubrics'"></h3>
|
|
53
|
+
<co-button label="ADD" (click)="addRubric()"></co-button>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="rubrics-wrapper">
|
|
56
|
+
<div class="header-container" *ngFor="let rubric of currentConfig.rubrics; let rubricIndex = index">
|
|
57
|
+
<div class="rubric-wrapper">
|
|
58
|
+
<div class="inputs-wrapper">
|
|
59
|
+
<co-button label="DELETE" (click)="removeRubric(rubricIndex)"></co-button>
|
|
60
|
+
<br>
|
|
61
|
+
<co-input-text [placeholder]="'Rubric name'" [(model)]="rubric.title" [maxLength]="28"></co-input-text>
|
|
62
|
+
<co-input-text [placeholder]="'Unique ID'" [type]="'number'" [(model)]="rubric.categoryId"></co-input-text>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="header-wrapper">
|
|
65
|
+
<h3 [textContent]="'Rubric sub tabs'"></h3>
|
|
66
|
+
<co-button label="ADD" (click)="addSubTab(rubricIndex)"></co-button>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div class="header-container" *ngFor="let header of rubric.headers; let headerIndex = index">
|
|
70
|
+
<co-button label="DELETE" (click)="removeSubTab(rubricIndex, headerIndex)"></co-button>
|
|
71
|
+
<br>
|
|
72
|
+
|
|
73
|
+
<co-input-text [placeholder]="'Sub tab description'" [(model)]="header.title"
|
|
74
|
+
[maxLength]="28"></co-input-text>
|
|
75
|
+
<div class="header-wrapper">
|
|
76
|
+
<h4 [textContent]="'Sub tab headers'"></h4>
|
|
77
|
+
<co-button label="ADD" (click)="addHeader(rubricIndex, headerIndex)"></co-button>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div class="header-container" *ngFor="let subRubric of header.subRubrics; let subRubricIndex = index">
|
|
81
|
+
<co-button label="DELETE" (click)="removeHeader(rubricIndex, headerIndex, subRubricIndex)"></co-button>
|
|
82
|
+
<br>
|
|
83
|
+
|
|
84
|
+
<co-input-text [placeholder]="'Header description'" [(model)]="subRubric.description"
|
|
85
|
+
[maxLength]="28"></co-input-text>
|
|
86
|
+
<div class="header-wrapper">
|
|
87
|
+
<h5 [textContent]="'Header fields'"></h5>
|
|
88
|
+
<co-button label="ADD" (click)="addField(rubricIndex, headerIndex, subRubricIndex)"></co-button>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div class="fields-wrapper" *ngFor="let field of subRubric.fields; let fieldIndex = index">
|
|
92
|
+
<co-input-text [placeholder]="'Field name'" [(model)]="field.name" [maxLength]="28"></co-input-text>
|
|
93
|
+
<co-list-of-values [collection]="multiSelectValues" [(model)]="field.fieldType"
|
|
94
|
+
[displayField]="'name'" [label]="'Field type'"></co-list-of-values>
|
|
95
|
+
<co-button label="DELETE"
|
|
96
|
+
(click)="removeField(rubricIndex, headerIndex, subRubricIndex, fieldIndex)"></co-button>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
`,
|
|
105
|
+
encapsulation: ViewEncapsulation.None
|
|
106
|
+
})
|
|
107
|
+
export class ScreenConfigGeneratorComponent implements OnInit {
|
|
108
|
+
public currentModule: Module = new Module();
|
|
109
|
+
public currentConfig: Config = new Config();
|
|
110
|
+
public configData: Module[] = [];
|
|
111
|
+
public idList: number[] = [];
|
|
112
|
+
|
|
113
|
+
public multiSelectValues: any[] = [
|
|
114
|
+
{name: 'Button', value: FieldType.K},
|
|
115
|
+
{name: 'LOV', value: FieldType.L},
|
|
116
|
+
{name: 'Date', value: FieldType.Date},
|
|
117
|
+
{name: 'Numeric', value: FieldType.N},
|
|
118
|
+
{name: 'Alphanumeric', value: FieldType.Alphanumeric},
|
|
119
|
+
{name: 'Yes/No', value: FieldType.J},
|
|
120
|
+
{name: 'Multi select', value: FieldType.MultiSelect}
|
|
121
|
+
];
|
|
122
|
+
|
|
123
|
+
private _sqlProcedure: string = ``;
|
|
124
|
+
|
|
125
|
+
@HostBinding("class.co-screen-config-generator")
|
|
126
|
+
public showClass() {
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(
|
|
131
|
+
private _sharedService: SharedService
|
|
132
|
+
) {
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public ngOnInit() {
|
|
136
|
+
this._getScreenConfigData();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
public addRubric(): void {
|
|
140
|
+
this.currentConfig.rubrics.push(new Rubric());
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
public removeRubric(rubricIndex: number): void {
|
|
144
|
+
this.currentConfig.rubrics.splice(rubricIndex, 1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public addSubTab(index: number): void {
|
|
148
|
+
this.currentConfig.rubrics[index].headers.unshift(new Header());
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
public removeSubTab(rubricIndex: number, subTabIndex: number): void {
|
|
152
|
+
this.currentConfig.rubrics[rubricIndex].headers.splice(subTabIndex, 1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
public addHeader(rubricIndex: number, subTabIndex: number): void {
|
|
156
|
+
this.currentConfig.rubrics[rubricIndex].headers[subTabIndex].subRubrics.unshift(new SubRubric());
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
public removeHeader(rubricIndex: number, subTabIndex: number, headerIndex: number): void {
|
|
160
|
+
this.currentConfig.rubrics[rubricIndex].headers[subTabIndex].subRubrics.splice(headerIndex, 1);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
public addField(rubricIndex: number, subTabIndex: number, headerIndex: number): void {
|
|
164
|
+
this.currentConfig.rubrics[rubricIndex].headers[subTabIndex].subRubrics[headerIndex].fields.unshift(new Field());
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
public removeField(rubricIndex: number, subTabIndex: number, headerIndex: number, fieldIndex: number): void {
|
|
168
|
+
this.currentConfig.rubrics[rubricIndex].headers[subTabIndex].subRubrics[headerIndex].fields.splice(fieldIndex, 1);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
public copySQLProcedure(): void {
|
|
172
|
+
this._sqlProcedure = ``;
|
|
173
|
+
this._defineObjectNames();
|
|
174
|
+
this._createProcedurePrefix();
|
|
175
|
+
this._createIdSymbols();
|
|
176
|
+
this._createIdSymbols(false);
|
|
177
|
+
this._createScreenConfigRubrics();
|
|
178
|
+
this._createObjects();
|
|
179
|
+
this._createScreenConfigObjects();
|
|
180
|
+
this._createProcedureSuffix();
|
|
181
|
+
this._copyToClipboard(this._sqlProcedure);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
private _createProcedurePrefix(): void {
|
|
185
|
+
this._sqlProcedure +=
|
|
186
|
+
`/**
|
|
187
|
+
* ${this.currentModule.title} module screen config.
|
|
188
|
+
* rubric start id: ${this.currentConfig.rubrics[0].categoryId}
|
|
189
|
+
* object start id: ${+this.currentConfig.rubrics[0].categoryId + 1000}
|
|
190
|
+
*/
|
|
191
|
+
PROCEDURE VUL_${this.currentModule.title.toUpperCase()}_JS IS
|
|
192
|
+
module scr_modules.module_id%type := ${this.currentModule.moduleId};
|
|
193
|
+
defaultConfig scr_config.config_id%type := ${this.currentConfig.configId}; \n
|
|
194
|
+
`;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
private _createIdSymbols(rubricIDs: boolean = true): void {
|
|
198
|
+
this.currentConfig.rubrics.forEach((rubric: Rubric) => {
|
|
199
|
+
|
|
200
|
+
if (rubric.subCats.length > 0) {
|
|
201
|
+
rubric.subCats.forEach((subCat: SubCat) => {
|
|
202
|
+
this._sqlProcedure += `${subCat.name + (rubricIDs ? 'RubId' : '')} constant integer := ${this._getNextAvailableID(+rubric.categoryId)}; \n`;
|
|
203
|
+
|
|
204
|
+
subCat.headers.forEach((header: Header) => {
|
|
205
|
+
this._sqlProcedure += `${header.name + (rubricIDs ? 'RubId' : '')} constant integer := ${this._getNextAvailableID(+rubric.categoryId)}; \n`;
|
|
206
|
+
|
|
207
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
208
|
+
this._sqlProcedure += `${subRubric.name + (rubricIDs ? 'RubId' : '')} constant integer := ${this._getNextAvailableID(+rubric.categoryId)}; \n`;
|
|
209
|
+
|
|
210
|
+
if (!rubricIDs) {
|
|
211
|
+
subRubric.fields.forEach((field: Field) => {
|
|
212
|
+
this._sqlProcedure += `${field.name} constant integer := ${this._getNextAvailableID(+rubric.categoryId)}; \n`;
|
|
213
|
+
})
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
})
|
|
217
|
+
});
|
|
218
|
+
} else {
|
|
219
|
+
rubric.headers.forEach((header: Header) => {
|
|
220
|
+
this._sqlProcedure += `${header.name + (rubricIDs ? 'RubId' : '')} constant integer := ${rubricIDs ? header.rubricId ? header.rubricId : this._getNextAvailableID(+rubric.categoryId) : header.cfgObjId ? header.cfgObjId : this._getNextAvailableID(+rubric.categoryId + 1000)}; \n`;
|
|
221
|
+
|
|
222
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
223
|
+
this._sqlProcedure += `${subRubric.name + (rubricIDs ? 'RubId' : '')} constant integer := ${rubricIDs ? subRubric.rubricId ? subRubric.rubricId : this._getNextAvailableID(+rubric.categoryId) : subRubric.cfgObjId ? subRubric.cfgObjId : this._getNextAvailableID(+rubric.categoryId + 1000)}; \n`;
|
|
224
|
+
|
|
225
|
+
if (!rubricIDs) {
|
|
226
|
+
subRubric.fields.forEach((field: Field) => {
|
|
227
|
+
this._sqlProcedure += `${field.name} constant integer := ${field.id ? field.id : this._getNextAvailableID(+rubric.categoryId + 1000)}; \n`;
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
private _createScreenConfigRubrics(): void {
|
|
237
|
+
this._sqlProcedure += `
|
|
238
|
+
BEGIN
|
|
239
|
+
P_VUL_SCHERM_CONFIG.UPSERT_SCR_MODULE(module, '${this.currentModule.title.toUpperCase()}', '${this.currentModule.title}', 'F', 'JS');
|
|
240
|
+
P_VUL_SCHERM_CONFIG.UPSERT_SCR_CONFIG(defaultConfig, '${this.currentConfig.title}', module); \n
|
|
241
|
+
`
|
|
242
|
+
|
|
243
|
+
this.currentConfig.rubrics.forEach((rubric: Rubric, index: number) => {
|
|
244
|
+
this._sqlProcedure += `P_VUL_SCHERM_CONFIG.UPSERT_SCR_SUB_CATEGORIEEN(${rubric.categoryId}, '${rubric.title}', null, module, ${index + 1}, '${rubric.title.toUpperCase()}'); \n\n`;
|
|
245
|
+
|
|
246
|
+
if (rubric.subCats.length > 0) {
|
|
247
|
+
rubric.subCats.forEach((subCat: SubCat) => {
|
|
248
|
+
this._sqlProcedure += `P_VUL_SCHERM_CONFIG.UPSERT_SCR_SUB_CATEGORIEEN(${subCat.id}, '${subCat.name}', ${rubric.categoryId}, module, ${index + 2}, '${rubric.title.toUpperCase()}'); \n\n`;
|
|
249
|
+
|
|
250
|
+
subCat.headers.forEach((header: Header) => {
|
|
251
|
+
this._sqlProcedure += `ADD_RUBRIEK_TAB(module, ${header.name}RubId, '${header.title}', ${header.name}); \n`;
|
|
252
|
+
|
|
253
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
254
|
+
this._sqlProcedure += `ADD_RUBRIEK_HEADER(module, ${subRubric.name}RubId, ${subRubric.name}RubId, '${subRubric.description}', ${subRubric.name}); \n`;
|
|
255
|
+
})
|
|
256
|
+
})
|
|
257
|
+
});
|
|
258
|
+
} else {
|
|
259
|
+
rubric.headers.forEach((header: Header) => {
|
|
260
|
+
this._sqlProcedure += `ADD_RUBRIEK_TAB(module, ${header.name}RubId, '${header.title}', ${header.name}); \n`;
|
|
261
|
+
|
|
262
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
263
|
+
this._sqlProcedure += `ADD_RUBRIEK_HEADER(module, ${subRubric.name}RubId, ${subRubric.name}RubId, '${subRubric.description}', ${subRubric.name}); \n`;
|
|
264
|
+
})
|
|
265
|
+
})
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
private _createObjects(): void {
|
|
271
|
+
this._sqlProcedure += `\n`;
|
|
272
|
+
|
|
273
|
+
this.currentConfig.rubrics.forEach((rubric: Rubric) => {
|
|
274
|
+
|
|
275
|
+
if (rubric.subCats.length > 0) {
|
|
276
|
+
// rubric.subCats.forEach((subCat: SubCat) => {
|
|
277
|
+
// this._sqlProcedure += `ADD_OBJ_TAB(${subCat.name}RubId, ${subCat.name}, '${subCat.name}', '${subCat.title}'); \n`;
|
|
278
|
+
//
|
|
279
|
+
// subCat.headers.forEach((header: Header) => {
|
|
280
|
+
// this._sqlProcedure += `ADD_OBJ_HEADER(${subCat.name}RubId, ${header.name}, '${header.name}', '${header.description}', I_DATA_NAAM => '${header.description.toLowerCase()}'); \n`;
|
|
281
|
+
//
|
|
282
|
+
// header.subRubrics.forEach((field: Field) => {
|
|
283
|
+
// this._sqlProcedure += this._getFieldTypeSQL(field.fieldType.value, header, field);
|
|
284
|
+
// })
|
|
285
|
+
// })
|
|
286
|
+
// });
|
|
287
|
+
} else {
|
|
288
|
+
rubric.headers.forEach((header: Header) => {
|
|
289
|
+
this._sqlProcedure += `ADD_OBJ_TAB(${header.name}RubId, ${header.name}, '${header.name}', '${header.title}'); \n`;
|
|
290
|
+
|
|
291
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
292
|
+
this._sqlProcedure += `ADD_OBJ_HEADER(${subRubric.name}RubId, ${subRubric.name}, '${subRubric.name}', '${subRubric.description}', I_DATA_NAAM => '${subRubric.description.toLowerCase()}'); \n`;
|
|
293
|
+
|
|
294
|
+
subRubric.fields.forEach((field: Field) => {
|
|
295
|
+
if (field.fieldType) {
|
|
296
|
+
this._sqlProcedure += this._getFieldTypeSQL(field.fieldType.value, subRubric, field);
|
|
297
|
+
}
|
|
298
|
+
})
|
|
299
|
+
})
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
private _createScreenConfigObjects(): void {
|
|
306
|
+
this._sqlProcedure += `\n`;
|
|
307
|
+
|
|
308
|
+
this.currentConfig.rubrics.forEach((rubric: Rubric) => {
|
|
309
|
+
|
|
310
|
+
if (rubric.subCats.length > 0) {
|
|
311
|
+
// rubric.subCats.forEach((subTab: SubCat) => {
|
|
312
|
+
// this._sqlProcedure += `ADD_CFG_OBJ_TAB(${subTab.name}, defaultConfig, '${rubric.name.toUpperCase()}'); \n`;
|
|
313
|
+
//
|
|
314
|
+
// subTab.headers.forEach((header: Header) => {
|
|
315
|
+
// this._sqlProcedure += `ADD_CFG_OBJ_HEADER(${header.name}, defaultConfig, '${rubric.name.toUpperCase()}'); \n`;
|
|
316
|
+
//
|
|
317
|
+
// header.subRubrics.forEach((field: Field) => {
|
|
318
|
+
// this._sqlProcedure += `ADD_CFG_OBJ_FIELD(${field.name}, defaultConfig, '${rubric.name.toUpperCase()}'); \n`;
|
|
319
|
+
// })
|
|
320
|
+
// })
|
|
321
|
+
// });
|
|
322
|
+
} else {
|
|
323
|
+
rubric.headers.forEach((header: Header) => {
|
|
324
|
+
this._sqlProcedure += `ADD_CFG_OBJ_TAB(${header.name}, defaultConfig, '${rubric.title.toUpperCase()}'); \n`;
|
|
325
|
+
|
|
326
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
327
|
+
this._sqlProcedure += `ADD_CFG_OBJ_HEADER(${subRubric.name}, defaultConfig, '${rubric.title.toUpperCase()}'); \n`;
|
|
328
|
+
|
|
329
|
+
subRubric.fields.forEach((field: Field) => {
|
|
330
|
+
this._sqlProcedure += `ADD_CFG_OBJ_FIELD(${field.name}, defaultConfig, '${rubric.title.toUpperCase()}'); \n`;
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
private _createProcedureSuffix(): void {
|
|
339
|
+
this._sqlProcedure += `
|
|
340
|
+
P_VUL_SCHERM_CONFIG_JS.CLEANUP_AFTER_ONE_CONFIG_FILL();
|
|
341
|
+
P_VUL_SCHERM_CONFIG_JS.CLEANUP_AFTER_FULL_MODULE_FILL();
|
|
342
|
+
END;`;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
private _copyToClipboard(value: string): void {
|
|
346
|
+
const tempElement = document.createElement("textarea");
|
|
347
|
+
tempElement.value = value;
|
|
348
|
+
tempElement.setAttribute("readonly", "");
|
|
349
|
+
tempElement.style.position = "absolute";
|
|
350
|
+
tempElement.style.left = "-9999px";
|
|
351
|
+
document.body.appendChild(tempElement);
|
|
352
|
+
tempElement.select();
|
|
353
|
+
document.execCommand("copy");
|
|
354
|
+
document.body.removeChild(tempElement);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
private _getFieldTypeSQL(fieldType: FieldType, subRubric: SubRubric, field: Field): string {
|
|
358
|
+
switch (fieldType) {
|
|
359
|
+
case FieldType.K:
|
|
360
|
+
return `ADD_OBJ_BUTTON_ELEMNT(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}');\n`;
|
|
361
|
+
case FieldType.L:
|
|
362
|
+
return `ADD_OBJ_LISTOFV_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}', null, I_DATA_NAAM => '${field.name}');\n`;
|
|
363
|
+
case FieldType.Date:
|
|
364
|
+
return `ADD_OBJ_DATEINP_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}', '${field.name}');\n`;
|
|
365
|
+
case FieldType.N:
|
|
366
|
+
return `ADD_OBJ_NUMERIC_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}', '${field.name}');\n`;
|
|
367
|
+
case FieldType.Alphanumeric:
|
|
368
|
+
return `ADD_OBJ_ALFANUM_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}');\n`;
|
|
369
|
+
case FieldType.J:
|
|
370
|
+
return `ADD_OBJ_YESORNO_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}', '${field.name}');\n`;
|
|
371
|
+
case FieldType.MultiSelect:
|
|
372
|
+
return `ADD_OBJ_MULTISL_FIELD(${subRubric.name}RubId, ${field.name}, '${field.name}', '${field.description}', null, I_DATA_NAAM => '${field.name}');\n`;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
private _getNextAvailableID(startingFrom: number): number {
|
|
377
|
+
const sortedNumbers: number[] = this.idList.slice().sort((a, b) => a - b);
|
|
378
|
+
let nextLowestValue: number = startingFrom + 1;
|
|
379
|
+
|
|
380
|
+
for (let i = 1; i < sortedNumbers.length; i++) {
|
|
381
|
+
if (sortedNumbers[i] > nextLowestValue) {
|
|
382
|
+
this.idList.push(nextLowestValue);
|
|
383
|
+
return nextLowestValue;
|
|
384
|
+
} else if (sortedNumbers[i] === nextLowestValue) {
|
|
385
|
+
nextLowestValue++;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
this.idList.push(nextLowestValue);
|
|
390
|
+
return nextLowestValue;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
private async _getScreenConfigData(): Promise<void> {
|
|
394
|
+
const data: any = await this._sharedService.getScreenConfigTree();
|
|
395
|
+
if (data) {
|
|
396
|
+
data.forEach((obj) => {
|
|
397
|
+
if (obj.nodeLevel !== 1) {
|
|
398
|
+
obj.visible = 'F';
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
this._parseRawScreenConfigData(data);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
private _parseRawScreenConfigData(data: any): void {
|
|
406
|
+
const modulesMap: Map<number, Module> = new Map();
|
|
407
|
+
const configsMap: Map<number, Config> = new Map();
|
|
408
|
+
let currentRubric: Rubric | null = null;
|
|
409
|
+
|
|
410
|
+
for (const item of data) {
|
|
411
|
+
switch (item.nodeLevel) {
|
|
412
|
+
case 1:
|
|
413
|
+
const module = Object.assign(new Module(), item);
|
|
414
|
+
module.configs = [];
|
|
415
|
+
modulesMap.set(item.moduleId, module);
|
|
416
|
+
break;
|
|
417
|
+
case 2:
|
|
418
|
+
const config = Object.assign(new Config(), item);
|
|
419
|
+
config.rubrics = [];
|
|
420
|
+
configsMap.set(item.configId, config);
|
|
421
|
+
|
|
422
|
+
const moduleParent = modulesMap.get(item.moduleId);
|
|
423
|
+
if (moduleParent) {
|
|
424
|
+
config.moduleName = moduleParent.title;
|
|
425
|
+
moduleParent.configs.push(config);
|
|
426
|
+
}
|
|
427
|
+
break;
|
|
428
|
+
case 3:
|
|
429
|
+
currentRubric = Object.assign(new Rubric(), item);
|
|
430
|
+
currentRubric.name = currentRubric.title.toLowerCase()
|
|
431
|
+
.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
432
|
+
currentRubric.subCats = [];
|
|
433
|
+
currentRubric.headers = [];
|
|
434
|
+
const configParent = configsMap.get(item.configId);
|
|
435
|
+
if (configParent) {
|
|
436
|
+
configParent.rubrics.push(currentRubric);
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case 4:
|
|
440
|
+
const subTab = Object.assign(new SubCat(), item);
|
|
441
|
+
subTab.headers = [];
|
|
442
|
+
currentRubric?.subCats.push(subTab);
|
|
443
|
+
break;
|
|
444
|
+
case 5:
|
|
445
|
+
const header = Object.assign(new Header(), item);
|
|
446
|
+
this.idList.push(header.cfgObjId);
|
|
447
|
+
this.idList.push(header.rubricId);
|
|
448
|
+
header.subRubrics = [];
|
|
449
|
+
header.name = header.title.toLowerCase()
|
|
450
|
+
.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
451
|
+
if (currentRubric) {
|
|
452
|
+
if (currentRubric.subCats.length > 0) {
|
|
453
|
+
currentRubric.subCats[currentRubric.subCats.length - 1]?.headers.push(header);
|
|
454
|
+
} else {
|
|
455
|
+
currentRubric.headers.push(header);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
break;
|
|
459
|
+
default:
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
this.configData = Array.from(modulesMap.values());
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
private async getScreenConfigSubRubric(parentRubricId: number, configId: number, fixedKey: string): Promise<any> {
|
|
468
|
+
return await this._sharedService.getScreenConfigSubRubric(parentRubricId, configId, fixedKey);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
public handleRubricClicked(rubric: Rubric, config: Config, module: Module): void {
|
|
472
|
+
this.currentModule = module;
|
|
473
|
+
this.currentConfig = config;
|
|
474
|
+
if (rubric.subCats.length > 0) {
|
|
475
|
+
rubric.subCats.forEach((subTab: SubCat) => {
|
|
476
|
+
subTab.headers.forEach((header: Header) => {
|
|
477
|
+
this.getScreenConfigSubRubric(header.rubricId, header.configId, header.fixedKey).then((data: any) => {
|
|
478
|
+
this._parseRawSubTabData(header, data);
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
} else {
|
|
483
|
+
rubric.headers.forEach((header: Header) => {
|
|
484
|
+
this.getScreenConfigSubRubric(header.rubricId, header.configId, header.fixedKey).then((data: any) => {
|
|
485
|
+
this._parseRawSubTabData(header, data);
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
private _parseRawSubTabData(header: Header, data: any): void {
|
|
492
|
+
header.subRubrics = [];
|
|
493
|
+
data.forEach((rawHeader: any, index: number) => {
|
|
494
|
+
if (rawHeader.description !== header.title) {
|
|
495
|
+
const subRubric: SubRubric = Object.assign(new SubRubric(), data[index]);
|
|
496
|
+
this.idList.push(subRubric.cfgObjId);
|
|
497
|
+
subRubric.name = subRubric.description.toLowerCase()
|
|
498
|
+
.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
499
|
+
|
|
500
|
+
rawHeader.configObjects.forEach((configObject: ConfigObject) => {
|
|
501
|
+
const field: Field = new Field();
|
|
502
|
+
this.idList.push(configObject.objectId);
|
|
503
|
+
field.name = configObject.configName;
|
|
504
|
+
field.id = configObject.objectId;
|
|
505
|
+
field.description = field.name.replace(/([A-Z])/g, '_$1').toUpperCase();
|
|
506
|
+
field.fieldType = this.multiSelectValues.find(obj => obj.value == configObject.valueType);
|
|
507
|
+
field.fieldType = field.fieldType === undefined ? this.multiSelectValues.find(obj => obj.value == configObject.typeConfig) : field.fieldType;
|
|
508
|
+
subRubric.fields.push(field);
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
header.subRubrics.push(subRubric);
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
private _defineObjectNames(): void {
|
|
517
|
+
this.currentConfig.rubrics.forEach((rubric: Rubric) => {
|
|
518
|
+
rubric.headers.forEach((header: Header) => {
|
|
519
|
+
if (!header.name) {
|
|
520
|
+
header.name = header.title.toLowerCase()
|
|
521
|
+
.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
522
|
+
|
|
523
|
+
header.subRubrics.forEach((subRubric: SubRubric) => {
|
|
524
|
+
if (!subRubric.name) {
|
|
525
|
+
subRubric.name = subRubric.description.toLowerCase()
|
|
526
|
+
.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
527
|
+
|
|
528
|
+
subRubric.fields.forEach((field: Field) => {
|
|
529
|
+
if (!field.description) {
|
|
530
|
+
field.description = field.name.replace(/([A-Z])/g, '_$1').toUpperCase();
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {NgModule} from "@angular/core";
|
|
2
|
+
import {CommonModule} from "@angular/common";
|
|
3
|
+
import {ScreenConfigGeneratorComponent} from "./screen-config-generator.component";
|
|
4
|
+
import {ButtonModule, InputTextModule, ListOfValuesModule} from "@colijnit/corecomponents_v12";
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [
|
|
8
|
+
CommonModule,
|
|
9
|
+
InputTextModule,
|
|
10
|
+
ButtonModule,
|
|
11
|
+
ListOfValuesModule
|
|
12
|
+
],
|
|
13
|
+
declarations: [
|
|
14
|
+
ScreenConfigGeneratorComponent
|
|
15
|
+
],
|
|
16
|
+
exports: [
|
|
17
|
+
ScreenConfigGeneratorComponent
|
|
18
|
+
]
|
|
19
|
+
})
|
|
20
|
+
export class ScreenConfigGeneratorModule {
|
|
21
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
HostBinding,
|
|
6
|
+
Input,
|
|
7
|
+
OnInit,
|
|
8
|
+
Output,
|
|
9
|
+
ViewEncapsulation
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import {animate, state, style, transition, trigger} from '@angular/animations';
|
|
12
|
+
import {ReportLayoutSelectionBase} from '@colijnit/mainapi/build/model/report-layout-selection-base.bo';
|
|
13
|
+
import {ReportingDocumentBaseRequest} from '@colijnit/mainapi/build/model/reporting-document-base-request';
|
|
14
|
+
import {Icon} from "../../../../enum/icon.enum";
|
|
15
|
+
import {IconCacheService} from "../../../../service/icon-cache.service";
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'co-layout-selection',
|
|
19
|
+
template: `
|
|
20
|
+
<div class="layout-selection-wrapper" (click)="showLayoutList = !showLayoutList">
|
|
21
|
+
<div class="title" [textContent]="'Lay-out'"></div>
|
|
22
|
+
<div class="layout-description" [textContent]="currentLayout?.description || 'Layout kiezen'"></div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="layouts-wrapper co-small-scrollbar" *ngIf="showLayoutList" @showHideLayouts>
|
|
25
|
+
<div class="layouts-wrapper-header">
|
|
26
|
+
<div class="title" [textContent]="'Lay-out'"></div>
|
|
27
|
+
<div class="close-layouts">
|
|
28
|
+
<div class="dialog-close-button" (click)="closeSelectLayout()">
|
|
29
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.XSolid)"></co-icon>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="layout-selection-wrapper" *ngFor="let reportLayout of layouts"
|
|
35
|
+
[class.selected]="reportLayout.reportId === currentLayout?.reportId"
|
|
36
|
+
(click)="handleSelectLayout(reportLayout)">
|
|
37
|
+
<div class="layout-description" [textContent]="reportLayout.description"></div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
animations: [
|
|
42
|
+
trigger("showHideLayouts", [
|
|
43
|
+
state("void", style({height: 0})),
|
|
44
|
+
state("*", style({height: "100%"})),
|
|
45
|
+
transition("void => *", animate("200ms ease-in-out")),
|
|
46
|
+
transition("* => void", animate("200ms ease-out"))
|
|
47
|
+
])
|
|
48
|
+
],
|
|
49
|
+
encapsulation: ViewEncapsulation.None
|
|
50
|
+
})
|
|
51
|
+
export class LayoutSelectionComponent implements OnInit {
|
|
52
|
+
public readonly icons: typeof Icon = Icon;
|
|
53
|
+
@Input()
|
|
54
|
+
public request: ReportingDocumentBaseRequest;
|
|
55
|
+
|
|
56
|
+
@Input()
|
|
57
|
+
public layouts: ReportLayoutSelectionBase[] = [];
|
|
58
|
+
|
|
59
|
+
@Output()
|
|
60
|
+
public requestChange: EventEmitter<ReportingDocumentBaseRequest> = new EventEmitter<ReportingDocumentBaseRequest>();
|
|
61
|
+
|
|
62
|
+
@HostBinding('class.co-layout-selection')
|
|
63
|
+
public showClass() {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public currentLayout: ReportLayoutSelectionBase;
|
|
68
|
+
public showLayoutList: boolean = false;
|
|
69
|
+
constructor(
|
|
70
|
+
public iconCacheService: IconCacheService
|
|
71
|
+
) {
|
|
72
|
+
}
|
|
73
|
+
ngOnInit(): void {
|
|
74
|
+
if (this.layouts && this.layouts.length > 0) {
|
|
75
|
+
this.currentLayout = this.layouts.find(l => l.reportId === this.request.reportId);
|
|
76
|
+
if (!this.currentLayout) {
|
|
77
|
+
this.currentLayout = this.layouts[0];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public handleSelectLayout(reportLayout: ReportLayoutSelectionBase): void {
|
|
83
|
+
this.currentLayout = reportLayout;
|
|
84
|
+
this.request.reportId = this.currentLayout.reportId;
|
|
85
|
+
this.requestChange.emit(this.request);
|
|
86
|
+
this.showLayoutList = false;
|
|
87
|
+
}
|
|
88
|
+
public closeSelectLayout(): void {
|
|
89
|
+
this.showLayoutList = false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {NgModule} from '@angular/core';
|
|
2
|
+
import {CommonModule} from '@angular/common';
|
|
3
|
+
import {LayoutSelectionComponent} from './layout-selection.component';
|
|
4
|
+
import {IconModule} from "@colijnit/corecomponents_v12";
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [
|
|
8
|
+
CommonModule,
|
|
9
|
+
IconModule
|
|
10
|
+
],
|
|
11
|
+
declarations: [
|
|
12
|
+
LayoutSelectionComponent
|
|
13
|
+
],
|
|
14
|
+
exports: [
|
|
15
|
+
LayoutSelectionComponent
|
|
16
|
+
]
|
|
17
|
+
})
|
|
18
|
+
export class LayoutSelectionModule {
|
|
19
|
+
}
|