coersystem
Version:
Library for Angular projects
72 lines (62 loc) • 1.82 kB
JavaScript
import { computed, signal } from '@angular/core';
//computed
const BREAKPOINT = computed(() => {
if (window.innerWidth < 500)
return 'mv';
else if (window.innerWidth >= 500 && window.innerWidth < 576)
return 'xs';
else if (window.innerWidth >= 576 && window.innerWidth < 768)
return 'sm';
else if (window.innerWidth >= 768 && window.innerWidth < 992)
return 'md';
else if (window.innerWidth >= 992 && window.innerWidth < 1200)
return 'lg';
else if (window.innerWidth >= 1200 && window.innerWidth < 1400)
return 'xl';
else
return 'xxl';
});
const breakpointSIGNAL = signal(BREAKPOINT());
const colorsSIGNAL = signal({
fixedColors: {
blue: '#0d6efd',
gray: '#6c757d',
green: '#198754',
yellow: '#ffc107',
red: '#dc3545',
smoke: '#f5f5f5',
black: '#252525',
orange: '#fd6031',
white: '#ffffff',
purple: '#a615bc'
},
actionColors: {
primary: '',
secondary: '',
success: '',
warning: '',
danger: '',
navigation: '',
information: ''
},
appColors: {
breadcrumbs: '',
background: '',
containers: '',
sidenav: '',
sidenavText: '',
sidenavActive: '',
toolbar: '',
toolbarText: ''
}
});
const isLoadingSIGNAL = signal(false);
const isMenuOpenSIGNAL = signal(false);
const isModalOpenSIGNAL = signal(false);
const menuSelectedSIGNAL = signal(null);
const navigationSIGNAL = signal([]);
/**
* Generated bundle index. Do not edit.
*/
export { breakpointSIGNAL, colorsSIGNAL, isLoadingSIGNAL, isMenuOpenSIGNAL, isModalOpenSIGNAL, menuSelectedSIGNAL, navigationSIGNAL };
//# sourceMappingURL=coersystem-signals.mjs.map