|
|
|
@ -144,8 +144,12 @@ import MdiLoading from '~icons/mdi/loading'
|
|
|
|
|
import MdiArrowCollapse from '~icons/mdi/arrow-collapse' |
|
|
|
|
import MdiInformationOutline from '~icons/mdi/information-outline' |
|
|
|
|
import MdiMapMarkerAlert from '~icons/mdi/map-marker-alert' |
|
|
|
|
import NcIconsRowHeightMedium from '~icons/nc-icons/row-height-medium' |
|
|
|
|
import NcIconsRowHeightShort from '~icons/nc-icons/row-height-short' |
|
|
|
|
import NcIconsRowHeightTall from '~icons/nc-icons/row-height-tall' |
|
|
|
|
import NcIconsRowHeightExtraTall from '~icons/nc-icons/row-height-extra-tall' |
|
|
|
|
|
|
|
|
|
export const iconMap = { |
|
|
|
|
export const iconMapOld = { |
|
|
|
|
info: MdiInformationOutline, |
|
|
|
|
loading: MdiLoading, |
|
|
|
|
arrowCollapse: MdiArrowCollapse, |
|
|
|
@ -284,8 +288,158 @@ export const iconMap = {
|
|
|
|
|
fileUpload: MdiFileUploadOutline, |
|
|
|
|
drag: MdiDrag, |
|
|
|
|
comment: MdiCommentTextOutline, |
|
|
|
|
heightShort: NcIconsRowHeightShort, |
|
|
|
|
heightMedium: NcIconsRowHeightMedium, |
|
|
|
|
heightTall: NcIconsRowHeightTall, |
|
|
|
|
heightExtra: NcIconsRowHeightExtraTall, |
|
|
|
|
} as const |
|
|
|
|
|
|
|
|
|
export const iconMap = { |
|
|
|
|
info: h('span', { class: 'material-symbols-outlined' }, 'info_outline'), |
|
|
|
|
loading: h('span', { class: 'material-symbols-outlined' }, 'autorenew'), |
|
|
|
|
arrowCollapse: h('span', { class: 'material-symbols-outlined' }, 'keyboard_arrow_up'), |
|
|
|
|
markerAlert: h('span', { class: 'material-symbols-outlined' }, 'warning'), |
|
|
|
|
appStore: h('span', { class: 'material-symbols-outlined' }, 'apps'), |
|
|
|
|
chevronLeft: h('span', { class: 'material-symbols-outlined' }, 'chevron_left'), |
|
|
|
|
chevronRight: h('span', { class: 'material-symbols-outlined' }, 'chevron_right'), |
|
|
|
|
imagePlaceholder: h('span', { class: 'material-symbols-outlined' }, 'insert_photo'), |
|
|
|
|
linkRemove: h('span', { class: 'material-symbols-outlined' }, 'link_off'), |
|
|
|
|
closeThick: h('span', { class: 'material-symbols-outlined' }, 'cancel'), |
|
|
|
|
role: h('span', { class: 'material-symbols-outlined' }, 'badge'), |
|
|
|
|
tableKey: h('span', { class: 'material-symbols-outlined' }, 'table_rows'), |
|
|
|
|
export: h('span', { class: 'material-symbols-outlined' }, 'get_app'), |
|
|
|
|
colInsertAfter: h('span', { class: 'material-symbols-outlined' }, 'add_box'), |
|
|
|
|
colInsertBefore: h('span', { class: 'material-symbols-outlined' }, 'indeterminate_check_box'), |
|
|
|
|
star: h('span', { class: 'material-symbols-outlined' }, 'star'), |
|
|
|
|
sortDesc: h('span', { class: 'material-symbols-outlined' }, 'sort'), |
|
|
|
|
sortAsc: h('span', { class: 'material-symbols-outlined', style: { transform: 'scaleY(-1)' } }, 'sort'), |
|
|
|
|
contentSaveExit: h('span', { class: 'material-symbols-outlined' }, 'save'), |
|
|
|
|
contentSaveStay: h('span', { class: 'material-symbols-outlined' }, 'save_as'), |
|
|
|
|
exit: h('span', { class: 'material-symbols-outlined' }, 'exit_to_app'), |
|
|
|
|
snippet: h('span', { class: 'material-symbols-outlined' }, 'code'), |
|
|
|
|
embed: h('span', { class: 'material-symbols-outlined' }, 'code'), |
|
|
|
|
list: h('span', { class: 'material-symbols-outlined' }, 'view_list'), |
|
|
|
|
cloud: h('span', { class: 'material-symbols-outlined' }, 'cloud'), |
|
|
|
|
apiAndSupport: h('span', { class: 'material-symbols-outlined' }, 'api'), |
|
|
|
|
sort: h('span', { class: 'material-symbols-outlined', style: { transform: 'scaleY(-1)' } }, 'sort'), |
|
|
|
|
translate: h('span', { class: 'material-symbols-outlined' }, 'translate'), |
|
|
|
|
preview: h('span', { class: 'material-symbols-outlined' }, 'visibility'), |
|
|
|
|
link: h('span', { class: 'material-symbols-outlined' }, 'link'), |
|
|
|
|
returnKey: h('span', { class: 'material-symbols-outlined' }, 'keyboard_return'), |
|
|
|
|
keyboard: h('span', { class: 'material-symbols-outlined' }, 'keyboard'), |
|
|
|
|
accountPlus: h('span', { class: 'material-symbols-outlined' }, 'person_add'), |
|
|
|
|
database: h('span', { class: 'material-symbols-outlined' }, 'storage'), |
|
|
|
|
discord: h('span', { class: 'material-symbols-outlined' }, 'discord'), |
|
|
|
|
reddit: h('span', { class: 'material-symbols-outlined' }, 'reddit'), |
|
|
|
|
github: h('span', { class: 'material-symbols-outlined' }, 'github'), |
|
|
|
|
twitter: h('span', { class: 'material-symbols-outlined' }, 'twitter'), |
|
|
|
|
at: h('span', { class: 'material-symbols-outlined' }, 'alternate_email'), |
|
|
|
|
plusCircle: h('span', { class: 'material-symbols-outlined' }, 'add_circle'), |
|
|
|
|
minusCircle: h('span', { class: 'material-symbols-outlined' }, 'remove_circle'), |
|
|
|
|
save: h('span', { class: 'material-symbols-outlined' }, 'save'), |
|
|
|
|
signin: h('span', { class: 'material-symbols-outlined' }, 'login'), |
|
|
|
|
signout: h('span', { class: 'material-symbols-outlined' }, 'logout'), |
|
|
|
|
lock: h('span', { class: 'material-symbols-outlined' }, 'lock'), |
|
|
|
|
account: h('span', { class: 'material-symbols-outlined' }, 'person'), |
|
|
|
|
accountCircle: h('span', { class: 'material-symbols-outlined' }, 'account_circle'), |
|
|
|
|
users: h('span', { class: 'material-symbols-outlined' }, 'people'), |
|
|
|
|
download: h('span', { class: 'material-symbols-outlined' }, 'cloud_download'), |
|
|
|
|
upload: h('span', { class: 'material-symbols-outlined' }, 'cloud_upload'), |
|
|
|
|
hook: h('span', { class: 'material-symbols-outlined' }, 'compare_arrows'), |
|
|
|
|
erd: h('span', { class: 'material-symbols-outlined' }, 'account_tree'), |
|
|
|
|
plus: h('span', { class: 'material-symbols-outlined' }, 'add'), |
|
|
|
|
search: h('span', { class: 'material-symbols-outlined' }, 'search'), |
|
|
|
|
copy: h('span', { class: 'material-symbols-outlined' }, 'content_copy'), |
|
|
|
|
duplicate: h('span', { class: 'material-symbols-outlined' }, 'file_copy'), |
|
|
|
|
clipboard: h('span', { class: 'material-symbols-outlined' }, 'content_paste'), |
|
|
|
|
settings: h('span', { class: 'material-symbols-outlined' }, 'settings'), |
|
|
|
|
image: h('span', { class: 'material-symbols-outlined' }, 'image'), |
|
|
|
|
datasource: h('span', { class: 'material-symbols-outlined' }, 'data_usage'), |
|
|
|
|
book: h('span', { class: 'material-symbols-outlined' }, 'menu_book'), |
|
|
|
|
arrowDown: h('span', { class: 'material-symbols-outlined', style: { fontSize: '.8rem' } }, 'keyboard_arrow_down'), |
|
|
|
|
arrowRight: h('span', { class: 'material-symbols-outlined' }, 'keyboard_arrow_right'), |
|
|
|
|
arrowDoubleLeft: h('span', { class: 'material-symbols-outlined' }, 'first_page'), |
|
|
|
|
threeDotVertical: h('span', { class: 'material-symbols-outlined' }, 'more_vert'), |
|
|
|
|
threeDotHorizontal: h('span', { class: 'material-symbols-outlined' }, 'more_horiz'), |
|
|
|
|
table: h('span', { class: 'material-symbols-outlined' }, 'table_chart'), |
|
|
|
|
excel: PhExcelThin, // h('span', { class: 'material-symbols-outlined' }, 'grid_on'),
|
|
|
|
|
csv: PhCsvThin, // h('span', { class: 'material-symbols-outlined' }, 'grid_on'),
|
|
|
|
|
code: h('span', { class: 'material-symbols-outlined' }, 'code'), |
|
|
|
|
delete: h('span', { class: 'material-symbols-outlined' }, 'delete'), |
|
|
|
|
edit: h('span', { class: 'material-symbols-outlined' }, 'edit'), |
|
|
|
|
lookup: h('span', { class: 'material-symbols-outlined' }, 'search'), |
|
|
|
|
text: h('span', { class: 'material-symbols-outlined' }, 'text_fields'), |
|
|
|
|
longText: h('span', { class: 'material-symbols-outlined' }, 'text_format'), |
|
|
|
|
clock: h('span', { class: 'material-symbols-outlined' }, 'access_time'), |
|
|
|
|
web: h('span', { class: 'material-symbols-outlined' }, 'web'), |
|
|
|
|
boolean: h('span', { class: 'material-symbols-outlined' }, 'check_box'), |
|
|
|
|
calendar: h('span', { class: 'material-symbols-outlined' }, 'event_note'), |
|
|
|
|
singleSelect: h('span', { class: 'material-symbols-outlined' }, 'radio_button_checked'), |
|
|
|
|
multiSelect: h('span', { class: 'material-symbols-outlined' }, 'check_box_outline_blank'), |
|
|
|
|
datetime: h('span', { class: 'material-symbols-outlined' }, 'date_range'), |
|
|
|
|
geoData: h('span', { class: 'material-symbols-outlined' }, 'place'), |
|
|
|
|
rating: h('span', { class: 'material-symbols-outlined' }, 'star_half'), |
|
|
|
|
generic: h('span', { class: 'material-symbols-outlined' }, 'toc'), |
|
|
|
|
number: h('span', { class: 'material-symbols-outlined' }, 'looks_one'), |
|
|
|
|
email: h('span', { class: 'material-symbols-outlined' }, 'email'), |
|
|
|
|
sendEmail: h('span', { class: 'material-symbols-outlined' }, 'email'), |
|
|
|
|
currency: h('span', { class: 'material-symbols-outlined' }, 'attach_money'), |
|
|
|
|
percent: h('span', { class: 'material-symbols-outlined' }, 'percent'), |
|
|
|
|
decimal: h('span', { class: 'material-symbols-outlined' }, 'functions'), |
|
|
|
|
specificDbType: h('span', { class: 'material-symbols-outlined' }, 'storage'), |
|
|
|
|
duration: h('span', { class: 'material-symbols-outlined' }, 'accesstime'), |
|
|
|
|
phone: h('span', { class: 'material-symbols-outlined' }, 'phone'), |
|
|
|
|
formula: h('span', { class: 'material-symbols-outlined' }, 'function'), |
|
|
|
|
function: h('span', { class: 'material-symbols-outlined' }, 'functions'), |
|
|
|
|
key: h('span', { class: 'material-symbols-outlined' }, 'key'), |
|
|
|
|
json: h('span', { class: 'material-symbols-outlined' }, 'code'), |
|
|
|
|
qrCode: h('span', { class: 'material-symbols-outlined' }, 'qrcode'), |
|
|
|
|
qrCodeScan: h('span', { class: 'material-symbols-outlined' }, 'qrcodescanner'), |
|
|
|
|
barCode: h('span', { class: 'material-symbols-outlined' }, 'barcode'), |
|
|
|
|
calculator: h('span', { class: 'material-symbols-outlined' }, 'calculator'), |
|
|
|
|
rollup: h('span', { class: 'material-symbols-outlined' }, 'aggregate'), |
|
|
|
|
eye: h('span', { class: 'material-symbols-outlined' }, 'visibility'), |
|
|
|
|
eyeSlash: h('span', { class: 'material-symbols-outlined' }, 'visibility_off'), |
|
|
|
|
expand: h('span', { class: 'material-symbols-outlined' }, 'open_in_full'), |
|
|
|
|
check: h('span', { class: 'material-symbols-outlined' }, 'check'), |
|
|
|
|
acl: h('span', { class: 'material-symbols-outlined' }, 'shield'), |
|
|
|
|
sync: h('span', { class: 'material-symbols-outlined' }, 'sync'), |
|
|
|
|
warning: h('span', { class: 'material-symbols-outlined' }, 'warning'), |
|
|
|
|
share: h('span', { class: 'material-symbols-outlined' }, 'share'), |
|
|
|
|
reload: h('span', { class: 'material-symbols-outlined ' }, 'refresh'), |
|
|
|
|
xml: h('span', { class: 'material-symbols-outlined' }, 'code'), |
|
|
|
|
airtable: h('span', { class: 'material-symbols-outlined' }, 'grid_on'), |
|
|
|
|
grid: h('span', { class: 'material-symbols-outlined' }, 'grid_on'), |
|
|
|
|
gallery: h('span', { class: 'material-symbols-outlined' }, 'view_module'), |
|
|
|
|
form: h('span', { class: 'material-symbols-outlined' }, 'receipt'), |
|
|
|
|
map: h('span', { class: 'material-symbols-outlined' }, 'map'), |
|
|
|
|
kanban: h('span', { class: 'material-symbols-outlined' }, 'view_column'), |
|
|
|
|
view: h('span', { class: 'material-symbols-outlined' }, 'view_list'), |
|
|
|
|
rowHeight: h('span', { class: 'material-symbols-outlined' }, 'height'), |
|
|
|
|
filter: h('span', { class: 'material-symbols-outlined' }, 'filter_list'), |
|
|
|
|
closeCircle: h('span', { class: 'material-symbols-outlined' }, 'cancel'), |
|
|
|
|
closeBox: h('span', { class: 'material-symbols-outlined' }, 'close'), |
|
|
|
|
close: h('span', { class: 'material-symbols-outlined' }, 'close'), |
|
|
|
|
openInNew: h('span', { class: 'material-symbols-outlined' }, 'open_in_new'), |
|
|
|
|
mm: h('span', { class: 'material-symbols-outlined' }, 'table_rows'), |
|
|
|
|
hm: h('span', { class: 'material-symbols-outlined' }, 'table_rows'), |
|
|
|
|
bt: h('span', { class: 'material-symbols-outlined' }, 'subdirectory_arrow_right'), |
|
|
|
|
passwordChange: h('span', { class: 'material-symbols-outlined' }, 'vpn_key'), |
|
|
|
|
mapMarker: h('span', { class: 'material-symbols-outlined' }, 'room'), |
|
|
|
|
currentLocation: h('span', { class: 'material-symbols-outlined' }, 'my_location'), |
|
|
|
|
plusThick: h('span', { class: 'material-symbols-outlined' }, 'add_box'), |
|
|
|
|
dragVertical: h('span', { class: 'material-symbols-outlined' }, 'drag_indicator'), |
|
|
|
|
databaseSync: h('span', { class: 'material-symbols-outlined' }, 'sync_alt'), |
|
|
|
|
fileUpload: h('span', { class: 'material-symbols-outlined' }, 'cloud_upload'), |
|
|
|
|
drag: h('span', { class: 'material-symbols-outlined' }, 'drag_handle'), |
|
|
|
|
comment: h('span', { class: 'material-symbols-outlined' }, 'comment'), |
|
|
|
|
|
|
|
|
|
heightShort: NcIconsRowHeightShort, |
|
|
|
|
heightMedium: NcIconsRowHeightMedium, |
|
|
|
|
heightTall: NcIconsRowHeightTall, |
|
|
|
|
heightExtra: NcIconsRowHeightExtraTall, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const getMdiIcon = (type: string): any => { |
|
|
|
|
switch (type) { |
|
|
|
|
case 'mdi-check-bold': |
|
|
|
|