oasys-lib 1.8.1 → 1.9.2
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 +604 -479
- package/bundles/oasys-lib.umd.js.map +1 -1
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.module.js +21 -0
- package/esm2015/lib/components/breadcrumbs/index.js +3 -0
- package/esm2015/lib/components/button/button.component.js +2 -2
- package/esm2015/lib/components/button/button.module.js +20 -0
- package/esm2015/lib/components/button/index.js +3 -0
- package/esm2015/lib/components/card/card.component.js +2 -4
- package/esm2015/lib/components/card/card.module.js +21 -0
- package/esm2015/lib/components/card/index.js +3 -0
- package/esm2015/lib/components/divider/divider.module.js +19 -0
- package/esm2015/lib/components/divider/index.js +3 -0
- package/esm2015/lib/components/heading/heading.component.js +2 -3
- package/esm2015/lib/components/heading/heading.module.js +21 -0
- package/esm2015/lib/components/heading/index.js +3 -0
- package/esm2015/lib/components/hero/hero.component.js +7 -7
- package/esm2015/lib/components/hero/hero.module.js +23 -0
- package/esm2015/lib/components/hero/index.js +3 -0
- package/esm2015/lib/components/icon/icon.component.js +13 -13
- package/esm2015/lib/components/icon/icon.module.js +20 -0
- package/esm2015/lib/components/icon/index.js +3 -0
- package/esm2015/lib/components/layout/box/box.component.js +2 -2
- package/esm2015/lib/components/layout/container/container.component.js +2 -3
- package/esm2015/lib/components/layout/grid/grid-column.component.js +56 -0
- package/esm2015/lib/components/layout/grid/grid.component.js +2 -56
- package/esm2015/lib/components/layout/index.js +7 -0
- package/esm2015/lib/components/layout/layout.module.js +42 -0
- package/esm2015/lib/components/layout/stack/stack.component.js +2 -2
- package/esm2015/lib/components/text/index.js +3 -0
- package/esm2015/lib/components/text/text.component.js +36 -0
- package/esm2015/lib/components/text/text.module.js +18 -0
- package/esm2015/lib/services/token.service.js +14 -15
- package/esm2015/public-api.js +10 -12
- package/fesm2015/oasys-lib.js +527 -434
- package/fesm2015/oasys-lib.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +12 -0
- package/lib/components/breadcrumbs/breadcrumbs.module.d.ts.map +1 -0
- package/lib/components/breadcrumbs/index.d.ts +3 -0
- package/lib/components/breadcrumbs/index.d.ts.map +1 -0
- package/lib/components/button/button.module.d.ts +11 -0
- package/lib/components/button/button.module.d.ts.map +1 -0
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/index.d.ts.map +1 -0
- package/lib/components/card/card.module.d.ts +10 -0
- package/lib/components/card/card.module.d.ts.map +1 -0
- package/lib/components/card/index.d.ts +3 -0
- package/lib/components/card/index.d.ts.map +1 -0
- package/lib/components/divider/divider.module.d.ts +10 -0
- package/lib/components/divider/divider.module.d.ts.map +1 -0
- package/lib/components/divider/index.d.ts +3 -0
- package/lib/components/divider/index.d.ts.map +1 -0
- package/lib/components/heading/heading.module.d.ts +10 -0
- package/lib/components/heading/heading.module.d.ts.map +1 -0
- package/lib/components/heading/index.d.ts +3 -0
- package/lib/components/heading/index.d.ts.map +1 -0
- package/lib/components/hero/hero.module.d.ts +12 -0
- package/lib/components/hero/hero.module.d.ts.map +1 -0
- package/lib/components/hero/index.d.ts +3 -0
- package/lib/components/hero/index.d.ts.map +1 -0
- package/lib/components/icon/icon.component.d.ts +4 -6
- package/lib/components/icon/icon.component.d.ts.map +1 -1
- package/lib/components/icon/icon.module.d.ts +9 -0
- package/lib/components/icon/icon.module.d.ts.map +1 -0
- package/lib/components/icon/index.d.ts +3 -0
- package/lib/components/icon/index.d.ts.map +1 -0
- package/lib/components/layout/grid/grid-column.component.d.ts +17 -0
- package/lib/components/layout/grid/grid-column.component.d.ts.map +1 -0
- package/lib/components/layout/grid/grid.component.d.ts +0 -14
- package/lib/components/layout/grid/grid.component.d.ts.map +1 -1
- package/lib/components/layout/index.d.ts +7 -0
- package/lib/components/layout/index.d.ts.map +1 -0
- package/lib/components/layout/layout.module.d.ts +12 -0
- package/lib/components/layout/layout.module.d.ts.map +1 -0
- package/lib/components/layout/stack/stack.component.d.ts.map +1 -1
- package/lib/components/text/index.d.ts +3 -0
- package/lib/components/text/index.d.ts.map +1 -0
- package/lib/components/text/text.component.d.ts +14 -0
- package/lib/components/text/text.component.d.ts.map +1 -0
- package/lib/components/text/text.module.d.ts +9 -0
- package/lib/components/text/text.module.d.ts.map +1 -0
- package/lib/services/token.service.d.ts +2 -3
- package/lib/services/token.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +9 -11
- package/public-api.d.ts.map +1 -1
- package/src/assets/bloomandwild/variables.css +1 -1
- package/src/assets/bloomon/variables.css +1 -1
- package/src/assets/global/scss-breakpoints.scss +1 -1
- package/src/assets/global/variables.css +1 -1
- package/esm2015/lib/oasys-lib.module.js +0 -94
- package/esm2015/lib/services/window.service.js +0 -19
- package/lib/oasys-lib.module.d.ts +0 -20
- package/lib/oasys-lib.module.d.ts.map +0 -1
- package/lib/services/window.service.d.ts +0 -7
- package/lib/services/window.service.d.ts.map +0 -1
package/bundles/oasys-lib.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('oasys-lib', ['exports', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oasys-lib"] = {}, global.ng.
|
|
5
|
-
})(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('oasys-lib', ['exports', '@angular/core', '@angular/common', '@angular/router'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oasys-lib"] = {}, global.ng.core, global.ng.common, global.ng.router));
|
|
5
|
+
})(this, (function (exports, i0, i3, i2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -22,211 +22,10 @@
|
|
|
22
22
|
return Object.freeze(n);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
27
27
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
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
|
-
this.brandCustomPropertyName = '--utility-brand-name';
|
|
57
|
-
}
|
|
58
|
-
/*
|
|
59
|
-
Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)
|
|
60
|
-
Because variables are scoped via a selector (ie: ':root .bloomon {}')
|
|
61
|
-
we cannot get brand-specific custom properties programatically
|
|
62
|
-
|
|
63
|
-
Important: Ensure that the component requiring the brand name has locally scoped the custom property:
|
|
64
|
-
| ui-icon {
|
|
65
|
-
| --icon-component-brand: var(--utility-brand-name);
|
|
66
|
-
| }
|
|
67
|
-
*/
|
|
68
|
-
TokenService.prototype.getBrandName = function () {
|
|
69
|
-
return this.getTokenValue(this.brandCustomPropertyName);
|
|
70
|
-
};
|
|
71
|
-
TokenService.prototype.getTokenValue = function (tokenName, element) {
|
|
72
|
-
var rootElement = element || this.windowRef.nativeWindow.document.querySelector('[class*="brand-tokens"]');
|
|
73
|
-
if (!rootElement) {
|
|
74
|
-
return '';
|
|
75
|
-
}
|
|
76
|
-
return this.windowRef.nativeWindow.getComputedStyle(rootElement)
|
|
77
|
-
.getPropertyValue(tokenName)
|
|
78
|
-
.trim() || '';
|
|
79
|
-
};
|
|
80
|
-
return TokenService;
|
|
81
|
-
}());
|
|
82
|
-
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 });
|
|
83
|
-
TokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, providedIn: 'root' });
|
|
84
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, decorators: [{
|
|
85
|
-
type: i0.Injectable,
|
|
86
|
-
args: [{
|
|
87
|
-
providedIn: 'root'
|
|
88
|
-
}]
|
|
89
|
-
}], ctorParameters: function () { return [{ type: WindowService }]; } });
|
|
90
|
-
|
|
91
|
-
var IconComponent = /** @class */ (function () {
|
|
92
|
-
function IconComponent(tokenService, windowRef, elementRef) {
|
|
93
|
-
this.tokenService = tokenService;
|
|
94
|
-
this.windowRef = windowRef;
|
|
95
|
-
this.elementRef = elementRef;
|
|
96
|
-
this.icon_size = 'large';
|
|
97
|
-
this.icon_context = 'none';
|
|
98
|
-
}
|
|
99
|
-
IconComponent.prototype.convertRemToPixels = function (remString) {
|
|
100
|
-
var remNumber = parseFloat(remString.replace('rem', ''));
|
|
101
|
-
return remNumber * parseFloat(getComputedStyle(this.windowRef.nativeWindow.document.documentElement).fontSize);
|
|
102
|
-
};
|
|
103
|
-
IconComponent.prototype.ngOnChanges = function () {
|
|
104
|
-
this.ngOnInit();
|
|
105
|
-
};
|
|
106
|
-
IconComponent.prototype.ngOnInit = function () {
|
|
107
|
-
this.iconBrandPath = "" + this.tokenService.getBrandName();
|
|
108
|
-
this.size = this.tokenService.getTokenValue("--global-size-icon-" + this.icon_size);
|
|
109
|
-
this.iconDisplayClasses = [
|
|
110
|
-
"icon-context-" + this.icon_context,
|
|
111
|
-
"icon-size-" + this.icon_size
|
|
112
|
-
];
|
|
113
|
-
var sizeInPixels = this.convertRemToPixels(this.size);
|
|
114
|
-
this.icon_width = sizeInPixels;
|
|
115
|
-
this.icon_height = sizeInPixels;
|
|
116
|
-
};
|
|
117
|
-
return IconComponent;
|
|
118
|
-
}());
|
|
119
|
-
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 });
|
|
120
|
-
IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "ui-icon", inputs: { icon_size: "icon_size", icon_name: "icon_name", icon_context: "icon_context", icon_width: "icon_width", icon_height: "icon_height", icon_class: "icon_class" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" attr.width=\"{{icon_width}}px\" attr.height=\"{{icon_height}}px\" attr.class=\"{{icon_class}}\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{icon_name}}\"></use>\n </svg>\n</div>\n", styles: [".ui-icon{display:flex}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
121
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
|
|
122
|
-
type: i0.Component,
|
|
123
|
-
args: [{
|
|
124
|
-
selector: 'ui-icon',
|
|
125
|
-
templateUrl: './icon.component.html',
|
|
126
|
-
styleUrls: ['./icon.component.scss'],
|
|
127
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
128
|
-
}]
|
|
129
|
-
}], ctorParameters: function () { return [{ type: TokenService }, { type: WindowService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { icon_size: [{
|
|
130
|
-
type: i0.Input
|
|
131
|
-
}], icon_name: [{
|
|
132
|
-
type: i0.Input
|
|
133
|
-
}], icon_context: [{
|
|
134
|
-
type: i0.Input
|
|
135
|
-
}], icon_width: [{
|
|
136
|
-
type: i0.Input
|
|
137
|
-
}], icon_height: [{
|
|
138
|
-
type: i0.Input
|
|
139
|
-
}], icon_class: [{
|
|
140
|
-
type: i0.Input
|
|
141
|
-
}] } });
|
|
142
|
-
|
|
143
|
-
var OasysButtonComponent = /** @class */ (function () {
|
|
144
|
-
function OasysButtonComponent(changes) {
|
|
145
|
-
this.changes = changes;
|
|
146
|
-
this.button_icon_placement = 'leading';
|
|
147
|
-
// Button Stylings
|
|
148
|
-
this.button_size = 'large';
|
|
149
|
-
this.button_full_width = false;
|
|
150
|
-
this.button_type = 'primary';
|
|
151
|
-
this.button_disabled = false;
|
|
152
|
-
// Button Actions
|
|
153
|
-
this.href = '';
|
|
154
|
-
this.clicked = new i0.EventEmitter();
|
|
155
|
-
this.iconContext = 'none';
|
|
156
|
-
this.outlineButtonTypes = ['secondary', 'secondary-inverse'];
|
|
157
|
-
}
|
|
158
|
-
OasysButtonComponent.prototype.onClick = function () {
|
|
159
|
-
this.clicked.emit();
|
|
160
|
-
};
|
|
161
|
-
OasysButtonComponent.prototype.createButton = function () {
|
|
162
|
-
return {
|
|
163
|
-
buttonIcon: this.button_icon,
|
|
164
|
-
buttonIconPlacement: this.button_icon_placement,
|
|
165
|
-
buttonType: this.button_type,
|
|
166
|
-
buttonSize: this.button_size,
|
|
167
|
-
buttonDisabled: this.button_disabled,
|
|
168
|
-
href: this.href,
|
|
169
|
-
target: '',
|
|
170
|
-
buttonDisplayClasses: [
|
|
171
|
-
"type-" + this.button_type,
|
|
172
|
-
"size-" + this.button_size,
|
|
173
|
-
"" + (this.button_icon ? 'button--has-icon' : ''),
|
|
174
|
-
"" + (this.button_full_width ? 'button--full-width' : ''),
|
|
175
|
-
"" + (this.button_icon ? 'button--icon--' + this.button_icon_placement : ''),
|
|
176
|
-
"" + (this.outlineButtonTypes.indexOf(this.button_type) !== -1 ? 'button--outline' : '')
|
|
177
|
-
].filter(function (d) { return !!d; })
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
OasysButtonComponent.prototype.ngAfterViewInit = function () {
|
|
181
|
-
var _a, _b;
|
|
182
|
-
if ((_b = (_a = this.ngContent) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.innerText) {
|
|
183
|
-
this.accessibleButtonContent = this.ngContent.nativeElement.innerText;
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
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 ");
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
OasysButtonComponent.prototype.ngOnChanges = function () {
|
|
190
|
-
this.button = this.createButton();
|
|
191
|
-
this.changes.markForCheck();
|
|
192
|
-
};
|
|
193
|
-
OasysButtonComponent.prototype.ngOnInit = function () {
|
|
194
|
-
this.button = this.createButton();
|
|
195
|
-
};
|
|
196
|
-
return OasysButtonComponent;
|
|
197
|
-
}());
|
|
198
|
-
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 });
|
|
199
|
-
OasysButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OasysButtonComponent, selector: "ui-button", inputs: { button_icon: "button_icon", button_icon_placement: "button_icon_placement", button_size: "button_size", button_full_width: "button_full_width", button_type: "button_type", button_disabled: "button_disabled", href: "href" }, outputs: { clicked: "clicked" }, queries: [{ propertyName: "ngContent", 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 [attr.title]=\"accessibleButtonContent\"\n role=\"button\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [icon_name]=\"button.buttonIcon\" [icon_size]=\"button.buttonSize\" [icon_class]=\"'buttonIcon'\" [icon_context]=\"button.buttonIconPlacement\"></ui-icon>\n <span class=\"ui-text\" [ngClass]=\"{'visuallyhidden': button.buttonIconPlacement === 'iconOnly'}\">\n <ng-content></ng-content>\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n <div class=\"button-overlay-focus\"></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-button-border-radius);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;max-height:var(--component-button-line-height)}ui-button button .button-content .ui-text{text-transform:var(--component-button-text-transform);letter-spacing:var(--component-button-letter-spacing);font-weight:var(--component-button-font-weight);line-height:var(--component-button-line-height)}ui-button button .button-overlay,ui-button button .button-overlay-focus{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;pointer-events:none;border-radius:var(--component-button-border-radius);opacity:0}ui-button button:hover .button-overlay{opacity:var(--component-button-opacity-overlay-hover)}ui-button button:focus .button-overlay{opacity:var(--component-button-opacity-overlay-focus)}ui-button button:focus-visible .button-overlay{opacity:var(--component-button-opacity-overlay-focus-visible)}ui-button button:focus-visible{outline:none}ui-button button:focus-visible .button-overlay-focus{top:calc(var(--component-button-outline-gap) * -1);right:calc(var(--component-button-outline-gap) * -1);bottom:calc(var(--component-button-outline-gap) * -1);left:calc(var(--component-button-outline-gap) * -1);box-shadow:0 0 0 var(--component-button-outline-width) var(--component-button-color-focus-visible);opacity:1;border-radius:calc(var(--component-button-border-radius) + var(--component-button-outline-width))}ui-button button:focus{outline:none}ui-button button.type-primary{background-color:var(--component-button-color-primary-background);border-color:var(--component-button-color-primary-border);color:var(--component-button-color-primary-text)}ui-button button.type-primary .button-overlay{background-color:var(--component-button-color-primary-text)}ui-button button.type-secondary{background-color:var(--component-button-color-secondary-background);border-color:var(--component-button-color-secondary-border);color:var(--component-button-color-secondary-text)}ui-button button.type-secondary .button-overlay{background-color:var(--component-button-color-secondary-text)}ui-button button.type-tertiary{background-color:var(--component-button-color-tertiary-background);border-color:var(--component-button-color-tertiary-border);color:var(--component-button-color-tertiary-text)}ui-button button.type-tertiary .button-overlay{background-color:var(--component-button-color-tertiary-text)}ui-button button.type-primary-inverse{background-color:var(--component-button-color-primary-inverse-background);border-color:var(--component-button-color-primary-inverse-border);color:var(--component-button-color-primary-inverse-text)}ui-button button.type-primary-inverse .button-overlay{background-color:var(--component-button-color-primary-inverse-text)}ui-button button.type-secondary-inverse{background-color:var(--component-button-color-secondary-inverse-background);border-color:var(--component-button-color-secondary-inverse-border);color:var(--component-button-color-secondary-inverse-text)}ui-button button.type-secondary-inverse .button-overlay{background-color:var(--component-button-color-secondary-inverse-text)}ui-button button.type-tertiary-inverse{background-color:var(--component-button-color-tertiary-inverse-background);border-color:var(--component-button-color-tertiary-inverse-border);color:var(--component-button-color-tertiary-inverse-text)}ui-button button.type-tertiary-inverse .button-overlay{background-color:var(--component-button-color-tertiary-inverse-text)}ui-button button.type-expressive{background-color:var(--component-button-color-expressive-background);border-color:var(--component-button-color-expressive-border);color:var(--component-button-color-expressive-text)}ui-button button.type-expressive .button-overlay{background-color:var(--component-button-color-expressive-text)}ui-button button.type-danger{background-color:var(--component-button-color-danger-background);border-color:var(--component-button-color-danger-border);color:var(--component-button-color-danger-text)}ui-button button.type-danger .button-overlay{background-color:var(--component-button-color-danger-text)}ui-button button.type-facebook{background-color:var(--component-button-color-facebook-background);border-color:var(--component-button-color-facebook-border);color:var(--component-button-color-facebook-text)}ui-button button.type-facebook .button-overlay{background-color:var(--component-button-color-facebook-text)}ui-button button.type-paypal{background-color:var(--component-button-color-paypal-background);border-color:var(--component-button-color-paypal-border);color:var(--component-button-color-paypal-text)}ui-button button.type-paypal .button-overlay{background-color:var(--component-button-color-paypal-text)}ui-button button.type-trustpilot{background-color:var(--component-button-color-trustpilot-background);border-color:var(--component-button-color-trustpilot-border);color:var(--component-button-color-trustpilot-text)}ui-button button.type-trustpilot .button-overlay{background-color:var(--component-button-color-trustpilot-text)}ui-button button .buttonIcon{fill:currentColor}ui-button button.size-large{padding:var(--component-button-size-large-padding-y) var(--component-button-size-large-padding-x);border-width:var(--component-button-size-large-border-width);font-size:var(--component-button-size-large-font-size)}ui-button button.size-large .button-content{grid-gap:var(--component-button-size-large-stack-spacing);gap:var(--component-button-size-large-stack-spacing)}ui-button button.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-large-icon-offset-leading) * -1)}ui-button button.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-large-icon-offset-trailing) * -1)}ui-button button.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-large-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-large-icon-offset-icon-only) * -1)}ui-button button.size-small{padding:var(--component-button-size-small-padding-y) var(--component-button-size-small-padding-x);border-width:var(--component-button-size-small-border-width);font-size:var(--component-button-size-small-font-size)}ui-button button.size-small .button-content{grid-gap:var(--component-button-size-small-stack-spacing);gap:var(--component-button-size-small-stack-spacing)}ui-button button.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-small-icon-offset-leading) * -1)}ui-button button.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-small-icon-offset-trailing) * -1)}ui-button button.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-small-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-small-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-large{padding:var(--component-button-size-large-with-outline-padding-y) var(--component-button-size-large-with-outline-padding-x);border-width:var(--component-button-size-large-with-outline-border-width);font-size:var(--component-button-size-large-font-size)}ui-button button.button--outline.size-large .button-content{grid-gap:var(--component-button-size-large-stack-spacing);gap:var(--component-button-size-large-stack-spacing)}ui-button button.button--outline.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-large-with-outline-icon-offset-leading) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-large-with-outline-icon-offset-trailing) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-large-with-outline-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-large-with-outline-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-small{padding:var(--component-button-size-small-with-outline-padding-y) var(--component-button-size-small-with-outline-padding-x);border-width:var(--component-button-size-small-with-outline-border-width);font-size:var(--component-button-size-small-font-size)}ui-button button.button--outline.size-small .button-content{grid-gap:var(--component-button-size-small-stack-spacing);gap:var(--component-button-size-small-stack-spacing)}ui-button button.button--outline.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-small-with-outline-icon-offset-leading) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-small-with-outline-icon-offset-trailing) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-small-with-outline-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-small-with-outline-icon-offset-icon-only) * -1)}ui-button button[disabled]{background-color:var(--component-button-color-disabled-background);border-color:var(--component-button-color-disabled-border);color:var(--component-button-color-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: ["icon_size", "icon_name", "icon_context", "icon_width", "icon_height", "icon_class"] }], 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 });
|
|
200
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonComponent, decorators: [{
|
|
201
|
-
type: i0.Component,
|
|
202
|
-
args: [{
|
|
203
|
-
selector: 'ui-button',
|
|
204
|
-
templateUrl: './button.component.html',
|
|
205
|
-
styleUrls: ['./button.component.scss'],
|
|
206
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
207
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
208
|
-
}]
|
|
209
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { button_icon: [{
|
|
210
|
-
type: i0.Input
|
|
211
|
-
}], button_icon_placement: [{
|
|
212
|
-
type: i0.Input
|
|
213
|
-
}], ngContent: [{
|
|
214
|
-
type: i0.ContentChild,
|
|
215
|
-
args: ['buttontext']
|
|
216
|
-
}], button_size: [{
|
|
217
|
-
type: i0.Input
|
|
218
|
-
}], button_full_width: [{
|
|
219
|
-
type: i0.Input
|
|
220
|
-
}], button_type: [{
|
|
221
|
-
type: i0.Input
|
|
222
|
-
}], button_disabled: [{
|
|
223
|
-
type: i0.Input
|
|
224
|
-
}], href: [{
|
|
225
|
-
type: i0.Input
|
|
226
|
-
}], clicked: [{
|
|
227
|
-
type: i0.Output
|
|
228
|
-
}] } });
|
|
229
|
-
|
|
230
29
|
var LayoutBoxComponent = /** @class */ (function () {
|
|
231
30
|
function LayoutBoxComponent(changes) {
|
|
232
31
|
this.changes = changes;
|
|
@@ -409,54 +208,308 @@
|
|
|
409
208
|
type: i0.Input
|
|
410
209
|
}] } });
|
|
411
210
|
|
|
412
|
-
var
|
|
413
|
-
function
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.prefix = 'ui-layout-grid';
|
|
417
|
-
this.grid_auto = false;
|
|
418
|
-
this.grid_collapse_below = 'tablet';
|
|
419
|
-
this.grid_gap = 'default';
|
|
211
|
+
var TokenService = /** @class */ (function () {
|
|
212
|
+
function TokenService(document) {
|
|
213
|
+
this.document = document;
|
|
214
|
+
this.brandCustomPropertyName = '--utility-brand-name';
|
|
420
215
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
216
|
+
/*
|
|
217
|
+
Get the brand name for the currently enable custom property set (ie. /bloomon/variables.css)
|
|
218
|
+
Because variables are scoped via a selector (ie: ':root .bloomon {}')
|
|
219
|
+
we cannot get brand-specific custom properties programatically
|
|
220
|
+
|
|
221
|
+
Important: Ensure that the component requiring the brand name has locally scoped the custom property:
|
|
222
|
+
| ui-icon {
|
|
223
|
+
| --icon-component-brand: var(--utility-brand-name);
|
|
224
|
+
| }
|
|
225
|
+
*/
|
|
226
|
+
TokenService.prototype.getBrandName = function () {
|
|
227
|
+
return this.getTokenValue(this.brandCustomPropertyName);
|
|
228
|
+
};
|
|
229
|
+
TokenService.prototype.getTokenValue = function (tokenName, element) {
|
|
230
|
+
var rootElement = element || this.document.querySelector('[class*="brand-tokens"]');
|
|
231
|
+
if (!rootElement) {
|
|
232
|
+
return '';
|
|
424
233
|
}
|
|
234
|
+
return this.document.defaultView.getComputedStyle(rootElement)
|
|
235
|
+
.getPropertyValue(tokenName)
|
|
236
|
+
.trim() || '';
|
|
237
|
+
};
|
|
238
|
+
return TokenService;
|
|
239
|
+
}());
|
|
240
|
+
TokenService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, deps: [{ token: i3.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
241
|
+
TokenService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService });
|
|
242
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TokenService, decorators: [{
|
|
243
|
+
type: i0.Injectable
|
|
244
|
+
}], ctorParameters: function () {
|
|
245
|
+
return [{ type: Document, decorators: [{
|
|
246
|
+
type: i0.Inject,
|
|
247
|
+
args: [i3.DOCUMENT]
|
|
248
|
+
}] }];
|
|
249
|
+
} });
|
|
250
|
+
|
|
251
|
+
var IconComponent = /** @class */ (function () {
|
|
252
|
+
function IconComponent(document, tokenService) {
|
|
253
|
+
this.document = document;
|
|
254
|
+
this.tokenService = tokenService;
|
|
255
|
+
this.icon_size = 'large';
|
|
256
|
+
this.icon_context = 'none';
|
|
257
|
+
}
|
|
258
|
+
IconComponent.prototype.convertRemToPixels = function (remString) {
|
|
259
|
+
var remNumber = parseFloat(remString.replace('rem', ''));
|
|
260
|
+
return remNumber * parseFloat(getComputedStyle(this.document.documentElement).fontSize);
|
|
261
|
+
};
|
|
262
|
+
IconComponent.prototype.ngOnChanges = function () {
|
|
425
263
|
this.ngOnInit();
|
|
426
|
-
this.changes.markForCheck();
|
|
427
264
|
};
|
|
428
|
-
|
|
429
|
-
this.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
265
|
+
IconComponent.prototype.ngOnInit = function () {
|
|
266
|
+
this.iconBrandPath = "" + this.tokenService.getBrandName();
|
|
267
|
+
this.size = this.tokenService.getTokenValue("--global-size-icon-" + this.icon_size);
|
|
268
|
+
this.iconDisplayClasses = [
|
|
269
|
+
"icon-context-" + this.icon_context,
|
|
270
|
+
"icon-size-" + this.icon_size
|
|
434
271
|
];
|
|
435
|
-
|
|
272
|
+
var sizeInPixels = this.convertRemToPixels(this.size);
|
|
273
|
+
this.icon_width = sizeInPixels;
|
|
274
|
+
this.icon_height = sizeInPixels;
|
|
436
275
|
};
|
|
437
|
-
return
|
|
276
|
+
return IconComponent;
|
|
438
277
|
}());
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
278
|
+
IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i3.DOCUMENT }, { token: TokenService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
279
|
+
IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "ui-icon", inputs: { icon_size: "icon_size", icon_name: "icon_name", icon_context: "icon_context", icon_width: "icon_width", icon_height: "icon_height", icon_class: "icon_class" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"ui-icon\" [ngClass]=\"iconDisplayClasses\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" [attr.width]=\"icon_width\" [attr.height]=\"icon_height\" [attr.class]=\"icon_class\">\n <use attr.xlink:href=\"./{{iconBrandPath}}/assets/icons/icons.svg#icon-{{icon_name}}\"></use>\n </svg>\n</div>\n", styles: [".ui-icon{display:flex}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
280
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
|
|
442
281
|
type: i0.Component,
|
|
443
282
|
args: [{
|
|
444
|
-
selector: 'ui-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
styleUrls: ['./grid.component.scss'],
|
|
450
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
451
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
283
|
+
selector: 'ui-icon',
|
|
284
|
+
templateUrl: './icon.component.html',
|
|
285
|
+
styleUrls: ['./icon.component.scss'],
|
|
286
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
452
287
|
}]
|
|
453
|
-
}], ctorParameters: function () {
|
|
288
|
+
}], ctorParameters: function () {
|
|
289
|
+
return [{ type: Document, decorators: [{
|
|
290
|
+
type: i0.Inject,
|
|
291
|
+
args: [i3.DOCUMENT]
|
|
292
|
+
}] }, { type: TokenService }];
|
|
293
|
+
}, propDecorators: { icon_size: [{
|
|
454
294
|
type: i0.Input
|
|
455
|
-
}],
|
|
295
|
+
}], icon_name: [{
|
|
456
296
|
type: i0.Input
|
|
457
|
-
}],
|
|
297
|
+
}], icon_context: [{
|
|
298
|
+
type: i0.Input
|
|
299
|
+
}], icon_width: [{
|
|
300
|
+
type: i0.Input
|
|
301
|
+
}], icon_height: [{
|
|
302
|
+
type: i0.Input
|
|
303
|
+
}], icon_class: [{
|
|
304
|
+
type: i0.Input
|
|
305
|
+
}] } });
|
|
306
|
+
|
|
307
|
+
var OasysButtonComponent = /** @class */ (function () {
|
|
308
|
+
function OasysButtonComponent(changes) {
|
|
309
|
+
this.changes = changes;
|
|
310
|
+
this.button_icon_placement = 'leading';
|
|
311
|
+
// Button Stylings
|
|
312
|
+
this.button_size = 'large';
|
|
313
|
+
this.button_full_width = false;
|
|
314
|
+
this.button_type = 'primary';
|
|
315
|
+
this.button_disabled = false;
|
|
316
|
+
// Button Actions
|
|
317
|
+
this.href = '';
|
|
318
|
+
this.clicked = new i0.EventEmitter();
|
|
319
|
+
this.iconContext = 'none';
|
|
320
|
+
this.outlineButtonTypes = ['secondary', 'secondary-inverse'];
|
|
321
|
+
}
|
|
322
|
+
OasysButtonComponent.prototype.onClick = function () {
|
|
323
|
+
this.clicked.emit();
|
|
324
|
+
};
|
|
325
|
+
OasysButtonComponent.prototype.createButton = function () {
|
|
326
|
+
return {
|
|
327
|
+
buttonIcon: this.button_icon,
|
|
328
|
+
buttonIconPlacement: this.button_icon_placement,
|
|
329
|
+
buttonType: this.button_type,
|
|
330
|
+
buttonSize: this.button_size,
|
|
331
|
+
buttonDisabled: this.button_disabled,
|
|
332
|
+
href: this.href,
|
|
333
|
+
target: '',
|
|
334
|
+
buttonDisplayClasses: [
|
|
335
|
+
"type-" + this.button_type,
|
|
336
|
+
"size-" + this.button_size,
|
|
337
|
+
"" + (this.button_icon ? 'button--has-icon' : ''),
|
|
338
|
+
"" + (this.button_full_width ? 'button--full-width' : ''),
|
|
339
|
+
"" + (this.button_icon ? 'button--icon--' + this.button_icon_placement : ''),
|
|
340
|
+
"" + (this.outlineButtonTypes.indexOf(this.button_type) !== -1 ? 'button--outline' : '')
|
|
341
|
+
].filter(function (d) { return !!d; })
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
OasysButtonComponent.prototype.ngAfterViewInit = function () {
|
|
345
|
+
var _a, _b;
|
|
346
|
+
if ((_b = (_a = this.ngContent) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.innerText) {
|
|
347
|
+
this.accessibleButtonContent = this.ngContent.nativeElement.innerText;
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
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 ");
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
OasysButtonComponent.prototype.ngOnChanges = function () {
|
|
354
|
+
this.button = this.createButton();
|
|
355
|
+
this.changes.markForCheck();
|
|
356
|
+
};
|
|
357
|
+
OasysButtonComponent.prototype.ngOnInit = function () {
|
|
358
|
+
this.button = this.createButton();
|
|
359
|
+
};
|
|
360
|
+
return OasysButtonComponent;
|
|
361
|
+
}());
|
|
362
|
+
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 });
|
|
363
|
+
OasysButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OasysButtonComponent, selector: "ui-button", inputs: { button_icon: "button_icon", button_icon_placement: "button_icon_placement", button_size: "button_size", button_full_width: "button_full_width", button_type: "button_type", button_disabled: "button_disabled", href: "href" }, outputs: { clicked: "clicked" }, queries: [{ propertyName: "ngContent", 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 [attr.title]=\"accessibleButtonContent\"\n role=\"button\">\n <div class=\"button-content\">\n <ui-icon *ngIf=\"button.buttonIcon && button.buttonIconPlacement !== 'none'\" [icon_name]=\"button.buttonIcon\" [icon_size]=\"button.buttonSize\" [icon_class]=\"'buttonIcon'\" [icon_context]=\"button.buttonIconPlacement\"></ui-icon>\n <span class=\"ui-text\" [ngClass]=\"{'visuallyhidden': button.buttonIconPlacement === 'iconOnly'}\">\n <ng-content></ng-content>\n </span>\n </div>\n <div class=\"button-overlay\"></div>\n <div class=\"button-overlay-focus\"></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-button-border-radius);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;max-height:var(--component-button-line-height)}ui-button button .button-content .ui-text{text-transform:var(--component-button-text-transform);letter-spacing:var(--component-button-letter-spacing);font-weight:var(--component-button-font-weight);line-height:var(--component-button-line-height)}ui-button button .button-overlay,ui-button button .button-overlay-focus{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;pointer-events:none;border-radius:var(--component-button-border-radius);opacity:0}ui-button button:hover .button-overlay{opacity:var(--component-button-opacity-overlay-hover)}ui-button button:focus .button-overlay{opacity:var(--component-button-opacity-overlay-focus)}ui-button button:focus-visible .button-overlay{opacity:var(--component-button-opacity-overlay-focus-visible)}ui-button button:focus-visible{outline:none}ui-button button:focus-visible .button-overlay-focus{top:calc(var(--component-button-outline-gap) * -1);right:calc(var(--component-button-outline-gap) * -1);bottom:calc(var(--component-button-outline-gap) * -1);left:calc(var(--component-button-outline-gap) * -1);box-shadow:0 0 0 var(--component-button-outline-width) var(--component-button-color-focus-visible);opacity:1;border-radius:calc(var(--component-button-border-radius) + var(--component-button-outline-width))}ui-button button:focus{outline:none}ui-button button.type-primary{background-color:var(--component-button-color-primary-background);border-color:var(--component-button-color-primary-border);color:var(--component-button-color-primary-text)}ui-button button.type-primary .button-overlay{background-color:var(--component-button-color-primary-text)}ui-button button.type-secondary{background-color:var(--component-button-color-secondary-background);border-color:var(--component-button-color-secondary-border);color:var(--component-button-color-secondary-text)}ui-button button.type-secondary .button-overlay{background-color:var(--component-button-color-secondary-text)}ui-button button.type-tertiary{background-color:var(--component-button-color-tertiary-background);border-color:var(--component-button-color-tertiary-border);color:var(--component-button-color-tertiary-text)}ui-button button.type-tertiary .button-overlay{background-color:var(--component-button-color-tertiary-text)}ui-button button.type-primary-inverse{background-color:var(--component-button-color-primary-inverse-background);border-color:var(--component-button-color-primary-inverse-border);color:var(--component-button-color-primary-inverse-text)}ui-button button.type-primary-inverse .button-overlay{background-color:var(--component-button-color-primary-inverse-text)}ui-button button.type-secondary-inverse{background-color:var(--component-button-color-secondary-inverse-background);border-color:var(--component-button-color-secondary-inverse-border);color:var(--component-button-color-secondary-inverse-text)}ui-button button.type-secondary-inverse .button-overlay{background-color:var(--component-button-color-secondary-inverse-text)}ui-button button.type-tertiary-inverse{background-color:var(--component-button-color-tertiary-inverse-background);border-color:var(--component-button-color-tertiary-inverse-border);color:var(--component-button-color-tertiary-inverse-text)}ui-button button.type-tertiary-inverse .button-overlay{background-color:var(--component-button-color-tertiary-inverse-text)}ui-button button.type-expressive{background-color:var(--component-button-color-expressive-background);border-color:var(--component-button-color-expressive-border);color:var(--component-button-color-expressive-text)}ui-button button.type-expressive .button-overlay{background-color:var(--component-button-color-expressive-text)}ui-button button.type-danger{background-color:var(--component-button-color-danger-background);border-color:var(--component-button-color-danger-border);color:var(--component-button-color-danger-text)}ui-button button.type-danger .button-overlay{background-color:var(--component-button-color-danger-text)}ui-button button.type-facebook{background-color:var(--component-button-color-facebook-background);border-color:var(--component-button-color-facebook-border);color:var(--component-button-color-facebook-text)}ui-button button.type-facebook .button-overlay{background-color:var(--component-button-color-facebook-text)}ui-button button.type-paypal{background-color:var(--component-button-color-paypal-background);border-color:var(--component-button-color-paypal-border);color:var(--component-button-color-paypal-text)}ui-button button.type-paypal .button-overlay{background-color:var(--component-button-color-paypal-text)}ui-button button.type-trustpilot{background-color:var(--component-button-color-trustpilot-background);border-color:var(--component-button-color-trustpilot-border);color:var(--component-button-color-trustpilot-text)}ui-button button.type-trustpilot .button-overlay{background-color:var(--component-button-color-trustpilot-text)}ui-button button .buttonIcon{fill:currentColor}ui-button button.size-large{padding:var(--component-button-size-large-padding-y) var(--component-button-size-large-padding-x);border-width:var(--component-button-size-large-border-width);font-size:var(--component-button-size-large-font-size)}ui-button button.size-large .button-content{grid-gap:var(--component-button-size-large-stack-spacing);gap:var(--component-button-size-large-stack-spacing)}ui-button button.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-large-icon-offset-leading) * -1)}ui-button button.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-large-icon-offset-trailing) * -1)}ui-button button.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-large-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-large-icon-offset-icon-only) * -1)}ui-button button.size-small{padding:var(--component-button-size-small-padding-y) var(--component-button-size-small-padding-x);border-width:var(--component-button-size-small-border-width);font-size:var(--component-button-size-small-font-size)}ui-button button.size-small .button-content{grid-gap:var(--component-button-size-small-stack-spacing);gap:var(--component-button-size-small-stack-spacing)}ui-button button.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-small-icon-offset-leading) * -1)}ui-button button.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-small-icon-offset-trailing) * -1)}ui-button button.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-small-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-small-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-large{padding:var(--component-button-size-large-with-outline-padding-y) var(--component-button-size-large-with-outline-padding-x);border-width:var(--component-button-size-large-with-outline-border-width);font-size:var(--component-button-size-large-font-size)}ui-button button.button--outline.size-large .button-content{grid-gap:var(--component-button-size-large-stack-spacing);gap:var(--component-button-size-large-stack-spacing)}ui-button button.button--outline.size-large .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-large-with-outline-icon-offset-leading) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-large-with-outline-icon-offset-trailing) * -1)}ui-button button.button--outline.size-large .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-large-with-outline-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-large-with-outline-icon-offset-icon-only) * -1)}ui-button button.button--outline.size-small{padding:var(--component-button-size-small-with-outline-padding-y) var(--component-button-size-small-with-outline-padding-x);border-width:var(--component-button-size-small-with-outline-border-width);font-size:var(--component-button-size-small-font-size)}ui-button button.button--outline.size-small .button-content{grid-gap:var(--component-button-size-small-stack-spacing);gap:var(--component-button-size-small-stack-spacing)}ui-button button.button--outline.size-small .ui-icon.icon-context-leading{margin-left:calc(var(--component-button-size-small-with-outline-icon-offset-leading) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-trailing{margin-right:calc(var(--component-button-size-small-with-outline-icon-offset-trailing) * -1)}ui-button button.button--outline.size-small .ui-icon.icon-context-iconOnly{margin-left:calc(var(--component-button-size-small-with-outline-icon-offset-icon-only) * -1);margin-right:calc(var(--component-button-size-small-with-outline-icon-offset-icon-only) * -1)}ui-button button[disabled]{background-color:var(--component-button-color-disabled-background);border-color:var(--component-button-color-disabled-border);color:var(--component-button-color-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: ["icon_size", "icon_name", "icon_context", "icon_width", "icon_height", "icon_class"] }], 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 });
|
|
364
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonComponent, decorators: [{
|
|
365
|
+
type: i0.Component,
|
|
366
|
+
args: [{
|
|
367
|
+
selector: 'ui-button',
|
|
368
|
+
templateUrl: './button.component.html',
|
|
369
|
+
styleUrls: ['./button.component.scss'],
|
|
370
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
371
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
372
|
+
}]
|
|
373
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { button_icon: [{
|
|
374
|
+
type: i0.Input
|
|
375
|
+
}], button_icon_placement: [{
|
|
376
|
+
type: i0.Input
|
|
377
|
+
}], ngContent: [{
|
|
378
|
+
type: i0.ContentChild,
|
|
379
|
+
args: ['buttontext']
|
|
380
|
+
}], button_size: [{
|
|
381
|
+
type: i0.Input
|
|
382
|
+
}], button_full_width: [{
|
|
383
|
+
type: i0.Input
|
|
384
|
+
}], button_type: [{
|
|
385
|
+
type: i0.Input
|
|
386
|
+
}], button_disabled: [{
|
|
387
|
+
type: i0.Input
|
|
388
|
+
}], href: [{
|
|
389
|
+
type: i0.Input
|
|
390
|
+
}], clicked: [{
|
|
391
|
+
type: i0.Output
|
|
392
|
+
}] } });
|
|
393
|
+
|
|
394
|
+
var BreadcrumbsComponent = /** @class */ (function () {
|
|
395
|
+
function BreadcrumbsComponent() {
|
|
396
|
+
}
|
|
397
|
+
BreadcrumbsComponent.prototype.ngOnInit = function () {
|
|
398
|
+
var _a;
|
|
399
|
+
if (typeof this.breadcrumbs_values === 'string') {
|
|
400
|
+
this.values = (_a = JSON.parse(this.breadcrumbs_values)) !== null && _a !== void 0 ? _a : [];
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
this.values = this.breadcrumbs_values;
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
return BreadcrumbsComponent;
|
|
407
|
+
}());
|
|
408
|
+
BreadcrumbsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BreadcrumbsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
409
|
+
BreadcrumbsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadcrumbsComponent, selector: "ui-breadcrumbs", inputs: { breadcrumbs_values: "breadcrumbs_values" }, ngImport: i0__namespace, template: "<ui-box box_fill_mode=\"fill\" box_space=\"near\" box_background=\"core-secondary\" *ngIf=\"values\">\n <nav aria-label=\"breadcrumbs\">\n <ui-stack stack_gap=\"none\" stack_direction=\"x\" stack_align=\"center\" stack_wrap=\"true\">\n <ng-container *ngFor=\"let item of values; let i = index\">\n <!-- Link followed by an icon -->\n <ui-box box_space=\"none\" box_background=\"none\" box_fill_mode=\"fit\">\n <ui-stack stack_direction=\"x\" stack_align=\"center\" stack_wrap=\"false\" stack_gap=\"none\">\n <ui-button *ngIf=\"i<values.length-1\" button_size=\"small\" button_type=\"tertiary\" button_full_width=\"true\" href=\"{{item.href}}\"> \n <span #buttontext> {{item.name}} </span>\n </ui-button> \n <ui-icon *ngIf=\"i<values.length-1\" icon_name=\"chevron-right\" icon_size=\"small\" icon_class=\"buttonIcon\" aria-hidden=\"true\"></ui-icon>\n </ui-stack>\n </ui-box>\n <!-- Last link and current page -->\n <ui-button *ngIf=\"i===values.length-1\" button_size=\"small\" button_type=\"tertiary\" button_full_width=\"true\" href=\"{{item.href}}\" [attr.aria-current]=\"item.name\"> \n <span #buttontext> {{item.name}} </span>\n </ui-button> \n </ng-container>\n </ui-stack>\n </nav>\n</ui-box>\n", styles: ["ui-breadcrumbs{display:contents}ui-breadcrumbs nav{display:block}\n"], components: [{ type: LayoutBoxComponent, selector: "ui-box", inputs: ["box_space", "box_space_top", "box_space_right", "box_space_bottom", "box_space_left", "box_align_x", "box_align_y", "box_fill_mode", "box_background"] }, { type: LayoutStackComponent, selector: "ui-stack", inputs: ["stack_gap", "stack_align", "stack_direction", "stack_distribute", "stack_wrap"] }, { type: OasysButtonComponent, selector: "ui-button", inputs: ["button_icon", "button_icon_placement", "button_size", "button_full_width", "button_type", "button_disabled", "href"], outputs: ["clicked"] }, { type: IconComponent, selector: "ui-icon", inputs: ["icon_size", "icon_name", "icon_context", "icon_width", "icon_height", "icon_class"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
410
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BreadcrumbsComponent, decorators: [{
|
|
411
|
+
type: i0.Component,
|
|
412
|
+
args: [{
|
|
413
|
+
selector: 'ui-breadcrumbs',
|
|
414
|
+
templateUrl: './breadcrumbs.component.html',
|
|
415
|
+
styleUrls: ['./breadcrumbs.component.scss'],
|
|
416
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
417
|
+
}]
|
|
418
|
+
}], ctorParameters: function () { return []; }, propDecorators: { breadcrumbs_values: [{
|
|
419
|
+
type: i0.Input
|
|
420
|
+
}] } });
|
|
421
|
+
|
|
422
|
+
var OasysIconModule = /** @class */ (function () {
|
|
423
|
+
function OasysIconModule() {
|
|
424
|
+
}
|
|
425
|
+
return OasysIconModule;
|
|
426
|
+
}());
|
|
427
|
+
OasysIconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysIconModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
428
|
+
OasysIconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysIconModule, declarations: [IconComponent], imports: [i3.CommonModule], exports: [IconComponent] });
|
|
429
|
+
OasysIconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysIconModule, providers: [TokenService], imports: [[i3.CommonModule]] });
|
|
430
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysIconModule, decorators: [{
|
|
431
|
+
type: i0.NgModule,
|
|
432
|
+
args: [{
|
|
433
|
+
declarations: [IconComponent],
|
|
434
|
+
imports: [i3.CommonModule],
|
|
435
|
+
exports: [IconComponent],
|
|
436
|
+
providers: [TokenService],
|
|
437
|
+
}]
|
|
438
|
+
}] });
|
|
439
|
+
|
|
440
|
+
var OasysButtonModule = /** @class */ (function () {
|
|
441
|
+
function OasysButtonModule() {
|
|
442
|
+
}
|
|
443
|
+
return OasysButtonModule;
|
|
444
|
+
}());
|
|
445
|
+
OasysButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
446
|
+
OasysButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonModule, declarations: [OasysButtonComponent], imports: [i3.CommonModule, i2.RouterModule, OasysIconModule], exports: [OasysButtonComponent] });
|
|
447
|
+
OasysButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonModule, imports: [[i3.CommonModule, i2.RouterModule, OasysIconModule]] });
|
|
448
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysButtonModule, decorators: [{
|
|
449
|
+
type: i0.NgModule,
|
|
450
|
+
args: [{
|
|
451
|
+
declarations: [OasysButtonComponent],
|
|
452
|
+
imports: [i3.CommonModule, i2.RouterModule, OasysIconModule],
|
|
453
|
+
exports: [OasysButtonComponent],
|
|
454
|
+
}]
|
|
455
|
+
}] });
|
|
456
|
+
|
|
457
|
+
var LayoutContainerComponent = /** @class */ (function () {
|
|
458
|
+
function LayoutContainerComponent(changes, tokenService) {
|
|
459
|
+
this.changes = changes;
|
|
460
|
+
this.tokenService = tokenService;
|
|
461
|
+
this.container_fluid = false;
|
|
462
|
+
this.container_gutter = true;
|
|
463
|
+
this.prefix = 'ui-layout-container';
|
|
464
|
+
}
|
|
465
|
+
LayoutContainerComponent.prototype.ngOnChanges = function () {
|
|
466
|
+
this.ngOnInit();
|
|
467
|
+
this.changes.markForCheck();
|
|
468
|
+
};
|
|
469
|
+
LayoutContainerComponent.prototype.ngOnInit = function () {
|
|
470
|
+
if (this.container_gutter) {
|
|
471
|
+
this.containerGutterNameSmall = this.tokenService.getTokenValue('--semantic-spacing-container-gutter-box-name-small');
|
|
472
|
+
this.containerGutterNameLarge = this.tokenService.getTokenValue('--semantic-spacing-container-gutter-box-name-large');
|
|
473
|
+
this.containerHorizontalSizes = {
|
|
474
|
+
desktop: this.containerGutterNameLarge,
|
|
475
|
+
tablet: this.containerGutterNameLarge,
|
|
476
|
+
mobile: this.containerGutterNameSmall
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
this.containerHorizontalSizes = {
|
|
481
|
+
desktop: 'none',
|
|
482
|
+
tablet: 'none',
|
|
483
|
+
mobile: 'none'
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
this.containerLayoutClasses = [
|
|
487
|
+
this.prefix,
|
|
488
|
+
this.prefix + "-" + (this.container_fluid ? 'fluid' : '')
|
|
489
|
+
];
|
|
490
|
+
};
|
|
491
|
+
return LayoutContainerComponent;
|
|
492
|
+
}());
|
|
493
|
+
LayoutContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutContainerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: TokenService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
494
|
+
LayoutContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutContainerComponent, selector: "ui-container", inputs: { container_fluid: "container_fluid", container_gutter: "container_gutter" }, host: { properties: { "class": "containerLayoutClasses" } }, usesOnChanges: true, ngImport: i0__namespace, template: "\n <ui-box\n [box_space_right]=\"containerHorizontalSizes\"\n [box_space_left]=\"containerHorizontalSizes\"\n box_space_top=\"none\"\n box_space_bottom=\"none\"\n box_background=\"none\">\n\n <ng-content></ng-content>\n\n </ui-box>\n ", isInline: true, styles: ["ui-container{--container-component-gutter-size: var(--semantic-spacing-container-gutter-size-small);display:block;width:100%;max-width:1440px;margin:0 auto}@media only screen and (max-width: 767px){ui-container{--container-component-gutter-size: var(--semantic-spacing-container-gutter-size-small)}}@media only screen and (min-width: 768px){ui-container{--container-component-gutter-size: var(--semantic-spacing-container-gutter-size-small)}}@media only screen and (min-width: 1080px){ui-container{--container-component-gutter-size: var(--semantic-spacing-container-gutter-size-large)}}@media only screen and (min-width: 1440px){ui-container{--container-component-gutter-size: var(--semantic-spacing-container-gutter-size-large)}}@media only screen and (max-width: 767px){ui-container{max-width:100%}}@media only screen and (min-width: 768px){ui-container{max-width:calc(767px - var(--container-component-gutter-size))}}@media only screen and (min-width: 1080px){ui-container{max-width:calc(1080px - var(--container-component-gutter-size))}}@media only screen and (min-width: 1440px){ui-container{max-width:calc(1440px - var(--container-component-gutter-size))}}ui-container.ui-layout-container-fluid{max-width:100%}\n"], components: [{ type: LayoutBoxComponent, selector: "ui-box", inputs: ["box_space", "box_space_top", "box_space_right", "box_space_bottom", "box_space_left", "box_align_x", "box_align_y", "box_fill_mode", "box_background"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
495
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutContainerComponent, decorators: [{
|
|
496
|
+
type: i0.Component,
|
|
497
|
+
args: [{
|
|
498
|
+
selector: 'ui-container',
|
|
499
|
+
template: "\n <ui-box\n [box_space_right]=\"containerHorizontalSizes\"\n [box_space_left]=\"containerHorizontalSizes\"\n box_space_top=\"none\"\n box_space_bottom=\"none\"\n box_background=\"none\">\n\n <ng-content></ng-content>\n\n </ui-box>\n ",
|
|
500
|
+
host: {
|
|
501
|
+
'[class]': 'containerLayoutClasses'
|
|
502
|
+
},
|
|
503
|
+
styleUrls: ['./container.component.scss'],
|
|
504
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
505
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
506
|
+
}]
|
|
507
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: TokenService }]; }, propDecorators: { container_fluid: [{
|
|
508
|
+
type: i0.Input
|
|
509
|
+
}], container_gutter: [{
|
|
458
510
|
type: i0.Input
|
|
459
511
|
}] } });
|
|
512
|
+
|
|
460
513
|
var LayoutGridColumnComponent = /** @class */ (function () {
|
|
461
514
|
function LayoutGridColumnComponent(changes) {
|
|
462
515
|
this.changes = changes;
|
|
@@ -483,92 +536,259 @@
|
|
|
483
536
|
if (!this.didFirstInit) {
|
|
484
537
|
return;
|
|
485
538
|
}
|
|
486
|
-
this.ngOnInit();
|
|
487
|
-
this.changes.markForCheck();
|
|
488
|
-
};
|
|
489
|
-
LayoutGridColumnComponent.prototype.ngOnInit = function () {
|
|
490
|
-
this.columnLayoutClasses = [
|
|
491
|
-
this.prefix,
|
|
492
|
-
this.getSizeClasses(this.columns)
|
|
493
|
-
].flat(10).filter(Boolean);
|
|
494
|
-
this.didFirstInit = true;
|
|
539
|
+
this.ngOnInit();
|
|
540
|
+
this.changes.markForCheck();
|
|
541
|
+
};
|
|
542
|
+
LayoutGridColumnComponent.prototype.ngOnInit = function () {
|
|
543
|
+
this.columnLayoutClasses = [
|
|
544
|
+
this.prefix,
|
|
545
|
+
this.getSizeClasses(this.columns)
|
|
546
|
+
].flat(10).filter(Boolean);
|
|
547
|
+
this.didFirstInit = true;
|
|
548
|
+
};
|
|
549
|
+
return LayoutGridColumnComponent;
|
|
550
|
+
}());
|
|
551
|
+
LayoutGridColumnComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutGridColumnComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
552
|
+
LayoutGridColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutGridColumnComponent, selector: "ui-column", inputs: { columns: "columns" }, host: { properties: { "class": "columnLayoutClasses" } }, usesOnChanges: true, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: ["ui-grid{width:100%}ui-grid.ui-layout-grid-default{grid-gap:var(--semantic-spacing-grid-default);gap:var(--semantic-spacing-grid-default)}ui-grid.ui-layout-grid-none{grid-gap:var(--semantic-spacing-grid-none);gap:var(--semantic-spacing-grid-none)}ui-grid.ui-layout-grid-width-auto{display:flex;flex-wrap:nowrap}ui-grid.ui-layout-grid-width-auto ui-column{flex:1 1 0}ui-grid:not(.ui-layout-grid-width-auto){display:grid;grid-template-columns:repeat(12,1fr)}ui-grid:not(.ui-layout-grid-width-auto) ui-column{grid-column:span 12}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-12{grid-column:span 12}@media only screen and (max-width: 767px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-12{grid-column:span 12}}@media only screen and (min-width: 768px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-12{grid-column:span 12}}@media only screen and (min-width: 1080px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-12{grid-column:span 12}}@media only screen and (min-width: 1440px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-12{grid-column:span 12}}@media only screen and (max-width: 767px){ui-grid.ui-layout-grid-collapse-below-tablet{display:flex;flex-direction:column}}@media only screen and (max-width: 1079px){ui-grid.ui-layout-grid-collapse-below-laptop{display:flex;flex-direction:column}}@media only screen and (max-width: 1439px){ui-grid.ui-layout-grid-collapse-below-desktop{display:flex;flex-direction:column}}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
553
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutGridColumnComponent, decorators: [{
|
|
554
|
+
type: i0.Component,
|
|
555
|
+
args: [{
|
|
556
|
+
selector: 'ui-column',
|
|
557
|
+
template: '<ng-content></ng-content>',
|
|
558
|
+
host: {
|
|
559
|
+
'[class]': 'columnLayoutClasses'
|
|
560
|
+
},
|
|
561
|
+
styleUrls: ['./grid.component.scss'],
|
|
562
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
563
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
564
|
+
}]
|
|
565
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { columns: [{
|
|
566
|
+
type: i0.Input
|
|
567
|
+
}] } });
|
|
568
|
+
|
|
569
|
+
var LayoutGridComponent = /** @class */ (function () {
|
|
570
|
+
function LayoutGridComponent(changes) {
|
|
571
|
+
this.changes = changes;
|
|
572
|
+
this.didFirstInit = false;
|
|
573
|
+
this.prefix = 'ui-layout-grid';
|
|
574
|
+
this.grid_auto = false;
|
|
575
|
+
this.grid_collapse_below = 'tablet';
|
|
576
|
+
this.grid_gap = 'default';
|
|
577
|
+
}
|
|
578
|
+
LayoutGridComponent.prototype.ngOnChanges = function () {
|
|
579
|
+
if (!this.didFirstInit) {
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
this.ngOnInit();
|
|
583
|
+
this.changes.markForCheck();
|
|
584
|
+
};
|
|
585
|
+
LayoutGridComponent.prototype.ngOnInit = function () {
|
|
586
|
+
this.gridLayoutClasses = [
|
|
587
|
+
this.prefix,
|
|
588
|
+
this.prefix + "-" + this.grid_gap,
|
|
589
|
+
this.prefix + "-" + (this.grid_auto ? 'width-auto' : ''),
|
|
590
|
+
this.prefix + "-collapse-below-" + this.grid_collapse_below,
|
|
591
|
+
];
|
|
592
|
+
this.didFirstInit = true;
|
|
593
|
+
};
|
|
594
|
+
return LayoutGridComponent;
|
|
595
|
+
}());
|
|
596
|
+
LayoutGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutGridComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
597
|
+
LayoutGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayoutGridComponent, selector: "ui-grid", inputs: { grid_auto: "grid_auto", grid_collapse_below: "grid_collapse_below", grid_gap: "grid_gap" }, host: { properties: { "class": "gridLayoutClasses" } }, usesOnChanges: true, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: ["ui-grid{width:100%}ui-grid.ui-layout-grid-default{grid-gap:var(--semantic-spacing-grid-default);gap:var(--semantic-spacing-grid-default)}ui-grid.ui-layout-grid-none{grid-gap:var(--semantic-spacing-grid-none);gap:var(--semantic-spacing-grid-none)}ui-grid.ui-layout-grid-width-auto{display:flex;flex-wrap:nowrap}ui-grid.ui-layout-grid-width-auto ui-column{flex:1 1 0}ui-grid:not(.ui-layout-grid-width-auto){display:grid;grid-template-columns:repeat(12,1fr)}ui-grid:not(.ui-layout-grid-width-auto) ui-column{grid-column:span 12}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-col-12{grid-column:span 12}@media only screen and (max-width: 767px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-mobile-12{grid-column:span 12}}@media only screen and (min-width: 768px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-tablet-12{grid-column:span 12}}@media only screen and (min-width: 1080px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-laptop-12{grid-column:span 12}}@media only screen and (min-width: 1440px){ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-1{grid-column:span 1}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-2{grid-column:span 2}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-3{grid-column:span 3}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-4{grid-column:span 4}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-5{grid-column:span 5}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-6{grid-column:span 6}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-7{grid-column:span 7}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-8{grid-column:span 8}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-9{grid-column:span 9}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-10{grid-column:span 10}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-11{grid-column:span 11}ui-grid:not(.ui-layout-grid-width-auto) ui-column.ui-layout-column-desktop-12{grid-column:span 12}}@media only screen and (max-width: 767px){ui-grid.ui-layout-grid-collapse-below-tablet{display:flex;flex-direction:column}}@media only screen and (max-width: 1079px){ui-grid.ui-layout-grid-collapse-below-laptop{display:flex;flex-direction:column}}@media only screen and (max-width: 1439px){ui-grid.ui-layout-grid-collapse-below-desktop{display:flex;flex-direction:column}}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
598
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LayoutGridComponent, decorators: [{
|
|
599
|
+
type: i0.Component,
|
|
600
|
+
args: [{
|
|
601
|
+
selector: 'ui-grid',
|
|
602
|
+
template: '<ng-content></ng-content>',
|
|
603
|
+
host: {
|
|
604
|
+
'[class]': 'gridLayoutClasses'
|
|
605
|
+
},
|
|
606
|
+
styleUrls: ['./grid.component.scss'],
|
|
607
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
608
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
609
|
+
}]
|
|
610
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { grid_auto: [{
|
|
611
|
+
type: i0.Input
|
|
612
|
+
}], grid_collapse_below: [{
|
|
613
|
+
type: i0.Input
|
|
614
|
+
}], grid_gap: [{
|
|
615
|
+
type: i0.Input
|
|
616
|
+
}] } });
|
|
617
|
+
|
|
618
|
+
var OasysLayoutModule = /** @class */ (function () {
|
|
619
|
+
function OasysLayoutModule() {
|
|
620
|
+
}
|
|
621
|
+
return OasysLayoutModule;
|
|
622
|
+
}());
|
|
623
|
+
OasysLayoutModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLayoutModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
624
|
+
OasysLayoutModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLayoutModule, declarations: [LayoutBoxComponent,
|
|
625
|
+
LayoutContainerComponent,
|
|
626
|
+
LayoutGridComponent,
|
|
627
|
+
LayoutGridColumnComponent,
|
|
628
|
+
LayoutStackComponent], exports: [LayoutBoxComponent,
|
|
629
|
+
LayoutContainerComponent,
|
|
630
|
+
LayoutGridComponent,
|
|
631
|
+
LayoutGridColumnComponent,
|
|
632
|
+
LayoutStackComponent] });
|
|
633
|
+
OasysLayoutModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLayoutModule, providers: [TokenService] });
|
|
634
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLayoutModule, decorators: [{
|
|
635
|
+
type: i0.NgModule,
|
|
636
|
+
args: [{
|
|
637
|
+
declarations: [
|
|
638
|
+
LayoutBoxComponent,
|
|
639
|
+
LayoutContainerComponent,
|
|
640
|
+
LayoutGridComponent,
|
|
641
|
+
LayoutGridColumnComponent,
|
|
642
|
+
LayoutStackComponent,
|
|
643
|
+
],
|
|
644
|
+
exports: [
|
|
645
|
+
LayoutBoxComponent,
|
|
646
|
+
LayoutContainerComponent,
|
|
647
|
+
LayoutGridComponent,
|
|
648
|
+
LayoutGridColumnComponent,
|
|
649
|
+
LayoutStackComponent,
|
|
650
|
+
],
|
|
651
|
+
providers: [TokenService],
|
|
652
|
+
}]
|
|
653
|
+
}] });
|
|
654
|
+
|
|
655
|
+
var OasysBreadcrumbModule = /** @class */ (function () {
|
|
656
|
+
function OasysBreadcrumbModule() {
|
|
657
|
+
}
|
|
658
|
+
return OasysBreadcrumbModule;
|
|
659
|
+
}());
|
|
660
|
+
OasysBreadcrumbModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysBreadcrumbModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
661
|
+
OasysBreadcrumbModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysBreadcrumbModule, declarations: [BreadcrumbsComponent], imports: [i3.CommonModule, OasysButtonModule, OasysIconModule, OasysLayoutModule], exports: [BreadcrumbsComponent] });
|
|
662
|
+
OasysBreadcrumbModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysBreadcrumbModule, imports: [[i3.CommonModule, OasysButtonModule, OasysIconModule, OasysLayoutModule]] });
|
|
663
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysBreadcrumbModule, decorators: [{
|
|
664
|
+
type: i0.NgModule,
|
|
665
|
+
args: [{
|
|
666
|
+
declarations: [BreadcrumbsComponent],
|
|
667
|
+
imports: [i3.CommonModule, OasysButtonModule, OasysIconModule, OasysLayoutModule],
|
|
668
|
+
exports: [BreadcrumbsComponent],
|
|
669
|
+
}]
|
|
670
|
+
}] });
|
|
671
|
+
|
|
672
|
+
var CardComponent = /** @class */ (function () {
|
|
673
|
+
function CardComponent(tokenService) {
|
|
674
|
+
this.tokenService = tokenService;
|
|
675
|
+
}
|
|
676
|
+
CardComponent.prototype.ngOnInit = function () {
|
|
677
|
+
this.aspectRatio = this.setImageAspectRatio(this.image_format);
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* This function retrieves the appropriate design token value based on the passed imageFormat choice
|
|
681
|
+
*
|
|
682
|
+
* @param format - The format of the image e.g. square, portrait, landscape
|
|
683
|
+
* @returns - string to be used as the aspect ratio
|
|
684
|
+
*/
|
|
685
|
+
CardComponent.prototype.setImageAspectRatio = function (format) {
|
|
686
|
+
switch (format) {
|
|
687
|
+
case 'square':
|
|
688
|
+
return this.tokenService.getTokenValue('--component-card-aspect-ratio-square');
|
|
689
|
+
case 'portrait':
|
|
690
|
+
return this.tokenService.getTokenValue('--component-card-aspect-ratio-portrait');
|
|
691
|
+
case 'landscape':
|
|
692
|
+
return this.tokenService.getTokenValue('--component-card-aspect-ratio-landscape');
|
|
693
|
+
default:
|
|
694
|
+
return this.tokenService.getTokenValue('--component-card-aspect-ratio-portrait');
|
|
695
|
+
}
|
|
495
696
|
};
|
|
496
|
-
return
|
|
697
|
+
return CardComponent;
|
|
497
698
|
}());
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
699
|
+
CardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CardComponent, deps: [{ token: TokenService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
700
|
+
CardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CardComponent, selector: "ui-card", inputs: { card_link: "card_link", label_text: "label_text", image: "image", alt_text: "alt_text", image_format: "image_format", small_title_left: "small_title_left", small_sub_title_right: "small_sub_title_right", standard_content: "standard_content", bold_content: "bold_content" }, host: { listeners: { "window:resize": "imageLabel($event)" } }, viewQueries: [{ propertyName: "imageLabel", first: true, predicate: ["imagelabel"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<ng-template #content>\n <ui-box class=\"ui-card\" box_background=\"core-primary\" box_space=\"near\">\n <ui-stack stack_align=\"center\" stack_gap=\"none\"> \n <ui-box \n class=\"ui-card__image\"\n [ngStyle]=\"{'aspect-ratio': aspectRatio}\" \n box_background=\"transparent\" \n box_align_x=\"center\" \n box_space=\"none\">\n <img [src]=\"image\" [attr.alt]=\"alt_text\">\n </ui-box>\n <ui-stack stack_gap=\"tight\" [ngStyle]=\"{'margin-top': '-' + (imageLabel?.nativeElement?.offsetHeight/2) + 'px'}\">\n <ui-box\n #imagelabel \n *ngIf=\"label_text\"\n class=\"card__image-label center-content\" \n box_background=\"tint-highlight\" \n box_align_x=\"center\" \n box_align_y=\"center\"\n box_space_left=\"near\"\n box_space_right=\"near\"\n box_space_bottom=\"tight\"\n box_space_top=\"tight\">\n <h5>{{label_text}}</h5>\n </ui-box>\n <ui-box *ngIf=\"small_title_left || small_sub_title_right\" [box_space_top]=\"label_text ? 'none' : 'tight'\" box_space=\"none\" box_background=\"transparent\" > \n <ui-stack stack_direction=\"x\" stack_distribute=\"space-between\" stack_gap=\"tight\">\n <span class=\"text-body--supporting text-color--supporting\">{{small_title_left}}</span>\n <span class=\"text-body--supporting text-color--supporting\">{{small_sub_title_right}}</span>\n </ui-stack>\n </ui-box>\n <p *ngIf=\"standard_content\" class=\"text-label--default center-content\">{{standard_content}}</p>\n <p *ngIf=\"bold_content\" class=\"text-label--primary text-body--emphasis\">{{bold_content}}</p>\n </ui-stack> \n </ui-stack>\n </ui-box>\n</ng-template>\n\n<!-- Wrap the content in an <a> tag if the card is a link -->\n<a *ngIf=\"card_link\" [routerLink]=\"cardLink || null\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</a>\n<!-- Display the content as normal if the card is not a link -->\n<ng-container *ngIf=\"!card_link\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-container>\n", styles: [".ui-card__image{position:relative}.ui-card__image img{position:absolute;height:100%;object-fit:cover;width:100%;left:0}.ui-card .center-content{text-align:center;align-self:center}.ui-card .card__image-label{width:auto;height:auto;border-radius:2px;margin:0 8px;text-align:center;overflow:hidden;z-index:2}\n"], components: [{ type: LayoutBoxComponent, selector: "ui-box", inputs: ["box_space", "box_space_top", "box_space_right", "box_space_bottom", "box_space_left", "box_align_x", "box_align_y", "box_fill_mode", "box_background"] }, { type: LayoutStackComponent, selector: "ui-stack", inputs: ["stack_gap", "stack_align", "stack_direction", "stack_distribute", "stack_wrap"] }], directives: [{ type: i3__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
701
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CardComponent, decorators: [{
|
|
501
702
|
type: i0.Component,
|
|
502
703
|
args: [{
|
|
503
|
-
selector: 'ui-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
'[class]': 'columnLayoutClasses'
|
|
507
|
-
},
|
|
508
|
-
styleUrls: ['./grid.component.scss'],
|
|
509
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
510
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
704
|
+
selector: 'ui-card',
|
|
705
|
+
templateUrl: './card.component.html',
|
|
706
|
+
styleUrls: ['./card.component.scss']
|
|
511
707
|
}]
|
|
512
|
-
}], ctorParameters: function () { return [{ type:
|
|
708
|
+
}], ctorParameters: function () { return [{ type: TokenService }]; }, propDecorators: { imageLabel: [{
|
|
709
|
+
type: i0.HostListener,
|
|
710
|
+
args: ['window:resize', ['$event']]
|
|
711
|
+
}, {
|
|
712
|
+
type: i0.ViewChild,
|
|
713
|
+
args: ["imagelabel", { static: false, read: i0.ElementRef }]
|
|
714
|
+
}], card_link: [{
|
|
715
|
+
type: i0.Input
|
|
716
|
+
}], label_text: [{
|
|
717
|
+
type: i0.Input
|
|
718
|
+
}], image: [{
|
|
719
|
+
type: i0.Input
|
|
720
|
+
}], alt_text: [{
|
|
721
|
+
type: i0.Input
|
|
722
|
+
}], image_format: [{
|
|
723
|
+
type: i0.Input
|
|
724
|
+
}], small_title_left: [{
|
|
725
|
+
type: i0.Input
|
|
726
|
+
}], small_sub_title_right: [{
|
|
727
|
+
type: i0.Input
|
|
728
|
+
}], standard_content: [{
|
|
729
|
+
type: i0.Input
|
|
730
|
+
}], bold_content: [{
|
|
513
731
|
type: i0.Input
|
|
514
732
|
}] } });
|
|
515
733
|
|
|
516
|
-
var
|
|
517
|
-
function
|
|
518
|
-
this.changes = changes;
|
|
519
|
-
this.tokenService = tokenService;
|
|
520
|
-
this.container_fluid = false;
|
|
521
|
-
this.container_gutter = true;
|
|
522
|
-
this.prefix = 'ui-layout-container';
|
|
734
|
+
var OasysCardModule = /** @class */ (function () {
|
|
735
|
+
function OasysCardModule() {
|
|
523
736
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
this.containerLayoutClasses = [
|
|
546
|
-
this.prefix,
|
|
547
|
-
this.prefix + "-" + (this.container_fluid ? 'fluid' : '')
|
|
548
|
-
];
|
|
737
|
+
return OasysCardModule;
|
|
738
|
+
}());
|
|
739
|
+
OasysCardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysCardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
740
|
+
OasysCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysCardModule, declarations: [CardComponent], imports: [i3.CommonModule, OasysLayoutModule], exports: [CardComponent] });
|
|
741
|
+
OasysCardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysCardModule, providers: [TokenService], imports: [[i3.CommonModule, OasysLayoutModule]] });
|
|
742
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysCardModule, decorators: [{
|
|
743
|
+
type: i0.NgModule,
|
|
744
|
+
args: [{
|
|
745
|
+
declarations: [CardComponent],
|
|
746
|
+
imports: [i3.CommonModule, OasysLayoutModule],
|
|
747
|
+
exports: [CardComponent],
|
|
748
|
+
providers: [TokenService],
|
|
749
|
+
}]
|
|
750
|
+
}] });
|
|
751
|
+
|
|
752
|
+
var DividerComponent = /** @class */ (function () {
|
|
753
|
+
function DividerComponent() {
|
|
754
|
+
this.divider_type = 'secondary';
|
|
755
|
+
}
|
|
756
|
+
DividerComponent.prototype.getClass = function () {
|
|
757
|
+
return this.divider_type === 'secondary' ? "ui-divider--type-" + this.divider_type : "ui-divider--type-" + this.divider_type;
|
|
549
758
|
};
|
|
550
|
-
return
|
|
759
|
+
return DividerComponent;
|
|
551
760
|
}());
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
761
|
+
DividerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DividerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
762
|
+
DividerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DividerComponent, selector: "ui-divider", inputs: { divider_type: "divider_type" }, ngImport: i0__namespace, template: "<ui-box box_fill_mode=\"fill\" box_space=\"none\" box_background=\"core-secondary\" [ngClass]=\"getClass()\"></ui-box>", styles: ["ui-divider{display:block;width:100%}ui-divider ui-box.ui-divider--type-secondary:after{content:\"\";display:block;height:var(--global-size-unit-01);width:100%}ui-divider ui-box.ui-divider--type-primary:after{content:\"\";display:block;height:var(--global-size-unit-08);width:100%}\n"], components: [{ type: LayoutBoxComponent, selector: "ui-box", inputs: ["box_space", "box_space_top", "box_space_right", "box_space_bottom", "box_space_left", "box_align_x", "box_align_y", "box_fill_mode", "box_background"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
763
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DividerComponent, decorators: [{
|
|
555
764
|
type: i0.Component,
|
|
556
765
|
args: [{
|
|
557
|
-
selector: 'ui-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
'[class]': 'containerLayoutClasses'
|
|
561
|
-
},
|
|
562
|
-
styleUrls: ['./container.component.scss'],
|
|
766
|
+
selector: 'ui-divider',
|
|
767
|
+
templateUrl: './divider.component.html',
|
|
768
|
+
styleUrls: ['./divider.component.scss'],
|
|
563
769
|
encapsulation: i0.ViewEncapsulation.None,
|
|
564
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
565
770
|
}]
|
|
566
|
-
}],
|
|
567
|
-
type: i0.Input
|
|
568
|
-
}], container_gutter: [{
|
|
771
|
+
}], propDecorators: { divider_type: [{
|
|
569
772
|
type: i0.Input
|
|
570
773
|
}] } });
|
|
571
774
|
|
|
775
|
+
var OasysDividerModule = /** @class */ (function () {
|
|
776
|
+
function OasysDividerModule() {
|
|
777
|
+
}
|
|
778
|
+
return OasysDividerModule;
|
|
779
|
+
}());
|
|
780
|
+
OasysDividerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysDividerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
781
|
+
OasysDividerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysDividerModule, declarations: [DividerComponent], imports: [i3.CommonModule, OasysLayoutModule], exports: [DividerComponent] });
|
|
782
|
+
OasysDividerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysDividerModule, imports: [[i3.CommonModule, OasysLayoutModule]] });
|
|
783
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysDividerModule, decorators: [{
|
|
784
|
+
type: i0.NgModule,
|
|
785
|
+
args: [{
|
|
786
|
+
declarations: [DividerComponent],
|
|
787
|
+
imports: [i3.CommonModule, OasysLayoutModule],
|
|
788
|
+
exports: [DividerComponent],
|
|
789
|
+
}]
|
|
790
|
+
}] });
|
|
791
|
+
|
|
572
792
|
var OasysHeadingComponent = /** @class */ (function () {
|
|
573
793
|
function OasysHeadingComponent(tokenService) {
|
|
574
794
|
this.tokenService = tokenService;
|
|
@@ -615,7 +835,7 @@
|
|
|
615
835
|
return OasysHeadingComponent;
|
|
616
836
|
}());
|
|
617
837
|
OasysHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingComponent, deps: [{ token: TokenService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
618
|
-
OasysHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OasysHeadingComponent, selector: "ui-heading", inputs: { heading_type: "heading_type", heading_on_dark: "heading_on_dark", heading_title: "heading_title", heading_seo_priority: "heading_seo_priority", heading_priority: "heading_priority", heading_alignment_override: "heading_alignment_override", heading_subtitle: "heading_subtitle", heading_surtitle: "heading_surtitle" }, host: { properties: { "class": "this.class" } }, ngImport: i0__namespace, template: "<
|
|
838
|
+
OasysHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OasysHeadingComponent, selector: "ui-heading", inputs: { heading_type: "heading_type", heading_on_dark: "heading_on_dark", heading_title: "heading_title", heading_seo_priority: "heading_seo_priority", heading_priority: "heading_priority", heading_alignment_override: "heading_alignment_override", heading_subtitle: "heading_subtitle", heading_surtitle: "heading_surtitle" }, host: { properties: { "class": "this.class" } }, ngImport: i0__namespace, template: "<div>\n <ui-stack [stack_align]=\"headingAlignment\" [stack_gap]=\"headingGap\">\n\n <p *ngIf=\"heading_surtitle && heading_surtitle.length\" class=\"heading-surtitle text-body--supporting text-color--supporting\">\n {{heading_surtitle}}\n </p>\n\n <ng-template #content>\n <span\n class=\"heading-title\"\n [ngClass]=\"{\n 'text-heading': !headingTypeIsFunctional(heading_type),\n 'text-heading--functional': headingTypeIsFunctional(heading_type),\n\n 'text-heading--hero': heading_type === 'hero',\n 'text-heading--primary': heading_type === 'primary',\n 'text-heading--secondary': heading_type === 'secondary',\n 'text-heading--functional--primary': heading_type === 'functional-primary',\n 'text-heading--functional--secondary': heading_type === 'functional-secondary'\n }\"\n >{{heading_title}}</span>\n </ng-template>\n\n <h1 role=\"heading\" [attr.aria-level]=\"heading_priority\" class=\"seo-h1\" *ngIf=\"heading_seo_priority\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </h1>\n <span role=\"heading\" [attr.aria-level]=\"heading_priority\" *ngIf=\"!heading_seo_priority\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n\n <p\n *ngIf=\"heading_subtitle && heading_subtitle.length\"\n class=\"heading-subtitle\"\n [ngClass]=\"{\n 'text-body--hero': heading_type === 'hero',\n 'text-body--default': heading_type !== 'hero'\n }\"\n >{{heading_subtitle}}</p>\n\n </ui-stack>\n</div>", styles: ["ui-heading.ui-heading-alignment-start{text-align:start}ui-heading.ui-heading-alignment-center{text-align:center}\n"], components: [{ type: LayoutStackComponent, selector: "ui-stack", inputs: ["stack_gap", "stack_align", "stack_direction", "stack_distribute", "stack_wrap"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
619
839
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingComponent, decorators: [{
|
|
620
840
|
type: i0.Component,
|
|
621
841
|
args: [{
|
|
@@ -645,6 +865,24 @@
|
|
|
645
865
|
args: ['class']
|
|
646
866
|
}] } });
|
|
647
867
|
|
|
868
|
+
var OasysHeadingModule = /** @class */ (function () {
|
|
869
|
+
function OasysHeadingModule() {
|
|
870
|
+
}
|
|
871
|
+
return OasysHeadingModule;
|
|
872
|
+
}());
|
|
873
|
+
OasysHeadingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
874
|
+
OasysHeadingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingModule, declarations: [OasysHeadingComponent], imports: [i3.CommonModule, OasysLayoutModule], exports: [OasysHeadingComponent] });
|
|
875
|
+
OasysHeadingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingModule, providers: [TokenService], imports: [[i3.CommonModule, OasysLayoutModule]] });
|
|
876
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeadingModule, decorators: [{
|
|
877
|
+
type: i0.NgModule,
|
|
878
|
+
args: [{
|
|
879
|
+
declarations: [OasysHeadingComponent],
|
|
880
|
+
imports: [i3.CommonModule, OasysLayoutModule],
|
|
881
|
+
exports: [OasysHeadingComponent],
|
|
882
|
+
providers: [TokenService],
|
|
883
|
+
}]
|
|
884
|
+
}] });
|
|
885
|
+
|
|
648
886
|
var HeroComponent = /** @class */ (function () {
|
|
649
887
|
function HeroComponent(tokenService) {
|
|
650
888
|
this.tokenService = tokenService;
|
|
@@ -701,195 +939,72 @@
|
|
|
701
939
|
type: i0.Input
|
|
702
940
|
}] } });
|
|
703
941
|
|
|
704
|
-
var
|
|
705
|
-
function
|
|
706
|
-
this.tokenService = tokenService;
|
|
942
|
+
var OasysHeroModule = /** @class */ (function () {
|
|
943
|
+
function OasysHeroModule() {
|
|
707
944
|
}
|
|
708
|
-
|
|
709
|
-
this.aspectRatio = this.setImageAspectRatio(this.image_format);
|
|
710
|
-
};
|
|
711
|
-
/**
|
|
712
|
-
* This function retrieves the appropriate design token value based on the passed imageFormat choice
|
|
713
|
-
*
|
|
714
|
-
* @param format - The format of the image e.g. square, portrait, landscape
|
|
715
|
-
* @returns - string to be used as the aspect ratio
|
|
716
|
-
*/
|
|
717
|
-
CardComponent.prototype.setImageAspectRatio = function (format) {
|
|
718
|
-
switch (format) {
|
|
719
|
-
case 'square':
|
|
720
|
-
return this.tokenService.getTokenValue('--component-card-aspect-ratio-square');
|
|
721
|
-
case 'portrait':
|
|
722
|
-
return this.tokenService.getTokenValue('--component-card-aspect-ratio-portrait');
|
|
723
|
-
case 'landscape':
|
|
724
|
-
return this.tokenService.getTokenValue('--component-card-aspect-ratio-landscape');
|
|
725
|
-
default:
|
|
726
|
-
return this.tokenService.getTokenValue('--component-card-aspect-ratio-portrait');
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
return CardComponent;
|
|
945
|
+
return OasysHeroModule;
|
|
730
946
|
}());
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
i0__namespace.ɵɵ
|
|
734
|
-
|
|
947
|
+
OasysHeroModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeroModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
948
|
+
OasysHeroModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeroModule, declarations: [HeroComponent], imports: [i3.CommonModule, OasysButtonModule, OasysHeadingModule, OasysLayoutModule], exports: [HeroComponent] });
|
|
949
|
+
OasysHeroModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeroModule, providers: [TokenService], imports: [[i3.CommonModule, OasysButtonModule, OasysHeadingModule, OasysLayoutModule]] });
|
|
950
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysHeroModule, decorators: [{
|
|
951
|
+
type: i0.NgModule,
|
|
735
952
|
args: [{
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
953
|
+
declarations: [HeroComponent],
|
|
954
|
+
imports: [i3.CommonModule, OasysButtonModule, OasysHeadingModule, OasysLayoutModule],
|
|
955
|
+
exports: [HeroComponent],
|
|
956
|
+
providers: [TokenService],
|
|
739
957
|
}]
|
|
740
|
-
}]
|
|
741
|
-
type: i0.HostListener,
|
|
742
|
-
args: ['window:resize', ['$event']]
|
|
743
|
-
}, {
|
|
744
|
-
type: i0.ViewChild,
|
|
745
|
-
args: ["imagelabel", { static: false, read: i0.ElementRef }]
|
|
746
|
-
}], card_link: [{
|
|
747
|
-
type: i0.Input
|
|
748
|
-
}], label_text: [{
|
|
749
|
-
type: i0.Input
|
|
750
|
-
}], image: [{
|
|
751
|
-
type: i0.Input
|
|
752
|
-
}], alt_text: [{
|
|
753
|
-
type: i0.Input
|
|
754
|
-
}], image_format: [{
|
|
755
|
-
type: i0.Input
|
|
756
|
-
}], small_title_left: [{
|
|
757
|
-
type: i0.Input
|
|
758
|
-
}], small_sub_title_right: [{
|
|
759
|
-
type: i0.Input
|
|
760
|
-
}], standard_content: [{
|
|
761
|
-
type: i0.Input
|
|
762
|
-
}], bold_content: [{
|
|
763
|
-
type: i0.Input
|
|
764
|
-
}] } });
|
|
958
|
+
}] });
|
|
765
959
|
|
|
766
|
-
var
|
|
767
|
-
function
|
|
960
|
+
var TextComponent = /** @class */ (function () {
|
|
961
|
+
function TextComponent() {
|
|
962
|
+
this.textAlign = 'left';
|
|
963
|
+
this.textWeight = 'normal';
|
|
964
|
+
this.textTransform = 'none';
|
|
768
965
|
}
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
this.values = this.breadcrumbs_values;
|
|
776
|
-
}
|
|
966
|
+
TextComponent.prototype.ngOnInit = function () {
|
|
967
|
+
this.uiTextClasses = [
|
|
968
|
+
"ui-text--align-" + this.textAlign,
|
|
969
|
+
"ui-text--weight-" + this.textWeight,
|
|
970
|
+
"ui-text--transform-" + this.textTransform,
|
|
971
|
+
].join(' ');
|
|
777
972
|
};
|
|
778
|
-
return
|
|
973
|
+
return TextComponent;
|
|
779
974
|
}());
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
975
|
+
TextComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
976
|
+
TextComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TextComponent, selector: "ui-text", inputs: { textAlign: "textAlign", textWeight: "textWeight", textTransform: "textTransform" }, ngImport: i0__namespace, template: "<span class=\"ui-text\" [ngClass]=\"uiTextClasses\"><ng-content></ng-content></span>", styles: [".ui-text{font-size:var(--size-font-base);font-family:var(--font-family-body);font-weight:var(--font-weight-normal)}.ui-text.ui-text--weight-medium{font-weight:var(--font-weight-medium)}.ui-text.ui-text--weight-bold{font-weight:var(--font-weight-bold)}.ui-text.ui-text--transform-uppercase{text-transform:uppercase}.ui-text.ui-text--align-left{text-align:left}.ui-text.ui-text--align-center{text-align:center}.ui-text.ui-text--align-right{text-align:right}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
977
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextComponent, decorators: [{
|
|
783
978
|
type: i0.Component,
|
|
784
979
|
args: [{
|
|
785
|
-
selector: 'ui-
|
|
786
|
-
templateUrl: './
|
|
787
|
-
styleUrls: ['./
|
|
980
|
+
selector: 'ui-text',
|
|
981
|
+
templateUrl: './text.component.html',
|
|
982
|
+
styleUrls: ['./text.component.scss'],
|
|
788
983
|
encapsulation: i0.ViewEncapsulation.None,
|
|
984
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
789
985
|
}]
|
|
790
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
986
|
+
}], ctorParameters: function () { return []; }, propDecorators: { textAlign: [{
|
|
791
987
|
type: i0.Input
|
|
792
|
-
}]
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
function DividerComponent() {
|
|
796
|
-
this.divider_type = 'secondary';
|
|
797
|
-
}
|
|
798
|
-
DividerComponent.prototype.getClass = function () {
|
|
799
|
-
return this.divider_type === 'secondary' ? "ui-divider--type-" + this.divider_type : "ui-divider--type-" + this.divider_type;
|
|
800
|
-
};
|
|
801
|
-
return DividerComponent;
|
|
802
|
-
}());
|
|
803
|
-
DividerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DividerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
804
|
-
DividerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DividerComponent, selector: "ui-divider", inputs: { divider_type: "divider_type" }, ngImport: i0__namespace, template: "<ui-box box_fill_mode=\"fill\" box_space=\"none\" box_background=\"core-secondary\" [ngClass]=\"getClass()\"></ui-box>", styles: ["ui-divider{display:block;width:100%}ui-divider ui-box.ui-divider--type-secondary:after{content:\"\";display:block;height:var(--global-size-unit-01);width:100%}ui-divider ui-box.ui-divider--type-primary:after{content:\"\";display:block;height:var(--global-size-unit-08);width:100%}\n"], components: [{ type: LayoutBoxComponent, selector: "ui-box", inputs: ["box_space", "box_space_top", "box_space_right", "box_space_bottom", "box_space_left", "box_align_x", "box_align_y", "box_fill_mode", "box_background"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
805
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DividerComponent, decorators: [{
|
|
806
|
-
type: i0.Component,
|
|
807
|
-
args: [{
|
|
808
|
-
selector: 'ui-divider',
|
|
809
|
-
templateUrl: './divider.component.html',
|
|
810
|
-
styleUrls: ['./divider.component.scss'],
|
|
811
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
812
|
-
}]
|
|
813
|
-
}], propDecorators: { divider_type: [{
|
|
988
|
+
}], textWeight: [{
|
|
989
|
+
type: i0.Input
|
|
990
|
+
}], textTransform: [{
|
|
814
991
|
type: i0.Input
|
|
815
992
|
}] } });
|
|
816
993
|
|
|
817
|
-
var
|
|
818
|
-
function
|
|
994
|
+
var OasysTextModule = /** @class */ (function () {
|
|
995
|
+
function OasysTextModule() {
|
|
819
996
|
}
|
|
820
|
-
return
|
|
997
|
+
return OasysTextModule;
|
|
821
998
|
}());
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
LayoutStackComponent,
|
|
827
|
-
LayoutGridComponent,
|
|
828
|
-
LayoutGridColumnComponent,
|
|
829
|
-
LayoutContainerComponent,
|
|
830
|
-
OasysHeadingComponent,
|
|
831
|
-
BreadcrumbsComponent,
|
|
832
|
-
DividerComponent,
|
|
833
|
-
HeroComponent,
|
|
834
|
-
CardComponent], imports: [i3.CommonModule, i2__namespace.RouterModule], exports: [OasysButtonComponent,
|
|
835
|
-
IconComponent,
|
|
836
|
-
LayoutBoxComponent,
|
|
837
|
-
LayoutStackComponent,
|
|
838
|
-
LayoutGridComponent,
|
|
839
|
-
LayoutGridColumnComponent,
|
|
840
|
-
LayoutContainerComponent,
|
|
841
|
-
OasysHeadingComponent,
|
|
842
|
-
BreadcrumbsComponent,
|
|
843
|
-
DividerComponent,
|
|
844
|
-
HeroComponent] });
|
|
845
|
-
OasysLibModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, providers: [
|
|
846
|
-
WindowService,
|
|
847
|
-
TokenService
|
|
848
|
-
], imports: [[
|
|
849
|
-
i3.CommonModule,
|
|
850
|
-
i2.RouterModule.forChild([])
|
|
851
|
-
]] });
|
|
852
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysLibModule, decorators: [{
|
|
999
|
+
OasysTextModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysTextModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1000
|
+
OasysTextModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysTextModule, declarations: [TextComponent], imports: [i3.CommonModule], exports: [TextComponent] });
|
|
1001
|
+
OasysTextModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysTextModule, imports: [[i3.CommonModule]] });
|
|
1002
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OasysTextModule, decorators: [{
|
|
853
1003
|
type: i0.NgModule,
|
|
854
1004
|
args: [{
|
|
855
|
-
declarations: [
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
LayoutBoxComponent,
|
|
859
|
-
LayoutStackComponent,
|
|
860
|
-
LayoutGridComponent,
|
|
861
|
-
LayoutGridColumnComponent,
|
|
862
|
-
LayoutContainerComponent,
|
|
863
|
-
OasysHeadingComponent,
|
|
864
|
-
BreadcrumbsComponent,
|
|
865
|
-
DividerComponent,
|
|
866
|
-
HeroComponent,
|
|
867
|
-
CardComponent
|
|
868
|
-
],
|
|
869
|
-
imports: [
|
|
870
|
-
i3.CommonModule,
|
|
871
|
-
i2.RouterModule.forChild([])
|
|
872
|
-
],
|
|
873
|
-
exports: [
|
|
874
|
-
OasysButtonComponent,
|
|
875
|
-
IconComponent,
|
|
876
|
-
LayoutBoxComponent,
|
|
877
|
-
LayoutStackComponent,
|
|
878
|
-
LayoutGridComponent,
|
|
879
|
-
LayoutGridColumnComponent,
|
|
880
|
-
LayoutContainerComponent,
|
|
881
|
-
OasysHeadingComponent,
|
|
882
|
-
BreadcrumbsComponent,
|
|
883
|
-
DividerComponent,
|
|
884
|
-
HeroComponent
|
|
885
|
-
],
|
|
886
|
-
providers: [
|
|
887
|
-
WindowService,
|
|
888
|
-
TokenService
|
|
889
|
-
],
|
|
890
|
-
schemas: [
|
|
891
|
-
i0.NO_ERRORS_SCHEMA
|
|
892
|
-
]
|
|
1005
|
+
declarations: [TextComponent],
|
|
1006
|
+
imports: [i3.CommonModule],
|
|
1007
|
+
exports: [TextComponent],
|
|
893
1008
|
}]
|
|
894
1009
|
}] });
|
|
895
1010
|
|
|
@@ -902,6 +1017,7 @@
|
|
|
902
1017
|
*/
|
|
903
1018
|
|
|
904
1019
|
exports.BreadcrumbsComponent = BreadcrumbsComponent;
|
|
1020
|
+
exports.CardComponent = CardComponent;
|
|
905
1021
|
exports.DividerComponent = DividerComponent;
|
|
906
1022
|
exports.HeroComponent = HeroComponent;
|
|
907
1023
|
exports.IconComponent = IconComponent;
|
|
@@ -910,9 +1026,18 @@
|
|
|
910
1026
|
exports.LayoutGridColumnComponent = LayoutGridColumnComponent;
|
|
911
1027
|
exports.LayoutGridComponent = LayoutGridComponent;
|
|
912
1028
|
exports.LayoutStackComponent = LayoutStackComponent;
|
|
1029
|
+
exports.OasysBreadcrumbModule = OasysBreadcrumbModule;
|
|
913
1030
|
exports.OasysButtonComponent = OasysButtonComponent;
|
|
1031
|
+
exports.OasysButtonModule = OasysButtonModule;
|
|
1032
|
+
exports.OasysCardModule = OasysCardModule;
|
|
1033
|
+
exports.OasysDividerModule = OasysDividerModule;
|
|
914
1034
|
exports.OasysHeadingComponent = OasysHeadingComponent;
|
|
915
|
-
exports.
|
|
1035
|
+
exports.OasysHeadingModule = OasysHeadingModule;
|
|
1036
|
+
exports.OasysHeroModule = OasysHeroModule;
|
|
1037
|
+
exports.OasysIconModule = OasysIconModule;
|
|
1038
|
+
exports.OasysLayoutModule = OasysLayoutModule;
|
|
1039
|
+
exports.OasysTextModule = OasysTextModule;
|
|
1040
|
+
exports.TextComponent = TextComponent;
|
|
916
1041
|
|
|
917
1042
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
918
1043
|
|