oasys-lib 0.0.3 → 0.0.6

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.
Files changed (42) hide show
  1. package/bundles/oasys-lib.umd.js +39 -30
  2. package/bundles/oasys-lib.umd.js.map +1 -1
  3. package/esm2015/lib/components/button/button.component.js +31 -18
  4. package/esm2015/lib/components/button/button.js +1 -1
  5. package/esm2015/lib/components/icon/icon.component.js +5 -3
  6. package/esm2015/lib/components/icon/icon.js +1 -1
  7. package/esm2015/lib/components/text/text.js +2 -0
  8. package/esm2015/lib/oasys-lib.module.js +11 -8
  9. package/esm2015/lib/services/token.service.js +2 -1
  10. package/esm2015/public-api.js +1 -1
  11. package/fesm2015/oasys-lib.js +40 -25
  12. package/fesm2015/oasys-lib.js.map +1 -1
  13. package/lib/components/button/button.component.d.ts +12 -6
  14. package/lib/components/button/button.component.d.ts.map +1 -0
  15. package/lib/components/button/button.d.ts +1 -1
  16. package/lib/components/button/button.d.ts.map +1 -0
  17. package/lib/components/icon/icon.component.d.ts +1 -0
  18. package/lib/components/icon/icon.component.d.ts.map +1 -0
  19. package/lib/components/icon/icon.d.ts +2 -1
  20. package/lib/components/icon/icon.d.ts.map +1 -0
  21. package/lib/components/layout/box/box.component.d.ts +1 -0
  22. package/lib/components/layout/box/box.component.d.ts.map +1 -0
  23. package/lib/components/layout/inline/inline.component.d.ts +1 -0
  24. package/lib/components/layout/inline/inline.component.d.ts.map +1 -0
  25. package/lib/components/text/text.d.ts +2 -0
  26. package/lib/components/text/text.d.ts.map +1 -0
  27. package/lib/oasys-lib.module.d.ts +2 -1
  28. package/lib/oasys-lib.module.d.ts.map +1 -0
  29. package/lib/services/token.service.d.ts +1 -0
  30. package/lib/services/token.service.d.ts.map +1 -0
  31. package/lib/services/window.service.d.ts +1 -0
  32. package/lib/services/window.service.d.ts.map +1 -0
  33. package/oasys-lib.d.ts +1 -0
  34. package/oasys-lib.d.ts.map +1 -0
  35. package/package.json +3 -3
  36. package/public-api.d.ts +1 -0
  37. package/public-api.d.ts.map +1 -0
  38. package/src/assets/bloomandwild/icons/icons.svg +1 -1
  39. package/src/assets/bloomandwild/variables.css +32 -12
  40. package/src/assets/bloomon/icons/icons.svg +1 -1
  41. package/src/assets/bloomon/variables.css +31 -10
  42. package/src/assets/global/variables.css +1 -1
@@ -1,49 +1,52 @@
1
1
  import { APP_BASE_HREF, CommonModule } from '@angular/common';
2
2
  import { NgModule } from '@angular/core';
3
3
  import { RouterModule } from '@angular/router';
4
- import { ButtonComponent } from './components/button/button.component';
4
+ import { OasysButtonComponent } from './components/button/button.component';
5
5
  import { LayoutInlineComponent } from './components/layout/inline/inline.component';
6
6
  import { IconComponent } from './components/icon/icon.component';
7
7
  import { LayoutBoxComponent } from './components/layout/box/box.component';
8
8
  import { WindowService } from './services/window.service';
9
+ import { TokenService } from './services/token.service';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "@angular/router";
11
12
  export class OasysLibModule {
12
13
  }
13
14
  OasysLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
- OasysLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, declarations: [ButtonComponent,
15
+ OasysLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, declarations: [OasysButtonComponent,
15
16
  LayoutInlineComponent,
16
17
  IconComponent,
17
- LayoutBoxComponent], imports: [CommonModule, i1.RouterModule], exports: [ButtonComponent,
18
+ LayoutBoxComponent], imports: [CommonModule, i1.RouterModule], exports: [OasysButtonComponent,
18
19
  LayoutBoxComponent] });
19
20
  OasysLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, providers: [
20
21
  WindowService,
22
+ TokenService,
21
23
  { provide: APP_BASE_HREF, useValue: '/' }
22
24
  ], imports: [[
23
25
  CommonModule,
24
- RouterModule.forRoot([])
26
+ RouterModule.forChild([])
25
27
  ]] });
26
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, decorators: [{
27
29
  type: NgModule,
28
30
  args: [{
29
31
  declarations: [
30
- ButtonComponent,
32
+ OasysButtonComponent,
31
33
  LayoutInlineComponent,
32
34
  IconComponent,
33
35
  LayoutBoxComponent
34
36
  ],
35
37
  imports: [
36
38
  CommonModule,
37
- RouterModule.forRoot([])
39
+ RouterModule.forChild([])
38
40
  ],
39
41
  exports: [
40
- ButtonComponent,
42
+ OasysButtonComponent,
41
43
  LayoutBoxComponent
42
44
  ],
43
45
  providers: [
44
46
  WindowService,
47
+ TokenService,
45
48
  { provide: APP_BASE_HREF, useValue: '/' }
46
49
  ]
47
50
  }]
48
51
  }] });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2FzeXMtbGliLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL29hc3lzLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM5RCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDdkUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNkNBQTZDLENB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pbmUuY29tcG9uZW50JztcbmltcG9ydCB7IEljb25Db21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvaWNvbi9pY29uLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBMYXlvdXRCb3hDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvbGF5b3V0L2JveC9ib3guY29tcG9uZW50JztcbmltcG9ydCB7IFdpbmRvd1NlcnZpY2UgfSBmcm9tICcuL3NlcnZpY2VzL3dpbmRvdy5zZXJ2aWNlJztcbmltcG9ydCB7IFRva2VuU2VydmljZSB9IGZyb20gJy4vc2VydmljZXMvdG9rZW4uc2VydmljZSc7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBPYXN5c0J1dHRvbkNvbXBvbmVudCxcbiAgICBMYXlvdXRJbmxpbmVDb21wb25lbnQsXG4gICAgSWNvbkNvbXBvbmVudCxcbiAgICBMYXlvdXRCb3hDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQoW10pXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBPYXN5c0J1dHRvbkNvbXBvbmVudCxcbiAgICBMYXlvdXRCb3hDb21wb25lbnRcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXG4gICAgV2luZG93U2VydmljZSxcbiAgICBUb2tlblNlcnZpY2UsXG4gICAge3Byb3ZpZGU6IEFQUF9CQVNFX0hSRUYsIHVzZVZhbHVlOiAnLyd9XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgT2FzeXNMaWJNb2R1bGUgeyB9XG4iXX0=
@@ -1,4 +1,5 @@
1
1
  import { Injectable } from '@angular/core';
2
+ import { WindowService } from './window.service';
2
3
  import * as i0 from "@angular/core";
3
4
  import * as i1 from "./window.service";
4
5
  export class TokenService {
@@ -33,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
33
34
  providedIn: 'root'
34
35
  }]
