Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/bootstrap-vue/src/icons/ drwxr-xr-x |
Viewing file: Select action/file-type: import { Vue, mergeData } from '../vue' import { NAME_ICON } from '../constants/components' import { PROP_TYPE_STRING } from '../constants/props' import { RX_ICON_PREFIX } from '../constants/regex' import { omit, sortKeys } from '../utils/object' import { makeProp, makePropsConfigurable, pluckProps } from '../utils/props' import { pascalCase, trim } from '../utils/string' import { BIconBlank } from './icons' import { props as BVIconBaseProps } from './helpers/icon-base' // --- Helper methods --- const findIconComponent = (ctx, iconName) => { if (!ctx) { return Vue.component(iconName) } const components = (ctx.$options || {}).components const iconComponent = components && components[iconName] return iconComponent || findIconComponent(ctx.$parent, iconName) } // --- Props --- const iconProps = omit(BVIconBaseProps, ['content']) export const props = makePropsConfigurable( sortKeys({ ...iconProps, icon: makeProp(PROP_TYPE_STRING) }), NAME_ICON ) // --- Main component --- // Helper BIcon component // Requires the requested icon component to be installed // @vue/component export const BIcon = /*#__PURE__*/ Vue.extend({ name: NAME_ICON, functional: true, props, render(h, { data, props, parent }) { const icon = pascalCase(trim(props.icon || '')).replace(RX_ICON_PREFIX, '') // If parent context exists, we check to see if the icon has been registered // either locally in the parent component, or globally at the `$root` level // If not registered, we render a blank icon return h( icon ? findIconComponent(parent, `BIcon${icon}`) || BIconBlank : BIconBlank, mergeData(data, { props: pluckProps(iconProps, props) }) ) } }) |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]-- |