@underlayerdev/ui 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/fesm2022/underlayerdev-ui.mjs +956 -604
- package/fesm2022/underlayerdev-ui.mjs.map +1 -1
- package/package.json +6 -4
- package/types/underlayerdev-ui.d.ts +47 -27
|
@@ -77,8 +77,8 @@ class AccordionItemComponent {
|
|
|
77
77
|
triggers[targetIndex].focus();
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: AccordionItemComponent, isStandalone: true, selector: "pe-accordion-item", hostDirectives: [{ directive: i1.CdkAccordionItem, inputs: ["expanded", "expanded", "disabled", "disabled"], outputs: ["closed", "closed", "opened", "opened", "destroyed", "destroyed", "expandedChange", "expandedChange"] }], ngImport: i0, template: `
|
|
82
82
|
<div
|
|
83
83
|
class="pe-accordion__item"
|
|
84
84
|
[class.pe-accordion__item--expanded]="cdkAccordionItem.expanded"
|
|
@@ -117,7 +117,7 @@ class AccordionItemComponent {
|
|
|
117
117
|
</div>
|
|
118
118
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-accordion{color:#fff;display:flex;flex-direction:column;gap:8px}.pe-accordion__item{min-height:48px;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}.pe-accordion__item:first-child{padding-top:0}.pe-accordion__item:last-child{border-bottom:none}.pe-accordion__item--disabled{cursor:not-allowed}.pe-accordion__item--disabled .pe-accordion__trigger{cursor:not-allowed;color:#ffffff4d;background-color:#ffffff0d;pointer-events:none}.pe-accordion__item--disabled .pe-accordion__trigger:hover,.pe-accordion__item--disabled .pe-accordion__trigger:active{background-color:#ffffff0d}.pe-accordion__item--disabled .pe-accordion__indicator{color:#ffffff4d}.pe-accordion__item:after{content:\"\";display:block;width:calc(100% - 24px);border-bottom:1px solid transparent}.pe-accordion--divider ::ng-deep .pe-accordion__item:after{border-color:#ffffff1a}.pe-accordion__trigger{cursor:pointer;border:none;white-space:nowrap;box-sizing:border-box;width:100%;min-height:48px;text-align:start;display:flex;align-items:center;gap:8px;border-radius:12px;padding:0 12px}.pe-accordion__trigger:hover{background-color:#fff3}.pe-accordion__trigger:active{background-color:#ffffff1a}.pe-accordion__trigger:selected{background-color:#fff3}.pe-accordion__trigger{background-color:#fff0;color:inherit}.pe-accordion__trigger:disabled,.pe-accordion__trigger[disabled]{background-color:#fff0}.pe-accordion__trigger:focus-visible,.pe-accordion__trigger:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-accordion__icon{display:flex;align-items:center;font-size:32px;line-height:32px}.pe-accordion__label{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;flex:1}.pe-accordion__status{display:flex;gap:8px}.pe-accordion__indicator{color:#ffffffb3;transition:transform .25s cubic-bezier(.4,0,.2,1)}.pe-accordion__item--expanded .pe-accordion__indicator{transform:rotate(180deg)}.pe-accordion__content{color:#ffffffb3;background-color:transparent;padding:12px;width:100%;display:none;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-accordion__item--expanded .pe-accordion__content{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
119
119
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
121
121
|
type: Component,
|
|
122
122
|
args: [{ selector: 'pe-accordion-item', standalone: true, template: `
|
|
123
123
|
<div
|
|
@@ -170,10 +170,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
170
170
|
* multi-expansion behavior and manages the state of its child accordion items.
|
|
171
171
|
*/
|
|
172
172
|
class AccordionComponent {
|
|
173
|
-
showDivider = input(false,
|
|
174
|
-
|
|
173
|
+
showDivider = input(false, /* @ts-ignore */
|
|
174
|
+
...(ngDevMode ? [{ debugName: "showDivider" }] : /* istanbul ignore next */ []));
|
|
175
|
+
multi = input(false, /* @ts-ignore */
|
|
176
|
+
...(ngDevMode ? [{ debugName: "multi" }] : /* istanbul ignore next */ []));
|
|
175
177
|
destroyRef = inject(DestroyRef);
|
|
176
|
-
accordionItems = contentChildren(AccordionItemComponent, { ...(ngDevMode ? { debugName: "accordionItems" } : {}), read: CdkAccordionItem });
|
|
178
|
+
accordionItems = contentChildren(AccordionItemComponent, { ...(ngDevMode ? { debugName: "accordionItems" } : /* istanbul ignore next */ {}), read: CdkAccordionItem });
|
|
177
179
|
ngAfterViewInit() {
|
|
178
180
|
this.setupSingleExpansionLogic();
|
|
179
181
|
}
|
|
@@ -212,14 +214,14 @@ class AccordionComponent {
|
|
|
212
214
|
}
|
|
213
215
|
});
|
|
214
216
|
}
|
|
215
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
216
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: AccordionComponent, isStandalone: true, selector: "pe-accordion", inputs: { showDivider: { classPropertyName: "showDivider", publicName: "showDivider", isSignal: true, isRequired: false, transformFunction: null }, multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "accordionItems", predicate: AccordionItemComponent, read: CdkAccordionItem, isSignal: true }], ngImport: i0, template: `
|
|
217
219
|
<cdk-accordion #accordion [multi]="multi()" class="pe-accordion" [class.pe-accordion--divider]="showDivider()">
|
|
218
220
|
<ng-content />
|
|
219
221
|
</cdk-accordion>
|
|
220
222
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-accordion{color:#fff;display:flex;flex-direction:column;gap:8px}.pe-accordion__item{min-height:48px;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}.pe-accordion__item:first-child{padding-top:0}.pe-accordion__item:last-child{border-bottom:none}.pe-accordion__item--disabled{cursor:not-allowed}.pe-accordion__item--disabled .pe-accordion__trigger{cursor:not-allowed;color:#ffffff4d;background-color:#ffffff0d;pointer-events:none}.pe-accordion__item--disabled .pe-accordion__trigger:hover,.pe-accordion__item--disabled .pe-accordion__trigger:active{background-color:#ffffff0d}.pe-accordion__item--disabled .pe-accordion__indicator{color:#ffffff4d}.pe-accordion__item:after{content:\"\";display:block;width:calc(100% - 24px);border-bottom:1px solid transparent}.pe-accordion--divider ::ng-deep .pe-accordion__item:after{border-color:#ffffff1a}.pe-accordion__trigger{cursor:pointer;border:none;white-space:nowrap;box-sizing:border-box;width:100%;min-height:48px;text-align:start;display:flex;align-items:center;gap:8px;border-radius:12px;padding:0 12px}.pe-accordion__trigger:hover{background-color:#fff3}.pe-accordion__trigger:active{background-color:#ffffff1a}.pe-accordion__trigger:selected{background-color:#fff3}.pe-accordion__trigger{background-color:#fff0;color:inherit}.pe-accordion__trigger:disabled,.pe-accordion__trigger[disabled]{background-color:#fff0}.pe-accordion__trigger:focus-visible,.pe-accordion__trigger:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-accordion__icon{display:flex;align-items:center;font-size:32px;line-height:32px}.pe-accordion__label{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;flex:1}.pe-accordion__status{display:flex;gap:8px}.pe-accordion__indicator{color:#ffffffb3;transition:transform .25s cubic-bezier(.4,0,.2,1)}.pe-accordion__item--expanded .pe-accordion__indicator{transform:rotate(180deg)}.pe-accordion__content{color:#ffffffb3;background-color:transparent;padding:12px;width:100%;display:none;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-accordion__item--expanded .pe-accordion__content{display:block}\n"], dependencies: [{ kind: "directive", type: CdkAccordion, selector: "cdk-accordion, [cdkAccordion]", inputs: ["multi"], exportAs: ["cdkAccordion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
221
223
|
}
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AccordionComponent, decorators: [{
|
|
223
225
|
type: Component,
|
|
224
226
|
args: [{ selector: 'pe-accordion', standalone: true, template: `
|
|
225
227
|
<cdk-accordion #accordion [multi]="multi()" class="pe-accordion" [class.pe-accordion--divider]="showDivider()">
|
|
@@ -242,43 +244,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
242
244
|
*/
|
|
243
245
|
class AreaCodeComponent {
|
|
244
246
|
// Core inputs
|
|
245
|
-
content = input('',
|
|
246
|
-
|
|
247
|
-
|
|
247
|
+
content = input('', /* @ts-ignore */
|
|
248
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
249
|
+
showLineNumbers = input(true, /* @ts-ignore */
|
|
250
|
+
...(ngDevMode ? [{ debugName: "showLineNumbers" }] : /* istanbul ignore next */ []));
|
|
251
|
+
maxHeight = input(null, /* @ts-ignore */
|
|
252
|
+
...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
|
|
248
253
|
// Computed properties
|
|
249
254
|
lines = computed(() => {
|
|
250
255
|
const content = this.content();
|
|
251
256
|
if (!content)
|
|
252
257
|
return [''];
|
|
253
258
|
return content.split('\n');
|
|
254
|
-
},
|
|
255
|
-
|
|
259
|
+
}, /* @ts-ignore */
|
|
260
|
+
...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
261
|
+
lineCount = computed(() => this.lines().length, /* @ts-ignore */
|
|
262
|
+
...(ngDevMode ? [{ debugName: "lineCount" }] : /* istanbul ignore next */ []));
|
|
256
263
|
lineNumbers = computed(() => {
|
|
257
264
|
const count = this.lineCount();
|
|
258
265
|
return Array.from({ length: count }, (_, i) => i + 1);
|
|
259
|
-
},
|
|
266
|
+
}, /* @ts-ignore */
|
|
267
|
+
...(ngDevMode ? [{ debugName: "lineNumbers" }] : /* istanbul ignore next */ []));
|
|
260
268
|
// Component properties
|
|
261
269
|
codeId = `pe-area-code-${Math.random().toString(36).slice(2, 11)}`;
|
|
262
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
270
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AreaCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
271
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: AreaCodeComponent, isStandalone: true, selector: "pe-area-code", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, showLineNumbers: { classPropertyName: "showLineNumbers", publicName: "showLineNumbers", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"pe-area-code\" [class.pe-area-code--no-line-numbers]=\"!showLineNumbers()\">\n <div class=\"pe-area-code__container pe-scrollable\" [style.max-height]=\"maxHeight()\">\n <!-- Code Display Area -->\n <div class=\"pe-area-code__display\">\n <!-- Line Numbers Column -->\n @if (showLineNumbers()) {\n <div class=\"pe-area-code__line-numbers\" role=\"presentation\" aria-hidden=\"true\">\n @for (lineNumber of lineNumbers(); track lineNumber) {\n <span class=\"pe-area-code__line-number\">{{ lineNumber }}.</span>\n }\n </div>\n }\n <!-- Code Content Column -->\n <div class=\"pe-area-code__content\">\n <pre class=\"pe-area-code__code\" [id]=\"codeId\"><code>{{ content() }}</code></pre>\n </div>\n </div>\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-area-code{position:relative;display:block;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-area-code__container{position:relative;border-radius:16px;border:2px solid rgba(255,255,255,.1);background-color:#ffffff1a}.pe-area-code__display{display:flex;min-height:2rem;overflow-x:auto}.pe-area-code__line-numbers{flex-shrink:0;display:flex;flex-direction:column;padding:12px 8px;border-right:2px solid rgba(255,255,255,.1);color:#ffffff80;-webkit-user-select:none;user-select:none;min-width:3rem;text-align:right}.pe-area-code__line-number{display:block;white-space:nowrap;padding-right:4px}.pe-area-code__content{flex:1;overflow-x:auto}.pe-area-code__code{display:block;margin:0;padding:12px;background:transparent;color:#fff;white-space:pre;overflow-x:auto;overflow-y:visible;tab-size:2}.pe-area-code__code code{background:transparent;padding:0;font-size:inherit;line-height:inherit;font-family:inherit;color:inherit}.pe-area-code--no-line-numbers .pe-area-code__code{padding-left:16px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
264
272
|
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AreaCodeComponent, decorators: [{
|
|
266
274
|
type: Component,
|
|
267
275
|
args: [{ selector: 'pe-area-code', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pe-area-code\" [class.pe-area-code--no-line-numbers]=\"!showLineNumbers()\">\n <div class=\"pe-area-code__container pe-scrollable\" [style.max-height]=\"maxHeight()\">\n <!-- Code Display Area -->\n <div class=\"pe-area-code__display\">\n <!-- Line Numbers Column -->\n @if (showLineNumbers()) {\n <div class=\"pe-area-code__line-numbers\" role=\"presentation\" aria-hidden=\"true\">\n @for (lineNumber of lineNumbers(); track lineNumber) {\n <span class=\"pe-area-code__line-number\">{{ lineNumber }}.</span>\n }\n </div>\n }\n <!-- Code Content Column -->\n <div class=\"pe-area-code__content\">\n <pre class=\"pe-area-code__code\" [id]=\"codeId\"><code>{{ content() }}</code></pre>\n </div>\n </div>\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-area-code{position:relative;display:block;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-area-code__container{position:relative;border-radius:16px;border:2px solid rgba(255,255,255,.1);background-color:#ffffff1a}.pe-area-code__display{display:flex;min-height:2rem;overflow-x:auto}.pe-area-code__line-numbers{flex-shrink:0;display:flex;flex-direction:column;padding:12px 8px;border-right:2px solid rgba(255,255,255,.1);color:#ffffff80;-webkit-user-select:none;user-select:none;min-width:3rem;text-align:right}.pe-area-code__line-number{display:block;white-space:nowrap;padding-right:4px}.pe-area-code__content{flex:1;overflow-x:auto}.pe-area-code__code{display:block;margin:0;padding:12px;background:transparent;color:#fff;white-space:pre;overflow-x:auto;overflow-y:visible;tab-size:2}.pe-area-code__code code{background:transparent;padding:0;font-size:inherit;line-height:inherit;font-family:inherit;color:inherit}.pe-area-code--no-line-numbers .pe-area-code__code{padding-left:16px}\n"] }]
|
|
268
276
|
}], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], showLineNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLineNumbers", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }] } });
|
|
269
277
|
|
|
270
278
|
// <pe-icon class="pe-icon pe-icon-size-${size} pe-icon-weight-${weight} pe-icon-${icon}" />
|
|
271
279
|
class IconComponent {
|
|
272
|
-
size = input('8',
|
|
273
|
-
|
|
274
|
-
|
|
280
|
+
size = input('8', /* @ts-ignore */
|
|
281
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
282
|
+
weight = input('medium', /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
|
|
284
|
+
icon = input.required(/* @ts-ignore */
|
|
285
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
275
286
|
hostClasses = computed(() => {
|
|
276
287
|
return `pe-icon pe-icon-size-${this.size()} pe-icon-weight-${this.weight()} pe-icon-${this.icon()}`;
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
static
|
|
288
|
+
}, /* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
290
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
291
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: IconComponent, isStandalone: true, selector: "pe-icon", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
280
292
|
}
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IconComponent, decorators: [{
|
|
282
294
|
type: Component,
|
|
283
295
|
args: [{
|
|
284
296
|
selector: 'pe-icon',
|
|
@@ -293,12 +305,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
293
305
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }] } });
|
|
294
306
|
|
|
295
307
|
class SkeletonComponent {
|
|
296
|
-
variant = input('rect',
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
308
|
+
variant = input('rect', /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
310
|
+
width = input(null, /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
312
|
+
height = input(null, /* @ts-ignore */
|
|
313
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
314
|
+
lines = input(3, /* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
316
|
+
borderRadius = input(null, /* @ts-ignore */
|
|
317
|
+
...(ngDevMode ? [{ debugName: "borderRadius" }] : /* istanbul ignore next */ []));
|
|
318
|
+
show = input(true, /* @ts-ignore */
|
|
319
|
+
...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
|
|
302
320
|
hostStyles = computed(() => {
|
|
303
321
|
const width = this.width();
|
|
304
322
|
const height = this.height();
|
|
@@ -306,7 +324,8 @@ class SkeletonComponent {
|
|
|
306
324
|
width: width ?? null,
|
|
307
325
|
height: height ?? null,
|
|
308
326
|
};
|
|
309
|
-
},
|
|
327
|
+
}, /* @ts-ignore */
|
|
328
|
+
...(ngDevMode ? [{ debugName: "hostStyles" }] : /* istanbul ignore next */ []));
|
|
310
329
|
lineWidths = computed(() => {
|
|
311
330
|
const count = Math.max(1, this.lines());
|
|
312
331
|
const widths = [];
|
|
@@ -317,18 +336,20 @@ class SkeletonComponent {
|
|
|
317
336
|
widths.push(`${value}%`);
|
|
318
337
|
}
|
|
319
338
|
return widths;
|
|
320
|
-
},
|
|
339
|
+
}, /* @ts-ignore */
|
|
340
|
+
...(ngDevMode ? [{ debugName: "lineWidths" }] : /* istanbul ignore next */ []));
|
|
321
341
|
radiusClass = computed(() => {
|
|
322
342
|
const radius = this.borderRadius();
|
|
323
343
|
return radius ? `pe-skeleton--radius-${radius}` : null;
|
|
324
|
-
},
|
|
344
|
+
}, /* @ts-ignore */
|
|
345
|
+
...(ngDevMode ? [{ debugName: "radiusClass" }] : /* istanbul ignore next */ []));
|
|
325
346
|
trackByIndex(index) {
|
|
326
347
|
return index;
|
|
327
348
|
}
|
|
328
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
329
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
350
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: SkeletonComponent, isStandalone: true, selector: "pe-skeleton", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, lines: { classPropertyName: "lines", publicName: "lines", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"pe-skeleton\"\n [class.pe-skeleton--active]=\"show()\"\n [class.pe-skeleton--rect]=\"variant() === 'rect'\"\n [class.pe-skeleton--text]=\"variant() === 'text'\"\n [class]=\"radiusClass() || ''\"\n [style.width]=\"hostStyles().width\"\n [style.height]=\"hostStyles().height\"\n>\n <div class=\"pe-skeleton__content\">\n <ng-content />\n </div>\n\n @if (show()) {\n @if (variant() === 'text') {\n <div class=\"pe-skeleton__overlay pe-skeleton__overlay--text\">\n @for (lineWidth of lineWidths(); track trackByIndex($index)) {\n <div class=\"pe-skeleton__block pe-skeleton__block--line\" [style.width]=\"lineWidth\"></div>\n }\n </div>\n } @else {\n <div class=\"pe-skeleton__overlay pe-skeleton__overlay--rect\">\n <div class=\"pe-skeleton__block pe-skeleton__block--rect\"></div>\n </div>\n }\n }\n</div>\n\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-skeleton{position:relative;display:block;overflow:hidden}.pe-skeleton__content{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.pe-skeleton--active .pe-skeleton__content{opacity:0}.pe-skeleton__overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:4px;pointer-events:none}.pe-skeleton__block{display:block;width:100%;height:100%;border-radius:8px;background-color:#3b3b3b;background-image:linear-gradient(90deg,#fff0,#ffffff24,#fff0);background-size:200% 100%;animation:pe-skeleton-shimmer 1.2s infinite linear}.pe-skeleton__block--line{height:12px}.pe-skeleton__overlay--text .pe-skeleton__block--line:last-child{width:60%}.pe-skeleton--radius-xs .pe-skeleton__block{border-radius:4px}.pe-skeleton--radius-sm .pe-skeleton__block{border-radius:8px}.pe-skeleton--radius-md .pe-skeleton__block{border-radius:12px}.pe-skeleton--radius-lg .pe-skeleton__block{border-radius:16px}.pe-skeleton--radius-full .pe-skeleton__block{border-radius:4096px}@keyframes pe-skeleton-shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
330
351
|
}
|
|
331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
332
353
|
type: Component,
|
|
333
354
|
args: [{ selector: 'pe-skeleton', standalone: true, imports: [CommonModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-skeleton\"\n [class.pe-skeleton--active]=\"show()\"\n [class.pe-skeleton--rect]=\"variant() === 'rect'\"\n [class.pe-skeleton--text]=\"variant() === 'text'\"\n [class]=\"radiusClass() || ''\"\n [style.width]=\"hostStyles().width\"\n [style.height]=\"hostStyles().height\"\n>\n <div class=\"pe-skeleton__content\">\n <ng-content />\n </div>\n\n @if (show()) {\n @if (variant() === 'text') {\n <div class=\"pe-skeleton__overlay pe-skeleton__overlay--text\">\n @for (lineWidth of lineWidths(); track trackByIndex($index)) {\n <div class=\"pe-skeleton__block pe-skeleton__block--line\" [style.width]=\"lineWidth\"></div>\n }\n </div>\n } @else {\n <div class=\"pe-skeleton__overlay pe-skeleton__overlay--rect\">\n <div class=\"pe-skeleton__block pe-skeleton__block--rect\"></div>\n </div>\n }\n }\n</div>\n\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-skeleton{position:relative;display:block;overflow:hidden}.pe-skeleton__content{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.pe-skeleton--active .pe-skeleton__content{opacity:0}.pe-skeleton__overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:4px;pointer-events:none}.pe-skeleton__block{display:block;width:100%;height:100%;border-radius:8px;background-color:#3b3b3b;background-image:linear-gradient(90deg,#fff0,#ffffff24,#fff0);background-size:200% 100%;animation:pe-skeleton-shimmer 1.2s infinite linear}.pe-skeleton__block--line{height:12px}.pe-skeleton__overlay--text .pe-skeleton__block--line:last-child{width:60%}.pe-skeleton--radius-xs .pe-skeleton__block{border-radius:4px}.pe-skeleton--radius-sm .pe-skeleton__block{border-radius:8px}.pe-skeleton--radius-md .pe-skeleton__block{border-radius:12px}.pe-skeleton--radius-lg .pe-skeleton__block{border-radius:16px}.pe-skeleton--radius-full .pe-skeleton__block{border-radius:4096px}@keyframes pe-skeleton-shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}\n"] }]
|
|
334
355
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], lines: [{ type: i0.Input, args: [{ isSignal: true, alias: "lines", required: false }] }], borderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadius", required: false }] }], show: [{ type: i0.Input, args: [{ isSignal: true, alias: "show", required: false }] }] } });
|
|
@@ -341,19 +362,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
341
362
|
*/
|
|
342
363
|
class AvatarComponent {
|
|
343
364
|
/** The size of the avatar */
|
|
344
|
-
size = input('md',
|
|
365
|
+
size = input('md', /* @ts-ignore */
|
|
366
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
345
367
|
/** The image source URL */
|
|
346
|
-
src = input(undefined,
|
|
368
|
+
src = input(undefined, /* @ts-ignore */
|
|
369
|
+
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
347
370
|
/** Fallback initials to display when image is not available */
|
|
348
|
-
initials = input(undefined,
|
|
371
|
+
initials = input(undefined, /* @ts-ignore */
|
|
372
|
+
...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
|
|
349
373
|
/** Fallback icon to display when image and initials are not available */
|
|
350
|
-
icon = input(undefined,
|
|
374
|
+
icon = input(undefined, /* @ts-ignore */
|
|
375
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
351
376
|
/** Alt text for the avatar image */
|
|
352
|
-
alt = input('',
|
|
377
|
+
alt = input('', /* @ts-ignore */
|
|
378
|
+
...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
|
|
353
379
|
/** Show a skeleton placeholder instead of content while loading. */
|
|
354
|
-
loading = input(false,
|
|
380
|
+
loading = input(false, /* @ts-ignore */
|
|
381
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
355
382
|
/** Internal signal to track image loading errors */
|
|
356
|
-
imageError = signal(false,
|
|
383
|
+
imageError = signal(false, /* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [{ debugName: "imageError" }] : /* istanbul ignore next */ []));
|
|
357
385
|
/** Computed icon size based on avatar size */
|
|
358
386
|
iconSize = computed(() => {
|
|
359
387
|
const sizeMap = {
|
|
@@ -363,7 +391,8 @@ class AvatarComponent {
|
|
|
363
391
|
xl: '8',
|
|
364
392
|
};
|
|
365
393
|
return sizeMap[this.size()];
|
|
366
|
-
},
|
|
394
|
+
}, /* @ts-ignore */
|
|
395
|
+
...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
367
396
|
constructor() {
|
|
368
397
|
// Reset image error when src changes
|
|
369
398
|
effect(() => {
|
|
@@ -375,8 +404,8 @@ class AvatarComponent {
|
|
|
375
404
|
handleImageError() {
|
|
376
405
|
this.imageError.set(true);
|
|
377
406
|
}
|
|
378
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
379
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
407
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
408
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: AvatarComponent, isStandalone: true, selector: "pe-avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
380
409
|
<pe-skeleton class="pe-avatar pe-avatar--{{ size() }}" [show]="loading()" variant="rect" borderRadius="full">
|
|
381
410
|
<div class="pe-avatar pe-avatar--{{ size() }}">
|
|
382
411
|
@if (src() && !imageError()) {
|
|
@@ -395,7 +424,7 @@ class AvatarComponent {
|
|
|
395
424
|
</pe-skeleton>
|
|
396
425
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border-radius:4096px;background-color:#ffffff1a;color:#fff}.pe-avatar--sm{width:32px;height:32px;min-width:32px}.pe-avatar--md{width:40px;height:40px;min-width:40px}.pe-avatar--lg{width:48px;height:48px;min-width:48px}.pe-avatar--xl{width:64px;height:64px;min-width:64px}.pe-avatar__image{width:100%;height:100%;object-fit:cover;object-position:center}.pe-avatar__initials{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;text-transform:uppercase;-webkit-user-select:none;user-select:none;line-height:1}.pe-avatar--sm .pe-avatar__initials{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800}.pe-avatar--md .pe-avatar__initials{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-avatar--lg .pe-avatar__initials{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800}.pe-avatar--xl .pe-avatar__initials{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-avatar .pe-icon{color:#ffffffb3}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
397
426
|
}
|
|
398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
399
428
|
type: Component,
|
|
400
429
|
args: [{ selector: 'pe-avatar', standalone: true, imports: [IconComponent, SkeletonComponent], template: `
|
|
401
430
|
<pe-skeleton class="pe-avatar pe-avatar--{{ size() }}" [show]="loading()" variant="rect" borderRadius="full">
|
|
@@ -425,28 +454,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
425
454
|
*/
|
|
426
455
|
class AvatarGroupComponent {
|
|
427
456
|
/** Array of avatar data to display */
|
|
428
|
-
avatars = input.required(
|
|
457
|
+
avatars = input.required(/* @ts-ignore */
|
|
458
|
+
...(ngDevMode ? [{ debugName: "avatars" }] : /* istanbul ignore next */ []));
|
|
429
459
|
/** The size of all avatars in the group */
|
|
430
|
-
size = input('md',
|
|
460
|
+
size = input('md', /* @ts-ignore */
|
|
461
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
431
462
|
/** Maximum number of avatars to display before showing overflow indicator */
|
|
432
|
-
maxVisible = input(null,
|
|
463
|
+
maxVisible = input(null, /* @ts-ignore */
|
|
464
|
+
...(ngDevMode ? [{ debugName: "maxVisible" }] : /* istanbul ignore next */ []));
|
|
433
465
|
/** Whether avatars should overlap (stacked) or have spacing between them */
|
|
434
|
-
stacked = input(false,
|
|
466
|
+
stacked = input(false, /* @ts-ignore */
|
|
467
|
+
...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
|
|
435
468
|
/** Computed list of visible avatars */
|
|
436
469
|
visibleAvatars = computed(() => {
|
|
437
470
|
const max = this.maxVisible();
|
|
438
471
|
const avatars = this.avatars();
|
|
439
472
|
return max !== null && max > 0 ? avatars.slice(0, max) : avatars;
|
|
440
|
-
},
|
|
473
|
+
}, /* @ts-ignore */
|
|
474
|
+
...(ngDevMode ? [{ debugName: "visibleAvatars" }] : /* istanbul ignore next */ []));
|
|
441
475
|
/** Computed count of remaining avatars not shown */
|
|
442
476
|
remainingCount = computed(() => {
|
|
443
477
|
const max = this.maxVisible();
|
|
444
478
|
if (max === null || max <= 0)
|
|
445
479
|
return 0;
|
|
446
480
|
return Math.max(0, this.avatars().length - max);
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
static
|
|
481
|
+
}, /* @ts-ignore */
|
|
482
|
+
...(ngDevMode ? [{ debugName: "remainingCount" }] : /* istanbul ignore next */ []));
|
|
483
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AvatarGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
484
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: AvatarGroupComponent, isStandalone: true, selector: "pe-avatar-group", inputs: { avatars: { classPropertyName: "avatars", publicName: "avatars", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, maxVisible: { classPropertyName: "maxVisible", publicName: "maxVisible", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
450
485
|
<div class="pe-avatar-group pe-avatar-group--{{this.size()}}"
|
|
451
486
|
[class.pe-avatar-group--stacked]="stacked()"
|
|
452
487
|
>
|
|
@@ -469,7 +504,7 @@ class AvatarGroupComponent {
|
|
|
469
504
|
</div>
|
|
470
505
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-avatar-group{display:inline-flex;align-items:center;flex-wrap:wrap}.pe-avatar-group__avatar{margin-left:-8px}.pe-avatar-group--sm .pe-avatar-group__avatar{margin-left:-4px}.pe-avatar-group--md .pe-avatar-group__avatar{margin-left:-8px}.pe-avatar-group--lg .pe-avatar-group__avatar,.pe-avatar-group--xl .pe-avatar-group__avatar{margin-left:-12px}.pe-avatar-group--stacked .pe-avatar{margin-left:0!important;border:2px solid #0a0a0a}.pe-avatar-group--stacked .pe-avatar:not(:first-child){margin-left:-8px}.pe-avatar-group--stacked.pe-avatar-group--sm .pe-avatar:not(:first-child){margin-left:-4px}.pe-avatar-group--stacked.pe-avatar-group--md .pe-avatar:not(:first-child){margin-left:-8px}.pe-avatar-group--stacked.pe-avatar-group--lg .pe-avatar:not(:first-child){margin-left:-12px}.pe-avatar-group--stacked.pe-avatar-group--xl .pe-avatar:not(:first-child){margin-left:-16px}.pe-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4096px;background-color:#ffffff1a;color:#fff;border:2px solid #0a0a0a}.pe-avatar-group__overflow--sm{width:32px;height:32px;min-width:32px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800}.pe-avatar-group__overflow--md{width:40px;height:40px;min-width:40px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-avatar-group__overflow--lg{width:48px;height:48px;min-width:48px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800}.pe-avatar-group__overflow--xl{width:64px;height:64px;min-width:64px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-avatar-group__overflow-text{-webkit-user-select:none;user-select:none;line-height:1}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "pe-avatar", inputs: ["size", "src", "initials", "icon", "alt", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
471
506
|
}
|
|
472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AvatarGroupComponent, decorators: [{
|
|
473
508
|
type: Component,
|
|
474
509
|
args: [{ selector: 'pe-avatar-group', standalone: true, imports: [AvatarComponent], template: `
|
|
475
510
|
<div class="pe-avatar-group pe-avatar-group--{{this.size()}}"
|
|
@@ -512,11 +547,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
512
547
|
*/
|
|
513
548
|
class BreadcrumbComponent {
|
|
514
549
|
/** Array of breadcrumb items to display */
|
|
515
|
-
items = input.required(
|
|
550
|
+
items = input.required(/* @ts-ignore */
|
|
551
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
516
552
|
/** Separator type between breadcrumb items */
|
|
517
|
-
separator = input('chevron_right',
|
|
553
|
+
separator = input('chevron_right', /* @ts-ignore */
|
|
554
|
+
...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
518
555
|
/** Maximum number of items to show before collapsing (for responsive behavior) */
|
|
519
|
-
maxItems = input(undefined,
|
|
556
|
+
maxItems = input(undefined, /* @ts-ignore */
|
|
557
|
+
...(ngDevMode ? [{ debugName: "maxItems" }] : /* istanbul ignore next */ []));
|
|
520
558
|
/** Check if an item is the last item */
|
|
521
559
|
isLastItem(index) {
|
|
522
560
|
return index === this.items().length - 1;
|
|
@@ -541,10 +579,10 @@ class BreadcrumbComponent {
|
|
|
541
579
|
return false;
|
|
542
580
|
return items.length > max + 1; // Show ellipsis if we're hiding items
|
|
543
581
|
}
|
|
544
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
545
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
583
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BreadcrumbComponent, isStandalone: true, selector: "pe-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<nav class=\"pe-breadcrumb\" aria-label=\"Breadcrumb\">\n <ol class=\"pe-breadcrumb__list\">\n @for (item of items(); track $index) {\n <li\n class=\"pe-breadcrumb__item\"\n [class.pe-breadcrumb__item--current]=\"isLastItem($index)\"\n [class.pe-breadcrumb__item--with-icon]=\"item.icon\"\n [class.pe-breadcrumb__item--hidden-mobile]=\"maxItems() && !shouldShowOnMobile($index)\"\n >\n @if (isLastItem($index)) {\n <span class=\"pe-breadcrumb__text\" aria-current=\"page\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </span>\n } @else {\n @if (item.href) {\n <a [href]=\"item.href\" class=\"pe-breadcrumb__link\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </a>\n } @else if (item.routerLink) {\n <a [routerLink]=\"item.routerLink\" class=\"pe-breadcrumb__link\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </a>\n } @else {\n <span class=\"pe-breadcrumb__text\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </span>\n }\n }\n\n @if (!isLastItem($index)) {\n <span class=\"pe-breadcrumb__separator\" aria-hidden=\"true\">\n @if (separator() === 'chevron_right') {\n <pe-icon icon=\"chevron_right\" size=\"5\" />\n } @else if (separator() === 'slash') {\n <span class=\"pe-breadcrumb__separator-text\">/</span>\n } @else if (separator() === 'dot') {\n <span class=\"pe-breadcrumb__separator-text\">\u00B7</span>\n }\n </span>\n }\n </li>\n }\n\n @if (shouldShowEllipsisOnMobile()) {\n <li class=\"pe-breadcrumb__item pe-breadcrumb__item--ellipsis\" aria-hidden=\"true\">\n <span class=\"pe-breadcrumb__ellipsis\">...</span>\n <span class=\"pe-breadcrumb__separator\" aria-hidden=\"true\">\n @if (separator() === 'chevron_right') {\n <pe-icon icon=\"chevron_right\" size=\"5\" />\n } @else if (separator() === 'slash') {\n <span class=\"pe-breadcrumb__separator-text\">/</span>\n } @else if (separator() === 'dot') {\n <span class=\"pe-breadcrumb__separator-text\">\u00B7</span>\n }\n </span>\n </li>\n }\n </ol>\n</nav>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-breadcrumb{display:flex;align-items:center;width:100%}.pe-breadcrumb__list{display:flex;align-items:center;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0}.pe-breadcrumb__item{display:flex;align-items:center;gap:4px}.pe-breadcrumb__item--current .pe-breadcrumb__text{color:#fff;font-weight:800}.pe-breadcrumb__item--with-icon .pe-breadcrumb__icon{flex-shrink:0}@media(max-width:1279px){.pe-breadcrumb__item--hidden-mobile{display:none}}@media(min-width:1024px){.pe-breadcrumb__item--ellipsis{display:none}}.pe-breadcrumb__link{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;display:inline-flex;align-items:center;gap:4px;color:#ffffffb3;text-decoration:none;transition:color .25s cubic-bezier(.4,0,.2,1)}.pe-breadcrumb__link:hover{color:#fff}.pe-breadcrumb__link:focus-visible{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px;border-radius:4px}.pe-breadcrumb__text{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;display:inline-flex;align-items:center;gap:4px;color:#fff}.pe-breadcrumb__icon{flex-shrink:0;color:inherit}.pe-breadcrumb__separator{display:inline-flex;align-items:center;color:#ffffff4d;margin:0 4px;flex-shrink:0}.pe-breadcrumb__separator-text{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;-webkit-user-select:none;user-select:none}.pe-breadcrumb__ellipsis{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;color:#ffffff4d;margin:0 4px;-webkit-user-select:none;user-select:none}@media(max-width:1279px){.pe-breadcrumb__list,.pe-breadcrumb__item{gap:4px}.pe-breadcrumb__link,.pe-breadcrumb__text{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:500}.pe-breadcrumb__separator{margin:0 4px}}@media(min-width:1024px)and (max-width:1279px){.pe-breadcrumb__list{gap:8px}.pe-breadcrumb__item{gap:4px}.pe-breadcrumb__separator{margin:0 8px}}@media(min-width:1280px){.pe-breadcrumb__list,.pe-breadcrumb__item{gap:8px}.pe-breadcrumb__separator{margin:0 8px}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
546
584
|
}
|
|
547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
548
586
|
type: Component,
|
|
549
587
|
args: [{ selector: 'pe-breadcrumb', standalone: true, imports: [IconComponent, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<nav class=\"pe-breadcrumb\" aria-label=\"Breadcrumb\">\n <ol class=\"pe-breadcrumb__list\">\n @for (item of items(); track $index) {\n <li\n class=\"pe-breadcrumb__item\"\n [class.pe-breadcrumb__item--current]=\"isLastItem($index)\"\n [class.pe-breadcrumb__item--with-icon]=\"item.icon\"\n [class.pe-breadcrumb__item--hidden-mobile]=\"maxItems() && !shouldShowOnMobile($index)\"\n >\n @if (isLastItem($index)) {\n <span class=\"pe-breadcrumb__text\" aria-current=\"page\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </span>\n } @else {\n @if (item.href) {\n <a [href]=\"item.href\" class=\"pe-breadcrumb__link\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </a>\n } @else if (item.routerLink) {\n <a [routerLink]=\"item.routerLink\" class=\"pe-breadcrumb__link\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </a>\n } @else {\n <span class=\"pe-breadcrumb__text\">\n @if (item.icon) {\n <pe-icon [icon]=\"item.icon\" size=\"5\" class=\"pe-breadcrumb__icon\" />\n }\n {{ item.label }}\n </span>\n }\n }\n\n @if (!isLastItem($index)) {\n <span class=\"pe-breadcrumb__separator\" aria-hidden=\"true\">\n @if (separator() === 'chevron_right') {\n <pe-icon icon=\"chevron_right\" size=\"5\" />\n } @else if (separator() === 'slash') {\n <span class=\"pe-breadcrumb__separator-text\">/</span>\n } @else if (separator() === 'dot') {\n <span class=\"pe-breadcrumb__separator-text\">\u00B7</span>\n }\n </span>\n }\n </li>\n }\n\n @if (shouldShowEllipsisOnMobile()) {\n <li class=\"pe-breadcrumb__item pe-breadcrumb__item--ellipsis\" aria-hidden=\"true\">\n <span class=\"pe-breadcrumb__ellipsis\">...</span>\n <span class=\"pe-breadcrumb__separator\" aria-hidden=\"true\">\n @if (separator() === 'chevron_right') {\n <pe-icon icon=\"chevron_right\" size=\"5\" />\n } @else if (separator() === 'slash') {\n <span class=\"pe-breadcrumb__separator-text\">/</span>\n } @else if (separator() === 'dot') {\n <span class=\"pe-breadcrumb__separator-text\">\u00B7</span>\n }\n </span>\n </li>\n }\n </ol>\n</nav>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-breadcrumb{display:flex;align-items:center;width:100%}.pe-breadcrumb__list{display:flex;align-items:center;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0}.pe-breadcrumb__item{display:flex;align-items:center;gap:4px}.pe-breadcrumb__item--current .pe-breadcrumb__text{color:#fff;font-weight:800}.pe-breadcrumb__item--with-icon .pe-breadcrumb__icon{flex-shrink:0}@media(max-width:1279px){.pe-breadcrumb__item--hidden-mobile{display:none}}@media(min-width:1024px){.pe-breadcrumb__item--ellipsis{display:none}}.pe-breadcrumb__link{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;display:inline-flex;align-items:center;gap:4px;color:#ffffffb3;text-decoration:none;transition:color .25s cubic-bezier(.4,0,.2,1)}.pe-breadcrumb__link:hover{color:#fff}.pe-breadcrumb__link:focus-visible{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px;border-radius:4px}.pe-breadcrumb__text{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;display:inline-flex;align-items:center;gap:4px;color:#fff}.pe-breadcrumb__icon{flex-shrink:0;color:inherit}.pe-breadcrumb__separator{display:inline-flex;align-items:center;color:#ffffff4d;margin:0 4px;flex-shrink:0}.pe-breadcrumb__separator-text{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;-webkit-user-select:none;user-select:none}.pe-breadcrumb__ellipsis{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500;color:#ffffff4d;margin:0 4px;-webkit-user-select:none;user-select:none}@media(max-width:1279px){.pe-breadcrumb__list,.pe-breadcrumb__item{gap:4px}.pe-breadcrumb__link,.pe-breadcrumb__text{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:500}.pe-breadcrumb__separator{margin:0 4px}}@media(min-width:1024px)and (max-width:1279px){.pe-breadcrumb__list{gap:8px}.pe-breadcrumb__item{gap:4px}.pe-breadcrumb__separator{margin:0 8px}}@media(min-width:1280px){.pe-breadcrumb__list,.pe-breadcrumb__item{gap:8px}.pe-breadcrumb__separator{margin:0 8px}}\n"] }]
|
|
550
588
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }] } });
|
|
@@ -559,15 +597,20 @@ const CSS_PREFIX = 'pe-';
|
|
|
559
597
|
class ButtonDirective {
|
|
560
598
|
baseClass = `${CSS_PREFIX}btn`;
|
|
561
599
|
/** The size variant of the button */
|
|
562
|
-
size = input('md',
|
|
600
|
+
size = input('md', /* @ts-ignore */
|
|
601
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
563
602
|
/** The theme variant of the button */
|
|
564
|
-
theme = input('fill-purple',
|
|
603
|
+
theme = input('fill-purple', /* @ts-ignore */
|
|
604
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
565
605
|
/** Whether the button only contains an icon */
|
|
566
|
-
iconOnly = input(false,
|
|
606
|
+
iconOnly = input(false, /* @ts-ignore */
|
|
607
|
+
...(ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []));
|
|
567
608
|
/** Whether the content should be stacked vertically */
|
|
568
|
-
vertical = input(false,
|
|
609
|
+
vertical = input(false, /* @ts-ignore */
|
|
610
|
+
...(ngDevMode ? [{ debugName: "vertical" }] : /* istanbul ignore next */ []));
|
|
569
611
|
/** Computed property for vertical state */
|
|
570
|
-
shouldBeVertical = computed(() => this.vertical() && this.size() === 'lg',
|
|
612
|
+
shouldBeVertical = computed(() => this.vertical() && this.size() === 'lg', /* @ts-ignore */
|
|
613
|
+
...(ngDevMode ? [{ debugName: "shouldBeVertical" }] : /* istanbul ignore next */ []));
|
|
571
614
|
/** All computed classes based on current state */
|
|
572
615
|
allClasses = computed(() => {
|
|
573
616
|
const classes = [this.baseClass]; // Base class
|
|
@@ -580,11 +623,12 @@ class ButtonDirective {
|
|
|
580
623
|
classes.push(`${this.baseClass}--vertical`);
|
|
581
624
|
}
|
|
582
625
|
return classes;
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
static
|
|
626
|
+
}, /* @ts-ignore */
|
|
627
|
+
...(ngDevMode ? [{ debugName: "allClasses" }] : /* istanbul ignore next */ []));
|
|
628
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
629
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: ButtonDirective, isStandalone: true, selector: "[peButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "\"button\"", "class": "allClasses()" } }, ngImport: i0 });
|
|
586
630
|
}
|
|
587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
588
632
|
type: Directive,
|
|
589
633
|
args: [{
|
|
590
634
|
selector: '[peButton]',
|
|
@@ -603,19 +647,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
603
647
|
*/
|
|
604
648
|
class ButtonComponent {
|
|
605
649
|
/** The size of the button */
|
|
606
|
-
size = input('md',
|
|
650
|
+
size = input('md', /* @ts-ignore */
|
|
651
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
607
652
|
/** The visual theme of the button */
|
|
608
|
-
theme = input('fill-purple',
|
|
653
|
+
theme = input('fill-purple', /* @ts-ignore */
|
|
654
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
609
655
|
/** Whether the button only contains an icon */
|
|
610
|
-
iconOnly = input(false,
|
|
656
|
+
iconOnly = input(false, /* @ts-ignore */
|
|
657
|
+
...(ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []));
|
|
611
658
|
/** Whether the button content should be stacked vertically (only applies to lg size) */
|
|
612
|
-
vertical = input(false,
|
|
659
|
+
vertical = input(false, /* @ts-ignore */
|
|
660
|
+
...(ngDevMode ? [{ debugName: "vertical" }] : /* istanbul ignore next */ []));
|
|
613
661
|
/** Whether the button is disabled */
|
|
614
|
-
disabled = input(false,
|
|
662
|
+
disabled = input(false, /* @ts-ignore */
|
|
663
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
615
664
|
/** The button type attribute */
|
|
616
|
-
type = input('button',
|
|
665
|
+
type = input('button', /* @ts-ignore */
|
|
666
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
617
667
|
/** Optional aria-label for accessibility */
|
|
618
|
-
ariaLabel = input(undefined,
|
|
668
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
669
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
619
670
|
/** Click event emitter with proper type safety */
|
|
620
671
|
buttonClick = output();
|
|
621
672
|
/** Handles the click event and prevents it if button is disabled */
|
|
@@ -627,8 +678,8 @@ class ButtonComponent {
|
|
|
627
678
|
}
|
|
628
679
|
this.buttonClick.emit(event);
|
|
629
680
|
}
|
|
630
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
631
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
682
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: ButtonComponent, isStandalone: true, selector: "pe-button", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: `
|
|
632
683
|
<button
|
|
633
684
|
peButton
|
|
634
685
|
[attr.type]="type()"
|
|
@@ -644,7 +695,7 @@ class ButtonComponent {
|
|
|
644
695
|
</button>
|
|
645
696
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-btn{border:none;cursor:pointer;padding:0;text-decoration-line:none;overflow:visible;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;box-sizing:border-box;width:100%;color:#fff}.pe-btn:focus-visible,.pe-btn:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-btn{transition:color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1)}.pe-btn[disabled],.pe-btn:disabled{cursor:not-allowed;color:#ffffff4d}.pe-btn--sm{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800;height:32px;min-width:96px;padding:8px 12px;border-radius:8px;gap:4px}.pe-btn--sm.pe-btn--icon-only{min-width:32px}.pe-btn--sm .pe-icon{font-size:20px;line-height:20px}.pe-btn--md{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;height:40px;min-width:112px;padding:8px 16px;border-radius:12px;gap:8px}.pe-btn--md.pe-btn--icon-only{min-width:40px}.pe-btn--md .pe-icon{font-size:24px;line-height:24px}.pe-btn--lg{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800;height:48px;min-width:144px;padding:8px 32px;border-radius:16px;gap:12px}.pe-btn--lg.pe-btn--icon-only{min-width:48px}.pe-btn--lg .pe-icon{font-size:28px;line-height:28px}.pe-btn--lg.pe-btn--vertical{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;flex-direction:column;height:auto;width:164px;padding:16px 32px;border-radius:24px;gap:8px}.pe-btn--xl{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800;height:64px;min-width:144px;padding:8px 16px;border-radius:16px;gap:12px}.pe-btn--xl.pe-btn--icon-only{min-width:48px}.pe-btn--xl .pe-icon{font-size:32px;line-height:32px}.pe-btn--icon-only{padding:0}.pe-btn--fill-purple{background-color:#6f3de0;color:inherit}.pe-btn--fill-purple:hover{background-color:#7e4af7}.pe-btn--fill-purple:active{background-color:#5935af}.pe-btn--fill-purple:selected{background-color:#7e4af7}.pe-btn--fill-purple:disabled,.pe-btn--fill-purple[disabled]{background-color:#232323}.pe-btn--fill-purple{color:#fff}.pe-btn--fill-white{background-color:#fff;color:inherit}.pe-btn--fill-white:hover{background-color:#e7e7e7}.pe-btn--fill-white:active{background-color:#fff}.pe-btn--fill-white:selected{background-color:#fff}.pe-btn--fill-white:disabled,.pe-btn--fill-white[disabled]{background-color:#232323}.pe-btn--fill-white{color:#000}.pe-btn--fill-yellow{background-color:#ffe9a3;color:inherit}.pe-btn--fill-yellow:hover{background-color:#fff1c1}.pe-btn--fill-yellow:active{background-color:#ffe58f}.pe-btn--fill-yellow:selected{background-color:#fff1c1}.pe-btn--fill-yellow:disabled,.pe-btn--fill-yellow[disabled]{background-color:#232323}.pe-btn--fill-yellow{color:#000}.pe-btn--fill-red{background-color:#c33a3a;color:inherit}.pe-btn--fill-red:hover{background-color:#d64040}.pe-btn--fill-red:active{background-color:#982d2d}.pe-btn--fill-red:selected{background-color:#d64040}.pe-btn--fill-red:disabled,.pe-btn--fill-red[disabled]{background-color:#232323}.pe-btn--fill-red{color:#fff}.pe-btn--transparent-purple{background-color:#a781ff33;color:inherit}.pe-btn--transparent-purple:hover{background-color:#a781ff4d}.pe-btn--transparent-purple:active{background-color:#a781ff33}.pe-btn--transparent-purple:selected{background-color:#a781ff4d}.pe-btn--transparent-purple:disabled,.pe-btn--transparent-purple[disabled]{background-color:#ffffff0d}.pe-btn--transparent-purple{color:#c2a8ff}.pe-btn--transparent-white{background-color:#ffffff1a;color:inherit}.pe-btn--transparent-white:hover{background-color:#fff3}.pe-btn--transparent-white:active{background-color:#ffffff1a}.pe-btn--transparent-white:selected{background-color:#fff3}.pe-btn--transparent-white:disabled,.pe-btn--transparent-white[disabled]{background-color:#ffffff0d}.pe-btn--transparent-white{color:#fff}.pe-btn--transparent-red{background-color:#f3707033;color:inherit}.pe-btn--transparent-red:hover{background-color:#f370704d}.pe-btn--transparent-red:active{background-color:#f3707033}.pe-btn--transparent-red:selected{background-color:#f370704d}.pe-btn--transparent-red:disabled,.pe-btn--transparent-red[disabled]{background-color:#ffffff0d}.pe-btn--transparent-red{color:#f69d9d}.pe-btn--transparent-black{background-color:#0000004d;color:inherit}.pe-btn--transparent-black:hover{background-color:#00000080}.pe-btn--transparent-black:active{background-color:#000000b3}.pe-btn--transparent-black:selected{background-color:#00000080}.pe-btn--transparent-black:disabled,.pe-btn--transparent-black[disabled]{background-color:#ffffff0d}.pe-btn--transparent-black{color:#fff}.pe-btn--ghost-purple:hover{background-color:#a781ff4d}.pe-btn--ghost-purple:active{background-color:#a781ff33}.pe-btn--ghost-purple:selected{background-color:#a781ff4d}.pe-btn--ghost-purple{background-color:#a781ff00;color:inherit}.pe-btn--ghost-purple:disabled,.pe-btn--ghost-purple[disabled]{background-color:#a781ff00}.pe-btn--ghost-purple{color:#c2a8ff}.pe-btn--ghost-white:hover{background-color:#fff3}.pe-btn--ghost-white:active{background-color:#ffffff1a}.pe-btn--ghost-white:selected{background-color:#fff3}.pe-btn--ghost-white{background-color:#fff0;color:inherit}.pe-btn--ghost-white:disabled,.pe-btn--ghost-white[disabled]{background-color:#fff0}.pe-btn--ghost-white{color:#ffffffb3}.pe-btn--ghost-white:active,.pe-btn--ghost-white:hover{color:#fff}.pe-btn--ghost-red:hover{background-color:#f370704d}.pe-btn--ghost-red:active{background-color:#f3707033}.pe-btn--ghost-red:selected{background-color:#f370704d}.pe-btn--ghost-red{background-color:#f3707000;color:inherit}.pe-btn--ghost-red:disabled,.pe-btn--ghost-red[disabled]{background-color:#f3707000}.pe-btn--ghost-red{color:#f69d9d}.pe-btn--ghost-green:hover{background-color:#50c06c4d}.pe-btn--ghost-green:active{background-color:#50c06c33}.pe-btn--ghost-green:selected{background-color:#50c06c4d}.pe-btn--ghost-green{background-color:#50c06c00;color:inherit}.pe-btn--ghost-green:disabled,.pe-btn--ghost-green[disabled]{background-color:#50c06c00}.pe-btn--ghost-green{color:#7edc96}.pe-btn--outline-white,.pe-btn--outline-purple,.pe-btn--outline-red,.pe-btn--outline-green{transition:color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1)}.pe-btn--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-btn--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-btn--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-btn--outline-white:disabled,.pe-btn--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-btn--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-btn--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-btn--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-btn--outline-purple:disabled,.pe-btn--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-btn--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-btn--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-btn--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-btn--outline-red:disabled,.pe-btn--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-btn--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-btn--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-btn--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-btn--outline-green:disabled,.pe-btn--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}\n"], dependencies: [{ kind: "directive", type: ButtonDirective, selector: "[peButton]", inputs: ["size", "theme", "iconOnly", "vertical"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
646
697
|
}
|
|
647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
648
699
|
type: Component,
|
|
649
700
|
args: [{ selector: 'pe-button', standalone: true, imports: [ButtonDirective], template: `
|
|
650
701
|
<button
|
|
@@ -692,12 +743,16 @@ function getFormFieldDescribedBy(helperId, errorId, hasHelperText, hasError, has
|
|
|
692
743
|
* Renders label text and optional required indicator.
|
|
693
744
|
*/
|
|
694
745
|
class FormFieldLabelComponent {
|
|
695
|
-
label = input(null,
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
746
|
+
label = input(null, /* @ts-ignore */
|
|
747
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
748
|
+
required = input(false, /* @ts-ignore */
|
|
749
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
750
|
+
for = input('', /* @ts-ignore */
|
|
751
|
+
...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
|
|
752
|
+
size = input('md', /* @ts-ignore */
|
|
753
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormFieldLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
755
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: FormFieldLabelComponent, isStandalone: true, selector: "pe-form-field-label", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
701
756
|
@if (label()) {
|
|
702
757
|
<label
|
|
703
758
|
[attr.for]="for()"
|
|
@@ -712,7 +767,7 @@ class FormFieldLabelComponent {
|
|
|
712
767
|
}
|
|
713
768
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-form-field__label{color:#fff;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-form-field__label--sm{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800}.pe-form-field__label--md{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-form-field__label--lg{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800}.pe-form-field__label--xl{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-form-field__helper-text{color:#ffffff80;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-form-field__helper-text--error{color:#f69d9d}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
714
769
|
}
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormFieldLabelComponent, decorators: [{
|
|
716
771
|
type: Component,
|
|
717
772
|
args: [{ selector: 'pe-form-field-label', standalone: true, template: `
|
|
718
773
|
@if (label()) {
|
|
@@ -735,12 +790,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
735
790
|
* Shows error text when in error state, otherwise helper text.
|
|
736
791
|
*/
|
|
737
792
|
class FormFieldHelperComponent {
|
|
738
|
-
id = input.required(
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
793
|
+
id = input.required(/* @ts-ignore */
|
|
794
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
795
|
+
helperText = input(null, /* @ts-ignore */
|
|
796
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
797
|
+
errorText = input(null, /* @ts-ignore */
|
|
798
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
799
|
+
error = input(false, /* @ts-ignore */
|
|
800
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
801
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormFieldHelperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
802
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: FormFieldHelperComponent, isStandalone: true, selector: "pe-form-field-helper", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
744
803
|
<span
|
|
745
804
|
[id]="id()"
|
|
746
805
|
class="pe-form-field__helper-text"
|
|
@@ -754,7 +813,7 @@ class FormFieldHelperComponent {
|
|
|
754
813
|
</span>
|
|
755
814
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-form-field__label{color:#fff;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-form-field__label--sm{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800}.pe-form-field__label--md{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800}.pe-form-field__label--lg{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800}.pe-form-field__label--xl{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-form-field__helper-text{color:#ffffff80;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-form-field__helper-text--error{color:#f69d9d}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
756
815
|
}
|
|
757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FormFieldHelperComponent, decorators: [{
|
|
758
817
|
type: Component,
|
|
759
818
|
args: [{ selector: 'pe-form-field-helper', standalone: true, template: `
|
|
760
819
|
<span
|
|
@@ -776,29 +835,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
776
835
|
* Use [(value)] or [formField]="myForm().date". Form model field should be Date | null.
|
|
777
836
|
*/
|
|
778
837
|
class CalendarComponent {
|
|
779
|
-
mode = input('date',
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
838
|
+
mode = input('date', /* @ts-ignore */
|
|
839
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
840
|
+
value = model(null, /* @ts-ignore */
|
|
841
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
842
|
+
size = input('md', /* @ts-ignore */
|
|
843
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
844
|
+
error = input(false, /* @ts-ignore */
|
|
845
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
846
|
+
disabled = input(false, /* @ts-ignore */
|
|
847
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
848
|
+
readOnly = input(false, /* @ts-ignore */
|
|
849
|
+
...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
850
|
+
required = input(false, /* @ts-ignore */
|
|
851
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
852
|
+
placeholder = input('', /* @ts-ignore */
|
|
853
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
854
|
+
label = input(null, /* @ts-ignore */
|
|
855
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
856
|
+
helperText = input(null, /* @ts-ignore */
|
|
857
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
858
|
+
errorText = input(null, /* @ts-ignore */
|
|
859
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
860
|
+
minDate = input(null, /* @ts-ignore */
|
|
861
|
+
...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
|
|
862
|
+
maxDate = input(null, /* @ts-ignore */
|
|
863
|
+
...(ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []));
|
|
864
|
+
minTime = input(null, /* @ts-ignore */
|
|
865
|
+
...(ngDevMode ? [{ debugName: "minTime" }] : /* istanbul ignore next */ []));
|
|
866
|
+
maxTime = input(null, /* @ts-ignore */
|
|
867
|
+
...(ngDevMode ? [{ debugName: "maxTime" }] : /* istanbul ignore next */ []));
|
|
868
|
+
locale = input('en-US', /* @ts-ignore */
|
|
869
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
870
|
+
showCalendarIcon = input(true, /* @ts-ignore */
|
|
871
|
+
...(ngDevMode ? [{ debugName: "showCalendarIcon" }] : /* istanbul ignore next */ []));
|
|
872
|
+
invalid = input(false, /* @ts-ignore */
|
|
873
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
874
|
+
errors = input([], /* @ts-ignore */
|
|
875
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
798
876
|
ids = createFormFieldIds('pe-calendar');
|
|
799
|
-
isOpen = signal(false,
|
|
800
|
-
|
|
801
|
-
|
|
877
|
+
isOpen = signal(false, /* @ts-ignore */
|
|
878
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
879
|
+
currentMonth = signal(new Date(), /* @ts-ignore */
|
|
880
|
+
...(ngDevMode ? [{ debugName: "currentMonth" }] : /* istanbul ignore next */ []));
|
|
881
|
+
selectedTime = signal(null, /* @ts-ignore */
|
|
882
|
+
...(ngDevMode ? [{ debugName: "selectedTime" }] : /* istanbul ignore next */ []));
|
|
802
883
|
buttonSize = computed(() => {
|
|
803
884
|
const size = this.size();
|
|
804
885
|
if (size === 'sm')
|
|
@@ -810,7 +891,8 @@ class CalendarComponent {
|
|
|
810
891
|
if (size === 'xl')
|
|
811
892
|
return 'xl';
|
|
812
893
|
return 'md';
|
|
813
|
-
},
|
|
894
|
+
}, /* @ts-ignore */
|
|
895
|
+
...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
|
|
814
896
|
iconSize = computed(() => {
|
|
815
897
|
const size = this.size();
|
|
816
898
|
if (size === 'sm')
|
|
@@ -821,7 +903,8 @@ class CalendarComponent {
|
|
|
821
903
|
return '8';
|
|
822
904
|
// xl calendar uses a slightly larger icon
|
|
823
905
|
return '10';
|
|
824
|
-
},
|
|
906
|
+
}, /* @ts-ignore */
|
|
907
|
+
...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
825
908
|
defaultPlaceholder = computed(() => {
|
|
826
909
|
const mode = this.mode();
|
|
827
910
|
if (this.placeholder())
|
|
@@ -831,7 +914,8 @@ class CalendarComponent {
|
|
|
831
914
|
if (mode === 'time')
|
|
832
915
|
return 'Select time';
|
|
833
916
|
return 'Select date and time';
|
|
834
|
-
},
|
|
917
|
+
}, /* @ts-ignore */
|
|
918
|
+
...(ngDevMode ? [{ debugName: "defaultPlaceholder" }] : /* istanbul ignore next */ []));
|
|
835
919
|
displayValue = computed(() => {
|
|
836
920
|
const val = this.value();
|
|
837
921
|
if (!val)
|
|
@@ -860,11 +944,15 @@ class CalendarComponent {
|
|
|
860
944
|
minute: '2-digit',
|
|
861
945
|
hour12: false,
|
|
862
946
|
}).format(val);
|
|
863
|
-
},
|
|
864
|
-
|
|
947
|
+
}, /* @ts-ignore */
|
|
948
|
+
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
949
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
950
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
865
951
|
resolvedErrorText = computed(() => this.errorText() ||
|
|
866
|
-
(this.hasError() && this.errors().length ? (this.errors()[0]?.message ?? null) : null),
|
|
867
|
-
|
|
952
|
+
(this.hasError() && this.errors().length ? (this.errors()[0]?.message ?? null) : null), /* @ts-ignore */
|
|
953
|
+
...(ngDevMode ? [{ debugName: "resolvedErrorText" }] : /* istanbul ignore next */ []));
|
|
954
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.resolvedErrorText()), /* @ts-ignore */
|
|
955
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
868
956
|
calendarDays = computed(() => {
|
|
869
957
|
const month = this.currentMonth();
|
|
870
958
|
const selected = this.value();
|
|
@@ -894,41 +982,46 @@ class CalendarComponent {
|
|
|
894
982
|
current.setDate(current.getDate() + 1);
|
|
895
983
|
}
|
|
896
984
|
return days;
|
|
897
|
-
},
|
|
985
|
+
}, /* @ts-ignore */
|
|
986
|
+
...(ngDevMode ? [{ debugName: "calendarDays" }] : /* istanbul ignore next */ []));
|
|
898
987
|
monthYearLabel = computed(() => {
|
|
899
988
|
const month = this.currentMonth();
|
|
900
989
|
return new Intl.DateTimeFormat(this.locale(), {
|
|
901
990
|
month: 'long',
|
|
902
991
|
year: 'numeric',
|
|
903
992
|
}).format(month);
|
|
904
|
-
},
|
|
993
|
+
}, /* @ts-ignore */
|
|
994
|
+
...(ngDevMode ? [{ debugName: "monthYearLabel" }] : /* istanbul ignore next */ []));
|
|
905
995
|
hourOptions = computed(() => {
|
|
906
996
|
const hours = [];
|
|
907
997
|
for (let i = 0; i < 24; i++) {
|
|
908
998
|
hours.push(i);
|
|
909
999
|
}
|
|
910
1000
|
return hours;
|
|
911
|
-
},
|
|
1001
|
+
}, /* @ts-ignore */
|
|
1002
|
+
...(ngDevMode ? [{ debugName: "hourOptions" }] : /* istanbul ignore next */ []));
|
|
912
1003
|
minuteOptions = computed(() => {
|
|
913
1004
|
const minutes = [];
|
|
914
1005
|
for (let i = 0; i < 60; i += 5) {
|
|
915
1006
|
minutes.push(i);
|
|
916
1007
|
}
|
|
917
1008
|
return minutes;
|
|
918
|
-
},
|
|
1009
|
+
}, /* @ts-ignore */
|
|
1010
|
+
...(ngDevMode ? [{ debugName: "minuteOptions" }] : /* istanbul ignore next */ []));
|
|
919
1011
|
selectedHour = computed(() => {
|
|
920
1012
|
const val = this.value();
|
|
921
1013
|
if (!val)
|
|
922
1014
|
return this.selectedTime()?.hour ?? 0;
|
|
923
1015
|
return val.getHours();
|
|
924
|
-
},
|
|
1016
|
+
}, /* @ts-ignore */
|
|
1017
|
+
...(ngDevMode ? [{ debugName: "selectedHour" }] : /* istanbul ignore next */ []));
|
|
925
1018
|
selectedMinute = computed(() => {
|
|
926
1019
|
const val = this.value();
|
|
927
1020
|
if (!val)
|
|
928
1021
|
return this.selectedTime()?.minute ?? 0;
|
|
929
1022
|
return val.getMinutes();
|
|
930
|
-
},
|
|
931
|
-
|
|
1023
|
+
}, /* @ts-ignore */
|
|
1024
|
+
...(ngDevMode ? [{ debugName: "selectedMinute" }] : /* istanbul ignore next */ []));
|
|
932
1025
|
opened = output();
|
|
933
1026
|
closed = output();
|
|
934
1027
|
constructor() {
|
|
@@ -1033,7 +1126,6 @@ class CalendarComponent {
|
|
|
1033
1126
|
newDate.setHours(time.hour, time.minute, 0, 0);
|
|
1034
1127
|
}
|
|
1035
1128
|
this.value.set(newDate);
|
|
1036
|
-
this.valueChange.emit(newDate);
|
|
1037
1129
|
if (mode === 'date') {
|
|
1038
1130
|
this.closeMenuViaEscape();
|
|
1039
1131
|
}
|
|
@@ -1055,7 +1147,6 @@ class CalendarComponent {
|
|
|
1055
1147
|
newDate.setHours(hour, minute, 0, 0);
|
|
1056
1148
|
}
|
|
1057
1149
|
this.value.set(newDate);
|
|
1058
|
-
this.valueChange.emit(newDate);
|
|
1059
1150
|
if (mode === 'time' || mode === 'datetime') {
|
|
1060
1151
|
this.closeMenuViaEscape();
|
|
1061
1152
|
}
|
|
@@ -1077,7 +1168,6 @@ class CalendarComponent {
|
|
|
1077
1168
|
}
|
|
1078
1169
|
clear() {
|
|
1079
1170
|
this.value.set(null);
|
|
1080
|
-
this.valueChange.emit(null);
|
|
1081
1171
|
this.selectedTime.set(null);
|
|
1082
1172
|
}
|
|
1083
1173
|
open() {
|
|
@@ -1102,10 +1192,10 @@ class CalendarComponent {
|
|
|
1102
1192
|
const trigger = document.getElementById(this.ids.controlId);
|
|
1103
1193
|
trigger?.focus();
|
|
1104
1194
|
}
|
|
1105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1106
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: CalendarComponent, isStandalone: true, selector: "pe-calendar", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, showCalendarIcon: { classPropertyName: "showCalendarIcon", publicName: "showCalendarIcon", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChange: "valueChange", opened: "opened", closed: "closed" }, ngImport: i0, template: "<div\n class=\"pe-calendar pe-calendar--{{ mode() }} pe-calendar--{{ size() }}\"\n [class.pe-calendar--error]=\"hasError()\"\n [class.pe-calendar--disabled]=\"disabled()\"\n [class.pe-calendar--read-only]=\"readOnly()\"\n [class.pe-calendar--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-calendar__trigger-group\" [class.pe-calendar__trigger-group--focused]=\"isOpen()\">\n <button\n type=\"button\"\n [id]=\"ids.controlId\"\n class=\"pe-calendar__trigger\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"ids.controlId + '-menu'\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <span\n class=\"pe-calendar__trigger-text\"\n [class.pe-calendar__trigger-text--placeholder]=\"!displayValue()\"\n >\n @if (displayValue()) {\n {{ displayValue() }}\n } @else {\n {{ defaultPlaceholder() }}\n }\n </span>\n </button>\n\n @if (showCalendarIcon()) {\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [size]=\"buttonSize()\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n class=\"pe-calendar__icon-button\"\n ariaLabel=\"Open calendar\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <pe-icon icon=\"calendar\" [size]=\"iconSize()\" />\n </pe-button>\n }\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"resolvedErrorText()\"\n [error]=\"hasError()\"\n />\n\n <ng-template #calendarMenu>\n <div cdkMenu class=\"pe-calendar__popup\" [id]=\"ids.controlId + '-menu'\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <div class=\"pe-calendar__date-picker\">\n <div class=\"pe-calendar__header\">\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Previous month\"\n (buttonClick)=\"previousMonth()\"\n >\n <pe-icon icon=\"chevron_left\" size=\"6\" />\n </pe-button>\n <div class=\"pe-calendar__month-year\">{{ monthYearLabel() }}</div>\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Next month\"\n (buttonClick)=\"nextMonth()\"\n >\n <pe-icon icon=\"chevron_right\" size=\"6\" />\n </pe-button>\n </div>\n\n <div class=\"pe-calendar__weekdays\">\n @for (day of ['S', 'M', 'T', 'W', 'T', 'F', 'S']; track $index) {\n <div class=\"pe-calendar__weekday\">{{ day }}</div>\n }\n </div>\n\n <div class=\"pe-calendar__days\">\n @for (day of calendarDays(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"pe-calendar__day\"\n [class.pe-calendar__day--current-month]=\"day.isCurrentMonth\"\n [class.pe-calendar__day--today]=\"day.isToday\"\n [class.pe-calendar__day--selected]=\"day.isSelected\"\n [class.pe-calendar__day--disabled]=\"day.isDisabled\"\n [disabled]=\"day.isDisabled\"\n (click)=\"selectDate(day.date)\"\n >\n {{ day.date.getDate() }}\n </button>\n }\n </div>\n </div>\n }\n\n @if (mode() === 'time' || mode() === 'datetime') {\n <div class=\"pe-calendar__time-picker\">\n <div class=\"pe-calendar__time-controls\">\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedHour()\"\n (change)=\"selectTime(+$any($event.target).value, selectedMinute())\"\n >\n @for (hour of hourOptions(); track hour) {\n <option [value]=\"hour\" [disabled]=\"isTimeDisabled(hour, selectedMinute())\">\n {{ hour.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n <span class=\"pe-calendar__time-separator\">:</span>\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedMinute()\"\n (change)=\"selectTime(selectedHour(), +$any($event.target).value)\"\n >\n @for (minute of minuteOptions(); track minute) {\n <option [value]=\"minute\" [disabled]=\"isTimeDisabled(selectedHour(), minute)\">\n {{ minute.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n </div>\n </div>\n }\n\n <div class=\"pe-calendar__actions\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"selectToday()\">\n Today\n </pe-button>\n }\n @if (value()) {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"clear()\">\n Clear\n </pe-button>\n }\n </div>\n </div>\n </ng-template>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-calendar{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-calendar__trigger-group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar__trigger-group--focused{border-color:#ffffff80}.pe-calendar:not(.pe-calendar--disabled) .pe-calendar__trigger-group:hover{border-color:#ffffff4d}.pe-calendar__trigger{all:unset;flex:1;cursor:pointer;text-align:left;background:transparent;border:none;padding:0}.pe-calendar__trigger-text{display:block;color:#fff}.pe-calendar__trigger-text--placeholder{color:#ffffff80}.pe-calendar__trigger:disabled .pe-calendar__trigger-text{color:#ffffff4d;cursor:not-allowed}.pe-calendar__icon-button{flex-shrink:0}.pe-calendar__trigger-group--focused .pe-btn:focus-visible,.pe-calendar__trigger-group--focused .pe-btn:focus{outline:none}.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-visible,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-within,.pe-calendar__trigger-group--focused .pe-calendar__trigger:hover,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus{outline:none}.pe-calendar__popup{display:flex;flex-direction:column;gap:16px;background-color:#232323;border:2px solid rgba(255,255,255,.1);border-radius:16px;padding:16px;min-width:160px;max-width:512px}.pe-calendar__date-picker{display:flex;flex-direction:column;gap:12px}.pe-calendar__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.pe-calendar__month-year{flex:1;text-align:center;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__weekday{text-align:center;color:#ffffff80;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800;padding:4px}.pe-calendar__days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__day{all:unset;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:#fff;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;transition:background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1);min-height:32px}.pe-calendar__day--current-month{color:#fff}.pe-calendar__day:not(.pe-calendar__day--current-month){color:#ffffff80}.pe-calendar__day--today{border:2px solid #c2a8ff}.pe-calendar__day--selected{background-color:#6f3de0;border-color:#6f3de0;color:#fff}.pe-calendar__day--disabled{color:#ffffff4d;cursor:not-allowed;pointer-events:none}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover{background-color:#ffffff1a;color:inherit}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:hover{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:active{background-color:#ffffff1a}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:selected{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:disabled,.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover[disabled]{background-color:#ffffff0d}.pe-calendar__time-picker{display:flex;flex-direction:column;gap:8px}.pe-calendar__time-controls{display:flex;align-items:center;justify-content:center;gap:8px}.pe-calendar__time-select{appearance:none;background-color:transparent;border:2px solid rgba(255,255,255,.1);border-radius:8px;min-width:48px;height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#fff;cursor:pointer;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-calendar__time-select:hover:not(:disabled){border-color:#ffffff4d}.pe-calendar__time-select:focus{outline:none;border-color:#ffffff80}.pe-calendar__time-select:disabled{color:#ffffff4d;cursor:not-allowed;border-color:#ffffff1a;background-color:transparent}.pe-calendar__time-select option{background-color:#232323;color:#fff}.pe-calendar__time-select option:disabled{color:#ffffff4d}.pe-calendar__time-separator{color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__actions{display:flex;gap:8px;justify-content:flex-end;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.pe-calendar--sm .pe-calendar__trigger-group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-calendar--sm .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;min-height:24px}.pe-calendar--md .pe-calendar__trigger-group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar--md .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;min-height:32px}.pe-calendar--lg .pe-calendar__trigger-group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-calendar--lg .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;min-height:40px}.pe-calendar--xl .pe-calendar__trigger-group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-calendar--xl .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400;min-height:48px}.pe-calendar--error .pe-calendar__trigger-group{border:2px solid #f69d9d}.pe-calendar--disabled .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--disabled .pe-calendar__trigger,.pe-calendar--disabled .pe-calendar__trigger:disabled::placeholder{color:#ffffff4d}.pe-calendar--read-only .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--read-only .pe-calendar__trigger,.pe-calendar--read-only .pe-calendar__trigger:read-only::placeholder{color:#ffffffb3}@media(max-width:767px){.pe-calendar__popup{min-width:auto;width:calc(100vw - 32px);max-width:calc(100vw - 32px);box-sizing:border-box;overflow-x:hidden;position:relative}.pe-calendar__day{min-height:24px}}@media(max-width:1023px){.pe-calendar :host ::ng-deep .cdk-overlay-pane{max-width:calc(100vw - 32px)!important;margin-left:16px!important;margin-right:16px!important}}\n"], dependencies: [{ kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData", "cdkMenuTriggerTransformOriginOn"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }, { kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1195
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1196
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CalendarComponent, isStandalone: true, selector: "pe-calendar", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, showCalendarIcon: { classPropertyName: "showCalendarIcon", publicName: "showCalendarIcon", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, ngImport: i0, template: "<div\n class=\"pe-calendar pe-calendar--{{ mode() }} pe-calendar--{{ size() }}\"\n [class.pe-calendar--error]=\"hasError()\"\n [class.pe-calendar--disabled]=\"disabled()\"\n [class.pe-calendar--read-only]=\"readOnly()\"\n [class.pe-calendar--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-calendar__trigger-group\" [class.pe-calendar__trigger-group--focused]=\"isOpen()\">\n <button\n type=\"button\"\n [id]=\"ids.controlId\"\n class=\"pe-calendar__trigger\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"ids.controlId + '-menu'\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <span\n class=\"pe-calendar__trigger-text\"\n [class.pe-calendar__trigger-text--placeholder]=\"!displayValue()\"\n >\n @if (displayValue()) {\n {{ displayValue() }}\n } @else {\n {{ defaultPlaceholder() }}\n }\n </span>\n </button>\n\n @if (showCalendarIcon()) {\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [size]=\"buttonSize()\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n class=\"pe-calendar__icon-button\"\n ariaLabel=\"Open calendar\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <pe-icon icon=\"calendar\" [size]=\"iconSize()\" />\n </pe-button>\n }\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"resolvedErrorText()\"\n [error]=\"hasError()\"\n />\n\n <ng-template #calendarMenu>\n <div cdkMenu class=\"pe-calendar__popup\" [id]=\"ids.controlId + '-menu'\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <div class=\"pe-calendar__date-picker\">\n <div class=\"pe-calendar__header\">\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Previous month\"\n (buttonClick)=\"previousMonth()\"\n >\n <pe-icon icon=\"chevron_left\" size=\"6\" />\n </pe-button>\n <div class=\"pe-calendar__month-year\">{{ monthYearLabel() }}</div>\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Next month\"\n (buttonClick)=\"nextMonth()\"\n >\n <pe-icon icon=\"chevron_right\" size=\"6\" />\n </pe-button>\n </div>\n\n <div class=\"pe-calendar__weekdays\">\n @for (day of ['S', 'M', 'T', 'W', 'T', 'F', 'S']; track $index) {\n <div class=\"pe-calendar__weekday\">{{ day }}</div>\n }\n </div>\n\n <div class=\"pe-calendar__days\">\n @for (day of calendarDays(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"pe-calendar__day\"\n [class.pe-calendar__day--current-month]=\"day.isCurrentMonth\"\n [class.pe-calendar__day--today]=\"day.isToday\"\n [class.pe-calendar__day--selected]=\"day.isSelected\"\n [class.pe-calendar__day--disabled]=\"day.isDisabled\"\n [disabled]=\"day.isDisabled\"\n (click)=\"selectDate(day.date)\"\n >\n {{ day.date.getDate() }}\n </button>\n }\n </div>\n </div>\n }\n\n @if (mode() === 'time' || mode() === 'datetime') {\n <div class=\"pe-calendar__time-picker\">\n <div class=\"pe-calendar__time-controls\">\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedHour()\"\n (change)=\"selectTime(+$any($event.target).value, selectedMinute())\"\n >\n @for (hour of hourOptions(); track hour) {\n <option [value]=\"hour\" [disabled]=\"isTimeDisabled(hour, selectedMinute())\">\n {{ hour.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n <span class=\"pe-calendar__time-separator\">:</span>\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedMinute()\"\n (change)=\"selectTime(selectedHour(), +$any($event.target).value)\"\n >\n @for (minute of minuteOptions(); track minute) {\n <option [value]=\"minute\" [disabled]=\"isTimeDisabled(selectedHour(), minute)\">\n {{ minute.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n </div>\n </div>\n }\n\n <div class=\"pe-calendar__actions\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"selectToday()\">\n Today\n </pe-button>\n }\n @if (value()) {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"clear()\">\n Clear\n </pe-button>\n }\n </div>\n </div>\n </ng-template>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-calendar{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-calendar__trigger-group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar__trigger-group--focused{border-color:#ffffff80}.pe-calendar:not(.pe-calendar--disabled) .pe-calendar__trigger-group:hover{border-color:#ffffff4d}.pe-calendar__trigger{all:unset;flex:1;cursor:pointer;text-align:left;background:transparent;border:none;padding:0}.pe-calendar__trigger-text{display:block;color:#fff}.pe-calendar__trigger-text--placeholder{color:#ffffff80}.pe-calendar__trigger:disabled .pe-calendar__trigger-text{color:#ffffff4d;cursor:not-allowed}.pe-calendar__icon-button{flex-shrink:0}.pe-calendar__trigger-group--focused .pe-btn:focus-visible,.pe-calendar__trigger-group--focused .pe-btn:focus{outline:none}.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-visible,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-within,.pe-calendar__trigger-group--focused .pe-calendar__trigger:hover,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus{outline:none}.pe-calendar__popup{display:flex;flex-direction:column;gap:16px;background-color:#232323;border:2px solid rgba(255,255,255,.1);border-radius:16px;padding:16px;min-width:160px;max-width:512px}.pe-calendar__date-picker{display:flex;flex-direction:column;gap:12px}.pe-calendar__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.pe-calendar__month-year{flex:1;text-align:center;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__weekday{text-align:center;color:#ffffff80;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800;padding:4px}.pe-calendar__days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__day{all:unset;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:#fff;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;transition:background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1);min-height:32px}.pe-calendar__day--current-month{color:#fff}.pe-calendar__day:not(.pe-calendar__day--current-month){color:#ffffff80}.pe-calendar__day--today{border:2px solid #c2a8ff}.pe-calendar__day--selected{background-color:#6f3de0;border-color:#6f3de0;color:#fff}.pe-calendar__day--disabled{color:#ffffff4d;cursor:not-allowed;pointer-events:none}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover{background-color:#ffffff1a;color:inherit}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:hover{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:active{background-color:#ffffff1a}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:selected{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:disabled,.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover[disabled]{background-color:#ffffff0d}.pe-calendar__time-picker{display:flex;flex-direction:column;gap:8px}.pe-calendar__time-controls{display:flex;align-items:center;justify-content:center;gap:8px}.pe-calendar__time-select{appearance:none;background-color:transparent;border:2px solid rgba(255,255,255,.1);border-radius:8px;min-width:48px;height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#fff;cursor:pointer;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-calendar__time-select:hover:not(:disabled){border-color:#ffffff4d}.pe-calendar__time-select:focus{outline:none;border-color:#ffffff80}.pe-calendar__time-select:disabled{color:#ffffff4d;cursor:not-allowed;border-color:#ffffff1a;background-color:transparent}.pe-calendar__time-select option{background-color:#232323;color:#fff}.pe-calendar__time-select option:disabled{color:#ffffff4d}.pe-calendar__time-separator{color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__actions{display:flex;gap:8px;justify-content:flex-end;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.pe-calendar--sm .pe-calendar__trigger-group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-calendar--sm .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;min-height:24px}.pe-calendar--md .pe-calendar__trigger-group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar--md .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;min-height:32px}.pe-calendar--lg .pe-calendar__trigger-group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-calendar--lg .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;min-height:40px}.pe-calendar--xl .pe-calendar__trigger-group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-calendar--xl .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400;min-height:48px}.pe-calendar--error .pe-calendar__trigger-group{border:2px solid #f69d9d}.pe-calendar--disabled .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--disabled .pe-calendar__trigger,.pe-calendar--disabled .pe-calendar__trigger:disabled::placeholder{color:#ffffff4d}.pe-calendar--read-only .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--read-only .pe-calendar__trigger,.pe-calendar--read-only .pe-calendar__trigger:read-only::placeholder{color:#ffffffb3}@media(max-width:767px){.pe-calendar__popup{min-width:auto;width:calc(100vw - 32px);max-width:calc(100vw - 32px);box-sizing:border-box;overflow-x:hidden;position:relative}.pe-calendar__day{min-height:24px}}@media(max-width:1023px){.pe-calendar :host ::ng-deep .cdk-overlay-pane{max-width:calc(100vw - 32px)!important;margin-left:16px!important;margin-right:16px!important}}\n"], dependencies: [{ kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData", "cdkMenuTriggerTransformOriginOn"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }, { kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1107
1197
|
}
|
|
1108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
1109
1199
|
type: Component,
|
|
1110
1200
|
args: [{ selector: 'pe-calendar', standalone: true, imports: [
|
|
1111
1201
|
CdkMenuTrigger,
|
|
@@ -1115,32 +1205,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1115
1205
|
FormFieldLabelComponent,
|
|
1116
1206
|
FormFieldHelperComponent,
|
|
1117
1207
|
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n class=\"pe-calendar pe-calendar--{{ mode() }} pe-calendar--{{ size() }}\"\n [class.pe-calendar--error]=\"hasError()\"\n [class.pe-calendar--disabled]=\"disabled()\"\n [class.pe-calendar--read-only]=\"readOnly()\"\n [class.pe-calendar--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-calendar__trigger-group\" [class.pe-calendar__trigger-group--focused]=\"isOpen()\">\n <button\n type=\"button\"\n [id]=\"ids.controlId\"\n class=\"pe-calendar__trigger\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"ids.controlId + '-menu'\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <span\n class=\"pe-calendar__trigger-text\"\n [class.pe-calendar__trigger-text--placeholder]=\"!displayValue()\"\n >\n @if (displayValue()) {\n {{ displayValue() }}\n } @else {\n {{ defaultPlaceholder() }}\n }\n </span>\n </button>\n\n @if (showCalendarIcon()) {\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [size]=\"buttonSize()\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"calendarMenu\"\n class=\"pe-calendar__icon-button\"\n ariaLabel=\"Open calendar\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <pe-icon icon=\"calendar\" [size]=\"iconSize()\" />\n </pe-button>\n }\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"resolvedErrorText()\"\n [error]=\"hasError()\"\n />\n\n <ng-template #calendarMenu>\n <div cdkMenu class=\"pe-calendar__popup\" [id]=\"ids.controlId + '-menu'\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <div class=\"pe-calendar__date-picker\">\n <div class=\"pe-calendar__header\">\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Previous month\"\n (buttonClick)=\"previousMonth()\"\n >\n <pe-icon icon=\"chevron_left\" size=\"6\" />\n </pe-button>\n <div class=\"pe-calendar__month-year\">{{ monthYearLabel() }}</div>\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Next month\"\n (buttonClick)=\"nextMonth()\"\n >\n <pe-icon icon=\"chevron_right\" size=\"6\" />\n </pe-button>\n </div>\n\n <div class=\"pe-calendar__weekdays\">\n @for (day of ['S', 'M', 'T', 'W', 'T', 'F', 'S']; track $index) {\n <div class=\"pe-calendar__weekday\">{{ day }}</div>\n }\n </div>\n\n <div class=\"pe-calendar__days\">\n @for (day of calendarDays(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"pe-calendar__day\"\n [class.pe-calendar__day--current-month]=\"day.isCurrentMonth\"\n [class.pe-calendar__day--today]=\"day.isToday\"\n [class.pe-calendar__day--selected]=\"day.isSelected\"\n [class.pe-calendar__day--disabled]=\"day.isDisabled\"\n [disabled]=\"day.isDisabled\"\n (click)=\"selectDate(day.date)\"\n >\n {{ day.date.getDate() }}\n </button>\n }\n </div>\n </div>\n }\n\n @if (mode() === 'time' || mode() === 'datetime') {\n <div class=\"pe-calendar__time-picker\">\n <div class=\"pe-calendar__time-controls\">\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedHour()\"\n (change)=\"selectTime(+$any($event.target).value, selectedMinute())\"\n >\n @for (hour of hourOptions(); track hour) {\n <option [value]=\"hour\" [disabled]=\"isTimeDisabled(hour, selectedMinute())\">\n {{ hour.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n <span class=\"pe-calendar__time-separator\">:</span>\n <select\n class=\"pe-calendar__time-select\"\n [value]=\"selectedMinute()\"\n (change)=\"selectTime(selectedHour(), +$any($event.target).value)\"\n >\n @for (minute of minuteOptions(); track minute) {\n <option [value]=\"minute\" [disabled]=\"isTimeDisabled(selectedHour(), minute)\">\n {{ minute.toString().padStart(2, '0') }}\n </option>\n }\n </select>\n </div>\n </div>\n }\n\n <div class=\"pe-calendar__actions\">\n @if (mode() === 'date' || mode() === 'datetime') {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"selectToday()\">\n Today\n </pe-button>\n }\n @if (value()) {\n <pe-button type=\"button\" theme=\"transparent-white\" (buttonClick)=\"clear()\">\n Clear\n </pe-button>\n }\n </div>\n </div>\n </ng-template>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-calendar{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-calendar__trigger-group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar__trigger-group--focused{border-color:#ffffff80}.pe-calendar:not(.pe-calendar--disabled) .pe-calendar__trigger-group:hover{border-color:#ffffff4d}.pe-calendar__trigger{all:unset;flex:1;cursor:pointer;text-align:left;background:transparent;border:none;padding:0}.pe-calendar__trigger-text{display:block;color:#fff}.pe-calendar__trigger-text--placeholder{color:#ffffff80}.pe-calendar__trigger:disabled .pe-calendar__trigger-text{color:#ffffff4d;cursor:not-allowed}.pe-calendar__icon-button{flex-shrink:0}.pe-calendar__trigger-group--focused .pe-btn:focus-visible,.pe-calendar__trigger-group--focused .pe-btn:focus{outline:none}.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-visible,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus-within,.pe-calendar__trigger-group--focused .pe-calendar__trigger:hover,.pe-calendar__trigger-group--focused .pe-calendar__trigger:focus{outline:none}.pe-calendar__popup{display:flex;flex-direction:column;gap:16px;background-color:#232323;border:2px solid rgba(255,255,255,.1);border-radius:16px;padding:16px;min-width:160px;max-width:512px}.pe-calendar__date-picker{display:flex;flex-direction:column;gap:12px}.pe-calendar__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.pe-calendar__month-year{flex:1;text-align:center;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__weekday{text-align:center;color:#ffffff80;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:800;padding:4px}.pe-calendar__days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.pe-calendar__day{all:unset;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:#fff;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;transition:background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1);min-height:32px}.pe-calendar__day--current-month{color:#fff}.pe-calendar__day:not(.pe-calendar__day--current-month){color:#ffffff80}.pe-calendar__day--today{border:2px solid #c2a8ff}.pe-calendar__day--selected{background-color:#6f3de0;border-color:#6f3de0;color:#fff}.pe-calendar__day--disabled{color:#ffffff4d;cursor:not-allowed;pointer-events:none}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover{background-color:#ffffff1a;color:inherit}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:hover{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:active{background-color:#ffffff1a}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:selected{background-color:#fff3}.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover:disabled,.pe-calendar__day:not(.pe-calendar__day--disabled):not(.pe-calendar__day--selected):hover[disabled]{background-color:#ffffff0d}.pe-calendar__time-picker{display:flex;flex-direction:column;gap:8px}.pe-calendar__time-controls{display:flex;align-items:center;justify-content:center;gap:8px}.pe-calendar__time-select{appearance:none;background-color:transparent;border:2px solid rgba(255,255,255,.1);border-radius:8px;min-width:48px;height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#fff;cursor:pointer;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-calendar__time-select:hover:not(:disabled){border-color:#ffffff4d}.pe-calendar__time-select:focus{outline:none;border-color:#ffffff80}.pe-calendar__time-select:disabled{color:#ffffff4d;cursor:not-allowed;border-color:#ffffff1a;background-color:transparent}.pe-calendar__time-select option{background-color:#232323;color:#fff}.pe-calendar__time-select option:disabled{color:#ffffff4d}.pe-calendar__time-separator{color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800}.pe-calendar__actions{display:flex;gap:8px;justify-content:flex-end;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.pe-calendar--sm .pe-calendar__trigger-group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-calendar--sm .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;min-height:24px}.pe-calendar--md .pe-calendar__trigger-group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-calendar--md .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;min-height:32px}.pe-calendar--lg .pe-calendar__trigger-group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-calendar--lg .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;min-height:40px}.pe-calendar--xl .pe-calendar__trigger-group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-calendar--xl .pe-calendar__day{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400;min-height:48px}.pe-calendar--error .pe-calendar__trigger-group{border:2px solid #f69d9d}.pe-calendar--disabled .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--disabled .pe-calendar__trigger,.pe-calendar--disabled .pe-calendar__trigger:disabled::placeholder{color:#ffffff4d}.pe-calendar--read-only .pe-calendar__trigger-group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-calendar--read-only .pe-calendar__trigger,.pe-calendar--read-only .pe-calendar__trigger:read-only::placeholder{color:#ffffffb3}@media(max-width:767px){.pe-calendar__popup{min-width:auto;width:calc(100vw - 32px);max-width:calc(100vw - 32px);box-sizing:border-box;overflow-x:hidden;position:relative}.pe-calendar__day{min-height:24px}}@media(max-width:1023px){.pe-calendar :host ::ng-deep .cdk-overlay-pane{max-width:calc(100vw - 32px)!important;margin-left:16px!important;margin-right:16px!important}}\n"] }]
|
|
1118
|
-
}], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], showCalendarIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCalendarIcon", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }],
|
|
1208
|
+
}], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], showCalendarIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCalendarIcon", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
1119
1209
|
|
|
1120
1210
|
class CardComponent {
|
|
1121
1211
|
// State inputs
|
|
1122
|
-
focused = input(false, { ...(ngDevMode ? { debugName: "focused" } : {}), transform: booleanAttribute });
|
|
1123
|
-
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
1212
|
+
focused = input(false, { ...(ngDevMode ? { debugName: "focused" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1213
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1124
1214
|
// Layout inputs
|
|
1125
|
-
cardDirection = input('vertical',
|
|
1126
|
-
|
|
1127
|
-
|
|
1215
|
+
cardDirection = input('vertical', /* @ts-ignore */
|
|
1216
|
+
...(ngDevMode ? [{ debugName: "cardDirection" }] : /* istanbul ignore next */ []));
|
|
1217
|
+
cardCaptionSize = input('default', /* @ts-ignore */
|
|
1218
|
+
...(ngDevMode ? [{ debugName: "cardCaptionSize" }] : /* istanbul ignore next */ []));
|
|
1219
|
+
footerDist = input('default', /* @ts-ignore */
|
|
1220
|
+
...(ngDevMode ? [{ debugName: "footerDist" }] : /* istanbul ignore next */ []));
|
|
1128
1221
|
// Media inputs
|
|
1129
|
-
mediaAspectRatio = input('default',
|
|
1130
|
-
|
|
1131
|
-
|
|
1222
|
+
mediaAspectRatio = input('default', /* @ts-ignore */
|
|
1223
|
+
...(ngDevMode ? [{ debugName: "mediaAspectRatio" }] : /* istanbul ignore next */ []));
|
|
1224
|
+
mediaBlur = input(false, { ...(ngDevMode ? { debugName: "mediaBlur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1225
|
+
mediaGrayscale = input(false, { ...(ngDevMode ? { debugName: "mediaGrayscale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1132
1226
|
// Content inputs
|
|
1133
|
-
cardCaption = input('',
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1227
|
+
cardCaption = input('', /* @ts-ignore */
|
|
1228
|
+
...(ngDevMode ? [{ debugName: "cardCaption" }] : /* istanbul ignore next */ []));
|
|
1229
|
+
cardTitle = input('', /* @ts-ignore */
|
|
1230
|
+
...(ngDevMode ? [{ debugName: "cardTitle" }] : /* istanbul ignore next */ []));
|
|
1231
|
+
cardTitleSingleLine = input(false, { ...(ngDevMode ? { debugName: "cardTitleSingleLine" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1232
|
+
cardSubtitle = input('', /* @ts-ignore */
|
|
1233
|
+
...(ngDevMode ? [{ debugName: "cardSubtitle" }] : /* istanbul ignore next */ []));
|
|
1234
|
+
cardSubtitleSingleLine = input(false, { ...(ngDevMode ? { debugName: "cardSubtitleSingleLine" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1138
1235
|
// Loading state
|
|
1139
|
-
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : {}), transform: booleanAttribute });
|
|
1140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1141
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: CardComponent, isStandalone: true, selector: "pe-card", inputs: { focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cardDirection: { classPropertyName: "cardDirection", publicName: "cardDirection", isSignal: true, isRequired: false, transformFunction: null }, cardCaptionSize: { classPropertyName: "cardCaptionSize", publicName: "cardCaptionSize", isSignal: true, isRequired: false, transformFunction: null }, footerDist: { classPropertyName: "footerDist", publicName: "footerDist", isSignal: true, isRequired: false, transformFunction: null }, mediaAspectRatio: { classPropertyName: "mediaAspectRatio", publicName: "mediaAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, mediaBlur: { classPropertyName: "mediaBlur", publicName: "mediaBlur", isSignal: true, isRequired: false, transformFunction: null }, mediaGrayscale: { classPropertyName: "mediaGrayscale", publicName: "mediaGrayscale", isSignal: true, isRequired: false, transformFunction: null }, cardCaption: { classPropertyName: "cardCaption", publicName: "cardCaption", isSignal: true, isRequired: false, transformFunction: null }, cardTitle: { classPropertyName: "cardTitle", publicName: "cardTitle", isSignal: true, isRequired: false, transformFunction: null }, cardTitleSingleLine: { classPropertyName: "cardTitleSingleLine", publicName: "cardTitleSingleLine", isSignal: true, isRequired: false, transformFunction: null }, cardSubtitle: { classPropertyName: "cardSubtitle", publicName: "cardSubtitle", isSignal: true, isRequired: false, transformFunction: null }, cardSubtitleSingleLine: { classPropertyName: "cardSubtitleSingleLine", publicName: "cardSubtitleSingleLine", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-disabled": "disabled() ? \"true\" : null", "class.pe-card--focused": "focused()", "class.pe-card--disabled": "disabled()", "class.pe-card--horizontal": "cardDirection() === \"horizontal\"", "class.pe-card--caption-sm": "cardCaptionSize() === \"sm\"", "class.pe-card--footer-equal": "footerDist() === \"equal\"", "class.pe-card--media-square": "mediaAspectRatio() === \"square\"", "class.pe-card--media-portrait": "mediaAspectRatio() === \"portrait\"", "class.pe-card--media-grayscale": "mediaGrayscale()", "class.pe-card--loading": "loading()", "class.pe-card--media-blurred": "mediaBlur()" }, classAttribute: "pe-card" }, ngImport: i0, template: "@if (loading()) {\n <div class=\"pe-card__skeleton\">\n <div class=\"pe-card__media\">\n <pe-skeleton variant=\"rect\" borderRadius=\"lg\" [show]=\"true\" />\n </div>\n <div class=\"pe-card__content\">\n <div class=\"pe-card__content-title pe-card__content-title--single-line\">\n <pe-skeleton variant=\"text\" [lines]=\"2\" borderRadius=\"sm\" />\n </div>\n <div class=\"pe-card__content-subtitle pe-card__content-subtitle--single-line\">\n <pe-skeleton variant=\"text\" [lines]=\"1\" borderRadius=\"sm\" />\n </div>\n </div>\n </div>\n} @else {\n <div class=\"pe-card__media\">\n <ng-content select=\"[udsCardMedia]\" />\n <ng-content select=\"[udsCardMediaOverlay]\" />\n </div>\n <div class=\"pe-card__media-action\">\n <ng-content select=\"[udsCardMediaAction]\" />\n </div>\n\n <div class=\"pe-card__content\">\n @if (cardCaption()) {\n <div class=\"pe-card__content-caption\">\n {{ cardCaption() }}\n </div>\n }\n @if (cardTitle()) {\n <div\n class=\"pe-card__content-title\"\n [class.pe-card__content-title--single-line]=\"cardTitleSingleLine()\"\n >\n {{ cardTitle() }}\n </div>\n }\n @if (cardSubtitle()) {\n <div\n class=\"pe-card__content-subtitle\"\n [class.pe-card__content-subtitle--single-line]=\"cardSubtitleSingleLine()\"\n >\n {{ cardSubtitle() }}\n </div>\n }\n </div>\n\n <div class=\"pe-card__footer\">\n <ng-content select=\"[udsCardFooter]\" />\n </div>\n}\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-card{display:flex;position:relative;flex-direction:column;overflow:visible;width:100%;color:#ffffff80;border-radius:8px;gap:12px;outline:8px solid transparent;background-color:transparent;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;transition:background-color .25s cubic-bezier(.4,0,.2,1),outline .25s cubic-bezier(.4,0,.2,1)}@media(min-width:0px){.pe-card{min-width:140px}}@media(min-width:768px){.pe-card{min-width:208px}}@media(min-width:1280px){.pe-card{min-width:232px}}.pe-card:hover,.pe-card:focus,.pe-card:focus-within,.pe-card--focused{outline-color:#ffffff1a;background-color:#ffffff1a}.pe-card__media{position:relative;overflow:hidden;width:100%;background-color:#ffffff1a;border-radius:8px}@media(min-width:0px){.pe-card__media{min-height:140px}}@media(min-width:768px){.pe-card__media{min-height:208px}}@media(min-width:1280px){.pe-card__media{min-height:232px}}.pe-card__media>:first-child{width:100%;height:100%;display:block;object-fit:cover;filter:blur(var(--pe-card__media-blur, 0)) grayscale(var(--pe-card__media-grayscale, 0))}.pe-card__media>:nth-child(2){position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.pe-card__media-action{opacity:0;position:absolute;top:8px;right:8px;z-index:2;transition:opacity .15s cubic-bezier(.4,0,.2,1)}@media(max-width:1023px){.pe-card__media-action{opacity:1}}.pe-card:hover .pe-card__media-action,.pe-card:focus .pe-card__media-action,.pe-card:focus-within .pe-card__media-action{opacity:1}.pe-card__content{flex:1}.pe-card__content-caption{color:#ffffff80;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__content-title{color:#fff;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pe-card__content-title--single-line{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__content-subtitle{color:#ffffff80;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pe-card__content-subtitle--single-line{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__footer{display:flex;gap:8px}.pe-card--disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.pe-card--caption-sm .pe-card__content-caption{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-card--footer-equal .pe-card__footer>*{flex:1}.pe-card--media-square .pe-card__media{aspect-ratio:1/1}.pe-card--media-portrait .pe-card__media{aspect-ratio:3/4}.pe-card__media img{width:100%;height:100%;object-fit:cover}.pe-card--media-blurred{--pe-card__media-blur: 16px}.pe-card--media-blurred .pe-card__media>:first-child{fill:#0000004d}.pe-card--media-grayscale{--pe-card__media-grayscale: 1}.pe-card--media-grayscale .pe-card__media>:first-child{opacity:.5;mix-blend-mode:luminosity}.pe-card__skeleton{display:flex;flex-direction:column;gap:12px;min-height:100px}.pe-card__skeleton>.pe-skeleton:first-child{width:100%;aspect-ratio:16/9}.pe-card__skeleton-body{margin-top:12px;display:flex;flex-direction:column;gap:8px}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1236
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1238
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CardComponent, isStandalone: true, selector: "pe-card", inputs: { focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cardDirection: { classPropertyName: "cardDirection", publicName: "cardDirection", isSignal: true, isRequired: false, transformFunction: null }, cardCaptionSize: { classPropertyName: "cardCaptionSize", publicName: "cardCaptionSize", isSignal: true, isRequired: false, transformFunction: null }, footerDist: { classPropertyName: "footerDist", publicName: "footerDist", isSignal: true, isRequired: false, transformFunction: null }, mediaAspectRatio: { classPropertyName: "mediaAspectRatio", publicName: "mediaAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, mediaBlur: { classPropertyName: "mediaBlur", publicName: "mediaBlur", isSignal: true, isRequired: false, transformFunction: null }, mediaGrayscale: { classPropertyName: "mediaGrayscale", publicName: "mediaGrayscale", isSignal: true, isRequired: false, transformFunction: null }, cardCaption: { classPropertyName: "cardCaption", publicName: "cardCaption", isSignal: true, isRequired: false, transformFunction: null }, cardTitle: { classPropertyName: "cardTitle", publicName: "cardTitle", isSignal: true, isRequired: false, transformFunction: null }, cardTitleSingleLine: { classPropertyName: "cardTitleSingleLine", publicName: "cardTitleSingleLine", isSignal: true, isRequired: false, transformFunction: null }, cardSubtitle: { classPropertyName: "cardSubtitle", publicName: "cardSubtitle", isSignal: true, isRequired: false, transformFunction: null }, cardSubtitleSingleLine: { classPropertyName: "cardSubtitleSingleLine", publicName: "cardSubtitleSingleLine", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-disabled": "disabled() ? \"true\" : null", "class.pe-card--focused": "focused()", "class.pe-card--disabled": "disabled()", "class.pe-card--horizontal": "cardDirection() === \"horizontal\"", "class.pe-card--caption-sm": "cardCaptionSize() === \"sm\"", "class.pe-card--footer-equal": "footerDist() === \"equal\"", "class.pe-card--media-square": "mediaAspectRatio() === \"square\"", "class.pe-card--media-portrait": "mediaAspectRatio() === \"portrait\"", "class.pe-card--media-grayscale": "mediaGrayscale()", "class.pe-card--loading": "loading()", "class.pe-card--media-blurred": "mediaBlur()" }, classAttribute: "pe-card" }, ngImport: i0, template: "@if (loading()) {\n <div class=\"pe-card__skeleton\">\n <div class=\"pe-card__media\">\n <pe-skeleton variant=\"rect\" borderRadius=\"lg\" [show]=\"true\" />\n </div>\n <div class=\"pe-card__content\">\n <div class=\"pe-card__content-title pe-card__content-title--single-line\">\n <pe-skeleton variant=\"text\" [lines]=\"2\" borderRadius=\"sm\" />\n </div>\n <div class=\"pe-card__content-subtitle pe-card__content-subtitle--single-line\">\n <pe-skeleton variant=\"text\" [lines]=\"1\" borderRadius=\"sm\" />\n </div>\n </div>\n </div>\n} @else {\n <div class=\"pe-card__media\">\n <ng-content select=\"[udsCardMedia]\" />\n <ng-content select=\"[udsCardMediaOverlay]\" />\n </div>\n <div class=\"pe-card__media-action\">\n <ng-content select=\"[udsCardMediaAction]\" />\n </div>\n\n <div class=\"pe-card__content\">\n @if (cardCaption()) {\n <div class=\"pe-card__content-caption\">\n {{ cardCaption() }}\n </div>\n }\n @if (cardTitle()) {\n <div\n class=\"pe-card__content-title\"\n [class.pe-card__content-title--single-line]=\"cardTitleSingleLine()\"\n >\n {{ cardTitle() }}\n </div>\n }\n @if (cardSubtitle()) {\n <div\n class=\"pe-card__content-subtitle\"\n [class.pe-card__content-subtitle--single-line]=\"cardSubtitleSingleLine()\"\n >\n {{ cardSubtitle() }}\n </div>\n }\n </div>\n\n <div class=\"pe-card__footer\">\n <ng-content select=\"[udsCardFooter]\" />\n </div>\n}\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-card{display:flex;position:relative;flex-direction:column;overflow:visible;width:100%;color:#ffffff80;border-radius:8px;gap:12px;outline:8px solid transparent;background-color:transparent;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;transition:background-color .25s cubic-bezier(.4,0,.2,1),outline .25s cubic-bezier(.4,0,.2,1)}@media(min-width:0px){.pe-card{min-width:140px}}@media(min-width:768px){.pe-card{min-width:208px}}@media(min-width:1280px){.pe-card{min-width:232px}}.pe-card:hover,.pe-card:focus,.pe-card:focus-within,.pe-card--focused{outline-color:#ffffff1a;background-color:#ffffff1a}.pe-card__media{position:relative;overflow:hidden;width:100%;background-color:#ffffff1a;border-radius:8px}@media(min-width:0px){.pe-card__media{min-height:140px}}@media(min-width:768px){.pe-card__media{min-height:208px}}@media(min-width:1280px){.pe-card__media{min-height:232px}}.pe-card__media>:first-child{width:100%;height:100%;display:block;object-fit:cover;filter:blur(var(--pe-card__media-blur, 0)) grayscale(var(--pe-card__media-grayscale, 0))}.pe-card__media>:nth-child(2){position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.pe-card__media-action{opacity:0;position:absolute;top:8px;right:8px;z-index:2;transition:opacity .15s cubic-bezier(.4,0,.2,1)}@media(max-width:1023px){.pe-card__media-action{opacity:1}}.pe-card:hover .pe-card__media-action,.pe-card:focus .pe-card__media-action,.pe-card:focus-within .pe-card__media-action{opacity:1}.pe-card__content{flex:1}.pe-card__content-caption{color:#ffffff80;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__content-title{color:#fff;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pe-card__content-title--single-line{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__content-subtitle{color:#ffffff80;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:800;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pe-card__content-subtitle--single-line{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.pe-card__footer{display:flex;gap:8px}.pe-card--disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.pe-card--caption-sm .pe-card__content-caption{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-card--footer-equal .pe-card__footer>*{flex:1}.pe-card--media-square .pe-card__media{aspect-ratio:1/1}.pe-card--media-portrait .pe-card__media{aspect-ratio:3/4}.pe-card__media img{width:100%;height:100%;object-fit:cover}.pe-card--media-blurred{--pe-card__media-blur: 16px}.pe-card--media-blurred .pe-card__media>:first-child{fill:#0000004d}.pe-card--media-grayscale{--pe-card__media-grayscale: 1}.pe-card--media-grayscale .pe-card__media>:first-child{opacity:.5;mix-blend-mode:luminosity}.pe-card__skeleton{display:flex;flex-direction:column;gap:12px;min-height:100px}.pe-card__skeleton>.pe-skeleton:first-child{width:100%;aspect-ratio:16/9}.pe-card__skeleton-body{margin-top:12px;display:flex;flex-direction:column;gap:8px}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1142
1239
|
}
|
|
1143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CardComponent, decorators: [{
|
|
1144
1241
|
type: Component,
|
|
1145
1242
|
args: [{ selector: 'pe-card', standalone: true, imports: [SkeletonComponent], host: {
|
|
1146
1243
|
class: 'pe-card',
|
|
@@ -1159,10 +1256,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1159
1256
|
}], propDecorators: { focused: [{ type: i0.Input, args: [{ isSignal: true, alias: "focused", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], cardDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardDirection", required: false }] }], cardCaptionSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardCaptionSize", required: false }] }], footerDist: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerDist", required: false }] }], mediaAspectRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaAspectRatio", required: false }] }], mediaBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaBlur", required: false }] }], mediaGrayscale: [{ type: i0.Input, args: [{ isSignal: true, alias: "mediaGrayscale", required: false }] }], cardCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardCaption", required: false }] }], cardTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardTitle", required: false }] }], cardTitleSingleLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardTitleSingleLine", required: false }] }], cardSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardSubtitle", required: false }] }], cardSubtitleSingleLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardSubtitleSingleLine", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
|
|
1160
1257
|
|
|
1161
1258
|
class CarouselItemComponent {
|
|
1162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1163
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1259
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1260
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: CarouselItemComponent, isStandalone: true, selector: "pe-carousel-item", host: { classAttribute: "splide__slide pe-carousel__item" }, ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1164
1261
|
}
|
|
1165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselItemComponent, decorators: [{
|
|
1166
1263
|
type: Component,
|
|
1167
1264
|
args: [{
|
|
1168
1265
|
selector: 'pe-carousel-item',
|
|
@@ -1178,11 +1275,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1178
1275
|
class CarouselComponent {
|
|
1179
1276
|
options = input({
|
|
1180
1277
|
autoplay: true,
|
|
1181
|
-
},
|
|
1182
|
-
|
|
1278
|
+
}, /* @ts-ignore */
|
|
1279
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
1280
|
+
autoMount = input(true, /* @ts-ignore */
|
|
1281
|
+
...(ngDevMode ? [{ debugName: "autoMount" }] : /* istanbul ignore next */ []));
|
|
1183
1282
|
mounted = output();
|
|
1184
|
-
carousel = viewChild('carousel',
|
|
1185
|
-
|
|
1283
|
+
carousel = viewChild('carousel', /* @ts-ignore */
|
|
1284
|
+
...(ngDevMode ? [{ debugName: "carousel" }] : /* istanbul ignore next */ []));
|
|
1285
|
+
items = contentChildren(CarouselItemComponent, /* @ts-ignore */
|
|
1286
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
1186
1287
|
instance = null;
|
|
1187
1288
|
constructor() {
|
|
1188
1289
|
effect(() => {
|
|
@@ -1239,8 +1340,8 @@ class CarouselComponent {
|
|
|
1239
1340
|
updateCarouselOnItemsChange() {
|
|
1240
1341
|
this.instance?.refresh();
|
|
1241
1342
|
}
|
|
1242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1243
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1343
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1344
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: CarouselComponent, isStandalone: true, selector: "pe-carousel", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, autoMount: { classPropertyName: "autoMount", publicName: "autoMount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { mounted: "mounted" }, queries: [{ propertyName: "items", predicate: CarouselItemComponent, isSignal: true }], viewQueries: [{ propertyName: "carousel", first: true, predicate: ["carousel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1244
1345
|
<div class="splide pe-carousel" #carousel role="region" aria-roledescription="carousel">
|
|
1245
1346
|
<div class="splide__track pe-carousel__track">
|
|
1246
1347
|
<div class="splide__list">
|
|
@@ -1250,7 +1351,7 @@ class CarouselComponent {
|
|
|
1250
1351
|
</div>
|
|
1251
1352
|
`, isInline: true, styles: ["@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;contain:strict;display:inline-block;height:20px;inset:0;margin:auto;position:absolute;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-carousel{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr}.pe-carousel__pagination-dot{border:0;border-radius:50%;margin:1rem .2rem 0;padding:0;height:6px;width:6px;background-color:#ffffff80}.pe-carousel__pagination-dot.is-active{background-color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1252
1353
|
}
|
|
1253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselComponent, decorators: [{
|
|
1254
1355
|
type: Component,
|
|
1255
1356
|
args: [{ selector: 'pe-carousel', standalone: true, template: `
|
|
1256
1357
|
<div class="splide pe-carousel" #carousel role="region" aria-roledescription="carousel">
|
|
@@ -1269,29 +1370,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1269
1370
|
* Uses shared form field label and helper for alignment with input, textarea, radio-group.
|
|
1270
1371
|
*/
|
|
1271
1372
|
class CheckboxComponent {
|
|
1272
|
-
checked = model(false,
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1373
|
+
checked = model(false, /* @ts-ignore */
|
|
1374
|
+
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
1375
|
+
disabled = model(false, /* @ts-ignore */
|
|
1376
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1377
|
+
indeterminate = model(false, /* @ts-ignore */
|
|
1378
|
+
...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
|
|
1379
|
+
zone = input('none', /* @ts-ignore */
|
|
1380
|
+
...(ngDevMode ? [{ debugName: "zone" }] : /* istanbul ignore next */ []));
|
|
1381
|
+
size = input('default', /* @ts-ignore */
|
|
1382
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
1383
|
+
label = input(null, /* @ts-ignore */
|
|
1384
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1385
|
+
helperText = input(null, /* @ts-ignore */
|
|
1386
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
1387
|
+
required = input(false, /* @ts-ignore */
|
|
1388
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
1389
|
+
error = input(false, /* @ts-ignore */
|
|
1390
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
1391
|
+
errorText = input(null, /* @ts-ignore */
|
|
1392
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1393
|
+
invalid = input(false, /* @ts-ignore */
|
|
1394
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
1395
|
+
errors = input([], /* @ts-ignore */
|
|
1396
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
1284
1397
|
ids = createFormFieldIds('pe-checkbox');
|
|
1285
|
-
hasError = computed(() => this.error() || this.invalid(),
|
|
1398
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
1399
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1286
1400
|
resolvedErrorText = computed(() => this.errorText() ||
|
|
1287
|
-
(this.hasError() && this.errors().length ? (this.errors()[0]?.message ?? null) : null),
|
|
1288
|
-
|
|
1401
|
+
(this.hasError() && this.errors().length ? (this.errors()[0]?.message ?? null) : null), /* @ts-ignore */
|
|
1402
|
+
...(ngDevMode ? [{ debugName: "resolvedErrorText" }] : /* istanbul ignore next */ []));
|
|
1403
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.resolvedErrorText()), /* @ts-ignore */
|
|
1404
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
1289
1405
|
onChange(event) {
|
|
1290
1406
|
const input = event.target;
|
|
1291
1407
|
this.checked.set(input.checked);
|
|
1292
1408
|
}
|
|
1293
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1294
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: CheckboxComponent, isStandalone: true, selector: "pe-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, zone: { classPropertyName: "zone", publicName: "zone", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", disabled: "disabledChange", indeterminate: "indeterminateChange" }, ngImport: i0, template: `
|
|
1295
1411
|
<div
|
|
1296
1412
|
class="pe-checkbox pe-checkbox--{{ size() }}"
|
|
1297
1413
|
[class.pe-checkbox--accessible-zone]="zone() === 'accessible'"
|
|
@@ -1347,7 +1463,7 @@ class CheckboxComponent {
|
|
|
1347
1463
|
</div>
|
|
1348
1464
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-checkbox{display:flex;flex-direction:column;align-items:flex-start}.pe-checkbox__row{display:inline-flex;align-items:flex-start;cursor:pointer}.pe-checkbox__row:has(.pe-checkbox__input:disabled){cursor:not-allowed}.pe-checkbox__row:hover .pe-checkbox__input:not([disabled])+.pe-checkbox__pseudo-input{box-shadow:0 0 0 2px #ffffff1a;border-color:#fff}.pe-checkbox__row:hover .pe-checkbox__input:not([disabled]):indeterminate+.pe-checkbox__pseudo-input,.pe-checkbox__row:hover .pe-checkbox__input:not([disabled]):checked+.pe-checkbox__pseudo-input{background-color:#6f3de0;border-color:#6f3de0}.pe-checkbox__row:hover .pe-checkbox__input:not([disabled]):indeterminate:active+.pe-checkbox__pseudo-input,.pe-checkbox__row:hover .pe-checkbox__input:not([disabled]):checked:active+.pe-checkbox__pseudo-input{background-color:#6f3de0;border-color:#6f3de0}.pe-checkbox__row:has(.pe-checkbox__input:indeterminate) .pe-checkbox__pseudo-input:before{opacity:1}.pe-checkbox__row--accessible-zone{padding:12px}.pe-checkbox__row--visible-zone{padding:12px;background:#fff3;border-radius:12px}.pe-checkbox__row--checked-visible-zone{padding:12px;border-radius:12px;transition:background-color .25s cubic-bezier(.4,0,.2,1)}.pe-checkbox__row--checked-visible-zone:has(.pe-checkbox__input:checked){background:#fff3}.pe-checkbox__row--error .pe-checkbox__pseudo-input{border-color:#f69d9d}.pe-checkbox__row--error .pe-checkbox__input:focus-visible+.pe-checkbox__pseudo-input{border-color:#f69d9d}.pe-checkbox__row--error .pe-checkbox__input:not([disabled]):active+.pe-checkbox__pseudo-input[class]{border-color:#f69d9d}.pe-checkbox__row--error .pe-checkbox__input:not([disabled]):checked+.pe-checkbox__pseudo-input,.pe-checkbox__row--error .pe-checkbox__input:not([disabled]):indeterminate+.pe-checkbox__pseudo-input{background-color:#c33a3a;border-color:#c33a3a}.pe-checkbox__row--error:hover .pe-checkbox__input:not([disabled])+.pe-checkbox__pseudo-input{box-shadow:0 0 0 2px #ffffff1a;border-color:#f69d9d}.pe-checkbox__row--error:hover .pe-checkbox__input:not([disabled]):indeterminate+.pe-checkbox__pseudo-input,.pe-checkbox__row--error:hover .pe-checkbox__input:not([disabled]):checked+.pe-checkbox__pseudo-input{background-color:#c33a3a;border-color:#c33a3a}.pe-checkbox__row--error:hover .pe-checkbox__input:not([disabled]):indeterminate:active+.pe-checkbox__pseudo-input,.pe-checkbox__row--error:hover .pe-checkbox__input:not([disabled]):checked:active+.pe-checkbox__pseudo-input{background-color:#c33a3a;border-color:#c33a3a}.pe-checkbox__input{position:absolute;opacity:0}.pe-checkbox__input:focus-visible+.pe-checkbox__pseudo-input{border-color:#ffffff80}.pe-checkbox__input:not([disabled]):active+.pe-checkbox__pseudo-input[class]{border-color:#fff;box-shadow:none}.pe-checkbox__input:not([disabled]):checked+.pe-checkbox__pseudo-input{background-color:#6f3de0;border-color:#6f3de0}.pe-checkbox__input:not([disabled]):checked+.pe-checkbox__pseudo-input:before{opacity:1}.pe-checkbox__input:disabled+.pe-checkbox__pseudo-input{border-color:#ffffff1a}.pe-checkbox__input:disabled~.pe-checkbox__label{color:#ffffff4d}.pe-checkbox__input:disabled:checked+.pe-checkbox__pseudo-input{background-color:#ffffff0d;border-color:transparent}.pe-checkbox__input:disabled:checked+.pe-checkbox__pseudo-input:before{opacity:1;color:#ffffff4d}.pe-checkbox__input:indeterminate+.pe-checkbox__pseudo-input{background-color:#6f3de0;border-color:#6f3de0}.pe-checkbox__input:indeterminate+.pe-checkbox__pseudo-input:before{content:\"minus_small\";opacity:1}.pe-checkbox__input[disabled]:indeterminate+.pe-checkbox__pseudo-input{background-color:#ffffff0d;border-color:transparent}.pe-checkbox__input[disabled]:indeterminate+.pe-checkbox__pseudo-input:before{opacity:1;color:#ffffff4d}.pe-checkbox__pseudo-input{margin:2px;border-radius:4px;border:1px solid rgba(255,255,255,.5);width:16px;height:16px;position:relative;flex-shrink:0;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-checkbox__pseudo-input:before{content:\"check_small\";font-family:Ultra Icons;top:-1px;left:-1px;width:16px;height:16px;position:absolute;color:#fff;line-height:16px;opacity:0;text-align:center;font-size:16px}.pe-checkbox__label{margin-left:8px;color:#fff;transition:color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-checkbox--sm .pe-checkbox__label{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-checkbox:not(.pe-checkbox--sm) .pe-checkbox__label{margin-top:-2px;margin-bottom:-2px}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1349
1465
|
}
|
|
1350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
1351
1467
|
type: Component,
|
|
1352
1468
|
args: [{ selector: 'pe-checkbox', standalone: true, imports: [FormFieldLabelComponent, FormFieldHelperComponent], template: `
|
|
1353
1469
|
<div
|
|
@@ -1424,34 +1540,41 @@ class CollapseComponent {
|
|
|
1424
1540
|
* The visual variant of the collapse toggle.
|
|
1425
1541
|
* @default 'text'
|
|
1426
1542
|
*/
|
|
1427
|
-
variant = input('text',
|
|
1543
|
+
variant = input('text', /* @ts-ignore */
|
|
1544
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
1428
1545
|
/**
|
|
1429
1546
|
* Controls the collapsed state of the component.
|
|
1430
1547
|
* @default true
|
|
1431
1548
|
*/
|
|
1432
|
-
collapsed = model(true,
|
|
1549
|
+
collapsed = model(true, /* @ts-ignore */
|
|
1550
|
+
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
1433
1551
|
/**
|
|
1434
1552
|
* Maximum height of the content when collapsed.
|
|
1435
1553
|
* @default 200
|
|
1436
1554
|
*/
|
|
1437
|
-
maxHeight = input.required(
|
|
1555
|
+
maxHeight = input.required(/* @ts-ignore */
|
|
1556
|
+
...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
|
|
1438
1557
|
/**
|
|
1439
1558
|
* Custom label for the expand action.
|
|
1440
1559
|
* @default 'See more'
|
|
1441
1560
|
*/
|
|
1442
|
-
expandLabel = input('See more',
|
|
1561
|
+
expandLabel = input('See more', /* @ts-ignore */
|
|
1562
|
+
...(ngDevMode ? [{ debugName: "expandLabel" }] : /* istanbul ignore next */ []));
|
|
1443
1563
|
/**
|
|
1444
1564
|
* Custom label for the collapse action.
|
|
1445
1565
|
* @default 'See less'
|
|
1446
1566
|
*/
|
|
1447
|
-
collapseLabel = input('See less',
|
|
1567
|
+
collapseLabel = input('See less', /* @ts-ignore */
|
|
1568
|
+
...(ngDevMode ? [{ debugName: "collapseLabel" }] : /* istanbul ignore next */ []));
|
|
1448
1569
|
/** Current full height of the content */
|
|
1449
|
-
fullHeight = signal(0,
|
|
1570
|
+
fullHeight = signal(0, /* @ts-ignore */
|
|
1571
|
+
...(ngDevMode ? [{ debugName: "fullHeight" }] : /* istanbul ignore next */ []));
|
|
1450
1572
|
/** Whether the content is collapsible based on its height */
|
|
1451
1573
|
isCollapsible = computed(() => {
|
|
1452
1574
|
const max = Math.max(0, this.maxHeight());
|
|
1453
1575
|
return this.fullHeight() > max;
|
|
1454
|
-
},
|
|
1576
|
+
}, /* @ts-ignore */
|
|
1577
|
+
...(ngDevMode ? [{ debugName: "isCollapsible" }] : /* istanbul ignore next */ []));
|
|
1455
1578
|
ngAfterViewInit() {
|
|
1456
1579
|
// Initial height calculation
|
|
1457
1580
|
this.updateFullHeight();
|
|
@@ -1482,9 +1605,10 @@ class CollapseComponent {
|
|
|
1482
1605
|
'pe-collapse': true,
|
|
1483
1606
|
'pe-collapse--collapsed': this.isCollapsible() && this.collapsed(),
|
|
1484
1607
|
};
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
static
|
|
1608
|
+
}, /* @ts-ignore */
|
|
1609
|
+
...(ngDevMode ? [{ debugName: "computedClasses" }] : /* istanbul ignore next */ []));
|
|
1610
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CollapseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1611
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CollapseComponent, isStandalone: true, selector: "pe-collapse", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: true, transformFunction: null }, expandLabel: { classPropertyName: "expandLabel", publicName: "expandLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseLabel: { classPropertyName: "collapseLabel", publicName: "collapseLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { attributes: { "role": "region" }, properties: { "style.--pe-collapse-max-height.px": "maxHeight()", "style.--pe-collapse-full-height.px": "fullHeight()" } }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
|
|
1488
1612
|
<div [class]="computedClasses()">
|
|
1489
1613
|
<div class="pe-collapse__content" #content [attr.aria-expanded]="!collapsed()" [attr.aria-hidden]="collapsed()">
|
|
1490
1614
|
<ng-content />
|
|
@@ -1511,7 +1635,7 @@ class CollapseComponent {
|
|
|
1511
1635
|
</div>
|
|
1512
1636
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-collapse__content{position:relative;overflow:hidden;height:var(--pe-collapse-full-height);transition:height .25s cubic-bezier(.4,0,.2,1)}.pe-collapse__toggle{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0;gap:8px}.pe-collapse__toggle:before,.pe-collapse__toggle:after{content:\"\";display:block;width:100%;height:1px;border-bottom:1px solid rgba(255,255,255,.1)}.pe-collapse__toggle-button .pe-icon{transition:transform .25s cubic-bezier(.4,0,.2,1)}.pe-collapse--collapsed .pe-collapse__content{-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);height:var(--pe-collapse-max-height)}.pe-collapse--collapsed .pe-collapse__toggle-button .pe-icon{transform:rotate(180deg)}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1513
1637
|
}
|
|
1514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CollapseComponent, decorators: [{
|
|
1515
1639
|
type: Component,
|
|
1516
1640
|
args: [{ selector: 'pe-collapse', standalone: true, imports: [ButtonComponent, IconComponent], template: `
|
|
1517
1641
|
<div [class]="computedClasses()">
|
|
@@ -1549,12 +1673,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1549
1673
|
}], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: true }] }], expandLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandLabel", required: false }] }], collapseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseLabel", required: false }] }] } });
|
|
1550
1674
|
|
|
1551
1675
|
class ListItemComponent {
|
|
1552
|
-
checkbox = contentChild(CheckboxComponent,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1676
|
+
checkbox = contentChild(CheckboxComponent, /* @ts-ignore */
|
|
1677
|
+
...(ngDevMode ? [{ debugName: "checkbox" }] : /* istanbul ignore next */ []));
|
|
1678
|
+
theme = input('ghost-white', /* @ts-ignore */
|
|
1679
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
1680
|
+
disabled = input(false, /* @ts-ignore */
|
|
1681
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1682
|
+
hideFocusOutline = input(false, /* @ts-ignore */
|
|
1683
|
+
...(ngDevMode ? [{ debugName: "hideFocusOutline" }] : /* istanbul ignore next */ []));
|
|
1684
|
+
selected = input(false, /* @ts-ignore */
|
|
1685
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
1686
|
+
loading = input(false, /* @ts-ignore */
|
|
1687
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
1558
1688
|
clickHandler() {
|
|
1559
1689
|
if (this.disabled() || this.loading()) {
|
|
1560
1690
|
return;
|
|
@@ -1563,8 +1693,8 @@ class ListItemComponent {
|
|
|
1563
1693
|
this.checkbox()?.checked.update((value) => !value);
|
|
1564
1694
|
}
|
|
1565
1695
|
}
|
|
1566
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1567
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1696
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1697
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: ListItemComponent, isStandalone: true, selector: "pe-list-item", inputs: { theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hideFocusOutline: { classPropertyName: "hideFocusOutline", publicName: "hideFocusOutline", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "checkbox", first: true, predicate: CheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1568
1698
|
<pe-skeleton [show]="loading()" variant="rect">
|
|
1569
1699
|
<button
|
|
1570
1700
|
class="pe-list-item pe-list-item--{{ theme() }}"
|
|
@@ -1585,7 +1715,7 @@ class ListItemComponent {
|
|
|
1585
1715
|
</pe-skeleton>
|
|
1586
1716
|
`, isInline: true, styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-list-item{cursor:pointer;border:none;white-space:nowrap;box-sizing:border-box;text-align:start;display:flex;align-items:center;width:100%;gap:8px;border-radius:8px;padding:8px 12px;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-list-item:hover{background-color:#fff3}.pe-list-item:active{background-color:#ffffff1a}.pe-list-item:selected{background-color:#fff3}.pe-list-item{background-color:#fff0;color:inherit}.pe-list-item:disabled,.pe-list-item[disabled]{background-color:#fff0}.pe-list-item:focus-visible,.pe-list-item:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-list-item--no-focus-outline:focus-visible,.pe-list-item--no-focus-outline:focus{outline:none;outline-offset:0}.pe-list-item--selected{background-color:#fff3}.pe-list-item--transparent-white{background-color:#ffffff1a;color:inherit}.pe-list-item--transparent-white:hover{background-color:#fff3}.pe-list-item--transparent-white:active{background-color:#ffffff1a}.pe-list-item--transparent-white:selected{background-color:#fff3}.pe-list-item--transparent-white:disabled,.pe-list-item--transparent-white[disabled]{background-color:#ffffff0d}.pe-list-item--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-list-item--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-list-item--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-list-item--outline-white:disabled,.pe-list-item--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-list-item--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-list-item--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-list-item--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-list-item--outline-purple:disabled,.pe-list-item--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-list-item--transparent-white.pe-list-item--selected{background-color:#fff3}.pe-list-item__label{flex:1;color:#fff}.pe-list-item__before-label,.pe-list-item__after-label{display:flex;align-items:center;gap:8px}.pe-list-item .pe--icon{color:#fff}.pe-list-item:disabled,.pe-list-item[disabled]{cursor:not-allowed;color:#ffffff4d}.pe-list-item:disabled .pe-list-item__label,.pe-list-item[disabled] .pe-list-item__label{color:#ffffff4d}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1587
1717
|
}
|
|
1588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListItemComponent, decorators: [{
|
|
1589
1719
|
type: Component,
|
|
1590
1720
|
args: [{ selector: 'pe-list-item', standalone: true, imports: [SkeletonComponent], template: `
|
|
1591
1721
|
<pe-skeleton [show]="loading()" variant="rect">
|
|
@@ -1640,17 +1770,20 @@ class DropdownComponent {
|
|
|
1640
1770
|
* The visual theme for the dropdown.
|
|
1641
1771
|
* @default 'ghost-white'
|
|
1642
1772
|
*/
|
|
1643
|
-
theme = input('ghost-white',
|
|
1773
|
+
theme = input('ghost-white', /* @ts-ignore */
|
|
1774
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
1644
1775
|
/**
|
|
1645
1776
|
* Array of items to display in the dropdown menu.
|
|
1646
1777
|
* @default []
|
|
1647
1778
|
*/
|
|
1648
|
-
items = input([],
|
|
1779
|
+
items = input([], /* @ts-ignore */
|
|
1780
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
1649
1781
|
/**
|
|
1650
1782
|
* Whether the dropdown is disabled.
|
|
1651
1783
|
* @default false
|
|
1652
1784
|
*/
|
|
1653
|
-
disabled = input(false,
|
|
1785
|
+
disabled = input(false, /* @ts-ignore */
|
|
1786
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1654
1787
|
/**
|
|
1655
1788
|
* Overrides the icons of the selected item in the trigger button.
|
|
1656
1789
|
* Can override leftIcons, rightIcons, or both.
|
|
@@ -1665,7 +1798,8 @@ class DropdownComponent {
|
|
|
1665
1798
|
*/
|
|
1666
1799
|
menuTriggerIcons = input({
|
|
1667
1800
|
rightIcons: ['chevron_down'],
|
|
1668
|
-
},
|
|
1801
|
+
}, /* @ts-ignore */
|
|
1802
|
+
...(ngDevMode ? [{ debugName: "menuTriggerIcons" }] : /* istanbul ignore next */ []));
|
|
1669
1803
|
/**
|
|
1670
1804
|
* Shows only a single icon in the trigger button, hiding the selected item's label and icons.
|
|
1671
1805
|
* Commonly used with 'more_options' for action menus.
|
|
@@ -1676,18 +1810,21 @@ class DropdownComponent {
|
|
|
1676
1810
|
* triggerIconOnly = 'more_options'
|
|
1677
1811
|
* ```
|
|
1678
1812
|
*/
|
|
1679
|
-
triggerIconOnly = input(
|
|
1813
|
+
triggerIconOnly = input(/* @ts-ignore */
|
|
1814
|
+
...(ngDevMode ? [undefined, { debugName: "triggerIconOnly" }] : /* istanbul ignore next */ []));
|
|
1680
1815
|
/**
|
|
1681
1816
|
* Accessible label for the icon-only trigger button.
|
|
1682
1817
|
* @default 'Open menu'
|
|
1683
1818
|
*/
|
|
1684
|
-
iconOnlyLabel = input('Open menu',
|
|
1819
|
+
iconOnlyLabel = input('Open menu', /* @ts-ignore */
|
|
1820
|
+
...(ngDevMode ? [{ debugName: "iconOnlyLabel" }] : /* istanbul ignore next */ []));
|
|
1685
1821
|
/**
|
|
1686
1822
|
* The index of the currently selected item.
|
|
1687
1823
|
* Supports two-way binding with [(selectedIndex)].
|
|
1688
1824
|
* @default 0
|
|
1689
1825
|
*/
|
|
1690
|
-
selectedIndex = model(0,
|
|
1826
|
+
selectedIndex = model(0, /* @ts-ignore */
|
|
1827
|
+
...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
|
|
1691
1828
|
/**
|
|
1692
1829
|
* The currently selected item with any trigger icon overrides applied.
|
|
1693
1830
|
*/
|
|
@@ -1706,7 +1843,8 @@ class DropdownComponent {
|
|
|
1706
1843
|
...item,
|
|
1707
1844
|
...this.menuTriggerIcons(),
|
|
1708
1845
|
};
|
|
1709
|
-
},
|
|
1846
|
+
}, /* @ts-ignore */
|
|
1847
|
+
...(ngDevMode ? [{ debugName: "selectedItem" }] : /* istanbul ignore next */ []));
|
|
1710
1848
|
/**
|
|
1711
1849
|
* Right icons for the trigger: when default is chevron_down, shows chevron_down when closed
|
|
1712
1850
|
* and chevron_up when open. Otherwise uses selectedItem().rightIcons as-is.
|
|
@@ -1718,11 +1856,13 @@ class DropdownComponent {
|
|
|
1718
1856
|
return open ? ['chevron_up'] : ['chevron_down'];
|
|
1719
1857
|
}
|
|
1720
1858
|
return right;
|
|
1721
|
-
},
|
|
1859
|
+
}, /* @ts-ignore */
|
|
1860
|
+
...(ngDevMode ? [{ debugName: "triggerRightIcons" }] : /* istanbul ignore next */ []));
|
|
1722
1861
|
/**
|
|
1723
1862
|
* Tracks whether the menu is currently open for ARIA.
|
|
1724
1863
|
*/
|
|
1725
|
-
isOpen = signal(false,
|
|
1864
|
+
isOpen = signal(false, /* @ts-ignore */
|
|
1865
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
1726
1866
|
/**
|
|
1727
1867
|
* Stable id used to link the trigger to the menu container.
|
|
1728
1868
|
*/
|
|
@@ -1745,10 +1885,10 @@ class DropdownComponent {
|
|
|
1745
1885
|
onMenuClosed() {
|
|
1746
1886
|
this.isOpen.set(false);
|
|
1747
1887
|
}
|
|
1748
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1749
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1888
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1889
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: DropdownComponent, isStandalone: true, selector: "pe-dropdown", inputs: { theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, menuTriggerIcons: { classPropertyName: "menuTriggerIcons", publicName: "menuTriggerIcons", isSignal: true, isRequired: false, transformFunction: null }, triggerIconOnly: { classPropertyName: "triggerIconOnly", publicName: "triggerIconOnly", isSignal: true, isRequired: false, transformFunction: null }, iconOnlyLabel: { classPropertyName: "iconOnlyLabel", publicName: "iconOnlyLabel", isSignal: true, isRequired: false, transformFunction: null }, selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", selectedItemChange: "selectedItemChange" }, ngImport: i0, template: "<div class=\"pe-dropdown\">\n <!-- Template for rendering icon arrays -->\n <ng-template #renderIcons let-icons>\n @for (icon of icons; track icon) {\n <pe-icon size=\"5\" [icon]=\"icon\" />\n }\n </ng-template>\n\n @if (triggerIconOnly(); as iconName) {\n <pe-button\n [theme]=\"theme()\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"menu\"\n class=\"pe-dropdown__trigger\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"menuId\"\n [attr.aria-label]=\"iconOnlyLabel()\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <pe-icon [icon]=\"iconName\" />\n </pe-button>\n } @else {\n <pe-list-item\n [theme]=\"theme()\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"menu\"\n class=\"pe-dropdown__trigger\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"menuId\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <ng-container pe-list-item-before-label>\n @if (selectedItem().leftIcons) {\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: selectedItem().leftIcons }\"\n />\n }\n </ng-container>\n <ng-container pe-list-item-label>\n {{ selectedItem().label }}\n </ng-container>\n <ng-container pe-list-item-after-label>\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: triggerRightIcons() }\"\n />\n </ng-container>\n </pe-list-item>\n }\n\n <ng-template #menu>\n <div cdkMenu class=\"pe-dropdown__content pe-scrollable\" [id]=\"menuId\">\n @for (item of items(); track $index) {\n <pe-list-item\n cdkMenuItem\n (cdkMenuItemTriggered)=\"handleItemTriggered($index)\"\n [disabled]=\"!!item.disabled\"\n role=\"menuitemradio\"\n [attr.aria-checked]=\"selectedIndex() === $index ? 'true' : 'false'\"\n >\n <ng-container pe-list-item-before-label>\n <ng-container *ngTemplateOutlet=\"renderIcons; context: { $implicit: item.leftIcons }\" />\n </ng-container>\n <ng-container pe-list-item-label>{{ item.label }}</ng-container>\n <ng-container pe-list-item-after-label>\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: item.rightIcons }\"\n />\n @if (selectedIndex() === $index) {\n <pe-icon size=\"5\" icon=\"check\" />\n }\n </ng-container>\n </pe-list-item>\n }\n </div>\n </ng-template>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-dropdown{display:inline-flex;flex-direction:column;width:100%;gap:4px}.pe-dropdown__content{display:flex;flex-direction:column;gap:4px;background-color:#232323;border-radius:16px;padding:4px;margin:4px 0;max-height:316px;overflow-y:auto}\n"], dependencies: [{ kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData", "cdkMenuTriggerTransformOriginOn"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }, { kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "directive", type: CdkMenuItem, selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ListItemComponent, selector: "pe-list-item", inputs: ["theme", "disabled", "hideFocusOutline", "selected", "loading"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1750
1890
|
}
|
|
1751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
1752
1892
|
type: Component,
|
|
1753
1893
|
args: [{ selector: 'pe-dropdown', standalone: true, imports: [CdkMenuTrigger, CdkMenu, CdkMenuItem, NgTemplateOutlet, ListItemComponent, IconComponent, ButtonComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pe-dropdown\">\n <!-- Template for rendering icon arrays -->\n <ng-template #renderIcons let-icons>\n @for (icon of icons; track icon) {\n <pe-icon size=\"5\" [icon]=\"icon\" />\n }\n </ng-template>\n\n @if (triggerIconOnly(); as iconName) {\n <pe-button\n [theme]=\"theme()\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"menu\"\n class=\"pe-dropdown__trigger\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"menuId\"\n [attr.aria-label]=\"iconOnlyLabel()\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <pe-icon [icon]=\"iconName\" />\n </pe-button>\n } @else {\n <pe-list-item\n [theme]=\"theme()\"\n [disabled]=\"disabled()\"\n [cdkMenuTriggerFor]=\"menu\"\n class=\"pe-dropdown__trigger\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"menuId\"\n (cdkMenuOpened)=\"onMenuOpened()\"\n (cdkMenuClosed)=\"onMenuClosed()\"\n >\n <ng-container pe-list-item-before-label>\n @if (selectedItem().leftIcons) {\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: selectedItem().leftIcons }\"\n />\n }\n </ng-container>\n <ng-container pe-list-item-label>\n {{ selectedItem().label }}\n </ng-container>\n <ng-container pe-list-item-after-label>\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: triggerRightIcons() }\"\n />\n </ng-container>\n </pe-list-item>\n }\n\n <ng-template #menu>\n <div cdkMenu class=\"pe-dropdown__content pe-scrollable\" [id]=\"menuId\">\n @for (item of items(); track $index) {\n <pe-list-item\n cdkMenuItem\n (cdkMenuItemTriggered)=\"handleItemTriggered($index)\"\n [disabled]=\"!!item.disabled\"\n role=\"menuitemradio\"\n [attr.aria-checked]=\"selectedIndex() === $index ? 'true' : 'false'\"\n >\n <ng-container pe-list-item-before-label>\n <ng-container *ngTemplateOutlet=\"renderIcons; context: { $implicit: item.leftIcons }\" />\n </ng-container>\n <ng-container pe-list-item-label>{{ item.label }}</ng-container>\n <ng-container pe-list-item-after-label>\n <ng-container\n *ngTemplateOutlet=\"renderIcons; context: { $implicit: item.rightIcons }\"\n />\n @if (selectedIndex() === $index) {\n <pe-icon size=\"5\" icon=\"check\" />\n }\n </ng-container>\n </pe-list-item>\n }\n </div>\n </ng-template>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-dropdown{display:inline-flex;flex-direction:column;width:100%;gap:4px}.pe-dropdown__content{display:flex;flex-direction:column;gap:4px;background-color:#232323;border-radius:16px;padding:4px;margin:4px 0;max-height:316px;overflow-y:auto}\n"] }]
|
|
1754
1894
|
}], propDecorators: { theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], menuTriggerIcons: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuTriggerIcons", required: false }] }], triggerIconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerIconOnly", required: false }] }], iconOnlyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnlyLabel", required: false }] }], selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], selectedItemChange: [{ type: i0.Output, args: ["selectedItemChange"] }] } });
|
|
@@ -1761,31 +1901,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1761
1901
|
* Content projection: [pe-file-input-left-elements], [pe-file-input-right-elements].
|
|
1762
1902
|
*/
|
|
1763
1903
|
class FileInputComponent {
|
|
1764
|
-
size = input('md',
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1904
|
+
size = input('md', /* @ts-ignore */
|
|
1905
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
1906
|
+
appearance = input('border-only', /* @ts-ignore */
|
|
1907
|
+
...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
|
|
1908
|
+
accept = input('', /* @ts-ignore */
|
|
1909
|
+
...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
|
|
1910
|
+
multiple = input(false, /* @ts-ignore */
|
|
1911
|
+
...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
1912
|
+
disabled = input(false, /* @ts-ignore */
|
|
1913
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1914
|
+
required = input(false, /* @ts-ignore */
|
|
1915
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
1916
|
+
label = input(null, /* @ts-ignore */
|
|
1917
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1918
|
+
helperText = input(null, /* @ts-ignore */
|
|
1919
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
1920
|
+
errorText = input(null, /* @ts-ignore */
|
|
1921
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1773
1922
|
/** Placeholder when no file is selected (e.g. "Choose file" or "No file chosen"). */
|
|
1774
|
-
placeholderText = input('No file chosen',
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1923
|
+
placeholderText = input('No file chosen', /* @ts-ignore */
|
|
1924
|
+
...(ngDevMode ? [{ debugName: "placeholderText" }] : /* istanbul ignore next */ []));
|
|
1925
|
+
controlId = input(/* @ts-ignore */
|
|
1926
|
+
...(ngDevMode ? [undefined, { debugName: "controlId" }] : /* istanbul ignore next */ []));
|
|
1927
|
+
invalid = input(false, /* @ts-ignore */
|
|
1928
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
1929
|
+
errors = input([], /* @ts-ignore */
|
|
1930
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
1931
|
+
touched = model(false, /* @ts-ignore */
|
|
1932
|
+
...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
1933
|
+
error = input(false, /* @ts-ignore */
|
|
1934
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
1935
|
+
value = model(null, /* @ts-ignore */
|
|
1936
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1937
|
+
fileInputRef = viewChild('fileInput', /* @ts-ignore */
|
|
1938
|
+
...(ngDevMode ? [{ debugName: "fileInputRef" }] : /* istanbul ignore next */ []));
|
|
1782
1939
|
ids = createFormFieldIds('pe-file-input');
|
|
1783
|
-
effectiveControlId = computed(() => this.controlId() ?? this.ids.controlId,
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1940
|
+
effectiveControlId = computed(() => this.controlId() ?? this.ids.controlId, /* @ts-ignore */
|
|
1941
|
+
...(ngDevMode ? [{ debugName: "effectiveControlId" }] : /* istanbul ignore next */ []));
|
|
1942
|
+
effectiveHelperId = computed(() => this.controlId() ? `${this.controlId()}-helper` : this.ids.helperId, /* @ts-ignore */
|
|
1943
|
+
...(ngDevMode ? [{ debugName: "effectiveHelperId" }] : /* istanbul ignore next */ []));
|
|
1944
|
+
effectiveErrorId = computed(() => this.controlId() ? `${this.controlId()}-error` : this.ids.errorId, /* @ts-ignore */
|
|
1945
|
+
...(ngDevMode ? [{ debugName: "effectiveErrorId" }] : /* istanbul ignore next */ []));
|
|
1946
|
+
isFocused = signal(false, /* @ts-ignore */
|
|
1947
|
+
...(ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []));
|
|
1948
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
1949
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1950
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.effectiveHelperId(), this.effectiveErrorId(), !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
1951
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
1789
1952
|
/** Display text for selected file(s). */
|
|
1790
1953
|
selectedLabel = computed(() => {
|
|
1791
1954
|
const files = this.value();
|
|
@@ -1794,17 +1957,11 @@ class FileInputComponent {
|
|
|
1794
1957
|
if (files.length === 1)
|
|
1795
1958
|
return files[0].name;
|
|
1796
1959
|
return `${files.length} files selected`;
|
|
1797
|
-
},
|
|
1960
|
+
}, /* @ts-ignore */
|
|
1961
|
+
...(ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []));
|
|
1798
1962
|
inputBlur = output();
|
|
1799
1963
|
inputFocus = output();
|
|
1800
|
-
valueChange = output();
|
|
1801
1964
|
constructor() {
|
|
1802
|
-
effect(() => {
|
|
1803
|
-
const current = this.value();
|
|
1804
|
-
if (current !== undefined) {
|
|
1805
|
-
this.valueChange.emit(current);
|
|
1806
|
-
}
|
|
1807
|
-
});
|
|
1808
1965
|
effect(() => {
|
|
1809
1966
|
if (this.value() === null) {
|
|
1810
1967
|
const el = this.fileInputRef()?.nativeElement;
|
|
@@ -1818,7 +1975,6 @@ class FileInputComponent {
|
|
|
1818
1975
|
const fileList = inputEl.files;
|
|
1819
1976
|
const next = fileList && fileList.length > 0 ? fileList : null;
|
|
1820
1977
|
this.value.set(next);
|
|
1821
|
-
this.valueChange.emit(next);
|
|
1822
1978
|
}
|
|
1823
1979
|
onBlur(event) {
|
|
1824
1980
|
this.isFocused.set(false);
|
|
@@ -1839,31 +1995,38 @@ class FileInputComponent {
|
|
|
1839
1995
|
if (el instanceof HTMLInputElement)
|
|
1840
1996
|
el.focus();
|
|
1841
1997
|
}
|
|
1842
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1843
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.2", type: FileInputComponent, isStandalone: true, selector: "pe-file-input", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, placeholderText: { classPropertyName: "placeholderText", publicName: "placeholderText", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus", valueChange: "valueChange" }, viewQueries: [{ propertyName: "fileInputRef", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pe-file-input pe-file-input--{{ size() }} pe-file-input--appearance-{{ appearance() }}\"\n [class.pe-file-input--error]=\"hasError()\"\n [class.pe-file-input--disabled]=\"disabled()\"\n [class.pe-file-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-file-input__group\" [class.pe-file-input__group--focused]=\"isFocused()\">\n <div class=\"pe-file-input__left-elements\">\n <ng-content select=\"[pe-file-input-left-elements]\" />\n </div>\n\n <input\n #fileInput\n [id]=\"effectiveControlId()\"\n type=\"file\"\n class=\"pe-file-input__native\"\n [accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (change)=\"onFileChange($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <button\n type=\"button\"\n class=\"pe-file-input__trigger\"\n [disabled]=\"disabled()\"\n (click)=\"triggerClick()\"\n >\n Choose file\n </button>\n <span class=\"pe-file-input__label\">{{ selectedLabel() }}</span>\n\n <div class=\"pe-file-input__right-elements\">\n <ng-content select=\"[pe-file-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-file-input{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-file-input__group{position:relative;display:flex;align-items:center;height:40px;gap:0;padding:0;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input__group--focused{border-color:#ffffff80}.pe-file-input--appearance-border-only:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d}.pe-file-input--appearance-subtle-tint:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-file-input__native{position:absolute;width:0;height:0;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}.pe-file-input__trigger{flex-shrink:0;margin:0 8px 0 0;height:100%;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;background-color:#232323;padding:0 12px;color:#fff;cursor:pointer;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;transition:background-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pe-file-input__trigger:hover:not(:disabled){background-color:#ffffff1a}.pe-file-input__trigger:disabled{cursor:not-allowed;color:#ffffff4d;background-color:transparent}.pe-file-input__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffffff80}.pe-file-input__left-elements,.pe-file-input__right-elements{display:flex;gap:8px}.pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--sm .pe-file-input__group{height:32px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-file-input--sm .pe-file-input__left-elements,.pe-file-input--sm .pe-file-input__right-elements{gap:4px}.pe-file-input--sm .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--sm .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-file-input--md .pe-file-input__group{height:40px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input--md .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--md .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--lg .pe-file-input__group{height:48px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-file-input--lg .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--lg .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-file-input--xl .pe-file-input__group{height:64px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-file-input--xl .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--xl .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-file-input--error .pe-file-input__group{border:2px solid #f69d9d}.pe-file-input--disabled .pe-file-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-file-input--disabled .pe-file-input__label{color:#ffffff4d}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1998
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1999
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: FileInputComponent, isStandalone: true, selector: "pe-file-input", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, placeholderText: { classPropertyName: "placeholderText", publicName: "placeholderText", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, viewQueries: [{ propertyName: "fileInputRef", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pe-file-input pe-file-input--{{ size() }} pe-file-input--appearance-{{ appearance() }}\"\n [class.pe-file-input--error]=\"hasError()\"\n [class.pe-file-input--disabled]=\"disabled()\"\n [class.pe-file-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-file-input__group\" [class.pe-file-input__group--focused]=\"isFocused()\">\n <div class=\"pe-file-input__left-elements\">\n <ng-content select=\"[pe-file-input-left-elements]\" />\n </div>\n\n <input\n #fileInput\n [id]=\"effectiveControlId()\"\n type=\"file\"\n class=\"pe-file-input__native\"\n [accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (change)=\"onFileChange($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <button\n type=\"button\"\n class=\"pe-file-input__trigger\"\n [disabled]=\"disabled()\"\n (click)=\"triggerClick()\"\n >\n Choose file\n </button>\n <span class=\"pe-file-input__label\">{{ selectedLabel() }}</span>\n\n <div class=\"pe-file-input__right-elements\">\n <ng-content select=\"[pe-file-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-file-input{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-file-input__group{position:relative;display:flex;align-items:center;height:40px;gap:0;padding:0;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input__group--focused{border-color:#ffffff80}.pe-file-input--appearance-border-only:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d}.pe-file-input--appearance-subtle-tint:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-file-input__native{position:absolute;width:0;height:0;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}.pe-file-input__trigger{flex-shrink:0;margin:0 8px 0 0;height:100%;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;background-color:#232323;padding:0 12px;color:#fff;cursor:pointer;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;transition:background-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pe-file-input__trigger:hover:not(:disabled){background-color:#ffffff1a}.pe-file-input__trigger:disabled{cursor:not-allowed;color:#ffffff4d;background-color:transparent}.pe-file-input__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffffff80}.pe-file-input__left-elements,.pe-file-input__right-elements{display:flex;gap:8px}.pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--sm .pe-file-input__group{height:32px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-file-input--sm .pe-file-input__left-elements,.pe-file-input--sm .pe-file-input__right-elements{gap:4px}.pe-file-input--sm .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--sm .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-file-input--md .pe-file-input__group{height:40px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input--md .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--md .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--lg .pe-file-input__group{height:48px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-file-input--lg .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--lg .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-file-input--xl .pe-file-input__group{height:64px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-file-input--xl .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--xl .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-file-input--error .pe-file-input__group{border:2px solid #f69d9d}.pe-file-input--disabled .pe-file-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-file-input--disabled .pe-file-input__label{color:#ffffff4d}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1844
2000
|
}
|
|
1845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FileInputComponent, decorators: [{
|
|
1846
2002
|
type: Component,
|
|
1847
2003
|
args: [{ selector: 'pe-file-input', standalone: true, imports: [FormFieldLabelComponent, FormFieldHelperComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-file-input pe-file-input--{{ size() }} pe-file-input--appearance-{{ appearance() }}\"\n [class.pe-file-input--error]=\"hasError()\"\n [class.pe-file-input--disabled]=\"disabled()\"\n [class.pe-file-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-file-input__group\" [class.pe-file-input__group--focused]=\"isFocused()\">\n <div class=\"pe-file-input__left-elements\">\n <ng-content select=\"[pe-file-input-left-elements]\" />\n </div>\n\n <input\n #fileInput\n [id]=\"effectiveControlId()\"\n type=\"file\"\n class=\"pe-file-input__native\"\n [accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [required]=\"required()\"\n (change)=\"onFileChange($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <button\n type=\"button\"\n class=\"pe-file-input__trigger\"\n [disabled]=\"disabled()\"\n (click)=\"triggerClick()\"\n >\n Choose file\n </button>\n <span class=\"pe-file-input__label\">{{ selectedLabel() }}</span>\n\n <div class=\"pe-file-input__right-elements\">\n <ng-content select=\"[pe-file-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-file-input{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-file-input__group{position:relative;display:flex;align-items:center;height:40px;gap:0;padding:0;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input__group--focused{border-color:#ffffff80}.pe-file-input--appearance-border-only:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d}.pe-file-input--appearance-subtle-tint:not(.pe-file-input--disabled) .pe-file-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-file-input__native{position:absolute;width:0;height:0;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}.pe-file-input__trigger{flex-shrink:0;margin:0 8px 0 0;height:100%;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;background-color:#232323;padding:0 12px;color:#fff;cursor:pointer;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;transition:background-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pe-file-input__trigger:hover:not(:disabled){background-color:#ffffff1a}.pe-file-input__trigger:disabled{cursor:not-allowed;color:#ffffff4d;background-color:transparent}.pe-file-input__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffffff80}.pe-file-input__left-elements,.pe-file-input__right-elements{display:flex;gap:8px}.pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--sm .pe-file-input__group{height:32px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-file-input--sm .pe-file-input__left-elements,.pe-file-input--sm .pe-file-input__right-elements{gap:4px}.pe-file-input--sm .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--sm .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-file-input--md .pe-file-input__group{height:40px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-file-input--md .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--md .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-file-input--lg .pe-file-input__group{height:48px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-file-input--lg .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--lg .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-file-input--xl .pe-file-input__group{height:64px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-file-input--xl .pe-file-input__left-elements ::ng-deep .pe-icon,.pe-file-input--xl .pe-file-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-file-input--error .pe-file-input__group{border:2px solid #f69d9d}.pe-file-input--disabled .pe-file-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-file-input--disabled .pe-file-input__label{color:#ffffff4d}\n"] }]
|
|
1848
|
-
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], placeholderText: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderText", required: false }] }], controlId: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlId", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], fileInputRef: [{ type: i0.ViewChild, args: ['fileInput', { isSignal: true }] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }]
|
|
2004
|
+
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], placeholderText: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderText", required: false }] }], controlId: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlId", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], fileInputRef: [{ type: i0.ViewChild, args: ['fileInput', { isSignal: true }] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }] } });
|
|
1849
2005
|
|
|
1850
2006
|
class FooterComponent {
|
|
1851
|
-
copyrightText = input('',
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
2007
|
+
copyrightText = input('', /* @ts-ignore */
|
|
2008
|
+
...(ngDevMode ? [{ debugName: "copyrightText" }] : /* istanbul ignore next */ []));
|
|
2009
|
+
socialLinks = input([], /* @ts-ignore */
|
|
2010
|
+
...(ngDevMode ? [{ debugName: "socialLinks" }] : /* istanbul ignore next */ []));
|
|
2011
|
+
links = input([], /* @ts-ignore */
|
|
2012
|
+
...(ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []));
|
|
2013
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2014
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: FooterComponent, isStandalone: true, selector: "pe-footer", inputs: { copyrightText: { classPropertyName: "copyrightText", publicName: "copyrightText", isSignal: true, isRequired: false, transformFunction: null }, socialLinks: { classPropertyName: "socialLinks", publicName: "socialLinks", isSignal: true, isRequired: false, transformFunction: null }, links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"pe-footer\">\n <p class=\"pe-footer__copyright\">\n {{ copyrightText() }}\n </p>\n @if (socialLinks()) {\n <ul class=\"pe-footer__social-links\">\n @for (link of socialLinks(); track link.url) {\n <li>\n <pe-button [theme]=\"'ghost-white'\" [iconOnly]=\"true\" [disabled]=\"false\">\n <pe-icon [icon]=\"link.icon\" />\n </pe-button>\n </li>\n }\n </ul>\n }\n @for (link of links(); track link.url) {\n <a [href]=\"link.url\" class=\"pe-link pe-body-m--medium\">{{ link.text }}</a>\n }\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-footer{padding:32px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}.pe-footer__copyright{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;margin:0 auto 0 0;color:#ffffff80}.pe-footer__social-links{display:flex;gap:4px;list-style:none;padding:0;margin:0}.pe-footer__social-links__social-link{display:flex}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }] });
|
|
1856
2015
|
}
|
|
1857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: FooterComponent, decorators: [{
|
|
1858
2017
|
type: Component,
|
|
1859
2018
|
args: [{ selector: 'pe-footer', imports: [ButtonComponent, IconComponent], standalone: true, template: "<div class=\"pe-footer\">\n <p class=\"pe-footer__copyright\">\n {{ copyrightText() }}\n </p>\n @if (socialLinks()) {\n <ul class=\"pe-footer__social-links\">\n @for (link of socialLinks(); track link.url) {\n <li>\n <pe-button [theme]=\"'ghost-white'\" [iconOnly]=\"true\" [disabled]=\"false\">\n <pe-icon [icon]=\"link.icon\" />\n </pe-button>\n </li>\n }\n </ul>\n }\n @for (link of links(); track link.url) {\n <a [href]=\"link.url\" class=\"pe-link pe-body-m--medium\">{{ link.text }}</a>\n }\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-footer{padding:32px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}.pe-footer__copyright{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;margin:0 auto 0 0;color:#ffffff80}.pe-footer__social-links{display:flex;gap:4px;list-style:none;padding:0;margin:0}.pe-footer__social-links__social-link{display:flex}\n"] }]
|
|
1860
2019
|
}], propDecorators: { copyrightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyrightText", required: false }] }], socialLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "socialLinks", required: false }] }], links: [{ type: i0.Input, args: [{ isSignal: true, alias: "links", required: false }] }] } });
|
|
1861
2020
|
|
|
1862
2021
|
class PillComponent {
|
|
1863
|
-
variant = input('interactive',
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
2022
|
+
variant = input('interactive', /* @ts-ignore */
|
|
2023
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2024
|
+
theme = input('transparent-white', /* @ts-ignore */
|
|
2025
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
2026
|
+
size = input('md', /* @ts-ignore */
|
|
2027
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2028
|
+
disabled = input(false, /* @ts-ignore */
|
|
2029
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1867
2030
|
dismiss = output();
|
|
1868
2031
|
dismissibleButtonTheme = computed(() => {
|
|
1869
2032
|
const t = this.theme();
|
|
@@ -1874,28 +2037,30 @@ class PillComponent {
|
|
|
1874
2037
|
if (t === 'outline-green')
|
|
1875
2038
|
return 'ghost-green';
|
|
1876
2039
|
return 'ghost-white';
|
|
1877
|
-
},
|
|
2040
|
+
}, /* @ts-ignore */
|
|
2041
|
+
...(ngDevMode ? [{ debugName: "dismissibleButtonTheme" }] : /* istanbul ignore next */ []));
|
|
1878
2042
|
modifierClass = computed(() => {
|
|
1879
2043
|
const classes = ['pe-pill', `pe-pill--${this.variant()}`, `pe-pill--${this.theme()}`, `pe-pill--${this.size()}`];
|
|
1880
2044
|
if (this.disabled()) {
|
|
1881
2045
|
classes.push('pe-pill--disabled');
|
|
1882
2046
|
}
|
|
1883
2047
|
return classes;
|
|
1884
|
-
},
|
|
1885
|
-
|
|
1886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: PillComponent, isStandalone: true, selector: "pe-pill", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: "@if (variant() === 'selectable') {\n <label [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <input type=\"checkbox\" class=\"pe-pill__checkbox\" />\n <ng-container *ngTemplateOutlet=\"content\" />\n </label>\n} @else if (['dismissible', 'read-only'].includes(variant())) {\n <div [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n @if (variant() === 'dismissible') {\n <pe-button\n [theme]=\"dismissibleButtonTheme()\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n (click)=\"dismiss.emit()\"\n >\n <pe-icon icon=\"close\" />\n </pe-button>\n }\n </div>\n} @else if (['interactive', 'interactive-rounded'].includes(variant())) {\n <button [class]=\"modifierClass()\" [disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </button>\n}\n\n<ng-template #content>\n <ng-content />\n</ng-template>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-pill{border:none;cursor:pointer;text-decoration-line:none;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;box-sizing:border-box;background-color:transparent;gap:8px;color:#fff;border-radius:8px;padding:4px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1)}.pe-pill--md{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:500}.pe-pill--lg{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500}.pe-pill--interactive,.pe-pill--interactive-rounded,.pe-pill--selectable{cursor:pointer}.pe-pill--interactive:focus-visible,.pe-pill--interactive:focus,.pe-pill--interactive-rounded:focus-visible,.pe-pill--interactive-rounded:focus,.pe-pill--selectable:focus-visible,.pe-pill--selectable:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-pill--interactive-rounded{cursor:pointer;border-radius:4096px}.pe-pill--read-only,.pe-pill--dismissible.pe-pill{cursor:default}.pe-pill--dismissible.pe-pill .pe-btn--sm:last-child .pe-icon{font-size:16px;line-height:16px}.pe-pill--dismissible.pe-pill--md{padding:4px 4px 4px 12px;border-radius:8px}.pe-pill--dismissible.pe-pill--md .pe-btn--sm:last-child{min-width:24px;height:24px}.pe-pill--dismissible.pe-pill--lg{padding:8px 4px 8px 16px;border-radius:12px}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{background-color:#fff;color:inherit}.pe-pill--interactive.pe-pill--fill-white:hover,.pe-pill--interactive-rounded.pe-pill--fill-white:hover{background-color:#e7e7e7}.pe-pill--interactive.pe-pill--fill-white:active,.pe-pill--interactive-rounded.pe-pill--fill-white:active{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:selected,.pe-pill--interactive-rounded.pe-pill--fill-white:selected{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:disabled,.pe-pill--interactive.pe-pill--fill-white[disabled],.pe-pill--interactive-rounded.pe-pill--fill-white:disabled,.pe-pill--interactive-rounded.pe-pill--fill-white[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{color:#000}.pe-pill--interactive.pe-pill--fill-black:hover,.pe-pill--interactive-rounded.pe-pill--fill-black:hover{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:active,.pe-pill--interactive-rounded.pe-pill--fill-black:active{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black:selected,.pe-pill--interactive-rounded.pe-pill--fill-black:selected{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:disabled,.pe-pill--interactive.pe-pill--fill-black[disabled],.pe-pill--interactive-rounded.pe-pill--fill-black:disabled,.pe-pill--interactive-rounded.pe-pill--fill-black[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black,.pe-pill--interactive-rounded.pe-pill--fill-black{background-color:#232323;color:inherit;color:#fff}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{background-color:#6f3de0;color:inherit}.pe-pill--interactive.pe-pill--fill-purple:hover,.pe-pill--interactive-rounded.pe-pill--fill-purple:hover{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:active,.pe-pill--interactive-rounded.pe-pill--fill-purple:active{background-color:#5935af}.pe-pill--interactive.pe-pill--fill-purple:selected,.pe-pill--interactive-rounded.pe-pill--fill-purple:selected{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:disabled,.pe-pill--interactive.pe-pill--fill-purple[disabled],.pe-pill--interactive-rounded.pe-pill--fill-purple:disabled,.pe-pill--interactive-rounded.pe-pill--fill-purple[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{color:#fff}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{background-color:#c33a3a;color:inherit}.pe-pill--interactive.pe-pill--fill-red:hover,.pe-pill--interactive-rounded.pe-pill--fill-red:hover{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:active,.pe-pill--interactive-rounded.pe-pill--fill-red:active{background-color:#982d2d}.pe-pill--interactive.pe-pill--fill-red:selected,.pe-pill--interactive-rounded.pe-pill--fill-red:selected{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:disabled,.pe-pill--interactive.pe-pill--fill-red[disabled],.pe-pill--interactive-rounded.pe-pill--fill-red:disabled,.pe-pill--interactive-rounded.pe-pill--fill-red[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{color:#fff}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{background-color:#0b7a27;color:inherit}.pe-pill--interactive.pe-pill--fill-green:hover,.pe-pill--interactive-rounded.pe-pill--fill-green:hover{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:active,.pe-pill--interactive-rounded.pe-pill--fill-green:active{background-color:#096620}.pe-pill--interactive.pe-pill--fill-green:selected,.pe-pill--interactive-rounded.pe-pill--fill-green:selected{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:disabled,.pe-pill--interactive.pe-pill--fill-green[disabled],.pe-pill--interactive-rounded.pe-pill--fill-green:disabled,.pe-pill--interactive-rounded.pe-pill--fill-green[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{color:#fff}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:hover,.pe-pill--interactive-rounded.pe-pill--transparent-white:hover{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:active,.pe-pill--interactive-rounded.pe-pill--transparent-white:active{background-color:#ffffff1a}.pe-pill--interactive.pe-pill--transparent-white:selected,.pe-pill--interactive-rounded.pe-pill--transparent-white:selected{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:hover,.pe-pill--interactive-rounded.pe-pill--transparent-purple:hover{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:active,.pe-pill--interactive-rounded.pe-pill--transparent-purple:active{background-color:#a781ff33}.pe-pill--interactive.pe-pill--transparent-purple:selected,.pe-pill--interactive-rounded.pe-pill--transparent-purple:selected{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{background-color:#f3707033;color:inherit}.pe-pill--interactive.pe-pill--transparent-red:hover,.pe-pill--interactive-rounded.pe-pill--transparent-red:hover{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:active,.pe-pill--interactive-rounded.pe-pill--transparent-red:active{background-color:#f3707033}.pe-pill--interactive.pe-pill--transparent-red:selected,.pe-pill--interactive-rounded.pe-pill--transparent-red:selected{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:disabled,.pe-pill--interactive.pe-pill--transparent-red[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-red:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-red[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{color:#f69d9d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{background-color:#50c06c33;color:inherit}.pe-pill--interactive.pe-pill--transparent-green:hover,.pe-pill--interactive-rounded.pe-pill--transparent-green:hover{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:active,.pe-pill--interactive-rounded.pe-pill--transparent-green:active{background-color:#50c06c33}.pe-pill--interactive.pe-pill--transparent-green:selected,.pe-pill--interactive-rounded.pe-pill--transparent-green:selected{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:disabled,.pe-pill--interactive.pe-pill--transparent-green[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-green:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-green[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{color:#7edc96}.pe-pill--interactive.pe-pill--stroke-white,.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--stroke-white,.pe-pill--interactive-rounded.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--stroke-white:disabled,.pe-pill--interactive.pe-pill--stroke-white[disabled],.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--stroke-white:disabled,.pe-pill--interactive-rounded.pe-pill--stroke-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled],.pe-pill--dismissible.pe-pill--transparent-white:disabled,.pe-pill--dismissible.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled],.pe-pill--dismissible.pe-pill--transparent-purple:disabled,.pe-pill--dismissible.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--outline-white,.pe-pill--dismissible.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled],.pe-pill--dismissible.pe-pill--outline-white:disabled,.pe-pill--dismissible.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple,.pe-pill--dismissible.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled],.pe-pill--dismissible.pe-pill--outline-purple:disabled,.pe-pill--dismissible.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red,.pe-pill--dismissible.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled],.pe-pill--dismissible.pe-pill--outline-red:disabled,.pe-pill--dismissible.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green,.pe-pill--dismissible.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled],.pe-pill--dismissible.pe-pill--outline-green:disabled,.pe-pill--dismissible.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--read-only.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--read-only.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--read-only.pe-pill--transparent-red{color:#f69d9d;border:1px solid #f69d9d}.pe-pill--read-only.pe-pill--transparent-green{color:#7edc96;border:1px solid #7edc96}.pe-pill--read-only.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--read-only.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--read-only.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--read-only.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable{position:relative}.pe-pill--selectable.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--selectable.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--selectable.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--selectable.pe-pill--outline-white:disabled,.pe-pill--selectable.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:disabled,.pe-pill--selectable.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:disabled,.pe-pill--selectable.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#f3707033;color:inherit}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):hover{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):active{background-color:#f3707033}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):selected{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:disabled,.pe-pill--selectable.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#50c06c33;color:inherit}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):hover{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):active{background-color:#50c06c33}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):selected{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable .pe-pill__checkbox{position:absolute;visibility:hidden;height:0;width:0;top:0;left:0}.pe-pill--disabled,.pe-pill[disabled],.pe-pill:disabled{cursor:not-allowed;color:#ffffff4d}.pe-pill--disabled.pe-pill--outline-white,.pe-pill--disabled.pe-pill--outline-purple,.pe-pill--disabled.pe-pill--outline-red,.pe-pill--disabled.pe-pill--outline-green,.pe-pill--disabled.pe-pill--stroke-white,.pe-pill[disabled].pe-pill--outline-white,.pe-pill[disabled].pe-pill--outline-purple,.pe-pill[disabled].pe-pill--outline-red,.pe-pill[disabled].pe-pill--outline-green,.pe-pill[disabled].pe-pill--stroke-white,.pe-pill:disabled.pe-pill--outline-white,.pe-pill:disabled.pe-pill--outline-purple,.pe-pill:disabled.pe-pill--outline-red,.pe-pill:disabled.pe-pill--outline-green,.pe-pill:disabled.pe-pill--stroke-white{border-color:#6c6c6c}.pe-pill .pe-icon{font-size:20px;line-height:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2048
|
+
}, /* @ts-ignore */
|
|
2049
|
+
...(ngDevMode ? [{ debugName: "modifierClass" }] : /* istanbul ignore next */ []));
|
|
2050
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2051
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: PillComponent, isStandalone: true, selector: "pe-pill", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: "@if (variant() === 'selectable') {\n <label [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <input type=\"checkbox\" class=\"pe-pill__checkbox\" />\n <ng-container *ngTemplateOutlet=\"content\" />\n </label>\n} @else if (['dismissible', 'read-only'].includes(variant())) {\n <div [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n @if (variant() === 'dismissible') {\n <pe-button\n [theme]=\"dismissibleButtonTheme()\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n (click)=\"dismiss.emit()\"\n >\n <pe-icon icon=\"close\" />\n </pe-button>\n }\n </div>\n} @else if (['interactive', 'interactive-rounded'].includes(variant())) {\n <button [class]=\"modifierClass()\" [disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </button>\n}\n\n<ng-template #content>\n <ng-content />\n</ng-template>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-pill{border:none;cursor:pointer;text-decoration-line:none;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;box-sizing:border-box;background-color:transparent;gap:8px;color:#fff;border-radius:8px;padding:4px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1)}.pe-pill--md{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:500}.pe-pill--lg{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500}.pe-pill--interactive,.pe-pill--interactive-rounded,.pe-pill--selectable{cursor:pointer}.pe-pill--interactive:focus-visible,.pe-pill--interactive:focus,.pe-pill--interactive-rounded:focus-visible,.pe-pill--interactive-rounded:focus,.pe-pill--selectable:focus-visible,.pe-pill--selectable:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-pill--interactive-rounded{cursor:pointer;border-radius:4096px}.pe-pill--read-only,.pe-pill--dismissible.pe-pill{cursor:default}.pe-pill--dismissible.pe-pill .pe-btn--sm:last-child .pe-icon{font-size:16px;line-height:16px}.pe-pill--dismissible.pe-pill--md{padding:4px 4px 4px 12px;border-radius:8px}.pe-pill--dismissible.pe-pill--md .pe-btn--sm:last-child{min-width:24px;height:24px}.pe-pill--dismissible.pe-pill--lg{padding:8px 4px 8px 16px;border-radius:12px}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{background-color:#fff;color:inherit}.pe-pill--interactive.pe-pill--fill-white:hover,.pe-pill--interactive-rounded.pe-pill--fill-white:hover{background-color:#e7e7e7}.pe-pill--interactive.pe-pill--fill-white:active,.pe-pill--interactive-rounded.pe-pill--fill-white:active{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:selected,.pe-pill--interactive-rounded.pe-pill--fill-white:selected{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:disabled,.pe-pill--interactive.pe-pill--fill-white[disabled],.pe-pill--interactive-rounded.pe-pill--fill-white:disabled,.pe-pill--interactive-rounded.pe-pill--fill-white[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{color:#000}.pe-pill--interactive.pe-pill--fill-black:hover,.pe-pill--interactive-rounded.pe-pill--fill-black:hover{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:active,.pe-pill--interactive-rounded.pe-pill--fill-black:active{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black:selected,.pe-pill--interactive-rounded.pe-pill--fill-black:selected{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:disabled,.pe-pill--interactive.pe-pill--fill-black[disabled],.pe-pill--interactive-rounded.pe-pill--fill-black:disabled,.pe-pill--interactive-rounded.pe-pill--fill-black[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black,.pe-pill--interactive-rounded.pe-pill--fill-black{background-color:#232323;color:inherit;color:#fff}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{background-color:#6f3de0;color:inherit}.pe-pill--interactive.pe-pill--fill-purple:hover,.pe-pill--interactive-rounded.pe-pill--fill-purple:hover{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:active,.pe-pill--interactive-rounded.pe-pill--fill-purple:active{background-color:#5935af}.pe-pill--interactive.pe-pill--fill-purple:selected,.pe-pill--interactive-rounded.pe-pill--fill-purple:selected{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:disabled,.pe-pill--interactive.pe-pill--fill-purple[disabled],.pe-pill--interactive-rounded.pe-pill--fill-purple:disabled,.pe-pill--interactive-rounded.pe-pill--fill-purple[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{color:#fff}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{background-color:#c33a3a;color:inherit}.pe-pill--interactive.pe-pill--fill-red:hover,.pe-pill--interactive-rounded.pe-pill--fill-red:hover{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:active,.pe-pill--interactive-rounded.pe-pill--fill-red:active{background-color:#982d2d}.pe-pill--interactive.pe-pill--fill-red:selected,.pe-pill--interactive-rounded.pe-pill--fill-red:selected{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:disabled,.pe-pill--interactive.pe-pill--fill-red[disabled],.pe-pill--interactive-rounded.pe-pill--fill-red:disabled,.pe-pill--interactive-rounded.pe-pill--fill-red[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{color:#fff}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{background-color:#0b7a27;color:inherit}.pe-pill--interactive.pe-pill--fill-green:hover,.pe-pill--interactive-rounded.pe-pill--fill-green:hover{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:active,.pe-pill--interactive-rounded.pe-pill--fill-green:active{background-color:#096620}.pe-pill--interactive.pe-pill--fill-green:selected,.pe-pill--interactive-rounded.pe-pill--fill-green:selected{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:disabled,.pe-pill--interactive.pe-pill--fill-green[disabled],.pe-pill--interactive-rounded.pe-pill--fill-green:disabled,.pe-pill--interactive-rounded.pe-pill--fill-green[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{color:#fff}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:hover,.pe-pill--interactive-rounded.pe-pill--transparent-white:hover{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:active,.pe-pill--interactive-rounded.pe-pill--transparent-white:active{background-color:#ffffff1a}.pe-pill--interactive.pe-pill--transparent-white:selected,.pe-pill--interactive-rounded.pe-pill--transparent-white:selected{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:hover,.pe-pill--interactive-rounded.pe-pill--transparent-purple:hover{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:active,.pe-pill--interactive-rounded.pe-pill--transparent-purple:active{background-color:#a781ff33}.pe-pill--interactive.pe-pill--transparent-purple:selected,.pe-pill--interactive-rounded.pe-pill--transparent-purple:selected{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{background-color:#f3707033;color:inherit}.pe-pill--interactive.pe-pill--transparent-red:hover,.pe-pill--interactive-rounded.pe-pill--transparent-red:hover{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:active,.pe-pill--interactive-rounded.pe-pill--transparent-red:active{background-color:#f3707033}.pe-pill--interactive.pe-pill--transparent-red:selected,.pe-pill--interactive-rounded.pe-pill--transparent-red:selected{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:disabled,.pe-pill--interactive.pe-pill--transparent-red[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-red:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-red[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{color:#f69d9d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{background-color:#50c06c33;color:inherit}.pe-pill--interactive.pe-pill--transparent-green:hover,.pe-pill--interactive-rounded.pe-pill--transparent-green:hover{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:active,.pe-pill--interactive-rounded.pe-pill--transparent-green:active{background-color:#50c06c33}.pe-pill--interactive.pe-pill--transparent-green:selected,.pe-pill--interactive-rounded.pe-pill--transparent-green:selected{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:disabled,.pe-pill--interactive.pe-pill--transparent-green[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-green:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-green[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{color:#7edc96}.pe-pill--interactive.pe-pill--stroke-white,.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--stroke-white,.pe-pill--interactive-rounded.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--stroke-white:disabled,.pe-pill--interactive.pe-pill--stroke-white[disabled],.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--stroke-white:disabled,.pe-pill--interactive-rounded.pe-pill--stroke-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled],.pe-pill--dismissible.pe-pill--transparent-white:disabled,.pe-pill--dismissible.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled],.pe-pill--dismissible.pe-pill--transparent-purple:disabled,.pe-pill--dismissible.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--outline-white,.pe-pill--dismissible.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled],.pe-pill--dismissible.pe-pill--outline-white:disabled,.pe-pill--dismissible.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple,.pe-pill--dismissible.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled],.pe-pill--dismissible.pe-pill--outline-purple:disabled,.pe-pill--dismissible.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red,.pe-pill--dismissible.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled],.pe-pill--dismissible.pe-pill--outline-red:disabled,.pe-pill--dismissible.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green,.pe-pill--dismissible.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled],.pe-pill--dismissible.pe-pill--outline-green:disabled,.pe-pill--dismissible.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--read-only.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--read-only.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--read-only.pe-pill--transparent-red{color:#f69d9d;border:1px solid #f69d9d}.pe-pill--read-only.pe-pill--transparent-green{color:#7edc96;border:1px solid #7edc96}.pe-pill--read-only.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--read-only.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--read-only.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--read-only.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable{position:relative}.pe-pill--selectable.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--selectable.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--selectable.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--selectable.pe-pill--outline-white:disabled,.pe-pill--selectable.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:disabled,.pe-pill--selectable.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:disabled,.pe-pill--selectable.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#f3707033;color:inherit}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):hover{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):active{background-color:#f3707033}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):selected{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:disabled,.pe-pill--selectable.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#50c06c33;color:inherit}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):hover{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):active{background-color:#50c06c33}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):selected{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable .pe-pill__checkbox{position:absolute;visibility:hidden;height:0;width:0;top:0;left:0}.pe-pill--disabled,.pe-pill[disabled],.pe-pill:disabled{cursor:not-allowed;color:#ffffff4d}.pe-pill--disabled.pe-pill--outline-white,.pe-pill--disabled.pe-pill--outline-purple,.pe-pill--disabled.pe-pill--outline-red,.pe-pill--disabled.pe-pill--outline-green,.pe-pill--disabled.pe-pill--stroke-white,.pe-pill[disabled].pe-pill--outline-white,.pe-pill[disabled].pe-pill--outline-purple,.pe-pill[disabled].pe-pill--outline-red,.pe-pill[disabled].pe-pill--outline-green,.pe-pill[disabled].pe-pill--stroke-white,.pe-pill:disabled.pe-pill--outline-white,.pe-pill:disabled.pe-pill--outline-purple,.pe-pill:disabled.pe-pill--outline-red,.pe-pill:disabled.pe-pill--outline-green,.pe-pill:disabled.pe-pill--stroke-white{border-color:#6c6c6c}.pe-pill .pe-icon{font-size:20px;line-height:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1887
2052
|
}
|
|
1888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PillComponent, decorators: [{
|
|
1889
2054
|
type: Component,
|
|
1890
2055
|
args: [{ selector: 'pe-pill', standalone: true, imports: [CommonModule, ButtonComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (variant() === 'selectable') {\n <label [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <input type=\"checkbox\" class=\"pe-pill__checkbox\" />\n <ng-container *ngTemplateOutlet=\"content\" />\n </label>\n} @else if (['dismissible', 'read-only'].includes(variant())) {\n <div [class]=\"modifierClass()\" [class.pe-pill--disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n @if (variant() === 'dismissible') {\n <pe-button\n [theme]=\"dismissibleButtonTheme()\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"disabled()\"\n (click)=\"dismiss.emit()\"\n >\n <pe-icon icon=\"close\" />\n </pe-button>\n }\n </div>\n} @else if (['interactive', 'interactive-rounded'].includes(variant())) {\n <button [class]=\"modifierClass()\" [disabled]=\"disabled()\">\n <ng-container *ngTemplateOutlet=\"content\" />\n </button>\n}\n\n<ng-template #content>\n <ng-content />\n</ng-template>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-pill{border:none;cursor:pointer;text-decoration-line:none;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;box-sizing:border-box;background-color:transparent;gap:8px;color:#fff;border-radius:8px;padding:4px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1)}.pe-pill--md{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:500}.pe-pill--lg{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:500}.pe-pill--interactive,.pe-pill--interactive-rounded,.pe-pill--selectable{cursor:pointer}.pe-pill--interactive:focus-visible,.pe-pill--interactive:focus,.pe-pill--interactive-rounded:focus-visible,.pe-pill--interactive-rounded:focus,.pe-pill--selectable:focus-visible,.pe-pill--selectable:focus{outline-offset:2px;outline:rgba(255,255,255,.3) solid 2px}.pe-pill--interactive-rounded{cursor:pointer;border-radius:4096px}.pe-pill--read-only,.pe-pill--dismissible.pe-pill{cursor:default}.pe-pill--dismissible.pe-pill .pe-btn--sm:last-child .pe-icon{font-size:16px;line-height:16px}.pe-pill--dismissible.pe-pill--md{padding:4px 4px 4px 12px;border-radius:8px}.pe-pill--dismissible.pe-pill--md .pe-btn--sm:last-child{min-width:24px;height:24px}.pe-pill--dismissible.pe-pill--lg{padding:8px 4px 8px 16px;border-radius:12px}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{background-color:#fff;color:inherit}.pe-pill--interactive.pe-pill--fill-white:hover,.pe-pill--interactive-rounded.pe-pill--fill-white:hover{background-color:#e7e7e7}.pe-pill--interactive.pe-pill--fill-white:active,.pe-pill--interactive-rounded.pe-pill--fill-white:active{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:selected,.pe-pill--interactive-rounded.pe-pill--fill-white:selected{background-color:#fff}.pe-pill--interactive.pe-pill--fill-white:disabled,.pe-pill--interactive.pe-pill--fill-white[disabled],.pe-pill--interactive-rounded.pe-pill--fill-white:disabled,.pe-pill--interactive-rounded.pe-pill--fill-white[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-white,.pe-pill--interactive-rounded.pe-pill--fill-white{color:#000}.pe-pill--interactive.pe-pill--fill-black:hover,.pe-pill--interactive-rounded.pe-pill--fill-black:hover{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:active,.pe-pill--interactive-rounded.pe-pill--fill-black:active{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black:selected,.pe-pill--interactive-rounded.pe-pill--fill-black:selected{background-color:#3b3b3b}.pe-pill--interactive.pe-pill--fill-black:disabled,.pe-pill--interactive.pe-pill--fill-black[disabled],.pe-pill--interactive-rounded.pe-pill--fill-black:disabled,.pe-pill--interactive-rounded.pe-pill--fill-black[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-black,.pe-pill--interactive-rounded.pe-pill--fill-black{background-color:#232323;color:inherit;color:#fff}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{background-color:#6f3de0;color:inherit}.pe-pill--interactive.pe-pill--fill-purple:hover,.pe-pill--interactive-rounded.pe-pill--fill-purple:hover{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:active,.pe-pill--interactive-rounded.pe-pill--fill-purple:active{background-color:#5935af}.pe-pill--interactive.pe-pill--fill-purple:selected,.pe-pill--interactive-rounded.pe-pill--fill-purple:selected{background-color:#7e4af7}.pe-pill--interactive.pe-pill--fill-purple:disabled,.pe-pill--interactive.pe-pill--fill-purple[disabled],.pe-pill--interactive-rounded.pe-pill--fill-purple:disabled,.pe-pill--interactive-rounded.pe-pill--fill-purple[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-purple,.pe-pill--interactive-rounded.pe-pill--fill-purple{color:#fff}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{background-color:#c33a3a;color:inherit}.pe-pill--interactive.pe-pill--fill-red:hover,.pe-pill--interactive-rounded.pe-pill--fill-red:hover{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:active,.pe-pill--interactive-rounded.pe-pill--fill-red:active{background-color:#982d2d}.pe-pill--interactive.pe-pill--fill-red:selected,.pe-pill--interactive-rounded.pe-pill--fill-red:selected{background-color:#d64040}.pe-pill--interactive.pe-pill--fill-red:disabled,.pe-pill--interactive.pe-pill--fill-red[disabled],.pe-pill--interactive-rounded.pe-pill--fill-red:disabled,.pe-pill--interactive-rounded.pe-pill--fill-red[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-red,.pe-pill--interactive-rounded.pe-pill--fill-red{color:#fff}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{background-color:#0b7a27;color:inherit}.pe-pill--interactive.pe-pill--fill-green:hover,.pe-pill--interactive-rounded.pe-pill--fill-green:hover{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:active,.pe-pill--interactive-rounded.pe-pill--fill-green:active{background-color:#096620}.pe-pill--interactive.pe-pill--fill-green:selected,.pe-pill--interactive-rounded.pe-pill--fill-green:selected{background-color:#0e892d}.pe-pill--interactive.pe-pill--fill-green:disabled,.pe-pill--interactive.pe-pill--fill-green[disabled],.pe-pill--interactive-rounded.pe-pill--fill-green:disabled,.pe-pill--interactive-rounded.pe-pill--fill-green[disabled]{background-color:#232323}.pe-pill--interactive.pe-pill--fill-green,.pe-pill--interactive-rounded.pe-pill--fill-green{color:#fff}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:hover,.pe-pill--interactive-rounded.pe-pill--transparent-white:hover{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:active,.pe-pill--interactive-rounded.pe-pill--transparent-white:active{background-color:#ffffff1a}.pe-pill--interactive.pe-pill--transparent-white:selected,.pe-pill--interactive-rounded.pe-pill--transparent-white:selected{background-color:#fff3}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:hover,.pe-pill--interactive-rounded.pe-pill--transparent-purple:hover{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:active,.pe-pill--interactive-rounded.pe-pill--transparent-purple:active{background-color:#a781ff33}.pe-pill--interactive.pe-pill--transparent-purple:selected,.pe-pill--interactive-rounded.pe-pill--transparent-purple:selected{background-color:#a781ff4d}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{background-color:#f3707033;color:inherit}.pe-pill--interactive.pe-pill--transparent-red:hover,.pe-pill--interactive-rounded.pe-pill--transparent-red:hover{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:active,.pe-pill--interactive-rounded.pe-pill--transparent-red:active{background-color:#f3707033}.pe-pill--interactive.pe-pill--transparent-red:selected,.pe-pill--interactive-rounded.pe-pill--transparent-red:selected{background-color:#f370704d}.pe-pill--interactive.pe-pill--transparent-red:disabled,.pe-pill--interactive.pe-pill--transparent-red[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-red:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-red[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-red,.pe-pill--interactive-rounded.pe-pill--transparent-red{color:#f69d9d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{background-color:#50c06c33;color:inherit}.pe-pill--interactive.pe-pill--transparent-green:hover,.pe-pill--interactive-rounded.pe-pill--transparent-green:hover{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:active,.pe-pill--interactive-rounded.pe-pill--transparent-green:active{background-color:#50c06c33}.pe-pill--interactive.pe-pill--transparent-green:selected,.pe-pill--interactive-rounded.pe-pill--transparent-green:selected{background-color:#50c06c4d}.pe-pill--interactive.pe-pill--transparent-green:disabled,.pe-pill--interactive.pe-pill--transparent-green[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-green:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-green[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-green,.pe-pill--interactive-rounded.pe-pill--transparent-green{color:#7edc96}.pe-pill--interactive.pe-pill--stroke-white,.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--stroke-white,.pe-pill--interactive-rounded.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--stroke-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--stroke-white:disabled,.pe-pill--interactive.pe-pill--stroke-white[disabled],.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--stroke-white:disabled,.pe-pill--interactive-rounded.pe-pill--stroke-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{background-color:#ffffff1a;color:inherit}.pe-pill--interactive.pe-pill--transparent-white:disabled,.pe-pill--interactive.pe-pill--transparent-white[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-white:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-white[disabled],.pe-pill--dismissible.pe-pill--transparent-white:disabled,.pe-pill--dismissible.pe-pill--transparent-white[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-white,.pe-pill--interactive-rounded.pe-pill--transparent-white,.pe-pill--dismissible.pe-pill--transparent-white{color:#fff}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{background-color:#a781ff33;color:inherit}.pe-pill--interactive.pe-pill--transparent-purple:disabled,.pe-pill--interactive.pe-pill--transparent-purple[disabled],.pe-pill--interactive-rounded.pe-pill--transparent-purple:disabled,.pe-pill--interactive-rounded.pe-pill--transparent-purple[disabled],.pe-pill--dismissible.pe-pill--transparent-purple:disabled,.pe-pill--dismissible.pe-pill--transparent-purple[disabled]{background-color:#ffffff0d}.pe-pill--interactive.pe-pill--transparent-purple,.pe-pill--interactive-rounded.pe-pill--transparent-purple,.pe-pill--dismissible.pe-pill--transparent-purple{color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-white,.pe-pill--interactive-rounded.pe-pill--outline-white,.pe-pill--dismissible.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--interactive.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--interactive.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-white:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--interactive.pe-pill--outline-white:disabled,.pe-pill--interactive.pe-pill--outline-white[disabled],.pe-pill--interactive-rounded.pe-pill--outline-white:disabled,.pe-pill--interactive-rounded.pe-pill--outline-white[disabled],.pe-pill--dismissible.pe-pill--outline-white:disabled,.pe-pill--dismissible.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-purple,.pe-pill--interactive-rounded.pe-pill--outline-purple,.pe-pill--dismissible.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-purple:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--interactive.pe-pill--outline-purple:disabled,.pe-pill--interactive.pe-pill--outline-purple[disabled],.pe-pill--interactive-rounded.pe-pill--outline-purple:disabled,.pe-pill--interactive-rounded.pe-pill--outline-purple[disabled],.pe-pill--dismissible.pe-pill--outline-purple:disabled,.pe-pill--dismissible.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-red,.pe-pill--interactive-rounded.pe-pill--outline-red,.pe-pill--dismissible.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-red:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--interactive.pe-pill--outline-red:disabled,.pe-pill--interactive.pe-pill--outline-red[disabled],.pe-pill--interactive-rounded.pe-pill--outline-red:disabled,.pe-pill--interactive-rounded.pe-pill--outline-red[disabled],.pe-pill--dismissible.pe-pill--outline-red:disabled,.pe-pill--dismissible.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--interactive.pe-pill--outline-green,.pe-pill--interactive-rounded.pe-pill--outline-green,.pe-pill--dismissible.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:hover:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--interactive-rounded.pe-pill--outline-green:active:not(:disabled):not([disabled]),.pe-pill--dismissible.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--interactive.pe-pill--outline-green:disabled,.pe-pill--interactive.pe-pill--outline-green[disabled],.pe-pill--interactive-rounded.pe-pill--outline-green:disabled,.pe-pill--interactive-rounded.pe-pill--outline-green[disabled],.pe-pill--dismissible.pe-pill--outline-green:disabled,.pe-pill--dismissible.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--read-only.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--read-only.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--read-only.pe-pill--transparent-red{color:#f69d9d;border:1px solid #f69d9d}.pe-pill--read-only.pe-pill--transparent-green{color:#7edc96;border:1px solid #7edc96}.pe-pill--read-only.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--read-only.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--read-only.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--read-only.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable{position:relative}.pe-pill--selectable.pe-pill--transparent-white{color:#ffffffb3;border:1px solid rgba(255,255,255,.3)}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--transparent-purple{color:#c2a8ff;border:1px solid #c2a8ff}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--transparent-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-white{background-color:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}.pe-pill--selectable.pe-pill--outline-white:hover:not(:disabled):not([disabled]){border-color:#fff}.pe-pill--selectable.pe-pill--outline-white:active:not(:disabled):not([disabled]){border-color:#ffffff80}.pe-pill--selectable.pe-pill--outline-white:disabled,.pe-pill--selectable.pe-pill--outline-white[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#ffffff1a;color:inherit}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):hover{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):active{background-color:#ffffff1a}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):selected{background-color:#fff3}.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-white:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-purple{background-color:transparent;border:1px solid #c2a8ff;color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:hover:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:active:not(:disabled):not([disabled]){border-color:#c2a8ff}.pe-pill--selectable.pe-pill--outline-purple:disabled,.pe-pill--selectable.pe-pill--outline-purple[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#a781ff33;color:inherit}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):hover{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):active{background-color:#a781ff33}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):selected{background-color:#a781ff4d}.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-purple:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-red{background-color:transparent;border:1px solid #f69d9d;color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:hover:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:active:not(:disabled):not([disabled]){border-color:#f69d9d}.pe-pill--selectable.pe-pill--outline-red:disabled,.pe-pill--selectable.pe-pill--outline-red[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#f3707033;color:inherit}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):hover{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):active{background-color:#f3707033}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):selected{background-color:#f370704d}.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-red:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable.pe-pill--outline-green{background-color:transparent;border:1px solid #7edc96;color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:hover:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:active:not(:disabled):not([disabled]){border-color:#7edc96}.pe-pill--selectable.pe-pill--outline-green:disabled,.pe-pill--selectable.pe-pill--outline-green[disabled]{border-color:#6c6c6c;color:#ffffff4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked){border-color:transparent;background-color:#50c06c33;color:inherit}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):hover{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):active{background-color:#50c06c33}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):selected{background-color:#50c06c4d}.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked):disabled,.pe-pill--selectable.pe-pill--outline-green:has(.pe-pill__checkbox:checked)[disabled]{background-color:#ffffff0d}.pe-pill--selectable .pe-pill__checkbox{position:absolute;visibility:hidden;height:0;width:0;top:0;left:0}.pe-pill--disabled,.pe-pill[disabled],.pe-pill:disabled{cursor:not-allowed;color:#ffffff4d}.pe-pill--disabled.pe-pill--outline-white,.pe-pill--disabled.pe-pill--outline-purple,.pe-pill--disabled.pe-pill--outline-red,.pe-pill--disabled.pe-pill--outline-green,.pe-pill--disabled.pe-pill--stroke-white,.pe-pill[disabled].pe-pill--outline-white,.pe-pill[disabled].pe-pill--outline-purple,.pe-pill[disabled].pe-pill--outline-red,.pe-pill[disabled].pe-pill--outline-green,.pe-pill[disabled].pe-pill--stroke-white,.pe-pill:disabled.pe-pill--outline-white,.pe-pill:disabled.pe-pill--outline-purple,.pe-pill:disabled.pe-pill--outline-red,.pe-pill:disabled.pe-pill--outline-green,.pe-pill:disabled.pe-pill--stroke-white{border-color:#6c6c6c}.pe-pill .pe-icon{font-size:20px;line-height:20px}\n"] }]
|
|
1891
2056
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }] } });
|
|
1892
2057
|
|
|
1893
2058
|
/** Place on the element projected into [pe-hero-badges] so the hero can detect custom badges content. */
|
|
1894
2059
|
class PeHeroBadgesSlotDirective {
|
|
1895
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1896
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2060
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroBadgesSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2061
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: PeHeroBadgesSlotDirective, isStandalone: true, selector: "[pe-hero-badges]", ngImport: i0 });
|
|
1897
2062
|
}
|
|
1898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroBadgesSlotDirective, decorators: [{
|
|
1899
2064
|
type: Directive,
|
|
1900
2065
|
args: [{
|
|
1901
2066
|
selector: '[pe-hero-badges]',
|
|
@@ -1904,10 +2069,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1904
2069
|
}] });
|
|
1905
2070
|
/** Place on the element projected into [pe-hero-title] so the hero can detect custom title content. */
|
|
1906
2071
|
class PeHeroTitleSlotDirective {
|
|
1907
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1908
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2072
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroTitleSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2073
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: PeHeroTitleSlotDirective, isStandalone: true, selector: "[pe-hero-title]", ngImport: i0 });
|
|
1909
2074
|
}
|
|
1910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroTitleSlotDirective, decorators: [{
|
|
1911
2076
|
type: Directive,
|
|
1912
2077
|
args: [{
|
|
1913
2078
|
selector: '[pe-hero-title]',
|
|
@@ -1916,10 +2081,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1916
2081
|
}] });
|
|
1917
2082
|
/** Place on the element projected into [pe-hero-subtitle] so the hero can detect custom subtitle content. */
|
|
1918
2083
|
class PeHeroSubtitleSlotDirective {
|
|
1919
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1920
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2084
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroSubtitleSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2085
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: PeHeroSubtitleSlotDirective, isStandalone: true, selector: "[pe-hero-subtitle]", ngImport: i0 });
|
|
1921
2086
|
}
|
|
1922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroSubtitleSlotDirective, decorators: [{
|
|
1923
2088
|
type: Directive,
|
|
1924
2089
|
args: [{
|
|
1925
2090
|
selector: '[pe-hero-subtitle]',
|
|
@@ -1928,10 +2093,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1928
2093
|
}] });
|
|
1929
2094
|
/** Place on the element projected into [pe-hero-actions] so the hero can detect custom actions content. */
|
|
1930
2095
|
class PeHeroActionsSlotDirective {
|
|
1931
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1932
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroActionsSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2097
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: PeHeroActionsSlotDirective, isStandalone: true, selector: "[pe-hero-actions]", ngImport: i0 });
|
|
1933
2098
|
}
|
|
1934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroActionsSlotDirective, decorators: [{
|
|
1935
2100
|
type: Directive,
|
|
1936
2101
|
args: [{
|
|
1937
2102
|
selector: '[pe-hero-actions]',
|
|
@@ -1940,10 +2105,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1940
2105
|
}] });
|
|
1941
2106
|
/** Place on the element projected into [pe-hero-content] for optional extra content (e.g. between subtitle and actions). */
|
|
1942
2107
|
class PeHeroContentSlotDirective {
|
|
1943
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1944
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2108
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroContentSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2109
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: PeHeroContentSlotDirective, isStandalone: true, selector: "[pe-hero-content]", ngImport: i0 });
|
|
1945
2110
|
}
|
|
1946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PeHeroContentSlotDirective, decorators: [{
|
|
1947
2112
|
type: Directive,
|
|
1948
2113
|
args: [{
|
|
1949
2114
|
selector: '[pe-hero-content]',
|
|
@@ -1971,48 +2136,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1971
2136
|
*/
|
|
1972
2137
|
class HeroComponent {
|
|
1973
2138
|
/** Main headline text */
|
|
1974
|
-
title = input.required(
|
|
2139
|
+
title = input.required(/* @ts-ignore */
|
|
2140
|
+
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
1975
2141
|
/** Supporting description text */
|
|
1976
|
-
subtitle = input(undefined,
|
|
2142
|
+
subtitle = input(undefined, /* @ts-ignore */
|
|
2143
|
+
...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
1977
2144
|
/** Primary call-to-action button */
|
|
1978
|
-
primaryAction = input(undefined,
|
|
2145
|
+
primaryAction = input(undefined, /* @ts-ignore */
|
|
2146
|
+
...(ngDevMode ? [{ debugName: "primaryAction" }] : /* istanbul ignore next */ []));
|
|
1979
2147
|
/** Secondary call-to-action button */
|
|
1980
|
-
secondaryAction = input(undefined,
|
|
2148
|
+
secondaryAction = input(undefined, /* @ts-ignore */
|
|
2149
|
+
...(ngDevMode ? [{ debugName: "secondaryAction" }] : /* istanbul ignore next */ []));
|
|
1981
2150
|
/** Badge/pill labels to display above the title */
|
|
1982
|
-
badges = input([],
|
|
2151
|
+
badges = input([], /* @ts-ignore */
|
|
2152
|
+
...(ngDevMode ? [{ debugName: "badges" }] : /* istanbul ignore next */ []));
|
|
1983
2153
|
/** Background image URL */
|
|
1984
|
-
backgroundImage = input(undefined,
|
|
2154
|
+
backgroundImage = input(undefined, /* @ts-ignore */
|
|
2155
|
+
...(ngDevMode ? [{ debugName: "backgroundImage" }] : /* istanbul ignore next */ []));
|
|
1985
2156
|
/**
|
|
1986
2157
|
* CSS gradient or color for the overlay on top of the background image.
|
|
1987
2158
|
* E.g. "linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%)" or "rgba(0,0,0,0.5)".
|
|
1988
2159
|
* When unset, a default dark overlay is used when a background image is present.
|
|
1989
2160
|
*/
|
|
1990
|
-
backgroundOverlayGradient = input(undefined,
|
|
2161
|
+
backgroundOverlayGradient = input(undefined, /* @ts-ignore */
|
|
2162
|
+
...(ngDevMode ? [{ debugName: "backgroundOverlayGradient" }] : /* istanbul ignore next */ []));
|
|
1991
2163
|
/**
|
|
1992
2164
|
* CSS filter applied to the background image (e.g. "brightness(0.8)", "blur(2px)", "grayscale(0.3)").
|
|
1993
2165
|
* Combine multiple: "brightness(0.7) contrast(1.1)".
|
|
1994
2166
|
*/
|
|
1995
|
-
backgroundFilter = input(undefined,
|
|
2167
|
+
backgroundFilter = input(undefined, /* @ts-ignore */
|
|
2168
|
+
...(ngDevMode ? [{ debugName: "backgroundFilter" }] : /* istanbul ignore next */ []));
|
|
1996
2169
|
/** Text and content alignment */
|
|
1997
|
-
alignment = input('center',
|
|
2170
|
+
alignment = input('center', /* @ts-ignore */
|
|
2171
|
+
...(ngDevMode ? [{ debugName: "alignment" }] : /* istanbul ignore next */ []));
|
|
1998
2172
|
/** Hero section size variant */
|
|
1999
|
-
size = input('md',
|
|
2173
|
+
size = input('md', /* @ts-ignore */
|
|
2174
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2000
2175
|
/** Whether hero takes full viewport height */
|
|
2001
|
-
fullHeight = input(false,
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: HeroComponent, isStandalone: true, selector: "pe-hero", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, primaryAction: { classPropertyName: "primaryAction", publicName: "primaryAction", isSignal: true, isRequired: false, transformFunction: null }, secondaryAction: { classPropertyName: "secondaryAction", publicName: "secondaryAction", isSignal: true, isRequired: false, transformFunction: null }, badges: { classPropertyName: "badges", publicName: "badges", isSignal: true, isRequired: false, transformFunction: null }, backgroundImage: { classPropertyName: "backgroundImage", publicName: "backgroundImage", isSignal: true, isRequired: false, transformFunction: null }, backgroundOverlayGradient: { classPropertyName: "backgroundOverlayGradient", publicName: "backgroundOverlayGradient", isSignal: true, isRequired: false, transformFunction: null }, backgroundFilter: { classPropertyName: "backgroundFilter", publicName: "backgroundFilter", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fullHeight: { classPropertyName: "fullHeight", publicName: "fullHeight", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "badgesSlot", first: true, predicate: PeHeroBadgesSlotDirective, descendants: true, isSignal: true }, { propertyName: "titleSlot", first: true, predicate: PeHeroTitleSlotDirective, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: PeHeroSubtitleSlotDirective, descendants: true, isSignal: true }, { propertyName: "actionsSlot", first: true, predicate: PeHeroActionsSlotDirective, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: PeHeroContentSlotDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<section\n class=\"pe-hero pe-hero-alignment-{{ alignment() }} pe-hero-size-{{ size() }}\"\n role=\"banner\"\n [attr.aria-label]=\"title()\"\n [class.pe-hero--full-height]=\"fullHeight()\"\n [class.pe-hero--has-background]=\"!!backgroundImage()\"\n>\n @if (backgroundImage()) {\n <div\n class=\"pe-hero__background\"\n [style.background-image]=\"'url(' + backgroundImage() + ')'\"\n [style.filter]=\"backgroundFilter() || null\"\n aria-hidden=\"true\"\n ></div>\n <div\n class=\"pe-hero__overlay\"\n [style.background]=\"backgroundOverlayGradient() || 'rgba(0, 0, 0, 0.4)'\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <div class=\"pe-hero__content\">\n @if (hasBadgesSlot()) {\n <div class=\"pe-hero__badges\">\n <ng-content select=\"[pe-hero-badges]\" />\n </div>\n } @else if (badges().length) {\n <div class=\"pe-hero__badges\">\n @for (badge of badges(); track badge) {\n <pe-pill variant=\"read-only\" theme=\"transparent-white\" size=\"md\">\n {{ badge }}\n </pe-pill>\n }\n </div>\n }\n\n @if (hasTitleSlot()) {\n <div class=\"pe-hero__title\">\n <ng-content select=\"[pe-hero-title]\" />\n </div>\n } @else {\n <h1 class=\"pe-hero__title\">{{ title() }}</h1>\n }\n\n @if (hasSubtitleSlot()) {\n <div class=\"pe-hero__subtitle\">\n <ng-content select=\"[pe-hero-subtitle]\" />\n </div>\n } @else if (subtitle()) {\n <p class=\"pe-hero__subtitle\">{{ subtitle() }}</p>\n }\n\n @if (hasContentSlot()) {\n <div class=\"pe-hero__extra\">\n <ng-content select=\"[pe-hero-content]\" />\n </div>\n }\n\n @if (hasActionsSlot()) {\n <div class=\"pe-hero__actions\">\n <ng-content select=\"[pe-hero-actions]\" />\n </div>\n } @else if (primaryAction() || secondaryAction()) {\n <div class=\"pe-hero__actions\">\n @if (primaryAction()) {\n @if (primaryAction()!.href) {\n <a [href]=\"primaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (primaryAction()!.routerLink) {\n <a [routerLink]=\"primaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n }\n }\n @if (secondaryAction()) {\n @if (secondaryAction()!.href) {\n <a [href]=\"secondaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button theme=\"ghost-white\" [size]=\"secondaryAction()!.size ?? 'md'\">\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (secondaryAction()!.routerLink) {\n <a [routerLink]=\"secondaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n }\n }\n </div>\n }\n </div>\n</section>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-hero{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:0;padding:32px 16px;color:#fff}.pe-hero--full-height{min-height:100vh}.pe-hero--has-background .pe-hero__content{position:relative;z-index:1}.pe-hero--alignment-left .pe-hero__content{align-items:flex-start;text-align:left}.pe-hero--alignment-left .pe-hero__badges,.pe-hero--alignment-left .pe-hero__actions{justify-content:flex-start}.pe-hero--alignment-center .pe-hero__content{align-items:center;text-align:center}.pe-hero--alignment-center .pe-hero__badges,.pe-hero--alignment-center .pe-hero__actions{justify-content:center}.pe-hero--alignment-right .pe-hero__content{align-items:flex-end;text-align:right}.pe-hero--alignment-right .pe-hero__badges,.pe-hero--alignment-right .pe-hero__actions{justify-content:flex-end}.pe-hero__background{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#232323}.pe-hero__overlay{position:absolute;inset:0;pointer-events:none}.pe-hero__content{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:100%}.pe-hero__badges{display:flex;flex-wrap:wrap;gap:8px}.pe-hero__title{margin:0;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero__subtitle{margin:0;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;max-width:100%}.pe-hero__extra{display:flex;flex-direction:column;gap:16px;width:100%}.pe-hero__actions{display:flex;flex-wrap:wrap;gap:12px;flex-direction:column}.pe-hero__action-link{color:inherit;text-decoration:none;display:inline-flex}.pe-hero--size-sm{padding:24px 16px}.pe-hero--size-sm .pe-hero__content{gap:12px}.pe-hero--size-sm .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero--size-sm .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero--size-md .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero--size-md .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero--size-lg{padding:48px 16px}.pe-hero--size-lg .pe-hero__content{gap:24px}.pe-hero--size-lg .pe-hero__title{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-hero--size-lg .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}@media(max-width:1279px){.pe-hero{padding:24px 16px}.pe-hero--size-sm{padding:16px}.pe-hero--size-lg{padding:32px 16px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:column;width:100%;max-width:100%}.pe-hero .pe-hero__action-link,.pe-hero .pe-hero__actions>pe-button{width:100%}.pe-hero .pe-hero__action-link pe-button{width:100%}}@media(min-width:1024px)and (max-width:1279px){.pe-hero{padding:32px 24px}.pe-hero--size-lg{padding:40px 24px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:row;flex-wrap:wrap}}@media(min-width:1280px){.pe-hero{padding:40px 32px}.pe-hero--size-sm{padding:24px 32px}.pe-hero--size-lg{padding:64px 32px}.pe-hero .pe-hero__content{max-width:800px}.pe-hero .pe-hero__actions{flex-direction:row}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: PillComponent, selector: "pe-pill", inputs: ["variant", "theme", "size", "disabled"], outputs: ["dismiss"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2176
|
+
fullHeight = input(false, /* @ts-ignore */
|
|
2177
|
+
...(ngDevMode ? [{ debugName: "fullHeight" }] : /* istanbul ignore next */ []));
|
|
2178
|
+
badgesSlot = contentChild(PeHeroBadgesSlotDirective, /* @ts-ignore */
|
|
2179
|
+
...(ngDevMode ? [{ debugName: "badgesSlot" }] : /* istanbul ignore next */ []));
|
|
2180
|
+
titleSlot = contentChild(PeHeroTitleSlotDirective, /* @ts-ignore */
|
|
2181
|
+
...(ngDevMode ? [{ debugName: "titleSlot" }] : /* istanbul ignore next */ []));
|
|
2182
|
+
subtitleSlot = contentChild(PeHeroSubtitleSlotDirective, /* @ts-ignore */
|
|
2183
|
+
...(ngDevMode ? [{ debugName: "subtitleSlot" }] : /* istanbul ignore next */ []));
|
|
2184
|
+
actionsSlot = contentChild(PeHeroActionsSlotDirective, /* @ts-ignore */
|
|
2185
|
+
...(ngDevMode ? [{ debugName: "actionsSlot" }] : /* istanbul ignore next */ []));
|
|
2186
|
+
contentSlot = contentChild(PeHeroContentSlotDirective, /* @ts-ignore */
|
|
2187
|
+
...(ngDevMode ? [{ debugName: "contentSlot" }] : /* istanbul ignore next */ []));
|
|
2188
|
+
hasBadgesSlot = computed(() => !!this.badgesSlot(), /* @ts-ignore */
|
|
2189
|
+
...(ngDevMode ? [{ debugName: "hasBadgesSlot" }] : /* istanbul ignore next */ []));
|
|
2190
|
+
hasTitleSlot = computed(() => !!this.titleSlot(), /* @ts-ignore */
|
|
2191
|
+
...(ngDevMode ? [{ debugName: "hasTitleSlot" }] : /* istanbul ignore next */ []));
|
|
2192
|
+
hasSubtitleSlot = computed(() => !!this.subtitleSlot(), /* @ts-ignore */
|
|
2193
|
+
...(ngDevMode ? [{ debugName: "hasSubtitleSlot" }] : /* istanbul ignore next */ []));
|
|
2194
|
+
hasActionsSlot = computed(() => !!this.actionsSlot(), /* @ts-ignore */
|
|
2195
|
+
...(ngDevMode ? [{ debugName: "hasActionsSlot" }] : /* istanbul ignore next */ []));
|
|
2196
|
+
hasContentSlot = computed(() => !!this.contentSlot(), /* @ts-ignore */
|
|
2197
|
+
...(ngDevMode ? [{ debugName: "hasContentSlot" }] : /* istanbul ignore next */ []));
|
|
2198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HeroComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: HeroComponent, isStandalone: true, selector: "pe-hero", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, primaryAction: { classPropertyName: "primaryAction", publicName: "primaryAction", isSignal: true, isRequired: false, transformFunction: null }, secondaryAction: { classPropertyName: "secondaryAction", publicName: "secondaryAction", isSignal: true, isRequired: false, transformFunction: null }, badges: { classPropertyName: "badges", publicName: "badges", isSignal: true, isRequired: false, transformFunction: null }, backgroundImage: { classPropertyName: "backgroundImage", publicName: "backgroundImage", isSignal: true, isRequired: false, transformFunction: null }, backgroundOverlayGradient: { classPropertyName: "backgroundOverlayGradient", publicName: "backgroundOverlayGradient", isSignal: true, isRequired: false, transformFunction: null }, backgroundFilter: { classPropertyName: "backgroundFilter", publicName: "backgroundFilter", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fullHeight: { classPropertyName: "fullHeight", publicName: "fullHeight", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "badgesSlot", first: true, predicate: PeHeroBadgesSlotDirective, descendants: true, isSignal: true }, { propertyName: "titleSlot", first: true, predicate: PeHeroTitleSlotDirective, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: PeHeroSubtitleSlotDirective, descendants: true, isSignal: true }, { propertyName: "actionsSlot", first: true, predicate: PeHeroActionsSlotDirective, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: PeHeroContentSlotDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<section\n class=\"pe-hero pe-hero-alignment-{{ alignment() }} pe-hero-size-{{ size() }}\"\n role=\"banner\"\n [attr.aria-label]=\"title()\"\n [class.pe-hero--full-height]=\"fullHeight()\"\n [class.pe-hero--has-background]=\"!!backgroundImage()\"\n>\n @if (backgroundImage()) {\n <div\n class=\"pe-hero__background\"\n [style.background-image]=\"'url(' + backgroundImage() + ')'\"\n [style.filter]=\"backgroundFilter() || null\"\n aria-hidden=\"true\"\n ></div>\n <div\n class=\"pe-hero__overlay\"\n [style.background]=\"backgroundOverlayGradient() || 'rgba(0, 0, 0, 0.4)'\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <div class=\"pe-hero__content\">\n @if (hasBadgesSlot()) {\n <div class=\"pe-hero__badges\">\n <ng-content select=\"[pe-hero-badges]\" />\n </div>\n } @else if (badges().length) {\n <div class=\"pe-hero__badges\">\n @for (badge of badges(); track badge) {\n <pe-pill variant=\"read-only\" theme=\"transparent-white\" size=\"md\">\n {{ badge }}\n </pe-pill>\n }\n </div>\n }\n\n @if (hasTitleSlot()) {\n <div class=\"pe-hero__title\">\n <ng-content select=\"[pe-hero-title]\" />\n </div>\n } @else {\n <h1 class=\"pe-hero__title\">{{ title() }}</h1>\n }\n\n @if (hasSubtitleSlot()) {\n <div class=\"pe-hero__subtitle\">\n <ng-content select=\"[pe-hero-subtitle]\" />\n </div>\n } @else if (subtitle()) {\n <p class=\"pe-hero__subtitle\">{{ subtitle() }}</p>\n }\n\n @if (hasContentSlot()) {\n <div class=\"pe-hero__extra\">\n <ng-content select=\"[pe-hero-content]\" />\n </div>\n }\n\n @if (hasActionsSlot()) {\n <div class=\"pe-hero__actions\">\n <ng-content select=\"[pe-hero-actions]\" />\n </div>\n } @else if (primaryAction() || secondaryAction()) {\n <div class=\"pe-hero__actions\">\n @if (primaryAction()) {\n @if (primaryAction()!.href) {\n <a [href]=\"primaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (primaryAction()!.routerLink) {\n <a [routerLink]=\"primaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n }\n }\n @if (secondaryAction()) {\n @if (secondaryAction()!.href) {\n <a [href]=\"secondaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button theme=\"ghost-white\" [size]=\"secondaryAction()!.size ?? 'md'\">\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (secondaryAction()!.routerLink) {\n <a [routerLink]=\"secondaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n }\n }\n </div>\n }\n </div>\n</section>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-hero{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:0;padding:32px 16px;color:#fff}.pe-hero--full-height{min-height:100vh}.pe-hero--has-background .pe-hero__content{position:relative;z-index:1}.pe-hero--alignment-left .pe-hero__content{align-items:flex-start;text-align:left}.pe-hero--alignment-left .pe-hero__badges,.pe-hero--alignment-left .pe-hero__actions{justify-content:flex-start}.pe-hero--alignment-center .pe-hero__content{align-items:center;text-align:center}.pe-hero--alignment-center .pe-hero__badges,.pe-hero--alignment-center .pe-hero__actions{justify-content:center}.pe-hero--alignment-right .pe-hero__content{align-items:flex-end;text-align:right}.pe-hero--alignment-right .pe-hero__badges,.pe-hero--alignment-right .pe-hero__actions{justify-content:flex-end}.pe-hero__background{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#232323}.pe-hero__overlay{position:absolute;inset:0;pointer-events:none}.pe-hero__content{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:100%}.pe-hero__badges{display:flex;flex-wrap:wrap;gap:8px}.pe-hero__title{margin:0;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero__subtitle{margin:0;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;max-width:100%}.pe-hero__extra{display:flex;flex-direction:column;gap:16px;width:100%}.pe-hero__actions{display:flex;flex-wrap:wrap;gap:12px;flex-direction:column}.pe-hero__action-link{color:inherit;text-decoration:none;display:inline-flex}.pe-hero--size-sm{padding:24px 16px}.pe-hero--size-sm .pe-hero__content{gap:12px}.pe-hero--size-sm .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero--size-sm .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero--size-md .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero--size-md .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero--size-lg{padding:48px 16px}.pe-hero--size-lg .pe-hero__content{gap:24px}.pe-hero--size-lg .pe-hero__title{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-hero--size-lg .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}@media(max-width:1279px){.pe-hero{padding:24px 16px}.pe-hero--size-sm{padding:16px}.pe-hero--size-lg{padding:32px 16px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:column;width:100%;max-width:100%}.pe-hero .pe-hero__action-link,.pe-hero .pe-hero__actions>pe-button{width:100%}.pe-hero .pe-hero__action-link pe-button{width:100%}}@media(min-width:1024px)and (max-width:1279px){.pe-hero{padding:32px 24px}.pe-hero--size-lg{padding:40px 24px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:row;flex-wrap:wrap}}@media(min-width:1280px){.pe-hero{padding:40px 32px}.pe-hero--size-sm{padding:24px 32px}.pe-hero--size-lg{padding:64px 32px}.pe-hero .pe-hero__content{max-width:800px}.pe-hero .pe-hero__actions{flex-direction:row}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: PillComponent, selector: "pe-pill", inputs: ["variant", "theme", "size", "disabled"], outputs: ["dismiss"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2014
2200
|
}
|
|
2015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HeroComponent, decorators: [{
|
|
2016
2202
|
type: Component,
|
|
2017
2203
|
args: [{ selector: 'pe-hero', standalone: true, imports: [ButtonComponent, IconComponent, PillComponent, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<section\n class=\"pe-hero pe-hero-alignment-{{ alignment() }} pe-hero-size-{{ size() }}\"\n role=\"banner\"\n [attr.aria-label]=\"title()\"\n [class.pe-hero--full-height]=\"fullHeight()\"\n [class.pe-hero--has-background]=\"!!backgroundImage()\"\n>\n @if (backgroundImage()) {\n <div\n class=\"pe-hero__background\"\n [style.background-image]=\"'url(' + backgroundImage() + ')'\"\n [style.filter]=\"backgroundFilter() || null\"\n aria-hidden=\"true\"\n ></div>\n <div\n class=\"pe-hero__overlay\"\n [style.background]=\"backgroundOverlayGradient() || 'rgba(0, 0, 0, 0.4)'\"\n aria-hidden=\"true\"\n ></div>\n }\n\n <div class=\"pe-hero__content\">\n @if (hasBadgesSlot()) {\n <div class=\"pe-hero__badges\">\n <ng-content select=\"[pe-hero-badges]\" />\n </div>\n } @else if (badges().length) {\n <div class=\"pe-hero__badges\">\n @for (badge of badges(); track badge) {\n <pe-pill variant=\"read-only\" theme=\"transparent-white\" size=\"md\">\n {{ badge }}\n </pe-pill>\n }\n </div>\n }\n\n @if (hasTitleSlot()) {\n <div class=\"pe-hero__title\">\n <ng-content select=\"[pe-hero-title]\" />\n </div>\n } @else {\n <h1 class=\"pe-hero__title\">{{ title() }}</h1>\n }\n\n @if (hasSubtitleSlot()) {\n <div class=\"pe-hero__subtitle\">\n <ng-content select=\"[pe-hero-subtitle]\" />\n </div>\n } @else if (subtitle()) {\n <p class=\"pe-hero__subtitle\">{{ subtitle() }}</p>\n }\n\n @if (hasContentSlot()) {\n <div class=\"pe-hero__extra\">\n <ng-content select=\"[pe-hero-content]\" />\n </div>\n }\n\n @if (hasActionsSlot()) {\n <div class=\"pe-hero__actions\">\n <ng-content select=\"[pe-hero-actions]\" />\n </div>\n } @else if (primaryAction() || secondaryAction()) {\n <div class=\"pe-hero__actions\">\n @if (primaryAction()) {\n @if (primaryAction()!.href) {\n <a [href]=\"primaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (primaryAction()!.routerLink) {\n <a [routerLink]=\"primaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"primaryAction()!.theme ?? 'fill-purple'\"\n [size]=\"primaryAction()!.size ?? 'md'\"\n >\n @if (primaryAction()!.icon) {\n <pe-icon [icon]=\"primaryAction()!.icon!\" size=\"6\" />\n }\n {{ primaryAction()!.label }}\n </pe-button>\n }\n }\n @if (secondaryAction()) {\n @if (secondaryAction()!.href) {\n <a [href]=\"secondaryAction()!.href\" class=\"pe-hero__action-link\">\n <pe-button theme=\"ghost-white\" [size]=\"secondaryAction()!.size ?? 'md'\">\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else if (secondaryAction()!.routerLink) {\n <a [routerLink]=\"secondaryAction()!.routerLink\" class=\"pe-hero__action-link\">\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n </a>\n } @else {\n <pe-button\n [theme]=\"secondaryAction()!.theme ?? 'ghost-white'\"\n [size]=\"secondaryAction()!.size ?? 'md'\"\n >\n @if (secondaryAction()!.icon) {\n <pe-icon [icon]=\"secondaryAction()!.icon!\" size=\"6\" />\n }\n {{ secondaryAction()!.label }}\n </pe-button>\n }\n }\n </div>\n }\n </div>\n</section>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-hero{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:0;padding:32px 16px;color:#fff}.pe-hero--full-height{min-height:100vh}.pe-hero--has-background .pe-hero__content{position:relative;z-index:1}.pe-hero--alignment-left .pe-hero__content{align-items:flex-start;text-align:left}.pe-hero--alignment-left .pe-hero__badges,.pe-hero--alignment-left .pe-hero__actions{justify-content:flex-start}.pe-hero--alignment-center .pe-hero__content{align-items:center;text-align:center}.pe-hero--alignment-center .pe-hero__badges,.pe-hero--alignment-center .pe-hero__actions{justify-content:center}.pe-hero--alignment-right .pe-hero__content{align-items:flex-end;text-align:right}.pe-hero--alignment-right .pe-hero__badges,.pe-hero--alignment-right .pe-hero__actions{justify-content:flex-end}.pe-hero__background{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#232323}.pe-hero__overlay{position:absolute;inset:0;pointer-events:none}.pe-hero__content{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:100%}.pe-hero__badges{display:flex;flex-wrap:wrap;gap:8px}.pe-hero__title{margin:0;color:#fff;font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero__subtitle{margin:0;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;max-width:100%}.pe-hero__extra{display:flex;flex-direction:column;gap:16px;width:100%}.pe-hero__actions{display:flex;flex-wrap:wrap;gap:12px;flex-direction:column}.pe-hero__action-link{color:inherit;text-decoration:none;display:inline-flex}.pe-hero--size-sm{padding:24px 16px}.pe-hero--size-sm .pe-hero__content{gap:12px}.pe-hero--size-sm .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero--size-sm .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero--size-md .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero--size-md .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero--size-lg{padding:48px 16px}.pe-hero--size-lg .pe-hero__content{gap:24px}.pe-hero--size-lg .pe-hero__title{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-hero--size-lg .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}@media(max-width:1279px){.pe-hero{padding:24px 16px}.pe-hero--size-sm{padding:16px}.pe-hero--size-lg{padding:32px 16px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:column;width:100%;max-width:100%}.pe-hero .pe-hero__action-link,.pe-hero .pe-hero__actions>pe-button{width:100%}.pe-hero .pe-hero__action-link pe-button{width:100%}}@media(min-width:1024px)and (max-width:1279px){.pe-hero{padding:32px 24px}.pe-hero--size-lg{padding:40px 24px}.pe-hero .pe-hero__title{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-hero .pe-hero__subtitle{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-hero .pe-hero__actions{flex-direction:row;flex-wrap:wrap}}@media(min-width:1280px){.pe-hero{padding:40px 32px}.pe-hero--size-sm{padding:24px 32px}.pe-hero--size-lg{padding:64px 32px}.pe-hero .pe-hero__content{max-width:800px}.pe-hero .pe-hero__actions{flex-direction:row}}\n"] }]
|
|
2018
2204
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], primaryAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "primaryAction", required: false }] }], secondaryAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAction", required: false }] }], badges: [{ type: i0.Input, args: [{ isSignal: true, alias: "badges", required: false }] }], backgroundImage: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundImage", required: false }] }], backgroundOverlayGradient: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundOverlayGradient", required: false }] }], backgroundFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundFilter", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fullHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullHeight", required: false }] }], badgesSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PeHeroBadgesSlotDirective), { isSignal: true }] }], titleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PeHeroTitleSlotDirective), { isSignal: true }] }], subtitleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PeHeroSubtitleSlotDirective), { isSignal: true }] }], actionsSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PeHeroActionsSlotDirective), { isSignal: true }] }], contentSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PeHeroContentSlotDirective), { isSignal: true }] }] } });
|
|
@@ -2022,11 +2208,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2022
2208
|
*/
|
|
2023
2209
|
class ImageNotFoundDirective {
|
|
2024
2210
|
// Controls whether to show a placeholder when image fails to load
|
|
2025
|
-
showPlaceholder = input(true,
|
|
2211
|
+
showPlaceholder = input(true, /* @ts-ignore */
|
|
2212
|
+
...(ngDevMode ? [{ debugName: "showPlaceholder" }] : /* istanbul ignore next */ []));
|
|
2026
2213
|
// Signal to track if image failed to load
|
|
2027
|
-
imageNotFound = signal(false,
|
|
2214
|
+
imageNotFound = signal(false, /* @ts-ignore */
|
|
2215
|
+
...(ngDevMode ? [{ debugName: "imageNotFound" }] : /* istanbul ignore next */ []));
|
|
2028
2216
|
// Signal to control alt and icon visibility of broken images.
|
|
2029
|
-
visibility = signal('hidden',
|
|
2217
|
+
visibility = signal('hidden', /* @ts-ignore */
|
|
2218
|
+
...(ngDevMode ? [{ debugName: "visibility" }] : /* istanbul ignore next */ []));
|
|
2030
2219
|
/**
|
|
2031
2220
|
* Handles image loading errors
|
|
2032
2221
|
* Hides the image and optionally shows placeholder
|
|
@@ -2045,10 +2234,10 @@ class ImageNotFoundDirective {
|
|
|
2045
2234
|
this.imageNotFound.set(false);
|
|
2046
2235
|
this.visibility.set('visible');
|
|
2047
2236
|
}
|
|
2048
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2049
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ImageNotFoundDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2238
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: ImageNotFoundDirective, isStandalone: true, selector: "[peCatchImageNotFound]", inputs: { showPlaceholder: { classPropertyName: "showPlaceholder", publicName: "showPlaceholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "load": "handleLoad()", "error": "handleError()" }, properties: { "class.pe-image--not-found": "imageNotFound()", "style.visibility": "visibility()" } }, ngImport: i0 });
|
|
2050
2239
|
}
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ImageNotFoundDirective, decorators: [{
|
|
2052
2241
|
type: Directive,
|
|
2053
2242
|
args: [{
|
|
2054
2243
|
selector: '[peCatchImageNotFound]',
|
|
@@ -2070,55 +2259,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2070
2259
|
* Content projection: [pe-input-left-elements], [pe-input-right-elements].
|
|
2071
2260
|
*/
|
|
2072
2261
|
class InputComponent {
|
|
2073
|
-
type = input('text',
|
|
2074
|
-
|
|
2262
|
+
type = input('text', /* @ts-ignore */
|
|
2263
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
2264
|
+
size = input('md', /* @ts-ignore */
|
|
2265
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2075
2266
|
/** Border/hover style: border-only (hover = border only), subtle-tint (hover = border + 5% fill). */
|
|
2076
|
-
appearance = input('border-only',
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2267
|
+
appearance = input('border-only', /* @ts-ignore */
|
|
2268
|
+
...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
|
|
2269
|
+
error = input(false, /* @ts-ignore */
|
|
2270
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2271
|
+
disabled = input(false, /* @ts-ignore */
|
|
2272
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2273
|
+
readOnly = input(false, /* @ts-ignore */
|
|
2274
|
+
...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
2275
|
+
required = input(false, /* @ts-ignore */
|
|
2276
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
2277
|
+
placeholder = input('', /* @ts-ignore */
|
|
2278
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
2279
|
+
label = input(null, /* @ts-ignore */
|
|
2280
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
2281
|
+
helperText = input(null, /* @ts-ignore */
|
|
2282
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
2283
|
+
errorText = input(null, /* @ts-ignore */
|
|
2284
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2285
|
+
maxLength = input(/* @ts-ignore */
|
|
2286
|
+
...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
|
|
2287
|
+
minLength = input(/* @ts-ignore */
|
|
2288
|
+
...(ngDevMode ? [undefined, { debugName: "minLength" }] : /* istanbul ignore next */ []));
|
|
2289
|
+
pattern = input([], /* @ts-ignore */
|
|
2290
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
2291
|
+
autocomplete = input('off', /* @ts-ignore */
|
|
2292
|
+
...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
2089
2293
|
/** When provided (e.g. by a parent form field), the input element uses this id instead of the internal one. */
|
|
2090
|
-
controlId = input(
|
|
2294
|
+
controlId = input(/* @ts-ignore */
|
|
2295
|
+
...(ngDevMode ? [undefined, { debugName: "controlId" }] : /* istanbul ignore next */ []));
|
|
2091
2296
|
/** FormUiControl optional: bound by [formField] when invalid */
|
|
2092
|
-
invalid = input(false,
|
|
2297
|
+
invalid = input(false, /* @ts-ignore */
|
|
2298
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
2093
2299
|
/** FormUiControl optional: bound by [formField] for validation errors */
|
|
2094
|
-
errors = input([],
|
|
2300
|
+
errors = input([], /* @ts-ignore */
|
|
2301
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
2095
2302
|
/** FormUiControl optional: control sets on blur */
|
|
2096
|
-
touched = model(false,
|
|
2097
|
-
|
|
2303
|
+
touched = model(false, /* @ts-ignore */
|
|
2304
|
+
...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
2305
|
+
value = model('', /* @ts-ignore */
|
|
2306
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2098
2307
|
ids = createFormFieldIds('pe-input');
|
|
2099
|
-
effectiveControlId = computed(() => this.controlId() ?? this.ids.controlId,
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2308
|
+
effectiveControlId = computed(() => this.controlId() ?? this.ids.controlId, /* @ts-ignore */
|
|
2309
|
+
...(ngDevMode ? [{ debugName: "effectiveControlId" }] : /* istanbul ignore next */ []));
|
|
2310
|
+
effectiveHelperId = computed(() => (this.controlId() ? `${this.controlId()}-helper` : this.ids.helperId), /* @ts-ignore */
|
|
2311
|
+
...(ngDevMode ? [{ debugName: "effectiveHelperId" }] : /* istanbul ignore next */ []));
|
|
2312
|
+
effectiveErrorId = computed(() => (this.controlId() ? `${this.controlId()}-error` : this.ids.errorId), /* @ts-ignore */
|
|
2313
|
+
...(ngDevMode ? [{ debugName: "effectiveErrorId" }] : /* istanbul ignore next */ []));
|
|
2314
|
+
isFocused = signal(false, /* @ts-ignore */
|
|
2315
|
+
...(ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []));
|
|
2316
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
2317
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2318
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.effectiveHelperId(), this.effectiveErrorId(), !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
2319
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
2106
2320
|
// Outputs
|
|
2107
2321
|
inputBlur = output();
|
|
2108
2322
|
inputFocus = output();
|
|
2109
|
-
valueChange = output();
|
|
2110
|
-
constructor() {
|
|
2111
|
-
// Effect to emit value changes
|
|
2112
|
-
effect(() => {
|
|
2113
|
-
const currentValue = this.value();
|
|
2114
|
-
if (this.isDirty()) {
|
|
2115
|
-
this.valueChange.emit(currentValue);
|
|
2116
|
-
}
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
2323
|
onInput(event) {
|
|
2120
2324
|
const value = event.target.value;
|
|
2121
|
-
this.isDirty.set(true);
|
|
2122
2325
|
this.value.set(value);
|
|
2123
2326
|
}
|
|
2124
2327
|
onBlur(event) {
|
|
@@ -2141,31 +2344,39 @@ class InputComponent {
|
|
|
2141
2344
|
const inputEl = document.getElementById(this.effectiveControlId());
|
|
2142
2345
|
inputEl?.select();
|
|
2143
2346
|
}
|
|
2144
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2145
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.2", type: InputComponent, isStandalone: true, selector: "pe-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus", valueChange: "valueChange" }, ngImport: i0, template: "<div\n class=\"pe-input pe-input--{{ size() }} pe-input--appearance-{{ appearance() }}\"\n [class.pe-input--error]=\"hasError()\"\n [class.pe-input--disabled]=\"disabled()\"\n [class.pe-input--read-only]=\"readOnly()\"\n [class.pe-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-input__group\" [class.pe-input__group--focused]=\"isFocused()\">\n <div class=\"pe-input__left-elements\">\n <ng-content select=\"[pe-input-left-elements]\" />\n </div>\n\n <input\n [id]=\"effectiveControlId()\"\n [type]=\"type()\"\n class=\"pe-input__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"pattern()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <div class=\"pe-input__right-elements\">\n <ng-content select=\"[pe-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-input{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-input__group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input__group--focused{border-color:#ffffff80}.pe-input--appearance-border-only:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d}.pe-input--appearance-subtle-tint:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-input__field{all:unset;flex:1}.pe-input__field::placeholder{color:#ffffff80}.pe-input__field:hover::placeholder{color:#fff}.pe-input__left-elements,.pe-input__right-elements{display:flex;gap:8px}.pe-input__left-elements ::ng-deep .pe-icon,.pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--sm .pe-input__group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-input--sm .pe-input__left-elements,.pe-input--sm .pe-input__right-elements{gap:4px}.pe-input--sm .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--sm .pe-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-input--md .pe-input__group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input--md .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--md .pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--lg .pe-input__group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-input--lg .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--lg .pe-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-input--xl .pe-input__group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-input--xl .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--xl .pe-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-input--error .pe-input__group{border:2px solid #f69d9d}.pe-input--disabled .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--disabled .pe-input__field,.pe-input--disabled .pe-input__field:disabled::placeholder{color:#ffffff4d}.pe-input--read-only .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--read-only .pe-input__field,.pe-input--read-only .pe-input__field:read-only::placeholder{color:#ffffffb3}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2348
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: InputComponent, isStandalone: true, selector: "pe-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, ngImport: i0, template: "<div\n class=\"pe-input pe-input--{{ size() }} pe-input--appearance-{{ appearance() }}\"\n [class.pe-input--error]=\"hasError()\"\n [class.pe-input--disabled]=\"disabled()\"\n [class.pe-input--read-only]=\"readOnly()\"\n [class.pe-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-input__group\" [class.pe-input__group--focused]=\"isFocused()\">\n <div class=\"pe-input__left-elements\">\n <ng-content select=\"[pe-input-left-elements]\" />\n </div>\n\n <input\n [id]=\"effectiveControlId()\"\n [type]=\"type()\"\n class=\"pe-input__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"pattern()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <div class=\"pe-input__right-elements\">\n <ng-content select=\"[pe-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-input{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-input__group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input__group--focused{border-color:#ffffff80}.pe-input--appearance-border-only:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d}.pe-input--appearance-subtle-tint:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-input__field{all:unset;flex:1}.pe-input__field::placeholder{color:#ffffff80}.pe-input__field:hover::placeholder{color:#fff}.pe-input__left-elements,.pe-input__right-elements{display:flex;gap:8px}.pe-input__left-elements ::ng-deep .pe-icon,.pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--sm .pe-input__group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-input--sm .pe-input__left-elements,.pe-input--sm .pe-input__right-elements{gap:4px}.pe-input--sm .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--sm .pe-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-input--md .pe-input__group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input--md .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--md .pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--lg .pe-input__group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-input--lg .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--lg .pe-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-input--xl .pe-input__group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-input--xl .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--xl .pe-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-input--error .pe-input__group{border:2px solid #f69d9d}.pe-input--disabled .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--disabled .pe-input__field,.pe-input--disabled .pe-input__field:disabled::placeholder{color:#ffffff4d}.pe-input--read-only .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--read-only .pe-input__field,.pe-input--read-only .pe-input__field:read-only::placeholder{color:#ffffffb3}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2146
2349
|
}
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: InputComponent, decorators: [{
|
|
2148
2351
|
type: Component,
|
|
2149
2352
|
args: [{ selector: 'pe-input', standalone: true, imports: [FormFieldLabelComponent, FormFieldHelperComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-input pe-input--{{ size() }} pe-input--appearance-{{ appearance() }}\"\n [class.pe-input--error]=\"hasError()\"\n [class.pe-input--disabled]=\"disabled()\"\n [class.pe-input--read-only]=\"readOnly()\"\n [class.pe-input--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"effectiveControlId()\"\n [size]=\"size()\"\n />\n\n <div class=\"pe-input__group\" [class.pe-input__group--focused]=\"isFocused()\">\n <div class=\"pe-input__left-elements\">\n <ng-content select=\"[pe-input-left-elements]\" />\n </div>\n\n <input\n [id]=\"effectiveControlId()\"\n [type]=\"type()\"\n class=\"pe-input__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"pattern()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n />\n\n <div class=\"pe-input__right-elements\">\n <ng-content select=\"[pe-input-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"effectiveHelperId()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-input{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-input__group{display:flex;align-items:center;height:40px;padding:0 12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1);font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input__group--focused{border-color:#ffffff80}.pe-input--appearance-border-only:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d}.pe-input--appearance-subtle-tint:not(.pe-input--disabled) .pe-input__group:hover{border-color:#ffffff4d;background-color:#ffffff0d}.pe-input__field{all:unset;flex:1}.pe-input__field::placeholder{color:#ffffff80}.pe-input__field:hover::placeholder{color:#fff}.pe-input__left-elements,.pe-input__right-elements{display:flex;gap:8px}.pe-input__left-elements ::ng-deep .pe-icon,.pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--sm .pe-input__group{height:32px;padding:0 8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-input--sm .pe-input__left-elements,.pe-input--sm .pe-input__right-elements{gap:4px}.pe-input--sm .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--sm .pe-input__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-input--md .pe-input__group{height:40px;padding:0 12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-input--md .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--md .pe-input__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-input--lg .pe-input__group{height:48px;padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-input--lg .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--lg .pe-input__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-input--xl .pe-input__group{height:64px;padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-input--xl .pe-input__left-elements ::ng-deep .pe-icon,.pe-input--xl .pe-input__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-input--error .pe-input__group{border:2px solid #f69d9d}.pe-input--disabled .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--disabled .pe-input__field,.pe-input--disabled .pe-input__field:disabled::placeholder{color:#ffffff4d}.pe-input--read-only .pe-input__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-input--read-only .pe-input__field,.pe-input--read-only .pe-input__field:read-only::placeholder{color:#ffffffb3}\n"] }]
|
|
2150
|
-
}],
|
|
2353
|
+
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], controlId: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlId", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }] } });
|
|
2151
2354
|
|
|
2152
2355
|
class ModalComponent {
|
|
2153
2356
|
/** Whether the modal is open. Supports two-way binding with [(open)]. */
|
|
2154
|
-
open = model(false,
|
|
2357
|
+
open = model(false, /* @ts-ignore */
|
|
2358
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
2155
2359
|
/** Visual variant: default, success, error, custom, or bottom-sheet (mobile-only layout). */
|
|
2156
|
-
variant = input('default',
|
|
2360
|
+
variant = input('default', /* @ts-ignore */
|
|
2361
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2157
2362
|
/** Optional title shown in the header. */
|
|
2158
|
-
title = input(undefined,
|
|
2363
|
+
title = input(undefined, /* @ts-ignore */
|
|
2364
|
+
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
2159
2365
|
/** Whether clicking the backdrop closes the modal. */
|
|
2160
|
-
closeOnBackdropClick = input(true,
|
|
2366
|
+
closeOnBackdropClick = input(true, /* @ts-ignore */
|
|
2367
|
+
...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []));
|
|
2161
2368
|
/** Whether to show the close button in the header. */
|
|
2162
|
-
showCloseButton = input(true,
|
|
2369
|
+
showCloseButton = input(true, /* @ts-ignore */
|
|
2370
|
+
...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
|
|
2163
2371
|
/** Label for the primary confirm action in the confirmation variant. */
|
|
2164
|
-
confirmLabel = input('Confirm',
|
|
2372
|
+
confirmLabel = input('Confirm', /* @ts-ignore */
|
|
2373
|
+
...(ngDevMode ? [{ debugName: "confirmLabel" }] : /* istanbul ignore next */ []));
|
|
2165
2374
|
/** Label for the secondary cancel action in the confirmation variant. */
|
|
2166
|
-
cancelLabel = input('Cancel',
|
|
2375
|
+
cancelLabel = input('Cancel', /* @ts-ignore */
|
|
2376
|
+
...(ngDevMode ? [{ debugName: "cancelLabel" }] : /* istanbul ignore next */ []));
|
|
2167
2377
|
/** Optional CSS class for the panel (e.g. for custom variant). */
|
|
2168
|
-
customClass = input(undefined,
|
|
2378
|
+
customClass = input(undefined, /* @ts-ignore */
|
|
2379
|
+
...(ngDevMode ? [{ debugName: "customClass" }] : /* istanbul ignore next */ []));
|
|
2169
2380
|
/** Emitted when the modal is closed (button, backdrop, or escape). */
|
|
2170
2381
|
closed = output();
|
|
2171
2382
|
/** Emitted when the user confirms in the confirmation variant. */
|
|
@@ -2180,11 +2391,16 @@ class ModalComponent {
|
|
|
2180
2391
|
classes.push(custom);
|
|
2181
2392
|
}
|
|
2182
2393
|
return classes.join(' ');
|
|
2183
|
-
},
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2394
|
+
}, /* @ts-ignore */
|
|
2395
|
+
...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
|
|
2396
|
+
isConfirmation = computed(() => this.variant() === 'confirmation', /* @ts-ignore */
|
|
2397
|
+
...(ngDevMode ? [{ debugName: "isConfirmation" }] : /* istanbul ignore next */ []));
|
|
2398
|
+
isSuccess = computed(() => this.variant() === 'success', /* @ts-ignore */
|
|
2399
|
+
...(ngDevMode ? [{ debugName: "isSuccess" }] : /* istanbul ignore next */ []));
|
|
2400
|
+
isError = computed(() => this.variant() === 'error', /* @ts-ignore */
|
|
2401
|
+
...(ngDevMode ? [{ debugName: "isError" }] : /* istanbul ignore next */ []));
|
|
2402
|
+
modalTitle = computed(() => (this.isSuccess() || this.isError()) ? '' : this.title(), /* @ts-ignore */
|
|
2403
|
+
...(ngDevMode ? [{ debugName: "modalTitle" }] : /* istanbul ignore next */ []));
|
|
2188
2404
|
titleId = `pe-modal-title-${Math.random().toString(36).slice(2, 11)}`;
|
|
2189
2405
|
bodyId = `pe-modal-body-${Math.random().toString(36).slice(2, 11)}`;
|
|
2190
2406
|
close() {
|
|
@@ -2215,10 +2431,10 @@ class ModalComponent {
|
|
|
2215
2431
|
this.close();
|
|
2216
2432
|
}
|
|
2217
2433
|
}
|
|
2218
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2219
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2434
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2435
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ModalComponent, isStandalone: true, selector: "pe-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, confirmLabel: { classPropertyName: "confirmLabel", publicName: "confirmLabel", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, customClass: { classPropertyName: "customClass", publicName: "customClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed", cancelled: "cancelled" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "attr.aria-hidden": "!open()" } }, ngImport: i0, template: "@if (open()) {\n <div\n class=\"pe-modal pe-modal--backdrop\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n [attr.aria-describedby]=\"bodyId\"\n (click)=\"onBackdropClick($event)\"\n >\n <div [class]=\"panelClass()\" cdkTrapFocus (click)=\"$event.stopPropagation()\">\n @if (modalTitle() || showCloseButton()) {\n <header class=\"pe-modal__header\">\n @if (modalTitle()) {\n <h2 [id]=\"titleId\" class=\"pe-modal__title\">{{ title() }}</h2>\n }\n @if (showCloseButton()) {\n <pe-button\n type=\"button\"\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n ariaLabel=\"Close\"\n class=\"pe-modal__close\"\n (buttonClick)=\"close()\"\n >\n <pe-icon icon=\"close\" size=\"6\" />\n </pe-button>\n }\n </header>\n }\n <div class=\"pe-modal__body\" [id]=\"bodyId\">\n @if (isSuccess() || isError()) {\n <div class=\"pe-modal__status\" aria-hidden=\"true\">\n <pe-icon\n class=\"pe-modal__status-icon\"\n [icon]=\"isSuccess() ? 'check_circle' : 'cross_circle'\"\n size=\"16\"\n />\n </div>\n }\n <ng-content />\n </div>\n <div class=\"pe-modal__footer\">\n @if (isConfirmation()) {\n <pe-button theme=\"ghost-white\" (buttonClick)=\"onCancel()\">\n {{ cancelLabel() }}\n </pe-button>\n <pe-button theme=\"fill-purple\" (buttonClick)=\"onConfirm()\">\n {{ confirmLabel() }}\n </pe-button>\n } @else {\n <ng-content select=\"[pe-modal-footer]\" />\n }\n </div>\n </div>\n </div>\n}\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-modal--backdrop{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px;background-color:#000000b3;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.pe-modal__panel{position:relative;display:flex;flex-direction:column;max-height:calc(100% - 32px);overflow:auto;border-radius:16px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#fff;transition:opacity .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);background-color:#232323;padding:24px;border:1px solid rgba(255,255,255,.1)}.pe-modal__panel--confirmation{border:1px solid rgba(255,255,255,.1)}@media(max-width:767px){.pe-modal__panel--success{border:1px solid #7edc96}.pe-modal__panel--error{border:1px solid #f69d9d}}.pe-modal__panel--custom,.pe-modal__panel--bottom-sheet{border:1px solid rgba(255,255,255,.1)}.pe-modal__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-shrink:0}.pe-modal__title{margin:0;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:800;color:#fff}.pe-modal__status{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}.pe-modal__status-icon{flex-shrink:0}.pe-modal__close{flex-shrink:0;margin-left:auto}.pe-modal__body{flex:1 1 auto;min-height:0;color:#ffffffb3}.pe-modal__panel--success .pe-modal__status-icon{color:#7edc96}.pe-modal__panel--error .pe-modal__status-icon{color:#f69d9d}.pe-modal__panel--success .pe-modal__body,.pe-modal__panel--error .pe-modal__body{text-align:center;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}@media(min-width:768px){.pe-modal--backdrop{padding:24px}.pe-modal__panel{width:100%;max-width:512px}}@media(max-width:767px){.pe-modal--backdrop{align-items:flex-end;padding:0}.pe-modal__panel{width:100%;max-width:100%;border-radius:24px 24px 0 0;max-height:calc(100dvh - 32px);margin-top:auto;border-bottom:none}.pe-modal__panel--bottom-sheet{border-bottom:none}}.pe-modal__footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px;flex-shrink:0;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2220
2436
|
}
|
|
2221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ModalComponent, decorators: [{
|
|
2222
2438
|
type: Component,
|
|
2223
2439
|
args: [{ selector: 'pe-modal', standalone: true, imports: [CdkTrapFocus, ButtonComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
2224
2440
|
'[attr.aria-hidden]': '!open()',
|
|
@@ -2230,10 +2446,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2230
2446
|
|
|
2231
2447
|
/** Place on the element projected into [pe-navbar-logo] so the navbar can detect logo content. */
|
|
2232
2448
|
class NavbarLogoSlotDirective {
|
|
2233
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2234
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarLogoSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2450
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NavbarLogoSlotDirective, isStandalone: true, selector: "[pe-navbar-logo]", ngImport: i0 });
|
|
2235
2451
|
}
|
|
2236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarLogoSlotDirective, decorators: [{
|
|
2237
2453
|
type: Directive,
|
|
2238
2454
|
args: [{
|
|
2239
2455
|
selector: '[pe-navbar-logo]',
|
|
@@ -2242,10 +2458,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2242
2458
|
}] });
|
|
2243
2459
|
/** Place on the element projected into [pe-navbar-search] so the navbar can show the mobile search toggle. */
|
|
2244
2460
|
class NavbarSearchSlotDirective {
|
|
2245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2246
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2461
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarSearchSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2462
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NavbarSearchSlotDirective, isStandalone: true, selector: "[pe-navbar-search]", ngImport: i0 });
|
|
2247
2463
|
}
|
|
2248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarSearchSlotDirective, decorators: [{
|
|
2249
2465
|
type: Directive,
|
|
2250
2466
|
args: [{
|
|
2251
2467
|
selector: '[pe-navbar-search]',
|
|
@@ -2254,10 +2470,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2254
2470
|
}] });
|
|
2255
2471
|
/** Place on the element projected into [pe-navbar-avatar] so the navbar can detect avatar content. */
|
|
2256
2472
|
class NavbarAvatarSlotDirective {
|
|
2257
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2258
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2473
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarAvatarSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2474
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NavbarAvatarSlotDirective, isStandalone: true, selector: "[pe-navbar-avatar]", ngImport: i0 });
|
|
2259
2475
|
}
|
|
2260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarAvatarSlotDirective, decorators: [{
|
|
2261
2477
|
type: Directive,
|
|
2262
2478
|
args: [{
|
|
2263
2479
|
selector: '[pe-navbar-avatar]',
|
|
@@ -2267,41 +2483,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2267
2483
|
|
|
2268
2484
|
class NavbarComponent {
|
|
2269
2485
|
/** Default logo link href when logo slot is not projected. */
|
|
2270
|
-
logoHref = input('/',
|
|
2486
|
+
logoHref = input('/', /* @ts-ignore */
|
|
2487
|
+
...(ngDevMode ? [{ debugName: "logoHref" }] : /* istanbul ignore next */ []));
|
|
2271
2488
|
/** Default logo image src when logo slot is not projected. */
|
|
2272
|
-
logoSrc = input(undefined,
|
|
2489
|
+
logoSrc = input(undefined, /* @ts-ignore */
|
|
2490
|
+
...(ngDevMode ? [{ debugName: "logoSrc" }] : /* istanbul ignore next */ []));
|
|
2273
2491
|
/** Default logo image alt when logo slot is not projected. */
|
|
2274
|
-
logoAlt = input('',
|
|
2492
|
+
logoAlt = input('', /* @ts-ignore */
|
|
2493
|
+
...(ngDevMode ? [{ debugName: "logoAlt" }] : /* istanbul ignore next */ []));
|
|
2275
2494
|
/** Default avatar image src when avatar slot is not projected. */
|
|
2276
|
-
avatarSrc = input(undefined,
|
|
2495
|
+
avatarSrc = input(undefined, /* @ts-ignore */
|
|
2496
|
+
...(ngDevMode ? [{ debugName: "avatarSrc" }] : /* istanbul ignore next */ []));
|
|
2277
2497
|
/** Default avatar initials when avatar slot is not projected and no image. */
|
|
2278
|
-
avatarInitials = input(undefined,
|
|
2498
|
+
avatarInitials = input(undefined, /* @ts-ignore */
|
|
2499
|
+
...(ngDevMode ? [{ debugName: "avatarInitials" }] : /* istanbul ignore next */ []));
|
|
2279
2500
|
/** Default avatar image alt when avatar slot is not projected. */
|
|
2280
|
-
avatarAlt = input('',
|
|
2501
|
+
avatarAlt = input('', /* @ts-ignore */
|
|
2502
|
+
...(ngDevMode ? [{ debugName: "avatarAlt" }] : /* istanbul ignore next */ []));
|
|
2281
2503
|
/** For aria-expanded on the toggle button */
|
|
2282
|
-
sidebarOpen = input(false,
|
|
2504
|
+
sidebarOpen = input(false, /* @ts-ignore */
|
|
2505
|
+
...(ngDevMode ? [{ debugName: "sidebarOpen" }] : /* istanbul ignore next */ []));
|
|
2283
2506
|
/** When true, show the sidebar toggle button even when a logo slot is projected. */
|
|
2284
|
-
showSidebarToggle = input(false,
|
|
2507
|
+
showSidebarToggle = input(false, /* @ts-ignore */
|
|
2508
|
+
...(ngDevMode ? [{ debugName: "showSidebarToggle" }] : /* istanbul ignore next */ []));
|
|
2285
2509
|
/** Emitted when the user clicks the sidebar toggle. Parent should flip the open state. */
|
|
2286
2510
|
sidebarToggle = output();
|
|
2287
|
-
logoSlot = contentChild(NavbarLogoSlotDirective,
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2511
|
+
logoSlot = contentChild(NavbarLogoSlotDirective, /* @ts-ignore */
|
|
2512
|
+
...(ngDevMode ? [{ debugName: "logoSlot" }] : /* istanbul ignore next */ []));
|
|
2513
|
+
searchSlot = contentChild(NavbarSearchSlotDirective, /* @ts-ignore */
|
|
2514
|
+
...(ngDevMode ? [{ debugName: "searchSlot" }] : /* istanbul ignore next */ []));
|
|
2515
|
+
avatarSlot = contentChild(NavbarAvatarSlotDirective, /* @ts-ignore */
|
|
2516
|
+
...(ngDevMode ? [{ debugName: "avatarSlot" }] : /* istanbul ignore next */ []));
|
|
2517
|
+
hasLogoSlot = computed(() => !!this.logoSlot(), /* @ts-ignore */
|
|
2518
|
+
...(ngDevMode ? [{ debugName: "hasLogoSlot" }] : /* istanbul ignore next */ []));
|
|
2519
|
+
hasSearchSlot = computed(() => !!this.searchSlot(), /* @ts-ignore */
|
|
2520
|
+
...(ngDevMode ? [{ debugName: "hasSearchSlot" }] : /* istanbul ignore next */ []));
|
|
2521
|
+
hasAvatarSlot = computed(() => !!this.avatarSlot(), /* @ts-ignore */
|
|
2522
|
+
...(ngDevMode ? [{ debugName: "hasAvatarSlot" }] : /* istanbul ignore next */ []));
|
|
2523
|
+
showToggle = computed(() => !this.hasLogoSlot() || this.showSidebarToggle(), /* @ts-ignore */
|
|
2524
|
+
...(ngDevMode ? [{ debugName: "showToggle" }] : /* istanbul ignore next */ []));
|
|
2525
|
+
searchExpanded = signal(false, /* @ts-ignore */
|
|
2526
|
+
...(ngDevMode ? [{ debugName: "searchExpanded" }] : /* istanbul ignore next */ []));
|
|
2295
2527
|
toggleSearch() {
|
|
2296
2528
|
this.searchExpanded.update((v) => !v);
|
|
2297
2529
|
}
|
|
2298
2530
|
toggleSidebar() {
|
|
2299
2531
|
this.sidebarToggle.emit();
|
|
2300
2532
|
}
|
|
2301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2302
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2534
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: NavbarComponent, isStandalone: true, selector: "pe-navbar", inputs: { logoHref: { classPropertyName: "logoHref", publicName: "logoHref", isSignal: true, isRequired: false, transformFunction: null }, logoSrc: { classPropertyName: "logoSrc", publicName: "logoSrc", isSignal: true, isRequired: false, transformFunction: null }, logoAlt: { classPropertyName: "logoAlt", publicName: "logoAlt", isSignal: true, isRequired: false, transformFunction: null }, avatarSrc: { classPropertyName: "avatarSrc", publicName: "avatarSrc", isSignal: true, isRequired: false, transformFunction: null }, avatarInitials: { classPropertyName: "avatarInitials", publicName: "avatarInitials", isSignal: true, isRequired: false, transformFunction: null }, avatarAlt: { classPropertyName: "avatarAlt", publicName: "avatarAlt", isSignal: true, isRequired: false, transformFunction: null }, sidebarOpen: { classPropertyName: "sidebarOpen", publicName: "sidebarOpen", isSignal: true, isRequired: false, transformFunction: null }, showSidebarToggle: { classPropertyName: "showSidebarToggle", publicName: "showSidebarToggle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sidebarToggle: "sidebarToggle" }, queries: [{ propertyName: "logoSlot", first: true, predicate: NavbarLogoSlotDirective, descendants: true, isSignal: true }, { propertyName: "searchSlot", first: true, predicate: NavbarSearchSlotDirective, descendants: true, isSignal: true }, { propertyName: "avatarSlot", first: true, predicate: NavbarAvatarSlotDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<nav class=\"pe-navbar\" role=\"navigation\">\n <div class=\"pe-navbar__bar\">\n <div class=\"pe-navbar__logo\">\n @if (showToggle()) {\n <pe-button\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n size=\"sm\"\n class=\"pe-navbar__sidebar_toggle\"\n ariaLabel=\"Open menu\"\n [attr.aria-expanded]=\"sidebarOpen()\"\n (buttonClick)=\"toggleSidebar()\"\n >\n <pe-icon icon=\"menu\" size=\"6\" />\n </pe-button>\n }\n @if (hasLogoSlot()) {\n <ng-content select=\"[pe-navbar-logo]\" />\n } @else {\n <img [src]=\"logoSrc()\" [alt]=\"logoAlt()\" class=\"pe-navbar__logo-img\" height=\"32\" />\n <a [href]=\"logoHref()\" class=\"pe-navbar__logo-link pe-navbar__logo-text\">Pinake</a>\n }\n </div>\n\n @if (hasSearchSlot()) {\n <pe-button\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n class=\"pe-navbar__search-toggle\"\n ariaLabel=\"Toggle search\"\n [attr.aria-expanded]=\"searchExpanded()\"\n (buttonClick)=\"toggleSearch()\"\n >\n <pe-icon icon=\"search\" size=\"6\" />\n </pe-button>\n }\n\n <div\n class=\"pe-navbar__search-wrapper\"\n [class.pe-navbar__search-wrapper--expanded]=\"searchExpanded()\"\n >\n <ng-content select=\"[pe-navbar-search]\" />\n </div>\n\n <div class=\"pe-navbar__avatar\">\n @if (hasAvatarSlot()) {\n <ng-content select=\"[pe-navbar-avatar]\" />\n } @else if (avatarSrc() || avatarInitials()) {\n <pe-avatar\n [src]=\"avatarSrc()\"\n [initials]=\"avatarInitials()\"\n [alt]=\"avatarAlt()\"\n size=\"md\"\n />\n }\n </div>\n </div>\n</nav>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-navbar{width:100%}.pe-navbar__bar{min-height:48px;display:flex;align-items:center;gap:16px;padding:8px 16px;background-color:#0a0a0a;border-bottom:1px solid rgba(255,255,255,.1)}@media(min-width:1024px){.pe-navbar__bar{padding:12px 24px;gap:24px}}@media(min-width:1280px){.pe-navbar__bar{padding:12px 32px}}.pe-navbar__bar{flex-wrap:wrap}@media(max-width:1279px){.pe-navbar__bar{position:relative;z-index:100}}@media(max-width:1279px){.pe-navbar__sidebar_toggle{display:inline-flex}}.pe-navbar__sidebar_toggle .pe-icon,.pe-navbar__sidebar_toggle .pe-icon:before{background-color:transparent}.pe-navbar__sidebar_toggle :focus-visible{outline:none;box-shadow:0 0 0 2px #ffffff1a}@media(min-width:1024px){.pe-navbar__sidebar_toggle{display:none}}.pe-navbar__logo{display:flex;align-items:center;flex-shrink:0;margin-right:auto;gap:8px}.pe-navbar__logo-link{display:flex;align-items:center;color:inherit;text-decoration:none}.pe-navbar__logo-text{font-family:Ultra Brand;line-height:36px;font-size:24px;letter-spacing:2.4px;font-weight:1000;text-transform:uppercase;color:inherit}@media(min-width:1024px){.pe-navbar__logo-text{display:none}}.pe-navbar__logo-img{display:block;max-height:40px;width:auto;object-fit:contain}@media(max-width:1279px){.pe-navbar__search-toggle{display:inline-flex}}@media(min-width:1024px){.pe-navbar__search-toggle{display:none}}.pe-navbar__search-wrapper{flex:1;min-width:0;display:flex;align-items:center}@media(max-width:1279px){.pe-navbar__search-wrapper{flex-basis:100%;order:10;max-height:0;overflow:hidden;opacity:0;transition:max-height .25s cubic-bezier(.4,0,.2,1),opacity .25s cubic-bezier(.4,0,.2,1)}.pe-navbar__search-wrapper--expanded{max-height:80px;opacity:1}}@media(min-width:1024px){.pe-navbar__search-wrapper{flex-basis:auto;order:0;max-height:none;opacity:1}}.pe-navbar__avatar{display:flex;align-items:center;flex-shrink:0}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "pe-avatar", inputs: ["size", "src", "initials", "icon", "alt", "loading"] }, { kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2303
2535
|
}
|
|
2304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
2305
2537
|
type: Component,
|
|
2306
2538
|
args: [{ selector: 'pe-navbar', standalone: true, imports: [AvatarComponent, ButtonComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<nav class=\"pe-navbar\" role=\"navigation\">\n <div class=\"pe-navbar__bar\">\n <div class=\"pe-navbar__logo\">\n @if (showToggle()) {\n <pe-button\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n size=\"sm\"\n class=\"pe-navbar__sidebar_toggle\"\n ariaLabel=\"Open menu\"\n [attr.aria-expanded]=\"sidebarOpen()\"\n (buttonClick)=\"toggleSidebar()\"\n >\n <pe-icon icon=\"menu\" size=\"6\" />\n </pe-button>\n }\n @if (hasLogoSlot()) {\n <ng-content select=\"[pe-navbar-logo]\" />\n } @else {\n <img [src]=\"logoSrc()\" [alt]=\"logoAlt()\" class=\"pe-navbar__logo-img\" height=\"32\" />\n <a [href]=\"logoHref()\" class=\"pe-navbar__logo-link pe-navbar__logo-text\">Pinake</a>\n }\n </div>\n\n @if (hasSearchSlot()) {\n <pe-button\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n class=\"pe-navbar__search-toggle\"\n ariaLabel=\"Toggle search\"\n [attr.aria-expanded]=\"searchExpanded()\"\n (buttonClick)=\"toggleSearch()\"\n >\n <pe-icon icon=\"search\" size=\"6\" />\n </pe-button>\n }\n\n <div\n class=\"pe-navbar__search-wrapper\"\n [class.pe-navbar__search-wrapper--expanded]=\"searchExpanded()\"\n >\n <ng-content select=\"[pe-navbar-search]\" />\n </div>\n\n <div class=\"pe-navbar__avatar\">\n @if (hasAvatarSlot()) {\n <ng-content select=\"[pe-navbar-avatar]\" />\n } @else if (avatarSrc() || avatarInitials()) {\n <pe-avatar\n [src]=\"avatarSrc()\"\n [initials]=\"avatarInitials()\"\n [alt]=\"avatarAlt()\"\n size=\"md\"\n />\n }\n </div>\n </div>\n</nav>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-navbar{width:100%}.pe-navbar__bar{min-height:48px;display:flex;align-items:center;gap:16px;padding:8px 16px;background-color:#0a0a0a;border-bottom:1px solid rgba(255,255,255,.1)}@media(min-width:1024px){.pe-navbar__bar{padding:12px 24px;gap:24px}}@media(min-width:1280px){.pe-navbar__bar{padding:12px 32px}}.pe-navbar__bar{flex-wrap:wrap}@media(max-width:1279px){.pe-navbar__bar{position:relative;z-index:100}}@media(max-width:1279px){.pe-navbar__sidebar_toggle{display:inline-flex}}.pe-navbar__sidebar_toggle .pe-icon,.pe-navbar__sidebar_toggle .pe-icon:before{background-color:transparent}.pe-navbar__sidebar_toggle :focus-visible{outline:none;box-shadow:0 0 0 2px #ffffff1a}@media(min-width:1024px){.pe-navbar__sidebar_toggle{display:none}}.pe-navbar__logo{display:flex;align-items:center;flex-shrink:0;margin-right:auto;gap:8px}.pe-navbar__logo-link{display:flex;align-items:center;color:inherit;text-decoration:none}.pe-navbar__logo-text{font-family:Ultra Brand;line-height:36px;font-size:24px;letter-spacing:2.4px;font-weight:1000;text-transform:uppercase;color:inherit}@media(min-width:1024px){.pe-navbar__logo-text{display:none}}.pe-navbar__logo-img{display:block;max-height:40px;width:auto;object-fit:contain}@media(max-width:1279px){.pe-navbar__search-toggle{display:inline-flex}}@media(min-width:1024px){.pe-navbar__search-toggle{display:none}}.pe-navbar__search-wrapper{flex:1;min-width:0;display:flex;align-items:center}@media(max-width:1279px){.pe-navbar__search-wrapper{flex-basis:100%;order:10;max-height:0;overflow:hidden;opacity:0;transition:max-height .25s cubic-bezier(.4,0,.2,1),opacity .25s cubic-bezier(.4,0,.2,1)}.pe-navbar__search-wrapper--expanded{max-height:80px;opacity:1}}@media(min-width:1024px){.pe-navbar__search-wrapper{flex-basis:auto;order:0;max-height:none;opacity:1}}.pe-navbar__avatar{display:flex;align-items:center;flex-shrink:0}\n"] }]
|
|
2307
2539
|
}], propDecorators: { logoHref: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoHref", required: false }] }], logoSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoSrc", required: false }] }], logoAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoAlt", required: false }] }], avatarSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarSrc", required: false }] }], avatarInitials: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarInitials", required: false }] }], avatarAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarAlt", required: false }] }], sidebarOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarOpen", required: false }] }], showSidebarToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSidebarToggle", required: false }] }], sidebarToggle: [{ type: i0.Output, args: ["sidebarToggle"] }], logoSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavbarLogoSlotDirective), { isSignal: true }] }], searchSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavbarSearchSlotDirective), { isSignal: true }] }], avatarSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavbarAvatarSlotDirective), { isSignal: true }] }] } });
|
|
@@ -2328,10 +2560,10 @@ class CustomCurrencyPipe extends CurrencyPipe {
|
|
|
2328
2560
|
// Return input if no match
|
|
2329
2561
|
return input;
|
|
2330
2562
|
}
|
|
2331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2332
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2563
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomCurrencyPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
2564
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: CustomCurrencyPipe, isStandalone: true, name: "peCurrency" });
|
|
2333
2565
|
}
|
|
2334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CustomCurrencyPipe, decorators: [{
|
|
2335
2567
|
type: Pipe,
|
|
2336
2568
|
args: [{
|
|
2337
2569
|
name: 'peCurrency',
|
|
@@ -2341,15 +2573,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2341
2573
|
|
|
2342
2574
|
class PriceButtonComponent {
|
|
2343
2575
|
// Inputs
|
|
2344
|
-
label = input('',
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2576
|
+
label = input('', /* @ts-ignore */
|
|
2577
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ [])); // Button label
|
|
2578
|
+
size = input('md', /* @ts-ignore */
|
|
2579
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ [])); // Button size
|
|
2580
|
+
theme = input('transparent-white', /* @ts-ignore */
|
|
2581
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ [])); // Button theme
|
|
2582
|
+
disabled = input(false, /* @ts-ignore */
|
|
2583
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ [])); // Disabled state
|
|
2584
|
+
salePosition = input('right', /* @ts-ignore */
|
|
2585
|
+
...(ngDevMode ? [{ debugName: "salePosition" }] : /* istanbul ignore next */ [])); // Sale badge position
|
|
2586
|
+
price = input(0, /* @ts-ignore */
|
|
2587
|
+
...(ngDevMode ? [{ debugName: "price" }] : /* istanbul ignore next */ [])); // Price (0 = free)
|
|
2588
|
+
originalPrice = input(0, /* @ts-ignore */
|
|
2589
|
+
...(ngDevMode ? [{ debugName: "originalPrice" }] : /* istanbul ignore next */ [])); // Original price
|
|
2590
|
+
discountBasis = input(0, /* @ts-ignore */
|
|
2591
|
+
...(ngDevMode ? [{ debugName: "discountBasis" }] : /* istanbul ignore next */ [])); // Discount basis
|
|
2592
|
+
currency = input('USD', /* @ts-ignore */
|
|
2593
|
+
...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ [])); // Currency
|
|
2353
2594
|
// Outputs
|
|
2354
2595
|
buttonClick = output(); // Click event
|
|
2355
2596
|
// Methods
|
|
@@ -2362,10 +2603,10 @@ class PriceButtonComponent {
|
|
|
2362
2603
|
}
|
|
2363
2604
|
this.buttonClick.emit(event);
|
|
2364
2605
|
}
|
|
2365
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2366
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2606
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PriceButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2607
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: PriceButtonComponent, isStandalone: true, selector: "pe-price-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, salePosition: { classPropertyName: "salePosition", publicName: "salePosition", isSignal: true, isRequired: false, transformFunction: null }, price: { classPropertyName: "price", publicName: "price", isSignal: true, isRequired: false, transformFunction: null }, originalPrice: { classPropertyName: "originalPrice", publicName: "originalPrice", isSignal: true, isRequired: false, transformFunction: null }, discountBasis: { classPropertyName: "discountBasis", publicName: "discountBasis", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, host: { properties: { "class.pe-price-button--sale-left": "salePosition() === \"left\"" }, classAttribute: "pe-price-button" }, ngImport: i0, template: "<pe-button [size]=\"size()\" [theme]=\"theme()\" [disabled]=\"disabled()\" (click)=\"handleClick($event)\">\n @if (label()) {\n {{ label() }}\n } @else if (price() > 0) {\n {{ price() | peCurrency: currency() }}\n } @else {\n Free\n }\n</pe-button>\n@if (price() !== originalPrice() && discountBasis() > 0) {\n <div class=\"pe-price-button__sale\">\n <div\n class=\"pe-price-button__discount\"\n [attr.aria-label]=\"'Discount ' + discountBasis() + '% off original price'\"\n >\n -{{ discountBasis() }}%\n </div>\n <div class=\"pe-price-button__original-price\" aria-hidden=\"true\">\n {{ originalPrice() | peCurrency: currency() }}\n </div>\n </div>\n}\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-price-button{display:flex;align-items:center;gap:12px}.pe-price-button--sale-left{flex-direction:row-reverse}.pe-price-button__sale{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.pe-price-button__discount{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;color:#ffe9a3}.pe-price-button__original-price{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#ffffff80;text-decoration:line-through}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "pipe", type: CustomCurrencyPipe, name: "peCurrency" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2367
2608
|
}
|
|
2368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: PriceButtonComponent, decorators: [{
|
|
2369
2610
|
type: Component,
|
|
2370
2611
|
args: [{ selector: 'pe-price-button', standalone: true, imports: [ButtonComponent, CustomCurrencyPipe], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2371
2612
|
class: 'pe-price-button',
|
|
@@ -2385,27 +2626,31 @@ class RadioComponent {
|
|
|
2385
2626
|
* The value associated with this radio button.
|
|
2386
2627
|
* This value identifies the radio button within its group.
|
|
2387
2628
|
*/
|
|
2388
|
-
value = input.required(
|
|
2629
|
+
value = input.required(/* @ts-ignore */
|
|
2630
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2389
2631
|
/**
|
|
2390
2632
|
* The name attribute for the radio button group.
|
|
2391
2633
|
* All radio buttons in the same group should share the same name.
|
|
2392
2634
|
*/
|
|
2393
|
-
name = input.required(
|
|
2635
|
+
name = input.required(/* @ts-ignore */
|
|
2636
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
2394
2637
|
/**
|
|
2395
2638
|
* Whether the radio button is disabled.
|
|
2396
2639
|
* @default false
|
|
2397
2640
|
*/
|
|
2398
|
-
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
2641
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2399
2642
|
/**
|
|
2400
2643
|
* Whether the radio button is currently checked/selected.
|
|
2401
2644
|
* This is a two-way binding that can be used with [(checked)].
|
|
2402
2645
|
*/
|
|
2403
|
-
checked = model(false,
|
|
2646
|
+
checked = model(false, /* @ts-ignore */
|
|
2647
|
+
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
2404
2648
|
/**
|
|
2405
2649
|
* Unique identifier for the radio button.
|
|
2406
2650
|
* If not provided, one will be auto-generated.
|
|
2407
2651
|
*/
|
|
2408
|
-
id = input(
|
|
2652
|
+
id = input(/* @ts-ignore */
|
|
2653
|
+
...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
2409
2654
|
/**
|
|
2410
2655
|
* Event emitted when the radio button is clicked.
|
|
2411
2656
|
* Useful for additional click handling beyond the default radio behavior.
|
|
@@ -2419,11 +2664,13 @@ class RadioComponent {
|
|
|
2419
2664
|
/**
|
|
2420
2665
|
* Internal signal for the unique ID
|
|
2421
2666
|
*/
|
|
2422
|
-
uniqueId = signal(`pe-radio-${Math.random().toString(36).substr(2, 9)}`,
|
|
2667
|
+
uniqueId = signal(`pe-radio-${Math.random().toString(36).substr(2, 9)}`, /* @ts-ignore */
|
|
2668
|
+
...(ngDevMode ? [{ debugName: "uniqueId" }] : /* istanbul ignore next */ []));
|
|
2423
2669
|
/**
|
|
2424
2670
|
* Computed ID that uses provided ID or falls back to generated unique ID
|
|
2425
2671
|
*/
|
|
2426
|
-
radioId = computed(() => this.id() || this.uniqueId(),
|
|
2672
|
+
radioId = computed(() => this.id() || this.uniqueId(), /* @ts-ignore */
|
|
2673
|
+
...(ngDevMode ? [{ debugName: "radioId" }] : /* istanbul ignore next */ []));
|
|
2427
2674
|
/**
|
|
2428
2675
|
* Computed ARIA attributes for accessibility
|
|
2429
2676
|
*/
|
|
@@ -2431,7 +2678,8 @@ class RadioComponent {
|
|
|
2431
2678
|
'aria-checked': this.checked(),
|
|
2432
2679
|
'aria-disabled': this.disabled(),
|
|
2433
2680
|
role: 'radio',
|
|
2434
|
-
}),
|
|
2681
|
+
}), /* @ts-ignore */
|
|
2682
|
+
...(ngDevMode ? [{ debugName: "ariaAttributes" }] : /* istanbul ignore next */ []));
|
|
2435
2683
|
/**
|
|
2436
2684
|
* Handles the radio button change event.
|
|
2437
2685
|
* Updates the checked state.
|
|
@@ -2476,10 +2724,10 @@ class RadioComponent {
|
|
|
2476
2724
|
this.checked.set(true);
|
|
2477
2725
|
}
|
|
2478
2726
|
}
|
|
2479
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2480
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2727
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2728
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: RadioComponent, isStandalone: true, selector: "pe-radio", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", click: "click", selected: "selected" }, ngImport: i0, template: "<label class=\"pe-radio-container\" [for]=\"radioId()\" [class.pe-radio-disabled]=\"disabled()\">\n <input\n type=\"radio\"\n [id]=\"radioId()\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n [attr.aria-checked]=\"ariaAttributes()['aria-checked']\"\n [attr.aria-disabled]=\"ariaAttributes()['aria-disabled']\"\n [attr.role]=\"ariaAttributes()['role']\"\n (change)=\"onRadioChange($event)\"\n (click)=\"onRadioClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n class=\"pe-radio-input\"\n />\n <span class=\"pe-radio-label\">\n <ng-content />\n </span>\n</label>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-radio-container{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.pe-radio-container.pe-radio-disabled{cursor:not-allowed;opacity:.6}.pe-radio-container:has(.pe-radio-input:focus-visible){outline:2px solid rgba(255,255,255,.3);outline-offset:2px;border-radius:4px}.pe-radio-input{appearance:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.5);border-radius:50%;margin:0;cursor:pointer;position:relative;transition:all .15s cubic-bezier(.4,0,.2,1);outline:solid 2px transparent;flex-shrink:0}.pe-radio-input:focus-visible,.pe-radio-input:focus,.pe-radio-input:hover{outline-color:#ffffff4d;border-color:#fff}.pe-radio-input:checked{border-color:transparent;background-color:#6f3de0;color:inherit}.pe-radio-input:checked:hover{background-color:#7e4af7}.pe-radio-input:checked:active{background-color:#5935af}.pe-radio-input:checked:selected{background-color:#7e4af7}.pe-radio-input:checked:disabled,.pe-radio-input:checked[disabled]{background-color:#232323}.pe-radio-input:checked:after{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:4px;background-color:#fff;border-radius:50%}.pe-radio-input:disabled{cursor:not-allowed;outline-color:transparent;background-color:transparent;border-color:#ffffff4d}.pe-radio-input:disabled:after{background-color:#ffffff4d}.pe-radio-input:disabled+.pe-radio-label{cursor:not-allowed;color:#ffffff4d}.pe-radio-label{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;cursor:pointer}.pe-radio-labelpe-radio-disabled .pe-radio-label{cursor:not-allowed;color:#ffffff4d}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], encapsulation: i0.ViewEncapsulation.None });
|
|
2481
2729
|
}
|
|
2482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadioComponent, decorators: [{
|
|
2483
2731
|
type: Component,
|
|
2484
2732
|
args: [{ selector: 'pe-radio', standalone: true, imports: [CommonModule], encapsulation: ViewEncapsulation.None, template: "<label class=\"pe-radio-container\" [for]=\"radioId()\" [class.pe-radio-disabled]=\"disabled()\">\n <input\n type=\"radio\"\n [id]=\"radioId()\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n [attr.aria-checked]=\"ariaAttributes()['aria-checked']\"\n [attr.aria-disabled]=\"ariaAttributes()['aria-disabled']\"\n [attr.role]=\"ariaAttributes()['role']\"\n (change)=\"onRadioChange($event)\"\n (click)=\"onRadioClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n class=\"pe-radio-input\"\n />\n <span class=\"pe-radio-label\">\n <ng-content />\n </span>\n</label>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-radio-container{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.pe-radio-container.pe-radio-disabled{cursor:not-allowed;opacity:.6}.pe-radio-container:has(.pe-radio-input:focus-visible){outline:2px solid rgba(255,255,255,.3);outline-offset:2px;border-radius:4px}.pe-radio-input{appearance:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.5);border-radius:50%;margin:0;cursor:pointer;position:relative;transition:all .15s cubic-bezier(.4,0,.2,1);outline:solid 2px transparent;flex-shrink:0}.pe-radio-input:focus-visible,.pe-radio-input:focus,.pe-radio-input:hover{outline-color:#ffffff4d;border-color:#fff}.pe-radio-input:checked{border-color:transparent;background-color:#6f3de0;color:inherit}.pe-radio-input:checked:hover{background-color:#7e4af7}.pe-radio-input:checked:active{background-color:#5935af}.pe-radio-input:checked:selected{background-color:#7e4af7}.pe-radio-input:checked:disabled,.pe-radio-input:checked[disabled]{background-color:#232323}.pe-radio-input:checked:after{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:4px;background-color:#fff;border-radius:50%}.pe-radio-input:disabled{cursor:not-allowed;outline-color:transparent;background-color:transparent;border-color:#ffffff4d}.pe-radio-input:disabled:after{background-color:#ffffff4d}.pe-radio-input:disabled+.pe-radio-label{cursor:not-allowed;color:#ffffff4d}.pe-radio-label{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;cursor:pointer}.pe-radio-labelpe-radio-disabled .pe-radio-label{cursor:not-allowed;color:#ffffff4d}\n"] }]
|
|
2485
2733
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], click: [{ type: i0.Output, args: ["click"] }], selected: [{ type: i0.Output, args: ["selected"] }] } });
|
|
@@ -2489,22 +2737,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2489
2737
|
* Use [(value)] or [formField]="myForm().choice". Renders pe-radio per option; value is the selected option's value.
|
|
2490
2738
|
*/
|
|
2491
2739
|
class RadioGroupComponent {
|
|
2492
|
-
name = input.required(
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2740
|
+
name = input.required(/* @ts-ignore */
|
|
2741
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
2742
|
+
options = input([], /* @ts-ignore */
|
|
2743
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
2744
|
+
label = input(null, /* @ts-ignore */
|
|
2745
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
2746
|
+
helperText = input(null, /* @ts-ignore */
|
|
2747
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
2748
|
+
errorText = input(null, /* @ts-ignore */
|
|
2749
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2750
|
+
error = input(false, /* @ts-ignore */
|
|
2751
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2752
|
+
disabled = input(false, /* @ts-ignore */
|
|
2753
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2754
|
+
required = input(false, /* @ts-ignore */
|
|
2755
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
2756
|
+
invalid = input(false, /* @ts-ignore */
|
|
2757
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
2758
|
+
errors = input([], /* @ts-ignore */
|
|
2759
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
2760
|
+
value = model(null, /* @ts-ignore */
|
|
2761
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2503
2762
|
ids = createFormFieldIds('pe-radio-group');
|
|
2504
|
-
hasError = computed(() => this.error() || this.invalid(),
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2763
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
2764
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2765
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
2766
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
2767
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2768
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: RadioGroupComponent, isStandalone: true, selector: "pe-radio-group", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: `
|
|
2508
2769
|
<div
|
|
2509
2770
|
class="pe-radio-group"
|
|
2510
2771
|
[attr.aria-invalid]="hasError()"
|
|
@@ -2541,7 +2802,7 @@ class RadioGroupComponent {
|
|
|
2541
2802
|
</div>
|
|
2542
2803
|
`, isInline: true, styles: [".pe-radio-group{display:flex;flex-direction:column;gap:.5rem}.pe-radio-group__radios{display:flex;flex-direction:column;gap:.25rem}\n"], dependencies: [{ kind: "component", type: RadioComponent, selector: "pe-radio", inputs: ["value", "name", "disabled", "checked", "id"], outputs: ["checkedChange", "click", "selected"] }, { kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2543
2804
|
}
|
|
2544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadioGroupComponent, decorators: [{
|
|
2545
2806
|
type: Component,
|
|
2546
2807
|
args: [{ selector: 'pe-radio-group', standalone: true, imports: [RadioComponent, FormFieldLabelComponent, FormFieldHelperComponent], template: `
|
|
2547
2808
|
<div
|
|
@@ -2592,18 +2853,22 @@ const lineWidths = {
|
|
|
2592
2853
|
};
|
|
2593
2854
|
class RadialComponent {
|
|
2594
2855
|
// size of the radial component in px
|
|
2595
|
-
size = input(96,
|
|
2856
|
+
size = input(96, /* @ts-ignore */
|
|
2857
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2596
2858
|
// if true, the radial will rotate indefinitely
|
|
2597
|
-
infinite = input(false, { ...(ngDevMode ? { debugName: "infinite" } : {}), transform: booleanAttribute });
|
|
2859
|
+
infinite = input(false, { ...(ngDevMode ? { debugName: "infinite" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2598
2860
|
// percentage of the radial that is filled
|
|
2599
|
-
percentage = input(0,
|
|
2861
|
+
percentage = input(0, /* @ts-ignore */
|
|
2862
|
+
...(ngDevMode ? [{ debugName: "percentage" }] : /* istanbul ignore next */ []));
|
|
2600
2863
|
// optional accessible label for the radial
|
|
2601
|
-
ariaLabel = input(null,
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2864
|
+
ariaLabel = input(null, /* @ts-ignore */
|
|
2865
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
2866
|
+
lineWidth = computed(() => lineWidths[this.size()], /* @ts-ignore */
|
|
2867
|
+
...(ngDevMode ? [{ debugName: "lineWidth" }] : /* istanbul ignore next */ []));
|
|
2868
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadialComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2869
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: RadialComponent, isStandalone: true, selector: "pe-radial", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, infinite: { classPropertyName: "infinite", publicName: "infinite", isSignal: true, isRequired: false, transformFunction: null }, percentage: { classPropertyName: "percentage", publicName: "percentage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"pe-radial\"\n role=\"progressbar\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-valuenow]=\"percentage()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.pe-radial--infinite]=\"infinite()\"\n [style.width.px]=\"size()\"\n [style.padding.px]=\"lineWidth()\"\n [style.--pe-radial-percentage]=\"percentage() + '%'\"\n></div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-radial{width:96px;padding:6px;aspect-ratio:1;border-radius:50%;background:#fff}.pe-radial--infinite{--pe-radial-mask: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;animation:pe-radial-rotation 1s infinite linear}.pe-radial:not(.pe-radial--infinite){--pe-radial-percentage: 25%;--pe-radial-mask: conic-gradient( #fff var(--pe-radial-percentage), transparent var(--pe-radial-percentage) ), linear-gradient(#000 0 0) content-box}.pe-radial{-webkit-mask:var(--pe-radial-mask);mask:var(--pe-radial-mask);-webkit-mask-composite:source-out;mask-composite:subtract}@keyframes pe-radial-rotation{to{transform:rotate(1turn)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2605
2870
|
}
|
|
2606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RadialComponent, decorators: [{
|
|
2607
2872
|
type: Component,
|
|
2608
2873
|
args: [{ selector: 'pe-radial', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-radial\"\n role=\"progressbar\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-valuenow]=\"percentage()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.pe-radial--infinite]=\"infinite()\"\n [style.width.px]=\"size()\"\n [style.padding.px]=\"lineWidth()\"\n [style.--pe-radial-percentage]=\"percentage() + '%'\"\n></div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-radial{width:96px;padding:6px;aspect-ratio:1;border-radius:50%;background:#fff}.pe-radial--infinite{--pe-radial-mask: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;animation:pe-radial-rotation 1s infinite linear}.pe-radial:not(.pe-radial--infinite){--pe-radial-percentage: 25%;--pe-radial-mask: conic-gradient( #fff var(--pe-radial-percentage), transparent var(--pe-radial-percentage) ), linear-gradient(#000 0 0) content-box}.pe-radial{-webkit-mask:var(--pe-radial-mask);mask:var(--pe-radial-mask);-webkit-mask-composite:source-out;mask-composite:subtract}@keyframes pe-radial-rotation{to{transform:rotate(1turn)}}\n"] }]
|
|
2609
2874
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], infinite: [{ type: i0.Input, args: [{ isSignal: true, alias: "infinite", required: false }] }], percentage: [{ type: i0.Input, args: [{ isSignal: true, alias: "percentage", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
@@ -2616,15 +2881,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2616
2881
|
* ng-content when content is empty.
|
|
2617
2882
|
*/
|
|
2618
2883
|
class RichTextComponent {
|
|
2619
|
-
content = input(null,
|
|
2620
|
-
|
|
2884
|
+
content = input(null, /* @ts-ignore */
|
|
2885
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
2886
|
+
size = input('body-l', /* @ts-ignore */
|
|
2887
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2621
2888
|
domSanitizer = inject(DomSanitizer);
|
|
2622
2889
|
sanitizedContent = computed(() => {
|
|
2623
2890
|
const html = this.content() ?? '';
|
|
2624
2891
|
return this.domSanitizer.sanitize(SecurityContext.HTML, html) ?? '';
|
|
2625
|
-
},
|
|
2626
|
-
|
|
2627
|
-
static
|
|
2892
|
+
}, /* @ts-ignore */
|
|
2893
|
+
...(ngDevMode ? [{ debugName: "sanitizedContent" }] : /* istanbul ignore next */ []));
|
|
2894
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RichTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2895
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: RichTextComponent, isStandalone: true, selector: "pe-rich-text", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "pe-rich-text-host" }, ngImport: i0, template: `
|
|
2628
2896
|
@if (content()) {
|
|
2629
2897
|
<div
|
|
2630
2898
|
class="pe-rich-text"
|
|
@@ -2640,7 +2908,7 @@ class RichTextComponent {
|
|
|
2640
2908
|
</div>
|
|
2641
2909
|
}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2642
2910
|
}
|
|
2643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RichTextComponent, decorators: [{
|
|
2644
2912
|
type: Component,
|
|
2645
2913
|
args: [{
|
|
2646
2914
|
selector: 'pe-rich-text',
|
|
@@ -2680,7 +2948,8 @@ const toastIcon = (kind) => {
|
|
|
2680
2948
|
}
|
|
2681
2949
|
};
|
|
2682
2950
|
class ToastService {
|
|
2683
|
-
toastsSignal = signal([],
|
|
2951
|
+
toastsSignal = signal([], /* @ts-ignore */
|
|
2952
|
+
...(ngDevMode ? [{ debugName: "toastsSignal" }] : /* istanbul ignore next */ []));
|
|
2684
2953
|
toasts = computed(() => this.toastsSignal().map((toast) => ({
|
|
2685
2954
|
id: toast.id,
|
|
2686
2955
|
title: toast.title,
|
|
@@ -2690,7 +2959,8 @@ class ToastService {
|
|
|
2690
2959
|
role: toast.kind === 'error' || toast.kind === 'warning' ? 'alert' : 'status',
|
|
2691
2960
|
icon: toastIcon(toast.kind),
|
|
2692
2961
|
showIcon: toast.showIcon,
|
|
2693
|
-
})),
|
|
2962
|
+
})), /* @ts-ignore */
|
|
2963
|
+
...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
2694
2964
|
show(message, config) {
|
|
2695
2965
|
const id = this.createId();
|
|
2696
2966
|
const merged = {
|
|
@@ -2735,10 +3005,10 @@ class ToastService {
|
|
|
2735
3005
|
}
|
|
2736
3006
|
return `pe-toast-${Math.random().toString(36).slice(2, 11)}`;
|
|
2737
3007
|
}
|
|
2738
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2739
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3008
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3009
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
2740
3010
|
}
|
|
2741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ToastService, decorators: [{
|
|
2742
3012
|
type: Injectable,
|
|
2743
3013
|
args: [{
|
|
2744
3014
|
providedIn: 'root',
|
|
@@ -2754,21 +3024,27 @@ class ToastContainerComponent {
|
|
|
2754
3024
|
dismiss(id) {
|
|
2755
3025
|
this.toastService.dismiss(id);
|
|
2756
3026
|
}
|
|
2757
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2758
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3028
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ToastContainerComponent, isStandalone: true, selector: "pe-toast-container", ngImport: i0, template: "<div class=\"pe-toast-container\" aria-live=\"polite\" aria-atomic=\"true\">\n @for (toast of toasts(); track trackById($index, toast)) {\n <section class=\"pe-toast pe-toast--{{ toast.kind }}\" [attr.role]=\"toast.role\">\n <div class=\"pe-toast__icon\">\n @if (toast.showIcon) {\n <pe-icon [icon]=\"toast.icon\" size=\"6\" iconWeight=\"bold\" />\n }\n </div>\n\n <div class=\"pe-toast__body\">\n @if (toast.title) {\n <h3 class=\"pe-toast__title\">\n {{ toast.title }}\n </h3>\n }\n <p class=\"pe-toast__message\">\n {{ toast.message }}\n </p>\n </div>\n\n @if (toast.dismissible) {\n <pe-button\n theme=\"ghost-white\"\n size=\"sm\"\n [iconOnly]=\"true\"\n class=\"pe-toast__close\"\n ariaLabel=\"Dismiss notification\"\n (buttonClick)=\"dismiss(toast.id)\"\n >\n <pe-icon icon=\"cross\" size=\"5\" />\n </pe-button>\n }\n </section>\n }\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-toast-container{position:fixed;inset-inline-end:16px;inset-block-end:16px;z-index:1200;display:flex;flex-direction:column;gap:12px;pointer-events:none}@media(max-width:767px){.pe-toast-container{inset-inline:12px;inset-block-end:12px}}.pe-toast{display:flex;align-items:flex-start;gap:12px;min-width:280px;max-width:360px;padding:12px 16px;border-radius:12px;background-color:#232323;color:#fff;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 30px #0006;pointer-events:auto;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}@media(max-width:767px){.pe-toast{min-width:0;width:100%}}.pe-toast__icon{display:flex;align-items:center;justify-content:center;margin-top:4px;color:#fff}.pe-toast__body{flex:1 1 auto}.pe-toast__title{margin:0 0 4px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;color:#fff}.pe-toast__message{margin:0;color:#ffffffb3}.pe-toast__close{margin-inline-start:8px;flex-shrink:0}.pe-toast__close .pe-icon{font-size:12px;line-height:16px}.pe-toast--success{border-color:#7edc96}.pe-toast--warning{border-color:#ffd9af}.pe-toast--error{border-color:#f69d9d}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2759
3029
|
}
|
|
2760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ToastContainerComponent, decorators: [{
|
|
2761
3031
|
type: Component,
|
|
2762
3032
|
args: [{ selector: 'pe-toast-container', standalone: true, imports: [ButtonComponent, IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pe-toast-container\" aria-live=\"polite\" aria-atomic=\"true\">\n @for (toast of toasts(); track trackById($index, toast)) {\n <section class=\"pe-toast pe-toast--{{ toast.kind }}\" [attr.role]=\"toast.role\">\n <div class=\"pe-toast__icon\">\n @if (toast.showIcon) {\n <pe-icon [icon]=\"toast.icon\" size=\"6\" iconWeight=\"bold\" />\n }\n </div>\n\n <div class=\"pe-toast__body\">\n @if (toast.title) {\n <h3 class=\"pe-toast__title\">\n {{ toast.title }}\n </h3>\n }\n <p class=\"pe-toast__message\">\n {{ toast.message }}\n </p>\n </div>\n\n @if (toast.dismissible) {\n <pe-button\n theme=\"ghost-white\"\n size=\"sm\"\n [iconOnly]=\"true\"\n class=\"pe-toast__close\"\n ariaLabel=\"Dismiss notification\"\n (buttonClick)=\"dismiss(toast.id)\"\n >\n <pe-icon icon=\"cross\" size=\"5\" />\n </pe-button>\n }\n </section>\n }\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-toast-container{position:fixed;inset-inline-end:16px;inset-block-end:16px;z-index:1200;display:flex;flex-direction:column;gap:12px;pointer-events:none}@media(max-width:767px){.pe-toast-container{inset-inline:12px;inset-block-end:12px}}.pe-toast{display:flex;align-items:flex-start;gap:12px;min-width:280px;max-width:360px;padding:12px 16px;border-radius:12px;background-color:#232323;color:#fff;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 30px #0006;pointer-events:auto;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}@media(max-width:767px){.pe-toast{min-width:0;width:100%}}.pe-toast__icon{display:flex;align-items:center;justify-content:center;margin-top:4px;color:#fff}.pe-toast__body{flex:1 1 auto}.pe-toast__title{margin:0 0 4px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;color:#fff}.pe-toast__message{margin:0;color:#ffffffb3}.pe-toast__close{margin-inline-start:8px;flex-shrink:0}.pe-toast__close .pe-icon{font-size:12px;line-height:16px}.pe-toast--success{border-color:#7edc96}.pe-toast--warning{border-color:#ffd9af}.pe-toast--error{border-color:#f69d9d}\n"] }]
|
|
2763
3033
|
}] });
|
|
2764
3034
|
|
|
2765
3035
|
class TooltipComponent {
|
|
2766
|
-
text = input('',
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
3036
|
+
text = input('', /* @ts-ignore */
|
|
3037
|
+
...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
3038
|
+
position = input('top', /* @ts-ignore */
|
|
3039
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
3040
|
+
disabled = input(false, /* @ts-ignore */
|
|
3041
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3042
|
+
showDelay = input(150, /* @ts-ignore */
|
|
3043
|
+
...(ngDevMode ? [{ debugName: "showDelay" }] : /* istanbul ignore next */ []));
|
|
3044
|
+
hideDelay = input(100, /* @ts-ignore */
|
|
3045
|
+
...(ngDevMode ? [{ debugName: "hideDelay" }] : /* istanbul ignore next */ []));
|
|
3046
|
+
visible = signal(false, /* @ts-ignore */
|
|
3047
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2772
3048
|
showTimeoutId = null;
|
|
2773
3049
|
hideTimeoutId = null;
|
|
2774
3050
|
tooltipId = `pe-tooltip-${Math.random().toString(36).slice(2, 11)}`;
|
|
@@ -2822,10 +3098,10 @@ class TooltipComponent {
|
|
|
2822
3098
|
this.hideTimeoutId = null;
|
|
2823
3099
|
}
|
|
2824
3100
|
}
|
|
2825
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2826
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: TooltipComponent, isStandalone: true, selector: "pe-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "handlePointerEnter()", "focusin": "handlePointerEnter()", "mouseleave": "handlePointerLeave()", "focusout": "handlePointerLeave()" }, properties: { "attr.aria-describedby": "this.ariaDescribedBy" } }, ngImport: i0, template: "<span class=\"pe-tooltip-wrapper\">\n <ng-content />\n\n @if (isVisible() && text()) {\n <span\n class=\"pe-tooltip pe-tooltip--{{ position() }}\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\"\n >\n {{ text() }}\n </span>\n }\n</span>\n\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-tooltip-wrapper{position:relative;display:inline-flex;align-items:center}.pe-tooltip{position:absolute;z-index:200;padding:8px 16px;border-radius:8px;background-color:#232323;font-weight:400;white-space:nowrap;pointer-events:none}.pe-tooltip--top{inset-block-end:100%;inset-inline-start:50%;margin-block-end:4px;transform:translate(-50%)}.pe-tooltip--bottom{inset-block-start:100%;inset-inline-start:50%;margin-block-start:4px;transform:translate(-50%)}.pe-tooltip--left{inset-inline-end:100%;inset-block-start:50%;margin-inline-end:4px;transform:translateY(-50%)}.pe-tooltip--right{inset-inline-start:100%;inset-block-start:50%;margin-inline-start:4px;transform:translateY(-50%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2827
3103
|
}
|
|
2828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
2829
3105
|
type: Component,
|
|
2830
3106
|
args: [{ selector: 'pe-tooltip', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"pe-tooltip-wrapper\">\n <ng-content />\n\n @if (isVisible() && text()) {\n <span\n class=\"pe-tooltip pe-tooltip--{{ position() }}\"\n role=\"tooltip\"\n [attr.id]=\"tooltipId\"\n >\n {{ text() }}\n </span>\n }\n</span>\n\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-tooltip-wrapper{position:relative;display:inline-flex;align-items:center}.pe-tooltip{position:absolute;z-index:200;padding:8px 16px;border-radius:8px;background-color:#232323;font-weight:400;white-space:nowrap;pointer-events:none}.pe-tooltip--top{inset-block-end:100%;inset-inline-start:50%;margin-block-end:4px;transform:translate(-50%)}.pe-tooltip--bottom{inset-block-start:100%;inset-inline-start:50%;margin-block-start:4px;transform:translate(-50%)}.pe-tooltip--left{inset-inline-end:100%;inset-block-start:50%;margin-inline-end:4px;transform:translateY(-50%)}.pe-tooltip--right{inset-inline-start:100%;inset-block-start:50%;margin-inline-start:4px;transform:translateY(-50%)}\n"] }]
|
|
2831
3107
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], hideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideDelay", required: false }] }], ariaDescribedBy: [{
|
|
@@ -2850,57 +3126,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2850
3126
|
* Implements FormValueControl for use with Signal Forms [formField]. Use [(value)] for two-way binding.
|
|
2851
3127
|
*/
|
|
2852
3128
|
class SearchSelectComponent {
|
|
2853
|
-
size = input('md',
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
3129
|
+
size = input('md', /* @ts-ignore */
|
|
3130
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3131
|
+
label = input(null, /* @ts-ignore */
|
|
3132
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3133
|
+
helperText = input(null, /* @ts-ignore */
|
|
3134
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
3135
|
+
errorText = input(null, /* @ts-ignore */
|
|
3136
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
3137
|
+
error = input(false, /* @ts-ignore */
|
|
3138
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
3139
|
+
disabled = input(false, /* @ts-ignore */
|
|
3140
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3141
|
+
required = input(false, /* @ts-ignore */
|
|
3142
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
3143
|
+
placeholder = input('Search...', /* @ts-ignore */
|
|
3144
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3145
|
+
options = input([], /* @ts-ignore */
|
|
3146
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
3147
|
+
minCharsToOpen = input(0, /* @ts-ignore */
|
|
3148
|
+
...(ngDevMode ? [{ debugName: "minCharsToOpen" }] : /* istanbul ignore next */ []));
|
|
3149
|
+
invalid = input(false, /* @ts-ignore */
|
|
3150
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
3151
|
+
errors = input([], /* @ts-ignore */
|
|
3152
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
3153
|
+
value = model(null, /* @ts-ignore */
|
|
3154
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2867
3155
|
ids = createFormFieldIds('pe-search-select');
|
|
2868
|
-
query = signal('',
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
3156
|
+
query = signal('', /* @ts-ignore */
|
|
3157
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
3158
|
+
isOpen = signal(false, /* @ts-ignore */
|
|
3159
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
3160
|
+
isFocused = signal(false, /* @ts-ignore */
|
|
3161
|
+
...(ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []));
|
|
3162
|
+
highlightedIndex = signal(0, /* @ts-ignore */
|
|
3163
|
+
...(ngDevMode ? [{ debugName: "highlightedIndex" }] : /* istanbul ignore next */ []));
|
|
2872
3164
|
blurCloseTimeout = null;
|
|
2873
3165
|
listId = `${this.ids.controlId}-list`;
|
|
2874
|
-
hasError = computed(() => this.error() || this.invalid(),
|
|
2875
|
-
|
|
3166
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
3167
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
3168
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
3169
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
2876
3170
|
selectedOption = computed(() => {
|
|
2877
3171
|
const v = this.value();
|
|
2878
3172
|
if (v == null)
|
|
2879
3173
|
return null;
|
|
2880
3174
|
return this.options().find((opt) => opt.value === v) ?? null;
|
|
2881
|
-
},
|
|
2882
|
-
|
|
3175
|
+
}, /* @ts-ignore */
|
|
3176
|
+
...(ngDevMode ? [{ debugName: "selectedOption" }] : /* istanbul ignore next */ []));
|
|
3177
|
+
selectedLabel = computed(() => this.selectedOption()?.label ?? '', /* @ts-ignore */
|
|
3178
|
+
...(ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []));
|
|
2883
3179
|
filteredOptions = computed(() => {
|
|
2884
3180
|
const q = this.query().trim().toLowerCase();
|
|
2885
3181
|
const opts = this.options();
|
|
2886
3182
|
if (!q)
|
|
2887
3183
|
return opts;
|
|
2888
3184
|
return opts.filter((opt) => opt.label.toLowerCase().includes(q));
|
|
2889
|
-
},
|
|
3185
|
+
}, /* @ts-ignore */
|
|
3186
|
+
...(ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []));
|
|
2890
3187
|
displayText = computed(() => {
|
|
2891
3188
|
if (this.isOpen())
|
|
2892
3189
|
return this.query();
|
|
2893
3190
|
if (this.value() != null)
|
|
2894
3191
|
return this.selectedLabel();
|
|
2895
3192
|
return this.query();
|
|
2896
|
-
},
|
|
3193
|
+
}, /* @ts-ignore */
|
|
3194
|
+
...(ngDevMode ? [{ debugName: "displayText" }] : /* istanbul ignore next */ []));
|
|
2897
3195
|
shouldShowPanel = computed(() => {
|
|
2898
3196
|
if (!this.isOpen())
|
|
2899
3197
|
return false;
|
|
2900
3198
|
const min = this.minCharsToOpen();
|
|
2901
3199
|
return this.query().trim().length >= min;
|
|
2902
|
-
},
|
|
2903
|
-
|
|
3200
|
+
}, /* @ts-ignore */
|
|
3201
|
+
...(ngDevMode ? [{ debugName: "shouldShowPanel" }] : /* istanbul ignore next */ []));
|
|
3202
|
+
hasNoResults = computed(() => this.shouldShowPanel() && this.filteredOptions().length === 0, /* @ts-ignore */
|
|
3203
|
+
...(ngDevMode ? [{ debugName: "hasNoResults" }] : /* istanbul ignore next */ []));
|
|
2904
3204
|
optionId = (index) => `${this.ids.controlId}-option-${index}`;
|
|
2905
3205
|
activeDescendantId = computed(() => {
|
|
2906
3206
|
const list = this.filteredOptions();
|
|
@@ -2909,14 +3209,14 @@ class SearchSelectComponent {
|
|
|
2909
3209
|
return undefined;
|
|
2910
3210
|
const safeIdx = Math.min(Math.max(0, idx), list.length - 1);
|
|
2911
3211
|
return this.optionId(safeIdx);
|
|
2912
|
-
},
|
|
3212
|
+
}, /* @ts-ignore */
|
|
3213
|
+
...(ngDevMode ? [{ debugName: "activeDescendantId" }] : /* istanbul ignore next */ []));
|
|
2913
3214
|
onInputValueChange(text) {
|
|
2914
3215
|
this.query.set(text);
|
|
2915
3216
|
this.isOpen.set(true);
|
|
2916
3217
|
this.highlightedIndex.set(0);
|
|
2917
3218
|
if (this.value() != null && text !== this.selectedLabel()) {
|
|
2918
3219
|
this.value.set(null);
|
|
2919
|
-
this.valueChange.emit(null);
|
|
2920
3220
|
}
|
|
2921
3221
|
}
|
|
2922
3222
|
onInputFocus() {
|
|
@@ -2966,7 +3266,6 @@ class SearchSelectComponent {
|
|
|
2966
3266
|
selectOption(opt) {
|
|
2967
3267
|
this.cancelBlurClose();
|
|
2968
3268
|
this.value.set(opt.value);
|
|
2969
|
-
this.valueChange.emit(opt.value);
|
|
2970
3269
|
this.query.set(opt.label);
|
|
2971
3270
|
this.isOpen.set(false);
|
|
2972
3271
|
}
|
|
@@ -2976,10 +3275,10 @@ class SearchSelectComponent {
|
|
|
2976
3275
|
this.blurCloseTimeout = null;
|
|
2977
3276
|
}
|
|
2978
3277
|
}
|
|
2979
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2980
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SearchSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3279
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: SearchSelectComponent, isStandalone: true, selector: "pe-search-select", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, minCharsToOpen: { classPropertyName: "minCharsToOpen", publicName: "minCharsToOpen", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<div\n class=\"pe-search-select pe-search-select--{{ size() }}\"\n [class.pe-search-select--open]=\"isOpen()\"\n [class.pe-search-select--error]=\"hasError()\"\n [class.pe-search-select--disabled]=\"disabled()\"\n [class.pe-search-select--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-search-select__control\"\n [class.pe-search-select__control--focused]=\"isFocused()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n (keydown)=\"onKeydown($event)\"\n >\n <pe-input\n [controlId]=\"ids.controlId\"\n [value]=\"displayText()\"\n (valueChange)=\"onInputValueChange($event)\"\n (inputFocus)=\"onInputFocus()\"\n (inputBlur)=\"onInputBlur()\"\n [size]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [label]=\"null\"\n [helperText]=\"null\"\n [autocomplete]=\"'off'\"\n >\n <ng-container pe-input-right-elements>\n <pe-icon size=\"5\" icon=\"search\" />\n </ng-container>\n </pe-input>\n\n @if (shouldShowPanel()) {\n <div\n class=\"pe-search-select__list pe-scrollable\"\n [class.pe-search-select__list--empty]=\"hasNoResults()\"\n [id]=\"listId\"\n role=\"listbox\"\n >\n @if (hasNoResults()) {\n <div class=\"pe-search-select__empty\" role=\"status\">No results</div>\n } @else {\n @for (opt of filteredOptions(); track opt.value; let i = $index) {\n <div\n class=\"pe-search-select__option\"\n [class.pe-search-select__option--highlighted]=\"highlightedIndex() === i\"\n [id]=\"optionId(i)\"\n role=\"option\"\n [attr.aria-selected]=\"value() === opt.value\"\n (mousedown)=\"selectOption(opt)\"\n >\n <pe-list-item\n theme=\"ghost-white\"\n [selected]=\"value() === opt.value\"\n [hideFocusOutline]=\"true\"\n >\n <ng-container pe-list-item-label>{{ opt.label }}</ng-container>\n </pe-list-item>\n </div>\n }\n }\n </div>\n }\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-search-select{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;width:100%}.pe-search-select__control{position:relative;display:flex;flex-direction:column;width:100%}.pe-search-select__control .pe-list-item:focus-visible,.pe-search-select__control .pe-list-item:focus{outline:none}.pe-search-select__list{position:absolute;top:100%;left:0;right:0;z-index:1;display:flex;flex-direction:column;gap:4px;background-color:#232323;border-radius:16px;padding:4px;margin-top:4px;max-height:316px;overflow-y:auto;border:2px solid rgba(255,255,255,.1)}.pe-search-select__list--empty{padding:12px}.pe-search-select__option{cursor:pointer;border-radius:8px}.pe-search-select__option--highlighted .pe-list-item{background-color:#fff3}.pe-search-select__empty{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#ffffffb3}.pe-search-select--disabled .pe-search-select__control{opacity:.6;cursor:not-allowed}.pe-search-select--error .pe-input__group{border-color:#f69d9d}@media(max-width:1023px){.pe-search-select__list{max-height:316px}}@media(min-width:1024px){.pe-search-select__control{max-width:100%}}\n"], dependencies: [{ kind: "component", type: InputComponent, selector: "pe-input", inputs: ["type", "size", "appearance", "error", "disabled", "readOnly", "required", "placeholder", "label", "helperText", "errorText", "maxLength", "minLength", "pattern", "autocomplete", "controlId", "invalid", "errors", "touched", "value"], outputs: ["touchedChange", "valueChange", "inputBlur", "inputFocus"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: ListItemComponent, selector: "pe-list-item", inputs: ["theme", "disabled", "hideFocusOutline", "selected", "loading"] }, { kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2981
3280
|
}
|
|
2982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SearchSelectComponent, decorators: [{
|
|
2983
3282
|
type: Component,
|
|
2984
3283
|
args: [{ selector: 'pe-search-select', standalone: true, imports: [
|
|
2985
3284
|
InputComponent,
|
|
@@ -2988,7 +3287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2988
3287
|
FormFieldLabelComponent,
|
|
2989
3288
|
FormFieldHelperComponent,
|
|
2990
3289
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-search-select pe-search-select--{{ size() }}\"\n [class.pe-search-select--open]=\"isOpen()\"\n [class.pe-search-select--error]=\"hasError()\"\n [class.pe-search-select--disabled]=\"disabled()\"\n [class.pe-search-select--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-search-select__control\"\n [class.pe-search-select__control--focused]=\"isFocused()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n (keydown)=\"onKeydown($event)\"\n >\n <pe-input\n [controlId]=\"ids.controlId\"\n [value]=\"displayText()\"\n (valueChange)=\"onInputValueChange($event)\"\n (inputFocus)=\"onInputFocus()\"\n (inputBlur)=\"onInputBlur()\"\n [size]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [label]=\"null\"\n [helperText]=\"null\"\n [autocomplete]=\"'off'\"\n >\n <ng-container pe-input-right-elements>\n <pe-icon size=\"5\" icon=\"search\" />\n </ng-container>\n </pe-input>\n\n @if (shouldShowPanel()) {\n <div\n class=\"pe-search-select__list pe-scrollable\"\n [class.pe-search-select__list--empty]=\"hasNoResults()\"\n [id]=\"listId\"\n role=\"listbox\"\n >\n @if (hasNoResults()) {\n <div class=\"pe-search-select__empty\" role=\"status\">No results</div>\n } @else {\n @for (opt of filteredOptions(); track opt.value; let i = $index) {\n <div\n class=\"pe-search-select__option\"\n [class.pe-search-select__option--highlighted]=\"highlightedIndex() === i\"\n [id]=\"optionId(i)\"\n role=\"option\"\n [attr.aria-selected]=\"value() === opt.value\"\n (mousedown)=\"selectOption(opt)\"\n >\n <pe-list-item\n theme=\"ghost-white\"\n [selected]=\"value() === opt.value\"\n [hideFocusOutline]=\"true\"\n >\n <ng-container pe-list-item-label>{{ opt.label }}</ng-container>\n </pe-list-item>\n </div>\n }\n }\n </div>\n }\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-search-select{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;width:100%}.pe-search-select__control{position:relative;display:flex;flex-direction:column;width:100%}.pe-search-select__control .pe-list-item:focus-visible,.pe-search-select__control .pe-list-item:focus{outline:none}.pe-search-select__list{position:absolute;top:100%;left:0;right:0;z-index:1;display:flex;flex-direction:column;gap:4px;background-color:#232323;border-radius:16px;padding:4px;margin-top:4px;max-height:316px;overflow-y:auto;border:2px solid rgba(255,255,255,.1)}.pe-search-select__list--empty{padding:12px}.pe-search-select__option{cursor:pointer;border-radius:8px}.pe-search-select__option--highlighted .pe-list-item{background-color:#fff3}.pe-search-select__empty{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400;color:#ffffffb3}.pe-search-select--disabled .pe-search-select__control{opacity:.6;cursor:not-allowed}.pe-search-select--error .pe-input__group{border-color:#f69d9d}@media(max-width:1023px){.pe-search-select__list{max-height:316px}}@media(min-width:1024px){.pe-search-select__control{max-width:100%}}\n"] }]
|
|
2991
|
-
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], minCharsToOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "minCharsToOpen", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }]
|
|
3290
|
+
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], minCharsToOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "minCharsToOpen", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
2992
3291
|
|
|
2993
3292
|
/**
|
|
2994
3293
|
* Form-friendly select built on the dropdown. Implements FormValueControl for Signal Forms [formField].
|
|
@@ -2998,20 +3297,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
2998
3297
|
* <pe-select label="Sort by" [options]="options" [(value)]="selected" />
|
|
2999
3298
|
*/
|
|
3000
3299
|
class SelectComponent {
|
|
3001
|
-
size = input('md',
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3300
|
+
size = input('md', /* @ts-ignore */
|
|
3301
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3302
|
+
theme = input('transparent-white', /* @ts-ignore */
|
|
3303
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
3304
|
+
label = input(null, /* @ts-ignore */
|
|
3305
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3306
|
+
helperText = input(null, /* @ts-ignore */
|
|
3307
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
3308
|
+
errorText = input(null, /* @ts-ignore */
|
|
3309
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
3310
|
+
error = input(false, /* @ts-ignore */
|
|
3311
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
3312
|
+
disabled = input(false, /* @ts-ignore */
|
|
3313
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3314
|
+
required = input(false, /* @ts-ignore */
|
|
3315
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
3316
|
+
placeholder = input('Select an option', /* @ts-ignore */
|
|
3317
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3318
|
+
options = input([], /* @ts-ignore */
|
|
3319
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
3320
|
+
invalid = input(false, /* @ts-ignore */
|
|
3321
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
3322
|
+
errors = input([], /* @ts-ignore */
|
|
3323
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
3324
|
+
value = model(null, /* @ts-ignore */
|
|
3325
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3326
|
+
selectedIndex = model(0, /* @ts-ignore */
|
|
3327
|
+
...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
|
|
3015
3328
|
ids = createFormFieldIds('pe-select');
|
|
3016
3329
|
items = computed(() => {
|
|
3017
3330
|
const opts = this.options();
|
|
@@ -3024,9 +3337,12 @@ class SelectComponent {
|
|
|
3024
3337
|
rightIcons: option.rightIcons,
|
|
3025
3338
|
disabled: option.disabled,
|
|
3026
3339
|
}));
|
|
3027
|
-
},
|
|
3028
|
-
|
|
3029
|
-
|
|
3340
|
+
}, /* @ts-ignore */
|
|
3341
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
3342
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
3343
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
3344
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
3345
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
3030
3346
|
constructor() {
|
|
3031
3347
|
// Keep selectedIndex in sync when value or options change
|
|
3032
3348
|
effect(() => {
|
|
@@ -3047,21 +3363,27 @@ class SelectComponent {
|
|
|
3047
3363
|
this.selectedIndex.set(index);
|
|
3048
3364
|
this.value.set(option?.value ?? null);
|
|
3049
3365
|
}
|
|
3050
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3051
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3366
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3367
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: SelectComponent, isStandalone: true, selector: "pe-select", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", selectedIndex: "selectedIndexChange" }, ngImport: i0, template: "<div\n class=\"pe-select pe-select--{{ size() }}\"\n [class.pe-select--disabled]=\"disabled()\"\n [class.pe-select--error]=\"hasError()\"\n [class.pe-select--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-select__control\"\n [id]=\"ids.controlId\"\n [class.pe-select__control--disabled]=\"disabled()\"\n >\n <pe-dropdown\n class=\"pe-select__dropdown\"\n [theme]=\"theme()\"\n [items]=\"items()\"\n [disabled]=\"disabled()\"\n [(selectedIndex)]=\"selectedIndex\"\n (selectedIndexChange)=\"onSelectedIndexChange($event)\"\n />\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-select{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-select__control{display:flex;align-items:center;min-height:40px;border:2px solid rgba(255,255,255,.1);border-radius:8px;background-color:transparent;transition:border-color .25s cubic-bezier(.4,0,.2,1)}.pe-select__control:hover{border-color:#ffffff4d}.pe-select__control:focus-within{border-color:#ffffff80}.pe-select__control .pe-list-item:focus-visible,.pe-select__control .pe-list-item:focus{outline:none}.pe-select__control--disabled{opacity:.6;cursor:not-allowed}.pe-select--disabled .pe-select__control{border-color:#ffffff1a}.pe-select--disabled .pe-select__control:hover,.pe-select--disabled .pe-select__control:focus-within{border-color:#ffffff1a}.pe-select--disabled .pe-select__control{opacity:.6;cursor:not-allowed}.pe-select__dropdown{width:100%}\n"], dependencies: [{ kind: "component", type: DropdownComponent, selector: "pe-dropdown", inputs: ["theme", "items", "disabled", "menuTriggerIcons", "triggerIconOnly", "iconOnlyLabel", "selectedIndex"], outputs: ["selectedIndexChange", "selectedItemChange"] }, { kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3052
3368
|
}
|
|
3053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SelectComponent, decorators: [{
|
|
3054
3370
|
type: Component,
|
|
3055
3371
|
args: [{ selector: 'pe-select', standalone: true, imports: [DropdownComponent, FormFieldLabelComponent, FormFieldHelperComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-select pe-select--{{ size() }}\"\n [class.pe-select--disabled]=\"disabled()\"\n [class.pe-select--error]=\"hasError()\"\n [class.pe-select--required]=\"required()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-select__control\"\n [id]=\"ids.controlId\"\n [class.pe-select__control--disabled]=\"disabled()\"\n >\n <pe-dropdown\n class=\"pe-select__dropdown\"\n [theme]=\"theme()\"\n [items]=\"items()\"\n [disabled]=\"disabled()\"\n [(selectedIndex)]=\"selectedIndex\"\n (selectedIndexChange)=\"onSelectedIndexChange($event)\"\n />\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText() || (hasError() && errors().length ? errors()[0].message : '') || null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-select{white-space:nowrap;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-select__control{display:flex;align-items:center;min-height:40px;border:2px solid rgba(255,255,255,.1);border-radius:8px;background-color:transparent;transition:border-color .25s cubic-bezier(.4,0,.2,1)}.pe-select__control:hover{border-color:#ffffff4d}.pe-select__control:focus-within{border-color:#ffffff80}.pe-select__control .pe-list-item:focus-visible,.pe-select__control .pe-list-item:focus{outline:none}.pe-select__control--disabled{opacity:.6;cursor:not-allowed}.pe-select--disabled .pe-select__control{border-color:#ffffff1a}.pe-select--disabled .pe-select__control:hover,.pe-select--disabled .pe-select__control:focus-within{border-color:#ffffff1a}.pe-select--disabled .pe-select__control{opacity:.6;cursor:not-allowed}.pe-select__dropdown{width:100%}\n"] }]
|
|
3056
3372
|
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }] } });
|
|
3057
3373
|
|
|
3058
3374
|
class SidebarComponent {
|
|
3059
|
-
items = input([],
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3375
|
+
items = input([], /* @ts-ignore */
|
|
3376
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
3377
|
+
theme = input('ghost-white', /* @ts-ignore */
|
|
3378
|
+
...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
3379
|
+
selectedIndex = model(0, /* @ts-ignore */
|
|
3380
|
+
...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
|
|
3381
|
+
open = model(false, /* @ts-ignore */
|
|
3382
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
3383
|
+
closeOnBackdropClick = input(true, /* @ts-ignore */
|
|
3384
|
+
...(ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []));
|
|
3385
|
+
hideItemFocusOutline = input(true, /* @ts-ignore */
|
|
3386
|
+
...(ngDevMode ? [{ debugName: "hideItemFocusOutline" }] : /* istanbul ignore next */ []));
|
|
3065
3387
|
itemSelected = output();
|
|
3066
3388
|
close() {
|
|
3067
3389
|
this.open.set(false);
|
|
@@ -3083,10 +3405,10 @@ class SidebarComponent {
|
|
|
3083
3405
|
this.close();
|
|
3084
3406
|
}
|
|
3085
3407
|
}
|
|
3086
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3087
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3408
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3409
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: SidebarComponent, isStandalone: true, selector: "pe-sidebar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, hideItemFocusOutline: { classPropertyName: "hideItemFocusOutline", publicName: "hideItemFocusOutline", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", open: "openChange", itemSelected: "itemSelected" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "attr.aria-hidden": "!open()" } }, ngImport: i0, template: "<div class=\"pe-sidebar\">\n <div\n class=\"pe-sidebar__overlay\"\n [class.pe-sidebar__overlay--visible]=\"open()\"\n [attr.aria-hidden]=\"!open()\"\n (click)=\"onOverlayClick()\"\n ></div>\n\n <aside\n class=\"pe-sidebar__drawer\"\n [class.pe-sidebar__drawer--open]=\"open()\"\n role=\"navigation\"\n [attr.aria-hidden]=\"!open()\"\n >\n <div class=\"pe-sidebar__inner\">\n <header class=\"pe-sidebar__header\">\n @if (open()) {\n <pe-button\n theme=\"ghost-white\"\n [iconOnly]=\"true\"\n class=\"pe-sidebar__close\"\n ariaLabel=\"Close menu\"\n (buttonClick)=\"close()\"\n >\n <pe-icon icon=\"close\" size=\"6\" />\n </pe-button>\n }\n <ng-content select=\"[pe-sidebar-header]\" />\n </header>\n <nav class=\"pe-sidebar__nav pe-scrollable\">\n @if (items().length > 0) {\n @for (item of items(); track $index) {\n <pe-list-item\n [theme]=\"theme()\"\n [disabled]=\"!!item.disabled\"\n [selected]=\"selectedIndex() === $index\"\n [hideFocusOutline]=\"hideItemFocusOutline()\"\n (click)=\"onItemClick(item, $index)\"\n >\n <ng-container pe-list-item-before-label>\n @if (item.leftIcons) {\n @for (icon of item.leftIcons; track icon) {\n <pe-icon size=\"5\" [icon]=\"icon\" />\n }\n }\n </ng-container>\n <ng-container pe-list-item-label>{{ item.label }}</ng-container>\n <ng-container pe-list-item-after-label>\n @if (item.rightIcons) {\n @for (icon of item.rightIcons; track icon) {\n <pe-icon size=\"5\" [icon]=\"icon\" />\n }\n }\n </ng-container>\n </pe-list-item>\n }\n } @else {\n <ng-content select=\"[pe-sidebar-nav]\" />\n }\n </nav>\n <footer class=\"pe-sidebar__footer\">\n <ng-content select=\"[pe-sidebar-footer]\" />\n </footer>\n </div>\n </aside>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-scrollable::-webkit-scrollbar{width:8px;height:8px}.pe-scrollable::-webkit-scrollbar-track{background:transparent;border-radius:4px}.pe-scrollable::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px;transition:background-color .15s cubic-bezier(.4,0,.2,1)}.pe-scrollable::-webkit-scrollbar-thumb:hover{background:#fff3}.pe-scrollable{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent;overflow:overlay;-webkit-overflow-scrolling:touch}.pe-scrollable::-webkit-scrollbar{opacity:0;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.pe-scrollable:hover::-webkit-scrollbar{opacity:1}.pe-scrollable{scrollbar-width:thin;scrollbar-color:transparent transparent;transition:scrollbar-color .25s cubic-bezier(.4,0,.2,1)}.pe-scrollable:hover{scrollbar-color:rgba(255,255,255,.1) transparent}.pe-sidebar{position:relative;height:100%}.pe-sidebar__overlay{display:none;position:fixed;inset:0;background-color:#000000b3;z-index:900;opacity:0;pointer-events:none;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media(max-width:1279px){.pe-sidebar__overlay{display:block}}.pe-sidebar__overlay--visible{opacity:1;pointer-events:auto}.pe-sidebar__drawer{position:fixed;top:0;left:0;bottom:0;width:240px;max-width:85vw;height:100%;background-color:#0a0a0a;border-right:1px solid rgba(255,255,255,.1);z-index:1000;display:flex;flex-direction:column;overflow:hidden;transition:transform .25s cubic-bezier(.4,0,.2,1)}@media(max-width:1279px){.pe-sidebar__drawer{transform:translate(-100%)}}@media(max-width:1279px){.pe-sidebar__drawer--open{transform:translate(0)}}@media(min-width:1024px){.pe-sidebar__drawer{position:relative;transform:none;flex-shrink:0}}.pe-sidebar__inner{display:flex;flex-direction:column;height:100%;padding:16px;gap:16px}.pe-sidebar__header{flex-shrink:0;display:flex;align-items:center;gap:8px}@media(min-width:1024px){.pe-sidebar__header .pe-sidebar__close{display:none}}.pe-sidebar__header .pe-sidebar__close .pe-icon,.pe-sidebar__header .pe-sidebar__close .pe-icon:before{background-color:transparent}.pe-sidebar__nav{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.pe-sidebar__footer{flex-shrink:0;border-top:1px solid rgba(255,255,255,.1);padding-top:16px}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "pe-button", inputs: ["size", "theme", "iconOnly", "vertical", "disabled", "type", "ariaLabel"], outputs: ["buttonClick"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: ListItemComponent, selector: "pe-list-item", inputs: ["theme", "disabled", "hideFocusOutline", "selected", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3088
3410
|
}
|
|
3089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SidebarComponent, decorators: [{
|
|
3090
3412
|
type: Component,
|
|
3091
3413
|
args: [{ selector: 'pe-sidebar', standalone: true, imports: [ButtonComponent, IconComponent, ListItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3092
3414
|
'[attr.aria-hidden]': '!open()',
|
|
@@ -3097,9 +3419,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
3097
3419
|
}] } });
|
|
3098
3420
|
|
|
3099
3421
|
class StatusComponent {
|
|
3100
|
-
status = input('info',
|
|
3101
|
-
|
|
3102
|
-
|
|
3422
|
+
status = input('info', /* @ts-ignore */
|
|
3423
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
3424
|
+
customIcon = input(/* @ts-ignore */
|
|
3425
|
+
...(ngDevMode ? [undefined, { debugName: "customIcon" }] : /* istanbul ignore next */ []));
|
|
3426
|
+
loadingAnimation = input(false, /* @ts-ignore */
|
|
3427
|
+
...(ngDevMode ? [{ debugName: "loadingAnimation" }] : /* istanbul ignore next */ []));
|
|
3103
3428
|
get icon() {
|
|
3104
3429
|
const customIcon = this.customIcon();
|
|
3105
3430
|
if (customIcon) {
|
|
@@ -3121,11 +3446,12 @@ class StatusComponent {
|
|
|
3121
3446
|
'pe-status--error': this.status() === 'error',
|
|
3122
3447
|
'pe-status--pending': this.status() === 'pending',
|
|
3123
3448
|
'pe-status--info': this.status() === 'info',
|
|
3124
|
-
}),
|
|
3125
|
-
|
|
3126
|
-
static
|
|
3449
|
+
}), /* @ts-ignore */
|
|
3450
|
+
...(ngDevMode ? [{ debugName: "computedClasses" }] : /* istanbul ignore next */ []));
|
|
3451
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: StatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3452
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: StatusComponent, isStandalone: true, selector: "pe-status", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, customIcon: { classPropertyName: "customIcon", publicName: "customIcon", isSignal: true, isRequired: false, transformFunction: null }, loadingAnimation: { classPropertyName: "loadingAnimation", publicName: "loadingAnimation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"computedClasses()\">\n <div class=\"pe-status-icon\">\n <pe-icon [icon]=\"icon\" size=\"12\" />\n @if (loadingAnimation()) {\n <div class=\"pe-status-loading\">\n <pe-radial [size]=\"96\" [percentage]=\"50\" [infinite]=\"true\" />\n </div>\n }\n </div>\n <div class=\"pe-status-title-container\">\n <div class=\"pe-status-title\">\n <ng-content select=\"[pe-status-title]\" />\n </div>\n <div class=\"pe-status-subtitle\">\n <ng-content select=\"[pe-status-subtitle]\" />\n </div>\n </div>\n <div class=\"pe-status-description\">\n <ng-content select=\"[pe-status-description]\" />\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-status{display:flex;flex-direction:column;align-items:center;width:100%;max-width:540px;gap:32px}.pe-status-icon{position:relative;display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:4096px;background-color:#ffffff1a}.pe-status-loading{position:absolute;inset:0;width:100%}.pe-status-title{text-align:center;font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-status-subtitle{text-align:center;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-status-description{text-align:center;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-status--confirm .pe-status-icon{background-color:#0b7a27}.pe-status--alert .pe-status-icon{background-color:#e87523}.pe-status--error .pe-status-icon{background-color:#c33a3a}.pe-status--pending .pe-status-icon{background-color:#6f3de0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: RadialComponent, selector: "pe-radial", inputs: ["size", "infinite", "percentage", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3127
3453
|
}
|
|
3128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: StatusComponent, decorators: [{
|
|
3129
3455
|
type: Component,
|
|
3130
3456
|
args: [{ selector: 'pe-status', standalone: true, imports: [IconComponent, RadialComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"computedClasses()\">\n <div class=\"pe-status-icon\">\n <pe-icon [icon]=\"icon\" size=\"12\" />\n @if (loadingAnimation()) {\n <div class=\"pe-status-loading\">\n <pe-radial [size]=\"96\" [percentage]=\"50\" [infinite]=\"true\" />\n </div>\n }\n </div>\n <div class=\"pe-status-title-container\">\n <div class=\"pe-status-title\">\n <ng-content select=\"[pe-status-title]\" />\n </div>\n <div class=\"pe-status-subtitle\">\n <ng-content select=\"[pe-status-subtitle]\" />\n </div>\n </div>\n <div class=\"pe-status-description\">\n <ng-content select=\"[pe-status-description]\" />\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-status{display:flex;flex-direction:column;align-items:center;width:100%;max-width:540px;gap:32px}.pe-status-icon{position:relative;display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:4096px;background-color:#ffffff1a}.pe-status-loading{position:absolute;inset:0;width:100%}.pe-status-title{text-align:center;font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-status-subtitle{text-align:center;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-status-description{text-align:center;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-status--confirm .pe-status-icon{background-color:#0b7a27}.pe-status--alert .pe-status-icon{background-color:#e87523}.pe-status--error .pe-status-icon{background-color:#c33a3a}.pe-status--pending .pe-status-icon{background-color:#6f3de0}\n"] }]
|
|
3131
3457
|
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], customIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "customIcon", required: false }] }], loadingAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingAnimation", required: false }] }] } });
|
|
@@ -3135,19 +3461,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
3135
3461
|
* Uses semantic table markup; responsive with horizontal scroll on small viewports.
|
|
3136
3462
|
*/
|
|
3137
3463
|
class TableComponent {
|
|
3138
|
-
columns = input([],
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3464
|
+
columns = input([], /* @ts-ignore */
|
|
3465
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
3466
|
+
data = input([], /* @ts-ignore */
|
|
3467
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
3468
|
+
sortColumn = model(null, /* @ts-ignore */
|
|
3469
|
+
...(ngDevMode ? [{ debugName: "sortColumn" }] : /* istanbul ignore next */ []));
|
|
3470
|
+
sortDirection = model('asc', /* @ts-ignore */
|
|
3471
|
+
...(ngDevMode ? [{ debugName: "sortDirection" }] : /* istanbul ignore next */ []));
|
|
3472
|
+
filterPlaceholder = input('Filter...', /* @ts-ignore */
|
|
3473
|
+
...(ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []));
|
|
3474
|
+
filterLabel = input('Filter', /* @ts-ignore */
|
|
3475
|
+
...(ngDevMode ? [{ debugName: "filterLabel" }] : /* istanbul ignore next */ []));
|
|
3476
|
+
showGlobalFilter = input(false, /* @ts-ignore */
|
|
3477
|
+
...(ngDevMode ? [{ debugName: "showGlobalFilter" }] : /* istanbul ignore next */ []));
|
|
3478
|
+
emptyMessage = input('No data', /* @ts-ignore */
|
|
3479
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
3480
|
+
loading = input(false, /* @ts-ignore */
|
|
3481
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
3482
|
+
sortChange = output();
|
|
3148
3483
|
filterChange = output();
|
|
3149
|
-
filterQuery = signal('',
|
|
3150
|
-
|
|
3484
|
+
filterQuery = signal('', /* @ts-ignore */
|
|
3485
|
+
...(ngDevMode ? [{ debugName: "filterQuery" }] : /* istanbul ignore next */ []));
|
|
3486
|
+
hasSortableColumn = computed(() => this.columns().some((col) => col.sortable === true), /* @ts-ignore */
|
|
3487
|
+
...(ngDevMode ? [{ debugName: "hasSortableColumn" }] : /* istanbul ignore next */ []));
|
|
3151
3488
|
filteredData = computed(() => {
|
|
3152
3489
|
const rows = this.data();
|
|
3153
3490
|
const query = this.filterQuery().trim().toLowerCase();
|
|
@@ -3160,7 +3497,8 @@ class TableComponent {
|
|
|
3160
3497
|
return String(val).toLowerCase().includes(query);
|
|
3161
3498
|
});
|
|
3162
3499
|
});
|
|
3163
|
-
},
|
|
3500
|
+
}, /* @ts-ignore */
|
|
3501
|
+
...(ngDevMode ? [{ debugName: "filteredData" }] : /* istanbul ignore next */ []));
|
|
3164
3502
|
sortedData = computed(() => {
|
|
3165
3503
|
const rows = this.filteredData();
|
|
3166
3504
|
const colId = this.sortColumn();
|
|
@@ -3175,7 +3513,8 @@ class TableComponent {
|
|
|
3175
3513
|
const cmp = aStr.localeCompare(bStr, undefined, { numeric: true });
|
|
3176
3514
|
return dir === 'asc' ? cmp : -cmp;
|
|
3177
3515
|
});
|
|
3178
|
-
},
|
|
3516
|
+
}, /* @ts-ignore */
|
|
3517
|
+
...(ngDevMode ? [{ debugName: "sortedData" }] : /* istanbul ignore next */ []));
|
|
3179
3518
|
filterId = `pe-table-filter-${Math.random().toString(36).slice(2, 9)}`;
|
|
3180
3519
|
getCellValue(row, columnId) {
|
|
3181
3520
|
return row[columnId];
|
|
@@ -3193,13 +3532,13 @@ class TableComponent {
|
|
|
3193
3532
|
if (current === columnId) {
|
|
3194
3533
|
const nextDir = currentDir === 'asc' ? 'desc' : 'asc';
|
|
3195
3534
|
this.sortDirection.set(nextDir);
|
|
3196
|
-
this.
|
|
3535
|
+
this.sortChange.emit({ column: columnId, direction: nextDir });
|
|
3197
3536
|
return;
|
|
3198
3537
|
}
|
|
3199
3538
|
else {
|
|
3200
3539
|
this.sortColumn.set(columnId);
|
|
3201
3540
|
this.sortDirection.set('asc');
|
|
3202
|
-
this.
|
|
3541
|
+
this.sortChange.emit({ column: columnId, direction: 'asc' });
|
|
3203
3542
|
}
|
|
3204
3543
|
}
|
|
3205
3544
|
getSortAriaSort(columnId) {
|
|
@@ -3207,23 +3546,23 @@ class TableComponent {
|
|
|
3207
3546
|
return 'none';
|
|
3208
3547
|
return this.sortDirection() === 'asc' ? 'ascending' : 'descending';
|
|
3209
3548
|
}
|
|
3210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: TableComponent, isStandalone: true, selector: "pe-table", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, sortColumn: { classPropertyName: "sortColumn", publicName: "sortColumn", isSignal: true, isRequired: false, transformFunction: null }, sortDirection: { classPropertyName: "sortDirection", publicName: "sortDirection", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, showGlobalFilter: { classPropertyName: "showGlobalFilter", publicName: "showGlobalFilter", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortColumn: "sortColumnChange", sortDirection: "sortDirectionChange", sortColumnChange: "sortColumnChange", filterChange: "filterChange" }, ngImport: i0, template: "<div\n class=\"pe-table\"\n [class.pe-table--sortable]=\"hasSortableColumn()\"\n [class.pe-table--filterable]=\"showGlobalFilter()\"\n>\n @if (showGlobalFilter()) {\n <div class=\"pe-table__toolbar\">\n <pe-input\n [controlId]=\"filterId\"\n [label]=\"filterLabel()\"\n [placeholder]=\"filterPlaceholder()\"\n [value]=\"filterQuery()\"\n (valueChange)=\"onFilterInput($event)\"\n size=\"sm\"\n >\n <ng-container pe-input-left-elements>\n <pe-icon size=\"5\" icon=\"search\" />\n </ng-container>\n </pe-input>\n </div>\n }\n\n <div class=\"pe-table__scroll pe-scrollable\">\n <pe-skeleton [show]=\"loading()\" variant=\"rect\">\n <table class=\"pe-table__table\">\n <thead class=\"pe-table__head\">\n <tr class=\"pe-table__row pe-table__row--head\">\n @for (col of columns(); track col.id) {\n <th\n class=\"pe-table__th\"\n [class.pe-table__th--sortable]=\"col.sortable\"\n [class.pe-table__th--sort-asc]=\"sortColumn() === col.id && sortDirection() === 'asc'\"\n [class.pe-table__th--sort-desc]=\"sortColumn() === col.id && sortDirection() === 'desc'\"\n [attr.scope]=\"'col'\"\n [attr.aria-sort]=\"col.sortable ? getSortAriaSort(col.id) : null\"\n >\n @if (col.sortable) {\n <button\n type=\"button\"\n class=\"pe-table__th-button\"\n [attr.aria-label]=\"'Sort by ' + col.label\"\n (click)=\"toggleSort(col.id)\"\n >\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n @if (sortColumn() === col.id && sortDirection() === 'asc') {\n <pe-icon size=\"5\" icon=\"arrow_up\" />\n } @else if (sortColumn() === col.id && sortDirection() === 'desc') {\n <pe-icon size=\"5\" icon=\"arrow_down\" />\n } @else {\n <pe-icon size=\"5\" icon=\"sort\" />\n }\n </button>\n } @else {\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n }\n </th>\n }\n </tr>\n </thead>\n <tbody class=\"pe-table__body\">\n @if (sortedData().length === 0) {\n <tr class=\"pe-table__row pe-table__row--empty\">\n <td class=\"pe-table__cell pe-table__cell--empty\" [attr.colspan]=\"columns().length || 1\">\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else {\n @for (row of sortedData(); track $index) {\n <tr class=\"pe-table__row\">\n @for (col of columns(); track col.id) {\n <td class=\"pe-table__cell\">{{ getCellValue(row, col.id) }}</td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n </pe-skeleton>\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-table{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:100%}.pe-table__toolbar{flex-shrink:0;max-width:100%}.pe-table__scroll{overflow-x:auto;overflow-y:hidden;width:100%;-webkit-overflow-scrolling:touch}.pe-table__table{width:100%;min-width:100%;border-collapse:collapse;border-spacing:0;border:1px solid rgba(255,255,255,.1);font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__head{position:sticky;top:0;z-index:1;background-color:transparent}.pe-table__row{border-bottom:1px solid rgba(255,255,255,.1)}.pe-table__row--head{border-bottom:2px solid rgba(255,255,255,.1)}.pe-table__row--empty{border-bottom:none}.pe-table__th{padding:8px 12px;text-align:left;font-weight:600;white-space:nowrap}.pe-table__th--sortable .pe-table__th-button{display:inline-flex;align-items:center;gap:4px;width:100%;min-width:0;padding:0;border:none;background:none;cursor:pointer;color:inherit;font:inherit;text-align:left;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;font-weight:600}.pe-table__th--sortable .pe-table__th-button:hover{color:#ffffffb3}.pe-table__th--sortable .pe-table__th-button:focus-visible{outline:2px solid rgba(255,255,255,.3);outline-offset:2px}.pe-table__th--sort-asc,.pe-table__th--sort-desc{color:#c2a8ff}.pe-table__th-label{overflow:hidden;text-overflow:ellipsis}.pe-table__body{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__cell{padding:8px 12px;vertical-align:middle}.pe-table__cell--empty{padding:24px;text-align:center;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}@media(max-width:1023px){.pe-table__scroll{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.pe-table__table{min-width:max-content}}@media(min-width:1024px){.pe-table__scroll{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}\n"], dependencies: [{ kind: "component", type: InputComponent, selector: "pe-input", inputs: ["type", "size", "appearance", "error", "disabled", "readOnly", "required", "placeholder", "label", "helperText", "errorText", "maxLength", "minLength", "pattern", "autocomplete", "controlId", "invalid", "errors", "touched", "value"], outputs: ["touchedChange", "valueChange", "inputBlur", "inputFocus"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3549
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3550
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: TableComponent, isStandalone: true, selector: "pe-table", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, sortColumn: { classPropertyName: "sortColumn", publicName: "sortColumn", isSignal: true, isRequired: false, transformFunction: null }, sortDirection: { classPropertyName: "sortDirection", publicName: "sortDirection", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, showGlobalFilter: { classPropertyName: "showGlobalFilter", publicName: "showGlobalFilter", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortColumn: "sortColumnChange", sortDirection: "sortDirectionChange", sortChange: "sortChange", filterChange: "filterChange" }, ngImport: i0, template: "<div\n class=\"pe-table\"\n [class.pe-table--sortable]=\"hasSortableColumn()\"\n [class.pe-table--filterable]=\"showGlobalFilter()\"\n>\n @if (showGlobalFilter()) {\n <div class=\"pe-table__toolbar\">\n <pe-input\n [controlId]=\"filterId\"\n [label]=\"filterLabel()\"\n [placeholder]=\"filterPlaceholder()\"\n [value]=\"filterQuery()\"\n (valueChange)=\"onFilterInput($event)\"\n size=\"sm\"\n >\n <ng-container pe-input-left-elements>\n <pe-icon size=\"5\" icon=\"search\" />\n </ng-container>\n </pe-input>\n </div>\n }\n\n <div class=\"pe-table__scroll pe-scrollable\">\n <pe-skeleton [show]=\"loading()\" variant=\"rect\">\n <table class=\"pe-table__table\">\n <thead class=\"pe-table__head\">\n <tr class=\"pe-table__row pe-table__row--head\">\n @for (col of columns(); track col.id) {\n <th\n class=\"pe-table__th\"\n [class.pe-table__th--sortable]=\"col.sortable\"\n [class.pe-table__th--sort-asc]=\"sortColumn() === col.id && sortDirection() === 'asc'\"\n [class.pe-table__th--sort-desc]=\"sortColumn() === col.id && sortDirection() === 'desc'\"\n [attr.scope]=\"'col'\"\n [attr.aria-sort]=\"col.sortable ? getSortAriaSort(col.id) : null\"\n >\n @if (col.sortable) {\n <button\n type=\"button\"\n class=\"pe-table__th-button\"\n [attr.aria-label]=\"'Sort by ' + col.label\"\n (click)=\"toggleSort(col.id)\"\n >\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n @if (sortColumn() === col.id && sortDirection() === 'asc') {\n <pe-icon size=\"5\" icon=\"arrow_up\" />\n } @else if (sortColumn() === col.id && sortDirection() === 'desc') {\n <pe-icon size=\"5\" icon=\"arrow_down\" />\n } @else {\n <pe-icon size=\"5\" icon=\"sort\" />\n }\n </button>\n } @else {\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n }\n </th>\n }\n </tr>\n </thead>\n <tbody class=\"pe-table__body\">\n @if (sortedData().length === 0) {\n <tr class=\"pe-table__row pe-table__row--empty\">\n <td class=\"pe-table__cell pe-table__cell--empty\" [attr.colspan]=\"columns().length || 1\">\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else {\n @for (row of sortedData(); track $index) {\n <tr class=\"pe-table__row\">\n @for (col of columns(); track col.id) {\n <td class=\"pe-table__cell\">{{ getCellValue(row, col.id) }}</td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n </pe-skeleton>\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-table{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:100%}.pe-table__toolbar{flex-shrink:0;max-width:100%}.pe-table__scroll{overflow-x:auto;overflow-y:hidden;width:100%;-webkit-overflow-scrolling:touch}.pe-table__table{width:100%;min-width:100%;border-collapse:collapse;border-spacing:0;border:1px solid rgba(255,255,255,.1);font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__head{position:sticky;top:0;z-index:1;background-color:transparent}.pe-table__row{border-bottom:1px solid rgba(255,255,255,.1)}.pe-table__row--head{border-bottom:2px solid rgba(255,255,255,.1)}.pe-table__row--empty{border-bottom:none}.pe-table__th{padding:8px 12px;text-align:left;font-weight:600;white-space:nowrap}.pe-table__th--sortable .pe-table__th-button{display:inline-flex;align-items:center;gap:4px;width:100%;min-width:0;padding:0;border:none;background:none;cursor:pointer;color:inherit;font:inherit;text-align:left;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;font-weight:600}.pe-table__th--sortable .pe-table__th-button:hover{color:#ffffffb3}.pe-table__th--sortable .pe-table__th-button:focus-visible{outline:2px solid rgba(255,255,255,.3);outline-offset:2px}.pe-table__th--sort-asc,.pe-table__th--sort-desc{color:#c2a8ff}.pe-table__th-label{overflow:hidden;text-overflow:ellipsis}.pe-table__body{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__cell{padding:8px 12px;vertical-align:middle}.pe-table__cell--empty{padding:24px;text-align:center;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}@media(max-width:1023px){.pe-table__scroll{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.pe-table__table{min-width:max-content}}@media(min-width:1024px){.pe-table__scroll{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}\n"], dependencies: [{ kind: "component", type: InputComponent, selector: "pe-input", inputs: ["type", "size", "appearance", "error", "disabled", "readOnly", "required", "placeholder", "label", "helperText", "errorText", "maxLength", "minLength", "pattern", "autocomplete", "controlId", "invalid", "errors", "touched", "value"], outputs: ["touchedChange", "valueChange", "inputBlur", "inputFocus"] }, { kind: "component", type: IconComponent, selector: "pe-icon", inputs: ["size", "weight", "icon"] }, { kind: "component", type: SkeletonComponent, selector: "pe-skeleton", inputs: ["variant", "width", "height", "lines", "borderRadius", "show"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3212
3551
|
}
|
|
3213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TableComponent, decorators: [{
|
|
3214
3553
|
type: Component,
|
|
3215
3554
|
args: [{ selector: 'pe-table', standalone: true, imports: [InputComponent, IconComponent, SkeletonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-table\"\n [class.pe-table--sortable]=\"hasSortableColumn()\"\n [class.pe-table--filterable]=\"showGlobalFilter()\"\n>\n @if (showGlobalFilter()) {\n <div class=\"pe-table__toolbar\">\n <pe-input\n [controlId]=\"filterId\"\n [label]=\"filterLabel()\"\n [placeholder]=\"filterPlaceholder()\"\n [value]=\"filterQuery()\"\n (valueChange)=\"onFilterInput($event)\"\n size=\"sm\"\n >\n <ng-container pe-input-left-elements>\n <pe-icon size=\"5\" icon=\"search\" />\n </ng-container>\n </pe-input>\n </div>\n }\n\n <div class=\"pe-table__scroll pe-scrollable\">\n <pe-skeleton [show]=\"loading()\" variant=\"rect\">\n <table class=\"pe-table__table\">\n <thead class=\"pe-table__head\">\n <tr class=\"pe-table__row pe-table__row--head\">\n @for (col of columns(); track col.id) {\n <th\n class=\"pe-table__th\"\n [class.pe-table__th--sortable]=\"col.sortable\"\n [class.pe-table__th--sort-asc]=\"sortColumn() === col.id && sortDirection() === 'asc'\"\n [class.pe-table__th--sort-desc]=\"sortColumn() === col.id && sortDirection() === 'desc'\"\n [attr.scope]=\"'col'\"\n [attr.aria-sort]=\"col.sortable ? getSortAriaSort(col.id) : null\"\n >\n @if (col.sortable) {\n <button\n type=\"button\"\n class=\"pe-table__th-button\"\n [attr.aria-label]=\"'Sort by ' + col.label\"\n (click)=\"toggleSort(col.id)\"\n >\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n @if (sortColumn() === col.id && sortDirection() === 'asc') {\n <pe-icon size=\"5\" icon=\"arrow_up\" />\n } @else if (sortColumn() === col.id && sortDirection() === 'desc') {\n <pe-icon size=\"5\" icon=\"arrow_down\" />\n } @else {\n <pe-icon size=\"5\" icon=\"sort\" />\n }\n </button>\n } @else {\n <span class=\"pe-table__th-label\">{{ col.label }}</span>\n }\n </th>\n }\n </tr>\n </thead>\n <tbody class=\"pe-table__body\">\n @if (sortedData().length === 0) {\n <tr class=\"pe-table__row pe-table__row--empty\">\n <td class=\"pe-table__cell pe-table__cell--empty\" [attr.colspan]=\"columns().length || 1\">\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else {\n @for (row of sortedData(); track $index) {\n <tr class=\"pe-table__row\">\n @for (col of columns(); track col.id) {\n <td class=\"pe-table__cell\">{{ getCellValue(row, col.id) }}</td>\n }\n </tr>\n }\n }\n </tbody>\n </table>\n </pe-skeleton>\n </div>\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-table{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:100%}.pe-table__toolbar{flex-shrink:0;max-width:100%}.pe-table__scroll{overflow-x:auto;overflow-y:hidden;width:100%;-webkit-overflow-scrolling:touch}.pe-table__table{width:100%;min-width:100%;border-collapse:collapse;border-spacing:0;border:1px solid rgba(255,255,255,.1);font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__head{position:sticky;top:0;z-index:1;background-color:transparent}.pe-table__row{border-bottom:1px solid rgba(255,255,255,.1)}.pe-table__row--head{border-bottom:2px solid rgba(255,255,255,.1)}.pe-table__row--empty{border-bottom:none}.pe-table__th{padding:8px 12px;text-align:left;font-weight:600;white-space:nowrap}.pe-table__th--sortable .pe-table__th-button{display:inline-flex;align-items:center;gap:4px;width:100%;min-width:0;padding:0;border:none;background:none;cursor:pointer;color:inherit;font:inherit;text-align:left;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;font-weight:600}.pe-table__th--sortable .pe-table__th-button:hover{color:#ffffffb3}.pe-table__th--sortable .pe-table__th-button:focus-visible{outline:2px solid rgba(255,255,255,.3);outline-offset:2px}.pe-table__th--sort-asc,.pe-table__th--sort-desc{color:#c2a8ff}.pe-table__th-label{overflow:hidden;text-overflow:ellipsis}.pe-table__body{font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400;color:#fff}.pe-table__cell{padding:8px 12px;vertical-align:middle}.pe-table__cell--empty{padding:24px;text-align:center;color:#ffffffb3;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}@media(max-width:1023px){.pe-table__scroll{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.pe-table__table{min-width:max-content}}@media(min-width:1024px){.pe-table__scroll{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}\n"] }]
|
|
3216
|
-
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], sortColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortColumn", required: false }] }, { type: i0.Output, args: ["sortColumnChange"] }], sortDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortDirection", required: false }] }, { type: i0.Output, args: ["sortDirectionChange"] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLabel", required: false }] }], showGlobalFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGlobalFilter", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }],
|
|
3555
|
+
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], sortColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortColumn", required: false }] }, { type: i0.Output, args: ["sortColumnChange"] }], sortDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortDirection", required: false }] }, { type: i0.Output, args: ["sortDirectionChange"] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLabel", required: false }] }], showGlobalFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGlobalFilter", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }] } });
|
|
3217
3556
|
|
|
3218
3557
|
/**
|
|
3219
3558
|
* When projected into pe-textarea, replaces the native textarea with custom content (e.g. Quill).
|
|
3220
3559
|
* Use with [pe-textarea-field] on the element to project.
|
|
3221
3560
|
*/
|
|
3222
3561
|
class TextareaFieldDirective {
|
|
3223
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3224
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3562
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3563
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: TextareaFieldDirective, isStandalone: true, selector: "[pe-textarea-field]", ngImport: i0 });
|
|
3225
3564
|
}
|
|
3226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaFieldDirective, decorators: [{
|
|
3227
3566
|
type: Directive,
|
|
3228
3567
|
args: [{
|
|
3229
3568
|
selector: '[pe-textarea-field]',
|
|
@@ -3238,47 +3577,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
3238
3577
|
* Content projection: [pe-textarea-field] (replaces native textarea), [pe-textarea-left-elements], [pe-textarea-right-elements].
|
|
3239
3578
|
*/
|
|
3240
3579
|
class TextareaComponent {
|
|
3241
|
-
size = input('md',
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3580
|
+
size = input('md', /* @ts-ignore */
|
|
3581
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3582
|
+
error = input(false, /* @ts-ignore */
|
|
3583
|
+
...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
3584
|
+
disabled = input(false, /* @ts-ignore */
|
|
3585
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3586
|
+
readOnly = input(false, /* @ts-ignore */
|
|
3587
|
+
...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
3588
|
+
required = input(false, /* @ts-ignore */
|
|
3589
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
3590
|
+
placeholder = input('', /* @ts-ignore */
|
|
3591
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3592
|
+
label = input(null, /* @ts-ignore */
|
|
3593
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3594
|
+
helperText = input(null, /* @ts-ignore */
|
|
3595
|
+
...(ngDevMode ? [{ debugName: "helperText" }] : /* istanbul ignore next */ []));
|
|
3596
|
+
errorText = input(null, /* @ts-ignore */
|
|
3597
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
3598
|
+
maxLength = input(/* @ts-ignore */
|
|
3599
|
+
...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
|
|
3600
|
+
minLength = input(/* @ts-ignore */
|
|
3601
|
+
...(ngDevMode ? [undefined, { debugName: "minLength" }] : /* istanbul ignore next */ []));
|
|
3602
|
+
autocomplete = input('off', /* @ts-ignore */
|
|
3603
|
+
...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
3604
|
+
rows = input(3, /* @ts-ignore */
|
|
3605
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
3606
|
+
resize = input('vertical', /* @ts-ignore */
|
|
3607
|
+
...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
|
|
3255
3608
|
/** When using [pe-textarea-field], pass focus state so the group border reflects it. */
|
|
3256
|
-
groupFocused = input(null,
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3609
|
+
groupFocused = input(null, /* @ts-ignore */
|
|
3610
|
+
...(ngDevMode ? [{ debugName: "groupFocused" }] : /* istanbul ignore next */ []));
|
|
3611
|
+
invalid = input(false, /* @ts-ignore */
|
|
3612
|
+
...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
3613
|
+
errors = input([], /* @ts-ignore */
|
|
3614
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
3615
|
+
touched = model(false, /* @ts-ignore */
|
|
3616
|
+
...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
3617
|
+
value = model('', /* @ts-ignore */
|
|
3618
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3619
|
+
customField = contentChild(TextareaFieldDirective, /* @ts-ignore */
|
|
3620
|
+
...(ngDevMode ? [{ debugName: "customField" }] : /* istanbul ignore next */ []));
|
|
3262
3621
|
ids = createFormFieldIds('pe-textarea');
|
|
3263
|
-
isFocused = signal(false,
|
|
3264
|
-
|
|
3265
|
-
groupFocusedState = computed(() => this.groupFocused() ?? this.isFocused(),
|
|
3266
|
-
|
|
3267
|
-
|
|
3622
|
+
isFocused = signal(false, /* @ts-ignore */
|
|
3623
|
+
...(ngDevMode ? [{ debugName: "isFocused" }] : /* istanbul ignore next */ []));
|
|
3624
|
+
groupFocusedState = computed(() => this.groupFocused() ?? this.isFocused(), /* @ts-ignore */
|
|
3625
|
+
...(ngDevMode ? [{ debugName: "groupFocusedState" }] : /* istanbul ignore next */ []));
|
|
3626
|
+
hasError = computed(() => this.error() || this.invalid(), /* @ts-ignore */
|
|
3627
|
+
...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
3628
|
+
describedBy = computed(() => getFormFieldDescribedBy(this.ids.helperId, this.ids.errorId, !!this.helperText(), this.hasError(), !!this.errorText() || this.errors().length > 0), /* @ts-ignore */
|
|
3629
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
3268
3630
|
inputBlur = output();
|
|
3269
3631
|
inputFocus = output();
|
|
3270
|
-
valueChange = output();
|
|
3271
|
-
constructor() {
|
|
3272
|
-
effect(() => {
|
|
3273
|
-
const currentValue = this.value();
|
|
3274
|
-
if (this.isDirty()) {
|
|
3275
|
-
this.valueChange.emit(currentValue);
|
|
3276
|
-
}
|
|
3277
|
-
});
|
|
3278
|
-
}
|
|
3279
3632
|
onInput(event) {
|
|
3280
3633
|
const value = event.target.value;
|
|
3281
|
-
this.isDirty.set(true);
|
|
3282
3634
|
this.value.set(value);
|
|
3283
3635
|
}
|
|
3284
3636
|
onBlur(event) {
|
|
@@ -3300,13 +3652,13 @@ class TextareaComponent {
|
|
|
3300
3652
|
const el = document.getElementById(this.ids.controlId);
|
|
3301
3653
|
el?.select();
|
|
3302
3654
|
}
|
|
3303
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3304
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: TextareaComponent, isStandalone: true, selector: "pe-textarea", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, groupFocused: { classPropertyName: "groupFocused", publicName: "groupFocused", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus", valueChange: "valueChange" }, queries: [{ propertyName: "customField", first: true, predicate: TextareaFieldDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pe-textarea pe-textarea--{{ size() }}\"\n [class.pe-textarea--error]=\"hasError()\"\n [class.pe-textarea--disabled]=\"disabled()\"\n [class.pe-textarea--read-only]=\"readOnly()\"\n [class.pe-textarea--required]=\"required()\"\n [class.pe-textarea--resize-none]=\"resize() === 'none'\"\n [class.pe-textarea--resize-vertical]=\"resize() === 'vertical'\"\n [class.pe-textarea--resize-horizontal]=\"resize() === 'horizontal'\"\n [class.pe-textarea--resize-both]=\"resize() === 'both'\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-textarea__group\"\n [class.pe-textarea__group--focused]=\"groupFocusedState()\"\n [style.--pe-textarea-rows]=\"rows()\"\n >\n <div class=\"pe-textarea__left-elements\">\n <ng-content select=\"[pe-textarea-left-elements]\" />\n </div>\n\n <ng-content select=\"[pe-textarea-field]\" />\n @if (!customField()) {\n <textarea\n [id]=\"ids.controlId\"\n class=\"pe-textarea__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.rows]=\"rows()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n ></textarea>\n }\n\n <div class=\"pe-textarea__right-elements\">\n <ng-content select=\"[pe-textarea-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"(errorText() || (hasError() && errors().length ? errors()[0].message : null)) ?? null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-textarea{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-textarea__group{display:flex;align-items:stretch;padding:12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-textarea__group--focused{border-color:#ffffff80}.pe-textarea:not(.pe-textarea--disabled) .pe-textarea__group:hover{border-color:#ffffff4d}.pe-textarea__field{all:unset;flex:1;min-height:0;resize:vertical}.pe-textarea__field::placeholder{color:#ffffff80}.pe-textarea__field:hover::placeholder{color:#fff}.pe-textarea__field--custom{display:flex;flex-direction:column;min-height:0}.pe-textarea__left-elements,.pe-textarea__right-elements{display:flex;gap:8px;align-items:flex-start;padding-top:8px}.pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--sm .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 20px + 2 * 8px);padding:8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-textarea--sm .pe-textarea__left-elements,.pe-textarea--sm .pe-textarea__right-elements{gap:4px;padding-top:4px}.pe-textarea--sm .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--sm .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-textarea--md .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 24px + 2 * 12px);padding:12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-textarea--md .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--md .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--lg .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 28px + 2 * 12px);padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-textarea--lg .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--lg .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-textarea--xl .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 36px + 2 * 16px);padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-textarea--xl .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--xl .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-textarea--resize-none .pe-textarea__field{resize:none}.pe-textarea--resize-vertical .pe-textarea__field{resize:vertical}.pe-textarea--resize-horizontal .pe-textarea__field{resize:horizontal}.pe-textarea--resize-both .pe-textarea__field{resize:both}.pe-textarea--error .pe-textarea__group{border:2px solid #f69d9d}.pe-textarea--disabled .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--disabled .pe-textarea__field,.pe-textarea--disabled .pe-textarea__field:disabled::placeholder{color:#ffffff4d}.pe-textarea--read-only .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--read-only .pe-textarea__field,.pe-textarea--read-only .pe-textarea__field:read-only::placeholder{color:#ffffffb3}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3655
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3656
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: TextareaComponent, isStandalone: true, selector: "pe-textarea", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, groupFocused: { classPropertyName: "groupFocused", publicName: "groupFocused", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touched: "touchedChange", value: "valueChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, queries: [{ propertyName: "customField", first: true, predicate: TextareaFieldDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pe-textarea pe-textarea--{{ size() }}\"\n [class.pe-textarea--error]=\"hasError()\"\n [class.pe-textarea--disabled]=\"disabled()\"\n [class.pe-textarea--read-only]=\"readOnly()\"\n [class.pe-textarea--required]=\"required()\"\n [class.pe-textarea--resize-none]=\"resize() === 'none'\"\n [class.pe-textarea--resize-vertical]=\"resize() === 'vertical'\"\n [class.pe-textarea--resize-horizontal]=\"resize() === 'horizontal'\"\n [class.pe-textarea--resize-both]=\"resize() === 'both'\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-textarea__group\"\n [class.pe-textarea__group--focused]=\"groupFocusedState()\"\n [style.--pe-textarea-rows]=\"rows()\"\n >\n <div class=\"pe-textarea__left-elements\">\n <ng-content select=\"[pe-textarea-left-elements]\" />\n </div>\n\n <ng-content select=\"[pe-textarea-field]\" />\n @if (!customField()) {\n <textarea\n [id]=\"ids.controlId\"\n class=\"pe-textarea__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.rows]=\"rows()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n ></textarea>\n }\n\n <div class=\"pe-textarea__right-elements\">\n <ng-content select=\"[pe-textarea-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"(errorText() || (hasError() && errors().length ? errors()[0].message : null)) ?? null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-textarea{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-textarea__group{display:flex;align-items:stretch;padding:12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-textarea__group--focused{border-color:#ffffff80}.pe-textarea:not(.pe-textarea--disabled) .pe-textarea__group:hover{border-color:#ffffff4d}.pe-textarea__field{all:unset;flex:1;min-height:0;resize:vertical}.pe-textarea__field::placeholder{color:#ffffff80}.pe-textarea__field:hover::placeholder{color:#fff}.pe-textarea__field--custom{display:flex;flex-direction:column;min-height:0}.pe-textarea__left-elements,.pe-textarea__right-elements{display:flex;gap:8px;align-items:flex-start;padding-top:8px}.pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--sm .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 20px + 2 * 8px);padding:8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-textarea--sm .pe-textarea__left-elements,.pe-textarea--sm .pe-textarea__right-elements{gap:4px;padding-top:4px}.pe-textarea--sm .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--sm .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-textarea--md .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 24px + 2 * 12px);padding:12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-textarea--md .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--md .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--lg .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 28px + 2 * 12px);padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-textarea--lg .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--lg .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-textarea--xl .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 36px + 2 * 16px);padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-textarea--xl .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--xl .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-textarea--resize-none .pe-textarea__field{resize:none}.pe-textarea--resize-vertical .pe-textarea__field{resize:vertical}.pe-textarea--resize-horizontal .pe-textarea__field{resize:horizontal}.pe-textarea--resize-both .pe-textarea__field{resize:both}.pe-textarea--error .pe-textarea__group{border:2px solid #f69d9d}.pe-textarea--disabled .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--disabled .pe-textarea__field,.pe-textarea--disabled .pe-textarea__field:disabled::placeholder{color:#ffffff4d}.pe-textarea--read-only .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--read-only .pe-textarea__field,.pe-textarea--read-only .pe-textarea__field:read-only::placeholder{color:#ffffffb3}\n"], dependencies: [{ kind: "component", type: FormFieldLabelComponent, selector: "pe-form-field-label", inputs: ["label", "required", "for", "size"] }, { kind: "component", type: FormFieldHelperComponent, selector: "pe-form-field-helper", inputs: ["id", "helperText", "errorText", "error"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3305
3657
|
}
|
|
3306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
3307
3659
|
type: Component,
|
|
3308
3660
|
args: [{ selector: 'pe-textarea', standalone: true, imports: [FormFieldLabelComponent, FormFieldHelperComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pe-textarea pe-textarea--{{ size() }}\"\n [class.pe-textarea--error]=\"hasError()\"\n [class.pe-textarea--disabled]=\"disabled()\"\n [class.pe-textarea--read-only]=\"readOnly()\"\n [class.pe-textarea--required]=\"required()\"\n [class.pe-textarea--resize-none]=\"resize() === 'none'\"\n [class.pe-textarea--resize-vertical]=\"resize() === 'vertical'\"\n [class.pe-textarea--resize-horizontal]=\"resize() === 'horizontal'\"\n [class.pe-textarea--resize-both]=\"resize() === 'both'\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <pe-form-field-label\n [label]=\"label()\"\n [required]=\"required()\"\n [for]=\"ids.controlId\"\n [size]=\"size()\"\n />\n\n <div\n class=\"pe-textarea__group\"\n [class.pe-textarea__group--focused]=\"groupFocusedState()\"\n [style.--pe-textarea-rows]=\"rows()\"\n >\n <div class=\"pe-textarea__left-elements\">\n <ng-content select=\"[pe-textarea-left-elements]\" />\n </div>\n\n <ng-content select=\"[pe-textarea-field]\" />\n @if (!customField()) {\n <textarea\n [id]=\"ids.controlId\"\n class=\"pe-textarea__field\"\n [placeholder]=\"placeholder()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n [disabled]=\"disabled()\"\n [readonly]=\"readOnly()\"\n [required]=\"required()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.rows]=\"rows()\"\n [attr.aria-invalid]=\"hasError()\"\n [attr.aria-required]=\"required()\"\n [attr.aria-describedby]=\"describedBy()\"\n ></textarea>\n }\n\n <div class=\"pe-textarea__right-elements\">\n <ng-content select=\"[pe-textarea-right-elements]\" />\n </div>\n </div>\n\n <pe-form-field-helper\n [id]=\"ids.helperId\"\n [helperText]=\"helperText()\"\n [errorText]=\"(errorText() || (hasError() && errors().length ? errors()[0].message : null)) ?? null\"\n [error]=\"hasError()\"\n />\n</div>\n", styles: [".pe-rich-text{font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400;color:#fff}.pe-rich-text p,.pe-rich-text ul,.pe-rich-text ol,.pe-rich-text blockquote,.pe-rich-text pre{margin-top:0;margin-bottom:16px}.pe-rich-text:last-child,.pe-rich-text p:last-child,.pe-rich-text ul:last-child,.pe-rich-text ol:last-child,.pe-rich-text blockquote:last-child,.pe-rich-text pre:last-child{margin-bottom:0}.pe-rich-text h1,.pe-rich-text h2,.pe-rich-text h3,.pe-rich-text h4,.pe-rich-text h5,.pe-rich-text h6{margin-top:32px;margin-bottom:12px;font-weight:1000}.pe-rich-text h1{font-family:Ultra Nunito Sans;line-height:48px;font-size:48px;letter-spacing:-.48px;font-weight:1000}.pe-rich-text h2{font-family:Ultra Nunito Sans;line-height:48px;font-size:40px;letter-spacing:-.4px;font-weight:1000}.pe-rich-text h3{font-family:Ultra Nunito Sans;line-height:44px;font-size:36px;letter-spacing:-.36px;font-weight:1000}.pe-rich-text h4{font-family:Ultra Nunito Sans;line-height:40px;font-size:32px;letter-spacing:-.32px;font-weight:1000}.pe-rich-text h5{font-family:Ultra Nunito Sans;line-height:36px;font-size:28px;letter-spacing:-.28px;font-weight:1000}.pe-rich-text h6{font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:1000}.pe-rich-text ul,.pe-rich-text ol{padding-left:24px}.pe-rich-text ul ul,.pe-rich-text ul ol,.pe-rich-text ol ul,.pe-rich-text ol ol{margin-top:8px;margin-bottom:8px}.pe-rich-text li{margin-top:4px;margin-bottom:4px}.pe-rich-text strong{font-weight:800}.pe-rich-text code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text em{font-style:italic}.pe-rich-text a{color:#c2a8ff;text-decoration:underline;text-decoration-thickness:1px}.pe-rich-text a:hover{color:#d6c5ff}.pe-rich-text a:active{color:#a781ff}.pe-rich-text pre{padding:16px;border-radius:8px;background-color:#3b3b3b;overflow-x:auto}.pe-rich-text pre code{font-family:Roboto Mono;line-height:20px;font-size:14px;letter-spacing:0px;font-weight:400}.pe-rich-text blockquote{margin-left:0;padding-left:16px;border-left-width:2px;border-left-style:solid;border-left-color:#ffffff1a;color:#ffffffb3}.pe-rich-text--muted{color:#ffffffb3}.pe-rich-text--inverse,.pe-rich-text--inverse a{color:#000}.pe-rich-text--inverse a:hover,.pe-rich-text--inverse a:active{color:#000000b3}.pe-rich-text--body-m{font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-rich-text--compact p,.pe-rich-text--compact ul,.pe-rich-text--compact ol,.pe-rich-text--compact blockquote,.pe-rich-text--compact pre{margin-bottom:8px}.pe-rich-text--compact h1,.pe-rich-text--compact h2,.pe-rich-text--compact h3,.pe-rich-text--compact h4,.pe-rich-text--compact h5,.pe-rich-text--compact h6{margin-top:16px;margin-bottom:8px}.pe-textarea{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.pe-textarea__group{display:flex;align-items:stretch;padding:12px;gap:8px;border-radius:8px;border:2px solid rgba(255,255,255,.1);background-color:transparent;color:#fff;transition:border-color .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)}.pe-textarea__group--focused{border-color:#ffffff80}.pe-textarea:not(.pe-textarea--disabled) .pe-textarea__group:hover{border-color:#ffffff4d}.pe-textarea__field{all:unset;flex:1;min-height:0;resize:vertical}.pe-textarea__field::placeholder{color:#ffffff80}.pe-textarea__field:hover::placeholder{color:#fff}.pe-textarea__field--custom{display:flex;flex-direction:column;min-height:0}.pe-textarea__left-elements,.pe-textarea__right-elements{display:flex;gap:8px;align-items:flex-start;padding-top:8px}.pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--sm .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 20px + 2 * 8px);padding:8px;font-family:Ultra Nunito Sans;line-height:20px;font-size:14px;letter-spacing:.14px;font-weight:400}.pe-textarea--sm .pe-textarea__left-elements,.pe-textarea--sm .pe-textarea__right-elements{gap:4px;padding-top:4px}.pe-textarea--sm .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--sm .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:20px;line-height:20px}.pe-textarea--md .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 24px + 2 * 12px);padding:12px;font-family:Ultra Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:400}.pe-textarea--md .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--md .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:24px;line-height:24px}.pe-textarea--lg .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 28px + 2 * 12px);padding:8px 12px;font-family:Ultra Nunito Sans;line-height:28px;font-size:18px;letter-spacing:0px;font-weight:400}.pe-textarea--lg .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--lg .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:28px;line-height:28px}.pe-textarea--xl .pe-textarea__group{min-height:calc(var(--pe-textarea-rows, 3) * 36px + 2 * 16px);padding:8px 16px;font-family:Ultra Nunito Sans;line-height:36px;font-size:24px;letter-spacing:-.24px;font-weight:400}.pe-textarea--xl .pe-textarea__left-elements ::ng-deep .pe-icon,.pe-textarea--xl .pe-textarea__right-elements ::ng-deep .pe-icon{font-size:32px;line-height:32px}.pe-textarea--resize-none .pe-textarea__field{resize:none}.pe-textarea--resize-vertical .pe-textarea__field{resize:vertical}.pe-textarea--resize-horizontal .pe-textarea__field{resize:horizontal}.pe-textarea--resize-both .pe-textarea__field{resize:both}.pe-textarea--error .pe-textarea__group{border:2px solid #f69d9d}.pe-textarea--disabled .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--disabled .pe-textarea__field,.pe-textarea--disabled .pe-textarea__field:disabled::placeholder{color:#ffffff4d}.pe-textarea--read-only .pe-textarea__group{border:2px solid rgba(255,255,255,.1);background-color:transparent}.pe-textarea--read-only .pe-textarea__field,.pe-textarea--read-only .pe-textarea__field:read-only::placeholder{color:#ffffffb3}\n"] }]
|
|
3309
|
-
}],
|
|
3661
|
+
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], groupFocused: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupFocused", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], customField: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TextareaFieldDirective), { isSignal: true }] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }] } });
|
|
3310
3662
|
|
|
3311
3663
|
/*
|
|
3312
3664
|
* Public API Surface of ui
|
|
@@ -3316,5 +3668,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
3316
3668
|
* Generated bundle index. Do not edit.
|
|
3317
3669
|
*/
|
|
3318
3670
|
|
|
3319
|
-
export { AccordionComponent, AccordionItemComponent, AreaCodeComponent, AvatarComponent, AvatarGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CardComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapseComponent, CustomCurrencyPipe, DropdownComponent, FileInputComponent, FooterComponent, FormFieldHelperComponent, FormFieldLabelComponent, HeroComponent, IconComponent, ImageNotFoundDirective, InputComponent, ListItemComponent, ModalComponent, NavbarAvatarSlotDirective, NavbarComponent, NavbarLogoSlotDirective, NavbarSearchSlotDirective, PeHeroActionsSlotDirective, PeHeroBadgesSlotDirective, PeHeroContentSlotDirective, PeHeroSubtitleSlotDirective, PeHeroTitleSlotDirective, PillComponent, PriceButtonComponent, RadialComponent, RadioComponent, RadioGroupComponent, RichTextComponent, SearchSelectComponent, SelectComponent, SidebarComponent, SkeletonComponent, StatusComponent, TableComponent, TextareaComponent, TextareaFieldDirective, ToastContainerComponent, TooltipComponent, createFormFieldIds, getFormFieldDescribedBy };
|
|
3671
|
+
export { AccordionComponent, AccordionItemComponent, AreaCodeComponent, AvatarComponent, AvatarGroupComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, CardComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapseComponent, CustomCurrencyPipe, DropdownComponent, FileInputComponent, FooterComponent, FormFieldHelperComponent, FormFieldLabelComponent, HeroComponent, IconComponent, ImageNotFoundDirective, InputComponent, ListItemComponent, ModalComponent, NavbarAvatarSlotDirective, NavbarComponent, NavbarLogoSlotDirective, NavbarSearchSlotDirective, PeHeroActionsSlotDirective, PeHeroBadgesSlotDirective, PeHeroContentSlotDirective, PeHeroSubtitleSlotDirective, PeHeroTitleSlotDirective, PillComponent, PriceButtonComponent, RadialComponent, RadioComponent, RadioGroupComponent, RichTextComponent, SearchSelectComponent, SelectComponent, SidebarComponent, SkeletonComponent, StatusComponent, TableComponent, TextareaComponent, TextareaFieldDirective, ToastContainerComponent, ToastService, TooltipComponent, createFormFieldIds, getFormFieldDescribedBy, toastIcon };
|
|
3320
3672
|
//# sourceMappingURL=underlayerdev-ui.mjs.map
|