Initial commit: notification-elements-demo app

Interactive Angular 19 demo for @sda/notification-elements-ui with
6 sections: Bell & Feed, Notification Center, Inbox, Comments &
Threads, Mention Input, and Full-Featured layout. Includes mock
data, dark mode toggle, and real-time event log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Giuliano Silvestro
2026-02-13 21:49:19 +10:00
commit 5d0c9ec7eb
36473 changed files with 3778146 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
export declare class JsExpression {
private expression;
private _wasUsed;
private _expression?;
private _listeners;
constructor(expression: () => string);
get wasUsed(): boolean;
use(): string;
chain(use: (expr: string) => string): JsExpression;
addListener(listener: (expr: string) => void): void;
}

View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsExpression = void 0;
class JsExpression {
constructor(expression) {
this.expression = expression;
this._wasUsed = false;
this._listeners = [];
}
get wasUsed() {
return this._wasUsed;
}
use() {
if (this._wasUsed)
return this._expression;
this._wasUsed = true;
const expression = (this._expression = this.expression());
for (const listener of this._listeners)
listener(expression);
return expression;
}
chain(use) {
return new JsExpression(() => use(this.use()));
}
addListener(listener) {
this._listeners.push(listener);
}
}
exports.JsExpression = JsExpression;
//# sourceMappingURL=JsExpression.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"JsExpression.js","sourceRoot":"","sources":["../../src/util/JsExpression.ts"],"names":[],"mappings":";;;AAcA,MAAa,YAAY;IAKvB,YAAoB,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;QAJpC,aAAQ,GAAY,KAAK,CAAC;QAE1B,eAAU,GAA+B,EAAE,CAAC;IAEL,CAAC;IAEhD,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEM,GAAG;QACR,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,WAAY,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC1D,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,UAAU;YAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC7D,OAAO,UAAU,CAAC;IACpB,CAAC;IAEM,KAAK,CAAC,GAA6B;QACxC,OAAO,IAAI,YAAY,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;IAEM,WAAW,CAAC,QAAgC;QACjD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;CACF;AA1BD,oCA0BC"}

View File

@@ -0,0 +1 @@
export declare const emitStringMatch: (expression: string, offset: string, match: string) => string;

11
node_modules/@jsonjoy.com/codegen/lib/util/helpers.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitStringMatch = void 0;
const emitStringMatch = (expression, offset, match) => {
const conditions = [];
for (let i = 0; i < match.length; i++)
conditions.push(`${match.charCodeAt(i)} === ${expression}.charCodeAt(${offset} + ${i})`);
return conditions.join(' && ');
};
exports.emitStringMatch = emitStringMatch;
//# sourceMappingURL=helpers.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/util/helpers.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;IACnF,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE;QACnC,UAAU,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,UAAU,eAAe,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3F,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B"}

View File

@@ -0,0 +1 @@
export declare const normalizeAccessor: (accessor: string) => string;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeAccessor = void 0;
const normalizeAccessor = (accessor) => {
if (/^[a-z_][a-z_0-9]*$/i.test(accessor)) {
return '.' + accessor;
}
else {
return `[${JSON.stringify(accessor)}]`;
}
};
exports.normalizeAccessor = normalizeAccessor;
//# sourceMappingURL=normalizeAccessor.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"normalizeAccessor.js","sourceRoot":"","sources":["../../src/util/normalizeAccessor.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAU,EAAE;IAC5D,IAAI,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO,GAAG,GAAG,QAAQ,CAAC;IACxB,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;IACzC,CAAC;AACH,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B"}