oasys-lib 0.0.1 → 0.0.3

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 (55) hide show
  1. package/bundles/oasys-lib.umd.js +327 -0
  2. package/bundles/oasys-lib.umd.js.map +1 -0
  3. package/esm2015/lib/components/button/button.component.js +84 -0
  4. package/esm2015/lib/components/button/button.js +2 -0
  5. package/esm2015/lib/components/icon/icon.component.js +57 -0
  6. package/esm2015/lib/components/icon/icon.js +2 -0
  7. package/esm2015/lib/components/layout/box/box.component.js +32 -0
  8. package/esm2015/lib/components/layout/inline/inline.component.js +20 -0
  9. package/esm2015/lib/oasys-lib.module.js +49 -0
  10. package/esm2015/lib/services/token.service.js +36 -0
  11. package/esm2015/lib/services/window.service.js +19 -0
  12. package/{esm2020/oasys-lib.mjs → esm2015/oasys-lib.js} +0 -0
  13. package/esm2015/public-api.js +8 -0
  14. package/fesm2015/oasys-lib.js +283 -0
  15. package/fesm2015/oasys-lib.js.map +1 -0
  16. package/lib/components/button/button.component.d.ts +26 -0
  17. package/lib/components/button/button.d.ts +18 -0
  18. package/lib/components/icon/icon.component.d.ts +25 -0
  19. package/lib/components/icon/icon.d.ts +2 -0
  20. package/lib/components/layout/box/box.component.d.ts +11 -0
  21. package/lib/components/layout/inline/inline.component.d.ts +8 -0
  22. package/lib/oasys-lib.module.d.ts +7 -2
  23. package/lib/services/token.service.d.ts +10 -0
  24. package/lib/services/window.service.d.ts +6 -0
  25. package/package.json +6 -19
  26. package/public-api.d.ts +3 -2
  27. package/src/assets/bloomandwild/fonts/NeueHaasUnicaW05-Medium.woff +0 -0
  28. package/src/assets/bloomandwild/fonts/NeueHaasUnicaW05-Medium.woff2 +0 -0
  29. package/src/assets/bloomandwild/fonts/NeueHaasUnicaW05-Regular.woff +0 -0
  30. package/src/assets/bloomandwild/fonts/NeueHaasUnicaW05-Regular.woff2 +0 -0
  31. package/src/assets/bloomandwild/fonts/TiemposHeadlineWeb-Bold.woff +0 -0
  32. package/src/assets/bloomandwild/fonts/TiemposHeadlineWeb-Bold.woff2 +0 -0
  33. package/src/assets/bloomandwild/icons/icons.svg +1 -0
  34. package/src/assets/bloomandwild/styles.scss +34 -0
  35. package/src/assets/bloomandwild/variables.css +94 -0
  36. package/src/assets/bloomon/fonts/Patron-Regular.woff +0 -0
  37. package/src/assets/bloomon/fonts/Patron-Regular.woff2 +0 -0
  38. package/src/assets/bloomon/fonts/Patron-Thin.woff +0 -0
  39. package/src/assets/bloomon/fonts/Patron-Thin.woff2 +0 -0
  40. package/src/assets/bloomon/icons/icons.svg +1 -0
  41. package/src/assets/bloomon/styles.scss +24 -0
  42. package/src/assets/bloomon/variables.css +94 -0
  43. package/src/assets/global/variables.css +77 -0
  44. package/src/assets/layout.scss +0 -0
  45. package/src/assets/style.css +5 -0
  46. package/esm2020/lib/oasys-lib.component.mjs +0 -26
  47. package/esm2020/lib/oasys-lib.module.mjs +0 -21
  48. package/esm2020/lib/oasys-lib.service.mjs +0 -14
  49. package/esm2020/public-api.mjs +0 -7
  50. package/fesm2015/oasys-lib.mjs +0 -67
  51. package/fesm2015/oasys-lib.mjs.map +0 -1
  52. package/fesm2020/oasys-lib.mjs +0 -67
  53. package/fesm2020/oasys-lib.mjs.map +0 -1
  54. package/lib/oasys-lib.component.d.ts +0 -8
  55. package/lib/oasys-lib.service.d.ts +0 -6
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2
+ import { Input } from '@angular/core';
3
+ import { Component } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export class LayoutBoxComponent {
6
+ constructor() {
7
+ this.padding = 'default';
8
+ }
9
+ ngOnInit() {
10
+ this.boxLayoutClasses = [
11
+ `ui-layout-box-${this.padding}`
12
+ ].join(' ');
13
+ }
14
+ }
15
+ LayoutBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ LayoutBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutBoxComponent, selector: "ui-box", inputs: { padding: "padding" }, host: { properties: { "class": "boxLayoutClasses" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".ui-layout-box-xsmall{padding:var(--size-unit-xsmall)}.ui-layout-box-small{padding:var(--size-unit-small)}.ui-layout-box-default{padding:var(--size-unit-default)}.ui-layout-box-large{padding:var(--size-unit-large)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutBoxComponent, decorators: [{
18
+ type: Component,
19
+ args: [{
20
+ selector: 'ui-box',
21
+ template: '<ng-content></ng-content>',
22
+ host: {
23
+ '[class]': 'boxLayoutClasses'
24
+ },
25
+ styleUrls: ['./box.component.scss'],
26
+ encapsulation: ViewEncapsulation.None,
27
+ changeDetection: ChangeDetectionStrategy.OnPush
28
+ }]
29
+ }], ctorParameters: function () { return []; }, propDecorators: { padding: [{
30
+ type: Input
31
+ }] } });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm94LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvbGF5b3V0L2JveC9ib3guY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBVSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RDLE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oge1xuICAgICAgICAnW2NsYXNzXScgOiAnYm94TGF5b3V0Q2xhc3NlcydcbiAgICAgIH0sXG4gIHN0eWxlVXJsczogWycuL2JveC5jb21wb25lbnQuc2NzcyddLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBMYXlvdXRCb3hDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuICBib3hMYXlvdXRDbGFzc2VzPzogc3RyaW5nO1xuXG4gIEBJbnB1dCgpIHBhZGRpbmc/OiBCb3hQYWRkaW5ncyA9ICdkZWZhdWx0JztcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHRoaXMuYm94TGF5b3V0Q2xhc3NlcyA9IFtcbiAgICAgIGB1aS1sYXlvdXQtYm94LSR7dGhpcy5wYWRkaW5nfWBcbiAgICBdLmpvaW4oJyAnKTtcbiAgfVxuXG59XG5cbmV4cG9ydCB0eXBlIEJveFBhZGRpbmdzID0gJ3hzbWFsbCd8J3NtYWxsJ3wnbWVkaXVtJ3wnbGFyZ2UnfCdkZWZhdWx0JzsiXX0=
@@ -0,0 +1,20 @@
1
+ import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class LayoutInlineComponent {
4
+ constructor() { }
5
+ ngOnInit() {
6
+ }
7
+ }
8
+ LayoutInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutInlineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ LayoutInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutInlineComponent, selector: "ui-inline", ngImport: i0, template: "<div class=\"ui-layout-inline\"><ng-content></ng-content></div>", styles: [".ui-layout-inline{display:inline-flex;position:relative}.ui-layout-inline>*{margin-left:var(--layout-inline-spacing-default);margin-right:var(--layout-inline-spacing-default)}.ui-layout-inline:first-child{margin-left:0}.ui-layout-inline:last-child{margin-right:0}.ui-layout-inline:only-child{margin-left:0;margin-right:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutInlineComponent, decorators: [{
11
+ type: Component,
12
+ args: [{
13
+ selector: 'ui-inline',
14
+ templateUrl: './inline.component.html',
15
+ styleUrls: ['./inline.component.css'],
16
+ encapsulation: ViewEncapsulation.None,
17
+ changeDetection: ChangeDetectionStrategy.OnPush
18
+ }]
19
+ }], ctorParameters: function () { return []; } });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvbGF5b3V0L2lubGluZS9pbmxpbmUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb2FzeXMtbGliL3NyYy9saWIvY29tcG9uZW50cy9sYXlvdXQvaW5saW5lL2lubGluZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFVLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVM5RixNQUFNLE9BQU8scUJBQXFCO0lBRWhDLGdCQUFnQixDQUFDO0lBRWpCLFFBQVE7SUFDUixDQUFDOzttSEFMVSxxQkFBcUI7dUdBQXJCLHFCQUFxQixpRENUbEMsaUVBQTZEOzRGRFNoRCxxQkFBcUI7a0JBUGpDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFDLFdBQVc7b0JBQ3BCLFdBQVcsRUFBRSx5QkFBeUI7b0JBQ3RDLFNBQVMsRUFBRSxDQUFDLHdCQUF3QixDQUFDO29CQUNyQyxhQUFhLEVBQUUsaUJBQWlCLENBQUMsSUFBSTtvQkFDckMsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07aUJBQ2hEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgT25Jbml0LCBWaWV3RW5jYXBzdWxhdGlvbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6J3VpLWlubGluZScsXG4gIHRlbXBsYXRlVXJsOiAnLi9pbmxpbmUuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9pbmxpbmUuY29tcG9uZW50LmNzcyddLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBMYXlvdXRJbmxpbmVDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIiwiPGRpdiBjbGFzcz1cInVpLWxheW91dC1pbmxpbmVcIj48bmctY29udGVudD48L25nLWNvbnRlbnQ+PC9kaXY+Il19
@@ -0,0 +1,49 @@
1
+ import { APP_BASE_HREF, CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { RouterModule } from '@angular/router';
4
+ import { ButtonComponent } from './components/button/button.component';
5
+ import { LayoutInlineComponent } from './components/layout/inline/inline.component';
6
+ import { IconComponent } from './components/icon/icon.component';
7
+ import { LayoutBoxComponent } from './components/layout/box/box.component';
8
+ import { WindowService } from './services/window.service';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@angular/router";
11
+ export class OasysLibModule {
12
+ }
13
+ 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
+ LayoutInlineComponent,
16
+ IconComponent,
17
+ LayoutBoxComponent], imports: [CommonModule, i1.RouterModule], exports: [ButtonComponent,
18
+ LayoutBoxComponent] });
19
+ OasysLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, providers: [
20
+ WindowService,
21
+ { provide: APP_BASE_HREF, useValue: '/' }
22
+ ], imports: [[
23
+ CommonModule,
24
+ RouterModule.forRoot([])
25
+ ]] });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, decorators: [{
27
+ type: NgModule,
28
+ args: [{
29
+ declarations: [
30
+ ButtonComponent,
31
+ LayoutInlineComponent,
32
+ IconComponent,
33
+ LayoutBoxComponent
34
+ ],
35
+ imports: [
36
+ CommonModule,
37
+ RouterModule.forRoot([])
38
+ ],
39
+ exports: [
40
+ ButtonComponent,
41
+ LayoutBoxComponent
42
+ ],
43
+ providers: [
44
+ WindowService,
45
+ { provide: APP_BASE_HREF, useValue: '/' }
46
+ ]
47
+ }]
48
+ }] });
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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vbSAnLi9zZXJ2aWNlcy93aW5kb3cuc2VydmljZSc7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBCdXR0b25Db21wb25lbnQsXG4gICAgTGF5b3V0SW5saW5lQ29tcG9uZW50LFxuICAgIEljb25Db21wb25lbnQsXG4gICAgTGF5b3V0Qm94Q29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgUm91dGVyTW9kdWxlLmZvclJvb3QoW10pXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBCdXR0b25Db21wb25lbnQsXG4gICAgTGF5b3V0Qm94Q29tcG9uZW50XG4gIF0sXG4gIHByb3ZpZGVyczogW1xuICAgIFdpbmRvd1NlcnZpY2UsXG4gICAge3Byb3ZpZGU6IEFQUF9CQVNFX0hSRUYsIHVzZVZhbHVlOiAnLyd9XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgT2FzeXNMaWJNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,36 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./window.service";
4
+ export class TokenService {
5
+ constructor(windowRef) {
6
+ this.windowRef = windowRef;
7
+ }
8
+ /*
9
+ Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)
10
+ Because variables are scoped via a selector (ie: ':root .bloomon {}')
11
+ we cannot get brand-specific custom properties programatically
12
+
13
+ Important: Ensure that the component requiring the brand name has locally scoped the custom property:
14
+ | ui-icon {
15
+ | --icon-component-brand: var(--utility-brand-name);
16
+ | }
17
+ */
18
+ getBrandName(tokenName, element) {
19
+ return this.getTokenValue(tokenName, element);
20
+ }
21
+ getTokenValue(tokenName, element) {
22
+ const rootElement = element || this.windowRef.nativeWindow.document.documentElement;
23
+ return this.windowRef.nativeWindow.getComputedStyle(rootElement)
24
+ .getPropertyValue(tokenName)
25
+ .trim() || '';
26
+ }
27
+ }
28
+ TokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, deps: [{ token: i1.WindowService }], target: i0.ɵɵFactoryTarget.Injectable });
29
+ TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, providedIn: 'root' });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, decorators: [{
31
+ type: Injectable,
32
+ args: [{
33
+ providedIn: 'root'
34
+ }]
35
+ }], ctorParameters: function () { return [{ type: i1.WindowService }]; } });
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL3NlcnZpY2VzL3Rva2VuLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTTNDLE1BQU0sT0FBTyxZQUFZO0lBRXZCLFlBQW9CLFNBQXdCO1FBQXhCLGNBQVMsR0FBVCxTQUFTLENBQWU7SUFBRSxDQUFDO0lBRS9DOzs7Ozs7Ozs7TUFTRTtJQUNGLFlBQVksQ0FBQyxTQUFpQixFQUFFLE9BQWdCO1FBQzlDLE9BQU8sSUFBSSxDQUFDLGFBQWEsQ0FBQyxTQUFTLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDaEQsQ0FBQztJQUVELGFBQWEsQ0FBQyxTQUFpQixFQUFFLE9BQWlCO1FBQ2hELE1BQU0sV0FBVyxHQUFHLE9BQU8sSUFBSSxJQUFJLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxRQUFRLENBQUMsZUFBZSxD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GUgY3VzdG9tIHByb3BlcnR5OlxuICB8ICB1aS1pY29uIHtcbiAgfCAgICAtLWljb24tY29tcG9uZW50LWJyYW5kOiB2YXIoLS11dGlsaXR5LWJyYW5kLW5hbWUpO1xuICB8ICB9XG4gICovXG4gIGdldEJyYW5kTmFtZSh0b2tlbk5hbWU6IHN0cmluZywgZWxlbWVudDogRWxlbWVudCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuZ2V0VG9rZW5WYWx1ZSh0b2tlbk5hbWUsIGVsZW1lbnQpO1xuICB9XG5cbiAgZ2V0VG9rZW5WYWx1ZSh0b2tlbk5hbWU6IHN0cmluZywgZWxlbWVudD86IEVsZW1lbnQpOiBzdHJpbmcge1xuICAgIGNvbnN0IHJvb3RFbGVtZW50ID0gZWxlbWVudCB8fCB0aGlzLndpbmRvd1JlZi5uYXRpdmVXaW5kb3cuZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50O1xuICAgIHJldHVybiB0aGlzLndpbmRvd1JlZi5uYXRpdmVXaW5kb3cuZ2V0Q29tcHV0ZWRTdHlsZShyb290RWxlbWVudClcbiAgICAgIC5nZXRQcm9wZXJ0eVZhbHVlKHRva2VuTmFtZSlcbiAgICAgIC50cmltKCkgfHwgJyc7XG4gIH1cblxufSJdfQ==
@@ -0,0 +1,19 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ function _window() {
4
+ return window;
5
+ }
6
+ export class WindowService {
7
+ get nativeWindow() {
8
+ return _window();
9
+ }
10
+ }
11
+ WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
12
+ WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, providedIn: 'root' });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
14
+ type: Injectable,
15
+ args: [{
16
+ providedIn: 'root'
17
+ }]
18
+ }] });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vYXN5cy1saWIvc3JjL2xpYi9zZXJ2aWNlcy93aW5kb3cuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUUzQyxTQUFTLE9BQU87SUFDZCxPQUFPLE1BQU0sQ0FBQztBQUNoQixDQUFDO0FBS0QsTUFBTSxPQUFPLGFBQWE7SUFFeEIsSUFBSSxZQUFZO1FBQ2QsT0FBTyxPQUFPLEVBQUUsQ0FBQztJQUNuQixDQUFDOzsyR0FKVSxhQUFhOytHQUFiLGFBQWEsY0FGWixNQUFNOzRGQUVQLGFBQWE7a0JBSHpCLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5mdW5jdGlvbiBfd2luZG93KCk6IGFueSB7XG4gIHJldHVybiB3aW5kb3c7XG59XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIFdpbmRvd1NlcnZpY2Uge1xuICBcbiAgZ2V0IG5hdGl2ZVdpbmRvdygpOiBhbnkge1xuICAgIHJldHVybiBfd2luZG93KCk7XG4gIH1cbiAgXG59Il19
File without changes
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Public API Surface of oasys-lib
3
+ */
4
+ export * from './lib/oasys-lib.module';
5
+ export * from './lib/components/button/button.component';
6
+ export * from './lib/components/icon/icon.component';
7
+ export * from './lib/components/layout/box/box.component';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUdILGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMsMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG9hc3lzLWxpYlxuICovXG5cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvb2FzeXMtbGliLm1vZHVsZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9pY29uL2ljb24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvbGF5b3V0L2JveC9ib3guY29tcG9uZW50JztcbiJdfQ==
@@ -0,0 +1,283 @@
1
+ import * as i3 from '@angular/common';
2
+ import { CommonModule, APP_BASE_HREF } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter, Output, NgModule } from '@angular/core';
5
+ import * as i2 from '@angular/router';
6
+ import { RouterModule } from '@angular/router';
7
+
8
+ function _window() {
9
+ return window;
10
+ }
11
+ class WindowService {
12
+ get nativeWindow() {
13
+ return _window();
14
+ }
15
+ }
16
+ WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
+ WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, providedIn: 'root' });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
19
+ type: Injectable,
20
+ args: [{
21
+ providedIn: 'root'
22
+ }]
23
+ }] });
24
+
25
+ class TokenService {
26
+ constructor(windowRef) {
27
+ this.windowRef = windowRef;
28
+ }
29
+ /*
30
+ Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)
31
+ Because variables are scoped via a selector (ie: ':root .bloomon {}')
32
+ we cannot get brand-specific custom properties programatically
33
+
34
+ Important: Ensure that the component requiring the brand name has locally scoped the custom property:
35
+ | ui-icon {
36
+ | --icon-component-brand: var(--utility-brand-name);
37
+ | }
38
+ */
39
+ getBrandName(tokenName, element) {
40
+ return this.getTokenValue(tokenName, element);
41
+ }
42
+ getTokenValue(tokenName, element) {
43
+ const rootElement = element || this.windowRef.nativeWindow.document.documentElement;
44
+ return this.windowRef.nativeWindow.getComputedStyle(rootElement)
45
+ .getPropertyValue(tokenName)
46
+ .trim() || '';
47
+ }
48
+ }
49
+ TokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Injectable });
50
+ TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, providedIn: 'root' });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TokenService, decorators: [{
52
+ type: Injectable,
53
+ args: [{
54
+ providedIn: 'root'
55
+ }]
56
+ }], ctorParameters: function () { return [{ type: WindowService }]; } });
57
+
58
+ class IconComponent {
59
+ constructor(tokenService, windowRef, elementRef) {
60
+ this.tokenService = tokenService;
61
+ this.windowRef = windowRef;
62
+ this.elementRef = elementRef;
63
+ this.iconSize = 'large';
64
+ this.iconContext = 'none';
65
+ }
66
+ convertRemToPixels(remString) {
67
+ const remNumber = parseFloat(remString.replace('rem', ''));
68
+ return remNumber * parseFloat(getComputedStyle(this.windowRef.nativeWindow.document.documentElement).fontSize);
69
+ }
70
+ ngOnChanges() {
71
+ this.ngOnInit();
72
+ }
73
+ ngOnInit() {
74
+ this.iconBrandPath = `${this.tokenService.getBrandName(`--icon-component-brand`, this.elementRef.nativeElement)}`;
75
+ this.size = this.tokenService.getTokenValue(`--global-size-icon-${this.iconSize}`);
76
+ this.iconDisplayClasses = [
77
+ `icon-context-${this.iconContext}`,
78
+ `icon-size-${this.iconSize}`
79
+ ];
80
+ const sizeInPixels = this.convertRemToPixels(this.size);
81
+ this.iconWidth = sizeInPixels;
82
+ this.iconHeight = sizeInPixels;
83
+ }
84
+ }
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 });
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconComponent, decorators: [{
88
+ type: Component,
89
+ args: [{
90
+ selector: 'ui-icon',
91
+ templateUrl: './icon.component.html',
92
+ styleUrls: ['./icon.component.scss'],
93
+ changeDetection: ChangeDetectionStrategy.OnPush,
94
+ encapsulation: ViewEncapsulation.None
95
+ }]
96
+ }], ctorParameters: function () { return [{ type: TokenService }, { type: WindowService }, { type: i0.ElementRef }]; }, propDecorators: { iconSize: [{
97
+ type: Input
98
+ }], iconName: [{
99
+ type: Input
100
+ }], iconContext: [{
101
+ type: Input
102
+ }], iconWidth: [{
103
+ type: Input
104
+ }], iconHeight: [{
105
+ type: Input
106
+ }], iconClass: [{
107
+ type: Input
108
+ }] } });
109
+
110
+ class ButtonComponent {
111
+ constructor(changes) {
112
+ this.changes = changes;
113
+ this.buttonIconPlacement = 'leading';
114
+ // Button Stylings
115
+ this.buttonSize = 'large';
116
+ this.buttonFullWidth = false;
117
+ this.buttonType = 'primary';
118
+ this.buttonDisabled = false;
119
+ // Button Actions
120
+ this.href = '';
121
+ this.click = new EventEmitter();
122
+ this.buttonDisplayClasses = [];
123
+ this.iconContext = 'none';
124
+ }
125
+ onClick() {
126
+ console.log('button was clicked');
127
+ this.click.emit();
128
+ }
129
+ createButton() {
130
+ return {
131
+ buttonText: this.buttonText,
132
+ buttonIcon: this.buttonIcon,
133
+ buttonIconPlacement: this.buttonIconPlacement,
134
+ buttonType: this.buttonType,
135
+ buttonSize: this.buttonSize,
136
+ buttonDisabled: this.buttonDisabled,
137
+ href: this.href,
138
+ target: '',
139
+ buttonDisplayClasses: [
140
+ `type-${this.buttonType}`,
141
+ `size-${this.buttonSize}`,
142
+ `${this.buttonIcon ? 'button--has-icon' : ''}`,
143
+ `${this.buttonFullWidth ? 'button--full-width' : ''}`,
144
+ `${this.buttonText && this.buttonIcon ? 'button--icon--' + this.buttonIconPlacement : ''}`,
145
+ `${!this.buttonText && this.buttonIcon ? 'button--icon--only' : ''}`
146
+ ].filter((d) => !!d)
147
+ };
148
+ }
149
+ ngOnChanges() {
150
+ this.button = this.createButton();
151
+ console.log(this.button);
152
+ this.changes.markForCheck();
153
+ }
154
+ ngOnInit() {
155
+ this.button = this.createButton();
156
+ }
157
+ }
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: [{
161
+ type: Component,
162
+ args: [{
163
+ selector: 'ui-button',
164
+ templateUrl: './button.component.html',
165
+ styleUrls: ['./button.component.scss'],
166
+ encapsulation: ViewEncapsulation.None,
167
+ changeDetection: ChangeDetectionStrategy.OnPush
168
+ }]
169
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { buttonText: [{
170
+ type: Input
171
+ }], buttonIcon: [{
172
+ type: Input
173
+ }], buttonIconPlacement: [{
174
+ type: Input
175
+ }], buttonSize: [{
176
+ type: Input
177
+ }], buttonFullWidth: [{
178
+ type: Input
179
+ }], buttonType: [{
180
+ type: Input
181
+ }], buttonDisabled: [{
182
+ type: Input
183
+ }], href: [{
184
+ type: Input
185
+ }], click: [{
186
+ type: Output
187
+ }] } });
188
+
189
+ class LayoutInlineComponent {
190
+ constructor() { }
191
+ ngOnInit() {
192
+ }
193
+ }
194
+ LayoutInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutInlineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
195
+ LayoutInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutInlineComponent, selector: "ui-inline", ngImport: i0, template: "<div class=\"ui-layout-inline\"><ng-content></ng-content></div>", styles: [".ui-layout-inline{display:inline-flex;position:relative}.ui-layout-inline>*{margin-left:var(--layout-inline-spacing-default);margin-right:var(--layout-inline-spacing-default)}.ui-layout-inline:first-child{margin-left:0}.ui-layout-inline:last-child{margin-right:0}.ui-layout-inline:only-child{margin-left:0;margin-right:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutInlineComponent, decorators: [{
197
+ type: Component,
198
+ args: [{
199
+ selector: 'ui-inline',
200
+ templateUrl: './inline.component.html',
201
+ styleUrls: ['./inline.component.css'],
202
+ encapsulation: ViewEncapsulation.None,
203
+ changeDetection: ChangeDetectionStrategy.OnPush
204
+ }]
205
+ }], ctorParameters: function () { return []; } });
206
+
207
+ class LayoutBoxComponent {
208
+ constructor() {
209
+ this.padding = 'default';
210
+ }
211
+ ngOnInit() {
212
+ this.boxLayoutClasses = [
213
+ `ui-layout-box-${this.padding}`
214
+ ].join(' ');
215
+ }
216
+ }
217
+ LayoutBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
218
+ LayoutBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutBoxComponent, selector: "ui-box", inputs: { padding: "padding" }, host: { properties: { "class": "boxLayoutClasses" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".ui-layout-box-xsmall{padding:var(--size-unit-xsmall)}.ui-layout-box-small{padding:var(--size-unit-small)}.ui-layout-box-default{padding:var(--size-unit-default)}.ui-layout-box-large{padding:var(--size-unit-large)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayoutBoxComponent, decorators: [{
220
+ type: Component,
221
+ args: [{
222
+ selector: 'ui-box',
223
+ template: '<ng-content></ng-content>',
224
+ host: {
225
+ '[class]': 'boxLayoutClasses'
226
+ },
227
+ styleUrls: ['./box.component.scss'],
228
+ encapsulation: ViewEncapsulation.None,
229
+ changeDetection: ChangeDetectionStrategy.OnPush
230
+ }]
231
+ }], ctorParameters: function () { return []; }, propDecorators: { padding: [{
232
+ type: Input
233
+ }] } });
234
+
235
+ class OasysLibModule {
236
+ }
237
+ 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,
239
+ LayoutInlineComponent,
240
+ IconComponent,
241
+ LayoutBoxComponent], imports: [CommonModule, i2.RouterModule], exports: [ButtonComponent,
242
+ LayoutBoxComponent] });
243
+ OasysLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, providers: [
244
+ WindowService,
245
+ { provide: APP_BASE_HREF, useValue: '/' }
246
+ ], imports: [[
247
+ CommonModule,
248
+ RouterModule.forRoot([])
249
+ ]] });
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysLibModule, decorators: [{
251
+ type: NgModule,
252
+ args: [{
253
+ declarations: [
254
+ ButtonComponent,
255
+ LayoutInlineComponent,
256
+ IconComponent,
257
+ LayoutBoxComponent
258
+ ],
259
+ imports: [
260
+ CommonModule,
261
+ RouterModule.forRoot([])
262
+ ],
263
+ exports: [
264
+ ButtonComponent,
265
+ LayoutBoxComponent
266
+ ],
267
+ providers: [
268
+ WindowService,
269
+ { provide: APP_BASE_HREF, useValue: '/' }
270
+ ]
271
+ }]
272
+ }] });
273
+
274
+ /*
275
+ * Public API Surface of oasys-lib
276
+ */
277
+
278
+ /**
279
+ * Generated bundle index. Do not edit.
280
+ */
281
+
282
+ export { ButtonComponent, IconComponent, LayoutBoxComponent, OasysLibModule };
283
+ //# sourceMappingURL=oasys-lib.js.map
@@ -0,0 +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;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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AAS,EAAE;wBACT,aAAa;AACb,wBAAA,EAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAC;AACxC,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,26 @@
1
+ import { OnInit, EventEmitter, ChangeDetectorRef, OnChanges } from '@angular/core';
2
+ import { IconNames, IconContext } from '../icon/icon';
3
+ import { UIButton, UIButtonBoolean, UIButtonSize, UIButtonType } from './button';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ButtonComponent implements OnInit, OnChanges {
6
+ private changes;
7
+ button: UIButton;
8
+ buttonText: string;
9
+ buttonIcon?: IconNames;
10
+ buttonIconPlacement: IconContext;
11
+ buttonSize: UIButtonSize;
12
+ buttonFullWidth: UIButtonBoolean;
13
+ buttonType: UIButtonType;
14
+ buttonDisabled: boolean;
15
+ href: string;
16
+ click: EventEmitter<void>;
17
+ buttonDisplayClasses: string[];
18
+ iconContext: IconContext;
19
+ constructor(changes: ChangeDetectorRef);
20
+ onClick(): void;
21
+ createButton(): UIButton;
22
+ ngOnChanges(): void;
23
+ 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>;
26
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { IconNames, IconContext } from '../icon/icon';
3
+ export declare type UIButtonBoolean = true | 'true' | false | 'false';
4
+ export declare type UIButtonSize = 'small' | 'large';
5
+ export declare type UIButtonType = 'primary' | 'secondary' | 'tertiary' | 'primary-inverse' | 'secondary-inverse' | 'tertiary-inverse' | 'expressive' | 'danger' | 'facebook' | 'paypal' | 'trustpilot';
6
+ export interface UIButton {
7
+ buttonText: string;
8
+ buttonIcon: IconNames;
9
+ buttonType: UIButtonType;
10
+ buttonIconPlacement: IconContext;
11
+ buttonSize: UIButtonSize;
12
+ buttonFullWidth: UIButtonBoolean;
13
+ href: string;
14
+ target: string;
15
+ buttonDisabled: UIButtonBoolean;
16
+ buttonDisplayClasses: string[];
17
+ buttonDidClick: EventEmitter<any>;
18
+ }
@@ -0,0 +1,25 @@
1
+ import { OnInit, OnChanges, ElementRef } from '@angular/core';
2
+ import { TokenService } from '../../services/token.service';
3
+ import { WindowService } from '../../services/window.service';
4
+ import { IconNames, IconContext } from './icon';
5
+ import * as i0 from "@angular/core";
6
+ export declare class IconComponent implements OnInit, OnChanges {
7
+ private tokenService;
8
+ private windowRef;
9
+ private elementRef;
10
+ iconSize: 'small' | 'large';
11
+ iconName: IconNames;
12
+ iconContext: IconContext;
13
+ iconWidth?: number;
14
+ iconHeight?: number;
15
+ iconClass?: string;
16
+ size?: string;
17
+ iconBrandPath?: string;
18
+ iconDisplayClasses: string[];
19
+ constructor(tokenService: TokenService, windowRef: WindowService, elementRef: ElementRef);
20
+ convertRemToPixels(remString: string): number;
21
+ ngOnChanges(): void;
22
+ ngOnInit(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ui-icon", never, { "iconSize": "iconSize"; "iconName": "iconName"; "iconContext": "iconContext"; "iconWidth": "iconWidth"; "iconHeight": "iconHeight"; "iconClass": "iconClass"; }, {}, never, never>;
25
+ }
@@ -0,0 +1,2 @@
1
+ export declare type IconNames = 'pin' | 'heart' | 'basket';
2
+ export declare type IconContext = 'leading' | 'trailing' | 'iconOnly' | 'none';