35
36
  }], ctorParameters: function () { return [{ type: i1.WindowService }]; } });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL3NlcnZpY2VzL3Rva2VuLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTTNDLE1BQU0sT0FBTyxZQUFZO0lBRXZCLFlBQW9CLFNBQXdCO1FBQXhCLGNBQVMsR0FBVCxTQUFTLENBQWU7SUFBRSxDQUFDO0lBRS9DOzs7Ozs7Ozs7TUFTRTtJQUNGLFlBQVksQ0FBQyxTQUFpQixFQUFFLE9BQWdCO1FBQzlDLE9BQU8sSUFBSSxDQUFDLGFBQWEsQ0FBQyxTQUFTLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDaEQsQ0FBQztJQUVELGFBQWEsQ0FBQyxTQUFpQixFQUFFLE9BQWlCO1FBQ2hELE1BQU0sV0FBVyxHQUFHLE9BQU8sSUFBSSxJQUFJLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxRQUFRLENBQUMsZUFBZSxDQUFDO1FBQ3BGLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxZQUFZLENBQUMsZ0JBQWdCLENBQUMsV0FBVyxDQUFDO2FBQzdELGdCQUFnQixDQUFDLFNBQVMsQ0FBQzthQUMzQixJQUFJLEVBQUUsSUFBSSxFQUFFLENBQUM7SUFDbEIsQ0FBQzs7MEdBdkJVLFlBQVk7OEdBQVosWUFBWSxjQUZYLE1BQU07NEZBRVAsWUFBWTtrQkFIeEIsVU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F0aWNhbGx5XG5cbiAgSW1wb3J0YW50OiBFbnN1cmUgdGhhdCB0aGUgY29tcG9uZW50IHJlcXVpcmluZyB0aGUgYnJhbmQgbmFtZSBoYXMgbG9jYWxseSBzY29wZWQgdGhlIGN1c3RvbSBwcm9wZXJ0eTpcbiAgfCAgdWktaWNvbiB7XG4gIHwgICAgLS1pY29uLWNvbXBvbmVudC1icmFuZDogdmFyKC0tdXRpbGl0eS1icmFuZC1uYW1lKTtcbiAgfCAgfVxuICAqL1xuICBnZXRCcmFuZE5hbWUodG9rZW5OYW1lOiBzdHJpbmcsIGVsZW1lbnQ6IEVsZW1lbnQpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmdldFRva2VuVmFsdWUodG9rZW5OYW1lLCBlbGVtZW50KTtcbiAgfVxuXG4gIGdldFRva2VuVmFsdWUodG9rZW5OYW1lOiBzdHJpbmcsIGVsZW1lbnQ/OiBFbGVtZW50KTogc3RyaW5nIHtcbiAgICBjb25zdCByb290RWxlbWVudCA9IGVsZW1lbnQgfHwgdGhpcy53aW5kb3dSZWYubmF0aXZlV2luZG93LmRvY3VtZW50LmRvY3VtZW50RWxlbWVudDtcbiAgICByZXR1cm4gdGhpcy53aW5kb3dSZWYubmF0aXZlV2luZG93LmdldENvbXB1dGVkU3R5bGUocm9vdEVsZW1lbnQpXG4gICAgICAuZ2V0UHJvcGVydHlWYWx1ZSh0b2tlbk5hbWUpXG4gICAgICAudHJpbSgpIHx8ICcnO1xuICB9XG5cbn0iXX0=
@@ -5,4 +5,4 @@ export * from './lib/oasys-lib.module';
5
5
  export * from './lib/components/button/button.component';
6
6
  export * from './lib/components/icon/icon.component';
7
7
  export * from './lib/components/layout/box/box.component';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmM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liL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9pY29uL2ljb24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvbGF5b3V0L2JveC9ib3guY29tcG9uZW50JztcblxuIl19
@@ -1,7 +1,7 @@
1
1
  import * as i3 from '@angular/common';
2
2
  import { CommonModule, APP_BASE_HREF } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Output, NgModule } from '@angular/core';
4
+ import { Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, ContentChild, Output, NgModule } from '@angular/core';
5
5
  import * as i2 from '@angular/router';
6
6
  import { RouterModule } from '@angular/router';
7
7
 
@@ -83,7 +83,7 @@ class IconComponent {
83
83
  }
84
84
  }
