88217c5e7d
* Implement a first version of WithFloating and Portal * Add outside slot for Portal * Execute computePosition from WithFloating * Set up a first example of new WithFloating with the Latex menu * Use autoUpdate in WithFloating * Create sveltelib/position * Add event-store * Use event-store in close-on-click * Implement subscribeToUpdates * Introduce sass/elevation * Split close-on-click to closing-click and subscribe-trigger * Have closing-* stores return a symbol - This way they act more of an EventEmitter than a store * Allow passing show store * Remove styling on float on updatePosition removal * Implement a nice border for dropdowns * Apply different border and box-shadow to Popover in dark/light theme * Fix Ctrl+Shift+T not working * Satisfy formatters and tests * Add copyright header * move copyright header to top (dae)
51 lines
992 B
Python
51 lines
992 B
Python
load("//ts/svelte:svelte.bzl", "compile_svelte", "svelte_check")
|
|
load("//ts:prettier.bzl", "prettier_test")
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
load("//ts:typescript.bzl", "typescript")
|
|
|
|
_ts_deps = [
|
|
"//ts/lib",
|
|
"//ts/sveltelib",
|
|
"@npm//@popperjs/core",
|
|
"@npm//@types/bootstrap",
|
|
"@npm//@floating-ui/dom",
|
|
"@npm//bootstrap",
|
|
"@npm//svelte",
|
|
]
|
|
|
|
compile_svelte(
|
|
deps = _ts_deps + ["//sass/bootstrap"],
|
|
)
|
|
|
|
typescript(
|
|
name = "components",
|
|
deps = _ts_deps + [
|
|
":svelte",
|
|
],
|
|
)
|
|
|
|
# Tests
|
|
################
|
|
|
|
prettier_test()
|
|
|
|
eslint_test()
|
|
|
|
svelte_check(
|
|
name = "svelte_check",
|
|
srcs = glob([
|
|
"*.ts",
|
|
"*.svelte",
|
|
]) + [
|
|
"//sass:base_lib",
|
|
"//sass:button_mixins_lib",
|
|
"//sass:scrollbar_lib",
|
|
"//sass:breakpoints_lib",
|
|
"//sass:elevation_lib",
|
|
"//sass/bootstrap",
|
|
"@npm//@types/bootstrap",
|
|
"//ts/lib:lib_pkg",
|
|
"//ts/sveltelib:sveltelib_pkg",
|
|
],
|
|
)
|