oasys-lib 0.0.4 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/oasys-lib.umd.js +336 -0
- package/bundles/oasys-lib.umd.js.map +1 -0
- package/esm2015/lib/components/button/button.component.js +97 -0
- package/esm2015/lib/components/button/button.js +2 -0
- package/esm2015/lib/components/icon/icon.component.js +59 -0
- package/esm2015/lib/components/icon/icon.js +2 -0
- package/esm2015/lib/components/layout/box/box.component.js +32 -0
- package/esm2015/lib/components/layout/inline/inline.component.js +20 -0
- package/{esm2020/lib/components/text/text.mjs → esm2015/lib/components/text/text.js} +0 -0
- package/esm2015/lib/oasys-lib.module.js +52 -0
- package/{esm2020/lib/services/token.service.mjs → esm2015/lib/services/token.service.js} +4 -4
- package/{esm2020/lib/services/window.service.mjs → esm2015/lib/services/window.service.js} +4 -4
- package/{esm2020/oasys-lib.mjs → esm2015/oasys-lib.js} +0 -0
- package/{esm2020/public-api.mjs → esm2015/public-api.js} +0 -0
- package/fesm2015/oasys-lib.js +298 -0
- package/fesm2015/oasys-lib.js.map +1 -0
- package/lib/components/button/button.component.d.ts +9 -6
- package/lib/components/button/button.component.d.ts.map +1 -1
- package/lib/components/button/button.d.ts +1 -2
- package/lib/components/button/button.d.ts.map +1 -1
- package/lib/components/icon/icon.d.ts +1 -1
- package/lib/components/icon/icon.d.ts.map +1 -1
- package/lib/oasys-lib.module.d.ts +1 -1
- package/lib/oasys-lib.module.d.ts.map +1 -1
- package/package.json +9 -22
- package/src/assets/bloomandwild/icons/icons.svg +1 -1
- package/src/assets/bloomandwild/variables.css +32 -12
- package/src/assets/bloomon/icons/icons.svg +1 -1
- package/src/assets/bloomon/variables.css +31 -10
- package/src/assets/global/variables.css +1 -1
- package/esm2020/lib/components/button/button.component.mjs +0 -77
- package/esm2020/lib/components/button/button.mjs +0 -2
- package/esm2020/lib/components/icon/icon.component.mjs +0 -53
- package/esm2020/lib/components/icon/icon.mjs +0 -2
- package/esm2020/lib/components/layout/box/box.component.mjs +0 -25
- package/esm2020/lib/components/layout/inline/inline.component.mjs +0 -14
- package/esm2020/lib/oasys-lib.module.mjs +0 -49
- package/fesm2015/oasys-lib.mjs +0 -257
- package/fesm2015/oasys-lib.mjs.map +0 -1
- package/fesm2020/oasys-lib.mjs +0 -257
- package/fesm2020/oasys-lib.mjs.map +0 -1
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('oasys-lib', ['exports', '@angular/common', '@angular/core', '@angular/router'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oasys-lib"] = {}, global.ng.common, global.ng.core, global.ng.router));
|
|
5
|
+
})(this, (function (exports, i3, i0, i2) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
|
|
29
|
+
function _window() {
|
|
30
|
+
return window;
|
|
31
|
+
}
|
|
32
|
+
var WindowService = /** @class */ (function () {
|
|
33
|
+
function WindowService() {
|
|
34
|
+
}
|
|
35
|
+
Object.defineProperty(WindowService.prototype, "nativeWindow", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return _window();
|
|
38
|
+
},
|
|
39
|
+
enumerable: false,
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
42
|
+
return WindowService;
|
|
43
|
+
}());
|
|
44
|
+
WindowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WindowService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
45
|
+
WindowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WindowService, providedIn: 'root' });
|
|
46
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WindowService, decorators: [{
|
|
47
|
+
type: i0.Injectable,
|
|
48
|
+
args: [{
|
|
49
|
+
providedIn: 'root'
|
|
50
|
+
}]
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
var TokenService = /** @class */ (function () {
|
|
54
|
+
function TokenService(windowRef) {
|
|
55
|
+
this.windowRef = windowRef;
|
|
56
|
+
}
|
|
57
|
+
/*
|
|
58
|
+
Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)
|
|
59
|
+
Because variables are scoped via a selector (ie: ':root .bloomon {}')
|
|
60
|
+
we cannot get brand-specific custom properties programatically
|
|
61
|
+
|
|
62
|
+
Important: Ensure that the component requiring the brand name has locally scoped the custom property:
|
|
63
|
+
| ui-icon {
|
|
64
|
+
| --icon-component-brand: var(--utility-brand-name);
|
|
65
|
+
| }
|
|
66
|
+
*/
|
|
67
|
+
TokenService.prototype.getBrandName = function (tokenName, element) {
|
|
68
|
+
return this.getTokenValue(tokenName, element);
|
|
69
|
+
};
|
|
70
|
+
TokenService.prototype.getTokenValue = function (tokenName, element) {
|
|
71
|
+
var rootElement = element || this.windowRef.nativeWindow.document.documentElement;
|
|
72
|
+
return this.windowRef.nativeWindow.getComputedStyle(rootElement)
|
|
73
|
+
.getPropertyValue(tokenName)
|
|
74
|
+
.trim() || '';
|
|
75
|
+
};
|
|
76
|
+
return TokenService;
|
|
77
|
+
}());
|
|
78
|
+
TokenService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, deps: [{ token: WindowService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
79
|
+
TokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, providedIn: 'root' });
|
|
80
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, decorators: [{
|
|
81
|
+
type: i0.Injectable,
|
|
82
|
+
args: [{
|
|
83
|
+
providedIn: 'root'
|
|
84
|
+
}]
|
|
85
|
+
}], ctorParameters: function () { return [{ type: WindowService }]; } });
|
|
86
|
+
|
|
87
|
+
var IconComponent = /** @class */ (function () {
|
|
88
|
+
function IconComponent(tokenService, windowRef, elementRef) {
|
|
89
|
+
this.tokenService = tokenService;
|
|
90
|
+
this.windowRef = windowRef;
|
|
91
|
+
this.elementRef = elementRef;
|
|
92
|
+
this.iconSize = 'large';
|
|
93
|
+
this.iconContext = 'none';
|
|
94
|
+
}
|
|
95
|
+
IconComponent.prototype.convertRemToPixels = function (remString) {
|
|
96
|
+
var remNumber = parseFloat(remString.replace('rem', ''));
|
|
97
|
+
return remNumber * parseFloat(getComputedStyle(this.windowRef.nativeWindow.document.documentElement).fontSize);
|
|
98
|
+
};
|
|
99
|
+
IconComponent.prototype.ngOnChanges = function () {
|
|
100
|
+
this.ngOnInit();
|
|
101
|
+
};
|
|
102
|
+
IconComponent.prototype.ngOnInit = function () {
|
|
103
|
+
this.iconBrandPath = "" + this.tokenService.getBrandName("--icon-component-brand", this.elementRef.nativeElement);
|
|
104
|
+
this.size = this.tokenService.getTokenValue("--global-size-icon-" + this.iconSize);
|
|
105
|
+
this.iconDisplayClasses = [
|
|
106
|
+
"icon-context-" + this.iconContext,
|
|
107
|
+
"icon-size-" + this.iconSize
|
|
108
|
+
];
|
|
109
|
+
var sizeInPixels = this.convertRemToPixels(this.size);
|
|
110
|
+
this.iconWidth = sizeInPixels;
|
|
111
|
+
this.iconHeight = sizeInPixels;
|
|
112
|
+
};
|
|
113
|
+
return IconComponent;
|
|
114
|
+
}());
|
|
115
|
+
IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, deps: [{ token: TokenService }, { token: WindowService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
116
|
+
IconComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
117
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
|
|
118
|
+
type: i0.Component,
|
|
119
|
+
args: [{
|
|
120
|
+
selector: 'ui-icon',
|
|
121
|
+
templateUrl: './icon.component.html',
|
|
122
|
+
styleUrls: ['./icon.component.scss'],
|
|
123
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
124
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
125
|
+
}]
|
|
126
|
+
}], ctorParameters: function () { return [{ type: TokenService }, { type: WindowService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { iconSize: [{
|
|
127
|
+
type: i0.Input
|
|
128
|
+
}], iconName: [{
|
|
129
|
+
type: i0.Input
|
|
130
|
+
}], iconContext: [{
|
|
131
|
+
type: i0.Input
|
|
132
|
+
}], iconWidth: [{
|
|
133
|
+
type: i0.Input
|
|
134
|
+
}], iconHeight: [{
|
|
135
|
+
type: i0.Input
|
|
136
|
+
}], iconClass: [{
|
|
137
|
+
type: i0.Input
|
|
138
|
+
}] } });
|
|
139
|
+
|
|
140
|
+
var OasysButtonComponent = /** @class */ (function () {
|
|
141
|
+
function OasysButtonComponent(changes) {
|
|
142
|
+
this.changes = changes;
|
|
143
|
+
this.buttonIconPlacement = 'leading';
|
|
144
|
+
// Button Stylings
|
|
145
|
+
this.buttonSize = 'large';
|
|
146
|
+
this.buttonFullWidth = false;
|
|
147
|
+
this.buttonType = 'primary';
|
|
148
|
+
this.buttonDisabled = false;
|
|
149
|
+
// Button Actions
|
|
150
|
+
this.href = '';
|
|
151
|
+
this.clicked = new i0.EventEmitter();
|
|
152
|
+
this.iconContext = 'none';
|
|
153
|
+
this.outlineButtonTypes = ['secondary', 'secondary-inverse'];
|
|
154
|
+
}
|
|
155
|
+
OasysButtonComponent.prototype.onClick = function () {
|
|
156
|
+
this.clicked.emit();
|
|
157
|
+
};
|
|
158
|
+
OasysButtonComponent.prototype.createButton = function () {
|
|
159
|
+
return {
|
|
160
|
+
buttonIcon: this.buttonIcon,
|
|
161
|
+
buttonIconPlacement: this.buttonIconPlacement,
|
|
162
|
+
buttonType: this.buttonType,
|
|
163
|
+
buttonSize: this.buttonSize,
|
|
164
|
+
buttonDisabled: this.buttonDisabled,
|
|
165
|
+
href: this.href,
|
|
166
|
+
target: '',
|
|
167
|
+
buttonDisplayClasses: [
|
|
168
|
+
"type-" + this.buttonType,
|
|
169
|
+
"size-" + this.buttonSize,
|
|
170
|
+
"" + (this.buttonIcon ? 'button--has-icon' : ''),
|
|
171
|
+
"" + (this.buttonFullWidth ? 'button--full-width' : ''),
|
|
172
|
+
"" + (this.buttonIcon ? 'button--icon--' + this.buttonIconPlacement : ''),
|
|
173
|
+
"" + (this.outlineButtonTypes.indexOf(this.buttonType) !== -1 ? 'button--outline' : '')
|
|
174
|
+
].filter(function (d) { return !!d; })
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
OasysButtonComponent.prototype.ngAfterViewInit = function () {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
if ((_b = (_a = this.buttonText) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.innerText) {
|
|
180
|
+
this.accessibleButtonContent = this.buttonText.nativeElement.innerText;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
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 ");
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
OasysButtonComponent.prototype.ngOnChanges = function () {
|
|
187
|
+
this.button = this.createButton();
|
|
188
|
+
this.changes.markForCheck();
|
|
189
|
+
};
|
|
190
|
+
OasysButtonComponent.prototype.ngOnInit = function () {
|
|
191
|
+
this.button = this.createButton();
|
|
192
|
+
};
|
|
193
|
+
return OasysButtonComponent;
|
|
194
|
+
}());
|
|
195
|
+
OasysButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
196
|
+
OasysButtonComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
197
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonComponent, decorators: [{
|
|
198
|
+
type: i0.Component,
|
|
199
|
+
args: [{
|
|
200
|
+
selector: 'ui-button',
|
|
201
|
+
templateUrl: './button.component.html',
|
|
202
|
+
styleUrls: ['./button.component.scss'],
|
|
203
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
204
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
205
|
+
}]
|
|
206
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { buttonIcon: [{
|
|
207
|
+
type: i0.Input
|
|
208
|
+
}], buttonIconPlacement: [{
|
|
209
|
+
type: i0.Input
|
|
210
|
+
}], buttonText: [{
|
|
211
|
+
type: i0.ContentChild,
|
|
212
|
+
args: ['buttonText']
|
|
213
|
+
}], buttonSize: [{
|
|
214
|
+
type: i0.Input
|
|
215
|
+
}], buttonFullWidth: [{
|
|
216
|
+
type: i0.Input
|
|
217
|
+
}], buttonType: [{
|
|
218
|
+
type: i0.Input
|
|
219
|
+
}], buttonDisabled: [{
|
|
220
|
+
type: i0.Input
|
|
221
|
+
}], href: [{
|
|
222
|
+
type: i0.Input
|
|
223
|
+
}], clicked: [{
|
|
224
|
+
type: i0.Output
|
|
225
|
+
}] } });
|
|
226
|
+
|
|
227
|
+
var LayoutInlineComponent = /** @class */ (function () {
|
|
228
|
+
function LayoutInlineComponent() {
|
|
229
|
+
}
|
|
230
|
+
LayoutInlineComponent.prototype.ngOnInit = function () {
|
|
231
|
+
};
|
|
232
|
+
return LayoutInlineComponent;
|
|
233
|
+
}());
|
|
234
|
+
LayoutInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutInlineComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
235
|
+
LayoutInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutInlineComponent, selector: "ui-inline", ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
236
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutInlineComponent, decorators: [{
|
|
237
|
+
type: i0.Component,
|
|
238
|
+
args: [{
|
|
239
|
+
selector: 'ui-inline',
|
|
240
|
+
templateUrl: './inline.component.html',
|
|
241
|
+
styleUrls: ['./inline.component.css'],
|
|
242
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
243
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
244
|
+
}]
|
|
245
|
+
}], ctorParameters: function () { return []; } });
|
|
246
|
+
|
|
247
|
+
var LayoutBoxComponent = /** @class */ (function () {
|
|
248
|
+
function LayoutBoxComponent() {
|
|
249
|
+
this.padding = 'default';
|
|
250
|
+
}
|
|
251
|
+
LayoutBoxComponent.prototype.ngOnInit = function () {
|
|
252
|
+
this.boxLayoutClasses = [
|
|
253
|
+
"ui-layout-box-" + this.padding
|
|
254
|
+
].join(' ');
|
|
255
|
+
};
|
|
256
|
+
return LayoutBoxComponent;
|
|
257
|
+
}());
|
|
258
|
+
LayoutBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutBoxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
259
|
+
LayoutBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutBoxComponent, selector: "ui-box", inputs: { padding: "padding" }, host: { properties: { "class": "boxLayoutClasses" } }, ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
260
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutBoxComponent, decorators: [{
|
|
261
|
+
type: i0.Component,
|
|
262
|
+
args: [{
|
|
263
|
+
selector: 'ui-box',
|
|
264
|
+
template: '<ng-content></ng-content>',
|
|
265
|
+
host: {
|
|
266
|
+
'[class]': 'boxLayoutClasses'
|
|
267
|
+
},
|
|
268
|
+
styleUrls: ['./box.component.scss'],
|
|
269
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
270
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
271
|
+
}]
|
|
272
|
+
}], ctorParameters: function () { return []; }, propDecorators: { padding: [{
|
|
273
|
+
type: i0.Input
|
|
274
|
+
}] } });
|
|
275
|
+
|
|
276
|
+
var OasysLibModule = /** @class */ (function () {
|
|
277
|
+
function OasysLibModule() {
|
|
278
|
+
}
|
|
279
|
+
return OasysLibModule;
|
|
280
|
+
}());
|
|
281
|
+
OasysLibModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
282
|
+
OasysLibModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, declarations: [OasysButtonComponent,
|
|
283
|
+
LayoutInlineComponent,
|
|
284
|
+
IconComponent,
|
|
285
|
+
LayoutBoxComponent], imports: [i3.CommonModule, i2__namespace.RouterModule], exports: [OasysButtonComponent,
|
|
286
|
+
LayoutBoxComponent] });
|
|
287
|
+
OasysLibModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, providers: [
|
|
288
|
+
WindowService,
|
|
289
|
+
TokenService,
|
|
290
|
+
{ provide: i3.APP_BASE_HREF, useValue: '/' }
|
|
291
|
+
], imports: [[
|
|
292
|
+
i3.CommonModule,
|
|
293
|
+
i2.RouterModule.forChild([])
|
|
294
|
+
]] });
|
|
295
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, decorators: [{
|
|
296
|
+
type: i0.NgModule,
|
|
297
|
+
args: [{
|
|
298
|
+
declarations: [
|
|
299
|
+
OasysButtonComponent,
|
|
300
|
+
LayoutInlineComponent,
|
|
301
|
+
IconComponent,
|
|
302
|
+
LayoutBoxComponent
|
|
303
|
+
],
|
|
304
|
+
imports: [
|
|
305
|
+
i3.CommonModule,
|
|
306
|
+
i2.RouterModule.forChild([])
|
|
307
|
+
],
|
|
308
|
+
exports: [
|
|
309
|
+
OasysButtonComponent,
|
|
310
|
+
LayoutBoxComponent
|
|
311
|
+
],
|
|
312
|
+
providers: [
|
|
313
|
+
WindowService,
|
|
314
|
+
TokenService,
|
|
315
|
+
{ provide: i3.APP_BASE_HREF, useValue: '/' }
|
|
316
|
+
]
|
|
317
|
+
}]
|
|
318
|
+
}] });
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
* Public API Surface of oasys-lib
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Generated bundle index. Do not edit.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
exports.IconComponent = IconComponent;
|
|
329
|
+
exports.LayoutBoxComponent = LayoutBoxComponent;
|
|
330
|
+
exports.OasysButtonComponent = OasysButtonComponent;
|
|
331
|
+
exports.OasysLibModule = OasysLibModule;
|
|
332
|
+
|
|
333
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
334
|
+
|
|
335
|
+
}));
|
|
336
|
+
//# sourceMappingURL=oasys-lib.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oasys-lib.umd.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":["i0","Injectable","i1.WindowService","i1.TokenService","i2.WindowService","i3","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","EventEmitter","i1.IconComponent","i2","ContentChild","Output","CommonModule","i1","APP_BASE_HREF","RouterModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEA,SAAS,OAAO,GAAA;IACd,IAAA,OAAO,MAAM,CAAC;IAChB,CAAC;IAKD,IAAA,aAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,aAAA,GAAA;;IAEE,IAAA,MAAA,CAAA,cAAA,CAAI,aAAY,CAAA,SAAA,EAAA,cAAA,EAAA;IAAhB,QAAA,GAAA,EAAA,YAAA;gB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AAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,cAAc,EANd,SAAA,EAAA;YACT,aAAa;YACb,YAAY;IACZ,QAAA,EAAC,OAAO,EAAEiB,gBAAa,EAAE,QAAQ,EAAE,GAAG,EAAC;SACxC,EAZQ,OAAA,EAAA,CAAA;gBACPF,eAAY;IACZ,YAAAG,eAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;aAC1B,CAAA,EAAA,CAAA,CAAA;sHAWU,cAAc,EAAA,UAAA,EAAA,CAAA;sBArB1BC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,YAAY,EAAE;4BACZ,oBAAoB;4BACpB,qBAAqB;4BACrB,aAAa;4BACb,kBAAkB;IACnB,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACPJ,eAAY;IACZ,wBAAAG,eAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC1B,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACP,oBAAoB;4BACpB,kBAAkB;IACnB,qBAAA;IACD,oBAAA,SAAS,EAAE;4BACT,aAAa;4BACb,YAAY;IACZ,wBAAA,EAAC,OAAO,EAAED,gBAAa,EAAE,QAAQ,EAAE,GAAG,EAAC;IACxC,qBAAA;qBACF,CAAA;;;IChCD;;IAEG;;ICFH;;IAEG;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, Input, Output, ViewEncapsulation, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, ContentChild, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../icon/icon.component";
|
|
4
|
+
import * as i2 from "@angular/router";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
export class OasysButtonComponent {
|
|
7
|
+
constructor(changes) {
|
|
8
|
+
this.changes = changes;
|
|
9
|
+
this.buttonIconPlacement = 'leading';
|
|
10
|
+
// Button Stylings
|
|
11
|
+
this.buttonSize = 'large';
|
|
12
|
+
this.buttonFullWidth = false;
|
|
13
|
+
this.buttonType = 'primary';
|
|
14
|
+
this.buttonDisabled = false;
|
|
15
|
+
// Button Actions
|
|
16
|
+
this.href = '';
|
|
17
|
+
this.clicked = new EventEmitter();
|
|
18
|
+
this.iconContext = 'none';
|
|
19
|
+
this.outlineButtonTypes = ['secondary', 'secondary-inverse'];
|
|
20
|
+
}
|
|
21
|
+
onClick() {
|
|
22
|
+
this.clicked.emit();
|
|
23
|
+
}
|
|
24
|
+
createButton() {
|
|
25
|
+
return {
|
|
26
|
+
buttonIcon: this.buttonIcon,
|
|
27
|
+
buttonIconPlacement: this.buttonIconPlacement,
|
|
28
|
+
buttonType: this.buttonType,
|
|
29
|
+
buttonSize: this.buttonSize,
|
|
30
|
+
buttonDisabled: this.buttonDisabled,
|
|
31
|
+
href: this.href,
|
|
32
|
+
target: '',
|
|
33
|
+
buttonDisplayClasses: [
|
|
34
|
+
`type-${this.buttonType}`,
|
|
35
|
+
`size-${this.buttonSize}`,
|
|
36
|
+
`${this.buttonIcon ? 'button--has-icon' : ''}`,
|
|
37
|
+
`${this.buttonFullWidth ? 'button--full-width' : ''}`,
|
|
38
|
+
`${this.buttonIcon ? 'button--icon--' + this.buttonIconPlacement : ''}`,
|
|
39
|
+
`${this.outlineButtonTypes.indexOf(this.buttonType) !== -1 ? 'button--outline' : ''}`
|
|
40
|
+
].filter((d) => !!d)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
ngAfterViewInit() {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
if ((_b = (_a = this.buttonText) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.innerText) {
|
|
46
|
+
this.accessibleButtonContent = this.buttonText.nativeElement.innerText;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
throw new Error(`
|
|
50
|
+
No inner text found. All buttons should have text passed via ng-content to enable accessibility for screen readers, this includes icon-only buttons.
|
|
51
|
+
|
|
52
|
+
Pass content using the template variable #buttonText eg:
|
|
53
|
+
ui-button()
|
|
54
|
+
span(#buttonText) Buy All The Things
|
|
55
|
+
`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
ngOnChanges() {
|
|
59
|
+
this.button = this.createButton();
|
|
60
|
+
this.changes.markForCheck();
|
|
61
|
+
}
|
|
62
|
+
ngOnInit() {
|
|
63
|
+
this.button = this.createButton();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
OasysButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysButtonComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
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: i1.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 });
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OasysButtonComponent, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{
|
|
71
|
+
selector: 'ui-button',
|
|
72
|
+
templateUrl: './button.component.html',
|
|
73
|
+
styleUrls: ['./button.component.scss'],
|
|
74
|
+
encapsulation: ViewEncapsulation.None,
|
|
75
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
76
|
+
}]
|
|
77
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { buttonIcon: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], buttonIconPlacement: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], buttonText: [{
|
|
82
|
+
type: ContentChild,
|
|
83
|
+
args: ['buttonText']
|
|
84
|
+
}], buttonSize: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}], buttonFullWidth: [{
|
|
87
|
+
type: Input
|
|
88
|
+
}], buttonType: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], buttonDisabled: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], href: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], clicked: [{
|
|
95
|
+
type: Output
|
|
96
|
+
}] } });
|
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29hc3lzLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vYXN5cy1saWIvc3JjL2xpYi9jb21wb25lbnRzL2J1dHRvbi9idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdL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