Icard/angular-clarity-master(work.../node_modules/primeng/esm2022/utils/uniquecomponentid.mjs

6 lines
797 B
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
export var lastId = 0;
export function UniqueComponentId(prefix = 'pn_id_') {
lastId++;
return `${prefix}${lastId}`;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pcXVlY29tcG9uZW50aWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvdXRpbHMvdW5pcXVlY29tcG9uZW50aWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLENBQUMsQ0FBQztBQUV0QixNQUFNLFVBQVUsaUJBQWlCLENBQUMsTUFBTSxHQUFHLFFBQVE7SUFDL0MsTUFBTSxFQUFFLENBQUM7SUFFVCxPQUFPLEdBQUcsTUFBTSxHQUFHLE1BQU0sRUFBRSxDQUFDO0FBQ2hDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdmFyIGxhc3RJZCA9IDA7XG5cbmV4cG9ydCBmdW5jdGlvbiBVbmlxdWVDb21wb25lbnRJZChwcmVmaXggPSAncG5faWRfJykge1xuICAgIGxhc3RJZCsrO1xuXG4gICAgcmV0dXJuIGAke3ByZWZpeH0ke2xhc3RJZH1gO1xufVxuIl19