@futdevpro/fsm-dynamo 1.9.15 → 1.9.17
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/build/_collections/constants/country-divisions.const.d.ts +2 -2
- package/build/_collections/constants/country-divisions.const.d.ts.map +1 -1
- package/build/_collections/constants/country-divisions.const.js +2 -2
- package/build/_collections/constants/country-divisions.const.js.map +1 -1
- package/build/_collections/constants/courtry-isos.const.d.ts +2 -2
- package/build/_collections/constants/courtry-isos.const.d.ts.map +1 -1
- package/build/_collections/constants/courtry-isos.const.js +2 -2
- package/build/_collections/constants/courtry-isos.const.js.map +1 -1
- package/build/_collections/constants/error-defaults.const.d.ts +2 -2
- package/build/_collections/constants/error-defaults.const.d.ts.map +1 -1
- package/build/_collections/constants/error-defaults.const.js +2 -2
- package/build/_collections/constants/error-defaults.const.js.map +1 -1
- package/build/_collections/constants/module-settings/custom-data-module-settings.const.d.ts +3 -3
- package/build/_collections/constants/module-settings/custom-data-module-settings.const.d.ts.map +1 -1
- package/build/_collections/constants/module-settings/custom-data-module-settings.const.js +9 -9
- package/build/_collections/constants/module-settings/custom-data-module-settings.const.js.map +1 -1
- package/build/_collections/constants/module-settings/test-module-settings.const.d.ts +3 -3
- package/build/_collections/constants/module-settings/test-module-settings.const.d.ts.map +1 -1
- package/build/_collections/constants/module-settings/test-module-settings.const.js +13 -13
- package/build/_collections/constants/module-settings/test-module-settings.const.js.map +1 -1
- package/build/_collections/constants/module-settings/usage-module-settings.const.d.ts +3 -3
- package/build/_collections/constants/module-settings/usage-module-settings.const.d.ts.map +1 -1
- package/build/_collections/constants/module-settings/usage-module-settings.const.js +13 -13
- package/build/_collections/constants/module-settings/usage-module-settings.const.js.map +1 -1
- package/build/_collections/constants/pipe-transforms.const.d.ts +2 -2
- package/build/_collections/constants/pipe-transforms.const.d.ts.map +1 -1
- package/build/_collections/constants/pipe-transforms.const.js +13 -13
- package/build/_collections/constants/pipe-transforms.const.js.map +1 -1
- package/build/_collections/utils/array.util.d.ts +6 -4
- package/build/_collections/utils/array.util.d.ts.map +1 -1
- package/build/_collections/utils/array.util.js +17 -4
- package/build/_collections/utils/array.util.js.map +1 -1
- package/build/_collections/utils/array.util.spec.js +5 -5
- package/build/_collections/utils/array.util.spec.js.map +1 -1
- package/build/_collections/utils/location.util.d.ts +3 -4
- package/build/_collections/utils/location.util.d.ts.map +1 -1
- package/build/_collections/utils/location.util.js +9 -9
- package/build/_collections/utils/location.util.js.map +1 -1
- package/build/_collections/utils/log.util.d.ts +15 -17
- package/build/_collections/utils/log.util.d.ts.map +1 -1
- package/build/_collections/utils/log.util.js +25 -25
- package/build/_collections/utils/log.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.d.ts +13 -13
- package/build/_collections/utils/math/box-bounds.util.d.ts.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.js +9 -9
- package/build/_collections/utils/math/box-bounds.util.js.map +1 -1
- package/build/_collections/utils/math/math.util.d.ts +1 -1
- package/build/_collections/utils/math/math.util.d.ts.map +1 -1
- package/build/_collections/utils/math/math.util.js +3 -3
- package/build/_collections/utils/math/math.util.js.map +1 -1
- package/build/_collections/utils/math/random.util.d.ts +4 -5
- package/build/_collections/utils/math/random.util.d.ts.map +1 -1
- package/build/_collections/utils/math/random.util.js +3 -3
- package/build/_collections/utils/math/random.util.js.map +1 -1
- package/build/_collections/utils/math/trigonometry.util.d.ts +3 -4
- package/build/_collections/utils/math/trigonometry.util.d.ts.map +1 -1
- package/build/_collections/utils/math/trigonometry.util.js +3 -3
- package/build/_collections/utils/math/trigonometry.util.js.map +1 -1
- package/build/_collections/utils/math/vector2.util.d.ts +36 -36
- package/build/_collections/utils/math/vector2.util.d.ts.map +1 -1
- package/build/_collections/utils/math/vector2.util.js +37 -37
- package/build/_collections/utils/math/vector2.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/country-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/country-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/country-pipe.util.js +4 -4
- package/build/_collections/utils/pipe-transforms/country-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/custom-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/custom-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/custom-pipe.util.js +3 -3
- package/build/_collections/utils/pipe-transforms/custom-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/division-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/division-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/division-pipe.util.js +4 -4
- package/build/_collections/utils/pipe-transforms/division-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/list-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/list-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/list-pipe.util.js +3 -3
- package/build/_collections/utils/pipe-transforms/list-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/multi-pipe-pipe.util.d.ts +7 -7
- package/build/_collections/utils/pipe-transforms/multi-pipe-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/multi-pipe-pipe.util.js +22 -22
- package/build/_collections/utils/pipe-transforms/multi-pipe-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/obj-key-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/obj-key-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/obj-key-pipe.util.js +3 -3
- package/build/_collections/utils/pipe-transforms/obj-key-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/range-pipe.util.d.ts +4 -4
- package/build/_collections/utils/pipe-transforms/range-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/range-pipe.util.js +18 -18
- package/build/_collections/utils/pipe-transforms/range-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/region-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/region-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/region-pipe.util.js +4 -4
- package/build/_collections/utils/pipe-transforms/region-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/replace-pipe.util.d.ts +1 -1
- package/build/_collections/utils/pipe-transforms/replace-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/replace-pipe.util.js +3 -3
- package/build/_collections/utils/pipe-transforms/replace-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/slider-pipe.util.d.ts +2 -2
- package/build/_collections/utils/pipe-transforms/slider-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/slider-pipe.util.js +4 -4
- package/build/_collections/utils/pipe-transforms/slider-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/smart-replace-pipe.util.d.ts +2 -2
- package/build/_collections/utils/pipe-transforms/smart-replace-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/smart-replace-pipe.util.js +5 -5
- package/build/_collections/utils/pipe-transforms/smart-replace-pipe.util.js.map +1 -1
- package/build/_collections/utils/regex/password-regex.util.d.ts +2 -2
- package/build/_collections/utils/regex/password-regex.util.d.ts.map +1 -1
- package/build/_collections/utils/regex/password-regex.util.js +7 -7
- package/build/_collections/utils/regex/password-regex.util.js.map +1 -1
- package/build/_collections/utils/regex/regex.util.d.ts +1 -1
- package/build/_collections/utils/regex/regex.util.d.ts.map +1 -1
- package/build/_collections/utils/regex/regex.util.js +2 -2
- package/build/_collections/utils/regex/regex.util.js.map +1 -1
- package/build/_collections/utils/regex/username-regex.util.d.ts +1 -1
- package/build/_collections/utils/regex/username-regex.util.d.ts.map +1 -1
- package/build/_collections/utils/regex/username-regex.util.js +3 -3
- package/build/_collections/utils/regex/username-regex.util.js.map +1 -1
- package/build/_collections/utils/regions.util.d.ts +11 -12
- package/build/_collections/utils/regions.util.d.ts.map +1 -1
- package/build/_collections/utils/regions.util.js +16 -16
- package/build/_collections/utils/regions.util.js.map +1 -1
- package/build/_collections/utils/round-list.util.d.ts +1 -2
- package/build/_collections/utils/round-list.util.d.ts.map +1 -1
- package/build/_collections/utils/round-list.util.js +3 -3
- package/build/_collections/utils/round-list.util.js.map +1 -1
- package/build/_collections/utils/shared.static-service.d.ts +1 -2
- package/build/_collections/utils/shared.static-service.d.ts.map +1 -1
- package/build/_collections/utils/shared.static-service.js +8 -8
- package/build/_collections/utils/shared.static-service.js.map +1 -1
- package/build/_collections/utils/time.util.d.ts +16 -16
- package/build/_collections/utils/time.util.d.ts.map +1 -1
- package/build/_collections/utils/time.util.js +55 -29
- package/build/_collections/utils/time.util.js.map +1 -1
- package/build/_collections/utils/time.util.spec.js +13 -13
- package/build/_collections/utils/time.util.spec.js.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.d.ts +2 -4
- package/build/_collections/utils/type-cloning-facility.util.d.ts.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.js +3 -3
- package/build/_collections/utils/type-cloning-facility.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.d.ts +13 -25
- package/build/_collections/utils/utilities.util.d.ts.map +1 -1
- package/build/_collections/utils/utilities.util.js +22 -34
- package/build/_collections/utils/utilities.util.js.map +1 -1
- package/build/_enums/basic-property-type.enum.d.ts +1 -1
- package/build/_enums/basic-property-type.enum.d.ts.map +1 -1
- package/build/_enums/basic-property-type.enum.js +9 -9
- package/build/_enums/basic-property-type.enum.js.map +1 -1
- package/build/_enums/data-model-type.enum.d.ts +2 -2
- package/build/_enums/data-model-type.enum.d.ts.map +1 -1
- package/build/_enums/data-model-type.enum.js +8 -8
- package/build/_enums/data-model-type.enum.js.map +1 -1
- package/build/_enums/error-level.enum.d.ts +1 -1
- package/build/_enums/error-level.enum.d.ts.map +1 -1
- package/build/_enums/error-level.enum.js +13 -13
- package/build/_enums/error-level.enum.js.map +1 -1
- package/build/_enums/location/region.enum.d.ts +1 -1
- package/build/_enums/location/region.enum.d.ts.map +1 -1
- package/build/_enums/location/region.enum.js +9 -9
- package/build/_enums/location/region.enum.js.map +1 -1
- package/build/_enums/location/sub-region.enum.d.ts +1 -1
- package/build/_enums/location/sub-region.enum.d.ts.map +1 -1
- package/build/_enums/location/sub-region.enum.js +21 -21
- package/build/_enums/location/sub-region.enum.js.map +1 -1
- package/build/_enums/location/subdivision-region-type.enum.d.ts +1 -1
- package/build/_enums/location/subdivision-region-type.enum.d.ts.map +1 -1
- package/build/_enums/location/subdivision-region-type.enum.js +42 -42
- package/build/_enums/location/subdivision-region-type.enum.js.map +1 -1
- package/build/_enums/log-style.enum.d.ts +1 -1
- package/build/_enums/log-style.enum.d.ts.map +1 -1
- package/build/_enums/log-style.enum.js +27 -27
- package/build/_enums/log-style.enum.js.map +1 -1
- package/build/_enums/pipe.enum.d.ts +6 -6
- package/build/_enums/pipe.enum.d.ts.map +1 -1
- package/build/_enums/pipe.enum.js +36 -36
- package/build/_enums/pipe.enum.js.map +1 -1
- package/build/_enums/range-pipe-setting.enum.d.ts +1 -1
- package/build/_enums/range-pipe-setting.enum.d.ts.map +1 -1
- package/build/_enums/range-pipe-setting.enum.js +12 -12
- package/build/_enums/range-pipe-setting.enum.js.map +1 -1
- package/build/_enums/time/day-of-week.enum.d.ts +4 -4
- package/build/_enums/time/day-of-week.enum.d.ts.map +1 -1
- package/build/_enums/time/day-of-week.enum.js +21 -21
- package/build/_enums/time/day-of-week.enum.js.map +1 -1
- package/build/_enums/time/month.enum.d.ts +1 -1
- package/build/_enums/time/month.enum.d.ts.map +1 -1
- package/build/_enums/time/month.enum.js +16 -16
- package/build/_enums/time/month.enum.js.map +1 -1
- package/build/_enums/time/relative-date.enum.d.ts +1 -1
- package/build/_enums/time/relative-date.enum.d.ts.map +1 -1
- package/build/_enums/time/relative-date.enum.js +10 -10
- package/build/_enums/time/relative-date.enum.js.map +1 -1
- package/build/_models/control-models/daily-usage-data.control-model.d.ts +4 -5
- package/build/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
- package/build/_models/control-models/daily-usage-data.control-model.js +3 -3
- package/build/_models/control-models/daily-usage-data.control-model.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.d.ts +13 -13
- package/build/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.js +18 -9
- package/build/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.d.ts +14 -11
- package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.js +15 -13
- package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.d.ts +14 -15
- package/build/_models/control-models/error.control-model.d.ts.map +1 -1
- package/build/_models/control-models/error.control-model.js +18 -18
- package/build/_models/control-models/error.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.spec.js +37 -37
- package/build/_models/control-models/error.control-model.spec.js.map +1 -1
- package/build/_models/control-models/poll.control-model.d.ts +1 -2
- package/build/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/build/_models/control-models/poll.control-model.js +8 -8
- package/build/_models/control-models/poll.control-model.js.map +1 -1
- package/build/_models/control-models/range-value.control-model.d.ts +19 -20
- package/build/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/build/_models/control-models/range-value.control-model.js +14 -14
- package/build/_models/control-models/range-value.control-model.js.map +1 -1
- package/build/_models/control-models/usage-action.control-model.d.ts +2 -3
- package/build/_models/control-models/usage-action.control-model.d.ts.map +1 -1
- package/build/_models/control-models/usage-action.control-model.js +3 -3
- package/build/_models/control-models/usage-action.control-model.js.map +1 -1
- package/build/_models/control-models/usage-data.control-model.d.ts +5 -6
- package/build/_models/control-models/usage-data.control-model.d.ts.map +1 -1
- package/build/_models/control-models/usage-data.control-model.js +3 -3
- package/build/_models/control-models/usage-data.control-model.js.map +1 -1
- package/build/_models/data-models/custom-data.data-model.d.ts +6 -7
- package/build/_models/data-models/custom-data.data-model.d.ts.map +1 -1
- package/build/_models/data-models/custom-data.data-model.js +6 -5
- package/build/_models/data-models/custom-data.data-model.js.map +1 -1
- package/build/_models/data-models/metadata.data-model.d.ts +4 -5
- package/build/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/build/_models/data-models/metadata.data-model.js +15 -15
- package/build/_models/data-models/metadata.data-model.js.map +1 -1
- package/build/_models/data-models/usage-session.data-model.d.ts +9 -10
- package/build/_models/data-models/usage-session.data-model.d.ts.map +1 -1
- package/build/_models/data-models/usage-session.data-model.js +5 -5
- package/build/_models/data-models/usage-session.data-model.js.map +1 -1
- package/build/_models/interfaces/error-defaults.interface.d.ts +1 -1
- package/build/_models/interfaces/error-defaults.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/country-division.interface.d.ts +1 -1
- package/build/_models/interfaces/location/country-division.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/country-iso.interface.d.ts +7 -7
- package/build/_models/interfaces/location/country-iso.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/country-phone-code.interface.d.ts +1 -1
- package/build/_models/interfaces/location/country-phone-code.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/division-collection.interface.d.ts +1 -1
- package/build/_models/interfaces/location/division-collection.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/division-region-data.interface.d.ts +4 -4
- package/build/_models/interfaces/location/division-region-data.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/geo-ip-location.interface.d.ts +1 -1
- package/build/_models/interfaces/location/geo-ip-location.interface.d.ts.map +1 -1
- package/build/_models/interfaces/location/location-coordinates.interface.d.ts +1 -1
- package/build/_models/interfaces/location/location-coordinates.interface.d.ts.map +1 -1
- package/build/_models/interfaces/multi-pipe-settings.type.d.ts +3 -3
- package/build/_models/interfaces/multi-pipe-settings.type.d.ts.map +1 -1
- package/build/_models/interfaces/paged.interface.d.ts +1 -1
- package/build/_models/interfaces/paged.interface.d.ts.map +1 -1
- package/build/_models/interfaces/pipe-transforms.interface.d.ts +16 -16
- package/build/_models/interfaces/pipe-transforms.interface.d.ts.map +1 -1
- package/build/_models/interfaces/pipe-transforms.interface.js.map +1 -1
- package/build/_models/interfaces/random-weight.interface.d.ts +1 -1
- package/build/_models/interfaces/random-weight.interface.d.ts.map +1 -1
- package/build/_models/interfaces/route-settings.interface.d.ts +2 -3
- package/build/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/futdevpro-fsm-dynamo-01.09.17.tgz +0 -0
- package/package.json +14 -14
- package/src/_collections/constants/country-divisions.const.ts +4 -4
- package/src/_collections/constants/courtry-isos.const.ts +3 -3
- package/src/_collections/constants/error-defaults.const.ts +2 -2
- package/src/_collections/constants/module-settings/custom-data-module-settings.const.ts +5 -5
- package/src/_collections/constants/module-settings/test-module-settings.const.ts +7 -7
- package/src/_collections/constants/module-settings/usage-module-settings.const.ts +7 -7
- package/src/_collections/constants/pipe-transforms.const.ts +28 -28
- package/src/_collections/utils/array.util.spec.ts +7 -7
- package/src/_collections/utils/array.util.ts +30 -5
- package/src/_collections/utils/location.util.ts +14 -13
- package/src/_collections/utils/log.util.ts +34 -36
- package/src/_collections/utils/math/box-bounds.util.ts +23 -23
- package/src/_collections/utils/math/math.util.ts +1 -1
- package/src/_collections/utils/math/random.util.ts +4 -5
- package/src/_collections/utils/math/trigonometry.util.ts +3 -4
- package/src/_collections/utils/math/vector2.util.ts +67 -67
- package/src/_collections/utils/pipe-transforms/country-pipe.util.ts +5 -5
- package/src/_collections/utils/pipe-transforms/custom-pipe.util.ts +1 -1
- package/src/_collections/utils/pipe-transforms/division-pipe.util.ts +5 -5
- package/src/_collections/utils/pipe-transforms/list-pipe.util.ts +1 -1
- package/src/_collections/utils/pipe-transforms/multi-pipe-pipe.util.ts +38 -38
- package/src/_collections/utils/pipe-transforms/obj-key-pipe.util.ts +1 -1
- package/src/_collections/utils/pipe-transforms/range-pipe.util.ts +29 -29
- package/src/_collections/utils/pipe-transforms/region-pipe.util.ts +5 -5
- package/src/_collections/utils/pipe-transforms/replace-pipe.util.ts +1 -1
- package/src/_collections/utils/pipe-transforms/slider-pipe.util.ts +4 -4
- package/src/_collections/utils/pipe-transforms/smart-replace-pipe.util.ts +6 -6
- package/src/_collections/utils/regex/password-regex.util.ts +6 -5
- package/src/_collections/utils/regex/regex.util.ts +1 -1
- package/src/_collections/utils/regex/username-regex.util.ts +4 -2
- package/src/_collections/utils/regions.util.ts +36 -36
- package/src/_collections/utils/round-list.util.ts +3 -2
- package/src/_collections/utils/shared.static-service.ts +7 -8
- package/src/_collections/utils/time.util.spec.ts +16 -16
- package/src/_collections/utils/time.util.ts +59 -40
- package/src/_collections/utils/type-cloning-facility.util.ts +2 -4
- package/src/_collections/utils/utilities.util.ts +21 -32
- package/src/_enums/basic-property-type.enum.ts +2 -1
- package/src/_enums/data-model-type.enum.ts +5 -3
- package/src/_enums/error-level.enum.ts +2 -1
- package/src/_enums/location/region.enum.ts +3 -1
- package/src/_enums/location/sub-region.enum.ts +3 -1
- package/src/_enums/location/subdivision-region-type.enum.ts +1 -1
- package/src/_enums/log-style.enum.ts +2 -1
- package/src/_enums/pipe.enum.ts +24 -19
- package/src/_enums/range-pipe-setting.enum.ts +2 -1
- package/src/_enums/time/day-of-week.enum.ts +13 -11
- package/src/_enums/time/month.enum.ts +2 -1
- package/src/_enums/time/relative-date.enum.ts +2 -1
- package/src/_models/control-models/daily-usage-data.control-model.ts +5 -5
- package/src/_models/control-models/data-model-params.control-model.ts +28 -18
- package/src/_models/control-models/data-property-params.control-model.ts +21 -17
- package/src/_models/control-models/error.control-model.spec.ts +72 -72
- package/src/_models/control-models/error.control-model.ts +79 -82
- package/src/_models/control-models/poll.control-model.ts +8 -8
- package/src/_models/control-models/range-value.control-model.ts +58 -58
- package/src/_models/control-models/usage-action.control-model.ts +3 -3
- package/src/_models/control-models/usage-data.control-model.ts +5 -6
- package/src/_models/data-models/custom-data.data-model.ts +9 -9
- package/src/_models/data-models/metadata.data-model.ts +19 -20
- package/src/_models/data-models/usage-session.data-model.ts +11 -12
- package/src/_models/interfaces/error-defaults.interface.ts +1 -2
- package/src/_models/interfaces/location/country-division.interface.ts +2 -1
- package/src/_models/interfaces/location/country-iso.interface.ts +9 -7
- package/src/_models/interfaces/location/country-phone-code.interface.ts +3 -1
- package/src/_models/interfaces/location/division-collection.interface.ts +3 -1
- package/src/_models/interfaces/location/division-region-data.interface.ts +5 -4
- package/src/_models/interfaces/location/geo-ip-location.interface.ts +2 -1
- package/src/_models/interfaces/location/location-coordinates.interface.ts +2 -1
- package/src/_models/interfaces/multi-pipe-settings.type.ts +4 -3
- package/src/_models/interfaces/paged.interface.ts +2 -1
- package/src/_models/interfaces/pipe-transforms.interface.ts +21 -21
- package/src/_models/interfaces/random-weight.interface.ts +1 -1
- package/src/_models/interfaces/route-settings.interface.ts +2 -3
- package/build/_enums/day-of-week.enum.d.ts +0 -14
- package/build/_enums/day-of-week.enum.d.ts.map +0 -1
- package/build/_enums/day-of-week.enum.js +0 -26
- package/build/_enums/day-of-week.enum.js.map +0 -1
- package/build/_enums/month.enum.d.ts +0 -15
- package/build/_enums/month.enum.d.ts.map +0 -1
- package/build/_enums/month.enum.js +0 -19
- package/build/_enums/month.enum.js.map +0 -1
- package/futdevpro-fsm-dynamo-01.09.15.tgz +0 -0
- package/src/_enums/day-of-week.enum.ts +0 -28
- package/src/_enums/month.enum.ts +0 -16
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { DyFM_LogStyle } from '../../_enums/log-style.enum';
|
|
3
3
|
|
|
4
|
-
/* export class D_Log implements
|
|
5
|
-
export type
|
|
6
|
-
export type DFM_Log = DynamoFM_Log;
|
|
7
|
-
export type DFM_L = DynamoFM_Log;
|
|
4
|
+
/* export class D_Log implements DyFM_Log {}; */
|
|
5
|
+
export type DyFM_L = DyFM_Log;
|
|
8
6
|
|
|
9
|
-
export class
|
|
7
|
+
export class DyFM_Log {
|
|
10
8
|
|
|
11
|
-
static setStyle(styles:
|
|
9
|
+
static setStyle(styles: DyFM_LogStyle[]): void {
|
|
12
10
|
let styleSets = '';
|
|
13
11
|
|
|
14
|
-
styles.forEach((style:
|
|
12
|
+
styles.forEach((style: DyFM_LogStyle): void => {
|
|
15
13
|
styleSets += style;
|
|
16
14
|
});
|
|
17
15
|
console.log(styleSets);
|
|
18
16
|
}
|
|
19
17
|
static resetStyle(): void {
|
|
20
|
-
console.log(
|
|
18
|
+
console.log(DyFM_LogStyle.reset);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
static addStyle(input: string, styles:
|
|
21
|
+
static addStyle(input: string, styles: DyFM_LogStyle[], dontReset?: boolean): string {
|
|
24
22
|
let result = '';
|
|
25
23
|
|
|
26
|
-
styles.forEach((style:
|
|
24
|
+
styles.forEach((style: DyFM_LogStyle): void => {
|
|
27
25
|
result += style;
|
|
28
26
|
});
|
|
29
27
|
result += input;
|
|
30
28
|
|
|
31
29
|
if (!dontReset) {
|
|
32
|
-
result +=
|
|
30
|
+
result += DyFM_LogStyle.reset;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
return result;
|
|
@@ -38,17 +36,17 @@ export class DynamoFM_Log {
|
|
|
38
36
|
static success(message: string, ...optionalParams: any[]): void {
|
|
39
37
|
if (0 < optionalParams.length) {
|
|
40
38
|
console.log(
|
|
41
|
-
`${
|
|
42
|
-
...optionalParams,
|
|
39
|
+
`${DyFM_LogStyle.green}${DyFM_LogStyle.bright}${message}`,
|
|
40
|
+
...optionalParams, DyFM_LogStyle.reset
|
|
43
41
|
);
|
|
44
42
|
} else {
|
|
45
43
|
console.log(
|
|
46
|
-
`${
|
|
44
|
+
`${DyFM_LogStyle.green}${DyFM_LogStyle.bright}${message}${DyFM_LogStyle.reset}`
|
|
47
45
|
);
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
|
-
* @deprecated use
|
|
49
|
+
* @deprecated use DyFM_Log.success instead
|
|
52
50
|
*/
|
|
53
51
|
static logSuccess(message: string, ...optionalParams: any[]): void {
|
|
54
52
|
this.success(message, ...optionalParams);
|
|
@@ -57,17 +55,17 @@ export class DynamoFM_Log {
|
|
|
57
55
|
static error(message: string, ...optionalParams: any[]): void {
|
|
58
56
|
if (0 < optionalParams.length) {
|
|
59
57
|
console.error(
|
|
60
|
-
`${
|
|
61
|
-
...optionalParams,
|
|
58
|
+
`${DyFM_LogStyle.red}${DyFM_LogStyle.bright}${message}`,
|
|
59
|
+
...optionalParams, DyFM_LogStyle.reset
|
|
62
60
|
);
|
|
63
61
|
} else {
|
|
64
62
|
console.error(
|
|
65
|
-
`${
|
|
63
|
+
`${DyFM_LogStyle.red}${DyFM_LogStyle.bright}${message}${DyFM_LogStyle.reset}`
|
|
66
64
|
);
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
/**
|
|
70
|
-
* @deprecated use
|
|
68
|
+
* @deprecated use DyFM_Log.error instead
|
|
71
69
|
*/
|
|
72
70
|
static logError(message: string, ...optionalParams: any[]): void {
|
|
73
71
|
this.error(message, ...optionalParams);
|
|
@@ -76,23 +74,23 @@ export class DynamoFM_Log {
|
|
|
76
74
|
static warn(message: string, ...optionalParams: any[]): void {
|
|
77
75
|
if (0 < optionalParams.length) {
|
|
78
76
|
console.warn(
|
|
79
|
-
`${
|
|
80
|
-
...optionalParams,
|
|
77
|
+
`${DyFM_LogStyle.yellow}${DyFM_LogStyle.bright}${message}`,
|
|
78
|
+
...optionalParams, DyFM_LogStyle.reset
|
|
81
79
|
);
|
|
82
80
|
} else {
|
|
83
81
|
console.warn(
|
|
84
|
-
`${
|
|
82
|
+
`${DyFM_LogStyle.yellow}${DyFM_LogStyle.bright}${message}${DyFM_LogStyle.reset}`
|
|
85
83
|
);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
/**
|
|
89
|
-
* @deprecated use
|
|
87
|
+
* @deprecated use DyFM_Log.warn instead
|
|
90
88
|
*/
|
|
91
89
|
static warning(message: string, ...optionalParams: any[]): void {
|
|
92
90
|
this.warn(message, ...optionalParams);
|
|
93
91
|
}
|
|
94
92
|
/**
|
|
95
|
-
* @deprecated use
|
|
93
|
+
* @deprecated use DyFM_Log.warn instead
|
|
96
94
|
*/
|
|
97
95
|
static logWarning(message: string, ...optionalParams: any[]): void {
|
|
98
96
|
this.warn(message, ...optionalParams);
|
|
@@ -109,12 +107,12 @@ export class DynamoFM_Log {
|
|
|
109
107
|
static highlighted(message: string, ...optionalParams: any[]): void {
|
|
110
108
|
if (0 < optionalParams.length) {
|
|
111
109
|
console.log(
|
|
112
|
-
`${
|
|
113
|
-
...optionalParams,
|
|
110
|
+
`${DyFM_LogStyle.white}${DyFM_LogStyle.bright}${message}`,
|
|
111
|
+
...optionalParams, DyFM_LogStyle.reset
|
|
114
112
|
);
|
|
115
113
|
} else {
|
|
116
114
|
console.log(
|
|
117
|
-
`${
|
|
115
|
+
`${DyFM_LogStyle.white}${DyFM_LogStyle.bright}${message}${DyFM_LogStyle.reset}`
|
|
118
116
|
);
|
|
119
117
|
}
|
|
120
118
|
}
|
|
@@ -123,7 +121,7 @@ export class DynamoFM_Log {
|
|
|
123
121
|
this.log(message, ...optionalParams);
|
|
124
122
|
this.log('\n' + this.h_solid + '\n\n');
|
|
125
123
|
}
|
|
126
|
-
static test =
|
|
124
|
+
static test = DyFM_Log.testLog;
|
|
127
125
|
|
|
128
126
|
static highlightedLog(message: string, ...optionalParams: any[]): void {
|
|
129
127
|
this.log('\n\n' + this.h_before);
|
|
@@ -134,7 +132,7 @@ export class DynamoFM_Log {
|
|
|
134
132
|
this.log(' ' + this.h_after);
|
|
135
133
|
this.log(this.h_after + '\n\n');
|
|
136
134
|
}
|
|
137
|
-
static H_log =
|
|
135
|
+
static H_log = DyFM_Log.highlightedLog;
|
|
138
136
|
|
|
139
137
|
static testInfo(message: string, ...optionalParams: any[]): void {
|
|
140
138
|
this.info('\n\n' + this.h_solid + '\n');
|
|
@@ -151,7 +149,7 @@ export class DynamoFM_Log {
|
|
|
151
149
|
this.info(' ' + this.h_after);
|
|
152
150
|
this.info(this.h_after + '\n\n');
|
|
153
151
|
}
|
|
154
|
-
static H_info =
|
|
152
|
+
static H_info = DyFM_Log.highlightedInfo;
|
|
155
153
|
|
|
156
154
|
static testError(message: string, ...optionalParams: any[]): void {
|
|
157
155
|
this.error('\n\n' + this.h_solid + '\n');
|
|
@@ -168,7 +166,7 @@ export class DynamoFM_Log {
|
|
|
168
166
|
this.error(' ' + this.h_after);
|
|
169
167
|
this.error(this.h_after + '\n\n');
|
|
170
168
|
}
|
|
171
|
-
static H_error =
|
|
169
|
+
static H_error = DyFM_Log.highlightedError;
|
|
172
170
|
|
|
173
171
|
static testWarn(message: string, ...optionalParams: any[]): void {
|
|
174
172
|
this.warn('\n\n' + this.h_solid + '\n');
|
|
@@ -185,7 +183,7 @@ export class DynamoFM_Log {
|
|
|
185
183
|
this.warn(' ' + this.h_after);
|
|
186
184
|
this.warn(this.h_after + '\n\n');
|
|
187
185
|
}
|
|
188
|
-
static H_warn =
|
|
186
|
+
static H_warn = DyFM_Log.highlightedWarn;
|
|
189
187
|
|
|
190
188
|
static testSuccess(message: string, ...optionalParams: any[]): void {
|
|
191
189
|
this.success('\n\n' + this.h_solid + '\n');
|
|
@@ -202,7 +200,7 @@ export class DynamoFM_Log {
|
|
|
202
200
|
this.success(' ' + this.h_after);
|
|
203
201
|
this.success(this.h_after + '\n\n');
|
|
204
202
|
}
|
|
205
|
-
static H_success =
|
|
203
|
+
static H_success = DyFM_Log.highlightedSuccess;
|
|
206
204
|
|
|
207
205
|
// eslint-disable-next-line max-len
|
|
208
206
|
private static h_solid: string = '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||';
|
|
@@ -212,8 +210,8 @@ export class DynamoFM_Log {
|
|
|
212
210
|
private static h_after: string = '/////////////////////////////////////////////////////////////////////////////';
|
|
213
211
|
|
|
214
212
|
static removeLogStyles(message: string): string {
|
|
215
|
-
for (const styleKey of Object(
|
|
216
|
-
message = message.replace(new RegExp(
|
|
213
|
+
for (const styleKey of Object(DyFM_LogStyle)) {
|
|
214
|
+
message = message.replace(new RegExp(DyFM_LogStyle[styleKey], 'g'), '');
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
return message;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { DyFM_Vector2 } from './vector2.util';
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
private _pos:
|
|
7
|
-
set pos(value:
|
|
5
|
+
export class DyFM_BoxBounds {
|
|
6
|
+
private _pos: DyFM_Vector2;
|
|
7
|
+
set pos(value: DyFM_Vector2) {
|
|
8
8
|
this._pos = value;
|
|
9
9
|
|
|
10
10
|
this.calcCenter();
|
|
11
11
|
}
|
|
12
|
-
get pos():
|
|
12
|
+
get pos(): DyFM_Vector2 {
|
|
13
13
|
return this._pos;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
private _size:
|
|
17
|
-
set size(value:
|
|
16
|
+
private _size: DyFM_Vector2;
|
|
17
|
+
set size(value: DyFM_Vector2) {
|
|
18
18
|
this._size = value;
|
|
19
19
|
|
|
20
20
|
this.calcCenter();
|
|
21
21
|
}
|
|
22
|
-
get size():
|
|
22
|
+
get size(): DyFM_Vector2 {
|
|
23
23
|
return this._size;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
private _center:
|
|
27
|
-
get center():
|
|
26
|
+
private _center: DyFM_Vector2;
|
|
27
|
+
get center(): DyFM_Vector2 {
|
|
28
28
|
return this._center;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
private _centerMargin:
|
|
32
|
-
get centerMargin():
|
|
31
|
+
private _centerMargin: DyFM_Vector2;
|
|
32
|
+
get centerMargin(): DyFM_Vector2 {
|
|
33
33
|
return this._centerMargin;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
constructor(
|
|
37
|
-
position:
|
|
38
|
-
size:
|
|
37
|
+
position: DyFM_Vector2 = new DyFM_Vector2(),
|
|
38
|
+
size: DyFM_Vector2 = new DyFM_Vector2()
|
|
39
39
|
) {
|
|
40
40
|
this._pos = position;
|
|
41
41
|
this._size = size;
|
|
@@ -47,7 +47,7 @@ export class DynamoFM_BoxBounds {
|
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
newValues?(position:
|
|
50
|
+
newValues?(position: DyFM_Vector2, size: DyFM_Vector2): void {
|
|
51
51
|
if (position === undefined) {
|
|
52
52
|
throw new Error('new position is undefined!');
|
|
53
53
|
}
|
|
@@ -62,23 +62,23 @@ export class DynamoFM_BoxBounds {
|
|
|
62
62
|
this.calcCenter();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
static bounds(box:
|
|
65
|
+
static bounds(box: DyFM_BoxBounds, position: DyFM_Vector2): boolean {
|
|
66
66
|
return box.pos.x <= position.x && position.x <= box.pos.x + box.size.x &&
|
|
67
67
|
box.pos.y <= position.y && position.y <= box.pos.y + box.size.y;
|
|
68
68
|
}
|
|
69
|
-
bounds?(position:
|
|
70
|
-
return
|
|
69
|
+
bounds?(position: DyFM_Vector2): boolean {
|
|
70
|
+
return DyFM_BoxBounds.bounds(this, position);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
private calcCenter?(): void {
|
|
74
|
-
const halfSize =
|
|
74
|
+
const halfSize = DyFM_Vector2.divide(this.size, 2);
|
|
75
75
|
|
|
76
|
-
this._center =
|
|
77
|
-
this._centerMargin =
|
|
76
|
+
this._center = DyFM_Vector2.plus(this.pos, halfSize);
|
|
77
|
+
this._centerMargin = DyFM_Vector2.negative(halfSize);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
clone?():
|
|
81
|
-
return new
|
|
80
|
+
clone?(): DyFM_BoxBounds {
|
|
81
|
+
return new DyFM_BoxBounds(this.pos.clone(), this.size.clone());
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { DyFM_RandomWeight } from '../../../_models/interfaces/random-weight.interface';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
export class DynamoFM_Random {
|
|
4
|
+
export class DyFM_Random {
|
|
6
5
|
static getRandomWeightedInt(
|
|
7
6
|
min: number,
|
|
8
7
|
max: number,
|
|
9
|
-
weights:
|
|
8
|
+
weights: DyFM_RandomWeight<number>[]
|
|
10
9
|
): number {
|
|
11
10
|
weights = weights.sort((a, b): number => b.chance - a.chance);
|
|
12
11
|
let weightChanceSum = 0;
|
|
@@ -48,7 +47,7 @@ export class DynamoFM_Random {
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
static getRandomWeighted<T>(weights:
|
|
50
|
+
static getRandomWeighted<T>(weights: DyFM_RandomWeight<T>[]): T {
|
|
52
51
|
if (!weights?.length) {
|
|
53
52
|
return null;
|
|
54
53
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
5
|
-
export class DynamoFM_Trigonometry {
|
|
2
|
+
export type DyFM_Trig = DyFM_Trigonometry;
|
|
3
|
+
export type DyFM_Δ = DyFM_Trigonometry;
|
|
4
|
+
export class DyFM_Trigonometry {
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Befogó
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { DyFM_Trigonometry } from './trigonometry.util';
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
export class
|
|
4
|
+
export type DyFM_V2 = DyFM_Vector2;
|
|
5
|
+
export class DyFM_Vector2 {
|
|
6
6
|
readonly isVector2: boolean = true;
|
|
7
7
|
|
|
8
8
|
private _x: number = 0;
|
|
@@ -30,18 +30,18 @@ export class DynamoFM_Vector2 {
|
|
|
30
30
|
return this._magintude;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
static readonly zero:
|
|
34
|
-
static readonly up:
|
|
35
|
-
static readonly down:
|
|
36
|
-
static readonly right:
|
|
37
|
-
static readonly left:
|
|
33
|
+
static readonly zero: DyFM_Vector2 = new DyFM_Vector2(0, 0);
|
|
34
|
+
static readonly up: DyFM_Vector2 = new DyFM_Vector2(0, 1);
|
|
35
|
+
static readonly down: DyFM_Vector2 = new DyFM_Vector2(0, -1);
|
|
36
|
+
static readonly right: DyFM_Vector2 = new DyFM_Vector2(1, 0);
|
|
37
|
+
static readonly left: DyFM_Vector2 = new DyFM_Vector2(-1, 0);
|
|
38
38
|
|
|
39
39
|
constructor(
|
|
40
|
-
x: number |
|
|
40
|
+
x: number | DyFM_Vector2 = 0,
|
|
41
41
|
y: number = 0
|
|
42
42
|
) {
|
|
43
|
-
if ((x as
|
|
44
|
-
const v = x as
|
|
43
|
+
if ((x as DyFM_Vector2).isVector2) {
|
|
44
|
+
const v = x as DyFM_Vector2;
|
|
45
45
|
|
|
46
46
|
x = v.x;
|
|
47
47
|
y = v.y;
|
|
@@ -57,83 +57,83 @@ export class DynamoFM_Vector2 {
|
|
|
57
57
|
return true;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
static distance(a:
|
|
60
|
+
static distance(a: DyFM_Vector2, b: DyFM_Vector2): number {
|
|
61
61
|
return this.minus(a, b).magintude;
|
|
62
62
|
}
|
|
63
|
-
distanceTo?(to:
|
|
64
|
-
return
|
|
63
|
+
distanceTo?(to: DyFM_Vector2): number {
|
|
64
|
+
return DyFM_Vector2.distance(this, to);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
static minus(a:
|
|
67
|
+
static minus(a: DyFM_Vector2, b: DyFM_Vector2): DyFM_Vector2 {
|
|
68
68
|
return this.plus(a, this.negative(b));
|
|
69
69
|
}
|
|
70
|
-
minus?(vector:
|
|
71
|
-
this.newValues(
|
|
70
|
+
minus?(vector: DyFM_Vector2): void {
|
|
71
|
+
this.newValues(DyFM_Vector2.minus(this, vector));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
static plus(a:
|
|
75
|
-
return new
|
|
74
|
+
static plus(a: DyFM_Vector2, b: DyFM_Vector2): DyFM_Vector2 {
|
|
75
|
+
return new DyFM_Vector2(a.x + b.x, a.y + b.y);
|
|
76
76
|
}
|
|
77
|
-
plus?(vector:
|
|
78
|
-
this.newValues(
|
|
77
|
+
plus?(vector: DyFM_Vector2): void {
|
|
78
|
+
this.newValues(DyFM_Vector2.plus(this, vector));
|
|
79
79
|
}
|
|
80
80
|
static add = this.plus;
|
|
81
81
|
add? = this.plus;
|
|
82
82
|
|
|
83
83
|
/** returns new multiplied Vector2 */
|
|
84
|
-
static multiply(v:
|
|
85
|
-
return new
|
|
84
|
+
static multiply(v: DyFM_Vector2, n: number): DyFM_Vector2 {
|
|
85
|
+
return new DyFM_Vector2(v.x * n, v.y * n);
|
|
86
86
|
}
|
|
87
87
|
multiply?(n: number): void {
|
|
88
|
-
this.newValues(
|
|
88
|
+
this.newValues(DyFM_Vector2.multiply(this, n));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/** returns new divided Vector2 */
|
|
92
|
-
static divide(v:
|
|
93
|
-
return new
|
|
92
|
+
static divide(v: DyFM_Vector2, n: number): DyFM_Vector2 {
|
|
93
|
+
return new DyFM_Vector2(v.x / n, v.y / n);
|
|
94
94
|
}
|
|
95
95
|
divide?(n: number): void {
|
|
96
|
-
this.newValues(
|
|
96
|
+
this.newValues(DyFM_Vector2.divide(this, n));
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
static negative(v:
|
|
100
|
-
return new
|
|
99
|
+
static negative(v: DyFM_Vector2): DyFM_Vector2 {
|
|
100
|
+
return new DyFM_Vector2(-v.x, -v.y);
|
|
101
101
|
}
|
|
102
|
-
getNegative?():
|
|
103
|
-
return
|
|
102
|
+
getNegative?(): DyFM_Vector2 {
|
|
103
|
+
return DyFM_Vector2.negative(this);
|
|
104
104
|
}
|
|
105
105
|
negate?(): void {
|
|
106
|
-
this.newValues(
|
|
106
|
+
this.newValues(DyFM_Vector2.negative(this));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
static rebase(v:
|
|
109
|
+
static rebase(v: DyFM_Vector2, baseFrom: DyFM_Vector2, baseTo: DyFM_Vector2): DyFM_Vector2 {
|
|
110
110
|
return this.plus(v, this.minus(baseTo, baseFrom));
|
|
111
111
|
}
|
|
112
|
-
rebase?(baseFrom:
|
|
113
|
-
this.newValues(
|
|
112
|
+
rebase?(baseFrom: DyFM_Vector2, baseTo: DyFM_Vector2): void {
|
|
113
|
+
this.newValues(DyFM_Vector2.rebase(this, baseFrom, baseTo));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
static rotate(vector:
|
|
117
|
-
const rad =
|
|
116
|
+
static rotate(vector: DyFM_Vector2, angle: number): DyFM_Vector2 {
|
|
117
|
+
const rad = DyFM_Trigonometry.angleToRadians(angle);
|
|
118
118
|
|
|
119
119
|
return this.rotateRad(vector, rad);
|
|
120
120
|
}
|
|
121
|
-
static rotateRad(vector:
|
|
121
|
+
static rotateRad(vector: DyFM_Vector2, rad: number): DyFM_Vector2 {
|
|
122
122
|
const cos = Math.cos(rad);
|
|
123
123
|
const sin = Math.sin(rad);
|
|
124
124
|
const newX = (vector.x * cos) - (vector.y * sin);
|
|
125
125
|
const newY = (vector.x * sin) + (vector.y * cos);
|
|
126
126
|
|
|
127
|
-
return new
|
|
127
|
+
return new DyFM_Vector2(newX, newY);
|
|
128
128
|
}
|
|
129
129
|
rotate?(angle: number): void {
|
|
130
|
-
this.newValues(
|
|
130
|
+
this.newValues(DyFM_Vector2.rotate(this, angle));
|
|
131
131
|
}
|
|
132
132
|
rotateRad?(rad: number): void {
|
|
133
|
-
this.newValues(
|
|
133
|
+
this.newValues(DyFM_Vector2.rotateRad(this, rad));
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
private newValues(newV:
|
|
136
|
+
private newValues(newV: DyFM_Vector2): void {
|
|
137
137
|
this.newXY(newV.x, newV.y);
|
|
138
138
|
}
|
|
139
139
|
newXY?(newX: number, newY: number): void {
|
|
@@ -144,55 +144,55 @@ export class DynamoFM_Vector2 {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
//// AI-ed
|
|
147
|
-
angle?(from:
|
|
148
|
-
return
|
|
147
|
+
angle?(from: DyFM_Vector2, to: DyFM_Vector2): number {
|
|
148
|
+
return DyFM_Vector2.angle(from, to);
|
|
149
149
|
}
|
|
150
|
-
static angle(from:
|
|
151
|
-
return
|
|
150
|
+
static angle(from: DyFM_Vector2, to: DyFM_Vector2): number {
|
|
151
|
+
return DyFM_Trigonometry.radiansToAngle(DyFM_Vector2.angleRad(from, to));
|
|
152
152
|
}
|
|
153
|
-
static angleRad(from:
|
|
153
|
+
static angleRad(from: DyFM_Vector2, to: DyFM_Vector2): number {
|
|
154
154
|
return Math.atan2(to.y - from.y, to.x - from.x);
|
|
155
155
|
}
|
|
156
156
|
deg?(): number {
|
|
157
|
-
return
|
|
157
|
+
return DyFM_Vector2.deg(this);
|
|
158
158
|
}
|
|
159
|
-
static deg(vector:
|
|
160
|
-
return
|
|
159
|
+
static deg(vector: DyFM_Vector2): number {
|
|
160
|
+
return DyFM_Trigonometry.radiansToAngle(DyFM_Vector2.rad(vector));
|
|
161
161
|
}
|
|
162
|
-
static rad(vector:
|
|
162
|
+
static rad(vector: DyFM_Vector2): number {
|
|
163
163
|
return Math.atan2(vector.y, vector.x);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
floor?():
|
|
167
|
-
return
|
|
166
|
+
floor?(): DyFM_Vector2 {
|
|
167
|
+
return DyFM_Vector2.floor(this);
|
|
168
168
|
}
|
|
169
|
-
static floor(v:
|
|
170
|
-
return new
|
|
169
|
+
static floor(v: DyFM_Vector2): DyFM_Vector2 {
|
|
170
|
+
return new DyFM_Vector2(Math.floor(v.x), Math.floor(v.y));
|
|
171
171
|
}
|
|
172
172
|
/////
|
|
173
173
|
|
|
174
|
-
direction?(to:
|
|
175
|
-
return
|
|
174
|
+
direction?(to: DyFM_Vector2): DyFM_Vector2 {
|
|
175
|
+
return DyFM_Vector2.direction(this, to);
|
|
176
176
|
}
|
|
177
|
-
static direction(from:
|
|
178
|
-
return
|
|
177
|
+
static direction(from: DyFM_Vector2, to: DyFM_Vector2): DyFM_Vector2 {
|
|
178
|
+
return DyFM_Vector2.minus(to, from);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
static normalize(v:
|
|
182
|
-
return
|
|
181
|
+
static normalize(v: DyFM_Vector2): DyFM_Vector2 {
|
|
182
|
+
return DyFM_Vector2.multiply(v, 1 / v.magintude);
|
|
183
183
|
}
|
|
184
184
|
normalize?(): void {
|
|
185
|
-
this.newValues(
|
|
185
|
+
this.newValues(DyFM_Vector2.normalize(this));
|
|
186
186
|
}
|
|
187
|
-
normalized?():
|
|
188
|
-
return
|
|
187
|
+
normalized?(): DyFM_Vector2 {
|
|
188
|
+
return DyFM_Vector2.normalize(this);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
private calcMagnitude?(): void {
|
|
192
|
-
this._magintude =
|
|
192
|
+
this._magintude = DyFM_Trigonometry.getHypotenuse(this._x, this._y);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
clone?():
|
|
196
|
-
return new
|
|
195
|
+
clone?(): DyFM_Vector2 {
|
|
196
|
+
return new DyFM_Vector2(this._x, this._y);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { DyFM_CountryISO } from '../../../_models';
|
|
9
|
+
import { DyFM_countryISOs } from '../../constants/courtry-isos.const';
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
export function
|
|
13
|
-
const result =
|
|
14
|
-
(iso:
|
|
12
|
+
export function DyFM_country_pipeTransform(countryISO: string): string {
|
|
13
|
+
const result = DyFM_countryISOs.find(
|
|
14
|
+
(iso: DyFM_CountryISO): boolean => iso.iso2 === countryISO
|
|
15
15
|
)?.name;
|
|
16
16
|
|
|
17
17
|
return result ?? countryISO;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { DyFM_CountryDivision } from '../../../_models';
|
|
12
|
+
import { DyFM_countryDivisions } from '../../constants/country-divisions.const';
|
|
13
13
|
|
|
14
|
-
export function
|
|
15
|
-
const result: string =
|
|
16
|
-
(d:
|
|
14
|
+
export function DyFM_division_pipeTransform(divisionCode: string, countryISO: string): string {
|
|
15
|
+
const result: string = DyFM_countryDivisions?.find(
|
|
16
|
+
(d: DyFM_CountryDivision): boolean => d?.code === divisionCode && d?.iso === countryISO
|
|
17
17
|
)?.name;
|
|
18
18
|
|
|
19
19
|
return result ?? divisionCode;
|