@colijnit/sharedcomponents 1.0.17 → 1.0.19

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.
@@ -1966,8 +1966,11 @@
1966
1966
 
1967
1967
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1968
1968
  var IconSvg = {
1969
+ "angle_left_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
1970
+ "angle_right_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"/></svg>",
1969
1971
  "arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
1970
1972
  "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
1973
+ "bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
1971
1974
  "delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
1972
1975
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
1973
1976
  "email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
@@ -2031,8 +2034,11 @@
2031
2034
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2032
2035
  var Icon;
2033
2036
  (function (Icon) {
2037
+ Icon["AngleLeftSolid"] = "angle_left_solid";
2038
+ Icon["AngleRightSolid"] = "angle_right_solid";
2034
2039
  Icon["ArrowFatRight"] = "arrow_fat_right";
2035
2040
  Icon["ArrowPointRight"] = "arrow_point_right";
2041
+ Icon["BringForwardRegular"] = "bring_forward_regular";
2036
2042
  Icon["DeleteLeftRegular"] = "delete_left_regular";
2037
2043
  Icon["DeliveryTruck"] = "delivery_truck";
2038
2044
  Icon["Email"] = "email";
@@ -2817,6 +2823,88 @@
2817
2823
  },] }
2818
2824
  ];
2819
2825
 
2826
+ var LayoutSwitcherComponent = /** @class */ (function () {
2827
+ function LayoutSwitcherComponent(iconCacheService) {
2828
+ this.iconCacheService = iconCacheService;
2829
+ this.icon = Icon;
2830
+ this.layoutItems = [];
2831
+ this.layoutSwitchEmit = new i0.EventEmitter();
2832
+ this.showMaskSidebar = false;
2833
+ this._activeIndex = 0;
2834
+ }
2835
+ LayoutSwitcherComponent.prototype.showClass = function () {
2836
+ return true;
2837
+ };
2838
+ Object.defineProperty(LayoutSwitcherComponent.prototype, "activeIndex", {
2839
+ get: function () {
2840
+ return this._activeIndex;
2841
+ },
2842
+ set: function (index) {
2843
+ this._activeIndex = index;
2844
+ this.toggleMaskSidebar();
2845
+ this.layoutSwitchEmit.emit(this.layoutItems[index]);
2846
+ },
2847
+ enumerable: false,
2848
+ configurable: true
2849
+ });
2850
+ LayoutSwitcherComponent.prototype.toggleMaskSidebar = function () {
2851
+ this.showMaskSidebar = !this.showMaskSidebar;
2852
+ };
2853
+ return LayoutSwitcherComponent;
2854
+ }());
2855
+ LayoutSwitcherComponent.decorators = [
2856
+ { type: i0.Component, args: [{
2857
+ selector: "layout-switcher",
2858
+ template: "\n <div class=\"mask-wrapper\" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>\n <div class=\"icon-wrapper\" (click)=\"toggleMaskSidebar()\">\n <co-icon class=\"icon-mask\" [iconData]=\"iconCacheService.getIcon(icon.BringForwardRegular)\" [@positionIcon]=\"showMaskSidebar\"></co-icon>\n\n <co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]=\"showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)\"></co-icon>\n </div>\n\n <div class=\"mask-content\" *ngIf=\"showMaskSidebar\" @showHideSidebar>\n <span *ngFor='let item of this.layoutItems' [class.active]=\"this.activeIndex === this.layoutItems.indexOf(item)\" [textContent]=\"item\" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>\n </div>\n </div>\n\n ",
2859
+ animations: [
2860
+ animations.trigger("showHideSidebar", [
2861
+ animations.state("void", animations.style({ "width": "0" })),
2862
+ animations.state("*", animations.style({ "width": "*" })),
2863
+ animations.transition("void <=> *", animations.animate(200))
2864
+ ]),
2865
+ animations.trigger("positionIcon", [
2866
+ animations.state("true", animations.style({ "left": "70px" })),
2867
+ animations.state("false", animations.style({ "left": "10px" })),
2868
+ animations.transition("true <=> false", animations.animate(200))
2869
+ ]),
2870
+ animations.trigger("positionHandle", [
2871
+ animations.state("true", animations.style({ "left": "15px" })),
2872
+ animations.state("false", animations.style({ "left": "75px" })),
2873
+ animations.transition("true <=> false", animations.animate(200))
2874
+ ])
2875
+ ],
2876
+ encapsulation: i0.ViewEncapsulation.None
2877
+ },] }
2878
+ ];
2879
+ LayoutSwitcherComponent.ctorParameters = function () { return [
2880
+ { type: IconCacheService }
2881
+ ]; };
2882
+ LayoutSwitcherComponent.propDecorators = {
2883
+ showClass: [{ type: i0.HostBinding, args: ['class.layout-switcher',] }],
2884
+ layoutItems: [{ type: i0.Input }],
2885
+ layoutSwitchEmit: [{ type: i0.Output }]
2886
+ };
2887
+
2888
+ var LayoutSwitcherModule = /** @class */ (function () {
2889
+ function LayoutSwitcherModule() {
2890
+ }
2891
+ return LayoutSwitcherModule;
2892
+ }());
2893
+ LayoutSwitcherModule.decorators = [
2894
+ { type: i0.NgModule, args: [{
2895
+ imports: [
2896
+ common.CommonModule,
2897
+ corecomponents_v12.IconModule
2898
+ ],
2899
+ declarations: [
2900
+ LayoutSwitcherComponent,
2901
+ ],
2902
+ exports: [
2903
+ LayoutSwitcherComponent
2904
+ ]
2905
+ },] }
2906
+ ];
2907
+
2820
2908
  /*
2821
2909
  * Public API Surface of sharedcomponents
2822
2910
  */
@@ -2829,6 +2917,8 @@
2829
2917
  exports.DocsignModule = DocsignModule;
2830
2918
  exports.KeyPadComponent = KeyPadComponent;
2831
2919
  exports.KeyPadModule = KeyPadModule;
2920
+ exports.LayoutSwitcherComponent = LayoutSwitcherComponent;
2921
+ exports.LayoutSwitcherModule = LayoutSwitcherModule;
2832
2922
  exports.SendMethodDialogComponent = SendMethodDialogComponent;
2833
2923
  exports.SendMethodDialogModule = SendMethodDialogModule;
2834
2924
  exports.StockComponent = StockComponent;