@colijnit/sharedcomponents 1.0.54 → 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-pdf/style/_layout.scss +25 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +5 -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/components/signature-button/style/material.scss +4 -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/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss +1 -1
- package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss +1 -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 -6630
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -72
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -73
- 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-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 -243
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -33
- 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 -46
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +0 -46
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +0 -46
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +0 -46
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +0 -46
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +0 -65
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +0 -51
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +0 -236
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +0 -51
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +0 -40
- 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 -220
- 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 -147
- package/esm2015/lib/components/stock/stock.component.js +0 -186
- 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 -85
- 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 -6884
- 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-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 -68
- 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 -54
- 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/components/send-method-dialog/components/send-method-printer → 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/components/send-method-dialog/components/signature-button → 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/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/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,225 @@
|
|
|
1
|
+
import {ObjectUtils} from "./object-utils";
|
|
2
|
+
import {NumberUtils} from "./number-utils";
|
|
3
|
+
import {isNill} from "./is-nill.function";
|
|
4
|
+
import {notNill} from "./function/not-nill.function";
|
|
5
|
+
|
|
6
|
+
export class ArrayUtils {
|
|
7
|
+
/**
|
|
8
|
+
* Returns whether at least one element in given array could be found by given finder function.
|
|
9
|
+
*
|
|
10
|
+
* @param {T[]} array
|
|
11
|
+
* @param {(element: T) => boolean} finder A finder function that takes an element of the array and returns a boolean that represents
|
|
12
|
+
* the 'found status' for that element; whether it should have been found or not.
|
|
13
|
+
*/
|
|
14
|
+
public static ContainsAnElementFoundBy<T>(array: T[], finder: (element: T) => boolean): boolean {
|
|
15
|
+
if (!array || !finder) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return notNill(this.Find<T>(array, finder));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Cross-browser Array.find() function. Returns the first item in given array for which the foundBy function returns true. Returns
|
|
24
|
+
* undefined when none was found.
|
|
25
|
+
*
|
|
26
|
+
* Example usage:
|
|
27
|
+
* const foundItem: BusinessObject = ArrayUtils.Find<BusinessObject>(modelArray, (modelItem: BusinessObject) => <br>
|
|
28
|
+
* (return modelItem.getId() === '1')
|
|
29
|
+
* * });
|
|
30
|
+
*
|
|
31
|
+
* @param array The array with items to search in.
|
|
32
|
+
* @param foundBy The finder function applied on each items of the array, when that returns true, the item is considered found.
|
|
33
|
+
*/
|
|
34
|
+
public static Find<T>(array: T[], foundBy: (item: T) => boolean): T {
|
|
35
|
+
if (!array || !foundBy) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
for (let i: number = 0, len: number = array.length; i < len; i++) {
|
|
40
|
+
const itemCur: T = array[i];
|
|
41
|
+
if (foundBy(itemCur) ) {
|
|
42
|
+
return itemCur;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @returns empty array when nothing found, otherwise array with found items
|
|
49
|
+
public static FindAll<T>(array: T[], foundBy: (item: T) => boolean): T[] {
|
|
50
|
+
const answer: T[] = [];
|
|
51
|
+
if (!array || !foundBy) {
|
|
52
|
+
return answer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
for (let i: number = 0, len: number = array.length; i < len; i++) {
|
|
56
|
+
const itemCur: T = array[i];
|
|
57
|
+
if (foundBy(itemCur)) {
|
|
58
|
+
answer.push(itemCur);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return answer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// returns a simple clone of given array, using array.slice(0)
|
|
65
|
+
public static CloneArray<T>(array: T[]): T[] {
|
|
66
|
+
let answer: T[] = [];
|
|
67
|
+
|
|
68
|
+
if (array) {
|
|
69
|
+
answer = array.slice(0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return answer;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Returns a 'semi deep clone' of given array. Its first-level members are object-shallow-cloned (optionally with a strongly typed constructor),
|
|
77
|
+
* or just as plain object (see param arrayItemsClass).
|
|
78
|
+
* @param array
|
|
79
|
+
* @param arrayItemsClass If provided, the cloned array's first-level items will be strongly typed to / constructed as this class. Otherwise
|
|
80
|
+
* it'll be a plain object.
|
|
81
|
+
* @param deepClone Set to true if array items contain FUNCTIONS that need to be cloned..
|
|
82
|
+
* @returns {Array} semi-deep clone of given array
|
|
83
|
+
*/
|
|
84
|
+
public static CloneArrayAndItsItems<T>(array: T[], arrayItemsClass?: any, deepClone: boolean = false): T[] {
|
|
85
|
+
const cloneArray: T[] = [];
|
|
86
|
+
|
|
87
|
+
if (array) {
|
|
88
|
+
for (let i: number = 0, len: number = array.length; i < len; i++) {
|
|
89
|
+
if (deepClone) {
|
|
90
|
+
cloneArray.push(ObjectUtils.GetDeepClone(array[i]));
|
|
91
|
+
} else {
|
|
92
|
+
cloneArray.push(ObjectUtils.GetShallowClone(array[i], arrayItemsClass));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
return [];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return cloneArray;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Removes element at given index from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really
|
|
104
|
+
* removes the element using splice().
|
|
105
|
+
*
|
|
106
|
+
* @param {number} index
|
|
107
|
+
* @param {any[]} array in-out
|
|
108
|
+
* @returns {boolean} True if and only if the element on given index is succesfully removed from given array.
|
|
109
|
+
*/
|
|
110
|
+
public static RemoveElementAtIndex(index: number, array: any[]): boolean {
|
|
111
|
+
if (NumberUtils.IsNaN(index) || index < 0 || !Array.isArray(array) || array.length === 0) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (index in array) {
|
|
116
|
+
array.splice(index, 1);
|
|
117
|
+
return true;
|
|
118
|
+
} else {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Removes given element from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really removes the
|
|
125
|
+
* element using splice(). Also works on associative arrays.
|
|
126
|
+
*
|
|
127
|
+
* @param {T} element The element to remove.
|
|
128
|
+
* @param {T[]} array The array to remove the element from.
|
|
129
|
+
* @returns {boolean} True iff given element was truly successfully removed from given array.
|
|
130
|
+
*/
|
|
131
|
+
public static RemoveElement<T>(element: T, array: T[]): boolean {
|
|
132
|
+
if (!Array.isArray(array)) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const index: number = array.indexOf(element);
|
|
137
|
+
return ArrayUtils.RemoveElementAtIndex(index, array);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Checks if given array is defined, and is an array, and has length > 0, and, optionally checks that the first element is of type given clazz.
|
|
141
|
+
public static IsArrayWithElements<T>(arrayToCheck: T[], classItemsMustBeInstanceOf?: any): boolean {
|
|
142
|
+
if (isNill(arrayToCheck)) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (Array.isArray(arrayToCheck) && arrayToCheck.length > 0) {
|
|
147
|
+
if (classItemsMustBeInstanceOf) {
|
|
148
|
+
return arrayToCheck[0] instanceof classItemsMustBeInstanceOf;
|
|
149
|
+
} else {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Removes all elements from given array for which given filter function holds true. Returns true if at least one removed, else false.
|
|
158
|
+
public static RemoveElementsByFilter(array: any[], filterFunction: (item: any) => boolean): boolean {
|
|
159
|
+
if (!ArrayUtils.IsArrayWithElements(array) || !filterFunction) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let atLeastOneRemoved: boolean = false;
|
|
164
|
+
|
|
165
|
+
const len: number = array.length;
|
|
166
|
+
for (let i: number = len - 1; i >= 0; i--) {
|
|
167
|
+
const item: any = array[i];
|
|
168
|
+
if (filterFunction.call(this, item) === true) {
|
|
169
|
+
array.splice(i, 1);
|
|
170
|
+
atLeastOneRemoved = true;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return atLeastOneRemoved;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
public static MoveElement<T>(element: T, toIndex: number, array: T[]): boolean {
|
|
178
|
+
if (!Array.isArray(array) || isNill(toIndex)) {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const fromIndex: number = array.indexOf(element);
|
|
183
|
+
const toIndexCorrected: number = NumberUtils.GetNearestNumberWithinBounds(toIndex, 0, array.length - 1);
|
|
184
|
+
if (fromIndex === -1 || array[toIndexCorrected] === element) {
|
|
185
|
+
// element did not exist in given array, or already existed on given toIndex
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
array.splice(toIndexCorrected, 0, array.splice(fromIndex, 1)[0]);
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// PRE: elements exists in given array. POST: given elementToPlace has a lower index than given afterThisElement. Array is in-out manipulated.
|
|
193
|
+
public static PlaceElementAfterOther(array: any[], elementToPlace: any, afterThisElement: any): void {
|
|
194
|
+
if (array) {
|
|
195
|
+
const afterThisElIdx: number = array.indexOf(afterThisElement);
|
|
196
|
+
const elToPlaceIdx: number = array.indexOf(elementToPlace);
|
|
197
|
+
if (afterThisElIdx >= elToPlaceIdx) {
|
|
198
|
+
ArrayUtils.MoveElement(elementToPlace, afterThisElIdx + 1, array);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Returns max value from all resulting values from applying given itemValueFunction to all items of given array.
|
|
205
|
+
* @param array
|
|
206
|
+
* @param itemValueFunction The function applied to each array item that gives it a numerical value. The max num val found is returned.
|
|
207
|
+
*/
|
|
208
|
+
public static GetMaxCalculatedValue<T>(array: T[], itemValueFunction: (item: T) => number): number {
|
|
209
|
+
if (!array || !itemValueFunction) {
|
|
210
|
+
return NaN;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
let max: number = undefined;
|
|
214
|
+
|
|
215
|
+
const len: number = array.length;
|
|
216
|
+
for (let i: number = 0; i < len; i++) {
|
|
217
|
+
const valueCur: number = itemValueFunction.call(this);
|
|
218
|
+
if (valueCur > max) {
|
|
219
|
+
max = valueCur;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return max;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {DateUtils} from "./date-utils";
|
|
2
|
+
import {Weekday} from "../model/weekday.model";
|
|
3
|
+
import {Inject, LOCALE_ID} from "@angular/core";
|
|
4
|
+
import {LanguageCode} from "../enum/language-code.enum";
|
|
5
|
+
import {Week} from "../model/week.model";
|
|
6
|
+
|
|
7
|
+
export class CalendarUtils {
|
|
8
|
+
public static Locale: LanguageCode = undefined;
|
|
9
|
+
|
|
10
|
+
public static Now: Date = new Date();
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
@Inject(LOCALE_ID) private readonly _locale: LanguageCode
|
|
14
|
+
) {
|
|
15
|
+
CalendarUtils.Locale = _locale;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// public static GetCurrentYear(): number {
|
|
19
|
+
// return this.Now.getFullYear();
|
|
20
|
+
// }
|
|
21
|
+
//
|
|
22
|
+
// public static GetCurrentMonth(): number {
|
|
23
|
+
// return this.Now.getUTCMonth() + 1;
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
|
+
public static GetDayHours(day: Date): Date[] {
|
|
27
|
+
const datesByTheHour: Date[] = [];
|
|
28
|
+
if (day) {
|
|
29
|
+
let newDate: Date = new Date(day);
|
|
30
|
+
newDate.setHours(0, 0, 0, 0);
|
|
31
|
+
datesByTheHour.push(newDate);
|
|
32
|
+
for (let i: number = 0; i < 23; i++) {
|
|
33
|
+
newDate = new Date(newDate);
|
|
34
|
+
newDate.setHours(newDate.getHours() + 1);
|
|
35
|
+
datesByTheHour.push(newDate);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return datesByTheHour;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public static GetDaysOfWeek(date: Date): Week {
|
|
42
|
+
let day = new Date();
|
|
43
|
+
const daysOfWeek: Weekday[] = [];
|
|
44
|
+
let options: any;
|
|
45
|
+
let month: number;
|
|
46
|
+
for (let i: number = 0; i < 3; i++) {
|
|
47
|
+
const dayPerWeek: Weekday = new Weekday();
|
|
48
|
+
const dayHours: Date[] = CalendarUtils.GetDayHours(day);
|
|
49
|
+
dayPerWeek.newMonth = day.getMonth() !== month;
|
|
50
|
+
dayPerWeek.weekdaySelected = day.getDay() === date.getDay();
|
|
51
|
+
dayPerWeek.weekdayDay = day.getDate();
|
|
52
|
+
options = { weekday: "short" };
|
|
53
|
+
dayPerWeek.weekdayShort = day.toLocaleDateString(CalendarUtils.Locale, options);
|
|
54
|
+
options = { weekday: "long" };
|
|
55
|
+
dayPerWeek.weekdayLong = day.toLocaleDateString(CalendarUtils.Locale, options);
|
|
56
|
+
|
|
57
|
+
options = { month: "short" };
|
|
58
|
+
dayPerWeek.weekdayMonthShort = day.toLocaleDateString(CalendarUtils.Locale, options);
|
|
59
|
+
options = { month: "long" };
|
|
60
|
+
dayPerWeek.weekdayMonthLong = day.toLocaleDateString(CalendarUtils.Locale, options);
|
|
61
|
+
dayPerWeek.weekdayYear = day.getFullYear();
|
|
62
|
+
|
|
63
|
+
dayPerWeek.date = new Date(day);
|
|
64
|
+
dayPerWeek.datesByTheHour = dayHours;
|
|
65
|
+
daysOfWeek.push(dayPerWeek);
|
|
66
|
+
month = day.getMonth();
|
|
67
|
+
day = new Date(day);
|
|
68
|
+
day.setDate(day.getDate() + 1);
|
|
69
|
+
}
|
|
70
|
+
const week: Week = new Week();
|
|
71
|
+
week.weekDays = daysOfWeek;
|
|
72
|
+
return week;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output object shape for NumberUtils.CheckWithinSteppedBounds(). For efficiency, this method also returns the found remainder if the given
|
|
3
|
+
* number was NOT within the specified stepped bounds.
|
|
4
|
+
*/
|
|
5
|
+
export interface CheckWithinSteppedBoundsResult {
|
|
6
|
+
isOk: boolean;
|
|
7
|
+
remainder?: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import {NumberUtils} from "./number-utils";
|
|
2
|
+
|
|
3
|
+
// Static utility functions holder related to CSS.
|
|
4
|
+
export class CssUtils {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Performs a horizontal size change animation on the given DOM element.
|
|
8
|
+
*
|
|
9
|
+
* @param {any} nativeElement The DOM element
|
|
10
|
+
* @param {number} transitionTime In seconds
|
|
11
|
+
* @param {string} startWidth Pixel size string
|
|
12
|
+
* @param {string} endWidth Defaults to elements true width, by calculation
|
|
13
|
+
* @returns {Promise<any>} A resolved promise after the transition was done.
|
|
14
|
+
*/
|
|
15
|
+
public static AnimateMaxWidthTransitionOn(
|
|
16
|
+
nativeElement: any,
|
|
17
|
+
transitionTime: number = 0.2,
|
|
18
|
+
startWidth: string = "0px",
|
|
19
|
+
endWidth?: string
|
|
20
|
+
): Promise<void> {
|
|
21
|
+
if (!nativeElement) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!endWidth) {
|
|
26
|
+
endWidth = CssUtils.FindOffsetWidthOfElementWithTransition(nativeElement);
|
|
27
|
+
}
|
|
28
|
+
const transitionStyle: string = `max-width ${transitionTime}s ease-out`;
|
|
29
|
+
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
30
|
+
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
31
|
+
}
|
|
32
|
+
nativeElement.style.maxWidth = startWidth;
|
|
33
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
34
|
+
nativeElement.style.maxWidth = endWidth;
|
|
35
|
+
|
|
36
|
+
return this._returnPromise(transitionTime);
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Performs a vertical size change animation on the given DOM element.
|
|
42
|
+
*
|
|
43
|
+
* @param {any} nativeElement The DOM element
|
|
44
|
+
* @param {number} transitionTime In seconds
|
|
45
|
+
* @param {string} startHeight Pixel size string
|
|
46
|
+
* @param {string} endHeight Defaults to elements true height, by calculation
|
|
47
|
+
* @returns {Promise<any>} A resolved promise after the transition was done.
|
|
48
|
+
*/
|
|
49
|
+
public static AnimateMaxHeightTransitionOn(
|
|
50
|
+
nativeElement: any,
|
|
51
|
+
transitionTime: number = 0.2,
|
|
52
|
+
startHeight: string = "0px",
|
|
53
|
+
endHeight?: string
|
|
54
|
+
): Promise<void> {
|
|
55
|
+
if (!nativeElement) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (!endHeight) {
|
|
60
|
+
endHeight = CssUtils.FindOffsetHeightOfElementWithTransition(nativeElement);
|
|
61
|
+
}
|
|
62
|
+
const transitionStyle: string = `max-height ${transitionTime}s ease-out`;
|
|
63
|
+
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
64
|
+
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
65
|
+
}
|
|
66
|
+
nativeElement.style.maxHeight = startHeight;
|
|
67
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
68
|
+
nativeElement.style.maxHeight = endHeight;
|
|
69
|
+
|
|
70
|
+
return this._returnPromise(transitionTime);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public static AnimateMaxWidthToZeroOn(nativeElement: any, transitionTime: number = 0.2): Promise<any> {
|
|
74
|
+
return CssUtils.AnimateMaxWidthTransitionOn(nativeElement, transitionTime, CssUtils.GetTrueWidthOf(nativeElement) + "px", "0px");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public static AnimateMaxHeightToZeroOn(nativeElement: any, transitionTime: number = 0.2): Promise<any> {
|
|
78
|
+
return CssUtils.AnimateMaxHeightTransitionOn(nativeElement, transitionTime, CssUtils.GetTrueHeightOf(nativeElement) + "px", "0px");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Returns the offsetwidth of given element as a pixel string. Uses trick to find true width of elements with a max-width of 0 and
|
|
83
|
+
* that have a transition style applied.
|
|
84
|
+
*
|
|
85
|
+
* @param {any} nativeElement The DOM element
|
|
86
|
+
* @returns {string} The width in pixels, e.g. "20px"
|
|
87
|
+
*/
|
|
88
|
+
public static FindOffsetWidthOfElementWithTransition(nativeElement: any): string {
|
|
89
|
+
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Returns the offsetheight of given element as a pixel string. Uses trick to find true width of elements with a max-height of 0 and
|
|
94
|
+
* that have a transition style applied.
|
|
95
|
+
*
|
|
96
|
+
* @param {any} nativeElement The DOM element
|
|
97
|
+
* @returns {string} The height in pixels, e.g. "20px"
|
|
98
|
+
*/
|
|
99
|
+
public static FindOffsetHeightOfElementWithTransition(nativeElement: any): string {
|
|
100
|
+
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, true);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Returns the true height of the given element, in NUMBER of pixels. Includes margins.
|
|
104
|
+
public static GetTrueHeightOf(nativeElement: any): number {
|
|
105
|
+
const heightMargins: number = NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("margin-top"))
|
|
106
|
+
+ NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("margin-bottom"));
|
|
107
|
+
return nativeElement.offsetHeight + heightMargins;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param nativeElement
|
|
113
|
+
* @param styleName e.g. "margin-top"
|
|
114
|
+
* @returns {any}
|
|
115
|
+
*/
|
|
116
|
+
public static GetComputedStyleVal(nativeElement: any, styleName: string): any {
|
|
117
|
+
return document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("styleName");
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Returns the true width of the given element, in NUMBER of pixels. Includes margins.
|
|
121
|
+
public static GetTrueWidthOf(nativeElement: any): number {
|
|
122
|
+
const widthMargins: number = NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("margin-left"))
|
|
123
|
+
+ NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("margin-right"));
|
|
124
|
+
return nativeElement.offsetWidth + widthMargins;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public static ElementHasStyle(nativeElement: any, styleName: string, styleValue: string): boolean {
|
|
128
|
+
if (!nativeElement || !styleName) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
return (nativeElement.style[styleName] === styleValue);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
public static SetStyleOnElement(nativeElement: any, styleName: string, styleValue: string, pushChanges: boolean = false): void {
|
|
135
|
+
if (!nativeElement || !styleName) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
nativeElement.style[styleName] = styleValue;
|
|
140
|
+
if (pushChanges) {
|
|
141
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
public static HideElement(nativeElement: any): void {
|
|
146
|
+
if (nativeElement) {
|
|
147
|
+
CssUtils.SetStyleOnElement(nativeElement, "display", "none");
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Returns the value of the given CSS style on the given native element.
|
|
153
|
+
* @param nativeElement
|
|
154
|
+
* @param styleName
|
|
155
|
+
* @returns {any}
|
|
156
|
+
*/
|
|
157
|
+
public static GetStyleValue(nativeElement: any, styleName: string): any {
|
|
158
|
+
if (!nativeElement || !styleName) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return nativeElement.style[styleName];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Returns a CSS-usable RGB string representation of given database-returned rgb color string.
|
|
167
|
+
* Database returns color strings like "0xFFFF00" or "0X0"
|
|
168
|
+
*
|
|
169
|
+
* @param dbRgbColorStr e.g. 0x990000, or 0xAB045F
|
|
170
|
+
* @returns {string} The CSS HEX representation of given color
|
|
171
|
+
*/
|
|
172
|
+
public static DbRgbColorStringToCssRgbColor(dbRgbColorStr: string): string {
|
|
173
|
+
if (!dbRgbColorStr || dbRgbColorStr.length === 0) {
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// "0x" should become "#"
|
|
178
|
+
dbRgbColorStr = dbRgbColorStr.split("0x")[1];
|
|
179
|
+
if (!dbRgbColorStr) {
|
|
180
|
+
return undefined;
|
|
181
|
+
}
|
|
182
|
+
// database colors could contain errors, like too little or too many color characters: correct them here.
|
|
183
|
+
const strLen: number = dbRgbColorStr.length;
|
|
184
|
+
// make sure our length is 6 or 3
|
|
185
|
+
if (strLen > 6) {
|
|
186
|
+
dbRgbColorStr = dbRgbColorStr.slice(0, 6);
|
|
187
|
+
} else if (strLen > 3 && strLen < 6) {
|
|
188
|
+
dbRgbColorStr = dbRgbColorStr.slice(0, 3);
|
|
189
|
+
} else if (strLen === 1) {
|
|
190
|
+
// a strLen of 1 would be more common than 2 (eg black is '0'), so its else clause sits above the == 2 case here
|
|
191
|
+
dbRgbColorStr += dbRgbColorStr + dbRgbColorStr;
|
|
192
|
+
} else if (strLen === 2) {
|
|
193
|
+
dbRgbColorStr += dbRgbColorStr[1];
|
|
194
|
+
}
|
|
195
|
+
// the final css-usable color
|
|
196
|
+
return "#" + dbRgbColorStr;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
public static PushCssChanges(nativeElement: any): void {
|
|
200
|
+
/* eslint-disable */
|
|
201
|
+
// trick to wake renderer and push css changes, do not delete this line due to unused variable!
|
|
202
|
+
const notUnused: number = nativeElement.offsetHeight; //NOSONAR
|
|
203
|
+
/* eslint-enable */
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
public static TransparentColor(hexColor: string, opacity: number): string {
|
|
208
|
+
const hex: string = hexColor.replace("#", "");
|
|
209
|
+
return `rgba(${Array.from({length: 3}, (v, i) =>
|
|
210
|
+
parseInt(hex.substring(i * 2, (i + 1) * 2), 16)
|
|
211
|
+
).join(",")},${opacity})`;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
public static ElementHasClass(element: Element, cssClass: string): boolean {
|
|
215
|
+
return element && element.classList && element.classList.contains(cssClass);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// @param height True if you want height,fFalse if you want width
|
|
219
|
+
private static _FindOffsetHeightOrWidthOfElementWithTransition(nativeElement: any, wantHeight: boolean): string {
|
|
220
|
+
if (!nativeElement) {
|
|
221
|
+
return "0px";
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* Take transition off temporarily to allow element to grow to its true size,
|
|
225
|
+
then measure that size and reapply transition styling. */
|
|
226
|
+
const originalTransitionStyle: string = nativeElement.style.transition;
|
|
227
|
+
CssUtils._AddTransitionStyleOn(nativeElement, "none");
|
|
228
|
+
|
|
229
|
+
if (wantHeight) {
|
|
230
|
+
nativeElement.style.maxHeight = "";
|
|
231
|
+
} else {
|
|
232
|
+
nativeElement.style.maxWidth = "";
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
let trueHeightOrWidth: string;
|
|
236
|
+
if (wantHeight) {
|
|
237
|
+
trueHeightOrWidth = nativeElement.offsetHeight;
|
|
238
|
+
} else {
|
|
239
|
+
trueHeightOrWidth = nativeElement.offsetWidth;
|
|
240
|
+
}
|
|
241
|
+
trueHeightOrWidth += "px";
|
|
242
|
+
|
|
243
|
+
nativeElement.style.transition = originalTransitionStyle;
|
|
244
|
+
|
|
245
|
+
return trueHeightOrWidth;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Adds given transition style on given DOM element.
|
|
250
|
+
*
|
|
251
|
+
* @param {any} nativeElement DOM element reference
|
|
252
|
+
* @param {string} styleText The shorthand style string for the transition to set
|
|
253
|
+
*/
|
|
254
|
+
private static _AddTransitionStyleOn(nativeElement: any, styleText: string): void {
|
|
255
|
+
if (!nativeElement || !styleText) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// if it already has a transition style: append new one with a comma
|
|
260
|
+
if (nativeElement.style.transition) {
|
|
261
|
+
styleText = ", " + styleText;
|
|
262
|
+
}
|
|
263
|
+
nativeElement.style.transition += styleText;
|
|
264
|
+
nativeElement.style.WebkitTransition += styleText;
|
|
265
|
+
nativeElement.style.MozTransition += styleText;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
private static _returnPromise(transitionTime: number): Promise<any> {
|
|
269
|
+
return new Promise<void>((resolve: Function) => {
|
|
270
|
+
setTimeout(() => {
|
|
271
|
+
resolve();
|
|
272
|
+
}, transitionTime * 1000);
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|