From bafaf68812b81ad15e7a51670247313cfb995351 Mon Sep 17 00:00:00 2001 From: CostlyDeveloper <55545296+CostlyDeveloper@users.noreply.github.com> Date: Mon, 3 May 2021 00:31:25 +0200 Subject: [PATCH] First release --- .../costlydeveloper-ngx-awesome-popup.umd.js | 144 ++--- ...stlydeveloper-ngx-awesome-popup.umd.js.map | 2 +- ...stlydeveloper-ngx-awesome-popup.umd.min.js | 2 +- ...developer-ngx-awesome-popup.umd.min.js.map | 2 +- ...ydeveloper-ngx-awesome-popup.metadata.json | 2 +- .../ngx-awesome-popup/core/animations.js | 3 +- .../ngx-awesome-popup/core/dialog-injector.js | 2 +- dist/esm2015/ngx-awesome-popup/core/enums.js | 2 +- .../core/global-config.service.js | 2 +- dist/esm2015/ngx-awesome-popup/core/global.js | 20 +- .../core/insertion-loader.directive.js | 4 +- .../core/insertion.directive.js | 4 +- .../default-loader.component.js | 4 +- .../ngx-awesome-popup/locator.service.js | 2 +- .../ngx-awesome-popup.module.js | 30 +- .../confirm-box-wrapper.component.js | 10 +- .../core/confirm-box-config.service.js | 6 +- .../confirm-box/core/confirm-box-service.js | 6 +- .../types/confirm-box/core/model.js | 2 +- .../dialog/core/dialog-config.service.js | 6 +- .../types/dialog/core/dialog.service.js | 6 +- .../types/dialog/core/model.js | 6 +- .../dialog-wrapper.component.js | 10 +- .../core/toast-notification.service.js | 53 +- .../core/wrapper-abstraction.js | 2 +- ...t-notification-simple-wrapper.component.js | 6 +- .../toast-notification-wrapper.component.js | 6 +- .../costlydeveloper-ngx-awesome-popup.js | 132 ++-- .../costlydeveloper-ngx-awesome-popup.js.map | 2 +- dist/ngx-awesome-popup/core/global.d.ts | 4 +- .../ngx-awesome-popup.module.d.ts | 4 +- .../confirm-box-wrapper.component.d.ts | 2 +- .../confirm-box/core/confirm-box-service.d.ts | 2 +- .../types/confirm-box/core/model.d.ts | 2 +- .../types/dialog/core/model.d.ts | 2 +- .../dialog-wrapper.component.d.ts | 2 +- .../core/toast-notification.service.d.ts | 4 +- dist/package.json | 2 +- ngx-awesome-popup/core/animations.ts | 46 +- ngx-awesome-popup/core/dialog-injector.ts | 42 +- ngx-awesome-popup/core/enums.ts | 48 +- .../core/global-config.service.ts | 4 +- ngx-awesome-popup/core/global.ts | 43 +- .../core/insertion-loader.directive.ts | 12 +- ngx-awesome-popup/core/insertion.directive.ts | 12 +- .../default-loader.component.scss | 40 +- .../default-loader.component.ts | 8 +- ngx-awesome-popup/locator.service.ts | 2 +- ngx-awesome-popup/ngx-awesome-popup.module.ts | 160 ++--- ngx-awesome-popup/styles/_buttons.scss | 34 +- ngx-awesome-popup/styles/_icons.scss | 22 +- ngx-awesome-popup/styles/_variables.scss | 24 +- ngx-awesome-popup/styles/style.scss | 64 +- .../confirm-box-wrapper.component.html | 7 +- .../confirm-box-wrapper.component.scss | 7 +- .../confirm-box-wrapper.component.ts | 102 +-- .../core/confirm-box-config.service.ts | 68 +- .../confirm-box/core/confirm-box-service.ts | 168 ++--- .../types/confirm-box/core/model.ts | 490 +++++++-------- .../dialog/core/dialog-config.service.ts | 82 +-- .../types/dialog/core/dialog.service.ts | 200 +++--- ngx-awesome-popup/types/dialog/core/model.ts | 581 +++++++++--------- .../dialog-wrapper.component.html | 9 +- .../dialog-wrapper.component.scss | 36 +- .../dialog-wrapper.component.ts | 186 +++--- .../core/toast-notification.service.ts | 119 ++-- .../core/wrapper-abstraction.ts | 20 +- ...notification-simple-wrapper.component.html | 11 +- ...notification-simple-wrapper.component.scss | 54 +- ...t-notification-simple-wrapper.component.ts | 32 +- .../toast-notification-wrapper.component.html | 13 +- .../toast-notification-wrapper.component.scss | 37 +- 72 files changed, 1642 insertions(+), 1643 deletions(-) diff --git a/dist/bundles/costlydeveloper-ngx-awesome-popup.umd.js b/dist/bundles/costlydeveloper-ngx-awesome-popup.umd.js index ef1721f..46b6594 100644 --- a/dist/bundles/costlydeveloper-ngx-awesome-popup.umd.js +++ b/dist/bundles/costlydeveloper-ngx-awesome-popup.umd.js @@ -654,9 +654,6 @@ returnArray[middle.index] = Math.round(greyVal + (returnArray[highest.index] - greyVal) * middleValueRatio + 5); return "rgb(" + [returnArray].join() + ")"; }; - ColorProvider.prototype.isBright = function (_Rgb) { - return this.contrast(this.luminance(_Rgb)); - }; ColorProvider.prototype.brightness = function (_Rgb, _Action, _Percentage) { var rgbIntArray = this.getRGBArray(_Rgb); var _a = __read(this.getLowMidHi(rgbIntArray), 3), lowest = _a[0], middle = _a[1], highest = _a[2]; @@ -687,6 +684,15 @@ } return ("rgb(" + returnList.join() + ")"); }; + ColorProvider.prototype.getLightnessOfRGB = function (_Rgb) { + var rgbIntArray = this.getRGBArray(_Rgb); + var highest = Math.max.apply(Math, __spread(rgbIntArray)); + var lowest = Math.min.apply(Math, __spread(rgbIntArray)); + return (highest + lowest) / 2 / 255; + }; + ColorProvider.prototype.isBright = function (_Rgb) { + return this.contrast(this.luminance(_Rgb)); + }; ColorProvider.prototype.getLowMidHi = function (_RgbArray) { var rgbArrayCopy = _RgbArray.slice(); var rgbArrayWithoutAlpha = _RgbArray.length > 3 ? rgbArrayCopy.reverse().slice(1).reverse() : _RgbArray; @@ -731,12 +737,6 @@ }); return W3algorithm[0] * 0.2126 + W3algorithm[1] * 0.7152 + W3algorithm[2] * 0.0722; }; - ColorProvider.prototype.getLightnessOfRGB = function (_Rgb) { - var rgbIntArray = this.getRGBArray(_Rgb); - var highest = Math.max.apply(Math, __spread(rgbIntArray)); - var lowest = Math.min.apply(Math, __spread(rgbIntArray)); - return (highest + lowest) / 2 / 255; - }; ColorProvider.prototype.transparentize = function (_Rgb, _Percentage) { var baseArray = this.Base.replace(/^(rgb|rgba)\(/, '').replace(/\)$/, '').replace(/\s/g, '').split(',').map(function (x) { return +x; }); if (baseArray.length > 3) { @@ -863,6 +863,21 @@ { type: undefined, decorators: [{ type: i0.Inject, args: ['confirmBoxConfig',] }] } ]; }; + var DialogInjector = /** @class */ (function () { + function DialogInjector(ParentInjector, AdditionalTokens) { + this.ParentInjector = ParentInjector; + this.AdditionalTokens = AdditionalTokens; + } + DialogInjector.prototype.get = function (token, notFoundValue, flags) { + var value = this.AdditionalTokens.get(token); + if (value) { + return value; + } + return this.ParentInjector.get(token, notFoundValue); + }; + return DialogInjector; + }()); + function fadeInOut(_OpacityMin, _OpacityMax) { if (_OpacityMin === void 0) { _OpacityMin = 0; } if (_OpacityMax === void 0) { _OpacityMax = 1; } @@ -888,7 +903,6 @@ ]) ]); } - ; var ConfirmBoxWrapperComponent = /** @class */ (function () { function ConfirmBoxWrapperComponent(confirmBoxBelonging, cd) { @@ -941,9 +955,9 @@ ConfirmBoxWrapperComponent.decorators = [ { type: i0.Component, args: [{ selector: 'app-confirm-box-wrapper', - template: "
{{toastNotificationBelonging.Dispatch.Message}}
{{toastNotificationBelonging.Dispatch.Message}}
{{toastNotificationBelonging.Dispatch.Message}}
{{toastNotificationBelonging.Dispatch.Message}}