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 @@
export * from './v5';

View File

@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./v5"), exports);

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => Reference;

View File

@@ -0,0 +1,40 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return { val };
let obj;
let key;
let indexOfSlash = 0;
let indexAfterSlash = 1;
while (indexOfSlash > -1) {
indexOfSlash = pointer.indexOf('/', indexAfterSlash);
const component = indexOfSlash > -1 ? pointer.substring(indexAfterSlash, indexOfSlash) : pointer.substring(indexAfterSlash);
indexAfterSlash = indexOfSlash + 1;
key = (0, util_1.unescapeComponent)(component);
obj = val;
if (isArray(obj)) {
if (key === '-')
key = obj.length;
else {
if (!(0, util_1.isValidIndex)(key))
throw new Error('INVALID_INDEX');
key = Number(key);
if (key < 0)
throw new Error('INVALID_INDEX');
}
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else if (typeof obj === 'object' && !!obj) {
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else
throw new Error('NOT_FOUND');
}
return { val, obj, key };
};
exports.findByPointer = findByPointer;

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => Reference;

View File

@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return { val };
let obj;
let key;
let indexOfSlash = 0;
pointer = pointer.substr(1);
while (pointer) {
indexOfSlash = pointer.indexOf('/');
let component;
if (indexOfSlash > -1) {
component = pointer.substring(0, indexOfSlash);
pointer = pointer.substring(indexOfSlash + 1);
}
else {
component = pointer;
pointer = '';
}
key = (0, util_1.unescapeComponent)(component);
obj = val;
if (isArray(obj)) {
if (key === '-')
key = obj.length;
else {
if (!(0, util_1.isValidIndex)(key))
throw new Error('INVALID_INDEX');
key = Number(key);
if (key < 0)
throw new Error('INVALID_INDEX');
}
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else if (typeof obj === 'object' && !!obj) {
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else
throw new Error('NOT_FOUND');
}
return { val, obj, key };
};
exports.findByPointer = findByPointer;

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => Reference;

View File

@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return { val };
let obj;
let key;
let indexOfSlash = 0;
pointer = pointer.substr(1);
while (pointer) {
indexOfSlash = pointer.indexOf('/');
let component;
if (indexOfSlash > -1) {
component = pointer.substring(0, indexOfSlash);
pointer = pointer.substring(indexOfSlash + 1);
}
else {
component = pointer;
pointer = '';
}
key = (0, util_1.unescapeComponent)(component);
obj = val;
if (isArray(obj)) {
if (key === '-')
key = obj.length;
else {
if (!(0, util_1.isInteger)(key))
throw new Error('INVALID_INDEX');
key = Number(key);
if (key < 0)
throw new Error('INVALID_INDEX');
}
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else if (typeof obj === 'object' && !!obj) {
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, String(key)) ? obj[key] : undefined;
}
else
throw new Error('NOT_FOUND');
}
return { val, obj, key };
};
exports.findByPointer = findByPointer;

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => Reference;

View File

@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return { val };
let obj;
let key;
let indexOfSlash = 0;
let indexAfterSlash = 1;
while (indexOfSlash > -1) {
indexOfSlash = pointer.indexOf('/', indexAfterSlash);
const component = indexOfSlash > -1 ? pointer.substring(indexAfterSlash, indexOfSlash) : pointer.substring(indexAfterSlash);
indexAfterSlash = indexOfSlash + 1;
key = (0, util_1.unescapeComponent)(component);
obj = val;
if (isArray(obj)) {
if (key === '-')
key = obj.length;
else {
// if (!isValidIndex(key)) throw new Error('INVALID_INDEX');
key = ~~key;
if (key < 0)
throw new Error('INVALID_INDEX');
}
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, key) ? obj[~~key] : undefined;
}
else if (typeof obj === 'object' && !!obj) {
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, key) ? obj[key] : undefined;
}
else
throw new Error('NOT_FOUND');
}
return { val, obj, key };
};
exports.findByPointer = findByPointer;

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => Reference;

View File

@@ -0,0 +1,43 @@
"use strict";
/* tslint:disable no-string-throw */
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return { val };
let obj;
let key;
let indexOfSlash = 0;
let indexAfterSlash = 1;
while (indexOfSlash > -1) {
indexOfSlash = pointer.indexOf('/', indexAfterSlash);
key = indexOfSlash > -1 ? pointer.substring(indexAfterSlash, indexOfSlash) : pointer.substring(indexAfterSlash);
indexAfterSlash = indexOfSlash + 1;
obj = val;
if (isArray(obj)) {
const length = obj.length;
if (key === '-')
key = length;
else {
const key2 = ~~key;
if ('' + key2 !== key)
throw new Error('INVALID_INDEX');
key = key2;
if (key < 0)
throw 'INVALID_INDEX';
}
val = obj[key];
}
else if (typeof obj === 'object' && !!obj) {
key = (0, util_1.unescapeComponent)(key);
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, key) ? obj[key] : undefined;
}
else
throw 'NOT_FOUND';
}
return { val, obj, key };
};
exports.findByPointer = findByPointer;

View File

@@ -0,0 +1,2 @@
import type { Reference } from '../find';
export declare const findByPointer: (pointer: string, val: unknown) => [Reference["obj"], Reference["key"]];

View File

@@ -0,0 +1,39 @@
"use strict";
/* tslint:disable no-string-throw */
Object.defineProperty(exports, "__esModule", { value: true });
exports.findByPointer = void 0;
const hasOwnProperty_1 = require("@jsonjoy.com/util/lib/hasOwnProperty");
const util_1 = require("../util");
const { isArray } = Array;
const findByPointer = (pointer, val) => {
if (!pointer)
return [val, ''];
let obj;
let key;
let indexOfSlash = 0;
let indexAfterSlash = 1;
while (indexOfSlash > -1) {
indexOfSlash = pointer.indexOf('/', indexAfterSlash);
key = indexOfSlash > -1 ? pointer.substring(indexAfterSlash, indexOfSlash) : pointer.substring(indexAfterSlash);
indexAfterSlash = indexOfSlash + 1;
obj = val;
if (isArray(obj)) {
if (key === '-')
key = obj.length;
else {
key = ~~key;
if (key < 0)
throw 'INVALID_INDEX';
}
val = obj[key];
}
else if (typeof obj === 'object' && !!obj) {
key = (0, util_1.unescapeComponent)(key);
val = (0, hasOwnProperty_1.hasOwnProperty)(obj, key) ? obj[key] : undefined;
}
else
throw 'NOT_FOUND';
}
return [obj, key];
};
exports.findByPointer = findByPointer;