@colijnit/sharedcomponents 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/bundles/colijnit-sharedcomponents.umd.js +10078 -9926
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +92 -91
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +93 -92
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -11
- package/esm2015/lib/businessobject/build-images-and-documentation-result.js +2 -2
- package/esm2015/lib/businessobject/co-document-right.bo.js +3 -3
- package/esm2015/lib/businessobject/drag-drop-container-element.js +2 -2
- package/esm2015/lib/businessobject/drag-drop-container.js +7 -7
- package/esm2015/lib/components/activity-list/activity-list.component.js +130 -130
- package/esm2015/lib/components/activity-list/activity-list.module.js +24 -24
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +47 -47
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.module.js +20 -20
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +61 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +36 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +56 -56
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +47 -47
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +68 -68
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +243 -243
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +36 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +50 -50
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +46 -46
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +61 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +39 -39
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +35 -35
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +64 -64
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +48 -48
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +42 -42
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +34 -34
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +48 -48
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +107 -107
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +178 -178
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +34 -34
- package/esm2015/lib/components/date-planning/date-planning.component.js +113 -113
- package/esm2015/lib/components/date-planning/date-planning.module.js +63 -63
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +75 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +44 -44
- package/esm2015/lib/components/docsign/docsign.component.js +242 -242
- package/esm2015/lib/components/docsign/docsign.module.js +23 -23
- package/esm2015/lib/components/file-upload/file-upload.component.js +189 -189
- package/esm2015/lib/components/file-upload/file-upload.module.js +25 -25
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +397 -397
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +30 -30
- package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +469 -469
- package/esm2015/lib/components/files-upload/components/drag-drop-container.component.js +115 -115
- package/esm2015/lib/components/files-upload/files-upload.component.js +131 -131
- package/esm2015/lib/components/files-upload/files-upload.module.js +47 -47
- package/esm2015/lib/components/image-display/image-display.component.js +36 -36
- package/esm2015/lib/components/image-display/image-display.module.js +23 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +200 -200
- package/esm2015/lib/components/key-pad/key-pad.module.js +22 -22
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -74
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -21
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +59 -59
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -19
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +89 -89
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +79 -79
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +85 -85
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +64 -64
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +26 -26
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +40 -40
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +23 -23
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +61 -61
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +28 -28
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +38 -38
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +7 -7
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +258 -258
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +35 -35
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +2 -2
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +59 -59
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +229 -229
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -26
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +97 -97
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +27 -27
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +67 -67
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +53 -53
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +210 -0
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +248 -251
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +52 -52
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +39 -39
- package/esm2015/lib/components/stock/localization/translation.js +74 -72
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +33 -33
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +48 -48
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +457 -457
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +251 -243
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +2 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +72 -72
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +160 -160
- package/esm2015/lib/components/stock/stock.component.js +237 -237
- package/esm2015/lib/components/stock/stock.module.js +82 -80
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -23
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -19
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +90 -90
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +21 -21
- package/esm2015/lib/components/tab-bar/tab.interface.js +2 -2
- package/esm2015/lib/components/tile-renderer/tile-render.component.js +80 -80
- package/esm2015/lib/components/tile-renderer/tile-render.module.js +26 -26
- package/esm2015/lib/decorator/input-boolean.decorator.js +34 -34
- package/esm2015/lib/enum/calendar-view.enum.js +9 -9
- package/esm2015/lib/enum/document-email-report.enum.js +18 -18
- package/esm2015/lib/enum/domain-multiple-name.enum.js +13 -13
- package/esm2015/lib/enum/file-type.js +14 -14
- package/esm2015/lib/enum/files-upload-config-objects.js +3 -3
- package/esm2015/lib/enum/gauge-color.enum.js +10 -10
- package/esm2015/lib/enum/icon.enum.js +49 -48
- package/esm2015/lib/enum/internal-param.enum.js +38 -38
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -32
- package/esm2015/lib/enum/language-code.enum.js +8 -8
- package/esm2015/lib/enum/month.enum.js +17 -17
- package/esm2015/lib/enum/read-write-access-config-names.enum.js +2 -2
- package/esm2015/lib/enum/table-name.enum.js +86 -86
- package/esm2015/lib/enum/tag-category.enum.js +22 -22
- package/esm2015/lib/enum/tags-component-config-names.js +2 -2
- package/esm2015/lib/enum/thumb-three-way-state.js +19 -19
- package/esm2015/lib/enum/tile-size-type.js +7 -7
- package/esm2015/lib/enum/time-period.enum.js +11 -11
- package/esm2015/lib/event/co-drag-event.js +2 -2
- package/esm2015/lib/event/co-drop-event.js +2 -2
- package/esm2015/lib/interface/key-value-pair.js +2 -2
- package/esm2015/lib/interface/operation-callback-simple-function.js +4 -4
- package/esm2015/lib/localization/localization.module.js +19 -19
- package/esm2015/lib/localization/localize.pipe.js +26 -26
- package/esm2015/lib/localization/localize.service.js +30 -30
- package/esm2015/lib/localization/translation.js +3 -3
- package/esm2015/lib/model/agenda-event-per-day.model.js +6 -6
- package/esm2015/lib/model/agenda-event.model.js +8 -8
- package/esm2015/lib/model/agenda-null-objects.js +11 -11
- package/esm2015/lib/model/constant/all-months.js +17 -17
- package/esm2015/lib/model/date-range.js +5 -5
- package/esm2015/lib/model/day.model.js +7 -7
- package/esm2015/lib/model/icon-svg.js +48 -47
- package/esm2015/lib/model/month.model.js +11 -11
- package/esm2015/lib/model/send-method.js +8 -8
- package/esm2015/lib/model/settings.js +4 -4
- package/esm2015/lib/model/tag-tree-item.bo.js +16 -16
- package/esm2015/lib/model/time-window.bo.js +26 -26
- package/esm2015/lib/model/tree-object.js +15 -15
- package/esm2015/lib/model/week.model.js +6 -6
- package/esm2015/lib/model/weekday.model.js +10 -10
- package/esm2015/lib/pipe/array-number.pipe.js +15 -15
- package/esm2015/lib/pipe/file-type-image.pipe.js +51 -51
- package/esm2015/lib/pipe/master-pipes.js +9 -9
- package/esm2015/lib/pipe/ucfirst.pipe.js +16 -16
- package/esm2015/lib/service/dictionary.service.js +76 -76
- package/esm2015/lib/service/drag-drop.service.js +365 -365
- package/esm2015/lib/service/icon-cache.service.js +51 -51
- package/esm2015/lib/service/options.service.js +48 -48
- package/esm2015/lib/service/shared-connector.service.js +433 -433
- package/esm2015/lib/service/shared.service.js +60 -60
- package/esm2015/lib/service/stock.service.js +110 -110
- package/esm2015/lib/utils/array-utils.js +202 -202
- package/esm2015/lib/utils/calendar.utils.js +68 -68
- package/esm2015/lib/utils/check-precision-and-scale-result.js +2 -2
- package/esm2015/lib/utils/check-within-stepped-bounds-result.js +2 -2
- package/esm2015/lib/utils/co-document-shared-field-logic.js +50 -50
- package/esm2015/lib/utils/date-utils.js +264 -264
- package/esm2015/lib/utils/enum-utils.js +128 -128
- package/esm2015/lib/utils/function/not-nill.function.js +5 -5
- package/esm2015/lib/utils/is-nill.function.js +5 -5
- package/esm2015/lib/utils/map-utils.js +41 -41
- package/esm2015/lib/utils/number-utils.js +390 -390
- package/esm2015/lib/utils/object-utils.js +278 -278
- package/esm2015/lib/utils/ref-code-utils.js +49 -49
- package/esm2015/lib/utils/string-utils.js +93 -93
- package/esm2015/public-api.js +31 -31
- package/fesm2015/colijnit-sharedcomponents.js +10622 -10408
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/assets/dictionary/text.properties.d.ts +3 -3
- package/lib/businessobject/build-images-and-documentation-result.d.ts +5 -5
- package/lib/businessobject/co-document-right.bo.d.ts +6 -6
- package/lib/businessobject/drag-drop-container-element.d.ts +6 -6
- package/lib/businessobject/drag-drop-container.d.ts +6 -6
- package/lib/components/access/read-write-access.scss +25 -25
- package/lib/components/access/style/_layout.scss +23 -23
- package/lib/components/access/style/_material-definition.scss +12 -12
- package/lib/components/access/style/_theme.scss +4 -4
- package/lib/components/access/style/material.scss +4 -4
- package/lib/components/activity-list/activity-list.component.d.ts +33 -33
- package/lib/components/activity-list/activity-list.module.d.ts +2 -2
- package/lib/components/activity-list/style/_layout.scss +68 -68
- package/lib/components/activity-list/style/_theme.scss +4 -4
- package/lib/components/activity-list/style/material.scss +4 -4
- package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +14 -14
- package/lib/components/app-file-dropzone/app-file-dropzone.module.d.ts +2 -2
- package/lib/components/app-file-dropzone/style/_layout.scss +61 -61
- package/lib/components/app-file-dropzone/style/_theme.scss +4 -4
- package/lib/components/app-file-dropzone/style/material.scss +4 -4
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +21 -21
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +7 -7
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +18 -18
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +13 -13
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +18 -18
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +48 -48
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +9 -9
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +8 -8
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +7 -7
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +10 -10
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +12 -12
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +12 -12
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +10 -10
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +9 -9
- package/lib/components/date-planning/component/agenda/style/_layout.scss +443 -443
- package/lib/components/date-planning/component/agenda/style/_material-definition.scss +12 -12
- package/lib/components/date-planning/component/agenda/style/_theme.scss +7 -7
- package/lib/components/date-planning/component/agenda/style/material.scss +5 -5
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +11 -11
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +9 -9
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +9 -9
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +23 -23
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +31 -31
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +10 -10
- package/lib/components/date-planning/component/calendar/style/_layout.scss +167 -167
- package/lib/components/date-planning/component/calendar/style/_material-definition.scss +7 -7
- package/lib/components/date-planning/component/calendar/style/_theme.scss +7 -7
- package/lib/components/date-planning/component/calendar/style/material.scss +5 -5
- package/lib/components/date-planning/date-planning.component.d.ts +28 -28
- package/lib/components/date-planning/date-planning.module.d.ts +2 -2
- package/lib/components/date-planning/style/_layout.scss +45 -45
- package/lib/components/date-planning/style/_theme.scss +5 -5
- package/lib/components/date-planning/style/material.scss +7 -7
- package/lib/components/docsign/component/signature/signature.component.d.ts +16 -16
- package/lib/components/docsign/component/signature/style/_layout.scss +40 -40
- package/lib/components/docsign/component/signature/style/_material-definition.scss +11 -11
- package/lib/components/docsign/component/signature/style/_theme.scss +13 -13
- package/lib/components/docsign/component/signature/style/material.scss +4 -4
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -12
- package/lib/components/docsign/component/signatures/style/_layout.scss +13 -13
- package/lib/components/docsign/component/signatures/style/_material-definition.scss +1 -1
- package/lib/components/docsign/component/signatures/style/_theme.scss +4 -4
- package/lib/components/docsign/component/signatures/style/material.scss +5 -5
- package/lib/components/docsign/docsign.component.d.ts +94 -94
- package/lib/components/docsign/docsign.module.d.ts +2 -2
- package/lib/components/docsign/style/_layout.scss +40 -40
- package/lib/components/docsign/style/_material-definition.scss +12 -12
- package/lib/components/docsign/style/_theme.scss +12 -12
- package/lib/components/docsign/style/material.scss +15 -15
- package/lib/components/file-upload/file-upload.component.d.ts +42 -42
- package/lib/components/file-upload/file-upload.module.d.ts +2 -2
- package/lib/components/file-upload/style/_layout.scss +59 -59
- package/lib/components/file-upload/style/_material-definition.scss +2 -2
- package/lib/components/file-upload/style/_theme.scss +4 -4
- package/lib/components/file-upload/style/material.scss +4 -4
- package/lib/components/file-upload-popup/file-upload-popup.component.d.ts +75 -75
- package/lib/components/file-upload-popup/file-upload-popup.module.d.ts +2 -2
- package/lib/components/file-upload-popup/style/_layout.scss +48 -48
- package/lib/components/file-upload-popup/style/_material-definition.scss +2 -2
- package/lib/components/file-upload-popup/style/_theme.scss +5 -5
- package/lib/components/file-upload-popup/style/material.scss +4 -4
- package/lib/components/files-upload/components/base-file-upload.component.d.ts +98 -98
- package/lib/components/files-upload/components/drag-drop-container.component.d.ts +34 -34
- package/lib/components/files-upload/files-upload.component.d.ts +32 -32
- package/lib/components/files-upload/files-upload.module.d.ts +2 -2
- package/lib/components/files-upload/style/_layout.scss +49 -49
- package/lib/components/files-upload/style/_theme.scss +5 -5
- package/lib/components/files-upload/style/material.scss +4 -4
- package/lib/components/image-display/image-display.component.d.ts +14 -14
- package/lib/components/image-display/image-display.module.d.ts +2 -2
- package/lib/components/image-display/style/_layout.scss +56 -56
- package/lib/components/image-display/style/_material-definition.scss +4 -4
- package/lib/components/image-display/style/_theme.scss +6 -6
- package/lib/components/image-display/style/material.scss +3 -3
- package/lib/components/key-pad/key-pad.component.d.ts +38 -38
- package/lib/components/key-pad/key-pad.module.d.ts +2 -2
- package/lib/components/key-pad/style/_layout.scss +160 -160
- package/lib/components/key-pad/style/_material-definition.scss +19 -19
- package/lib/components/key-pad/style/_theme.scss +35 -35
- package/lib/components/key-pad/style/material.scss +4 -4
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -16
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -2
- package/lib/components/layout-switcher/style/_layout.scss +94 -94
- package/lib/components/layout-switcher/style/_material-definition.scss +16 -16
- package/lib/components/layout-switcher/style/_theme.scss +4 -4
- package/lib/components/layout-switcher/style/material.scss +6 -6
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +11 -11
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -2
- package/lib/components/linear-gauge/style/_layout.scss +20 -20
- package/lib/components/linear-gauge/style/_material-definition.scss +8 -8
- package/lib/components/linear-gauge/style/_theme.scss +4 -4
- package/lib/components/linear-gauge/style/material.scss +6 -6
- package/lib/components/login/style/_layout.scss +57 -57
- package/lib/components/login/style/_material-definition.scss +23 -23
- package/lib/components/login/style/_theme.scss +7 -7
- package/lib/components/login/style/material.scss +4 -4
- package/lib/components/multi-property-toggler/multiple-property-toggler.component.d.ts +27 -27
- package/lib/components/multi-property-toggler/multiple-property-toggler.module.d.ts +2 -2
- package/lib/components/multi-property-toggler/style/_layout.scss +24 -24
- package/lib/components/multi-property-toggler/style/_theme.scss +4 -4
- package/lib/components/multi-property-toggler/style/material.scss +4 -4
- package/lib/components/screen-config-generator/style/_layout.scss +95 -95
- package/lib/components/screen-config-generator/style/_theme.scss +4 -4
- package/lib/components/screen-config-generator/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +19 -19
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/layout-selection/style/_layout.scss +44 -44
- package/lib/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +19 -19
- package/lib/components/send-method-dialog/components/layout-selection/style/_theme.scss +17 -17
- package/lib/components/send-method-dialog/components/layout-selection/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +19 -19
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/printer-selection/style/_layout.scss +69 -69
- package/lib/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +37 -37
- package/lib/components/send-method-dialog/components/printer-selection/style/_theme.scss +23 -23
- package/lib/components/send-method-dialog/components/printer-selection/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +14 -14
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-email/style/_layout.scss +29 -29
- package/lib/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +8 -8
- package/lib/components/send-method-dialog/components/send-method-email/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-email/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +8 -8
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +25 -25
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-pdf/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +13 -13
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +30 -30
- package/lib/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-printer/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-printer/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +12 -12
- package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/signature-button/style/_layout.scss +28 -28
- package/lib/components/send-method-dialog/components/signature-button/style/_material-definition.scss +8 -8
- package/lib/components/send-method-dialog/components/signature-button/style/_theme.scss +4 -4
- package/lib/components/send-method-dialog/components/signature-button/style/material.scss +4 -4
- package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +5 -5
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +71 -71
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -2
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +13 -13
- package/lib/components/send-method-dialog/service/send-method.service.d.ts +23 -23
- package/lib/components/send-method-dialog/style/_layout.scss +165 -165
- package/lib/components/send-method-dialog/style/_material-definition.scss +48 -48
- package/lib/components/send-method-dialog/style/_theme.scss +33 -33
- package/lib/components/send-method-dialog/style/material.scss +10 -10
- package/lib/components/simple-tags/simple-tags.component.d.ts +31 -31
- package/lib/components/simple-tags/simple-tags.module.d.ts +2 -2
- package/lib/components/simple-tags/style/_layout.scss +272 -272
- package/lib/components/simple-tags/style/_material-definition.scss +39 -39
- package/lib/components/simple-tags/style/_theme.scss +4 -4
- package/lib/components/simple-tags/style/material.scss +4 -4
- package/lib/components/statusbar/statusbar-popup.component.d.ts +21 -21
- package/lib/components/statusbar/statusbar.component.d.ts +26 -26
- package/lib/components/statusbar/statusbar.module.d.ts +2 -2
- package/lib/components/statusbar/style/_layout.scss +70 -70
- package/lib/components/statusbar/style/_material-definition.scss +23 -23
- package/lib/components/statusbar/style/_theme.scss +13 -13
- package/lib/components/statusbar/style/material.scss +5 -5
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -11
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -20
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +13 -13
- package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +41 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +54 -52
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +11 -11
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +7 -7
- package/lib/components/stock/localization/translation.d.ts +71 -69
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +7 -7
- package/lib/components/stock/stock-information/stock-information.component.d.ts +9 -9
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +75 -75
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +59 -56
- package/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts +4 -4
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -18
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +38 -38
- package/lib/components/stock/stock.component.d.ts +64 -64
- package/lib/components/stock/stock.module.d.ts +2 -2
- package/lib/components/stock/style/_layout.scss +519 -473
- package/lib/components/stock/style/_material-definition.scss +28 -28
- package/lib/components/stock/style/_theme.scss +5 -5
- package/lib/components/stock/style/material.scss +4 -4
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -4
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -2
- package/lib/components/stock-statusbar/style/_layout.scss +24 -24
- package/lib/components/stock-statusbar/style/material.scss +4 -4
- package/lib/components/tab-bar/style/_layout.scss +83 -83
- package/lib/components/tab-bar/style/_material-definition.scss +6 -6
- package/lib/components/tab-bar/style/material.scss +4 -4
- package/lib/components/tab-bar/tab-bar.component.d.ts +21 -21
- package/lib/components/tab-bar/tab-bar.module.d.ts +2 -2
- package/lib/components/tab-bar/tab.interface.d.ts +5 -5
- package/lib/components/tags/component/style/_layout.scss +67 -67
- package/lib/components/tags/component/style/_material-definition.scss +1 -1
- package/lib/components/tags/component/style/_theme.scss +8 -8
- package/lib/components/tags/component/style/material.scss +3 -3
- package/lib/components/tags/component/tag-join-label/style/_layout.scss +97 -97
- package/lib/components/tags/component/tag-join-label/style/_material-definition.scss +4 -4
- package/lib/components/tags/component/tag-join-label/style/_theme.scss +8 -8
- package/lib/components/tags/component/tag-join-label/style/material.scss +3 -3
- package/lib/components/tile-renderer/style/_layout.scss +90 -90
- package/lib/components/tile-renderer/style/_theme.scss +4 -4
- package/lib/components/tile-renderer/style/material.scss +4 -4
- package/lib/components/tile-renderer/tile-render.component.d.ts +31 -31
- package/lib/components/tile-renderer/tile-render.module.d.ts +2 -2
- package/lib/decorator/input-boolean.decorator.d.ts +8 -8
- package/lib/enum/calendar-view.enum.d.ts +7 -7
- package/lib/enum/document-email-report.enum.d.ts +15 -15
- package/lib/enum/domain-multiple-name.enum.d.ts +10 -10
- package/lib/enum/file-type.d.ts +7 -7
- package/lib/enum/files-upload-config-objects.d.ts +22 -22
- package/lib/enum/gauge-color.enum.d.ts +8 -8
- package/lib/enum/icon.enum.d.ts +47 -46
- package/lib/enum/internal-param.enum.d.ts +34 -34
- package/lib/enum/keyboard-code.enum.d.ts +30 -30
- package/lib/enum/language-code.enum.d.ts +6 -6
- package/lib/enum/month.enum.d.ts +14 -14
- package/lib/enum/read-write-access-config-names.enum.d.ts +4 -4
- package/lib/enum/table-name.enum.d.ts +84 -84
- package/lib/enum/tag-category.enum.d.ts +19 -19
- package/lib/enum/tags-component-config-names.d.ts +4 -4
- package/lib/enum/thumb-three-way-state.d.ts +6 -6
- package/lib/enum/tile-size-type.d.ts +4 -4
- package/lib/enum/time-period.enum.d.ts +8 -8
- package/lib/event/co-drag-event.d.ts +5 -5
- package/lib/event/co-drop-event.d.ts +8 -8
- package/lib/interface/key-value-pair.d.ts +4 -4
- package/lib/interface/operation-callback-simple-function.d.ts +4 -4
- package/lib/localization/localization.module.d.ts +2 -2
- package/lib/localization/localize.pipe.d.ts +7 -7
- package/lib/localization/localize.service.d.ts +7 -7
- package/lib/localization/translation.d.ts +2 -2
- package/lib/model/agenda-event-per-day.model.d.ts +5 -5
- package/lib/model/agenda-event.model.d.ts +17 -17
- package/lib/model/agenda-null-objects.d.ts +10 -10
- package/lib/model/constant/all-months.d.ts +2 -2
- package/lib/model/date-range.d.ts +7 -7
- package/lib/model/day.model.d.ts +8 -8
- package/lib/model/icon-svg.d.ts +4 -4
- package/lib/model/month.model.d.ts +5 -5
- package/lib/model/send-method.d.ts +7 -7
- package/lib/model/settings.d.ts +3 -3
- package/lib/model/tag-tree-item.bo.d.ts +18 -18
- package/lib/model/time-window.bo.d.ts +13 -13
- package/lib/model/tree-object.d.ts +8 -8
- package/lib/model/week.model.d.ts +4 -4
- package/lib/model/weekday.model.d.ts +16 -16
- package/lib/pipe/array-number.pipe.d.ts +4 -4
- package/lib/pipe/file-type-image.pipe.d.ts +12 -12
- package/lib/pipe/master-pipes.d.ts +1 -1
- package/lib/pipe/ucfirst.pipe.d.ts +4 -4
- package/lib/service/dictionary.service.d.ts +21 -21
- package/lib/service/drag-drop.service.d.ts +86 -86
- package/lib/service/icon-cache.service.d.ts +18 -18
- package/lib/service/options.service.d.ts +13 -13
- package/lib/service/shared-connector.service.d.ts +55 -55
- package/lib/service/shared.service.d.ts +18 -18
- package/lib/service/stock.service.d.ts +41 -41
- package/lib/style/_mixin.scss +14 -14
- package/lib/style/_variables.scss +21 -21
- package/lib/style/sharedcomponents-globals.scss +10 -10
- package/lib/utils/array-utils.d.ts +63 -63
- package/lib/utils/calendar.utils.d.ts +10 -10
- package/lib/utils/check-precision-and-scale-result.d.ts +4 -4
- package/lib/utils/check-within-stepped-bounds-result.d.ts +8 -8
- package/lib/utils/co-document-shared-field-logic.d.ts +7 -7
- package/lib/utils/date-utils.d.ts +44 -44
- package/lib/utils/enum-utils.d.ts +31 -31
- package/lib/utils/function/not-nill.function.d.ts +1 -1
- package/lib/utils/is-nill.function.d.ts +1 -1
- package/lib/utils/map-utils.d.ts +16 -16
- package/lib/utils/number-utils.d.ts +125 -125
- package/lib/utils/object-utils.d.ts +40 -40
- package/lib/utils/ref-code-utils.d.ts +10 -10
- package/lib/utils/string-utils.d.ts +38 -38
- package/package.json +1 -1
- package/public-api.d.ts +27 -27
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
// Static utility function holder related to ref codes and string enums (as in our string enum representations of the db table REF_CODE).
|
|
2
|
-
import { NumberUtils } from "./number-utils";
|
|
3
|
-
export class RefCodeUtils {
|
|
4
|
-
// Returns true if given valueToCheck is a composition of the second numeric argument. Usesul for checking user rights, for instance.
|
|
5
|
-
static Check(valueToCheck, powTwoNumToCheckAgainst) {
|
|
6
|
-
return NumberUtils.NumIsComposedOfOtherPowTwoNum(valueToCheck, powTwoNumToCheckAgainst);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Returns true if given number value is a composition of at least one of the rest numeric arguments. Usesul for checking user rights,
|
|
10
|
-
* for instance, or any other numerical composite refcode.
|
|
11
|
-
*/
|
|
12
|
-
static CheckAny(valueToCheck, ...powTwoNumsToCheckAgainst) {
|
|
13
|
-
const len = powTwoNumsToCheckAgainst.length;
|
|
14
|
-
for (let i = 0; i < len; i++) {
|
|
15
|
-
if (RefCodeUtils.Check(valueToCheck, powTwoNumsToCheckAgainst[i])) {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
static GetMultiRefCodeChoices(multiRefCode) {
|
|
22
|
-
const choices = [];
|
|
23
|
-
// magic number 22 was chosen as a 'high' power of two, i.e. we don't expect multi ref codes with more than 21 options
|
|
24
|
-
let powTwoExponent = 22;
|
|
25
|
-
let powTwoVal = Math.pow(2, powTwoExponent);
|
|
26
|
-
let remainder = multiRefCode;
|
|
27
|
-
while (remainder > 0) {
|
|
28
|
-
if (remainder - powTwoVal >= 0) {
|
|
29
|
-
choices.push(powTwoVal);
|
|
30
|
-
remainder -= powTwoVal;
|
|
31
|
-
}
|
|
32
|
-
powTwoExponent--;
|
|
33
|
-
powTwoVal = Math.pow(2, powTwoExponent);
|
|
34
|
-
}
|
|
35
|
-
choices.reverse();
|
|
36
|
-
return choices;
|
|
37
|
-
}
|
|
38
|
-
static GetNumbersArraySum(numbersArray) {
|
|
39
|
-
if (!Array.isArray(numbersArray) || numbersArray.length === 0) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
let sum = 0;
|
|
43
|
-
numbersArray.forEach((num) => {
|
|
44
|
-
sum += num;
|
|
45
|
-
});
|
|
46
|
-
return sum;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
// Static utility function holder related to ref codes and string enums (as in our string enum representations of the db table REF_CODE).
|
|
2
|
+
import { NumberUtils } from "./number-utils";
|
|
3
|
+
export class RefCodeUtils {
|
|
4
|
+
// Returns true if given valueToCheck is a composition of the second numeric argument. Usesul for checking user rights, for instance.
|
|
5
|
+
static Check(valueToCheck, powTwoNumToCheckAgainst) {
|
|
6
|
+
return NumberUtils.NumIsComposedOfOtherPowTwoNum(valueToCheck, powTwoNumToCheckAgainst);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if given number value is a composition of at least one of the rest numeric arguments. Usesul for checking user rights,
|
|
10
|
+
* for instance, or any other numerical composite refcode.
|
|
11
|
+
*/
|
|
12
|
+
static CheckAny(valueToCheck, ...powTwoNumsToCheckAgainst) {
|
|
13
|
+
const len = powTwoNumsToCheckAgainst.length;
|
|
14
|
+
for (let i = 0; i < len; i++) {
|
|
15
|
+
if (RefCodeUtils.Check(valueToCheck, powTwoNumsToCheckAgainst[i])) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
static GetMultiRefCodeChoices(multiRefCode) {
|
|
22
|
+
const choices = [];
|
|
23
|
+
// magic number 22 was chosen as a 'high' power of two, i.e. we don't expect multi ref codes with more than 21 options
|
|
24
|
+
let powTwoExponent = 22;
|
|
25
|
+
let powTwoVal = Math.pow(2, powTwoExponent);
|
|
26
|
+
let remainder = multiRefCode;
|
|
27
|
+
while (remainder > 0) {
|
|
28
|
+
if (remainder - powTwoVal >= 0) {
|
|
29
|
+
choices.push(powTwoVal);
|
|
30
|
+
remainder -= powTwoVal;
|
|
31
|
+
}
|
|
32
|
+
powTwoExponent--;
|
|
33
|
+
powTwoVal = Math.pow(2, powTwoExponent);
|
|
34
|
+
}
|
|
35
|
+
choices.reverse();
|
|
36
|
+
return choices;
|
|
37
|
+
}
|
|
38
|
+
static GetNumbersArraySum(numbersArray) {
|
|
39
|
+
if (!Array.isArray(numbersArray) || numbersArray.length === 0) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let sum = 0;
|
|
43
|
+
numbersArray.forEach((num) => {
|
|
44
|
+
sum += num;
|
|
45
|
+
});
|
|
46
|
+
return sum;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmLWNvZGUtdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvdXRpbHMvcmVmLWNvZGUtdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEseUlBQXlJO0FBQ3pJLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUUzQyxNQUFNLE9BQU8sWUFBWTtJQUVyQixxSUFBcUk7SUFDOUgsTUFBTSxDQUFDLEtBQUssQ0FBQyxZQUFvQixFQUFFLHVCQUErQjtRQUNyRSxPQUFPLFdBQVcsQ0FBQyw2QkFBNkIsQ0FBQyxZQUFZLEVBQUUsd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cyhtdWx0aVJlZkNvZGU6IG51bWJlcik6IG51bWJlcltdIHtcclxuICAgICAgICBjb25zdCBjaG9pY2VzOiBudW1iZXJbXSA9IFtdO1xyXG5cclxuICAgICAgICAvLyBtYWdpYyBudW1iZXIgMjIgd2FzIGNob3NlbiBhcyBhICdoaWdoJyBwb3dlciBvZiB0d28sIGkuZS4gd2UgZG9uJ3QgZXhwZWN0IG11bHRpIHJlZiBjb2RlcyB3aXRoIG1vcmUgdGhhbiAyMSBvcHRpb25zXHJcbiAgICAgICAgbGV0IHBvd1R3b0V4cG9uZW50OiBudW1iZXIgPSAyMjtcclxuICAgICAgICBsZXQgcG93VHdvVmFsOiBudW1iZXIgPSBNYXRoLnBvdygyLCBwb3dUd29FeHBvbmVudCk7XHJcbiAgICAgICAgbGV0IHJlbWFpbmRlcjogbnVtYmVyID0gbXVsdGlSZWZDb2RlO1xyXG5cclxuICAgICAgICB3aGlsZSAocmVtYWluZGVyID4gMCkge1xyXG4gICAgICAgICAgICBpZiAocmVtYWluZGVyIC0gcG93VHdvVmFsID49IDApIHtcclxuICAgICAgICAgICAgICAgIGNob2ljZXMucHVzaChwb3dUd29WYWwpO1xyXG4gICAgICAgICAgICAgICAgcmVtYWluZGVyIC09IHBvd1R3b1ZhbDtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgcG93VHdvRXhwb25lbnQtLTtcclxuICAgICAgICAgICAgcG93VHdvVmFsID0gTWF0aC5wb3coMiwgcG93VHdvRXhwb25lbnQpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgY2hvaWNlcy5yZXZlcnNlKCk7XHJcbiAgICAgICAgcmV0dXJuIGNob2ljZXM7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHN0YXRpYyBHZXROdW1iZXJzQXJyYXlTdW0obnVtYmVyc0FycmF5OiBudW1iZXJbXSk6IG51bWJlciB7XHJcbiAgICAgICAgaWYgKCFBcnJheS5pc0FycmF5KG51bWJlcnNBcnJheSkgfHwgbnVtYmVyc0FycmF5Lmxlbmd0aCA9PT0gMCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBsZXQgc3VtOiBudW1iZXIgPSAwO1xyXG4gICAgICAgIG51bWJlcnNBcnJheS5mb3JFYWNoKChudW06IG51bWJlcikgPT4ge1xyXG4gICAgICAgICAgICBzdW0gKz0gbnVtO1xyXG4gICAgICAgIH0pO1xyXG4gICAgICAgIHJldHVybiBzdW07XHJcbiAgICB9XHJcbn1cclxuIl19
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
// Static utility functions holder related to strings.
|
|
2
|
-
export class StringUtils {
|
|
3
|
-
/**
|
|
4
|
-
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
5
|
-
*
|
|
6
|
-
* Example usage:
|
|
7
|
-
*
|
|
8
|
-
* source = "ABCDABCD"
|
|
9
|
-
* placeholder = "BC"
|
|
10
|
-
* replacementTexts = "Z", "Z" (REST arguments)
|
|
11
|
-
* OUTPUT = "AZDAZD"
|
|
12
|
-
*
|
|
13
|
-
* @param {string} source
|
|
14
|
-
* @param {string} placeholder
|
|
15
|
-
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
16
|
-
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
17
|
-
*/
|
|
18
|
-
static ReplaceOccurrencesIn(source, placeholder, ...replacementTexts) {
|
|
19
|
-
// parameter guards
|
|
20
|
-
if (!(source)) {
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
if (!placeholder || replacementTexts.length === 0) {
|
|
24
|
-
return source;
|
|
25
|
-
}
|
|
26
|
-
let outString = source;
|
|
27
|
-
// one replacementText means replace for all
|
|
28
|
-
if (replacementTexts.length === 1) {
|
|
29
|
-
// "g" is the g flag to replace globally
|
|
30
|
-
outString = outString.replace(placeholder, replacementTexts[0]);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
// replace occurence i by replacementTexts[i], one at a time in loop (there might be a faster way..)
|
|
34
|
-
for (let i = 0, len = replacementTexts.length; i < len; i++) {
|
|
35
|
-
outString = outString.replace(placeholder, replacementTexts[i]);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return outString;
|
|
39
|
-
}
|
|
40
|
-
// Returns the given argument as a string. Returns given defaultValue if conversion of argument to string was impossible.
|
|
41
|
-
static ParseString(arg, defaultValue = "") {
|
|
42
|
-
if (!StringUtils.IsString(arg)) {
|
|
43
|
-
if (arg && typeof arg.toString === "function") {
|
|
44
|
-
arg = arg.toString();
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
arg = defaultValue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return arg;
|
|
51
|
-
}
|
|
52
|
-
static IsString(str) {
|
|
53
|
-
return typeof str === 'string';
|
|
54
|
-
}
|
|
55
|
-
// Returns whether given str is a string and has a length > 0.
|
|
56
|
-
static IsStringWithLength(str) {
|
|
57
|
-
return str && StringUtils.IsString(str) && str.length > 0;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Example usage:
|
|
61
|
-
* str = 'File is to large to upload. Maximum file size is {0} Mb'
|
|
62
|
-
* format = [FileUtils.MaxUploadSizeInMb]
|
|
63
|
-
* output = File is to large to upload. Maximum file size is 3 Mb
|
|
64
|
-
*
|
|
65
|
-
* str = '{0} is way better than {1}'
|
|
66
|
-
* format = ['Angular2','Angular1']
|
|
67
|
-
* output = Angular2 is way better than Angular1
|
|
68
|
-
*
|
|
69
|
-
* @param str The string that contains {0} and {1} etc, for replacement by given format data
|
|
70
|
-
* @param format The format replacement data
|
|
71
|
-
* @returns {string}
|
|
72
|
-
*/
|
|
73
|
-
static Format(str, format) {
|
|
74
|
-
const args = Array.prototype.slice.call(format);
|
|
75
|
-
return str.replace(/{(\d+)}/g, function (match, number) {
|
|
76
|
-
return typeof args[number] !== "undefined" ? (args[number] !== null ? args[number] : "") : "";
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
// Returns a new string string with N amount of characters removed from the end of it.
|
|
80
|
-
static RemoveLastChars(str, amount) {
|
|
81
|
-
if (str) {
|
|
82
|
-
return str.slice(0, -1 * amount);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return str;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
// Returns given string, escaped for use as string literal in regular expressions.
|
|
89
|
-
static _escapeRegExp(str) {
|
|
90
|
-
return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
// Static utility functions holder related to strings.
|
|
2
|
+
export class StringUtils {
|
|
3
|
+
/**
|
|
4
|
+
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
5
|
+
*
|
|
6
|
+
* Example usage:
|
|
7
|
+
*
|
|
8
|
+
* source = "ABCDABCD"
|
|
9
|
+
* placeholder = "BC"
|
|
10
|
+
* replacementTexts = "Z", "Z" (REST arguments)
|
|
11
|
+
* OUTPUT = "AZDAZD"
|
|
12
|
+
*
|
|
13
|
+
* @param {string} source
|
|
14
|
+
* @param {string} placeholder
|
|
15
|
+
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
16
|
+
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
17
|
+
*/
|
|
18
|
+
static ReplaceOccurrencesIn(source, placeholder, ...replacementTexts) {
|
|
19
|
+
// parameter guards
|
|
20
|
+
if (!(source)) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (!placeholder || replacementTexts.length === 0) {
|
|
24
|
+
return source;
|
|
25
|
+
}
|
|
26
|
+
let outString = source;
|
|
27
|
+
// one replacementText means replace for all
|
|
28
|
+
if (replacementTexts.length === 1) {
|
|
29
|
+
// "g" is the g flag to replace globally
|
|
30
|
+
outString = outString.replace(placeholder, replacementTexts[0]);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
// replace occurence i by replacementTexts[i], one at a time in loop (there might be a faster way..)
|
|
34
|
+
for (let i = 0, len = replacementTexts.length; i < len; i++) {
|
|
35
|
+
outString = outString.replace(placeholder, replacementTexts[i]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return outString;
|
|
39
|
+
}
|
|
40
|
+
// Returns the given argument as a string. Returns given defaultValue if conversion of argument to string was impossible.
|
|
41
|
+
static ParseString(arg, defaultValue = "") {
|
|
42
|
+
if (!StringUtils.IsString(arg)) {
|
|
43
|
+
if (arg && typeof arg.toString === "function") {
|
|
44
|
+
arg = arg.toString();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
arg = defaultValue;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return arg;
|
|
51
|
+
}
|
|
52
|
+
static IsString(str) {
|
|
53
|
+
return typeof str === 'string';
|
|
54
|
+
}
|
|
55
|
+
// Returns whether given str is a string and has a length > 0.
|
|
56
|
+
static IsStringWithLength(str) {
|
|
57
|
+
return str && StringUtils.IsString(str) && str.length > 0;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Example usage:
|
|
61
|
+
* str = 'File is to large to upload. Maximum file size is {0} Mb'
|
|
62
|
+
* format = [FileUtils.MaxUploadSizeInMb]
|
|
63
|
+
* output = File is to large to upload. Maximum file size is 3 Mb
|
|
64
|
+
*
|
|
65
|
+
* str = '{0} is way better than {1}'
|
|
66
|
+
* format = ['Angular2','Angular1']
|
|
67
|
+
* output = Angular2 is way better than Angular1
|
|
68
|
+
*
|
|
69
|
+
* @param str The string that contains {0} and {1} etc, for replacement by given format data
|
|
70
|
+
* @param format The format replacement data
|
|
71
|
+
* @returns {string}
|
|
72
|
+
*/
|
|
73
|
+
static Format(str, format) {
|
|
74
|
+
const args = Array.prototype.slice.call(format);
|
|
75
|
+
return str.replace(/{(\d+)}/g, function (match, number) {
|
|
76
|
+
return typeof args[number] !== "undefined" ? (args[number] !== null ? args[number] : "") : "";
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
// Returns a new string string with N amount of characters removed from the end of it.
|
|
80
|
+
static RemoveLastChars(str, amount) {
|
|
81
|
+
if (str) {
|
|
82
|
+
return str.slice(0, -1 * amount);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return str;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// Returns given string, escaped for use as string literal in regular expressions.
|
|
89
|
+
static _escapeRegExp(str) {
|
|
90
|
+
return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2hhcmVkY29tcG9uZW50cy9zcmMvbGliL3V0aWxzL3N0cmluZy11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFBc0Q7QUFDdEQsTUFBTSxPQUFPLFdBQVc7SUFFdEI7Ozs7Ozs7Ozs7Ozs7O09BY0c7SUFDSSxNQUFNLENBQUMsb0JBQW9CLENBQUMsTUFBYyxFQUFFLFdBQW1CLEVBQUUsR0FBRyxnQkFBMEI7UUFDbkcsbUJBQW1CO1FBQ25CLElBQUksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxFQUFFO1lBQ2IsT0FBTyxTQUFTLENBQUM7U0FDbEI7UUFDRCxJQUFJLENBQUMsV0FBVyxJQUFJLGdCQUFnQixDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7WUFDakQsT0FBTyxNQUFNLENBQUM7U0FDZjtRQUNELElBQUksU0FBUyxHQUFXLE1BQU0s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nVtYmVyXSAhPT0gXCJ1bmRlZmluZWRcIiA/IChhcmdzW251bWJlcl0gIT09IG51bGwgPyBhcmdzW251bWJlcl0gOiBcIlwiKSA6IFwiXCI7XHJcbiAgICB9KTtcclxuICB9XHJcblxyXG4gIC8vIFJldHVybnMgYSBuZXcgc3RyaW5nIHN0cmluZyB3aXRoIE4gYW1vdW50IG9mIGNoYXJhY3RlcnMgcmVtb3ZlZCBmcm9tIHRoZSBlbmQgb2YgaXQuXHJcbiAgcHVibGljIHN0YXRpYyBSZW1vdmVMYXN0Q2hhcnMoc3RyOiBzdHJpbmcsIGFtb3VudDogbnVtYmVyKTogc3RyaW5nIHtcclxuICAgIGlmIChzdHIpIHtcclxuICAgICAgcmV0dXJuIHN0ci5zbGljZSgwLCAtMSAqIGFtb3VudCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICByZXR1cm4gc3RyO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gUmV0dXJucyBnaXZlbiBzdHJpbmcsIGVzY2FwZWQgZm9yIHVzZSBhcyBzdHJpbmcgbGl0ZXJhbCBpbiByZWd1bGFyIGV4cHJlc3Npb25zLlxyXG4gIHByaXZhdGUgc3RhdGljIF9lc2NhcGVSZWdFeHAoc3RyOiBzdHJpbmcpOiBzdHJpbmcge1xyXG4gICAgcmV0dXJuIHN0cjsvLyAucmVwbGFjZSgvW1xcLVxcW1xcXVxcL1xce1xcfVxcKFxcKVxcKlxcK1xcP1xcLlxcXFxcXF4kXFx8XS9nLCBcIlxcXFwkJlwiKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
package/esm2015/public-api.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of sharedcomponents
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/components/docsign/docsign.component';
|
|
5
|
-
export * from './lib/components/docsign/docsign.module';
|
|
6
|
-
export * from './lib/components/stock/stock.component';
|
|
7
|
-
export * from './lib/components/stock/stock.module';
|
|
8
|
-
export * from './lib/components/stock/localization/translation';
|
|
9
|
-
export * from './lib/components/send-method-dialog/send-method-dialog.component';
|
|
10
|
-
export * from './lib/components/send-method-dialog/send-method-dialog.module';
|
|
11
|
-
export * from './lib/components/key-pad/key-pad.component';
|
|
12
|
-
export * from './lib/components/key-pad/key-pad.module';
|
|
13
|
-
export * from './lib/components/layout-switcher/layout-switcher.component';
|
|
14
|
-
export * from './lib/components/layout-switcher/layout-switcher.module';
|
|
15
|
-
export * from './lib/components/linear-gauge/co-linear-gauge.component';
|
|
16
|
-
export * from './lib/components/linear-gauge/co-linear-gauge.module';
|
|
17
|
-
export * from './lib/components/statusbar/statusbar.component';
|
|
18
|
-
export * from './lib/components/statusbar/statusbar.module';
|
|
19
|
-
export * from './lib/components/date-planning/date-planning.component';
|
|
20
|
-
export * from './lib/components/date-planning/date-planning.module';
|
|
21
|
-
export * from './lib/components/simple-tags/simple-tags.component';
|
|
22
|
-
export * from './lib/components/simple-tags/simple-tags.module';
|
|
23
|
-
export * from './lib/components/files-upload/files-upload.component';
|
|
24
|
-
export * from './lib/components/files-upload/files-upload.module';
|
|
25
|
-
export * from './lib/components/activity-list/activity-list.component';
|
|
26
|
-
export * from './lib/components/activity-list/activity-list.module';
|
|
27
|
-
export * from './lib/service/shared.service';
|
|
28
|
-
export * from './lib/enum/calendar-view.enum';
|
|
29
|
-
export * from './lib/model/agenda-event-per-day.model';
|
|
30
|
-
export * from './lib/model/agenda-event.model';
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of sharedcomponents
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/components/docsign/docsign.component';
|
|
5
|
+
export * from './lib/components/docsign/docsign.module';
|
|
6
|
+
export * from './lib/components/stock/stock.component';
|
|
7
|
+
export * from './lib/components/stock/stock.module';
|
|
8
|
+
export * from './lib/components/stock/localization/translation';
|
|
9
|
+
export * from './lib/components/send-method-dialog/send-method-dialog.component';
|
|
10
|
+
export * from './lib/components/send-method-dialog/send-method-dialog.module';
|
|
11
|
+
export * from './lib/components/key-pad/key-pad.component';
|
|
12
|
+
export * from './lib/components/key-pad/key-pad.module';
|
|
13
|
+
export * from './lib/components/layout-switcher/layout-switcher.component';
|
|
14
|
+
export * from './lib/components/layout-switcher/layout-switcher.module';
|
|
15
|
+
export * from './lib/components/linear-gauge/co-linear-gauge.component';
|
|
16
|
+
export * from './lib/components/linear-gauge/co-linear-gauge.module';
|
|
17
|
+
export * from './lib/components/statusbar/statusbar.component';
|
|
18
|
+
export * from './lib/components/statusbar/statusbar.module';
|
|
19
|
+
export * from './lib/components/date-planning/date-planning.component';
|
|
20
|
+
export * from './lib/components/date-planning/date-planning.module';
|
|
21
|
+
export * from './lib/components/simple-tags/simple-tags.component';
|
|
22
|
+
export * from './lib/components/simple-tags/simple-tags.module';
|
|
23
|
+
export * from './lib/components/files-upload/files-upload.component';
|
|
24
|
+
export * from './lib/components/files-upload/files-upload.module';
|
|
25
|
+
export * from './lib/components/activity-list/activity-list.component';
|
|
26
|
+
export * from './lib/components/activity-list/activity-list.module';
|
|
27
|
+
export * from './lib/service/shared.service';
|
|
28
|
+
export * from './lib/enum/calendar-view.enum';
|
|
29
|
+
export * from './lib/model/agenda-event-per-day.model';
|
|
30
|
+
export * from './lib/model/agenda-event.model';
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3NoYXJlZGNvbXBvbmVudHMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxj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