@forgeroute/ui 0.4.83 → 0.4.85
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-offline.mjs +179 -22
- package/fesm2022/forgeroute-ui-offline.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-DPY2FHcg.mjs → forgeroute-ui-ui-labels.es-CioAOUhm.mjs} +15 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-DPY2FHcg.mjs.map → forgeroute-ui-ui-labels.es-CioAOUhm.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +570 -136
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-offline.d.ts +25 -3
- package/types/forgeroute-ui.d.ts +251 -2
|
@@ -1489,6 +1489,8 @@ const UI_DEFAULT_LABELS = {
|
|
|
1489
1489
|
"paymentSidePanel.sending": "Sending...",
|
|
1490
1490
|
"starRating.rating": "Rating",
|
|
1491
1491
|
"timeline.ariaLabel": "Timeline",
|
|
1492
|
+
"timeline.eventAmount": "Amount",
|
|
1493
|
+
"timeline.eventLocked": "{{ title }} (locked record)",
|
|
1492
1494
|
"common.change": "Change",
|
|
1493
1495
|
"common.delete": "Delete",
|
|
1494
1496
|
"common.hide": "Hide",
|
|
@@ -1522,6 +1524,18 @@ const UI_DEFAULT_LABELS = {
|
|
|
1522
1524
|
"messagingSendMessagePanel.enterValue": "Enter {{ name }}...",
|
|
1523
1525
|
"messagingTemplatePicker.custom": "Custom",
|
|
1524
1526
|
"messagingTemplatePicker.system": "System",
|
|
1527
|
+
"notes.queued.waiting": "Waiting to send",
|
|
1528
|
+
"notes.queued.sending": "Sending…",
|
|
1529
|
+
"notes.queued.deleteWaiting": "Waiting to delete",
|
|
1530
|
+
"notes.queued.deleteSending": "Deleting…",
|
|
1531
|
+
"notes.queued.failed": "Not sent. This change needs your attention.",
|
|
1532
|
+
"notes.queued.conflict": "Not sent. Someone else changed this note.",
|
|
1533
|
+
"notes.queued.addedAnnounce": "Note saved on this device. Waiting to send.",
|
|
1534
|
+
"notes.queued.editedAnnounce": "Note change saved on this device. Waiting to send.",
|
|
1535
|
+
"notes.queued.deletedAnnounce": "Note deletion saved on this device. Waiting to send.",
|
|
1536
|
+
"notes.queued.problemAnnounce": "A note change could not be sent.",
|
|
1537
|
+
"notes.queued.offlineSome": "You're offline, so only the notes saved on this device are shown here.",
|
|
1538
|
+
"notes.queued.offlineNone": "You're offline, so the notes can't be loaded right now. A note you add is saved on this device and sent when you're back online.",
|
|
1525
1539
|
"notes.you": "You",
|
|
1526
1540
|
"passwordRequirements.met": "met",
|
|
1527
1541
|
"passwordRequirements.notMet": "not met",
|
|
@@ -1981,12 +1995,12 @@ const UI_DEFAULT_LABELS = {
|
|
|
1981
1995
|
"validation.requiredNoLabel": "This field is required.",
|
|
1982
1996
|
"common.nSelected": "{{ count }} selected"
|
|
1983
1997
|
};
|
|
1984
|
-
function interpolate(text, params) {
|
|
1998
|
+
function interpolate$1(text, params) {
|
|
1985
1999
|
if (!params) return text;
|
|
1986
2000
|
return text.replace(/\{\{\s*(\w+)\s*\}\}/g, (whole, name) => name in params ? String(params[name]) : whole);
|
|
1987
2001
|
}
|
|
1988
2002
|
function defaultLabel(key, params) {
|
|
1989
|
-
return interpolate(UI_DEFAULT_LABELS[key] ?? key, params);
|
|
2003
|
+
return interpolate$1(UI_DEFAULT_LABELS[key] ?? key, params);
|
|
1990
2004
|
}
|
|
1991
2005
|
let activeLabels = null;
|
|
1992
2006
|
function uiText(key, params) {
|
|
@@ -2044,7 +2058,7 @@ var UiLabelsService = class UiLabelsService {
|
|
|
2044
2058
|
return uiFormatHour(hour, this.locale());
|
|
2045
2059
|
}
|
|
2046
2060
|
t(key, params) {
|
|
2047
|
-
return interpolate(this.overrides()[key] ?? UI_DEFAULT_LABELS[key] ?? key, params);
|
|
2061
|
+
return interpolate$1(this.overrides()[key] ?? UI_DEFAULT_LABELS[key] ?? key, params);
|
|
2048
2062
|
}
|
|
2049
2063
|
static {
|
|
2050
2064
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -34487,7 +34501,127 @@ function getErrorMessage(error, fallbackContext, action) {
|
|
|
34487
34501
|
if (typeof error === "string") return error;
|
|
34488
34502
|
return `${failed} ${uiText("errors.tryAgain")}`;
|
|
34489
34503
|
}
|
|
34504
|
+
var LiveRegionComponent = class LiveRegionComponent {
|
|
34505
|
+
constructor() {
|
|
34506
|
+
this.message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
34507
|
+
this.politeness = input("polite", ...ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []);
|
|
34508
|
+
this.atomic = input(true, ...ngDevMode ? [{ debugName: "atomic" }] : /* istanbul ignore next */ []);
|
|
34509
|
+
this.visible = input(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
34510
|
+
this.role = computed(() => this.politeness() === "assertive" ? "alert" : "status", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
34511
|
+
}
|
|
34512
|
+
static {
|
|
34513
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
34514
|
+
minVersion: "12.0.0",
|
|
34515
|
+
version: "22.2.2",
|
|
34516
|
+
ngImport: i0,
|
|
34517
|
+
type: LiveRegionComponent,
|
|
34518
|
+
deps: [],
|
|
34519
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
34520
|
+
});
|
|
34521
|
+
}
|
|
34522
|
+
static {
|
|
34523
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34524
|
+
minVersion: "17.1.0",
|
|
34525
|
+
version: "22.2.2",
|
|
34526
|
+
type: LiveRegionComponent,
|
|
34527
|
+
isStandalone: true,
|
|
34528
|
+
selector: "ui-live-region",
|
|
34529
|
+
inputs: {
|
|
34530
|
+
message: {
|
|
34531
|
+
classPropertyName: "message",
|
|
34532
|
+
publicName: "message",
|
|
34533
|
+
isSignal: true,
|
|
34534
|
+
isRequired: false,
|
|
34535
|
+
transformFunction: null
|
|
34536
|
+
},
|
|
34537
|
+
politeness: {
|
|
34538
|
+
classPropertyName: "politeness",
|
|
34539
|
+
publicName: "politeness",
|
|
34540
|
+
isSignal: true,
|
|
34541
|
+
isRequired: false,
|
|
34542
|
+
transformFunction: null
|
|
34543
|
+
},
|
|
34544
|
+
atomic: {
|
|
34545
|
+
classPropertyName: "atomic",
|
|
34546
|
+
publicName: "atomic",
|
|
34547
|
+
isSignal: true,
|
|
34548
|
+
isRequired: false,
|
|
34549
|
+
transformFunction: null
|
|
34550
|
+
},
|
|
34551
|
+
visible: {
|
|
34552
|
+
classPropertyName: "visible",
|
|
34553
|
+
publicName: "visible",
|
|
34554
|
+
isSignal: true,
|
|
34555
|
+
isRequired: false,
|
|
34556
|
+
transformFunction: null
|
|
34557
|
+
}
|
|
34558
|
+
},
|
|
34559
|
+
ngImport: i0,
|
|
34560
|
+
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
34561
|
+
isInline: true,
|
|
34562
|
+
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"],
|
|
34563
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
34564
|
+
});
|
|
34565
|
+
}
|
|
34566
|
+
};
|
|
34567
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
34568
|
+
minVersion: "12.0.0",
|
|
34569
|
+
version: "22.2.2",
|
|
34570
|
+
ngImport: i0,
|
|
34571
|
+
type: LiveRegionComponent,
|
|
34572
|
+
decorators: [{
|
|
34573
|
+
type: Component,
|
|
34574
|
+
args: [{
|
|
34575
|
+
selector: "ui-live-region",
|
|
34576
|
+
standalone: true,
|
|
34577
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
34578
|
+
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
34579
|
+
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"]
|
|
34580
|
+
}]
|
|
34581
|
+
}],
|
|
34582
|
+
propDecorators: {
|
|
34583
|
+
message: [{
|
|
34584
|
+
type: i0.Input,
|
|
34585
|
+
args: [{
|
|
34586
|
+
isSignal: true,
|
|
34587
|
+
alias: "message",
|
|
34588
|
+
required: false
|
|
34589
|
+
}]
|
|
34590
|
+
}],
|
|
34591
|
+
politeness: [{
|
|
34592
|
+
type: i0.Input,
|
|
34593
|
+
args: [{
|
|
34594
|
+
isSignal: true,
|
|
34595
|
+
alias: "politeness",
|
|
34596
|
+
required: false
|
|
34597
|
+
}]
|
|
34598
|
+
}],
|
|
34599
|
+
atomic: [{
|
|
34600
|
+
type: i0.Input,
|
|
34601
|
+
args: [{
|
|
34602
|
+
isSignal: true,
|
|
34603
|
+
alias: "atomic",
|
|
34604
|
+
required: false
|
|
34605
|
+
}]
|
|
34606
|
+
}],
|
|
34607
|
+
visible: [{
|
|
34608
|
+
type: i0.Input,
|
|
34609
|
+
args: [{
|
|
34610
|
+
isSignal: true,
|
|
34611
|
+
alias: "visible",
|
|
34612
|
+
required: false
|
|
34613
|
+
}]
|
|
34614
|
+
}]
|
|
34615
|
+
}
|
|
34616
|
+
});
|
|
34617
|
+
const UI_NOTES_QUEUE = new InjectionToken("UI_NOTES_QUEUE");
|
|
34490
34618
|
const NOTES_MAX_LENGTH = 1e4;
|
|
34619
|
+
const STATE_RANK = {
|
|
34620
|
+
waiting: 1,
|
|
34621
|
+
sending: 2,
|
|
34622
|
+
failed: 3,
|
|
34623
|
+
conflict: 4
|
|
34624
|
+
};
|
|
34491
34625
|
const NOTES_PAGE_SIZE = 5;
|
|
34492
34626
|
var NotesComponent = class NotesComponent {
|
|
34493
34627
|
initials(name) {
|
|
@@ -34505,7 +34639,11 @@ var NotesComponent = class NotesComponent {
|
|
|
34505
34639
|
return this.basePath() ? `${this.apiBase}${this.basePath()}` : `${this.apiBase}/notes/${this.resourceType()}/${this.resourceId()}`;
|
|
34506
34640
|
}
|
|
34507
34641
|
noteUrl(id) {
|
|
34508
|
-
|
|
34642
|
+
const e = encodeURIComponent(id);
|
|
34643
|
+
return this.basePath() ? `${this.apiBase}${this.basePath()}/${e}` : `${this.apiBase}/notes/${e}`;
|
|
34644
|
+
}
|
|
34645
|
+
get itemPrefix() {
|
|
34646
|
+
return this.basePath() ? `${this.apiBase}${this.basePath()}/` : `${this.apiBase}/notes/`;
|
|
34509
34647
|
}
|
|
34510
34648
|
get ready() {
|
|
34511
34649
|
return !!this.basePath() || !!this.resourceType() && !!this.resourceId();
|
|
@@ -34541,28 +34679,149 @@ var NotesComponent = class NotesComponent {
|
|
|
34541
34679
|
this.totalElements = signal(0, ...ngDevMode ? [{ debugName: "totalElements" }] : /* istanbul ignore next */ []);
|
|
34542
34680
|
this.editingId = signal(null, ...ngDevMode ? [{ debugName: "editingId" }] : /* istanbul ignore next */ []);
|
|
34543
34681
|
this.deletingId = signal(null, ...ngDevMode ? [{ debugName: "deletingId" }] : /* istanbul ignore next */ []);
|
|
34682
|
+
this.queue = inject(UI_NOTES_QUEUE, { optional: true });
|
|
34683
|
+
this.announcement = signal("", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
34684
|
+
this.settling = signal([], ...ngDevMode ? [{ debugName: "settling" }] : /* istanbul ignore next */ []);
|
|
34685
|
+
this.afters = [];
|
|
34686
|
+
this.loadSeq = 0;
|
|
34687
|
+
this.offlineLoadFailed = signal(false, ...ngDevMode ? [{ debugName: "offlineLoadFailed" }] : /* istanbul ignore next */ []);
|
|
34688
|
+
this.shown = computed(() => {
|
|
34689
|
+
const server = this.notes();
|
|
34690
|
+
const queue = this.queue;
|
|
34691
|
+
if (!queue || !this.ready) return server;
|
|
34692
|
+
const list = this.listUrl;
|
|
34693
|
+
const settling = this.settling().filter((q) => q.list === list).map((q) => ({
|
|
34694
|
+
...q,
|
|
34695
|
+
state: "sending"
|
|
34696
|
+
}));
|
|
34697
|
+
const queued = [...queue.queuedFor(this.listUrl, this.itemPrefix), ...settling];
|
|
34698
|
+
if (queued.length === 0) return server;
|
|
34699
|
+
const added = queued.filter((q) => q.kind === "add" && this.page() === 0).sort((a, b) => b.createdAt - a.createdAt).map((q) => ({
|
|
34700
|
+
id: `queued-${q.rowId}`,
|
|
34701
|
+
body: q.text,
|
|
34702
|
+
createdByName: "",
|
|
34703
|
+
createdAt: new Date(q.createdAt).toISOString(),
|
|
34704
|
+
updatedAt: new Date(q.createdAt).toISOString(),
|
|
34705
|
+
queued: {
|
|
34706
|
+
kind: "add",
|
|
34707
|
+
state: q.state
|
|
34708
|
+
}
|
|
34709
|
+
}));
|
|
34710
|
+
const byNote = /* @__PURE__ */ new Map();
|
|
34711
|
+
for (const q of queued) if (q.kind !== "add") byNote.set(q.noteId, [...byNote.get(q.noteId) ?? [], q]);
|
|
34712
|
+
const existing = server.map((n) => {
|
|
34713
|
+
const changes = byNote.get(n.id);
|
|
34714
|
+
if (!changes) return n;
|
|
34715
|
+
const del = changes.some((c) => c.kind === "delete");
|
|
34716
|
+
const lastEdit = [...changes].reverse().find((c) => c.kind === "edit");
|
|
34717
|
+
const state = changes.reduce((worst, c) => STATE_RANK[c.state] > STATE_RANK[worst] ? c.state : worst, changes[0].state);
|
|
34718
|
+
return {
|
|
34719
|
+
...n,
|
|
34720
|
+
body: del || !lastEdit ? n.body : lastEdit.text,
|
|
34721
|
+
queued: {
|
|
34722
|
+
kind: del ? "delete" : "edit",
|
|
34723
|
+
state
|
|
34724
|
+
}
|
|
34725
|
+
};
|
|
34726
|
+
});
|
|
34727
|
+
return [...added, ...existing];
|
|
34728
|
+
}, ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
|
|
34544
34729
|
this.newBody = "";
|
|
34545
34730
|
this.editBody = "";
|
|
34731
|
+
const queue = this.queue;
|
|
34732
|
+
if (queue) {
|
|
34733
|
+
let known = /* @__PURE__ */ new Map();
|
|
34734
|
+
let knownList = "";
|
|
34735
|
+
effect(() => {
|
|
34736
|
+
if (!this.ready) return;
|
|
34737
|
+
const list = this.listUrl;
|
|
34738
|
+
const now = new Map(queue.queuedFor(list, this.itemPrefix).map((q) => [q.rowId, q]));
|
|
34739
|
+
const before = known;
|
|
34740
|
+
const sameList = list === knownList;
|
|
34741
|
+
known = now;
|
|
34742
|
+
knownList = list;
|
|
34743
|
+
if (!sameList) {
|
|
34744
|
+
untracked(() => {
|
|
34745
|
+
this.settling.set([]);
|
|
34746
|
+
this.afters = [];
|
|
34747
|
+
});
|
|
34748
|
+
return;
|
|
34749
|
+
}
|
|
34750
|
+
const gone = [...before.values()].filter((q) => !now.has(q.rowId) && !queue.wasDiscarded(q.rowId));
|
|
34751
|
+
if (gone.length === 0) return;
|
|
34752
|
+
untracked(() => {
|
|
34753
|
+
this.settling.update((s) => [...s, ...gone.map((g) => ({
|
|
34754
|
+
...g,
|
|
34755
|
+
list
|
|
34756
|
+
}))]);
|
|
34757
|
+
const ids = new Set(gone.map((g) => g.rowId));
|
|
34758
|
+
this.loadPage(this.page(), () => this.settling.update((s) => s.filter((q) => !ids.has(q.rowId))));
|
|
34759
|
+
});
|
|
34760
|
+
});
|
|
34761
|
+
const flagged = /* @__PURE__ */ new Set();
|
|
34762
|
+
effect(() => {
|
|
34763
|
+
const bad = this.ready ? queue.queuedFor(this.listUrl, this.itemPrefix).filter((q) => q.state === "failed" || q.state === "conflict") : [];
|
|
34764
|
+
const keys = new Set(bad.map((q) => `${q.rowId}:${q.state}`));
|
|
34765
|
+
for (const k of [...flagged]) if (!keys.has(k)) flagged.delete(k);
|
|
34766
|
+
const fresh = [...keys].filter((k) => !flagged.has(k));
|
|
34767
|
+
for (const k of keys) flagged.add(k);
|
|
34768
|
+
if (fresh.length > 0) untracked(() => this.announce(this.labels.t("notes.queued.problemAnnounce")));
|
|
34769
|
+
});
|
|
34770
|
+
}
|
|
34546
34771
|
effect(() => {
|
|
34547
34772
|
const id = this.resourceId();
|
|
34548
34773
|
const type = this.resourceType();
|
|
34549
34774
|
if (this.basePath() || id && type) untracked(() => this.loadPage(0));
|
|
34775
|
+
else untracked(() => {
|
|
34776
|
+
this.loadSeq++;
|
|
34777
|
+
this.settling.set([]);
|
|
34778
|
+
this.afters = [];
|
|
34779
|
+
this.loading.set(false);
|
|
34780
|
+
});
|
|
34550
34781
|
});
|
|
34551
34782
|
}
|
|
34552
|
-
|
|
34783
|
+
queuedText(q) {
|
|
34784
|
+
if (q.state === "failed") return this.labels.t("notes.queued.failed");
|
|
34785
|
+
if (q.state === "conflict") return this.labels.t("notes.queued.conflict");
|
|
34786
|
+
if (q.kind === "delete") return this.labels.t(q.state === "sending" ? "notes.queued.deleteSending" : "notes.queued.deleteWaiting");
|
|
34787
|
+
return this.labels.t(q.state === "sending" ? "notes.queued.sending" : "notes.queued.waiting");
|
|
34788
|
+
}
|
|
34789
|
+
announce(message) {
|
|
34790
|
+
this.announcement.set("");
|
|
34791
|
+
queueMicrotask(() => this.announcement.set(message));
|
|
34792
|
+
}
|
|
34793
|
+
savedOffline(res) {
|
|
34794
|
+
return !!this.queue && !!res && typeof res === "object" && res._offline === true;
|
|
34795
|
+
}
|
|
34796
|
+
loadPage(p, after) {
|
|
34553
34797
|
if (!this.ready) return;
|
|
34798
|
+
const seq = ++this.loadSeq;
|
|
34799
|
+
if (after) this.afters.push(after);
|
|
34554
34800
|
this.loading.set(true);
|
|
34801
|
+
const finish = () => {
|
|
34802
|
+
const run = this.afters;
|
|
34803
|
+
this.afters = [];
|
|
34804
|
+
run.forEach((fn) => fn());
|
|
34805
|
+
};
|
|
34555
34806
|
this.http.get(`${this.listUrl}?page=${p}&size=${this.pageSize}`).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
34556
34807
|
next: (res) => {
|
|
34808
|
+
if (seq !== this.loadSeq) return;
|
|
34557
34809
|
this.notes.set(res.content.map((n) => this.normalize(n)));
|
|
34558
34810
|
this.page.set(res.page ?? res.number ?? p);
|
|
34559
34811
|
this.totalElements.set(res.totalElements);
|
|
34560
34812
|
this.loading.set(false);
|
|
34813
|
+
this.offlineLoadFailed.set(false);
|
|
34561
34814
|
this.totalChange.emit(res.totalElements);
|
|
34815
|
+
finish();
|
|
34562
34816
|
},
|
|
34563
34817
|
error: (err) => {
|
|
34818
|
+
if (seq !== this.loadSeq) return;
|
|
34564
34819
|
this.loading.set(false);
|
|
34565
|
-
this.
|
|
34820
|
+
const offline = !!this.queue?.offline();
|
|
34821
|
+
this.offlineLoadFailed.set(offline);
|
|
34822
|
+
const afterDelivery = this.afters.length > 0 && [401, 403].includes(err?.status ?? 0);
|
|
34823
|
+
if (!offline && !afterDelivery) this.toast.error(getErrorMessage(err, "notes"));
|
|
34824
|
+
finish();
|
|
34566
34825
|
}
|
|
34567
34826
|
});
|
|
34568
34827
|
}
|
|
@@ -34570,9 +34829,13 @@ var NotesComponent = class NotesComponent {
|
|
|
34570
34829
|
if (this.readOnly() || !this.validBody(this.newBody) || this.saving()) return;
|
|
34571
34830
|
this.saving.set(true);
|
|
34572
34831
|
this.http.post(this.listUrl, this.payload(this.newBody)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
34573
|
-
next: () => {
|
|
34832
|
+
next: (res) => {
|
|
34574
34833
|
this.newBody = "";
|
|
34575
34834
|
this.saving.set(false);
|
|
34835
|
+
if (this.savedOffline(res)) {
|
|
34836
|
+
this.announce(this.labels.t("notes.queued.addedAnnounce"));
|
|
34837
|
+
return;
|
|
34838
|
+
}
|
|
34576
34839
|
this.loadPage(0);
|
|
34577
34840
|
},
|
|
34578
34841
|
error: (err) => {
|
|
@@ -34595,6 +34858,12 @@ var NotesComponent = class NotesComponent {
|
|
|
34595
34858
|
this.saving.set(true);
|
|
34596
34859
|
this.http.put(this.noteUrl(noteId), this.payload(this.editBody)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
34597
34860
|
next: (updated) => {
|
|
34861
|
+
if (this.savedOffline(updated)) {
|
|
34862
|
+
this.editingId.set(null);
|
|
34863
|
+
this.saving.set(false);
|
|
34864
|
+
this.announce(this.labels.t("notes.queued.editedAnnounce"));
|
|
34865
|
+
return;
|
|
34866
|
+
}
|
|
34598
34867
|
this.notes.update((arr) => arr.map((n) => n.id === noteId ? this.normalize(updated) : n));
|
|
34599
34868
|
this.editingId.set(null);
|
|
34600
34869
|
this.saving.set(false);
|
|
@@ -34614,9 +34883,13 @@ var NotesComponent = class NotesComponent {
|
|
|
34614
34883
|
if (this.readOnly() || !id || this.saving()) return;
|
|
34615
34884
|
this.saving.set(true);
|
|
34616
34885
|
this.http.delete(this.noteUrl(id)).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
|
|
34617
|
-
next: () => {
|
|
34886
|
+
next: (res) => {
|
|
34618
34887
|
this.deletingId.set(null);
|
|
34619
34888
|
this.saving.set(false);
|
|
34889
|
+
if (this.savedOffline(res)) {
|
|
34890
|
+
this.announce(this.labels.t("notes.queued.deletedAnnounce"));
|
|
34891
|
+
return;
|
|
34892
|
+
}
|
|
34620
34893
|
this.loadPage(this.notes().length === 1 && this.page() > 0 ? this.page() - 1 : this.page());
|
|
34621
34894
|
},
|
|
34622
34895
|
error: (err) => {
|
|
@@ -34700,13 +34973,23 @@ var NotesComponent = class NotesComponent {
|
|
|
34700
34973
|
</div>
|
|
34701
34974
|
}
|
|
34702
34975
|
|
|
34703
|
-
@if (
|
|
34976
|
+
@if (queue) {
|
|
34977
|
+
<ui-live-region [message]="announcement()" />
|
|
34978
|
+
}
|
|
34979
|
+
|
|
34980
|
+
@if (offlineLoadFailed() && shown().length > 0) {
|
|
34981
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineSome') }}</p>
|
|
34982
|
+
}
|
|
34983
|
+
|
|
34984
|
+
@if (loading() && shown().length === 0) {
|
|
34704
34985
|
<div class="note-loading" role="status">{{ labels.t('notes.loadingNotes') }}</div>
|
|
34705
|
-
} @else if (
|
|
34986
|
+
} @else if (shown().length === 0 && offlineLoadFailed()) {
|
|
34987
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineNone') }}</p>
|
|
34988
|
+
} @else if (shown().length === 0) {
|
|
34706
34989
|
<ui-empty-state iconType="person" [title]="labels.t('notes.noNotesYet')" [message]="readOnly() ? labels.t('notes.noNotesAdded') : labels.t('notes.addFirstNote')" />
|
|
34707
34990
|
} @else {
|
|
34708
34991
|
<ul class="note-list" [attr.aria-label]="labels.t('notes.notes')">
|
|
34709
|
-
@for (note of
|
|
34992
|
+
@for (note of shown(); track note.id) {
|
|
34710
34993
|
<li class="note-item" [class.editing]="editingId() === note.id">
|
|
34711
34994
|
<ui-avatar class="note-avatar" [initials]="initials(note.createdByName)" [name]="note.createdByName || labels.t('notes.you')" [size]="32" />
|
|
34712
34995
|
<div class="note-main">
|
|
@@ -34717,7 +35000,10 @@ var NotesComponent = class NotesComponent {
|
|
|
34717
35000
|
@if (note.updatedAt !== note.createdAt) {
|
|
34718
35001
|
<span class="note-edited">{{ labels.t('notes.edited') }}</span>
|
|
34719
35002
|
}
|
|
34720
|
-
@if (
|
|
35003
|
+
@if (note.queued; as q) {
|
|
35004
|
+
<span class="note-queued" [class.note-queued-bad]="q.state === 'failed' || q.state === 'conflict'" data-testid="note-queued">{{ queuedText(q) }}</span>
|
|
35005
|
+
}
|
|
35006
|
+
@if (!readOnly() && editingId() !== note.id && !note.queued) {
|
|
34721
35007
|
<div class="note-actions">
|
|
34722
35008
|
@if (editable()) {
|
|
34723
35009
|
<ui-icon name="edit" [size]="14" [tooltip]="labels.t('notes.editNote')" (iconClick)="startEdit(note)" />
|
|
@@ -34749,7 +35035,7 @@ var NotesComponent = class NotesComponent {
|
|
|
34749
35035
|
</ui-modal>
|
|
34750
35036
|
`,
|
|
34751
35037
|
isInline: true,
|
|
34752
|
-
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"],
|
|
35038
|
+
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-offline-hint{margin:0 0 12px;font-size:.875rem;color:#475569}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-queued{font-size:.75rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:999px;padding:1px 8px}.note-queued-bad{color:#991b1b;background:#fef2f2;border:1px solid #b91c1c;font-weight:700}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"],
|
|
34753
35039
|
dependencies: [
|
|
34754
35040
|
{
|
|
34755
35041
|
kind: "ngmodule",
|
|
@@ -34911,6 +35197,17 @@ var NotesComponent = class NotesComponent {
|
|
|
34911
35197
|
"busy"
|
|
34912
35198
|
],
|
|
34913
35199
|
outputs: ["editClick", "imageError"]
|
|
35200
|
+
},
|
|
35201
|
+
{
|
|
35202
|
+
kind: "component",
|
|
35203
|
+
type: LiveRegionComponent,
|
|
35204
|
+
selector: "ui-live-region",
|
|
35205
|
+
inputs: [
|
|
35206
|
+
"message",
|
|
35207
|
+
"politeness",
|
|
35208
|
+
"atomic",
|
|
35209
|
+
"visible"
|
|
35210
|
+
]
|
|
34914
35211
|
}
|
|
34915
35212
|
],
|
|
34916
35213
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -34936,7 +35233,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34936
35233
|
PaginationComponent,
|
|
34937
35234
|
TextareaInputComponent,
|
|
34938
35235
|
IconComponent,
|
|
34939
|
-
AvatarComponent
|
|
35236
|
+
AvatarComponent,
|
|
35237
|
+
LiveRegionComponent
|
|
34940
35238
|
],
|
|
34941
35239
|
template: `
|
|
34942
35240
|
@if (!readOnly()) {
|
|
@@ -34949,13 +35247,23 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34949
35247
|
</div>
|
|
34950
35248
|
}
|
|
34951
35249
|
|
|
34952
|
-
@if (
|
|
35250
|
+
@if (queue) {
|
|
35251
|
+
<ui-live-region [message]="announcement()" />
|
|
35252
|
+
}
|
|
35253
|
+
|
|
35254
|
+
@if (offlineLoadFailed() && shown().length > 0) {
|
|
35255
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineSome') }}</p>
|
|
35256
|
+
}
|
|
35257
|
+
|
|
35258
|
+
@if (loading() && shown().length === 0) {
|
|
34953
35259
|
<div class="note-loading" role="status">{{ labels.t('notes.loadingNotes') }}</div>
|
|
34954
|
-
} @else if (
|
|
35260
|
+
} @else if (shown().length === 0 && offlineLoadFailed()) {
|
|
35261
|
+
<p class="note-offline-hint" data-testid="note-offline-hint">{{ labels.t('notes.queued.offlineNone') }}</p>
|
|
35262
|
+
} @else if (shown().length === 0) {
|
|
34955
35263
|
<ui-empty-state iconType="person" [title]="labels.t('notes.noNotesYet')" [message]="readOnly() ? labels.t('notes.noNotesAdded') : labels.t('notes.addFirstNote')" />
|
|
34956
35264
|
} @else {
|
|
34957
35265
|
<ul class="note-list" [attr.aria-label]="labels.t('notes.notes')">
|
|
34958
|
-
@for (note of
|
|
35266
|
+
@for (note of shown(); track note.id) {
|
|
34959
35267
|
<li class="note-item" [class.editing]="editingId() === note.id">
|
|
34960
35268
|
<ui-avatar class="note-avatar" [initials]="initials(note.createdByName)" [name]="note.createdByName || labels.t('notes.you')" [size]="32" />
|
|
34961
35269
|
<div class="note-main">
|
|
@@ -34966,7 +35274,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34966
35274
|
@if (note.updatedAt !== note.createdAt) {
|
|
34967
35275
|
<span class="note-edited">{{ labels.t('notes.edited') }}</span>
|
|
34968
35276
|
}
|
|
34969
|
-
@if (
|
|
35277
|
+
@if (note.queued; as q) {
|
|
35278
|
+
<span class="note-queued" [class.note-queued-bad]="q.state === 'failed' || q.state === 'conflict'" data-testid="note-queued">{{ queuedText(q) }}</span>
|
|
35279
|
+
}
|
|
35280
|
+
@if (!readOnly() && editingId() !== note.id && !note.queued) {
|
|
34970
35281
|
<div class="note-actions">
|
|
34971
35282
|
@if (editable()) {
|
|
34972
35283
|
<ui-icon name="edit" [size]="14" [tooltip]="labels.t('notes.editNote')" (iconClick)="startEdit(note)" />
|
|
@@ -34997,7 +35308,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34997
35308
|
<ui-button modal-footer-right variant="danger" size="sm" data-testid="delete-note-confirm" [loading]="saving()" (click)="deleteNote()">{{ labels.t('notes.deleteNote2') }}</ui-button>
|
|
34998
35309
|
</ui-modal>
|
|
34999
35310
|
`,
|
|
35000
|
-
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"]
|
|
35311
|
+
styles: [":host{display:block}.note-add{padding:14px;margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.note-add-footer{display:flex;justify-content:flex-end;margin-top:10px}.note-offline-hint{margin:0 0 12px;font-size:.875rem;color:#475569}.note-loading{padding:24px 0;font-size:.875rem;color:#64748b;text-align:center}.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.note-item{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,box-shadow .15s}@media(hover:hover){.note-item:hover{border-color:#cbd5e1;box-shadow:0 1px 3px #0f172a0f}}.note-item.editing{background:#f8fafc;border-color:#bfdbfe}@media(prefers-reduced-motion:reduce){.note-item{transition:none}}.note-avatar{flex-shrink:0}.note-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.note-head{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;min-height:28px}.note-author{font-size:.875rem;font-weight:600;color:#0f172a}.note-dot{color:#94a3b8;font-size:.75rem}.note-date{font-size:.75rem;color:#64748b}.note-edited{font-size:.75rem;font-style:italic;color:#64748b}.note-queued{font-size:.75rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:999px;padding:1px 8px}.note-queued-bad{color:#991b1b;background:#fef2f2;border:1px solid #b91c1c;font-weight:700}.note-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.note-body{margin:0;font-size:.9375rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.note-item-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.note-delete-msg{margin:0;font-size:.9375rem;line-height:1.5;color:#334155}@media(max-width:480px){.note-item{padding:12px;gap:10px}.note-add{padding:12px}}\n"]
|
|
35001
35312
|
}]
|
|
35002
35313
|
}],
|
|
35003
35314
|
ctorParameters: () => [],
|
|
@@ -39998,6 +40309,36 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
39998
40309
|
}]
|
|
39999
40310
|
}
|
|
40000
40311
|
});
|
|
40312
|
+
function timelineItemsFromEvents(events, options = {}) {
|
|
40313
|
+
const timeFormat = options.timeFormat ?? "M/d/yyyy h:mm a";
|
|
40314
|
+
const locale = options.locale ?? uiLocale();
|
|
40315
|
+
const amountLabel = options.amountLabel ?? uiText("timeline.eventAmount");
|
|
40316
|
+
const separator = options.separator ?? " · ";
|
|
40317
|
+
return events.map((e) => {
|
|
40318
|
+
const lines = [];
|
|
40319
|
+
if (e.description) lines.push(e.description);
|
|
40320
|
+
if (e.actor) lines.push(e.actor);
|
|
40321
|
+
if (e.amount) lines.push(`${amountLabel}: ${e.amount.toLocaleString(locale, {
|
|
40322
|
+
style: "currency",
|
|
40323
|
+
currency: "USD"
|
|
40324
|
+
})}`);
|
|
40325
|
+
const parsed = new Date(e.date);
|
|
40326
|
+
const valid = !isNaN(parsed.getTime());
|
|
40327
|
+
const badges = [e.category, e.status].filter((b) => !!b && !!b.label).map((b) => ({
|
|
40328
|
+
label: b.label,
|
|
40329
|
+
variant: b.variant ?? "gray"
|
|
40330
|
+
}));
|
|
40331
|
+
return {
|
|
40332
|
+
...e.id !== void 0 ? { id: e.id } : {},
|
|
40333
|
+
title: e.locked ? options.lockedSuffix !== void 0 ? `${e.title}${options.lockedSuffix}` : uiText("timeline.eventLocked", { title: e.title }) : e.title,
|
|
40334
|
+
description: lines.length ? lines.join(separator) : void 0,
|
|
40335
|
+
time: valid ? formatDate(parsed, timeFormat, locale) : void 0,
|
|
40336
|
+
dateTime: e.date || void 0,
|
|
40337
|
+
badges,
|
|
40338
|
+
dotVariant: e.category?.variant ?? "gray"
|
|
40339
|
+
};
|
|
40340
|
+
});
|
|
40341
|
+
}
|
|
40001
40342
|
var TourComponent = class TourComponent {
|
|
40002
40343
|
constructor() {
|
|
40003
40344
|
this.labels = inject(UiLabelsService);
|
|
@@ -42092,119 +42433,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
42092
42433
|
}]
|
|
42093
42434
|
}
|
|
42094
42435
|
});
|
|
42095
|
-
var LiveRegionComponent = class LiveRegionComponent {
|
|
42096
|
-
constructor() {
|
|
42097
|
-
this.message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
42098
|
-
this.politeness = input("polite", ...ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []);
|
|
42099
|
-
this.atomic = input(true, ...ngDevMode ? [{ debugName: "atomic" }] : /* istanbul ignore next */ []);
|
|
42100
|
-
this.visible = input(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
42101
|
-
this.role = computed(() => this.politeness() === "assertive" ? "alert" : "status", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
42102
|
-
}
|
|
42103
|
-
static {
|
|
42104
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
42105
|
-
minVersion: "12.0.0",
|
|
42106
|
-
version: "22.2.2",
|
|
42107
|
-
ngImport: i0,
|
|
42108
|
-
type: LiveRegionComponent,
|
|
42109
|
-
deps: [],
|
|
42110
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
42111
|
-
});
|
|
42112
|
-
}
|
|
42113
|
-
static {
|
|
42114
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
42115
|
-
minVersion: "17.1.0",
|
|
42116
|
-
version: "22.2.2",
|
|
42117
|
-
type: LiveRegionComponent,
|
|
42118
|
-
isStandalone: true,
|
|
42119
|
-
selector: "ui-live-region",
|
|
42120
|
-
inputs: {
|
|
42121
|
-
message: {
|
|
42122
|
-
classPropertyName: "message",
|
|
42123
|
-
publicName: "message",
|
|
42124
|
-
isSignal: true,
|
|
42125
|
-
isRequired: false,
|
|
42126
|
-
transformFunction: null
|
|
42127
|
-
},
|
|
42128
|
-
politeness: {
|
|
42129
|
-
classPropertyName: "politeness",
|
|
42130
|
-
publicName: "politeness",
|
|
42131
|
-
isSignal: true,
|
|
42132
|
-
isRequired: false,
|
|
42133
|
-
transformFunction: null
|
|
42134
|
-
},
|
|
42135
|
-
atomic: {
|
|
42136
|
-
classPropertyName: "atomic",
|
|
42137
|
-
publicName: "atomic",
|
|
42138
|
-
isSignal: true,
|
|
42139
|
-
isRequired: false,
|
|
42140
|
-
transformFunction: null
|
|
42141
|
-
},
|
|
42142
|
-
visible: {
|
|
42143
|
-
classPropertyName: "visible",
|
|
42144
|
-
publicName: "visible",
|
|
42145
|
-
isSignal: true,
|
|
42146
|
-
isRequired: false,
|
|
42147
|
-
transformFunction: null
|
|
42148
|
-
}
|
|
42149
|
-
},
|
|
42150
|
-
ngImport: i0,
|
|
42151
|
-
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
42152
|
-
isInline: true,
|
|
42153
|
-
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"],
|
|
42154
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
42155
|
-
});
|
|
42156
|
-
}
|
|
42157
|
-
};
|
|
42158
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
42159
|
-
minVersion: "12.0.0",
|
|
42160
|
-
version: "22.2.2",
|
|
42161
|
-
ngImport: i0,
|
|
42162
|
-
type: LiveRegionComponent,
|
|
42163
|
-
decorators: [{
|
|
42164
|
-
type: Component,
|
|
42165
|
-
args: [{
|
|
42166
|
-
selector: "ui-live-region",
|
|
42167
|
-
standalone: true,
|
|
42168
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42169
|
-
template: `<div class="lr" [class.lr-hidden]="!visible()" [attr.role]="role()" [attr.aria-live]="politeness()" [attr.aria-atomic]="atomic() ? 'true' : 'false'">{{ message() }}</div>`,
|
|
42170
|
-
styles: [":host{display:block}.lr-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}\n"]
|
|
42171
|
-
}]
|
|
42172
|
-
}],
|
|
42173
|
-
propDecorators: {
|
|
42174
|
-
message: [{
|
|
42175
|
-
type: i0.Input,
|
|
42176
|
-
args: [{
|
|
42177
|
-
isSignal: true,
|
|
42178
|
-
alias: "message",
|
|
42179
|
-
required: false
|
|
42180
|
-
}]
|
|
42181
|
-
}],
|
|
42182
|
-
politeness: [{
|
|
42183
|
-
type: i0.Input,
|
|
42184
|
-
args: [{
|
|
42185
|
-
isSignal: true,
|
|
42186
|
-
alias: "politeness",
|
|
42187
|
-
required: false
|
|
42188
|
-
}]
|
|
42189
|
-
}],
|
|
42190
|
-
atomic: [{
|
|
42191
|
-
type: i0.Input,
|
|
42192
|
-
args: [{
|
|
42193
|
-
isSignal: true,
|
|
42194
|
-
alias: "atomic",
|
|
42195
|
-
required: false
|
|
42196
|
-
}]
|
|
42197
|
-
}],
|
|
42198
|
-
visible: [{
|
|
42199
|
-
type: i0.Input,
|
|
42200
|
-
args: [{
|
|
42201
|
-
isSignal: true,
|
|
42202
|
-
alias: "visible",
|
|
42203
|
-
required: false
|
|
42204
|
-
}]
|
|
42205
|
-
}]
|
|
42206
|
-
}
|
|
42207
|
-
});
|
|
42208
42436
|
var ImageGalleryComponent = class ImageGalleryComponent {
|
|
42209
42437
|
constructor() {
|
|
42210
42438
|
this.labels = inject(UiLabelsService);
|
|
@@ -53037,10 +53265,10 @@ function formatCurrency(value, options = {}) {
|
|
|
53037
53265
|
if (n === 0) n = 0;
|
|
53038
53266
|
return formatter.format(n);
|
|
53039
53267
|
}
|
|
53040
|
-
const clean = (v) => (v ?? "").trim();
|
|
53268
|
+
const clean$1 = (v) => (v ?? "").trim();
|
|
53041
53269
|
function formatAddress(parts, options = {}) {
|
|
53042
53270
|
const separator = options.separator ?? ", ";
|
|
53043
|
-
const street = clean(parts.street), apt = clean(parts.apt), city = clean(parts.city), state = clean(parts.state), zip = clean(parts.zip);
|
|
53271
|
+
const street = clean$1(parts.street), apt = clean$1(parts.apt), city = clean$1(parts.city), state = clean$1(parts.state), zip = clean$1(parts.zip);
|
|
53044
53272
|
if (options.style === "usa") return [street ? street + (apt ? separator + uiText("format.aptPrefix", { apt }) : "") : "", ([city, state].filter(Boolean).join(separator) + (zip ? " " + zip : "")).trim()].filter(Boolean).join(separator);
|
|
53045
53273
|
return [
|
|
53046
53274
|
street,
|
|
@@ -67022,7 +67250,7 @@ const BUILT_IN_ENDONYMS = {
|
|
|
67022
67250
|
ko: "한국어",
|
|
67023
67251
|
ru: "Русский"
|
|
67024
67252
|
};
|
|
67025
|
-
const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-
|
|
67253
|
+
const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-CioAOUhm.mjs").then((m) => m.UI_LABELS_ES)]]);
|
|
67026
67254
|
const normalizeTag = (tag) => tag.trim().toLowerCase().replace(/_/g, "-");
|
|
67027
67255
|
const baseOf = (tag) => normalizeTag(tag).split("-")[0];
|
|
67028
67256
|
const builtInLoader = (lang) => BUILT_IN_LOADERS.get(normalizeTag(lang)) ?? BUILT_IN_LOADERS.get(baseOf(lang));
|
|
@@ -67278,6 +67506,212 @@ function intlName(code) {
|
|
|
67278
67506
|
return;
|
|
67279
67507
|
}
|
|
67280
67508
|
}
|
|
67509
|
+
function createModuleLabels(options) {
|
|
67510
|
+
if (typeof options.namespace !== "string" || options.namespace.trim() === "") throw new Error("createModuleLabels: `namespace` must be a non-empty string.");
|
|
67511
|
+
return Object.freeze({
|
|
67512
|
+
namespace: options.namespace,
|
|
67513
|
+
en: options.en,
|
|
67514
|
+
es: options.es
|
|
67515
|
+
});
|
|
67516
|
+
}
|
|
67517
|
+
function interpolate(text, params) {
|
|
67518
|
+
if (!params) return text;
|
|
67519
|
+
return text.replace(/\{\{\s*(\w+)\s*\}\}/g, (whole, name) => name in params ? String(params[name]) : whole);
|
|
67520
|
+
}
|
|
67521
|
+
function placeholdersOf(text) {
|
|
67522
|
+
return [...new Set([...text.matchAll(/\{\{\s*(\w+)\s*\}\}/g)].map((m) => m[1]))].sort();
|
|
67523
|
+
}
|
|
67524
|
+
const baseLanguage = (tag) => tag.trim().toLowerCase().replace(/_/g, "-").split("-")[0];
|
|
67525
|
+
const MODULE_LABEL_OVERRIDES = new InjectionToken("MODULE_LABEL_OVERRIDES");
|
|
67526
|
+
function provideModuleLabelOverrides(namespace, overrides) {
|
|
67527
|
+
const ns = typeof namespace === "string" ? namespace : namespace.namespace;
|
|
67528
|
+
return makeEnvironmentProviders([{
|
|
67529
|
+
provide: MODULE_LABEL_OVERRIDES,
|
|
67530
|
+
multi: true,
|
|
67531
|
+
useValue: {
|
|
67532
|
+
namespace: ns,
|
|
67533
|
+
overrides
|
|
67534
|
+
}
|
|
67535
|
+
}]);
|
|
67536
|
+
}
|
|
67537
|
+
const MODULE_LABELS_LANGUAGE = new InjectionToken("MODULE_LABELS_LANGUAGE");
|
|
67538
|
+
const MODULE_LABELS_LOADERS = new InjectionToken("MODULE_LABELS_LOADERS");
|
|
67539
|
+
function clean(handle, source, strictPlaceholders) {
|
|
67540
|
+
const out = {};
|
|
67541
|
+
if (!source || typeof source !== "object") return out;
|
|
67542
|
+
for (const [key, value] of Object.entries(source)) {
|
|
67543
|
+
if (!(key in handle.en) || typeof value !== "string" || value.trim() === "") continue;
|
|
67544
|
+
if (strictPlaceholders && placeholdersOf(value).join("|") !== placeholdersOf(handle.en[key]).join("|")) continue;
|
|
67545
|
+
out[key] = value;
|
|
67546
|
+
}
|
|
67547
|
+
return out;
|
|
67548
|
+
}
|
|
67549
|
+
var ModuleLabelsRegistry = class ModuleLabelsRegistry {
|
|
67550
|
+
constructor() {
|
|
67551
|
+
this.injector = inject(EnvironmentInjector);
|
|
67552
|
+
this.labels = inject(UiLabelsService);
|
|
67553
|
+
this.loaders = inject(MODULE_LABELS_LOADERS, { optional: true });
|
|
67554
|
+
this.entries = inject(MODULE_LABEL_OVERRIDES, { optional: true }) ?? [];
|
|
67555
|
+
this.states = /* @__PURE__ */ new Map();
|
|
67556
|
+
this.destroyed = false;
|
|
67557
|
+
this.language = (() => {
|
|
67558
|
+
const given = inject(MODULE_LABELS_LANGUAGE, { optional: true });
|
|
67559
|
+
if (given) return computed(() => baseLanguage(given()));
|
|
67560
|
+
if (inject(UI_LANGUAGE_CONFIG, { optional: true })) {
|
|
67561
|
+
const service = inject(UiLanguageService);
|
|
67562
|
+
return computed(() => baseLanguage(service.lang()));
|
|
67563
|
+
}
|
|
67564
|
+
return computed(() => baseLanguage(this.labels.locale()));
|
|
67565
|
+
})();
|
|
67566
|
+
}
|
|
67567
|
+
ngOnDestroy() {
|
|
67568
|
+
this.destroyed = true;
|
|
67569
|
+
}
|
|
67570
|
+
stateFor(handle) {
|
|
67571
|
+
let state = this.states.get(handle);
|
|
67572
|
+
if (state) return state;
|
|
67573
|
+
const overrides = {
|
|
67574
|
+
en: {},
|
|
67575
|
+
es: {}
|
|
67576
|
+
};
|
|
67577
|
+
for (const entry of this.entries) {
|
|
67578
|
+
if (entry.namespace !== handle.namespace) continue;
|
|
67579
|
+
Object.assign(overrides.en, clean(handle, entry.overrides.en, true));
|
|
67580
|
+
Object.assign(overrides.es, clean(handle, entry.overrides.es, true));
|
|
67581
|
+
}
|
|
67582
|
+
state = {
|
|
67583
|
+
handle,
|
|
67584
|
+
status: signal("idle"),
|
|
67585
|
+
spanish: signal(null),
|
|
67586
|
+
overrides
|
|
67587
|
+
};
|
|
67588
|
+
this.states.set(handle, state);
|
|
67589
|
+
const made = state;
|
|
67590
|
+
effect(() => {
|
|
67591
|
+
if (this.language() === "es") untracked(() => this.load(made));
|
|
67592
|
+
}, { injector: this.injector });
|
|
67593
|
+
untracked(() => {
|
|
67594
|
+
if (this.language() === "es") this.load(made);
|
|
67595
|
+
});
|
|
67596
|
+
return state;
|
|
67597
|
+
}
|
|
67598
|
+
load(state) {
|
|
67599
|
+
const status = state.status();
|
|
67600
|
+
if (status === "loading" || status === "done") return;
|
|
67601
|
+
const loader = this.loaders?.[state.handle.namespace] ?? state.handle.es;
|
|
67602
|
+
if (!loader) {
|
|
67603
|
+
state.status.set("done");
|
|
67604
|
+
return;
|
|
67605
|
+
}
|
|
67606
|
+
state.status.set("loading");
|
|
67607
|
+
loader().then((dictionary) => {
|
|
67608
|
+
if (this.destroyed) return;
|
|
67609
|
+
state.spanish.set(clean(state.handle, dictionary, false));
|
|
67610
|
+
state.status.set("done");
|
|
67611
|
+
}, () => {
|
|
67612
|
+
if (!this.destroyed) state.status.set("failed");
|
|
67613
|
+
});
|
|
67614
|
+
}
|
|
67615
|
+
create(handle) {
|
|
67616
|
+
const state = this.stateFor(handle);
|
|
67617
|
+
const language = this.language;
|
|
67618
|
+
const text = (key) => {
|
|
67619
|
+
return (language() === "es" ? state.overrides.es[key] ?? state.spanish()?.[key] : void 0) ?? state.overrides.en[key] ?? state.handle.en[key] ?? key;
|
|
67620
|
+
};
|
|
67621
|
+
const labels = this.labels;
|
|
67622
|
+
return {
|
|
67623
|
+
t: (key, params) => interpolate(text(key), params),
|
|
67624
|
+
tn: (base, count, params) => interpolate(text(`${base}_${count === 1 ? "one" : "other"}`), {
|
|
67625
|
+
count,
|
|
67626
|
+
...params
|
|
67627
|
+
}),
|
|
67628
|
+
ready: computed(() => {
|
|
67629
|
+
if (language() !== "es") return true;
|
|
67630
|
+
const status = state.status();
|
|
67631
|
+
return status === "done" || status === "failed";
|
|
67632
|
+
}),
|
|
67633
|
+
language,
|
|
67634
|
+
locale: labels.locale,
|
|
67635
|
+
formatDate: (value, format, timeZone) => labels.formatDate(value, format, timeZone),
|
|
67636
|
+
formatNumber: (value, options) => labels.formatNumber(value, options),
|
|
67637
|
+
formatCurrency: (value, currency, options) => labels.formatCurrency(value, currency, options)
|
|
67638
|
+
};
|
|
67639
|
+
}
|
|
67640
|
+
static {
|
|
67641
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
67642
|
+
minVersion: "12.0.0",
|
|
67643
|
+
version: "22.2.2",
|
|
67644
|
+
ngImport: i0,
|
|
67645
|
+
type: ModuleLabelsRegistry,
|
|
67646
|
+
deps: [],
|
|
67647
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
67648
|
+
});
|
|
67649
|
+
}
|
|
67650
|
+
static {
|
|
67651
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
67652
|
+
minVersion: "12.0.0",
|
|
67653
|
+
version: "22.2.2",
|
|
67654
|
+
ngImport: i0,
|
|
67655
|
+
type: ModuleLabelsRegistry,
|
|
67656
|
+
providedIn: "root"
|
|
67657
|
+
});
|
|
67658
|
+
}
|
|
67659
|
+
};
|
|
67660
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
67661
|
+
minVersion: "12.0.0",
|
|
67662
|
+
version: "22.2.2",
|
|
67663
|
+
ngImport: i0,
|
|
67664
|
+
type: ModuleLabelsRegistry,
|
|
67665
|
+
decorators: [{
|
|
67666
|
+
type: Injectable,
|
|
67667
|
+
args: [{ providedIn: "root" }]
|
|
67668
|
+
}]
|
|
67669
|
+
});
|
|
67670
|
+
function injectModuleLabels(handle) {
|
|
67671
|
+
return inject(ModuleLabelsRegistry).create(handle);
|
|
67672
|
+
}
|
|
67673
|
+
function assertModuleLabelParity(en, es) {
|
|
67674
|
+
const problems = [];
|
|
67675
|
+
const enKeys = Object.keys(en);
|
|
67676
|
+
const esKeys = Object.keys(es);
|
|
67677
|
+
for (const key of enKeys) if (!(key in es)) problems.push(`missing in es: ${key}`);
|
|
67678
|
+
for (const key of esKeys) if (!(key in en)) problems.push(`extra in es: ${key}`);
|
|
67679
|
+
for (const key of enKeys) {
|
|
67680
|
+
if (!(key in es)) continue;
|
|
67681
|
+
if (typeof es[key] !== "string" || es[key].trim() === "") {
|
|
67682
|
+
problems.push(`blank in es: ${key}`);
|
|
67683
|
+
continue;
|
|
67684
|
+
}
|
|
67685
|
+
const a = placeholdersOf(en[key]).join(", ");
|
|
67686
|
+
const b = placeholdersOf(es[key]).join(", ");
|
|
67687
|
+
if (a !== b) problems.push(`placeholders differ for ${key}: en {${a}} vs es {${b}}`);
|
|
67688
|
+
}
|
|
67689
|
+
for (const [name, dictionary] of [["en", en], ["es", es]]) for (const key of Object.keys(dictionary)) {
|
|
67690
|
+
if (key.endsWith("_one") && !(key.slice(0, -4) + "_other" in dictionary)) problems.push(`plural pair incomplete in ${name}: ${key} has no _other`);
|
|
67691
|
+
if (key.endsWith("_other") && !(key.slice(0, -6) + "_one" in dictionary)) problems.push(`plural pair incomplete in ${name}: ${key} has no _one`);
|
|
67692
|
+
}
|
|
67693
|
+
if (problems.length) throw new Error(`Module label parity check failed:\n- ${problems.join("\n- ")}`);
|
|
67694
|
+
}
|
|
67695
|
+
function moduleLabelsTesting(options = {}) {
|
|
67696
|
+
const language = signal(options.language ?? "en", ...ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []);
|
|
67697
|
+
const counts = {};
|
|
67698
|
+
const loaders = {};
|
|
67699
|
+
for (const [namespace, source] of Object.entries(options.es ?? {})) loaders[namespace] = () => {
|
|
67700
|
+
counts[namespace] = (counts[namespace] ?? 0) + 1;
|
|
67701
|
+
return typeof source === "function" ? source() : Promise.resolve(source);
|
|
67702
|
+
};
|
|
67703
|
+
return {
|
|
67704
|
+
providers: [{
|
|
67705
|
+
provide: MODULE_LABELS_LANGUAGE,
|
|
67706
|
+
useValue: language.asReadonly()
|
|
67707
|
+
}, {
|
|
67708
|
+
provide: MODULE_LABELS_LOADERS,
|
|
67709
|
+
useValue: loaders
|
|
67710
|
+
}],
|
|
67711
|
+
language,
|
|
67712
|
+
loadCount: (namespace) => counts[namespace] ?? 0
|
|
67713
|
+
};
|
|
67714
|
+
}
|
|
67281
67715
|
let nextSwitcherId = 0;
|
|
67282
67716
|
var UiLanguageSwitcherComponent = class UiLanguageSwitcherComponent {
|
|
67283
67717
|
constructor() {
|
|
@@ -69258,6 +69692,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
69258
69692
|
args: [{ providedIn: "root" }]
|
|
69259
69693
|
}]
|
|
69260
69694
|
});
|
|
69261
|
-
export { ALLOCATION_CUSTOM, ASCII_SPECIAL_PASSWORD_RULES, ActionBarComponent, AddressInputComponent, AlertComponent, AppShellComponent, AudioPlayerComponent, AvatarComponent, BADGE_VARIANT_STYLES, BadgeComponent, BankAccountFormComponent, BarRowComponent, BoardCardDirective, BoardComponent, BulkMessagePanelComponent, BusinessHoursComponent, ButtonComponent, COMMON_DETAIL_GROUP_STYLES, CalendarComponent, CardListItemComponent, ChargeFormComponent, CheckboxComponent, CheckboxTrailingDirective, ChipComponent, ChipGroupComponent, ColorInputComponent, ColumnFilterComponent, ColumnsComponent, ComboboxComponent, ConfirmAfterCheckService, ConfirmOutletComponent, ConfirmService, ContactPickerComponent, ConversationRichBodyComponent, ConversationsComponent, CopyFieldComponent, DEFAULT_ALLOCATION_MODES, DEFAULT_BANK_ACCOUNT_TYPE_OPTIONS, DEFAULT_BANK_HOLDER_TYPE_OPTIONS, DEFAULT_BANK_MANDATE_TEXT, DEFAULT_EMAIL_TEMPLATE_BLOCK_GROUPS, DEFAULT_EMAIL_TEMPLATE_VARIABLE_GROUPS, DEFAULT_PASSWORD_RULES, DEFAULT_PAYMENT_METHODS, DEFAULT_REFUND_REASONS, DETAIL_CARD_HEADER_BG, DETAIL_GROUP_HEADER_BG, DROPDOWN_GROUP, DataTableComponent, DateInputComponent, DateRangePickerComponent, DatetimeInputComponent, DetailCardComponent, DiscountSelectorComponent, DividerComponent, DropdownComponent, EMAIL_BLOCK_DRAG_TYPE, EMAIL_TEMPLATE_MAX_BODY, EMAIL_TEMPLATE_MAX_TEXT, EMAIL_TEMPLATE_START_TEXT, EMBEDDING_PARENT, EmailTemplateEditorComponent, EmptyStateComponent, ErrorComponent, ErrorStateComponent, FORGEROUTE_CONFIG, FadeComponent, FileInputComponent, FillViewportDirective, FixedFooterComponent, FormColSpanDirective, FormComponent, FormRowComponent, FormSectionComponent, HintComponent, ICON_NAMES, IDX_BEHAVIOR_SIGNALS, IDX_BEHAVIOR_SIGNALS_ES, INTEGRATION_CATALOG, INTEGRATION_FIELD_DEFS, INTEGRATION_FIELD_TEXTS_ES, INTEGRATION_GROUP_LABELS_ES, INTEGRATION_GROUP_ORDER, INTEGRATION_OPTION_DEFS, INTEGRATION_OPTION_TEXTS_ES, INTEGRATION_TEXTS_ES, IconComponent, IconPickerComponent, ImageComponent, ImageGalleryComponent, ImageGalleryDialogComponent, ImagePreviewComponent, ImageRepositionComponent, ImportExportComponent, ImportSourceGridComponent, InspectionTemplatePrintService, KeypadComponent, KpiCardComponent, LAYOUT_GAP_PX, LISTED_SPECIAL_PASSWORD_RULES, ListComponent, ListItemComponent, LiveRegionComponent, MAX_EMAIL_ADDRESS_LENGTH, MAX_PAYMENT_AMOUNT, MIN_PAYMENT_AMOUNT, ModalComponent, MoreMenuComponent, MultiSelectComponent, NOTES_MAX_LENGTH, NotesComponent, OfflineBannerComponent, OptionCardComponent, PASSWORD_MAX_BYTES, PASSWORD_MAX_LENGTH, PAYMENT_METHOD, PAYMENT_METHOD_PLUGIN, PHONE_NUMBER_AREA_CODE_LENGTH, PHONE_NUMBER_ZIP_LENGTH, PageComponent, PaginationComponent, PanelInfoListComponent, PasswordRequirementsComponent, PaymentCustomMethodComponent, PaymentMethodPlugin, PaymentSidePanelComponent, PdfHotspotComponent, PhoneNumberPickerComponent, PillTabPanelDirective, PillTabsComponent, PrintService, ProgressBarComponent, ProgressRingComponent, QrCodeComponent, QuickFilterTabsComponent, RICH_TEXT_OPTIONS, RadioComponent, RadioGroupComponent, RadioMatrixComponent, RadioOptionContentDirective, ReadonlyFieldsetComponent, RefundPanelComponent, ReminderAlertsComponent, RichTextEditorComponent, SEMANTIC_BADGE_MAP, SEMANTIC_BADGE_MAP_ES, SETUP_DONE_KEY, SETUP_INTEGRATIONS, SearchInputComponent, SectionHeaderComponent, SelectComponent, SetupWizardComponent, SetupWizardStepDirective, SetupWizardStepHeaderDirective, ShareMenuComponent, ShowComponent, SidePanelComponent, SidebarLayoutComponent, SignaturePadComponent, SkeletonComponent, SnackbarComponent, SnackbarService, StackComponent, StackedBarComponent, StarComponent, StarRatingComponent, StepperComponent, SwatchPickerComponent, TableToolbarComponent, TextComponent, TextInputComponent, TextTemplatePickerComponent, TextareaInputComponent, TimeInputComponent, TimelineComponent, ToastComponent, ToastService, ToggleBadgeComponent, ToggleComponent, TooltipDirective, TourComponent, UI_DEFAULT_LABELS, UI_LANGUAGE_AUTO, UI_LANGUAGE_CONFIG, US_LOCATIONS, US_STATES, US_STATE_OPTIONS, US_ZIP_PATTERN, UiFieldValidity, UiLabelsService, UiLanguageService, UiLanguageSwitcherComponent, acceptLabel, appShellGroupsStorageKey, autoVariant, blockHasContent, buildDefaultSchedule, buildInspectionTemplateHtml, buildMapsEmbedUrl, buildMapsUrl, buildPreviewDocument, buildVideoBlockHtml, builtInActionIcon, businessTimeOptions, callHost, conversationDateLabel, conversationHtmlToText, conversationInitial, conversationMessageStatusLabel, conversationMessageStatusMark, createFieldReveal, createPasswordPolicyValidator, csvCell, csvSafeText, decodeFilterValues, defaultChargeAmount, defaultLabel, digitsOnly, downloadBlob, downloadCsv, emailShareUrl, emptyAddress, encodeFilterValue, encodeFilterValues, errorContextInterceptor, escapeHtml, facebookShareUrl, fileMatchesAccept, fileNameFromContentDisposition, formatAddress, formatAddressValue, formatAddressValueOneLine, formatAttachmentSize, formatCategoryLabel, formatConversationPhone, formatConversationTime, formatCurrency, formatDuration, formatEnum, formatFileSize, formatIsoDate, formatIsoDateTime, formatMessageTime, formatPhone, formatPhoneDisplay, formatShortDate, formatTime, formatTimeAgo, formatVideoDuration, getEligibleIds, getEligibleOptions, getErrorMessage, getInitials, gmailShareUrl, groupMessagesByDay, hostErrorMessage, humanReadableMessage, iconPath, insideEditorBlock, inspectionTemplateStatusLabel, integrationGroupLabel, integrationPlainText, integrationsForApp, integrationsOnlyFor, isBlockDrag, isEmptyAddress, isValidAmount, isValidEmailAddress, isValidZip, isWebUrl, isoKey, issueToErrors, last4Error, linkedInShareUrl, loadUiLabels, localizeIntegration, localizeIntegrationFields, localizeIntegrationOptions, localizedAllocationModes, localizedDetailGroupStyle, localizedEmailBlockGroups, localizedEmailVariableGroups, localizedIdxBehaviorSignals, localizedIntegrationDescription, localizedIntegrationTitle, localizedPaymentMethods, maxLengthIssue, mergeDescribedBy, normalizeAddress, normalizeHexColor, outlookShareUrl, parseAddressOneLine, parseAddressValue, parseBizHours, parseIso, parseTime, passwordByteLength, passwordMeetsRules, passwordTooLongMessage, passwordWithinLimits, periodGroup, pillTabDescriptionId, pillTabId, pillTabPanelId, pillTabTitleId, pluralize, provideForgerouteToast, provideUiLanguage, reorderItems, requiredIssue, resolveLayoutGap, resolvePreset, safeLocale, semanticBadgeVariant, serializeBizHours, serializedTextLength, setupIntegrations, splitIntro, terminalTimeoutText, terminalVerdict, toCsv, todayInTimezone, truncateConversationText, uiCurrencyFormatter, uiFormatClock, uiFormatCurrency, uiFormatDate, uiFormatHour, uiFormatNumber, uiLocale, uiMonthName, uiText, uiWeekdayName, usStateName, usdCurrencyDisplay, xShareUrl };
|
|
69695
|
+
export { ALLOCATION_CUSTOM, ASCII_SPECIAL_PASSWORD_RULES, ActionBarComponent, AddressInputComponent, AlertComponent, AppShellComponent, AudioPlayerComponent, AvatarComponent, BADGE_VARIANT_STYLES, BadgeComponent, BankAccountFormComponent, BarRowComponent, BoardCardDirective, BoardComponent, BulkMessagePanelComponent, BusinessHoursComponent, ButtonComponent, COMMON_DETAIL_GROUP_STYLES, CalendarComponent, CardListItemComponent, ChargeFormComponent, CheckboxComponent, CheckboxTrailingDirective, ChipComponent, ChipGroupComponent, ColorInputComponent, ColumnFilterComponent, ColumnsComponent, ComboboxComponent, ConfirmAfterCheckService, ConfirmOutletComponent, ConfirmService, ContactPickerComponent, ConversationRichBodyComponent, ConversationsComponent, CopyFieldComponent, DEFAULT_ALLOCATION_MODES, DEFAULT_BANK_ACCOUNT_TYPE_OPTIONS, DEFAULT_BANK_HOLDER_TYPE_OPTIONS, DEFAULT_BANK_MANDATE_TEXT, DEFAULT_EMAIL_TEMPLATE_BLOCK_GROUPS, DEFAULT_EMAIL_TEMPLATE_VARIABLE_GROUPS, DEFAULT_PASSWORD_RULES, DEFAULT_PAYMENT_METHODS, DEFAULT_REFUND_REASONS, DETAIL_CARD_HEADER_BG, DETAIL_GROUP_HEADER_BG, DROPDOWN_GROUP, DataTableComponent, DateInputComponent, DateRangePickerComponent, DatetimeInputComponent, DetailCardComponent, DiscountSelectorComponent, DividerComponent, DropdownComponent, EMAIL_BLOCK_DRAG_TYPE, EMAIL_TEMPLATE_MAX_BODY, EMAIL_TEMPLATE_MAX_TEXT, EMAIL_TEMPLATE_START_TEXT, EMBEDDING_PARENT, EmailTemplateEditorComponent, EmptyStateComponent, ErrorComponent, ErrorStateComponent, FORGEROUTE_CONFIG, FadeComponent, FileInputComponent, FillViewportDirective, FixedFooterComponent, FormColSpanDirective, FormComponent, FormRowComponent, FormSectionComponent, HintComponent, ICON_NAMES, IDX_BEHAVIOR_SIGNALS, IDX_BEHAVIOR_SIGNALS_ES, INTEGRATION_CATALOG, INTEGRATION_FIELD_DEFS, INTEGRATION_FIELD_TEXTS_ES, INTEGRATION_GROUP_LABELS_ES, INTEGRATION_GROUP_ORDER, INTEGRATION_OPTION_DEFS, INTEGRATION_OPTION_TEXTS_ES, INTEGRATION_TEXTS_ES, IconComponent, IconPickerComponent, ImageComponent, ImageGalleryComponent, ImageGalleryDialogComponent, ImagePreviewComponent, ImageRepositionComponent, ImportExportComponent, ImportSourceGridComponent, InspectionTemplatePrintService, KeypadComponent, KpiCardComponent, LAYOUT_GAP_PX, LISTED_SPECIAL_PASSWORD_RULES, ListComponent, ListItemComponent, LiveRegionComponent, MAX_EMAIL_ADDRESS_LENGTH, MAX_PAYMENT_AMOUNT, MIN_PAYMENT_AMOUNT, ModalComponent, ModuleLabelsRegistry, MoreMenuComponent, MultiSelectComponent, NOTES_MAX_LENGTH, NotesComponent, OfflineBannerComponent, OptionCardComponent, PASSWORD_MAX_BYTES, PASSWORD_MAX_LENGTH, PAYMENT_METHOD, PAYMENT_METHOD_PLUGIN, PHONE_NUMBER_AREA_CODE_LENGTH, PHONE_NUMBER_ZIP_LENGTH, PageComponent, PaginationComponent, PanelInfoListComponent, PasswordRequirementsComponent, PaymentCustomMethodComponent, PaymentMethodPlugin, PaymentSidePanelComponent, PdfHotspotComponent, PhoneNumberPickerComponent, PillTabPanelDirective, PillTabsComponent, PrintService, ProgressBarComponent, ProgressRingComponent, QrCodeComponent, QuickFilterTabsComponent, RICH_TEXT_OPTIONS, RadioComponent, RadioGroupComponent, RadioMatrixComponent, RadioOptionContentDirective, ReadonlyFieldsetComponent, RefundPanelComponent, ReminderAlertsComponent, RichTextEditorComponent, SEMANTIC_BADGE_MAP, SEMANTIC_BADGE_MAP_ES, SETUP_DONE_KEY, SETUP_INTEGRATIONS, SearchInputComponent, SectionHeaderComponent, SelectComponent, SetupWizardComponent, SetupWizardStepDirective, SetupWizardStepHeaderDirective, ShareMenuComponent, ShowComponent, SidePanelComponent, SidebarLayoutComponent, SignaturePadComponent, SkeletonComponent, SnackbarComponent, SnackbarService, StackComponent, StackedBarComponent, StarComponent, StarRatingComponent, StepperComponent, SwatchPickerComponent, TableToolbarComponent, TextComponent, TextInputComponent, TextTemplatePickerComponent, TextareaInputComponent, TimeInputComponent, TimelineComponent, ToastComponent, ToastService, ToggleBadgeComponent, ToggleComponent, TooltipDirective, TourComponent, UI_DEFAULT_LABELS, UI_LANGUAGE_AUTO, UI_LANGUAGE_CONFIG, UI_NOTES_QUEUE, US_LOCATIONS, US_STATES, US_STATE_OPTIONS, US_ZIP_PATTERN, UiFieldValidity, UiLabelsService, UiLanguageService, UiLanguageSwitcherComponent, acceptLabel, appShellGroupsStorageKey, assertModuleLabelParity, autoVariant, blockHasContent, buildDefaultSchedule, buildInspectionTemplateHtml, buildMapsEmbedUrl, buildMapsUrl, buildPreviewDocument, buildVideoBlockHtml, builtInActionIcon, businessTimeOptions, callHost, conversationDateLabel, conversationHtmlToText, conversationInitial, conversationMessageStatusLabel, conversationMessageStatusMark, createFieldReveal, createModuleLabels, createPasswordPolicyValidator, csvCell, csvSafeText, decodeFilterValues, defaultChargeAmount, defaultLabel, digitsOnly, downloadBlob, downloadCsv, emailShareUrl, emptyAddress, encodeFilterValue, encodeFilterValues, errorContextInterceptor, escapeHtml, facebookShareUrl, fileMatchesAccept, fileNameFromContentDisposition, formatAddress, formatAddressValue, formatAddressValueOneLine, formatAttachmentSize, formatCategoryLabel, formatConversationPhone, formatConversationTime, formatCurrency, formatDuration, formatEnum, formatFileSize, formatIsoDate, formatIsoDateTime, formatMessageTime, formatPhone, formatPhoneDisplay, formatShortDate, formatTime, formatTimeAgo, formatVideoDuration, getEligibleIds, getEligibleOptions, getErrorMessage, getInitials, gmailShareUrl, groupMessagesByDay, hostErrorMessage, humanReadableMessage, iconPath, injectModuleLabels, insideEditorBlock, inspectionTemplateStatusLabel, integrationGroupLabel, integrationPlainText, integrationsForApp, integrationsOnlyFor, isBlockDrag, isEmptyAddress, isValidAmount, isValidEmailAddress, isValidZip, isWebUrl, isoKey, issueToErrors, last4Error, linkedInShareUrl, loadUiLabels, localizeIntegration, localizeIntegrationFields, localizeIntegrationOptions, localizedAllocationModes, localizedDetailGroupStyle, localizedEmailBlockGroups, localizedEmailVariableGroups, localizedIdxBehaviorSignals, localizedIntegrationDescription, localizedIntegrationTitle, localizedPaymentMethods, maxLengthIssue, mergeDescribedBy, moduleLabelsTesting, normalizeAddress, normalizeHexColor, outlookShareUrl, parseAddressOneLine, parseAddressValue, parseBizHours, parseIso, parseTime, passwordByteLength, passwordMeetsRules, passwordTooLongMessage, passwordWithinLimits, periodGroup, pillTabDescriptionId, pillTabId, pillTabPanelId, pillTabTitleId, pluralize, provideForgerouteToast, provideModuleLabelOverrides, provideUiLanguage, reorderItems, requiredIssue, resolveLayoutGap, resolvePreset, safeLocale, semanticBadgeVariant, serializeBizHours, serializedTextLength, setupIntegrations, splitIntro, terminalTimeoutText, terminalVerdict, timelineItemsFromEvents, toCsv, todayInTimezone, truncateConversationText, uiCurrencyFormatter, uiFormatClock, uiFormatCurrency, uiFormatDate, uiFormatHour, uiFormatNumber, uiLocale, uiMonthName, uiText, uiWeekdayName, usStateName, usdCurrencyDisplay, xShareUrl };
|
|
69262
69696
|
|
|
69263
69697
|
//# sourceMappingURL=forgeroute-ui.mjs.map
|