85
85
  IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconComponent, deps: [{ token: TokenService }, { token: WindowService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
86
- IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "ui-icon", inputs: { iconSize: "iconSize", iconName: "iconName", iconContext: "iconContext", iconWidth: "iconWidth", iconHeight: "iconHeight", iconClass: "iconClass" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" attr.width=\"{{iconWidth}}px\" attr.height=\"{{iconHeight}}px\" attr.class=\"{{iconClass}}\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{iconName}}-24\"></use>\n </svg>\n</div>\n", styles: ["ui-icon{--icon-component-brand: var(--utility-brand-name)}.ui-icon{display:inline-flex}.ui-icon.icon-size-large.icon-context-leading{margin-left:calc(var(--component-size-button-large-icon-offset-leading) * -1)}.ui-icon.icon-size-large.icon-context-trailing{margin-right:calc(var(--component-size-button-large-icon-offset-trailing) * -1)}.ui-icon.icon-size-large.icon-context-iconOnly{margin-left:calc(var(--component-size-button-large-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-button-large-icon-offset-icon-only) * -1)}.ui-icon.icon-size-small.icon-context-leading{margin-left:calc(var(--component-size-button-small-icon-offset-leading) * -1)}.ui-icon.icon-size-small.icon-context-trailing{margin-right:calc(var(--component-size-button-small-icon-offset-trailing) * -1)}.ui-icon.icon-size-small.icon-context-iconOnly{margin-left:calc(var(--component-size-button-small-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-button-small-icon-offset-icon-only) * -1)}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
86
+ IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "ui-icon", inputs: { iconSize: "iconSize", iconName: "iconName", iconContext: "iconContext", iconWidth: "iconWidth", iconHeight: "iconHeight", iconClass: "iconClass" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" attr.width=\"{{iconWidth}}px\" attr.height=\"{{iconHeight}}px\" attr.class=\"{{iconClass}}\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{iconName}}\"></use>\n </svg>\n</div>\n", styles: ["ui-icon{--icon-component-brand: var(--utility-brand-name)}.ui-icon{display:inline-flex}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
87
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconComponent, decorators: [{
88
88
  type: Component,
89
89
  args: [{
@@ -107,7 +107,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
107
107
  type: Input
108
108
  }] } });
109
109
 
110
- class ButtonComponent {
110
+ class OasysButtonComponent {
111
111
  constructor(changes) {
112
112
  this.changes = changes;
113
113
  this.buttonIconPlacement = 'leading';
@@ -118,17 +118,15 @@ class ButtonComponent {
118
118
  this.buttonDisabled = false;
119
119
  // Button Actions
120
120
  this.href = '';
121
- this.click = new EventEmitter();
122
- this.buttonDisplayClasses = [];
121
+ this.clicked = new EventEmitter();
123
122
  this.iconContext = 'none';
123
+ this.outlineButtonTypes = ['secondary', 'secondary-inverse'];
124
124
  }
125
125
  onClick() {
126
- console.log('button was clicked');
127
- this.click.emit();
126
+ this.clicked.emit();
128
127
  }
129
128
  createButton() {
130
129
  return {
131
- buttonText: this.buttonText,
132
130
  buttonIcon: this.buttonIcon,
133
131
  buttonIconPlacement: this.buttonIconPlacement,
134
132
  buttonType: this.buttonType,
@@ -141,23 +139,37 @@ class ButtonComponent {
141
139
  `size-${this.buttonSize}`,
142
140
  `${this.buttonIcon ? 'button--has-icon' : ''}`,
143
141
  `${this.buttonFullWidth ? 'button--full-width' : ''}`,
144
- `${this.buttonText && this.buttonIcon ? 'button--icon--' + this.buttonIconPlacement : ''}`,
145
- `${!this.buttonText && this.buttonIcon ? 'button--icon--only' : ''}`
142
+ `${this.buttonIcon ? 'button--icon--' + this.buttonIconPlacement : ''}`,
143
+ `${this.outlineButtonTypes.indexOf(this.buttonType) !== -1 ? 'button--outline' : ''}`
146
144
  ].filter((d) => !!d)
147
145
  };
148
146
  }
147
+ ngAfterViewInit() {
148
+ var _a, _b;
149
+ if ((_b = (_a = this.buttonText) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.innerText) {
150
+ this.accessibleButtonContent = this.buttonText.nativeElement.innerText;
151
+ }
152
+ else {
153
+ throw new Error(`
154
+ No inner text found. All buttons should have text passed via ng-content to enable accessibility for screen readers, this includes icon-only buttons.
155
+
156
+ Pass content using the template variable #buttonText eg:
157
+ ui-button()
158
+ span(#buttonText) Buy All The Things
159
+ `);
160
+ }
161
+ }
149
162
  ngOnChanges() {
150
163
  this.button = this.createButton();
151
- console.log(this.button);
152
164
  this.changes.markForCheck();
153
165
  }
154
166
  ngOnInit() {
155
167
  this.button = this.createButton();
156
168
  }
157
169
  }
158
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
159
- ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonComponent, selector: "ui-button", inputs: { buttonText: "buttonText", buttonIcon: "buttonIcon", buttonIconPlacement: "buttonIconPlacement", buttonSize: "buttonSize", buttonFullWidth: "buttonFullWidth", buttonType: "buttonType", buttonDisabled: "buttonDisabled", href: "href" }, outputs: { click: "click" }, usesOnChanges: true, ngImport: i0, template: "<button (click)=\"onClick()\"\n [routerLink]=\"button.href || null\"\n [ngClass]=\"button.buttonDisplayClasses\"\n [attr.disabled]=\"button.buttonDisabled === true || null\"\n role=\"button\"\n [attr.aria-label]=\"button.buttonText\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [iconName]=\"button.buttonIcon\" [iconSize]=\"button.buttonSize\" [iconClass]=\"'buttonIcon'\" [iconContext]=\"button.buttonIconPlacement\"></ui-icon>\n <span\n class=\"ui-text\"\n *ngIf=\"button.buttonText && button.buttonIconPlacement !== 'iconOnly'\">\n {{button.buttonText}}\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n</button>\n", styles: ["ui-button button{border:0;padding:0;position:relative;display:inline-flex;text-align:center;justify-content:center;align-items:center;border-style:solid;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;-webkit-font-smoothing:antialiased;border-width:var(--component-border-width-button);font-family:var(--semantic-font-family-body);border-radius:var(--component-border-radius-button)}ui-button button:focus-visible{outline:none;box-shadow:0 0 0 var(--semantic-border-width-focus) var(--component-color-button-expressive-background)}ui-button button:focus{outline:none;box-shadow:0 0 0 var(--semantic-border-width-focus) var(--component-color-button-expressive-background)}ui-button button.type-primary{background-color:var(--component-color-button-primary-background);border-color:var(--component-color-button-primary-border);color:var(--component-color-button-primary-text)}ui-button button.type-primary .button-overlay{background-color:var(--component-color-button-primary-text)}ui-button button.type-secondary{background-color:var(--component-color-button-secondary-background);border-color:var(--component-color-button-secondary-border);color:var(--component-color-button-secondary-text)}ui-button button.type-secondary .button-overlay{background-color:var(--component-color-button-secondary-text)}ui-button button.type-tertiary{background-color:var(--component-color-button-tertiary-background);border-color:var(--component-color-button-tertiary-border);color:var(--component-color-button-tertiary-text)}ui-button button.type-tertiary .button-overlay{background-color:var(--component-color-button-tertiary-text)}ui-button button.type-primary-inverse{background-color:var(--component-color-button-primary-inverse-background);border-color:var(--component-color-button-primary-inverse-border);color:var(--component-color-button-primary-inverse-text)}ui-button button.type-primary-inverse .button-overlay{background-color:var(--component-color-button-primary-inverse-text)}ui-button button.type-secondary-inverse{background-color:var(--component-color-button-secondary-inverse-background);border-color:var(--component-color-button-secondary-inverse-border);color:var(--component-color-button-secondary-inverse-text)}ui-button button.type-secondary-inverse .button-overlay{background-color:var(--component-color-button-secondary-inverse-text)}ui-button button.type-tertiary-inverse{background-color:var(--component-color-button-tertiary-inverse-background);border-color:var(--component-color-button-tertiary-inverse-border);color:var(--component-color-button-tertiary-inverse-text)}ui-button button.type-tertiary-inverse .button-overlay{background-color:var(--component-color-button-tertiary-inverse-text)}ui-button button.type-expressive{background-color:var(--component-color-button-expressive-background);border-color:var(--component-color-button-expressive-border);color:var(--component-color-button-expressive-text)}ui-button button.type-expressive .button-overlay{background-color:var(--component-color-button-expressive-text)}ui-button button.type-danger{background-color:var(--component-color-button-danger-background);border-color:var(--component-color-button-danger-border);color:var(--component-color-button-danger-text)}ui-button button.type-danger .button-overlay{background-color:var(--component-color-button-danger-text)}ui-button button.type-facebook{background-color:var(--component-color-button-facebook-background);border-color:var(--component-color-button-facebook-border);color:var(--component-color-button-facebook-text)}ui-button button.type-facebook .button-overlay{background-color:var(--component-color-button-facebook-text)}ui-button button.type-paypal{background-color:var(--component-color-button-paypal-background);border-color:var(--component-color-button-paypal-border);color:var(--component-color-button-paypal-text)}ui-button button.type-paypal .button-overlay{background-color:var(--component-color-button-paypal-text)}ui-button button.type-trustpilot{background-color:var(--component-color-button-trustpilot-background);border-color:var(--component-color-button-trustpilot-border);color:var(--component-color-button-trustpilot-text)}ui-button button.type-trustpilot .button-overlay{background-color:var(--component-color-button-trustpilot-text)}ui-button button.size-large{padding:var(--component-size-button-large-padding-y) var(--component-size-button-large-padding-x);font-size:var(--component-size-button-large-font-size)}ui-button button.size-large .button-content{grid-gap:var(--component-size-button-large-inline-spacing);gap:var(--component-size-button-large-inline-spacing)}ui-button button.size-large .ui-icon{max-height:var(--component-size-button-large-line-height)}ui-button button.size-large .ui-text{line-height:var(--component-size-button-large-line-height)}ui-button button.size-small{padding:var(--component-size-button-small-padding-y) var(--component-size-button-small-padding-x);font-size:var(--component-size-button-small-font-size)}ui-button button.size-small .button-content{grid-gap:var(--component-size-button-small-inline-spacing);gap:var(--component-size-button-small-inline-spacing)}ui-button button.size-small .ui-icon{max-height:var(--component-size-button-small-line-height)}ui-button button.size-small .ui-text{line-height:var(--component-size-button-small-line-height)}ui-button button[disabled]{background-color:var(--component-color-button-disabled-background);border-color:var(--component-color-button-disabled-border);color:var(--component-color-button-disabled-text);cursor:default}ui-button button .buttonIcon{fill:currentColor}ui-button button .button-overlay{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;pointer-events:none;opacity:0;border-radius:var(--component-border-radius-button)}ui-button button:hover .button-overlay{opacity:var(--component-opacity-overlay-hover)}ui-button button:focus .button-overlay{opacity:var(--component-opacity-overlay-focus)}ui-button button.button--has-icon.button--icon--trailing .button-content{flex-direction:row-reverse}ui-button button .button-content{display:flex;align-items:center}ui-button button .button-content .ui-icon{display:flex;align-items:center}ui-button button .button-content .ui-text{text-transform:var(--component-text-transform-button);letter-spacing:var(--component-letter-spacing-button);font-weight:var(--component-font-weight-button)}ui-button button.button--full-width{display:flex;width:100%}\n"], components: [{ type: IconComponent, selector: "ui-icon", inputs: ["iconSize", "iconName", "iconContext", "iconWidth", "iconHeight", "iconClass"] }], directives: [{ type: i2.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonComponent, decorators: [{
170
+ OasysButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysButtonComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
171
+ OasysButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OasysButtonComponent, selector: "ui-button", inputs: { buttonIcon: "buttonIcon", buttonIconPlacement: "buttonIconPlacement", buttonSize: "buttonSize", buttonFullWidth: "buttonFullWidth", buttonType: "buttonType", buttonDisabled: "buttonDisabled", href: "href" }, outputs: { clicked: "clicked" }, queries: [{ propertyName: "buttonText", first: true, predicate: ["buttonText"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<button (click)=\"onClick()\"\n [routerLink]=\"button.href || null\"\n [ngClass]=\"button.buttonDisplayClasses\"\n [attr.disabled]=\"button.buttonDisabled === true || null\"\n [attr.aria-label]=\"accessibleButtonContent\"\n role=\"button\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [iconName]=\"button.buttonIcon\" [iconSize]=\"button.buttonSize\" [iconClass]=\"'buttonIcon'\" [iconContext]=\"button.buttonIconPlacement\"></ui-icon>\n <span class=\"ui-text\" *ngIf=\"button.buttonIconPlacement !== 'iconOnly'\">\n <ng-content></ng-content>\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n</button>\n", styles: ["ui-button button{border:0;padding:0;position:relative;display:inline-flex;text-align:center;justify-content:center;align-items:center;border-style:solid;cursor:pointer;user-select:none;appearance:none;-webkit-appearance:none;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;border-radius:var(--component-border-radius-button);font-family:var(--semantic-font-family-body)}ui-button button .button-content{display:flex;align-items:center}ui-button button .button-content .ui-icon{display:flex;align-items:center}ui-button button .button-content .ui-text{text-transform:var(--component-text-transform-button);letter-spacing:var(--component-letter-spacing-button);font-weight:var(--component-font-weight-button)}ui-button button .button-overlay{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;pointer-events:none;border-radius:var(--component-border-radius-button);opacity:0}ui-button button:hover .button-overlay{opacity:var(--component-opacity-overlay-hover)}ui-button button:focus .button-overlay{opacity:var(--component-opacity-overlay-focus)}ui-button button:focus-visible{outline:none;box-shadow:0 0 0 var(--semantic-border-width-focus) var(--component-color-button-expressive-background)}ui-button button:focus{outline:none}ui-button button.type-primary{background-color:var(--component-color-button-primary-background);border-color:var(--component-color-button-primary-border);color:var(--component-color-button-primary-text)}ui-button button.type-primary .button-overlay{background-color:var(--component-color-button-primary-text)}ui-button button.type-secondary{background-color:var(--component-color-button-secondary-background);border-color:var(--component-color-button-secondary-border);color:var(--component-color-button-secondary-text)}ui-button button.type-secondary .button-overlay{background-color:var(--component-color-button-secondary-text)}ui-button button.type-tertiary{background-color:var(--component-color-button-tertiary-background);border-color:var(--component-color-button-tertiary-border);color:var(--component-color-button-tertiary-text)}ui-button button.type-tertiary .button-overlay{background-color:var(--component-color-button-tertiary-text)}ui-button button.type-primary-inverse{background-color:var(--component-color-button-primary-inverse-background);border-color:var(--component-color-button-primary-inverse-border);color:var(--component-color-button-primary-inverse-text)}ui-button button.type-primary-inverse .button-overlay{background-color:var(--component-color-button-primary-inverse-text)}ui-button button.type-secondary-inverse{background-color:var(--component-color-button-secondary-inverse-background);border-color:var(--component-color-button-secondary-inverse-border);color:var(--component-color-button-secondary-inverse-text)}ui-button button.type-secondary-inverse .button-overlay{background-color:var(--component-color-button-secondary-inverse-text)}ui-button button.type-tertiary-inverse{background-color:var(--component-color-button-tertiary-inverse-background);border-color:var(--component-color-button-tertiary-inverse-border);color:var(--component-color-button-tertiary-inverse-text)}ui-button button.type-tertiary-inverse .button-overlay{background-color:var(--component-color-button-tertiary-inverse-text)}ui-button button.type-expressive{background-color:var(--component-color-button-expressive-background);border-color:var(--component-color-button-expressive-border);color:var(--component-color-button-expressive-text)}ui-button button.type-expressive .button-overlay{background-color:var(--component-color-button-expressive-text)}ui-button button.type-danger{background-color:var(--component-color-button-danger-background);border-color:var(--component-color-button-danger-border);color:var(--component-color-button-danger-text)}ui-button button.type-danger .button-overlay{background-color:var(--component-color-button-danger-text)}ui-button button.type-facebook{background-color:var(--component-color-button-facebook-background);border-color:var(--component-color-button-facebook-border);color:var(--component-color-button-facebook-text)}ui-button button.type-facebook .button-overlay{background-color:var(--component-color-button-facebook-text)}ui-button button.type-paypal{background-color:var(--component-color-button-paypal-background);border-color:var(--component-color-button-paypal-border);color:var(--component-color-button-paypal-text)}ui-button button.type-paypal .button-overlay{background-color:var(--component-color-button-paypal-text)}ui-button button.type-trustpilot{background-color:var(--component-color-button-trustpilot-background);border-color:var(--component-color-button-trustpilot-border);color:var(--component-color-button-trustpilot-text)}ui-button button.type-trustpilot .button-overlay{background-color:var(--component-color-button-trustpilot-text)}ui-button button .buttonIcon{fill:currentColor}ui-button button.size-large{padding:var(--component-size-button-large-padding-y) var(--component-size-button-large-padding-x);font-size:var(--component-size-button-large-font-size);border-width:var(--component-size-button-large-border-width)}ui-button button.size-large .button-content{grid-gap:var(--component-size-button-large-inline-spacing);gap:var(--component-size-button-large-inline-spacing)}ui-button button.size-large .ui-text{line-height:var(--component-size-button-large-line-height)}ui-button button.size-large .ui-icon{max-height:var(--component-size-button-large-line-height)}ui-button button.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-size-button-large-icon-offset-leading) * -1)}ui-button button.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-size-button-large-icon-offset-trailing) * -1)}ui-button button.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-size-button-large-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-button-large-icon-offset-icon-only) * -1)}ui-button button.size-small{padding:var(--component-size-button-small-padding-y) var(--component-size-button-small-padding-x);font-size:var(--component-size-button-small-font-size);border-width:var(--component-size-button-small-border-width)}ui-button button.size-small .button-content{grid-gap:var(--component-size-button-small-inline-spacing);gap:var(--component-size-button-small-inline-spacing)}ui-button button.size-small .ui-text{line-height:var(--component-size-button-small-line-height)}ui-button button.size-small .ui-icon{max-height:var(--component-size-button-small-line-height)}ui-button button.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-size-button-small-icon-offset-leading) * -1)}ui-button button.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-size-button-small-icon-offset-trailing) * -1)}ui-button button.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-size-button-small-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-button-small-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-large{padding:var(--component-size-outline-button-large-padding-y) var(--component-size-outline-button-large-padding-x);font-size:var(--component-size-outline-button-large-font-size);border-width:var(--component-size-outline-button-large-border-width)}ui-button button.button--outline.size-large .button-content{grid-gap:var(--component-size-outline-button-large-inline-spacing);gap:var(--component-size-outline-button-large-inline-spacing)}ui-button button.button--outline.size-large .ui-text{line-height:var(--component-size-outline-button-large-line-height)}ui-button button.button--outline.size-large .ui-icon{max-height:var(--component-size-outline-button-large-line-height)}ui-button button.button--outline.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-size-outline-button-large-icon-offset-leading) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-size-outline-button-large-icon-offset-trailing) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-size-outline-button-large-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-outline-button-large-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-small{padding:var(--component-size-outline-button-small-padding-y) var(--component-size-outline-button-small-padding-x);font-size:var(--component-size-outline-button-small-font-size);border-width:var(--component-size-outline-button-small-border-width)}ui-button button.button--outline.size-small .button-content{grid-gap:var(--component-size-outline-button-small-inline-spacing);gap:var(--component-size-outline-button-small-inline-spacing)}ui-button button.button--outline.size-small .ui-text{line-height:var(--component-size-outline-button-small-line-height)}ui-button button.button--outline.size-small .ui-icon{max-height:var(--component-size-outline-button-small-line-height)}ui-button button.button--outline.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-size-outline-button-small-icon-offset-leading) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-size-outline-button-small-icon-offset-trailing) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-size-outline-button-small-icon-offset-icon-only) * -1);margin-right:calc(var(--component-size-outline-button-small-icon-offset-icon-only) * -1)}ui-button button[disabled]{background-color:var(--component-color-button-disabled-background);border-color:var(--component-color-button-disabled-border);color:var(--component-color-button-disabled-text);cursor:default}ui-button button.button--has-icon.button--icon--trailing .button-content{flex-direction:row-reverse}ui-button button.button--full-width{display:flex;width:100%}\n"], components: [{ type: IconComponent, selector: "ui-icon", inputs: ["iconSize", "iconName", "iconContext", "iconWidth", "iconHeight", "iconClass"] }], directives: [{ type: i2.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysButtonComponent, decorators: [{
161
173
  type: Component,
162
174
  args: [{
163
175
  selector: 'ui-button',
@@ -166,12 +178,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
166
178
  encapsulation: ViewEncapsulation.None,
167
179
  changeDetection: ChangeDetectionStrategy.OnPush
168
180
  }]
169
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { buttonText: [{
170
- type: Input
171
- }], buttonIcon: [{
181
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { buttonIcon: [{
172
182
  type: Input
173
183
  }], buttonIconPlacement: [{
174
184
  type: Input
185
+ }], buttonText: [{
186
+ type: ContentChild,
187
+ args: ['buttonText']
175
188
  }], buttonSize: [{
176
189
  type: Input
177
190
  }], buttonFullWidth: [{
@@ -182,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
182
195
  type: Input
183
196
  }], href: [{
184
197
  type: Input
185
- }], click: [{
198
+ }], clicked: [{
186
199
  type: Output
187
200
  }] } });
188
201
 
@@ -235,37 +248,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
235
248
  class OasysLibModule {
236
249
  }
237
250
  OasysLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
238
- OasysLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, declarations: [ButtonComponent,
251
+ OasysLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, declarations: [OasysButtonComponent,
239
252
  LayoutInlineComponent,
240
253
  IconComponent,
241
- LayoutBoxComponent], imports: [CommonModule, i2.RouterModule], exports: [ButtonComponent,
254
+ LayoutBoxComponent], imports: [CommonModule, i2.RouterModule], exports: [OasysButtonComponent,
242
255
  LayoutBoxComponent] });
243
256
  OasysLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, providers: [
244
257
  WindowService,
258
+ TokenService,
245
259
  { provide: APP_BASE_HREF, useValue: '/' }
246
260
  ], imports: [[
247
261
  CommonModule,
248
- RouterModule.forRoot([])
262
+ RouterModule.forChild([])
249
263
  ]] });
250
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, decorators: [{
251
265
  type: NgModule,
252
266
  args: [{
253
267
  declarations: [
254
- ButtonComponent,
268
+ OasysButtonComponent,
255
269
  LayoutInlineComponent,
256
270
  IconComponent,
257
271
  LayoutBoxComponent
258
272
  ],
259
273
  imports: [
260
274
  CommonModule,
261
- RouterModule.forRoot([])
275
+ RouterModule.forChild([])
262
276
  ],
263
277
  exports: [
264
- ButtonComponent,
278
+ OasysButtonComponent,
265
279
  LayoutBoxComponent
266
280
  ],
267
281
  providers: [
268
282
  WindowService,
283
+ TokenService,
269
284
  { provide: APP_BASE_HREF, useValue: '/' }
270
285
  ]
271
286
  }]
@@ -279,5 +294,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
279
294
  * Generated bundle index. Do not edit.
280
295
  */
281
296
 
282
- export { ButtonComponent, IconComponent, LayoutBoxComponent, OasysLibModule };
297
+ export { IconComponent, LayoutBoxComponent, OasysButtonComponent, OasysLibModule };
283
298
  //# sourceMappingURL=oasys-lib.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oasys-lib.js","sources":["../../../projects/oasys-lib/src/lib/services/window.service.ts","../../../projects/oasys-lib/src/lib/services/token.service.ts","../../../projects/oasys-lib/src/lib/components/icon/icon.component.ts","../../../projects/oasys-lib/src/lib/components/icon/icon.component.html","../../../projects/oasys-lib/src/lib/components/button/button.component.ts","../../../projects/oasys-lib/src/lib/components/button/button.component.html","../../../projects/oasys-lib/src/lib/components/layout/inline/inline.component.ts","../../../projects/oasys-lib/src/lib/components/layout/inline/inline.component.html","../../../projects/oasys-lib/src/lib/components/layout/box/box.component.ts","../../../projects/oasys-lib/src/lib/oasys-lib.module.ts","../../../projects/oasys-lib/src/public-api.ts","../../../projects/oasys-lib/src/oasys-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nfunction _window(): any {\n return window;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WindowService {\n \n get nativeWindow(): any {\n return _window();\n }\n \n}","import { Injectable } from '@angular/core';\nimport { WindowService } from './window.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TokenService {\n\n constructor(private windowRef: WindowService){}\n\n /*\n Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)\n Because variables are scoped via a selector (ie: ':root .bloomon {}')\n we cannot get brand-specific custom properties programatically\n\n Important: Ensure that the component requiring the brand name has locally scoped the custom property:\n | ui-icon {\n | --icon-component-brand: var(--utility-brand-name);\n | }\n */\n getBrandName(tokenName: string, element: Element): string {\n return this.getTokenValue(tokenName, element);\n }\n\n getTokenValue(tokenName: string, element?: Element): string {\n const rootElement = element || this.windowRef.nativeWindow.document.documentElement;\n return this.windowRef.nativeWindow.getComputedStyle(rootElement)\n .getPropertyValue(tokenName)\n .trim() || '';\n }\n\n}","import { Component, Input, OnInit, ViewEncapsulation, ChangeDetectionStrategy, OnChanges, ElementRef } from '@angular/core';\nimport { TokenService } from '../../services/token.service';\nimport { WindowService } from '../../services/window.service';\nimport { IconNames, IconContext } from './icon';\n@Component({\n selector:'ui-icon',\n templateUrl: './icon.component.html',\n styleUrls: ['./icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class IconComponent implements OnInit, OnChanges {\n @Input() iconSize: 'small'|'large' = 'large';\n @Input() iconName!: IconNames;\n @Input() iconContext: IconContext = 'none';\n\n @Input() iconWidth?: number;\n @Input() iconHeight?: number;\n @Input() iconClass?: string;\n\n size?: string;\n iconBrandPath?: string;\n iconDisplayClasses: string[];\n\n constructor(private tokenService: TokenService, private windowRef: WindowService, private elementRef: ElementRef) { }\n\n convertRemToPixels(remString: string): number {\n const remNumber = parseFloat(remString.replace('rem', ''));\n return remNumber * parseFloat(getComputedStyle(this.windowRef.nativeWindow.document.documentElement).fontSize);\n }\n\n ngOnChanges(): void {\n this.ngOnInit();\n }\n\n ngOnInit(): void {\n this.iconBrandPath = `${this.tokenService.getBrandName(`--icon-component-brand`, this.elementRef.nativeElement)}`\n this.size = this.tokenService.getTokenValue(`--global-size-icon-${this.iconSize}`);\n\n this.iconDisplayClasses = [\n `icon-context-${this.iconContext}`,\n `icon-size-${this.iconSize}`\n ];\n\n const sizeInPixels = this.convertRemToPixels(this.size);\n this.iconWidth = sizeInPixels;\n this.iconHeight = sizeInPixels;\n }\n\n}\n","<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" attr.width=\"{{iconWidth}}px\" attr.height=\"{{iconHeight}}px\" attr.class=\"{{iconClass}}\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{iconName}}-24\"></use>\n </svg>\n</div>\n","import { Component, Input, OnInit, Output, ViewEncapsulation, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, OnChanges } from '@angular/core';\nimport { IconNames, IconContext } from '../icon/icon';\nimport {\n UIButton,\n UIButtonBoolean,\n UIButtonSize,\n UIButtonType\n} from './button';\n\n@Component({\n selector:'ui-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ButtonComponent implements OnInit, OnChanges {\n\n button: UIButton;\n\n // // Button Content\n @Input() buttonText!: string;\n @Input() buttonIcon?: IconNames;\n @Input() buttonIconPlacement: IconContext = 'leading';\n\n // Button Stylings\n @Input() buttonSize: UIButtonSize = 'large';\n @Input() buttonFullWidth: UIButtonBoolean = false;\n @Input() buttonType: UIButtonType = 'primary';\n @Input() buttonDisabled: boolean = false;\n\n\n // Button Actions\n @Input() href: string = '';\n @Output() click: EventEmitter<void> = new EventEmitter();\n\n buttonDisplayClasses: string[] = [];\n iconContext: IconContext = 'none';\n\n\n constructor(private changes: ChangeDetectorRef) { }\n\n onClick(): void {\n console.log('button was clicked');\n this.click.emit();\n }\n\n createButton(): UIButton {\n return <UIButton>{\n buttonText: this.buttonText,\n buttonIcon: this.buttonIcon,\n buttonIconPlacement: this.buttonIconPlacement,\n buttonType: this.buttonType,\n buttonSize: this.buttonSize,\n buttonDisabled: this.buttonDisabled,\n href: this.href,\n target: '',\n buttonDisplayClasses: [\n `type-${this.buttonType}`,\n `size-${this.buttonSize}`,\n `${this.buttonIcon ? 'button--has-icon': ''}`,\n `${this.buttonFullWidth ? 'button--full-width': ''}`,\n `${this.buttonText && this.buttonIcon ? 'button--icon--'+this.buttonIconPlacement : ''}`,\n `${!this.buttonText && this.buttonIcon ? 'button--icon--only' : ''}`\n ].filter((d) => !!d)\n };\n }\n\n ngOnChanges(): void {\n this.button = this.createButton();\n console.log(this.button);\n this.changes.markForCheck();\n }\n\n ngOnInit(): void {\n this.button = this.createButton();\n }\n}\n","<button (click)=\"onClick()\"\n [routerLink]=\"button.href || null\"\n [ngClass]=\"button.buttonDisplayClasses\"\n [attr.disabled]=\"button.buttonDisabled === true || null\"\n role=\"button\"\n [attr.aria-label]=\"button.buttonText\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [iconName]=\"button.buttonIcon\" [iconSize]=\"button.buttonSize\" [iconClass]=\"'buttonIcon'\" [iconContext]=\"button.buttonIconPlacement\"></ui-icon>\n <span\n class=\"ui-text\"\n *ngIf=\"button.buttonText && button.buttonIconPlacement !== 'iconOnly'\">\n {{button.buttonText}}\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n</button>\n","import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector:'ui-inline',\n templateUrl: './inline.component.html',\n styleUrls: ['./inline.component.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LayoutInlineComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"ui-layout-inline\"><ng-content></ng-content></div>","import { ChangeDetectionStrategy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Input } from '@angular/core';\nimport { Component} from '@angular/core';\n\n@Component({\n selector:'ui-box',\n template: '<ng-content></ng-content>',\n host: {\n '[class]' : 'boxLayoutClasses'\n },\n styleUrls: ['./box.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LayoutBoxComponent implements OnInit {\n boxLayoutClasses?: string;\n\n @Input() padding?: BoxPaddings = 'default';\n\n constructor() { }\n\n ngOnInit(): void {\n this.boxLayoutClasses = [\n `ui-layout-box-${this.padding}`\n ].join(' ');\n }\n\n}\n\nexport type BoxPaddings = 'xsmall'|'small'|'medium'|'large'|'default';","import { APP_BASE_HREF, CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { ButtonComponent } from './components/button/button.component';\nimport { LayoutInlineComponent } from './components/layout/inline/inline.component';\nimport { IconComponent } from './components/icon/icon.component';\nimport { LayoutBoxComponent } from './components/layout/box/box.component';\nimport { WindowService } from './services/window.service';\n\n\n\n@NgModule({\n declarations: [\n ButtonComponent,\n LayoutInlineComponent,\n IconComponent,\n LayoutBoxComponent\n ],\n imports: [\n CommonModule,\n RouterModule.forRoot([])\n ],\n exports: [\n ButtonComponent,\n LayoutBoxComponent\n ],\n providers: [\n WindowService,\n {provide: APP_BASE_HREF, useValue: '/'}\n ]\n})\nexport class OasysLibModule { }\n","/*\n * Public API Surface of oasys-lib\n */\n\n\nexport * from './lib/oasys-lib.module';\n\nexport * from './lib/components/button/button.component';\nexport * from './lib/components/icon/icon.component';\nexport * from './lib/components/layout/box/box.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.WindowService","i1.TokenService","i2.WindowService","i1.IconComponent","i1"],"mappings":";;;;;;;AAEA,SAAS,OAAO,GAAA;AACd,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;MAKY,aAAa,CAAA;AAExB,IAAA,IAAI,YAAY,GAAA;QACd,OAAO,OAAO,EAAE,CAAC;KAClB;;2GAJU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA;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AAE,GAAG,EAAC;KACxC,EAXQ,OAAA,EAAA,CAAA;YACP,YAAY;AACZ,YAAA,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;AACzB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAUU,cAAc,EAAA,UAAA,EAAA,CAAA;kBApB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;wBACf,qBAAqB;wBACrB,aAAa;wBACb,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACZ,wBAAA,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;AACnB,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT,aAAa;AACb,wBAAA,EAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAC;AACxC,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"oasys-lib.js","sources":["../../../projects/oasys-lib/src/lib/services/window.service.ts","../../../projects/oasys-lib/src/lib/services/token.service.ts","../../../projects/oasys-lib/src/lib/components/icon/icon.component.ts","../../../projects/oasys-lib/src/lib/components/icon/icon.component.html","../../../projects/oasys-lib/src/lib/components/button/button.component.ts","../../../projects/oasys-lib/src/lib/components/button/button.component.html","../../../projects/oasys-lib/src/lib/components/layout/inline/inline.component.ts","../../../projects/oasys-lib/src/lib/components/layout/inline/inline.component.html","../../../projects/oasys-lib/src/lib/components/layout/box/box.component.ts","../../../projects/oasys-lib/src/lib/oasys-lib.module.ts","../../../projects/oasys-lib/src/public-api.ts","../../../projects/oasys-lib/src/oasys-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nfunction _window(): any {\n return window;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WindowService {\n \n get nativeWindow(): any {\n return _window();\n }\n \n}","import { Injectable } from '@angular/core';\nimport { WindowService } from './window.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TokenService {\n\n constructor(private windowRef: WindowService){}\n\n /*\n Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)\n Because variables are scoped via a selector (ie: ':root .bloomon {}')\n we cannot get brand-specific custom properties programatically\n\n Important: Ensure that the component requiring the brand name has locally scoped the custom property:\n | ui-icon {\n | --icon-component-brand: var(--utility-brand-name);\n | }\n */\n getBrandName(tokenName: string, element: Element): string {\n return this.getTokenValue(tokenName, element);\n }\n\n getTokenValue(tokenName: string, element?: Element): string {\n const rootElement = element || this.windowRef.nativeWindow.document.documentElement;\n return this.windowRef.nativeWindow.getComputedStyle(rootElement)\n .getPropertyValue(tokenName)\n .trim() || '';\n }\n\n}","import { Component, Input, OnInit, ViewEncapsulation, ChangeDetectionStrategy, OnChanges, ElementRef } from '@angular/core';\nimport { TokenService } from '../../services/token.service';\nimport { WindowService } from '../../services/window.service';\nimport { IconNames, IconContext } from './icon';\n\n@Component({\n selector:'ui-icon',\n templateUrl: './icon.component.html',\n styleUrls: ['./icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class IconComponent implements OnInit, OnChanges {\n @Input() iconSize: 'small'|'large' = 'large';\n @Input() iconName!: IconNames;\n @Input() iconContext: IconContext = 'none';\n\n @Input() iconWidth?: number;\n @Input() iconHeight?: number;\n @Input() iconClass?: string;\n\n size?: string;\n iconBrandPath?: string;\n iconDisplayClasses: string[];\n\n constructor(private tokenService: TokenService, private windowRef: WindowService, private elementRef: ElementRef) { }\n\n convertRemToPixels(remString: string): number {\n const remNumber = parseFloat(remString.replace('rem', ''));\n return remNumber * parseFloat(getComputedStyle(this.windowRef.nativeWindow.document.documentElement).fontSize);\n }\n\n ngOnChanges(): void {\n this.ngOnInit();\n }\n\n ngOnInit(): void {\n this.iconBrandPath = `${this.tokenService.getBrandName(`--icon-component-brand`, this.elementRef.nativeElement)}`\n this.size = this.tokenService.getTokenValue(`--global-size-icon-${this.iconSize}`);\n\n this.iconDisplayClasses = [\n `icon-context-${this.iconContext}`,\n `icon-size-${this.iconSize}`\n ];\n\n const sizeInPixels = this.convertRemToPixels(this.size);\n this.iconWidth = sizeInPixels;\n this.iconHeight = sizeInPixels;\n }\n\n}\n","<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" attr.width=\"{{iconWidth}}px\" attr.height=\"{{iconHeight}}px\" attr.class=\"{{iconClass}}\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{iconName}}\"></use>\n </svg>\n</div>\n","import { Component, Input, OnInit, Output, ViewEncapsulation, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, OnChanges, ContentChild, ElementRef, AfterViewInit } from '@angular/core';\nimport { IconNames, IconContext } from '../icon/icon';\nimport { TextTransform } from '../text/text';\nimport {\n UIButton,\n UIButtonBoolean,\n UIButtonSize,\n UIButtonType\n} from './button';\n\n@Component({\n selector:'ui-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class OasysButtonComponent implements OnInit, OnChanges, AfterViewInit {\n\n button: UIButton;\n\n // // Button Content\n @Input() buttonIcon?: IconNames;\n @Input() buttonIconPlacement: IconContext = 'leading';\n\n // @Input() buttonText: string;\n @ContentChild('buttonText') buttonText: ElementRef;\n\n // Button Stylings\n @Input() buttonSize: UIButtonSize = 'large';\n @Input() buttonFullWidth: UIButtonBoolean = false;\n @Input() buttonType: UIButtonType = 'primary';\n @Input() buttonDisabled: boolean = false;\n\n // Button Actions\n @Input() href: string = '';\n @Output() clicked: EventEmitter<void> = new EventEmitter();\n\n buttonDisplayClasses: string[];\n iconContext: IconContext = 'none';\n textTransform!: TextTransform;\n accessibleButtonContent: string;\n outlineButtonTypes = ['secondary', 'secondary-inverse']\n\n constructor(private changes: ChangeDetectorRef) { }\n\n onClick(): void {\n this.clicked.emit();\n }\n\n createButton(): UIButton {\n\n return <UIButton>{\n buttonIcon: this.buttonIcon,\n buttonIconPlacement: this.buttonIconPlacement,\n buttonType: this.buttonType,\n buttonSize: this.buttonSize,\n buttonDisabled: this.buttonDisabled,\n href: this.href,\n target: '',\n buttonDisplayClasses: [\n `type-${this.buttonType}`,\n `size-${this.buttonSize}`,\n `${this.buttonIcon ? 'button--has-icon': ''}`,\n `${this.buttonFullWidth ? 'button--full-width': ''}`,\n `${this.buttonIcon ? 'button--icon--'+this.buttonIconPlacement : ''}`,\n `${this.outlineButtonTypes.indexOf(this.buttonType) !== -1 ? 'button--outline' : ''}`\n ].filter((d) => !!d)\n };\n }\n\n ngAfterViewInit(): void {\n if(this.buttonText?.nativeElement?.innerText) {\n this.accessibleButtonContent = this.buttonText.nativeElement.innerText;\n } else {\n throw new Error(`\n No inner text found. All buttons should have text passed via ng-content to enable accessibility for screen readers, this includes icon-only buttons.\n\n Pass content using the template variable #buttonText eg:\n ui-button()\n span(#buttonText) Buy All The Things\n `)\n }\n }\n\n ngOnChanges(): void {\n this.button = this.createButton();\n this.changes.markForCheck();\n }\n\n ngOnInit(): void {\n this.button = this.createButton();\n }\n}\n","<button (click)=\"onClick()\"\n [routerLink]=\"button.href || null\"\n [ngClass]=\"button.buttonDisplayClasses\"\n [attr.disabled]=\"button.buttonDisabled === true || null\"\n [attr.aria-label]=\"accessibleButtonContent\"\n role=\"button\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [iconName]=\"button.buttonIcon\" [iconSize]=\"button.buttonSize\" [iconClass]=\"'buttonIcon'\" [iconContext]=\"button.buttonIconPlacement\"></ui-icon>\n <span class=\"ui-text\" *ngIf=\"button.buttonIconPlacement !== 'iconOnly'\">\n <ng-content></ng-content>\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n</button>\n","import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector:'ui-inline',\n templateUrl: './inline.component.html',\n styleUrls: ['./inline.component.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LayoutInlineComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"ui-layout-inline\"><ng-content></ng-content></div>","import { ChangeDetectionStrategy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Input } from '@angular/core';\nimport { Component} from '@angular/core';\n\n@Component({\n selector:'ui-box',\n template: '<ng-content></ng-content>',\n host: {\n '[class]' : 'boxLayoutClasses'\n },\n styleUrls: ['./box.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LayoutBoxComponent implements OnInit {\n boxLayoutClasses?: string;\n\n @Input() padding?: BoxPaddings = 'default';\n\n constructor() { }\n\n ngOnInit(): void {\n this.boxLayoutClasses = [\n `ui-layout-box-${this.padding}`\n ].join(' ');\n }\n\n}\n\nexport type BoxPaddings = 'xsmall'|'small'|'medium'|'large'|'default';","import { APP_BASE_HREF, CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { OasysButtonComponent } from './components/button/button.component';\nimport { LayoutInlineComponent } from './components/layout/inline/inline.component';\nimport { IconComponent } from './components/icon/icon.component';\nimport { LayoutBoxComponent } from './components/layout/box/box.component';\nimport { WindowService } from './services/window.service';\nimport { TokenService } from './services/token.service';\n\n\n\n@NgModule({\n declarations: [\n OasysButtonComponent,\n LayoutInlineComponent,\n IconComponent,\n LayoutBoxComponent\n ],\n imports: [\n CommonModule,\n RouterModule.forChild([])\n ],\n exports: [\n OasysButtonComponent,\n LayoutBoxComponent\n ],\n providers: [\n WindowService,\n TokenService,\n {provide: APP_BASE_HREF, useValue: '/'}\n ]\n})\nexport class OasysLibModule { }\n","/*\n * Public API Surface of oasys-lib\n */\n\n\nexport * from './lib/oasys-lib.module';\n\nexport * from './lib/components/button/button.component';\nexport * from './lib/components/icon/icon.component';\nexport * from './lib/components/layout/box/box.component';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.WindowService","i1.TokenService","i2.WindowService","i1.IconComponent","i1"],"mappings":";;;;;;;AAEA,SAAS,OAAO,GAAA;AACd,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;MAKY,aAAa,CAAA;AAExB,IAAA,IAAI,YAAY,GAAA;QACd,OAAO,OAAO,EAAE,CAAC;KAClB;;2GAJU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA;4FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCFY,YAAY,CAAA;AAEvB,IAAA,WAAA,CAAoB,SAAwB,EAAA;QAAxB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAe;KAAG;AAE/C;;;;;;;;;AASE;IACF,YAAY,CAAC,SAAiB,EAAE,OAAgB,EAAA;QAC9C,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KAC/C;IAED,aAAa,CAAC,SAAiB,EAAE,OAAiB,EAAA;AAChD,QAAA,MAAM,WAAW,GAAG,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC;QACpF,OAAO,IAAI,CAAC,SAAS,CAA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QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,qBAAqB;wBACrB,aAAa;wBACb,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACZ,wBAAA,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC1B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,kBAAkB;AACnB,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT,aAAa;wBACb,YAAY;AACZ,wBAAA,EAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAC;AACxC,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,26 +1,32 @@
1
- import { OnInit, EventEmitter, ChangeDetectorRef, OnChanges } from '@angular/core';
1
+ import { OnInit, EventEmitter, ChangeDetectorRef, OnChanges, ElementRef, AfterViewInit } from '@angular/core';
2
2
  import { IconNames, IconContext } from '../icon/icon';
3
+ import { TextTransform } from '../text/text';
3
4
  import { UIButton, UIButtonBoolean, UIButtonSize, UIButtonType } from './button';
4
5
  import * as i0 from "@angular/core";
5
- export declare class ButtonComponent implements OnInit, OnChanges {
6
+ export declare class OasysButtonComponent implements OnInit, OnChanges, AfterViewInit {
6
7
  private changes;
7
8
  button: UIButton;
8
- buttonText: string;
9
9
  buttonIcon?: IconNames;
10
10
  buttonIconPlacement: IconContext;
11
+ buttonText: ElementRef;
11
12
  buttonSize: UIButtonSize;
12
13
  buttonFullWidth: UIButtonBoolean;
13
14
  buttonType: UIButtonType;
14
15
  buttonDisabled: boolean;
15
16
  href: string;
16
- click: EventEmitter<void>;
17
+ clicked: EventEmitter<void>;
17
18
  buttonDisplayClasses: string[];
18
19
  iconContext: IconContext;
20
+ textTransform: TextTransform;
21
+ accessibleButtonContent: string;
22
+ outlineButtonTypes: string[];
19
23
  constructor(changes: ChangeDetectorRef);
20
24
  onClick(): void;
21
25
  createButton(): UIButton;
26
+ ngAfterViewInit(): void;
22
27
  ngOnChanges(): void;
23
28
  ngOnInit(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ui-button", never, { "buttonText": "buttonText"; "buttonIcon": "buttonIcon"; "buttonIconPlacement": "buttonIconPlacement"; "buttonSize": "buttonSize"; "buttonFullWidth": "buttonFullWidth"; "buttonType": "buttonType"; "buttonDisabled": "buttonDisabled"; "href": "href"; }, { "click": "click"; }, never, never>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<OasysButtonComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<OasysButtonComponent, "ui-button", never, { "buttonIcon": "buttonIcon"; "buttonIconPlacement": "buttonIconPlacement"; "buttonSize": "buttonSize"; "buttonFullWidth": "buttonFullWidth"; "buttonType": "buttonType"; "buttonDisabled": "buttonDisabled"; "href": "href"; }, { "clicked": "clicked"; }, ["buttonText"], ["*"]>;
26
31
  }
32
+ //# sourceMappingURL=button.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../projects/oasys-lib/src/lib/components/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAA6B,YAAY,EAA2B,iBAAiB,EAAE,SAAS,EAAgB,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClM,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;;AAElB,qBAOa,oBAAqB,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;IA2B/D,OAAO,CAAC,OAAO;IAzB3B,MAAM,EAAE,QAAQ,CAAC;IAGR,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,mBAAmB,EAAE,WAAW,CAAa;IAG1B,UAAU,EAAE,UAAU,CAAC;IAG1C,UAAU,EAAE,YAAY,CAAW;IACnC,eAAe,EAAE,eAAe,CAAS;IACzC,UAAU,EAAE,YAAY,CAAa;IACrC,cAAc,EAAE,OAAO,CAAS;IAGhC,IAAI,EAAE,MAAM,CAAM;IACjB,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAAsB;IAE3D,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAU;IAClC,aAAa,EAAG,aAAa,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,WAAqC;gBAEnC,OAAO,EAAE,iBAAiB;IAE9C,OAAO,IAAI,IAAI;IAIf,YAAY,IAAI,QAAQ;IAqBxB,eAAe,IAAI,IAAI;IAcvB,WAAW,IAAI,IAAI;IAKnB,QAAQ,IAAI,IAAI;yCAzEL,oBAAoB;2CAApB,oBAAoB;CA4EhC"}
@@ -4,7 +4,6 @@ export declare type UIButtonBoolean = true | 'true' | false | 'false';
4
4
  export declare type UIButtonSize = 'small' | 'large';
5
5
  export declare type UIButtonType = 'primary' | 'secondary' | 'tertiary' | 'primary-inverse' | 'secondary-inverse' | 'tertiary-inverse' | 'expressive' | 'danger' | 'facebook' | 'paypal' | 'trustpilot';
6
6
  export interface UIButton {
7
- buttonText: string;
8
7
  buttonIcon: IconNames;
9
8
  buttonType: UIButtonType;
10
9
  buttonIconPlacement: IconContext;
@@ -16,3 +15,4 @@ export interface UIButton {
16
15
  buttonDisplayClasses: string[];
17
16
  buttonDidClick: EventEmitter<any>;
18
17
  }
18
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../projects/oasys-lib/src/lib/components/button/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGtD,oBAAY,eAAe,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9D,oBAAY,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,oBAAY,YAAY,GACpB,SAAS,GACT,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,WAAW,QAAQ;IAOvB,UAAU,EAAE,SAAS,CAAC;IAEtB,UAAU,EAAE,YAAY,CAAC;IAEzB,mBAAmB,EAAE,WAAW,CAAA;IAEhC,UAAU,EAAE,YAAY,CAAC;IAEzB,eAAe,EAAE,eAAe,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,eAAe,CAAC;IAGhC,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAK/B,cAAc,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;CACnC"}
@@ -23,3 +23,4 @@ export declare class IconComponent implements OnInit, OnChanges {
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
24
24
  static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ui-icon", never, { "iconSize": "iconSize"; "iconName": "iconName"; "iconContext": "iconContext"; "iconWidth": "iconWidth"; "iconHeight": "iconHeight"; "iconClass": "iconClass"; }, {}, never, never>;
25
25
  }
26
+ //# sourceMappingURL=icon.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.component.d.ts","sourceRoot":"","sources":["../../../../../projects/oasys-lib/src/lib/components/icon/icon.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAA8C,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5H,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;;AAEhD,qBAOa,aAAc,YAAW,MAAM,EAAE,SAAS;IAazC,OAAO,CAAC,YAAY;IAAgB,OAAO,CAAC,SAAS;IAAiB,OAAO,CAAC,UAAU;IAZ3F,QAAQ,EAAE,OAAO,GAAC,OAAO,CAAW;IACpC,QAAQ,EAAG,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAU;IAElC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAC;gBAET,YAAY,EAAE,YAAY,EAAU,SAAS,EAAE,aAAa,EAAU,UAAU,EAAE,UAAU;IAEhH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAK7C,WAAW,IAAI,IAAI;IAInB,QAAQ,IAAI,IAAI;yCAxBL,aAAa;2CAAb,aAAa;CAsCzB"}
@@ -1,2 +1,3 @@
1
- export declare type IconNames = 'pin' | 'heart' | 'basket';
1
+ export declare type IconNames = 'pin' | 'heart' | 'heart-fill' | 'basket' | 'user' | 'user-fill' | 'chevron-up' | 'chevron-right' | 'chevron-down' | 'chevron-left' | 'arrow-up' | 'arrow-right' | 'arrow-down' | 'arrow-left';
2
2
  export declare type IconContext = 'leading' | 'trailing' | 'iconOnly' | 'none';
3
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../../projects/oasys-lib/src/lib/components/icon/icon.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GACnB,KAAK,GACL,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,WAAW,GACX,YAAY,GACZ,eAAe,GACf,cAAc,GACd,cAAc,GACd,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,CACb;AAED,oBAAY,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC"}
@@ -9,3 +9,4 @@ export declare class LayoutBoxComponent implements OnInit {
9
9
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutBoxComponent, "ui-box", never, { "padding": "padding"; }, {}, never, ["*"]>;
10
10
  }
11
11
  export declare type BoxPaddings = 'xsmall' | 'small' | 'medium' | 'large' | 'default';
12
+ //# sourceMappingURL=box.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/oasys-lib/src/lib/components/layout/box/box.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAqB,MAAM,eAAe,CAAC;;AAInF,qBAUa,kBAAmB,YAAW,MAAM;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,EAAE,WAAW,CAAa;;IAI3C,QAAQ,IAAI,IAAI;yCAPL,kBAAkB;2CAAlB,kBAAkB;CAa9B;AAED,oBAAY,WAAW,GAAG,QAAQ,GAAC,OAAO,GAAC,QAAQ,GAAC,OAAO,GAAC,SAAS,CAAC"}
@@ -6,3 +6,4 @@ export declare class LayoutInlineComponent implements OnInit {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutInlineComponent, never>;
7
7
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutInlineComponent, "ui-inline", never, {}, {}, never, ["*"]>;
8
8
  }
9
+ //# sourceMappingURL=inline.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/oasys-lib/src/lib/components/layout/inline/inline.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,MAAM,EAAqB,MAAM,eAAe,CAAC;;AAE9F,qBAOa,qBAAsB,YAAW,MAAM;;IAIlD,QAAQ,IAAI,IAAI;yCAJL,qBAAqB;2CAArB,qBAAqB;CAOjC"}
@@ -0,0 +1,2 @@
1
+ export declare type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
2
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../projects/oasys-lib/src/lib/components/text/text.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC"}
@@ -7,6 +7,7 @@ import * as i5 from "@angular/common";
7
7
  import * as i6 from "@angular/router";
8
8
  export declare class OasysLibModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<OasysLibModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<OasysLibModule, [typeof i1.ButtonComponent, typeof i2.LayoutInlineComponent, typeof i3.IconComponent, typeof i4.LayoutBoxComponent], [typeof i5.CommonModule, typeof i6.RouterModule], [typeof i1.ButtonComponent, typeof i4.LayoutBoxComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OasysLibModule, [typeof i1.OasysButtonComponent, typeof i2.LayoutInlineComponent, typeof i3.IconComponent, typeof i4.LayoutBoxComponent], [typeof i5.CommonModule, typeof i6.RouterModule], [typeof i1.OasysButtonComponent, typeof i4.LayoutBoxComponent]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<OasysLibModule>;
12
12
  }
13
+ //# sourceMappingURL=oasys-lib.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasys-lib.module.d.ts","sourceRoot":"","sources":["../../../projects/oasys-lib/src/lib/oasys-lib.module.ts"],"names":[],"mappings":";;;;;;;AAYA,qBAqBa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAI"}
@@ -8,3 +8,4 @@ export declare class TokenService {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
9
9
  static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
10
10
  }
11
+ //# sourceMappingURL=token.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.service.d.ts","sourceRoot":"","sources":["../../../../projects/oasys-lib/src/lib/services/token.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAEjD,qBAGa,YAAY;IAEX,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,aAAa;IAY5C,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM;IAIzD,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;yCAlBhD,YAAY;6CAAZ,YAAY;CAyBxB"}
@@ -4,3 +4,4 @@ export declare class WindowService {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowService, never>;
5
5
  static ɵprov: i0.ɵɵInjectableDeclaration<WindowService>;
6
6
  }
7
+ //# sourceMappingURL=window.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window.service.d.ts","sourceRoot":"","sources":["../../../../projects/oasys-lib/src/lib/services/window.service.ts"],"names":[],"mappings":";AAMA,qBAGa,aAAa;IAExB,IAAI,YAAY,IAAI,GAAG,CAEtB;yCAJU,aAAa;6CAAb,aAAa;CAMzB"}
package/oasys-lib.d.ts CHANGED
@@ -3,3 +3,4 @@
3
3
  */
4
4
  /// <amd-module name="oasys-lib" />
5
5
  export * from './public-api';
6
+ //# sourceMappingURL=oasys-lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasys-lib.d.ts","sourceRoot":"","sources":["../../projects/oasys-lib/src/oasys-lib.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}