@forgeroute/ui 0.5.28 → 0.5.30
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/fesm2022/forgeroute-ui-calendar.mjs +103 -4
- package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-card-list-item.mjs +165 -16
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-contact-picker.mjs +2 -2
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs → forgeroute-ui-core-ui-labels.es-BViJSCO-.mjs} +4 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs.map → forgeroute-ui-core-ui-labels.es-BViJSCO-.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui-core.mjs +38 -5
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +59 -28
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-icon.mjs +7 -6
- package/fesm2022/forgeroute-ui-icon.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-kpi-card.mjs +2 -2
- package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-notes.mjs +20 -22
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-panel-info-list.mjs +26 -4
- package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-payments.mjs +2 -1
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-setup.mjs +2 -1
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +78 -6
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-calendar.d.ts +28 -1
- package/types/forgeroute-ui-card-list-item.d.ts +32 -1
- package/types/forgeroute-ui-core.d.ts +13 -5
- package/types/forgeroute-ui-data-table-core.d.ts +10 -1
- package/types/forgeroute-ui-icon.d.ts +2 -0
- package/types/forgeroute-ui-messaging.d.ts +6 -5
- package/types/forgeroute-ui-panel-info-list.d.ts +11 -0
- package/types/forgeroute-ui-payments.d.ts +1 -1
- package/types/forgeroute-ui-quickbooks.d.ts +1 -1
- package/types/forgeroute-ui-square.d.ts +3 -3
- package/types/forgeroute-ui-stripe.d.ts +31 -1
- package/types/forgeroute-ui-table-types.d.ts +5 -0
|
@@ -11196,6 +11196,11 @@ const EMBED_TEMPLATE = `
|
|
|
11196
11196
|
</ui-alert>
|
|
11197
11197
|
}
|
|
11198
11198
|
}
|
|
11199
|
+
@if (readyConnectVisible()) {
|
|
11200
|
+
<div class="srh-ready-actions" data-testid="reader-shop-ready-actions">
|
|
11201
|
+
<ui-button variant="link" size="sm" data-testid="reader-shop-connect" (click)="connectReader.emit()">{{ labels.t('stripeReader.status.connect') }}</ui-button>
|
|
11202
|
+
</div>
|
|
11203
|
+
}
|
|
11199
11204
|
<div #embed class="srh-embed" data-testid="shop-embed" [hidden]="state() !== 'ready'"></div>
|
|
11200
11205
|
`;
|
|
11201
11206
|
const MODEL_KEYS = {
|
|
@@ -11224,6 +11229,8 @@ var StripeReaderEmbedBase = class StripeReaderEmbedBase {
|
|
|
11224
11229
|
this.appearance = input(null, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
11225
11230
|
this.offlineOverride = input(false, ...ngDevMode ? [{ debugName: "offlineOverride" }] : /* istanbul ignore next */ []);
|
|
11226
11231
|
this.requestTimeoutMs = input(2e4, ...ngDevMode ? [{ debugName: "requestTimeoutMs" }] : /* istanbul ignore next */ []);
|
|
11232
|
+
this.showConnectLink = input(true, ...ngDevMode ? [{ debugName: "showConnectLink" }] : /* istanbul ignore next */ []);
|
|
11233
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
11227
11234
|
this.checkoutFinished = output();
|
|
11228
11235
|
this.closed = output();
|
|
11229
11236
|
this.connectReader = output();
|
|
@@ -11237,6 +11244,7 @@ var StripeReaderEmbedBase = class StripeReaderEmbedBase {
|
|
|
11237
11244
|
this.element = null;
|
|
11238
11245
|
this.secretHolder = null;
|
|
11239
11246
|
this.destroyed = false;
|
|
11247
|
+
this.readyConnectVisible = computed(() => this.state() === "ready" && this.component() === "terminal_hardware_shop" && this.showConnectLink() && !this.readOnly(), ...ngDevMode ? [{ debugName: "readyConnectVisible" }] : /* istanbul ignore next */ []);
|
|
11240
11248
|
this.loadingText = computed(() => this.labels.t(this.component() === "terminal_hardware_orders" ? "stripeReaderShop.orders.loading" : "stripeReaderShop.loading"), ...ngDevMode ? [{ debugName: "loadingText" }] : /* istanbul ignore next */ []);
|
|
11241
11249
|
this.unavailableText = computed(() => this.labels.t(`stripeReaderShop.unavailable.${this.unavailableReason()}`), ...ngDevMode ? [{ debugName: "unavailableText" }] : /* istanbul ignore next */ []);
|
|
11242
11250
|
this.helpHref = computed(() => {
|
|
@@ -11484,6 +11492,20 @@ var StripeReaderEmbedBase = class StripeReaderEmbedBase {
|
|
|
11484
11492
|
isSignal: true,
|
|
11485
11493
|
isRequired: false,
|
|
11486
11494
|
transformFunction: null
|
|
11495
|
+
},
|
|
11496
|
+
showConnectLink: {
|
|
11497
|
+
classPropertyName: "showConnectLink",
|
|
11498
|
+
publicName: "showConnectLink",
|
|
11499
|
+
isSignal: true,
|
|
11500
|
+
isRequired: false,
|
|
11501
|
+
transformFunction: null
|
|
11502
|
+
},
|
|
11503
|
+
readOnly: {
|
|
11504
|
+
classPropertyName: "readOnly",
|
|
11505
|
+
publicName: "readOnly",
|
|
11506
|
+
isSignal: true,
|
|
11507
|
+
isRequired: false,
|
|
11508
|
+
transformFunction: null
|
|
11487
11509
|
}
|
|
11488
11510
|
},
|
|
11489
11511
|
outputs: {
|
|
@@ -11570,6 +11592,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11570
11592
|
required: false
|
|
11571
11593
|
}]
|
|
11572
11594
|
}],
|
|
11595
|
+
showConnectLink: [{
|
|
11596
|
+
type: i0.Input,
|
|
11597
|
+
args: [{
|
|
11598
|
+
isSignal: true,
|
|
11599
|
+
alias: "showConnectLink",
|
|
11600
|
+
required: false
|
|
11601
|
+
}]
|
|
11602
|
+
}],
|
|
11603
|
+
readOnly: [{
|
|
11604
|
+
type: i0.Input,
|
|
11605
|
+
args: [{
|
|
11606
|
+
isSignal: true,
|
|
11607
|
+
alias: "readOnly",
|
|
11608
|
+
required: false
|
|
11609
|
+
}]
|
|
11610
|
+
}],
|
|
11573
11611
|
checkoutFinished: [{
|
|
11574
11612
|
type: i0.Output,
|
|
11575
11613
|
args: ["checkoutFinished"]
|
|
@@ -11618,9 +11656,9 @@ var StripeReaderShopComponent = class StripeReaderShopComponent extends StripeRe
|
|
|
11618
11656
|
} },
|
|
11619
11657
|
usesInheritance: true,
|
|
11620
11658
|
ngImport: i0,
|
|
11621
|
-
template: "\n <ui-live-region data-testid=\"shop-live\" [message]=\"announcement()\" />\n @switch (state()) {\n @case ('loading') {\n <div class=\"srh-loading\" data-testid=\"shop-loading\" [attr.aria-busy]=\"'true'\">\n <ui-skeleton [height]=\"240\" [ariaLabel]=\"loadingText()\" />\n </div>\n }\n @case ('offline') {\n <ui-alert variant=\"warning\" [title]=\"labels.t('stripeReaderShop.offline.title')\" data-testid=\"shop-offline\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.offline.text') }}</p>\n </ui-alert>\n }\n @case ('error') {\n <ui-alert variant=\"danger\" [title]=\"labels.t('stripeReaderShop.error.title')\" data-testid=\"shop-error\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.error.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-retry\" (click)=\"retry()\">{{ labels.t('common.tryAgain') }}</ui-button>\n </div>\n </ui-alert>\n }\n @case ('unavailable') {\n <section class=\"srh-card\" data-testid=\"shop-unavailable\" [attr.data-reason]=\"unavailableReason()\" role=\"group\" [attr.aria-labelledby]=\"ids + '-unavailable'\">\n <h3 class=\"srh-title\" [id]=\"ids + '-unavailable'\">{{ labels.t('stripeReaderShop.unavailable.title') }}</h3>\n <p class=\"srh-text\" data-testid=\"shop-unavailable-reason\">{{ unavailableText() }}</p>\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.unavailable.models') }}</p>\n <ul class=\"srh-models\" data-testid=\"shop-models\">\n @for (model of models; track model.deviceType) {\n <li>{{ model.model }}: {{ labels.t(model.key) }}</li>\n }\n </ul>\n <p class=\"srh-text\" data-testid=\"shop-how\">{{ labels.t('stripeReaderShop.unavailable.how') }}</p>\n <div class=\"srh-actions\">\n @if (helpHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" data-testid=\"shop-help\">{{ labels.t('stripeReaderShop.help.link') }}<span class=\"srh-sr\">{{ labels.t('stripeStripeConnect.opensInNewTabSr') }}</span></a>\n }\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </section>\n }\n @case ('placed') {\n <ui-alert variant=\"success\" [title]=\"labels.t('stripeReaderShop.placed.title')\" data-testid=\"shop-placed\">\n <p class=\"srh-text\" data-testid=\"shop-placed-text\">{{ labels.t('stripeReaderShop.placed.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </ui-alert>\n }\n }\n <div #embed class=\"srh-embed\" data-testid=\"shop-embed\" [hidden]=\"state() !== 'ready'\"></div>\n",
|
|
11659
|
+
template: "\n <ui-live-region data-testid=\"shop-live\" [message]=\"announcement()\" />\n @switch (state()) {\n @case ('loading') {\n <div class=\"srh-loading\" data-testid=\"shop-loading\" [attr.aria-busy]=\"'true'\">\n <ui-skeleton [height]=\"240\" [ariaLabel]=\"loadingText()\" />\n </div>\n }\n @case ('offline') {\n <ui-alert variant=\"warning\" [title]=\"labels.t('stripeReaderShop.offline.title')\" data-testid=\"shop-offline\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.offline.text') }}</p>\n </ui-alert>\n }\n @case ('error') {\n <ui-alert variant=\"danger\" [title]=\"labels.t('stripeReaderShop.error.title')\" data-testid=\"shop-error\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.error.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-retry\" (click)=\"retry()\">{{ labels.t('common.tryAgain') }}</ui-button>\n </div>\n </ui-alert>\n }\n @case ('unavailable') {\n <section class=\"srh-card\" data-testid=\"shop-unavailable\" [attr.data-reason]=\"unavailableReason()\" role=\"group\" [attr.aria-labelledby]=\"ids + '-unavailable'\">\n <h3 class=\"srh-title\" [id]=\"ids + '-unavailable'\">{{ labels.t('stripeReaderShop.unavailable.title') }}</h3>\n <p class=\"srh-text\" data-testid=\"shop-unavailable-reason\">{{ unavailableText() }}</p>\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.unavailable.models') }}</p>\n <ul class=\"srh-models\" data-testid=\"shop-models\">\n @for (model of models; track model.deviceType) {\n <li>{{ model.model }}: {{ labels.t(model.key) }}</li>\n }\n </ul>\n <p class=\"srh-text\" data-testid=\"shop-how\">{{ labels.t('stripeReaderShop.unavailable.how') }}</p>\n <div class=\"srh-actions\">\n @if (helpHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" data-testid=\"shop-help\">{{ labels.t('stripeReaderShop.help.link') }}<span class=\"srh-sr\">{{ labels.t('stripeStripeConnect.opensInNewTabSr') }}</span></a>\n }\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </section>\n }\n @case ('placed') {\n <ui-alert variant=\"success\" [title]=\"labels.t('stripeReaderShop.placed.title')\" data-testid=\"shop-placed\">\n <p class=\"srh-text\" data-testid=\"shop-placed-text\">{{ labels.t('stripeReaderShop.placed.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </ui-alert>\n }\n }\n @if (readyConnectVisible()) {\n <div class=\"srh-ready-actions\" data-testid=\"reader-shop-ready-actions\">\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"reader-shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n </div>\n }\n <div #embed class=\"srh-embed\" data-testid=\"shop-embed\" [hidden]=\"state() !== 'ready'\"></div>\n",
|
|
11622
11660
|
isInline: true,
|
|
11623
|
-
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"],
|
|
11661
|
+
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-ready-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"],
|
|
11624
11662
|
dependencies: [
|
|
11625
11663
|
{
|
|
11626
11664
|
kind: "component",
|
|
@@ -11716,7 +11754,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11716
11754
|
SkeletonComponent
|
|
11717
11755
|
],
|
|
11718
11756
|
template: EMBED_TEMPLATE,
|
|
11719
|
-
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"]
|
|
11757
|
+
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-ready-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"]
|
|
11720
11758
|
}]
|
|
11721
11759
|
}],
|
|
11722
11760
|
propDecorators: { mode: [{
|
|
@@ -11751,9 +11789,9 @@ var StripeReaderOrdersComponent = class StripeReaderOrdersComponent extends Stri
|
|
|
11751
11789
|
selector: "ui-stripe-reader-orders",
|
|
11752
11790
|
usesInheritance: true,
|
|
11753
11791
|
ngImport: i0,
|
|
11754
|
-
template: "\n <ui-live-region data-testid=\"shop-live\" [message]=\"announcement()\" />\n @switch (state()) {\n @case ('loading') {\n <div class=\"srh-loading\" data-testid=\"shop-loading\" [attr.aria-busy]=\"'true'\">\n <ui-skeleton [height]=\"240\" [ariaLabel]=\"loadingText()\" />\n </div>\n }\n @case ('offline') {\n <ui-alert variant=\"warning\" [title]=\"labels.t('stripeReaderShop.offline.title')\" data-testid=\"shop-offline\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.offline.text') }}</p>\n </ui-alert>\n }\n @case ('error') {\n <ui-alert variant=\"danger\" [title]=\"labels.t('stripeReaderShop.error.title')\" data-testid=\"shop-error\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.error.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-retry\" (click)=\"retry()\">{{ labels.t('common.tryAgain') }}</ui-button>\n </div>\n </ui-alert>\n }\n @case ('unavailable') {\n <section class=\"srh-card\" data-testid=\"shop-unavailable\" [attr.data-reason]=\"unavailableReason()\" role=\"group\" [attr.aria-labelledby]=\"ids + '-unavailable'\">\n <h3 class=\"srh-title\" [id]=\"ids + '-unavailable'\">{{ labels.t('stripeReaderShop.unavailable.title') }}</h3>\n <p class=\"srh-text\" data-testid=\"shop-unavailable-reason\">{{ unavailableText() }}</p>\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.unavailable.models') }}</p>\n <ul class=\"srh-models\" data-testid=\"shop-models\">\n @for (model of models; track model.deviceType) {\n <li>{{ model.model }}: {{ labels.t(model.key) }}</li>\n }\n </ul>\n <p class=\"srh-text\" data-testid=\"shop-how\">{{ labels.t('stripeReaderShop.unavailable.how') }}</p>\n <div class=\"srh-actions\">\n @if (helpHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" data-testid=\"shop-help\">{{ labels.t('stripeReaderShop.help.link') }}<span class=\"srh-sr\">{{ labels.t('stripeStripeConnect.opensInNewTabSr') }}</span></a>\n }\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </section>\n }\n @case ('placed') {\n <ui-alert variant=\"success\" [title]=\"labels.t('stripeReaderShop.placed.title')\" data-testid=\"shop-placed\">\n <p class=\"srh-text\" data-testid=\"shop-placed-text\">{{ labels.t('stripeReaderShop.placed.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </ui-alert>\n }\n }\n <div #embed class=\"srh-embed\" data-testid=\"shop-embed\" [hidden]=\"state() !== 'ready'\"></div>\n",
|
|
11792
|
+
template: "\n <ui-live-region data-testid=\"shop-live\" [message]=\"announcement()\" />\n @switch (state()) {\n @case ('loading') {\n <div class=\"srh-loading\" data-testid=\"shop-loading\" [attr.aria-busy]=\"'true'\">\n <ui-skeleton [height]=\"240\" [ariaLabel]=\"loadingText()\" />\n </div>\n }\n @case ('offline') {\n <ui-alert variant=\"warning\" [title]=\"labels.t('stripeReaderShop.offline.title')\" data-testid=\"shop-offline\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.offline.text') }}</p>\n </ui-alert>\n }\n @case ('error') {\n <ui-alert variant=\"danger\" [title]=\"labels.t('stripeReaderShop.error.title')\" data-testid=\"shop-error\">\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.error.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-retry\" (click)=\"retry()\">{{ labels.t('common.tryAgain') }}</ui-button>\n </div>\n </ui-alert>\n }\n @case ('unavailable') {\n <section class=\"srh-card\" data-testid=\"shop-unavailable\" [attr.data-reason]=\"unavailableReason()\" role=\"group\" [attr.aria-labelledby]=\"ids + '-unavailable'\">\n <h3 class=\"srh-title\" [id]=\"ids + '-unavailable'\">{{ labels.t('stripeReaderShop.unavailable.title') }}</h3>\n <p class=\"srh-text\" data-testid=\"shop-unavailable-reason\">{{ unavailableText() }}</p>\n <p class=\"srh-text\">{{ labels.t('stripeReaderShop.unavailable.models') }}</p>\n <ul class=\"srh-models\" data-testid=\"shop-models\">\n @for (model of models; track model.deviceType) {\n <li>{{ model.model }}: {{ labels.t(model.key) }}</li>\n }\n </ul>\n <p class=\"srh-text\" data-testid=\"shop-how\">{{ labels.t('stripeReaderShop.unavailable.how') }}</p>\n <div class=\"srh-actions\">\n @if (helpHref(); as href) {\n <a [href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\" data-testid=\"shop-help\">{{ labels.t('stripeReaderShop.help.link') }}<span class=\"srh-sr\">{{ labels.t('stripeStripeConnect.opensInNewTabSr') }}</span></a>\n }\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </section>\n }\n @case ('placed') {\n <ui-alert variant=\"success\" [title]=\"labels.t('stripeReaderShop.placed.title')\" data-testid=\"shop-placed\">\n <p class=\"srh-text\" data-testid=\"shop-placed-text\">{{ labels.t('stripeReaderShop.placed.text') }}</p>\n <div class=\"srh-actions\">\n <ui-button variant=\"primary\" size=\"sm\" data-testid=\"shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"shop-close\" (click)=\"closed.emit()\">{{ labels.t('common.close') }}</ui-button>\n </div>\n </ui-alert>\n }\n }\n @if (readyConnectVisible()) {\n <div class=\"srh-ready-actions\" data-testid=\"reader-shop-ready-actions\">\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"reader-shop-connect\" (click)=\"connectReader.emit()\">{{ labels.t('stripeReader.status.connect') }}</ui-button>\n </div>\n }\n <div #embed class=\"srh-embed\" data-testid=\"shop-embed\" [hidden]=\"state() !== 'ready'\"></div>\n",
|
|
11755
11793
|
isInline: true,
|
|
11756
|
-
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"],
|
|
11794
|
+
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-ready-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"],
|
|
11757
11795
|
dependencies: [
|
|
11758
11796
|
{
|
|
11759
11797
|
kind: "component",
|
|
@@ -11849,7 +11887,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11849
11887
|
SkeletonComponent
|
|
11850
11888
|
],
|
|
11851
11889
|
template: EMBED_TEMPLATE,
|
|
11852
|
-
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"]
|
|
11890
|
+
styles: [":is(ui-stripe-reader-shop,ui-stripe-reader-orders){display:block;min-width:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ui-psp-border, #cbd5e1);border-radius:12px;background:var(--ui-psp-sunken, #f8fafc)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-title{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-text{margin:0 0 8px;font-size:.9375rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card .srh-text{margin:0}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-models{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:var(--ui-psp-text, #1e293b)}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-ready-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed{min-height:240px}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-embed[hidden]{display:none}:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(forced-colors:active){:is(ui-stripe-reader-shop,ui-stripe-reader-orders) .srh-card{border-color:CanvasText}}\n"]
|
|
11853
11891
|
}]
|
|
11854
11892
|
}]
|
|
11855
11893
|
});
|
|
@@ -11865,6 +11903,8 @@ var StripeReaderOrderPanelComponent = class StripeReaderOrderPanelComponent {
|
|
|
11865
11903
|
this.appearance = input(null, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
11866
11904
|
this.offlineOverride = input(false, ...ngDevMode ? [{ debugName: "offlineOverride" }] : /* istanbul ignore next */ []);
|
|
11867
11905
|
this.requestTimeoutMs = input(2e4, ...ngDevMode ? [{ debugName: "requestTimeoutMs" }] : /* istanbul ignore next */ []);
|
|
11906
|
+
this.showConnectLink = input(true, ...ngDevMode ? [{ debugName: "showConnectLink" }] : /* istanbul ignore next */ []);
|
|
11907
|
+
this.readOnly = input(false, ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
|
|
11868
11908
|
this.closed = output();
|
|
11869
11909
|
this.checkoutFinished = output();
|
|
11870
11910
|
this.connectReader = output();
|
|
@@ -11950,6 +11990,20 @@ var StripeReaderOrderPanelComponent = class StripeReaderOrderPanelComponent {
|
|
|
11950
11990
|
isSignal: true,
|
|
11951
11991
|
isRequired: false,
|
|
11952
11992
|
transformFunction: null
|
|
11993
|
+
},
|
|
11994
|
+
showConnectLink: {
|
|
11995
|
+
classPropertyName: "showConnectLink",
|
|
11996
|
+
publicName: "showConnectLink",
|
|
11997
|
+
isSignal: true,
|
|
11998
|
+
isRequired: false,
|
|
11999
|
+
transformFunction: null
|
|
12000
|
+
},
|
|
12001
|
+
readOnly: {
|
|
12002
|
+
classPropertyName: "readOnly",
|
|
12003
|
+
publicName: "readOnly",
|
|
12004
|
+
isSignal: true,
|
|
12005
|
+
isRequired: false,
|
|
12006
|
+
transformFunction: null
|
|
11953
12007
|
}
|
|
11954
12008
|
},
|
|
11955
12009
|
outputs: {
|
|
@@ -11963,6 +12017,7 @@ var StripeReaderOrderPanelComponent = class StripeReaderOrderPanelComponent {
|
|
|
11963
12017
|
@if (open()) {
|
|
11964
12018
|
<ui-stripe-reader-shop [mode]="mode()" [publishableKey]="publishableKey()" [getAccountSession]="getAccountSession()" [enabled]="enabled()" [orderHelpUrl]="orderHelpUrl()"
|
|
11965
12019
|
[appearance]="appearance()" [offlineOverride]="offlineOverride()" [requestTimeoutMs]="requestTimeoutMs()"
|
|
12020
|
+
[showConnectLink]="showConnectLink()" [readOnly]="readOnly()"
|
|
11966
12021
|
(checkoutFinished)="checkoutFinished.emit()" (connectReader)="connectReader.emit()" (closed)="closed.emit()" />
|
|
11967
12022
|
}
|
|
11968
12023
|
</ui-side-panel>
|
|
@@ -12017,6 +12072,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12017
12072
|
@if (open()) {
|
|
12018
12073
|
<ui-stripe-reader-shop [mode]="mode()" [publishableKey]="publishableKey()" [getAccountSession]="getAccountSession()" [enabled]="enabled()" [orderHelpUrl]="orderHelpUrl()"
|
|
12019
12074
|
[appearance]="appearance()" [offlineOverride]="offlineOverride()" [requestTimeoutMs]="requestTimeoutMs()"
|
|
12075
|
+
[showConnectLink]="showConnectLink()" [readOnly]="readOnly()"
|
|
12020
12076
|
(checkoutFinished)="checkoutFinished.emit()" (connectReader)="connectReader.emit()" (closed)="closed.emit()" />
|
|
12021
12077
|
}
|
|
12022
12078
|
</ui-side-panel>
|
|
@@ -12096,6 +12152,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12096
12152
|
required: false
|
|
12097
12153
|
}]
|
|
12098
12154
|
}],
|
|
12155
|
+
showConnectLink: [{
|
|
12156
|
+
type: i0.Input,
|
|
12157
|
+
args: [{
|
|
12158
|
+
isSignal: true,
|
|
12159
|
+
alias: "showConnectLink",
|
|
12160
|
+
required: false
|
|
12161
|
+
}]
|
|
12162
|
+
}],
|
|
12163
|
+
readOnly: [{
|
|
12164
|
+
type: i0.Input,
|
|
12165
|
+
args: [{
|
|
12166
|
+
isSignal: true,
|
|
12167
|
+
alias: "readOnly",
|
|
12168
|
+
required: false
|
|
12169
|
+
}]
|
|
12170
|
+
}],
|
|
12099
12171
|
closed: [{
|
|
12100
12172
|
type: i0.Output,
|
|
12101
12173
|
args: ["closed"]
|