@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,44 +1,44 @@
|
|
|
1
|
-
import { Month } from "../enum/month.enum";
|
|
2
|
-
import { Moment } from "moment";
|
|
3
|
-
import { DatePipe } from "@angular/common";
|
|
4
|
-
import { DateRange } from "../model/date-range";
|
|
5
|
-
export declare class DateUtils {
|
|
6
|
-
static readonly BACKEND_DATE_FORMAT: string;
|
|
7
|
-
static datePipe: DatePipe;
|
|
8
|
-
static NowAsString(): string;
|
|
9
|
-
static ParseDate(date: Date, format?: string): string;
|
|
10
|
-
static GetWeekNumber(date: Date): number;
|
|
11
|
-
static GetDaysFromNow(date: Date): number;
|
|
12
|
-
static StringAsDate(str: string, format?: string): Date;
|
|
13
|
-
static MomentToDate(time: Moment): Date;
|
|
14
|
-
static GetCurrentMonth(): Month;
|
|
15
|
-
static Get12MonthsArrayWithFirstMonthIsCurrentMonth(): Month[];
|
|
16
|
-
static GetFirstDayOfWeek(date: Date): Date;
|
|
17
|
-
static GetLastDayOfWeek(date: Date): Date;
|
|
18
|
-
static GetFirstDayOfMonth(date: Date): Date;
|
|
19
|
-
static GetLastDayOfMonth(date: Date): Date;
|
|
20
|
-
static DatesEqual(date1: Date, date2: Date): boolean;
|
|
21
|
-
static DateRangeEqual(dates1: DateRange, dates2: DateRange): boolean;
|
|
22
|
-
static AddMinutes(date: Date, minutes: number): Date;
|
|
23
|
-
static AddDays(date: Date, days: number): Date;
|
|
24
|
-
static AddMonths(date: Date, months: number): Date;
|
|
25
|
-
static DetermineDSTBreakpoints(): {
|
|
26
|
-
start: string;
|
|
27
|
-
end: string;
|
|
28
|
-
};
|
|
29
|
-
private static _ValidDate;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the difference between the two given days as the number of days, in float precision (date to - date from).
|
|
32
|
-
* Returns negative values of the 'from' date is later than in time than the 'to' date.
|
|
33
|
-
*/
|
|
34
|
-
static GetDayDifference(from: Date, to: Date): number;
|
|
35
|
-
static IsSameDay(dateOne: Date, dateTwo: Date): boolean;
|
|
36
|
-
static IsInBetween(date: Date, startDate: Date, endDate: Date, withTime?: boolean): boolean;
|
|
37
|
-
static IsMonday(date: Date): boolean;
|
|
38
|
-
static IsSunday(date: Date): boolean;
|
|
39
|
-
static IsToday(date: Date): boolean;
|
|
40
|
-
static ParseDateInShortDateFormat(date: Date, locale: string): string;
|
|
41
|
-
static getFormattedDateRangeString(dateRangeString: string, separator?: string): string;
|
|
42
|
-
static SetDateOrDateRangeObjectHoursZero(date: Date | DateRange): void;
|
|
43
|
-
private static _DateToTimeStringWithDateFormat;
|
|
44
|
-
}
|
|
1
|
+
import { Month } from "../enum/month.enum";
|
|
2
|
+
import { Moment } from "moment";
|
|
3
|
+
import { DatePipe } from "@angular/common";
|
|
4
|
+
import { DateRange } from "../model/date-range";
|
|
5
|
+
export declare class DateUtils {
|
|
6
|
+
static readonly BACKEND_DATE_FORMAT: string;
|
|
7
|
+
static datePipe: DatePipe;
|
|
8
|
+
static NowAsString(): string;
|
|
9
|
+
static ParseDate(date: Date, format?: string): string;
|
|
10
|
+
static GetWeekNumber(date: Date): number;
|
|
11
|
+
static GetDaysFromNow(date: Date): number;
|
|
12
|
+
static StringAsDate(str: string, format?: string): Date;
|
|
13
|
+
static MomentToDate(time: Moment): Date;
|
|
14
|
+
static GetCurrentMonth(): Month;
|
|
15
|
+
static Get12MonthsArrayWithFirstMonthIsCurrentMonth(): Month[];
|
|
16
|
+
static GetFirstDayOfWeek(date: Date): Date;
|
|
17
|
+
static GetLastDayOfWeek(date: Date): Date;
|
|
18
|
+
static GetFirstDayOfMonth(date: Date): Date;
|
|
19
|
+
static GetLastDayOfMonth(date: Date): Date;
|
|
20
|
+
static DatesEqual(date1: Date, date2: Date): boolean;
|
|
21
|
+
static DateRangeEqual(dates1: DateRange, dates2: DateRange): boolean;
|
|
22
|
+
static AddMinutes(date: Date, minutes: number): Date;
|
|
23
|
+
static AddDays(date: Date, days: number): Date;
|
|
24
|
+
static AddMonths(date: Date, months: number): Date;
|
|
25
|
+
static DetermineDSTBreakpoints(): {
|
|
26
|
+
start: string;
|
|
27
|
+
end: string;
|
|
28
|
+
};
|
|
29
|
+
private static _ValidDate;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the difference between the two given days as the number of days, in float precision (date to - date from).
|
|
32
|
+
* Returns negative values of the 'from' date is later than in time than the 'to' date.
|
|
33
|
+
*/
|
|
34
|
+
static GetDayDifference(from: Date, to: Date): number;
|
|
35
|
+
static IsSameDay(dateOne: Date, dateTwo: Date): boolean;
|
|
36
|
+
static IsInBetween(date: Date, startDate: Date, endDate: Date, withTime?: boolean): boolean;
|
|
37
|
+
static IsMonday(date: Date): boolean;
|
|
38
|
+
static IsSunday(date: Date): boolean;
|
|
39
|
+
static IsToday(date: Date): boolean;
|
|
40
|
+
static ParseDateInShortDateFormat(date: Date, locale: string): string;
|
|
41
|
+
static getFormattedDateRangeString(dateRangeString: string, separator?: string): string;
|
|
42
|
+
static SetDateOrDateRangeObjectHoursZero(date: Date | DateRange): void;
|
|
43
|
+
private static _DateToTimeStringWithDateFormat;
|
|
44
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { KeyValuePair } from "../interface/key-value-pair";
|
|
2
|
-
import { CoDomainValue } from "@colijnit/mainapi/build/model/co-domain-value.bo";
|
|
3
|
-
import { DictionaryService } from "../service/dictionary.service";
|
|
4
|
-
export declare class EnumUtils {
|
|
5
|
-
static StringEnumToArray(clazz: any): string[];
|
|
6
|
-
/**
|
|
7
|
-
* Returns a single string representation of given string enum class
|
|
8
|
-
* @param clazz
|
|
9
|
-
* @returns {string} eg "input-lov-slideout, financial-customer-group-select" for a given clazz of InputLovSlideoutComponentSelectors
|
|
10
|
-
*/
|
|
11
|
-
static StringEnumToSingleString(clazz: any): string;
|
|
12
|
-
static GetNumberEnumValues(numberEnumClass: any): any[];
|
|
13
|
-
static GetStringEnumValues(stringEnumClass: any): any[];
|
|
14
|
-
static GetObjValues(numberEnumClass: any): (number | string)[];
|
|
15
|
-
/**
|
|
16
|
-
* Returns the enum in object format to make handling easier
|
|
17
|
-
* Works for Enums with the following format:
|
|
18
|
-
* foo: 1
|
|
19
|
-
* bar: 2
|
|
20
|
-
* etc...
|
|
21
|
-
* @param enumClass
|
|
22
|
-
* @returns {Object}
|
|
23
|
-
*/
|
|
24
|
-
static createObjectFromEnum(enumClass: any): KeyValuePair[];
|
|
25
|
-
static getStringEnumKeysArray(enumType: object): string[];
|
|
26
|
-
static buildPromiseDomainValueListFromEnumClass(enumClass: any, dictionary: DictionaryService, keysAsDescription?: boolean): Promise<CoDomainValue[]>;
|
|
27
|
-
static buildDomainValueListFromEnumClass(enumClass: any, dictionary: DictionaryService, keysAsDescription?: boolean): CoDomainValue[];
|
|
28
|
-
static getKeyByValue(enumType: object, enumValue: string): string;
|
|
29
|
-
private static isNumeral;
|
|
30
|
-
}
|
|
31
|
-
export declare function StringEnumToSingleString(clazz: any): string;
|
|
1
|
+
import { KeyValuePair } from "../interface/key-value-pair";
|
|
2
|
+
import { CoDomainValue } from "@colijnit/mainapi/build/model/co-domain-value.bo";
|
|
3
|
+
import { DictionaryService } from "../service/dictionary.service";
|
|
4
|
+
export declare class EnumUtils {
|
|
5
|
+
static StringEnumToArray(clazz: any): string[];
|
|
6
|
+
/**
|
|
7
|
+
* Returns a single string representation of given string enum class
|
|
8
|
+
* @param clazz
|
|
9
|
+
* @returns {string} eg "input-lov-slideout, financial-customer-group-select" for a given clazz of InputLovSlideoutComponentSelectors
|
|
10
|
+
*/
|
|
11
|
+
static StringEnumToSingleString(clazz: any): string;
|
|
12
|
+
static GetNumberEnumValues(numberEnumClass: any): any[];
|
|
13
|
+
static GetStringEnumValues(stringEnumClass: any): any[];
|
|
14
|
+
static GetObjValues(numberEnumClass: any): (number | string)[];
|
|
15
|
+
/**
|
|
16
|
+
* Returns the enum in object format to make handling easier
|
|
17
|
+
* Works for Enums with the following format:
|
|
18
|
+
* foo: 1
|
|
19
|
+
* bar: 2
|
|
20
|
+
* etc...
|
|
21
|
+
* @param enumClass
|
|
22
|
+
* @returns {Object}
|
|
23
|
+
*/
|
|
24
|
+
static createObjectFromEnum(enumClass: any): KeyValuePair[];
|
|
25
|
+
static getStringEnumKeysArray(enumType: object): string[];
|
|
26
|
+
static buildPromiseDomainValueListFromEnumClass(enumClass: any, dictionary: DictionaryService, keysAsDescription?: boolean): Promise<CoDomainValue[]>;
|
|
27
|
+
static buildDomainValueListFromEnumClass(enumClass: any, dictionary: DictionaryService, keysAsDescription?: boolean): CoDomainValue[];
|
|
28
|
+
static getKeyByValue(enumType: object, enumValue: string): string;
|
|
29
|
+
private static isNumeral;
|
|
30
|
+
}
|
|
31
|
+
export declare function StringEnumToSingleString(clazz: any): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function notNill(value: any): boolean;
|
|
1
|
+
export declare function notNill(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isNill(value: any): boolean;
|
|
1
|
+
export declare function isNill(value: any): boolean;
|
package/lib/utils/map-utils.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare class MapUtils {
|
|
2
|
-
/**
|
|
3
|
-
* Returns the first key from given map, for which the value filter holds true. Basically a reverse Map.get(key) function.
|
|
4
|
-
* @param map
|
|
5
|
-
* @param valueFilter For the first value that returns true for this filter functions, its key will be returned.
|
|
6
|
-
*/
|
|
7
|
-
static FindKeyByValue<K, V>(map: Map<K, V>, valueFilter: (value: V) => boolean): K;
|
|
8
|
-
/**
|
|
9
|
-
* Inserts given arrayEntry into given map, under given mapKey. What's special here, is that a NEW map entry is created with an array
|
|
10
|
-
* containing the single [arrayEntry] item, if no entry yet existed.
|
|
11
|
-
* @param map
|
|
12
|
-
* @param mapKey
|
|
13
|
-
* @param arrayEntry
|
|
14
|
-
*/
|
|
15
|
-
static InsertArrayItemIntoMap(map: Map<any, any>, mapKey: any, arrayEntry: any): void;
|
|
16
|
-
}
|
|
1
|
+
export declare class MapUtils {
|
|
2
|
+
/**
|
|
3
|
+
* Returns the first key from given map, for which the value filter holds true. Basically a reverse Map.get(key) function.
|
|
4
|
+
* @param map
|
|
5
|
+
* @param valueFilter For the first value that returns true for this filter functions, its key will be returned.
|
|
6
|
+
*/
|
|
7
|
+
static FindKeyByValue<K, V>(map: Map<K, V>, valueFilter: (value: V) => boolean): K;
|
|
8
|
+
/**
|
|
9
|
+
* Inserts given arrayEntry into given map, under given mapKey. What's special here, is that a NEW map entry is created with an array
|
|
10
|
+
* containing the single [arrayEntry] item, if no entry yet existed.
|
|
11
|
+
* @param map
|
|
12
|
+
* @param mapKey
|
|
13
|
+
* @param arrayEntry
|
|
14
|
+
*/
|
|
15
|
+
static InsertArrayItemIntoMap(map: Map<any, any>, mapKey: any, arrayEntry: any): void;
|
|
16
|
+
}
|
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import { CheckWithinSteppedBoundsResult } from "./check-within-stepped-bounds-result";
|
|
2
|
-
import { CheckPrecisionAndScaleResult } from "./check-precision-and-scale-result";
|
|
3
|
-
export declare class NumberUtils {
|
|
4
|
-
static ParseIntNumberInput(arg: any): number;
|
|
5
|
-
static ParseInt(arg: any): number;
|
|
6
|
-
static ParseFloatNumberInput(arg: any, decimalPrecision?: number): number;
|
|
7
|
-
static ParseFloatNumberInputKeepPrecision(arg: any): number;
|
|
8
|
-
/**
|
|
9
|
-
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
10
|
-
*
|
|
11
|
-
* @param {any} arg The argument to parse to a float
|
|
12
|
-
* @param {number} decimalPrecision The number of decimals, or the precision, the parsed return float should have
|
|
13
|
-
* @returns {number} NaN if not possible, else the parsed float value
|
|
14
|
-
*/
|
|
15
|
-
static ParseFloat(arg: any, decimalPrecision?: number): number;
|
|
16
|
-
/**
|
|
17
|
-
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
18
|
-
*
|
|
19
|
-
* @param arg The argument to parse to a float
|
|
20
|
-
* @returns {number} The argument as a float with its original decimal precision intact
|
|
21
|
-
*/
|
|
22
|
-
static ParseFloatKeepPrecision(arg: any): number;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the given argument as a number. Returns given defaultValue if conversion of argument was impossible.
|
|
25
|
-
* @param arg
|
|
26
|
-
* @param {number} [defaultValue = 0]
|
|
27
|
-
* @returns {number}
|
|
28
|
-
*/
|
|
29
|
-
static ParseNumberOrDefault(arg: any, defaultValue?: number): number;
|
|
30
|
-
static IsInteger(arg: any): boolean;
|
|
31
|
-
static GetDecimalPlaces(arg: any, maxAnswer?: number): number;
|
|
32
|
-
static ParseNumberInputOrDefault(numberInput: any, defaultValue?: number): number;
|
|
33
|
-
static IsNumber(arg: any): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Returns whether given arg is indeed not a number (it's NaN or it has another type than 'number')
|
|
36
|
-
* Our exact copy of AS Flex'es isNaN(arg) function. Always use this method for copying Flex isNaN(..) occurences into TypeScript.
|
|
37
|
-
* @param arg
|
|
38
|
-
* @returns {boolean}
|
|
39
|
-
* @constructor
|
|
40
|
-
*/
|
|
41
|
-
static IsNaN(arg: any): boolean;
|
|
42
|
-
static NaN(number: any, substitute?: number): number;
|
|
43
|
-
static IsParsableNumber(arg: any): boolean;
|
|
44
|
-
static IsParsableNumberInput(numberInput: any): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Returns whether given arg is parseable as a number, and whether the lengts of its number parse result is equal to its original length.
|
|
47
|
-
* I.e. this function returns FALSE with given number-parsable strings, but that have non-numeric appendices, eg '2233ff'. That arg
|
|
48
|
-
* IS number-parseable, but not a strict 'string number', the latter being what this method actually checks for.
|
|
49
|
-
*/
|
|
50
|
-
static IsStringNumber(arg: string): boolean;
|
|
51
|
-
static IsListOfNumbers(arg: string, separator?: string): boolean;
|
|
52
|
-
static ParseStringNumber(arg: string): number;
|
|
53
|
-
static ParseStringNumberDefault(arg: string | any, defaultValue?: number): number;
|
|
54
|
-
/**
|
|
55
|
-
* Returns a random integer in range [lowerBound .. upperBound], an inclusive range. Returns NaN if not possible.
|
|
56
|
-
* Given bounds are truncated first, before serving as the true lower- and upper bounds for the random int.
|
|
57
|
-
*/
|
|
58
|
-
static RandomInt(lowerBoundInt: number, upperBoundInt: number): number;
|
|
59
|
-
static AddThousandsCommasTo(value: any): string;
|
|
60
|
-
/**
|
|
61
|
-
* Function used to check wether a given number is composed of another number, power-of-two wise.
|
|
62
|
-
* Example usage: NumberUtils.NumIsComposedOf(articleListObject.publication, ArticlePublication.Selector).
|
|
63
|
-
* This would return whether or not that articleListObject was publicated for selector or not, where articleListObject.publication
|
|
64
|
-
* was possibly a 'COMPOSITE that was made out of (including)' ArticlePublication.Selector.
|
|
65
|
-
*/
|
|
66
|
-
static NumIsComposedOfOtherPowTwoNum(bigNrToCheck: number, powTwoNumItShouldBeComposedOf: number): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Returns given nr, or the given default number (default 0) if the nr number was undefined or otherwise not a number.
|
|
69
|
-
* Same as CoMath.NaN from AS code (used as its substitute in transaction logic)
|
|
70
|
-
* @param nr
|
|
71
|
-
* @param defaultNr
|
|
72
|
-
* @returns {number}
|
|
73
|
-
*/
|
|
74
|
-
static NrOrDefault(nr: number, defaultNr?: number): number;
|
|
75
|
-
/**
|
|
76
|
-
* Returns whether given nrToCheck is within the given precision and scale limits. Precision and scale, here, are Oracle DB terms.
|
|
77
|
-
* This function can thus be used to check whether the given number is safe to send to the 'database' beforehand, if we know the
|
|
78
|
-
* precision and scale of the number in the db declaration.
|
|
79
|
-
*
|
|
80
|
-
* I.e. A number declared in the Oracle DB as number(5, 2) has a precision of 5 and a scale of 2.
|
|
81
|
-
*
|
|
82
|
-
* @param {number} nrToCheck
|
|
83
|
-
* @param {number} precision The number of significant digits, including possibly negative scale. E.g. 3 in '123' and 5 in '51.123'
|
|
84
|
-
* @param {number} [scale = 0] The number of significant digits AFTER the decimal point. E.g. 1 in 5432.1 and 3 in 54000.003
|
|
85
|
-
* @returns {CheckPrecisionAndScaleResult} Whether given nrToCheck is ok for given precision and scale, and if not, the
|
|
86
|
-
* nearest number that IS ok for those constraints.
|
|
87
|
-
*/
|
|
88
|
-
static CheckPrecisionAndScale(nrToCheck: number, precision: number, scale?: number): CheckPrecisionAndScaleResult;
|
|
89
|
-
/**
|
|
90
|
-
* Returns whether given x is OK within the given min, max and step boundaries, where it should hold that nrToCheck = min + N * step,
|
|
91
|
-
* with N integer or 0.
|
|
92
|
-
* @param {number} nrToCheck Number to check whether it's within the given bounds
|
|
93
|
-
* @param min Inclusive
|
|
94
|
-
* @param max Inclusive
|
|
95
|
-
* @param stepSize
|
|
96
|
-
* @returns {CheckWithinSteppedBounds} Returns remainder of undefined when nrToCheck was OUTSIDE [min, max], else full result object.
|
|
97
|
-
*/
|
|
98
|
-
static CheckWithinSteppedBounds(nrToCheck: number, min: number, max: number, stepSize?: number): CheckWithinSteppedBoundsResult;
|
|
99
|
-
/**
|
|
100
|
-
* Finds the number closest to the originalNumber, that adheres to the given bounds. That is, for which it holds that
|
|
101
|
-
* nr = min + N * step with N integer or 0.
|
|
102
|
-
* @param {number} originalNr Find closest answer to this number
|
|
103
|
-
* @param min Inclusive
|
|
104
|
-
* @param max Inclusive
|
|
105
|
-
* @param stepSize
|
|
106
|
-
* @returns {boolean} The closest OK number for bounds.
|
|
107
|
-
*/
|
|
108
|
-
static GetNearestNumberWithinSteppedBounds(originalNr: number, min: number, max: number, stepSize?: number): number;
|
|
109
|
-
/**
|
|
110
|
-
* Returns the true maximum allowed value for the given "stepped bounds": min, stepSize and max, for which it holds that each allowed
|
|
111
|
-
* value Y = min + stepSize * N, for any INTEGER or 0 N where it also holds, of course, that Y <= max.
|
|
112
|
-
* @param min
|
|
113
|
-
* @param max
|
|
114
|
-
* @param stepSize
|
|
115
|
-
*/
|
|
116
|
-
static GetTrueSteppedBoundsMax(min: number, max: number, stepSize?: number): number;
|
|
117
|
-
static GetNearestNumberWithinBounds(originalNr: number, min: number, max: number): number;
|
|
118
|
-
static ToString(nr: number): string;
|
|
119
|
-
static DecimalsToStepIncrement(numberOfDecimals: number): number;
|
|
120
|
-
static Round(value: number, decimals: number): number;
|
|
121
|
-
static PrecisionScaleToMaxValue(precision: number, scale: number): number;
|
|
122
|
-
static DifferenceBetweenNumbers(numberA: number, numberB: number): number;
|
|
123
|
-
private static _GetLargestDecimalPrecisionOf;
|
|
124
|
-
private static _NumberInputToNumberStr;
|
|
125
|
-
}
|
|
1
|
+
import { CheckWithinSteppedBoundsResult } from "./check-within-stepped-bounds-result";
|
|
2
|
+
import { CheckPrecisionAndScaleResult } from "./check-precision-and-scale-result";
|
|
3
|
+
export declare class NumberUtils {
|
|
4
|
+
static ParseIntNumberInput(arg: any): number;
|
|
5
|
+
static ParseInt(arg: any): number;
|
|
6
|
+
static ParseFloatNumberInput(arg: any, decimalPrecision?: number): number;
|
|
7
|
+
static ParseFloatNumberInputKeepPrecision(arg: any): number;
|
|
8
|
+
/**
|
|
9
|
+
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
10
|
+
*
|
|
11
|
+
* @param {any} arg The argument to parse to a float
|
|
12
|
+
* @param {number} decimalPrecision The number of decimals, or the precision, the parsed return float should have
|
|
13
|
+
* @returns {number} NaN if not possible, else the parsed float value
|
|
14
|
+
*/
|
|
15
|
+
static ParseFloat(arg: any, decimalPrecision?: number): number;
|
|
16
|
+
/**
|
|
17
|
+
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
18
|
+
*
|
|
19
|
+
* @param arg The argument to parse to a float
|
|
20
|
+
* @returns {number} The argument as a float with its original decimal precision intact
|
|
21
|
+
*/
|
|
22
|
+
static ParseFloatKeepPrecision(arg: any): number;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the given argument as a number. Returns given defaultValue if conversion of argument was impossible.
|
|
25
|
+
* @param arg
|
|
26
|
+
* @param {number} [defaultValue = 0]
|
|
27
|
+
* @returns {number}
|
|
28
|
+
*/
|
|
29
|
+
static ParseNumberOrDefault(arg: any, defaultValue?: number): number;
|
|
30
|
+
static IsInteger(arg: any): boolean;
|
|
31
|
+
static GetDecimalPlaces(arg: any, maxAnswer?: number): number;
|
|
32
|
+
static ParseNumberInputOrDefault(numberInput: any, defaultValue?: number): number;
|
|
33
|
+
static IsNumber(arg: any): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Returns whether given arg is indeed not a number (it's NaN or it has another type than 'number')
|
|
36
|
+
* Our exact copy of AS Flex'es isNaN(arg) function. Always use this method for copying Flex isNaN(..) occurences into TypeScript.
|
|
37
|
+
* @param arg
|
|
38
|
+
* @returns {boolean}
|
|
39
|
+
* @constructor
|
|
40
|
+
*/
|
|
41
|
+
static IsNaN(arg: any): boolean;
|
|
42
|
+
static NaN(number: any, substitute?: number): number;
|
|
43
|
+
static IsParsableNumber(arg: any): boolean;
|
|
44
|
+
static IsParsableNumberInput(numberInput: any): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Returns whether given arg is parseable as a number, and whether the lengts of its number parse result is equal to its original length.
|
|
47
|
+
* I.e. this function returns FALSE with given number-parsable strings, but that have non-numeric appendices, eg '2233ff'. That arg
|
|
48
|
+
* IS number-parseable, but not a strict 'string number', the latter being what this method actually checks for.
|
|
49
|
+
*/
|
|
50
|
+
static IsStringNumber(arg: string): boolean;
|
|
51
|
+
static IsListOfNumbers(arg: string, separator?: string): boolean;
|
|
52
|
+
static ParseStringNumber(arg: string): number;
|
|
53
|
+
static ParseStringNumberDefault(arg: string | any, defaultValue?: number): number;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a random integer in range [lowerBound .. upperBound], an inclusive range. Returns NaN if not possible.
|
|
56
|
+
* Given bounds are truncated first, before serving as the true lower- and upper bounds for the random int.
|
|
57
|
+
*/
|
|
58
|
+
static RandomInt(lowerBoundInt: number, upperBoundInt: number): number;
|
|
59
|
+
static AddThousandsCommasTo(value: any): string;
|
|
60
|
+
/**
|
|
61
|
+
* Function used to check wether a given number is composed of another number, power-of-two wise.
|
|
62
|
+
* Example usage: NumberUtils.NumIsComposedOf(articleListObject.publication, ArticlePublication.Selector).
|
|
63
|
+
* This would return whether or not that articleListObject was publicated for selector or not, where articleListObject.publication
|
|
64
|
+
* was possibly a 'COMPOSITE that was made out of (including)' ArticlePublication.Selector.
|
|
65
|
+
*/
|
|
66
|
+
static NumIsComposedOfOtherPowTwoNum(bigNrToCheck: number, powTwoNumItShouldBeComposedOf: number): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Returns given nr, or the given default number (default 0) if the nr number was undefined or otherwise not a number.
|
|
69
|
+
* Same as CoMath.NaN from AS code (used as its substitute in transaction logic)
|
|
70
|
+
* @param nr
|
|
71
|
+
* @param defaultNr
|
|
72
|
+
* @returns {number}
|
|
73
|
+
*/
|
|
74
|
+
static NrOrDefault(nr: number, defaultNr?: number): number;
|
|
75
|
+
/**
|
|
76
|
+
* Returns whether given nrToCheck is within the given precision and scale limits. Precision and scale, here, are Oracle DB terms.
|
|
77
|
+
* This function can thus be used to check whether the given number is safe to send to the 'database' beforehand, if we know the
|
|
78
|
+
* precision and scale of the number in the db declaration.
|
|
79
|
+
*
|
|
80
|
+
* I.e. A number declared in the Oracle DB as number(5, 2) has a precision of 5 and a scale of 2.
|
|
81
|
+
*
|
|
82
|
+
* @param {number} nrToCheck
|
|
83
|
+
* @param {number} precision The number of significant digits, including possibly negative scale. E.g. 3 in '123' and 5 in '51.123'
|
|
84
|
+
* @param {number} [scale = 0] The number of significant digits AFTER the decimal point. E.g. 1 in 5432.1 and 3 in 54000.003
|
|
85
|
+
* @returns {CheckPrecisionAndScaleResult} Whether given nrToCheck is ok for given precision and scale, and if not, the
|
|
86
|
+
* nearest number that IS ok for those constraints.
|
|
87
|
+
*/
|
|
88
|
+
static CheckPrecisionAndScale(nrToCheck: number, precision: number, scale?: number): CheckPrecisionAndScaleResult;
|
|
89
|
+
/**
|
|
90
|
+
* Returns whether given x is OK within the given min, max and step boundaries, where it should hold that nrToCheck = min + N * step,
|
|
91
|
+
* with N integer or 0.
|
|
92
|
+
* @param {number} nrToCheck Number to check whether it's within the given bounds
|
|
93
|
+
* @param min Inclusive
|
|
94
|
+
* @param max Inclusive
|
|
95
|
+
* @param stepSize
|
|
96
|
+
* @returns {CheckWithinSteppedBounds} Returns remainder of undefined when nrToCheck was OUTSIDE [min, max], else full result object.
|
|
97
|
+
*/
|
|
98
|
+
static CheckWithinSteppedBounds(nrToCheck: number, min: number, max: number, stepSize?: number): CheckWithinSteppedBoundsResult;
|
|
99
|
+
/**
|
|
100
|
+
* Finds the number closest to the originalNumber, that adheres to the given bounds. That is, for which it holds that
|
|
101
|
+
* nr = min + N * step with N integer or 0.
|
|
102
|
+
* @param {number} originalNr Find closest answer to this number
|
|
103
|
+
* @param min Inclusive
|
|
104
|
+
* @param max Inclusive
|
|
105
|
+
* @param stepSize
|
|
106
|
+
* @returns {boolean} The closest OK number for bounds.
|
|
107
|
+
*/
|
|
108
|
+
static GetNearestNumberWithinSteppedBounds(originalNr: number, min: number, max: number, stepSize?: number): number;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the true maximum allowed value for the given "stepped bounds": min, stepSize and max, for which it holds that each allowed
|
|
111
|
+
* value Y = min + stepSize * N, for any INTEGER or 0 N where it also holds, of course, that Y <= max.
|
|
112
|
+
* @param min
|
|
113
|
+
* @param max
|
|
114
|
+
* @param stepSize
|
|
115
|
+
*/
|
|
116
|
+
static GetTrueSteppedBoundsMax(min: number, max: number, stepSize?: number): number;
|
|
117
|
+
static GetNearestNumberWithinBounds(originalNr: number, min: number, max: number): number;
|
|
118
|
+
static ToString(nr: number): string;
|
|
119
|
+
static DecimalsToStepIncrement(numberOfDecimals: number): number;
|
|
120
|
+
static Round(value: number, decimals: number): number;
|
|
121
|
+
static PrecisionScaleToMaxValue(precision: number, scale: number): number;
|
|
122
|
+
static DifferenceBetweenNumbers(numberA: number, numberB: number): number;
|
|
123
|
+
private static _GetLargestDecimalPrecisionOf;
|
|
124
|
+
private static _NumberInputToNumberStr;
|
|
125
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export declare class ObjectUtils {
|
|
2
|
-
/**
|
|
3
|
-
* Returns whether all given values exist: for all values it holds that they are not null nor undefined. Short-circuit check.
|
|
4
|
-
* @param {any} values Rest parameters with all objects to check existence for.
|
|
5
|
-
* @returns {boolean} True if ALL given values are not null nor undefined, otherwise false (if at least one value was null or undefined)
|
|
6
|
-
*/
|
|
7
|
-
static AllExist(...values: any[]): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Copies all properties from object 'from' to object 'to'. Overwrites properties on object 'to' if property already exists.
|
|
10
|
-
* Does not copy functions, only properties.
|
|
11
|
-
* @param {Object} from The source object from which to copy all properties of to the 'to' object.
|
|
12
|
-
* @param {Object} to The object to which the properties of the 'from' object will be copied.
|
|
13
|
-
* @param {boolean} [allowUndefined = true] wether the 'to' object may be assigned null or undefined values to any of its properties.
|
|
14
|
-
*/
|
|
15
|
-
static CopyPropertiesFrom<T>(from: Object, to: T, allowUndefined?: boolean): T;
|
|
16
|
-
static DeepEquals(actual: any, expected: any): boolean;
|
|
17
|
-
static ForOwnProperty(plainObject: any, callback: (propVal: any, key: string) => any): void;
|
|
18
|
-
static GetClassName(objectOrClass: any): string;
|
|
19
|
-
static GetShallowClone(originalObject: any, objectClass?: any): any;
|
|
20
|
-
static GetDeepClone(originalObject: any, circular?: boolean): any;
|
|
21
|
-
static IsEmpty(obj: any): boolean;
|
|
22
|
-
static IsPlainObject(object: any): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Returns an instance of given class with data of given dataObject. Only works if that class has a default constructor without args.
|
|
25
|
-
* Does not actually create a new object if it alread is an instance of that class.
|
|
26
|
-
* @param {any} clazz A class that has a default constructor
|
|
27
|
-
* @param {any} [dataObject] The object with data to copy to the new instance of the class
|
|
28
|
-
* @returns {any} An object that is an instance of given class, with given data applied to it.
|
|
29
|
-
*/
|
|
30
|
-
static MakeInstanceOf(clazz: any, dataObject?: any): any;
|
|
31
|
-
static PickRandomPropertyValue(object: any): any;
|
|
32
|
-
static ValueOrDefault(value: any, defaultReturnVal?: any): any;
|
|
33
|
-
private static _isArguments;
|
|
34
|
-
private static _isArgumentsWhenArgsClassNotSupported;
|
|
35
|
-
private static _isArgumentsWhenArgsClassSupported;
|
|
36
|
-
private static _isBuffer;
|
|
37
|
-
private static _isUndefinedOrNull;
|
|
38
|
-
private static _objEquiv;
|
|
39
|
-
private static _supportsArgumentsClass;
|
|
40
|
-
}
|
|
1
|
+
export declare class ObjectUtils {
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether all given values exist: for all values it holds that they are not null nor undefined. Short-circuit check.
|
|
4
|
+
* @param {any} values Rest parameters with all objects to check existence for.
|
|
5
|
+
* @returns {boolean} True if ALL given values are not null nor undefined, otherwise false (if at least one value was null or undefined)
|
|
6
|
+
*/
|
|
7
|
+
static AllExist(...values: any[]): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Copies all properties from object 'from' to object 'to'. Overwrites properties on object 'to' if property already exists.
|
|
10
|
+
* Does not copy functions, only properties.
|
|
11
|
+
* @param {Object} from The source object from which to copy all properties of to the 'to' object.
|
|
12
|
+
* @param {Object} to The object to which the properties of the 'from' object will be copied.
|
|
13
|
+
* @param {boolean} [allowUndefined = true] wether the 'to' object may be assigned null or undefined values to any of its properties.
|
|
14
|
+
*/
|
|
15
|
+
static CopyPropertiesFrom<T>(from: Object, to: T, allowUndefined?: boolean): T;
|
|
16
|
+
static DeepEquals(actual: any, expected: any): boolean;
|
|
17
|
+
static ForOwnProperty(plainObject: any, callback: (propVal: any, key: string) => any): void;
|
|
18
|
+
static GetClassName(objectOrClass: any): string;
|
|
19
|
+
static GetShallowClone(originalObject: any, objectClass?: any): any;
|
|
20
|
+
static GetDeepClone(originalObject: any, circular?: boolean): any;
|
|
21
|
+
static IsEmpty(obj: any): boolean;
|
|
22
|
+
static IsPlainObject(object: any): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Returns an instance of given class with data of given dataObject. Only works if that class has a default constructor without args.
|
|
25
|
+
* Does not actually create a new object if it alread is an instance of that class.
|
|
26
|
+
* @param {any} clazz A class that has a default constructor
|
|
27
|
+
* @param {any} [dataObject] The object with data to copy to the new instance of the class
|
|
28
|
+
* @returns {any} An object that is an instance of given class, with given data applied to it.
|
|
29
|
+
*/
|
|
30
|
+
static MakeInstanceOf(clazz: any, dataObject?: any): any;
|
|
31
|
+
static PickRandomPropertyValue(object: any): any;
|
|
32
|
+
static ValueOrDefault(value: any, defaultReturnVal?: any): any;
|
|
33
|
+
private static _isArguments;
|
|
34
|
+
private static _isArgumentsWhenArgsClassNotSupported;
|
|
35
|
+
private static _isArgumentsWhenArgsClassSupported;
|
|
36
|
+
private static _isBuffer;
|
|
37
|
+
private static _isUndefinedOrNull;
|
|
38
|
+
private static _objEquiv;
|
|
39
|
+
private static _supportsArgumentsClass;
|
|
40
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare class RefCodeUtils {
|
|
2
|
-
static Check(valueToCheck: number, powTwoNumToCheckAgainst: number): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Returns true if given number value is a composition of at least one of the rest numeric arguments. Usesul for checking user rights,
|
|
5
|
-
* for instance, or any other numerical composite refcode.
|
|
6
|
-
*/
|
|
7
|
-
static CheckAny(valueToCheck: number, ...powTwoNumsToCheckAgainst: number[]): boolean;
|
|
8
|
-
static GetMultiRefCodeChoices(multiRefCode: number): number[];
|
|
9
|
-
static GetNumbersArraySum(numbersArray: number[]): number;
|
|
10
|
-
}
|
|
1
|
+
export declare class RefCodeUtils {
|
|
2
|
+
static Check(valueToCheck: number, powTwoNumToCheckAgainst: number): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Returns true if given number value is a composition of at least one of the rest numeric arguments. Usesul for checking user rights,
|
|
5
|
+
* for instance, or any other numerical composite refcode.
|
|
6
|
+
*/
|
|
7
|
+
static CheckAny(valueToCheck: number, ...powTwoNumsToCheckAgainst: number[]): boolean;
|
|
8
|
+
static GetMultiRefCodeChoices(multiRefCode: number): number[];
|
|
9
|
+
static GetNumbersArraySum(numbersArray: number[]): number;
|
|
10
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export declare class StringUtils {
|
|
2
|
-
/**
|
|
3
|
-
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
4
|
-
*
|
|
5
|
-
* Example usage:
|
|
6
|
-
*
|
|
7
|
-
* source = "ABCDABCD"
|
|
8
|
-
* placeholder = "BC"
|
|
9
|
-
* replacementTexts = "Z", "Z" (REST arguments)
|
|
10
|
-
* OUTPUT = "AZDAZD"
|
|
11
|
-
*
|
|
12
|
-
* @param {string} source
|
|
13
|
-
* @param {string} placeholder
|
|
14
|
-
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
15
|
-
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
16
|
-
*/
|
|
17
|
-
static ReplaceOccurrencesIn(source: string, placeholder: string, ...replacementTexts: string[]): string;
|
|
18
|
-
static ParseString(arg: any, defaultValue?: string): string;
|
|
19
|
-
static IsString(str: any): boolean;
|
|
20
|
-
static IsStringWithLength(str: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Example usage:
|
|
23
|
-
* str = 'File is to large to upload. Maximum file size is {0} Mb'
|
|
24
|
-
* format = [FileUtils.MaxUploadSizeInMb]
|
|
25
|
-
* output = File is to large to upload. Maximum file size is 3 Mb
|
|
26
|
-
*
|
|
27
|
-
* str = '{0} is way better than {1}'
|
|
28
|
-
* format = ['Angular2','Angular1']
|
|
29
|
-
* output = Angular2 is way better than Angular1
|
|
30
|
-
*
|
|
31
|
-
* @param str The string that contains {0} and {1} etc, for replacement by given format data
|
|
32
|
-
* @param format The format replacement data
|
|
33
|
-
* @returns {string}
|
|
34
|
-
*/
|
|
35
|
-
static Format(str: string, format: any[]): string;
|
|
36
|
-
static RemoveLastChars(str: string, amount: number): string;
|
|
37
|
-
private static _escapeRegExp;
|
|
38
|
-
}
|
|
1
|
+
export declare class StringUtils {
|
|
2
|
+
/**
|
|
3
|
+
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
4
|
+
*
|
|
5
|
+
* Example usage:
|
|
6
|
+
*
|
|
7
|
+
* source = "ABCDABCD"
|
|
8
|
+
* placeholder = "BC"
|
|
9
|
+
* replacementTexts = "Z", "Z" (REST arguments)
|
|
10
|
+
* OUTPUT = "AZDAZD"
|
|
11
|
+
*
|
|
12
|
+
* @param {string} source
|
|
13
|
+
* @param {string} placeholder
|
|
14
|
+
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
15
|
+
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
16
|
+
*/
|
|
17
|
+
static ReplaceOccurrencesIn(source: string, placeholder: string, ...replacementTexts: string[]): string;
|
|
18
|
+
static ParseString(arg: any, defaultValue?: string): string;
|
|
19
|
+
static IsString(str: any): boolean;
|
|
20
|
+
static IsStringWithLength(str: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Example usage:
|
|
23
|
+
* str = 'File is to large to upload. Maximum file size is {0} Mb'
|
|
24
|
+
* format = [FileUtils.MaxUploadSizeInMb]
|
|
25
|
+
* output = File is to large to upload. Maximum file size is 3 Mb
|
|
26
|
+
*
|
|
27
|
+
* str = '{0} is way better than {1}'
|
|
28
|
+
* format = ['Angular2','Angular1']
|
|
29
|
+
* output = Angular2 is way better than Angular1
|
|
30
|
+
*
|
|
31
|
+
* @param str The string that contains {0} and {1} etc, for replacement by given format data
|
|
32
|
+
* @param format The format replacement data
|
|
33
|
+
* @returns {string}
|
|
34
|
+
*/
|
|
35
|
+
static Format(str: string, format: any[]): string;
|
|
36
|
+
static RemoveLastChars(str: string, amount: number): string;
|
|
37
|
+
private static _escapeRegExp;
|
|
38
|
+
}
|