-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* inputs-as-litelement: X11TEST: play-notes.json: adjust recording for new web components ASE: server.cc: listen on "notify" emissions from properties ASE: properties.cc: fix notifications, emit notify:identifier UI: util.js: turn xprop.value_ into a reactive property UI: b/choiceinput.js: take b-objecteditor into account in CSS UI: b/pro-input.vue: use @valuechange on b-choiceinput UI: b/preferencesdialog.vue: use b-objecteditor UI: util.js: avoid extending the same property twice UI: util.js: export fullstop() UI: Makefile.mk: use tsc with --pretty false only inside emacs UI: b/objecteditor.js: port to LitComponent * Turn into shadowless component * Properly prefix CSS classes * Listen on and handle @valuechange events * Do not freeze extended properties that we keep mutating * Remove old resize blocker logic UI: startup.js: load basic custom components early on UI: b/basics.js: move h-flex, v-flex, c-grid, push-button here, shadowless Make these simple basic containers shadowless, i.e. without shadow root. UI: b/pro-input.vue: add support for b-choiceinput UI: little.js: export 'nothing' from Lit UI: types.d.ts: add debug() global UI: b/fed-object.vue: add support for b-choiceinput UI: b/choiceinput.js: port to LitComponent, render on demand only UI: b/tracklist.js: fix stacking of top border shadow UI: b/switchinput.js: allow LEFT/RIGHT/UP/DOWN to toggle UI: b/fed-object.vue: add support for b-switchinput UI: b/switchinput.js: port to LitComponent UI: types.d.ts: declare global CONFIG UI: b/fed-object.vue: add support for b-numberinput UI: b/numberinput.js: simplify and fix sizing UI: b/numberinput.js: port to LitComponent UI: b/textinput.js: dispatch value changes as valuechange "event" Signed-off-by: Tim Janik <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,145 additions
and
955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0 | ||
// @ts-check | ||
|
||
import { JsExtract } from '../little.js'; | ||
import * as Util from '../util.js'; | ||
|
||
// <STYLE/> | ||
const STYLE_URL = await JsExtract.css_url (import.meta); | ||
JsExtract.scss` | ||
@import 'mixins.scss'; | ||
h-flex { | ||
display: flex; flex-basis: auto; flex-direction: row; | ||
flex-wrap: nowrap; align-items: stretch; align-content: stretch; } | ||
h-flex[inline] { display: inline-flex; } | ||
v-flex { | ||
display: flex; flex-basis: auto; flex-direction: column; | ||
flex-wrap: nowrap; align-items: stretch; align-content: stretch; } | ||
v-flex[inline] { display: inline-flex; } | ||
c-grid { display: grid; } | ||
c-grid[inline] { display: inline-grid; } | ||
`; | ||
|
||
/** # PUSH-BUTTON - wrapper for an ordinary HTMLElement */ | ||
class PushButton extends HTMLElement { | ||
constructor() { super(); } | ||
connectedCallback() | ||
{ | ||
// LitCompnent: super.connectedCallback(); | ||
Util.add_style_sheet (this, STYLE_URL); | ||
} | ||
} | ||
customElements.define ('push-button', PushButton); | ||
|
||
// Util.add_style_sheet (this, STYLE_URL); | ||
|
||
/** # B-HFLEX | ||
* Horizontal [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) container element. | ||
*/ | ||
class HFlex extends HTMLElement { | ||
constructor() { super(); } | ||
connectedCallback() | ||
{ | ||
// LitCompnent: super.connectedCallback(); | ||
Util.add_style_sheet (this, STYLE_URL); | ||
} | ||
} | ||
customElements.define ('h-flex', HFlex); | ||
|
||
/** # B-VFLEX | ||
* Vertical [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) container element. | ||
*/ | ||
class VFlex extends HTMLElement { | ||
constructor() { super(); } | ||
connectedCallback() | ||
{ | ||
// LitCompnent: super.connectedCallback(); | ||
Util.add_style_sheet (this, STYLE_URL); | ||
} | ||
} | ||
customElements.define ('v-flex', VFlex); | ||
|
||
/** # B-CGRID | ||
* Simple [grid](https://developer.mozilla.org/en-US/docs/Web/CSS/grid) container element. | ||
* See also [Grid Container](https://www.w3.org/TR/css-grid-1/#grid-containers) | ||
* [Grid visual cheatsheet](http://grid.malven.co/) | ||
*/ | ||
class CGrid extends HTMLElement { | ||
constructor() { super(); } | ||
connectedCallback() | ||
{ | ||
// LitCompnent: super.connectedCallback(); | ||
Util.add_style_sheet (this, STYLE_URL); | ||
} | ||
} | ||
customElements.define ('c-grid', CGrid); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.