@forgeroute/ui 0.5.39 → 0.5.41
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-copy-field.mjs +40 -8
- package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Bw5Bobq_.mjs → forgeroute-ui-core-ui-labels.es-Co-rBvSY.mjs} +23 -25
- package/fesm2022/forgeroute-ui-core-ui-labels.es-Co-rBvSY.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-core.mjs +23 -25
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-editor.mjs +175 -107
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs +6 -6
- package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-copy-field.d.ts +7 -0
- package/types/forgeroute-ui-core.d.ts +22 -24
- package/types/forgeroute-ui-editor.d.ts +11 -1
- package/types/forgeroute-ui-quickbooks.d.ts +1 -1
- package/types/forgeroute-ui-reminder-alerts.d.ts +4 -0
- package/types/forgeroute-ui-square.d.ts +5 -5
- package/types/forgeroute-ui-stripe.d.ts +4 -4
- package/fesm2022/forgeroute-ui-core-ui-labels.es-Bw5Bobq_.mjs.map +0 -1
|
@@ -75,9 +75,9 @@ var ReminderAlertsComponent = class ReminderAlertsComponent {
|
|
|
75
75
|
<p class="ra-line">{{ line }}</p>
|
|
76
76
|
}
|
|
77
77
|
@if (item.actions?.length) {
|
|
78
|
-
<div class="ra-actions">
|
|
78
|
+
<div class="ra-actions" [class.ra-actions--between]="item.actionsAlign === 'between'">
|
|
79
79
|
@for (a of item.actions; track a.id) {
|
|
80
|
-
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })"
|
|
80
|
+
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })">@if (a.icon) { <ui-icon [name]="a.icon" [size]="14" [interactive]="false" /> }{{ a.label }}</ui-button>
|
|
81
81
|
}
|
|
82
82
|
</div>
|
|
83
83
|
}
|
|
@@ -88,7 +88,7 @@ var ReminderAlertsComponent = class ReminderAlertsComponent {
|
|
|
88
88
|
}
|
|
89
89
|
`,
|
|
90
90
|
isInline: true,
|
|
91
|
-
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"],
|
|
91
|
+
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ra-actions--between{justify-content:space-between}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"],
|
|
92
92
|
dependencies: [
|
|
93
93
|
{
|
|
94
94
|
kind: "component",
|
|
@@ -202,9 +202,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
202
202
|
<p class="ra-line">{{ line }}</p>
|
|
203
203
|
}
|
|
204
204
|
@if (item.actions?.length) {
|
|
205
|
-
<div class="ra-actions">
|
|
205
|
+
<div class="ra-actions" [class.ra-actions--between]="item.actionsAlign === 'between'">
|
|
206
206
|
@for (a of item.actions; track a.id) {
|
|
207
|
-
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })"
|
|
207
|
+
<ui-button [variant]="a.variant || 'secondary'" size="xs" [attr.data-testid]="'alert-' + a.id" (click)="action.emit({ item, actionId: a.id })">@if (a.icon) { <ui-icon [name]="a.icon" [size]="14" [interactive]="false" /> }{{ a.label }}</ui-button>
|
|
208
208
|
}
|
|
209
209
|
</div>
|
|
210
210
|
}
|
|
@@ -214,7 +214,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
214
214
|
</div>
|
|
215
215
|
}
|
|
216
216
|
`,
|
|
217
|
-
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"]
|
|
217
|
+
styles: [":host{display:contents}.ra-stack{position:fixed;top:16px;right:16px;z-index:9990;display:flex;flex-direction:column;gap:8px;width:24rem;max-width:calc(100vw - 32px);pointer-events:none}.ra-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:ra-in .3s ease-out}.ra-body{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;padding-right:28px}.ra-hide{position:absolute;top:-4px;right:-4px}.ra-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.ra-title{margin:0;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.ra-line{margin:0;font-size:.75rem;overflow-wrap:anywhere}.ra-badge{align-self:flex-start;max-width:100%;overflow:hidden}.ra-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ra-actions--between{justify-content:space-between}@keyframes ra-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.ra-item{animation:none}}\n"]
|
|
218
218
|
}]
|
|
219
219
|
}],
|
|
220
220
|
propDecorators: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgeroute-ui-reminder-alerts.mjs","names":[],"sources":["../../../projects/forgeroute-ui/reminder-alerts/src/lib/reminder-alerts/reminder-alerts.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output, computed, inject } from '@angular/core';\nimport { AlertComponent, AlertVariant } from '@forgeroute/ui/alert';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { IconComponent } from '@forgeroute/ui/icon';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport type ReminderAlertTone = 'danger' | 'warning' | 'info' | 'neutral';\n\nexport interface ReminderAlertAction {\n /** Reported by `(action)`; also part of the button's test id (`alert-<id>`). */\n id: string;\n label: string;\n variant?: 'primary' | 'secondary' | 'ghost';\n}\n\n/** One in-app alert: a due reminder, an event starting soon, anything the user should notice now. The HOST decides what is due and what the buttons do. */\nexport interface ReminderAlertItem {\n id: string;\n tone: ReminderAlertTone;\n /** Small uppercase line above the title, e.g. \"Overdue Reminder\". */\n label: string;\n title: string;\n /** Plain lines under the title (case name, description, due date…). */\n lines?: string[];\n /** A small purple pill under the title, e.g. the organization that created the item. */\n badge?: { label: string; ariaLabel?: string; testId?: string };\n actions?: ReminderAlertAction[];\n /** Accessible name of the hide (X) button; default \"Hide alert\". */\n hideLabel?: string;\n /** Test id of the hide button; default `alert-hide`. */\n hideTestId?: string;\n}\n\n/**\n * The stack of in-app alerts in the top-right corner (above the page, newest app state wins: the host passes the list). Each alert is a\n * library `ui-alert` with a coloured tone, its label / title / lines, an optional badge, action buttons and a hide (X) button:\n *\n * <ui-reminder-alerts [items]=\"alerts()\" (action)=\"onAction($event)\" (hidden)=\"hide($event)\" />\n *\n * `(action)` gives `{ item, actionId }`; `(hidden)` gives the item. The component keeps no state: the host removes an item from `items`\n * to make it go away (hiding, completing, snoozing are the host's rules). Nothing is drawn for an empty list.\n */\n@Component({\n selector: 'ui-reminder-alerts',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AlertComponent, BadgeComponent, ButtonComponent, IconComponent],\n template: `\n @if (items().length) {\n <div class=\"ra-stack\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" aria-live=\"polite\">\n @for (item of items(); track item.id) {\n <ui-alert class=\"ra-item\" [variant]=\"variant(item)\" [attr.data-testid]=\"'reminder-alert-' + item.id\">\n <div class=\"ra-body\">\n <ui-button class=\"ra-hide\" variant=\"icon\" size=\"xs\" [ariaLabel]=\"item.hideLabel || labels.t('reminderAlerts.hideAlert')\" [attr.data-testid]=\"item.hideTestId || 'alert-hide'\" (click)=\"hidden.emit(item)\">\n <ui-icon name=\"close\" [size]=\"14\" [interactive]=\"false\" />\n </ui-button>\n <span class=\"ra-label\">{{ item.label }}</span>\n <p class=\"ra-title\">{{ item.title }}</p>\n @if (item.badge; as b) {\n <ui-badge class=\"ra-badge\" role=\"img\" variant=\"purple\" [label]=\"b.label\" [attr.aria-label]=\"b.ariaLabel || b.label\" [attr.title]=\"b.ariaLabel || b.label\" [attr.data-testid]=\"b.testId || 'alert-badge'\" />\n }\n @for (line of item.lines ?? []; track $index) {\n <p class=\"ra-line\">{{ line }}</p>\n }\n @if (item.actions?.length) {\n <div class=\"ra-actions\">\n @for (a of item.actions; track a.id) {\n <ui-button [variant]=\"a.variant || 'secondary'\" size=\"xs\" [attr.data-testid]=\"'alert-' + a.id\" (click)=\"action.emit({ item, actionId: a.id })\"
|
|
1
|
+
{"version":3,"file":"forgeroute-ui-reminder-alerts.mjs","names":[],"sources":["../../../projects/forgeroute-ui/reminder-alerts/src/lib/reminder-alerts/reminder-alerts.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output, computed, inject } from '@angular/core';\nimport { AlertComponent, AlertVariant } from '@forgeroute/ui/alert';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { IconComponent } from '@forgeroute/ui/icon';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport type ReminderAlertTone = 'danger' | 'warning' | 'info' | 'neutral';\n\nexport interface ReminderAlertAction {\n /** Reported by `(action)`; also part of the button's test id (`alert-<id>`). */\n id: string;\n label: string;\n variant?: 'primary' | 'secondary' | 'ghost';\n /** A `<ui-icon>` key (e.g. `user`, `close`) drawn before the label. Nothing is drawn when omitted or unknown. */\n icon?: string;\n}\n\n/** One in-app alert: a due reminder, an event starting soon, anything the user should notice now. The HOST decides what is due and what the buttons do. */\nexport interface ReminderAlertItem {\n id: string;\n tone: ReminderAlertTone;\n /** Small uppercase line above the title, e.g. \"Overdue Reminder\". */\n label: string;\n title: string;\n /** Plain lines under the title (case name, description, due date…). */\n lines?: string[];\n /** A small purple pill under the title, e.g. the organization that created the item. */\n badge?: { label: string; ariaLabel?: string; testId?: string };\n actions?: ReminderAlertAction[];\n /** `'between'` puts the first button at the left edge and the last at the right edge of the alert (a dismiss / confirm pair); default `'start'` keeps them together on the left. */\n actionsAlign?: 'start' | 'between';\n /** Accessible name of the hide (X) button; default \"Hide alert\". */\n hideLabel?: string;\n /** Test id of the hide button; default `alert-hide`. */\n hideTestId?: string;\n}\n\n/**\n * The stack of in-app alerts in the top-right corner (above the page, newest app state wins: the host passes the list). Each alert is a\n * library `ui-alert` with a coloured tone, its label / title / lines, an optional badge, action buttons and a hide (X) button:\n *\n * <ui-reminder-alerts [items]=\"alerts()\" (action)=\"onAction($event)\" (hidden)=\"hide($event)\" />\n *\n * `(action)` gives `{ item, actionId }`; `(hidden)` gives the item. The component keeps no state: the host removes an item from `items`\n * to make it go away (hiding, completing, snoozing are the host's rules). Nothing is drawn for an empty list.\n */\n@Component({\n selector: 'ui-reminder-alerts',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AlertComponent, BadgeComponent, ButtonComponent, IconComponent],\n template: `\n @if (items().length) {\n <div class=\"ra-stack\" role=\"region\" [attr.aria-label]=\"ariaLabel()\" aria-live=\"polite\">\n @for (item of items(); track item.id) {\n <ui-alert class=\"ra-item\" [variant]=\"variant(item)\" [attr.data-testid]=\"'reminder-alert-' + item.id\">\n <div class=\"ra-body\">\n <ui-button class=\"ra-hide\" variant=\"icon\" size=\"xs\" [ariaLabel]=\"item.hideLabel || labels.t('reminderAlerts.hideAlert')\" [attr.data-testid]=\"item.hideTestId || 'alert-hide'\" (click)=\"hidden.emit(item)\">\n <ui-icon name=\"close\" [size]=\"14\" [interactive]=\"false\" />\n </ui-button>\n <span class=\"ra-label\">{{ item.label }}</span>\n <p class=\"ra-title\">{{ item.title }}</p>\n @if (item.badge; as b) {\n <ui-badge class=\"ra-badge\" role=\"img\" variant=\"purple\" [label]=\"b.label\" [attr.aria-label]=\"b.ariaLabel || b.label\" [attr.title]=\"b.ariaLabel || b.label\" [attr.data-testid]=\"b.testId || 'alert-badge'\" />\n }\n @for (line of item.lines ?? []; track $index) {\n <p class=\"ra-line\">{{ line }}</p>\n }\n @if (item.actions?.length) {\n <div class=\"ra-actions\" [class.ra-actions--between]=\"item.actionsAlign === 'between'\">\n @for (a of item.actions; track a.id) {\n <ui-button [variant]=\"a.variant || 'secondary'\" size=\"xs\" [attr.data-testid]=\"'alert-' + a.id\" (click)=\"action.emit({ item, actionId: a.id })\">@if (a.icon) { <ui-icon [name]=\"a.icon\" [size]=\"14\" [interactive]=\"false\" /> }{{ a.label }}</ui-button>\n }\n </div>\n }\n </div>\n </ui-alert>\n }\n </div>\n }\n `,\n styles: [`\n :host { display: contents; }\n .ra-stack { position: fixed; top: 16px; right: 16px; z-index: 9990; display: flex; flex-direction: column; gap: 8px; width: 24rem; max-width: calc(100vw - 32px); pointer-events: none; }\n .ra-item { pointer-events: auto; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18); border-radius: 8px; animation: ra-in 300ms ease-out; }\n .ra-body { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; padding-right: 28px; }\n .ra-hide { position: absolute; top: -4px; right: -4px; }\n .ra-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }\n .ra-title { margin: 0; font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }\n .ra-line { margin: 0; font-size: 0.75rem; overflow-wrap: anywhere; }\n .ra-badge { align-self: flex-start; max-width: 100%; overflow: hidden; }\n .ra-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }\n .ra-actions--between { justify-content: space-between; }\n @keyframes ra-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }\n @media (prefers-reduced-motion: reduce) { .ra-item { animation: none; } }\n `],\n})\nexport class ReminderAlertsComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly items = input<ReminderAlertItem[]>([]);\n /** Accessible name of the region. */\n readonly ariaLabelInput = input<string | null>(null, { alias: 'ariaLabel' });\n readonly ariaLabel = computed(() => this.ariaLabelInput() ?? this.labels.t('reminderAlerts.ariaLabel'));\n /** An action button was clicked. */\n readonly action = output<{ item: ReminderAlertItem; actionId: string }>();\n /** The hide (X) button was clicked. */\n readonly hidden = output<ReminderAlertItem>();\n\n protected variant(item: ReminderAlertItem): AlertVariant {\n return item.tone;\n }\n}\n"],"mappings":";;;;;;AAkGA,IAAa,0BAAb,MAAa,wBAAuB;CAnDpC,cAAA;EAoDqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAQ,MAA2B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEtC,KAAA,iBAAiB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;GAAI,OAAO;EAAW,CAAA;EAChE,KAAA,YAAY,eAAe,KAAK,eAAc,KAAM,KAAK,OAAO,EAAE,0BAA0B,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAE9F,KAAA,SAAS,OAAM;EAEf,KAAA,SAAS,OAAM;CAKzB;CAHW,QAAQ,MAAuB;EACvC,OAAO,KAAK;CACd;CAbW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAuB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAvB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAuB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,gBAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,SAAA;IAAA,QAAA;IAAA,QAAA;GAAA;GAAA,UAAA;GAAA,UA9CxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BT,UAAA;GAAA,QAAA,CAAA,o/BAAA;GAAA,cAAA;IAAA;KAAA,MAAA;KAAA,MA9BS;KAAc,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,WAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAc,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;KAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAe,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAa,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,WAAA;IAAA;GAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AA+C7D,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAuB,YAAA,CAAA;EAnDnC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAoB,YAClB;GAAI,iBACC,wBAAwB;GAAM,SACtC;IAAC;IAAgB;IAAgB;IAAiB;GAAa;GAAC,UAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BT,QAAA,CAAA,o/BAAA;EAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -31,6 +31,8 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
31
31
|
readonly failedMessageInput: import("@angular/core").InputSignal<string | null>;
|
|
32
32
|
readonly failedMessage: import("@angular/core").Signal<string>;
|
|
33
33
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
34
|
+
/** Show the copy icon instead of the "Copy" text (library source 2026-11-26, not yet published): a square icon button named and titled by the Copy / Copied text. Default `false` = unchanged. */
|
|
35
|
+
readonly iconOnly: import("@angular/core").InputSignal<boolean>;
|
|
34
36
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
35
37
|
/** Id(s) of host elements that also describe the field (space-separated). */
|
|
36
38
|
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
@@ -95,6 +97,11 @@ export declare class CopyFieldComponent implements OnDestroy {
|
|
|
95
97
|
"required": false;
|
|
96
98
|
"isSignal": true;
|
|
97
99
|
};
|
|
100
|
+
"iconOnly": {
|
|
101
|
+
"alias": "iconOnly";
|
|
102
|
+
"required": false;
|
|
103
|
+
"isSignal": true;
|
|
104
|
+
};
|
|
98
105
|
"disabled": {
|
|
99
106
|
"alias": "disabled";
|
|
100
107
|
"required": false;
|
|
@@ -333,7 +333,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
333
333
|
readonly 'discountSelector.discounts': "Discounts";
|
|
334
334
|
readonly 'emailTemplateEditor.activeFrom': "Active From";
|
|
335
335
|
readonly 'emailTemplateEditor.activeTo': "Active To";
|
|
336
|
-
readonly 'emailTemplateEditor.addBlock': "Add Block";
|
|
337
336
|
readonly 'emailTemplateEditor.alignCenter': "Align center";
|
|
338
337
|
readonly 'emailTemplateEditor.alignLeft': "Align left";
|
|
339
338
|
readonly 'emailTemplateEditor.alignRight': "Align right";
|
|
@@ -355,10 +354,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
355
354
|
readonly 'emailTemplateEditor.clickAVideoToAdd': "Click a video to add it as a new block in your email.";
|
|
356
355
|
readonly 'emailTemplateEditor.clickToInsertOrDrag': "Click to insert or drag into the editor.";
|
|
357
356
|
readonly 'emailTemplateEditor.contentBlocks': "Content Blocks";
|
|
358
|
-
readonly 'emailTemplateEditor.deleteBlock': "Delete block";
|
|
359
|
-
readonly 'emailTemplateEditor.dragToReorder': "Drag to reorder";
|
|
360
|
-
readonly 'emailTemplateEditor.dropHere': "Drop here";
|
|
361
|
-
readonly 'emailTemplateEditor.duplicateBlock': "Duplicate block";
|
|
362
357
|
readonly 'emailTemplateEditor.eGClickToWatch': "e.g. Click to watch my video for you";
|
|
363
358
|
readonly 'emailTemplateEditor.editorView': "Editor view";
|
|
364
359
|
readonly 'emailTemplateEditor.emailDesign': "Email design";
|
|
@@ -387,8 +382,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
387
382
|
readonly 'emailTemplateEditor.linkTextOptional': "Link text (optional)";
|
|
388
383
|
readonly 'emailTemplateEditor.loadingVideos': "Loading videos";
|
|
389
384
|
readonly 'emailTemplateEditor.mobileEmailPreview': "Mobile email preview";
|
|
390
|
-
readonly 'emailTemplateEditor.moveBlockDown': "Move block down";
|
|
391
|
-
readonly 'emailTemplateEditor.moveBlockUp': "Move block up";
|
|
392
385
|
readonly 'emailTemplateEditor.noAssignmentsFound': "No assignments found";
|
|
393
386
|
readonly 'emailTemplateEditor.noAssignmentsMatchYourSearch': "No assignments match your search.";
|
|
394
387
|
readonly 'emailTemplateEditor.noBlocksFound': "No blocks found";
|
|
@@ -1036,10 +1029,8 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1036
1029
|
readonly 'emailTemplateEditor.block.table-2col': "Two-Column Table";
|
|
1037
1030
|
readonly 'emailTemplateEditor.block.table-3col': "Three-Column Table";
|
|
1038
1031
|
readonly 'emailTemplateEditor.block.text-block': "Text Block";
|
|
1039
|
-
readonly 'emailTemplateEditor.blockFallback': "Block";
|
|
1040
1032
|
readonly 'emailTemplateEditor.bodyRequired': "Your email is empty. Write a message or add an image.";
|
|
1041
1033
|
readonly 'emailTemplateEditor.bodyTooLong': "Message is too long (max {{ max }} characters; it is {{ actual }}).";
|
|
1042
|
-
readonly 'emailTemplateEditor.clickToEdit': "Click to edit...";
|
|
1043
1034
|
readonly 'emailTemplateEditor.clickToWatchVideo': "Click to watch video";
|
|
1044
1035
|
readonly 'emailTemplateEditor.cta.contact': "Contact Me";
|
|
1045
1036
|
readonly 'emailTemplateEditor.cta.custom': "Custom";
|
|
@@ -1506,7 +1497,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1506
1497
|
readonly 'dataTable.dragHandle': "drag handle";
|
|
1507
1498
|
readonly 'detailCard.toggleSection': "Toggle section";
|
|
1508
1499
|
readonly 'discountSelector.offApplies': "{{ value }} off {{ applies }}";
|
|
1509
|
-
readonly 'emailTemplateEditor.emailBlockN': "Email block {{ n }}";
|
|
1510
1500
|
readonly 'emailTemplateEditor.emailOff': "Email off";
|
|
1511
1501
|
readonly 'emailTemplateEditor.emailOn': "Email on";
|
|
1512
1502
|
readonly 'emailTemplateEditor.insertNamed': "Insert {{ name }}";
|
|
@@ -1702,15 +1692,30 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1702
1692
|
readonly 'usState.WV': "West Virginia";
|
|
1703
1693
|
readonly 'usState.WY': "Wyoming";
|
|
1704
1694
|
readonly 'emailTemplateEditor.sendTest': "Send Test";
|
|
1705
|
-
readonly 'emailTemplateEditor.tipAlignCenter': "Align Center";
|
|
1706
|
-
readonly 'emailTemplateEditor.tipAlignLeft': "Align Left";
|
|
1707
|
-
readonly 'emailTemplateEditor.tipAlignRight': "Align Right";
|
|
1708
|
-
readonly 'emailTemplateEditor.tipBulletedList': "Bulleted List";
|
|
1709
|
-
readonly 'emailTemplateEditor.tipDeleteBlock': "Delete block";
|
|
1710
|
-
readonly 'emailTemplateEditor.tipInsertImage': "Insert Image";
|
|
1711
1695
|
readonly 'emailTemplateEditor.emoji': "Insert emoji";
|
|
1712
1696
|
readonly 'emailTemplateEditor.tipEmoji': "Emoji";
|
|
1713
|
-
readonly 'emailTemplateEditor.
|
|
1697
|
+
readonly 'emailTemplateEditor.colorName.black': "Black";
|
|
1698
|
+
readonly 'emailTemplateEditor.colorName.charcoal': "Charcoal";
|
|
1699
|
+
readonly 'emailTemplateEditor.colorName.darkSlate': "Dark slate";
|
|
1700
|
+
readonly 'emailTemplateEditor.colorName.slate': "Slate";
|
|
1701
|
+
readonly 'emailTemplateEditor.colorName.lightSlate': "Light slate";
|
|
1702
|
+
readonly 'emailTemplateEditor.colorName.silver': "Silver";
|
|
1703
|
+
readonly 'emailTemplateEditor.colorName.lightGrey': "Light grey";
|
|
1704
|
+
readonly 'emailTemplateEditor.colorName.paleGrey': "Pale grey";
|
|
1705
|
+
readonly 'emailTemplateEditor.colorName.offWhite': "Off white";
|
|
1706
|
+
readonly 'emailTemplateEditor.colorName.white': "White";
|
|
1707
|
+
readonly 'emailTemplateEditor.colorName.red': "Red";
|
|
1708
|
+
readonly 'emailTemplateEditor.colorName.orange': "Orange";
|
|
1709
|
+
readonly 'emailTemplateEditor.colorName.amber': "Amber";
|
|
1710
|
+
readonly 'emailTemplateEditor.colorName.yellow': "Yellow";
|
|
1711
|
+
readonly 'emailTemplateEditor.colorName.green': "Green";
|
|
1712
|
+
readonly 'emailTemplateEditor.colorName.teal': "Teal";
|
|
1713
|
+
readonly 'emailTemplateEditor.colorName.skyBlue': "Sky blue";
|
|
1714
|
+
readonly 'emailTemplateEditor.colorName.blue': "Blue";
|
|
1715
|
+
readonly 'emailTemplateEditor.colorName.violet': "Violet";
|
|
1716
|
+
readonly 'emailTemplateEditor.colorName.magenta': "Magenta";
|
|
1717
|
+
readonly 'emailTemplateEditor.colorLight': "Light {{ color }}";
|
|
1718
|
+
readonly 'emailTemplateEditor.colorDark': "Dark {{ color }}";
|
|
1714
1719
|
readonly 'emailTemplateEditor.customColor': "Custom color…";
|
|
1715
1720
|
readonly 'emailTemplateEditor.removeColor': "Remove color";
|
|
1716
1721
|
readonly 'emailTemplateEditor.emojiClose': "Close";
|
|
@@ -1753,17 +1758,10 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
1753
1758
|
readonly 'emailTemplateEditor.tone.mediumDark': "Medium dark";
|
|
1754
1759
|
readonly 'emailTemplateEditor.tone.dark': "Dark";
|
|
1755
1760
|
readonly 'emailTemplateEditor.documentLabel': "Email message";
|
|
1756
|
-
readonly 'emailTemplateEditor.tipInsertLink': "Insert Link";
|
|
1757
|
-
readonly 'emailTemplateEditor.tipMoveDown': "Move down";
|
|
1758
|
-
readonly 'emailTemplateEditor.tipMoveUp': "Move up";
|
|
1759
|
-
readonly 'emailTemplateEditor.tipNumberedList': "Numbered List";
|
|
1760
1761
|
readonly 'emailTemplateEditor.tipTextColor': "Text Color";
|
|
1761
1762
|
readonly 'emailTemplateEditor.tipBold': "Bold";
|
|
1762
|
-
readonly 'emailTemplateEditor.tipDuplicate': "Duplicate";
|
|
1763
1763
|
readonly 'emailTemplateEditor.tipItalic': "Italic";
|
|
1764
|
-
readonly 'emailTemplateEditor.tipRedo': "Redo";
|
|
1765
1764
|
readonly 'emailTemplateEditor.tipUnderline': "Underline";
|
|
1766
|
-
readonly 'emailTemplateEditor.tipUndo': "Undo";
|
|
1767
1765
|
readonly 'emailTemplateEditor.imageAltDefault': "Image";
|
|
1768
1766
|
readonly 'common.file': "File";
|
|
1769
1767
|
readonly 'calendar.eventCount_one': "{{ count }} event";
|
|
@@ -545,6 +545,8 @@ export declare class EmailTemplateEditorComponent {
|
|
|
545
545
|
/** True once the user really edited the message (typing, blocks, formatting, links...). */
|
|
546
546
|
private readonly bodyEdited;
|
|
547
547
|
private savedSnapshot;
|
|
548
|
+
/** What the editor held when it was opened, or when it was last saved: `hasUnsavedWork()` compares with it (a new template counts too). */
|
|
549
|
+
private loadedSnapshot;
|
|
548
550
|
private dragFromPalette;
|
|
549
551
|
readonly currentColor: import("@angular/core").WritableSignal<string>;
|
|
550
552
|
readonly blockSpacing: import("@angular/core").WritableSignal<string>;
|
|
@@ -677,6 +679,11 @@ export declare class EmailTemplateEditorComponent {
|
|
|
677
679
|
constructor();
|
|
678
680
|
/** A create succeeded: the template now has an id (Test Send becomes available) and what is on screen is the saved version. */
|
|
679
681
|
markSaved(id?: string | null): void;
|
|
682
|
+
/**
|
|
683
|
+
* True when the user changed something since the template was opened or last saved (a new template included). The host asks before it leaves the page, so work is never lost by a
|
|
684
|
+
* stray click on Back or on a menu link. A read-only editor has nothing to lose.
|
|
685
|
+
*/
|
|
686
|
+
hasUnsavedWork(): boolean;
|
|
680
687
|
/** The test email was sent: close the dialog. */
|
|
681
688
|
closeTestSend(): void;
|
|
682
689
|
private applyTemplate;
|
|
@@ -763,6 +770,10 @@ export declare class EmailTemplateEditorComponent {
|
|
|
763
770
|
applyTextColor(color: string): void;
|
|
764
771
|
/** The colour panel for the text colour or the highlight (one at a time; any other panel closes). */
|
|
765
772
|
toggleColorPanel(which: 'text' | 'highlight'): void;
|
|
773
|
+
/** Closes a toolbar panel and puts the focus back on the button that opened it (a keyboard user is never left on a control that no longer exists). */
|
|
774
|
+
closePanel(which: 'text' | 'highlight' | 'emoji' | 'special'): void;
|
|
775
|
+
/** The name of a colour swatch for a screen reader (the colour itself, never its hex code). Rows: ten greys, the ten hues, then a light and a dark row of the same hues. */
|
|
776
|
+
colorName(index: number): string;
|
|
766
777
|
/** A ready colour: applied to the selection, then the panel closes. */
|
|
767
778
|
pickColor(which: 'text' | 'highlight', color: string): void;
|
|
768
779
|
/** "Remove": the text goes back to the email's own text colour; the highlight is taken off. */
|
|
@@ -817,7 +828,6 @@ export declare class EmailTemplateEditorComponent {
|
|
|
817
828
|
/** Types the emoji at the caret of the block being edited (nothing is inserted when no block holds the caret). */
|
|
818
829
|
insertEmoji(emoji: string): void;
|
|
819
830
|
insertVariable(variable: EmailTemplateVariable): void;
|
|
820
|
-
private blockHtml;
|
|
821
831
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmailTemplateEditorComponent, never>;
|
|
822
832
|
static ɵcmp: i0.ɵɵComponentDeclaration<EmailTemplateEditorComponent, "ui-email-template-editor", never, {
|
|
823
833
|
"template": {
|
|
@@ -355,7 +355,7 @@ export declare class QboPaymentComponent {
|
|
|
355
355
|
protected readonly postalFormatter: import("@angular/core").Signal<(raw: string) => string>;
|
|
356
356
|
protected readonly postalPlaceholder: import("@angular/core").Signal<"A1A 1A1" | "94086">;
|
|
357
357
|
protected readonly postalInputMode: import("@angular/core").Signal<"text" | "numeric">;
|
|
358
|
-
protected readonly postalMaxLength: import("@angular/core").Signal<
|
|
358
|
+
protected readonly postalMaxLength: import("@angular/core").Signal<7 | 10>;
|
|
359
359
|
protected readonly routingFormatter: (raw: string) => string;
|
|
360
360
|
protected readonly accountFormatter: (raw: string) => string;
|
|
361
361
|
protected readonly tabs: import("@angular/core").Signal<PillTab[]>;
|
|
@@ -7,6 +7,8 @@ export interface ReminderAlertAction {
|
|
|
7
7
|
id: string;
|
|
8
8
|
label: string;
|
|
9
9
|
variant?: 'primary' | 'secondary' | 'ghost';
|
|
10
|
+
/** A `<ui-icon>` key (e.g. `user`, `close`) drawn before the label. Nothing is drawn when omitted or unknown. */
|
|
11
|
+
icon?: string;
|
|
10
12
|
}
|
|
11
13
|
/** One in-app alert: a due reminder, an event starting soon, anything the user should notice now. The HOST decides what is due and what the buttons do. */
|
|
12
14
|
export interface ReminderAlertItem {
|
|
@@ -24,6 +26,8 @@ export interface ReminderAlertItem {
|
|
|
24
26
|
testId?: string;
|
|
25
27
|
};
|
|
26
28
|
actions?: ReminderAlertAction[];
|
|
29
|
+
/** `'between'` puts the first button at the left edge and the last at the right edge of the alert (a dismiss / confirm pair); default `'start'` keeps them together on the left. */
|
|
30
|
+
actionsAlign?: 'start' | 'between';
|
|
27
31
|
/** Accessible name of the hide (X) button; default "Hide alert". */
|
|
28
32
|
hideLabel?: string;
|
|
29
33
|
/** Test id of the hide button; default `alert-hide`. */
|