bs_lib-8.x-1.0-alpha3/bs_lib.libraries.yml

bs_lib.libraries.yml
# Bootstrap 5 plugins and components definitions.
#
# NOTE that bs_lib does not define CSS components, that is a job of a bs_base
# theme. This is te reason that all bs_lib libraries for BS5 components do not
# use dependency to bs_lib/bootstrap_css for CSS because we need an easy way to
# define/override CSS component part in child themes. Again this is the job of
# bs_base theme and child themes based on bs_base.

# Global Bootstrap libraries.
bootstrap_css:
  css:
    theme:
      /libraries/bootstrap/dist/css/bootstrap.min.css: {}
bootstrap_js:
  js:
    /libraries/bootstrap/dist/js/bootstrap.min.js: {}
  dependencies:
    - bs_lib/popper

# Bootstrap dom plugins.
dom_data:
  js:
    /libraries/bootstrap/js/dist/dom/data.js: {}
dom_event-handler:
  js:
    /libraries/bootstrap/js/dist/dom/event-handler.js: {}
  dependencies:
    - bs_lib/util_index
dom_manipulator:
  js:
    /libraries/bootstrap/js/dist/dom/manipulator.js: {}
dom_selector-engine:
  js:
    /libraries/bootstrap/js/dist/dom/selector-engine.js: {}
  dependencies:
    - bs_lib/util_index

# Bootstrap utils plugins.
util_backdrop:
  js:
    /libraries/bootstrap/js/dist/util/backdrop.js: {}
  dependencies:
    - bs_lib/dom_event-handler
    - bs_lib/util_config
    - bs_lib/util_index
util_component-functions:
  js:
    /libraries/bootstrap/js/dist/util/component-functions.js: {}
  dependencies:
    - bs_lib/dom_event-handler
    - bs_lib/dom_selector-engine
    - bs_lib/util_index
util_config:
  js:
    /libraries/bootstrap/js/dist/util/config.js: { }
  dependencies:
    - bs_lib/dom_manipulator
    - bs_lib/util_index
util_focustrap:
  js:
    /libraries/bootstrap/js/dist/util/focustrap.js: {}
  dependencies:
    - bs_lib/dom_event-handler
    - bs_lib/dom_selector-engine
    - bs_lib/util_config
util_index:
  js:
    /libraries/bootstrap/js/dist/util/index.js: {}
util_sanitizer:
  js:
    /libraries/bootstrap/js/dist/util/sanitizer.js: {}
util_scrollbar:
  js:
    /libraries/bootstrap/js/dist/util/scrollbar.js: {}
  dependencies:
    - bs_lib/dom_manipulator
    - bs_lib/dom_selector-engine
    - bs_lib/util_index
util_swipe:
  js:
    /libraries/bootstrap/js/dist/util/swipe.js: {}
  dependencies:
    - bs_lib/dom_event-handler
    - bs_lib/util_config
    - bs_lib/util_index
util_template-factory:
  js:
    /libraries/bootstrap/js/dist/util/template-factory.js: {}
  dependencies:
    - bs_lib/dom_selector-engine
    - bs_lib/util_config
    - bs_lib/util_sanitizer
    - bs_lib/util_index

# Bootstrap components.
accordion:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  dependencies:
    - bs_lib/collapse
alert:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/alert.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/close
    - bs_lib/util_component-functions
badge:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
breadcrumb:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
base-component:
  js:
    /libraries/bootstrap/js/dist/base-component.js: {}
  dependencies:
    - bs_lib/dom_data
    - bs_lib/dom_event-handler
    - bs_lib/util_config
    - bs_lib/util_index
button-group:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
# BS toggle button plugin.
button:
  js:
    /libraries/bootstrap/js/dist/button.js: {}
  dependencies:
    - bs_lib/base_component
card:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
carousel:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/carousel.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_manipulator
    - bs_lib/dom_selector-engine
    - bs_lib/util_swipe
close:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
collapse:
  js:
    /libraries/bootstrap/js/dist/collapse.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_selector-engine
    - bs_lib/transitions
dropdown:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/dropdown.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_manipulator
    - bs_lib/dom_selector-engine
    - bs_lib/popper
list-group:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
modal:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/modal.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_selector-engine
    - bs_lib/util_backdrop
    - bs_lib/util_component-functions
    - bs_lib/util_focustrap
    - bs_lib/util_scrollbar
nav:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
navbar:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
offcanvas:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/offcanvas.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_selector-engine
    - bs_lib/util_backdrop
    - bs_lib/util_component-functions
    - bs_lib/util_focustrap
    - bs_lib/util_scrollbar
pagination:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
placeholders:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
popover:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/popover.js: {}
  dependencies:
    - bs_lib/tooltip
    - bs_lib/util_index
progress:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
scrollspy:
  js:
    /libraries/bootstrap/js/dist/scrollspy.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_selector-engine
spinners:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
tab:
  js:
    /libraries/bootstrap/js/dist/tab.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_selector-engine
toasts:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/toast.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/util_component-functions
tooltip:
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }
  js:
    /libraries/bootstrap/js/dist/tooltip.js: {}
  dependencies:
    - bs_lib/base-component
    - bs_lib/dom_manipulator
    - bs_lib/popper
    - bs_lib/util_sanitizer
    - bs_lib/util_template-factory
transitions:
  css:
    base:
      /libraries/bootstrap/dist/css/bootstrap.css: { weight: 10 }

# Bootstrap dependencies.
popper:
  js:
    /libraries/popper/dist/umd/popper.min.js: {}

# Bootstrap 4 OLD extensions.
# TODO - replace with https://getbootstrap.com/docs/5.3/components/offcanvas/
# @see https://www.drupal.org/project/bs_base/issues/3008293.
jasny-bootstrap-offcanvas:
  js:
    /libraries/jasny-bootstrap/js/offcanvas.js: {}
  dependencies:
    - core/jquery

# Custom bs_lib libraries.

anchor_scroll:
  js:
    js/anchor-scroll.js: {}
  dependencies:
    - core/drupalSettings
    - core/once

scroll_to_top:
  css:
    component:
      css/scroll-to-top.css: { weight: 10 }
  js:
    js/scroll-to-top.js: {}
  dependencies:
    - core/jquery
    - core/once

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc