@omicronenergy/oscd-ui 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +43 -0
- package/custom-elements.json +2314 -1164
- package/dist/ace-editor/OscdAceEditor.d.ts +44 -4
- package/dist/ace-editor/OscdAceEditor.js +248 -4
- package/dist/ace-editor/OscdAceEditor.js.map +1 -1
- package/dist/ace-editor/OscdAceEditor.spec.js +114 -2
- package/dist/ace-editor/OscdAceEditor.spec.js.map +1 -1
- package/dist/ace-editor/OscdAceEditor.stories.d.ts +10 -28
- package/dist/ace-editor/OscdAceEditor.stories.js +76 -20
- package/dist/ace-editor/OscdAceEditor.stories.js.map +1 -1
- package/dist/ace-editor/internal/AceEditor.d.ts +5 -3
- package/dist/ace-editor/internal/AceEditor.js +22 -15
- package/dist/ace-editor/internal/AceEditor.js.map +1 -1
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js +10 -4
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js.map +1 -1
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.spec.d.ts +1 -0
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.spec.js +33 -0
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.spec.js.map +1 -0
- package/dist/ace-editor/sample-scl.d.ts +9 -0
- package/dist/ace-editor/sample-scl.js +297 -0
- package/dist/ace-editor/sample-scl.js.map +1 -0
- package/dist/action-pane/oscd-action-pane.stories.d.ts +1 -1
- package/dist/action-tree/oscd-action-tree.stories.d.ts +1 -1
- package/dist/button/OscdElevatedButton.stories.d.ts +1 -1
- package/dist/button/OscdFilledButton.stories.d.ts +1 -1
- package/dist/button/OscdFilledTonalButton.stories.d.ts +1 -1
- package/dist/button/OscdOutlinedButton.stories.d.ts +1 -1
- package/dist/button/OscdTextButton.stories.d.ts +1 -1
- package/dist/checkbox/OscdCheckbox.stories.d.ts +1 -1
- package/dist/chips/OscdAssistChip.stories.d.ts +1 -1
- package/dist/chips/OscdChipSet.stories.d.ts +1 -1
- package/dist/chips/OscdFilterChip.stories.d.ts +1 -1
- package/dist/chips/OscdInputChip.stories.d.ts +1 -1
- package/dist/chips/OscdSuggestionChip.stories.d.ts +1 -1
- package/dist/dialog/OscdDialog.js +1 -1
- package/dist/dialog/OscdDialog.js.map +1 -1
- package/dist/dialog/OscdDialog.stories.d.ts +1 -1
- package/dist/dialog/OscdDialogStacking.stories.d.ts +5 -0
- package/dist/dialog/OscdDialogStacking.stories.js +112 -0
- package/dist/dialog/OscdDialogStacking.stories.js.map +1 -0
- package/dist/divider/OscdDivider.stories.d.ts +1 -1
- package/dist/elevation/OscdElevation.stories.d.ts +1 -1
- package/dist/fab/OscdBrandedFab.stories.d.ts +1 -1
- package/dist/fab/OscdFab.stories.d.ts +1 -1
- package/dist/field/OscdFilledField.stories.d.ts +1 -1
- package/dist/field/OscdOutlinedField.stories.d.ts +1 -1
- package/dist/focus/OscdFocusRing.stories.d.ts +1 -1
- package/dist/icon/OscdIcon.d.ts +1 -1
- package/dist/icon/OscdIcon.js +12 -1
- package/dist/icon/OscdIcon.js.map +1 -1
- package/dist/icon/OscdIcon.stories.d.ts +1 -1
- package/dist/icon/OscdIconRendering.spec.d.ts +1 -0
- package/dist/icon/OscdIconRendering.spec.js +66 -0
- package/dist/icon/OscdIconRendering.spec.js.map +1 -0
- package/dist/iconbutton/OscdFilledIconButton.stories.d.ts +1 -1
- package/dist/iconbutton/OscdFilledTonalIconButton.stories.d.ts +1 -1
- package/dist/iconbutton/OscdIconButton.stories.d.ts +1 -1
- package/dist/iconbutton/OscdOutlinedIconButton.stories.d.ts +1 -1
- package/dist/labs/badge/OscdBadge.stories.d.ts +1 -1
- package/dist/labs/card/OscdElevatedCard.stories.d.ts +1 -1
- package/dist/labs/card/OscdFilledCard.stories.d.ts +1 -1
- package/dist/labs/card/OscdOutlinedCard.stories.d.ts +1 -1
- package/dist/labs/item/OscdItem.stories.d.ts +1 -1
- package/dist/labs/navigationbar/OscdNavigationBar.stories.d.ts +1 -1
- package/dist/labs/navigationtab/OscdNavigationTab.stories.d.ts +1 -1
- package/dist/list/OscdList.stories.d.ts +1 -1
- package/dist/list/OscdListItem.stories.d.ts +1 -1
- package/dist/menu/OscdMenuItem.stories.d.ts +1 -1
- package/dist/progress/OscdLinearProgress.stories.d.ts +1 -1
- package/dist/ripple/OscdRipple.stories.d.ts +1 -1
- package/dist/scl-editor/OscdSclEditor.d.ts +22 -0
- package/dist/scl-editor/OscdSclEditor.js +62 -0
- package/dist/scl-editor/OscdSclEditor.js.map +1 -0
- package/dist/scl-editor/OscdSclEditor.spec.d.ts +1 -0
- package/dist/scl-editor/OscdSclEditor.spec.js +61 -0
- package/dist/scl-editor/OscdSclEditor.spec.js.map +1 -0
- package/dist/scl-editor/OscdSclEditor.stories.d.ts +13 -0
- package/dist/scl-editor/OscdSclEditor.stories.js +87 -0
- package/dist/scl-editor/OscdSclEditor.stories.js.map +1 -0
- package/dist/scl-editor/internal/namespace-utils.d.ts +13 -0
- package/dist/scl-editor/internal/namespace-utils.js +84 -0
- package/dist/scl-editor/internal/namespace-utils.js.map +1 -0
- package/dist/scl-editor/internal/namespace-utils.spec.d.ts +1 -0
- package/dist/scl-editor/internal/namespace-utils.spec.js +67 -0
- package/dist/scl-editor/internal/namespace-utils.spec.js.map +1 -0
- package/dist/scl-editor/oscd-scl-editor.d.ts +2 -0
- package/dist/scl-editor/oscd-scl-editor.js +4 -0
- package/dist/scl-editor/oscd-scl-editor.js.map +1 -0
- package/dist/scl-icon/internal/icons/icons.d.ts +1 -1
- package/dist/scl-icon/internal/icons/icons.js +1 -1
- package/dist/scl-icon/internal/icons/icons.js.map +1 -1
- package/dist/scl-icon/internal/scl-icons.d.ts +1 -1
- package/dist/scl-icon/internal/scl-icons.js +1 -1
- package/dist/scl-icon/internal/scl-icons.js.map +1 -1
- package/dist/scl-textfield/oscd-scl-text-field.stories.d.ts +1 -1
- package/dist/search-field/oscd-outlined-search-field.stories.d.ts +1 -1
- package/dist/selection-list/oscd-selection-list.stories.d.ts +1 -1
- package/dist/slider/OscdSlider.stories.d.ts +1 -1
- package/dist/switch/OscdSwitch.stories.d.ts +1 -1
- package/dist/tabs/OscdTabs.stories.d.ts +1 -1
- package/dist/textfield/OscdFilledTextField.stories.d.ts +1 -1
- package/dist/textfield/OscdOutlinedTextField.stories.d.ts +1 -1
- package/dist/utils/storybook/story-overrides/icon-overrides.d.ts +1 -0
- package/dist/utils/storybook/story-overrides/icon-overrides.js +61 -5
- package/dist/utils/storybook/story-overrides/icon-overrides.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
For the planned `0.1.0` breaking theming changes, see the
|
|
4
4
|
[migration guide](./MIGRATION-0.1.0.md).
|
|
5
5
|
|
|
6
|
+
## [0.1.3](https://github.com/OMICRONEnergyOSS/oscd-ui/compare/oscd-ui-v0.1.2...oscd-ui-v0.1.3) (2026-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **editors:** reconcile Ace and SCL editors without input resets ([bea55b6](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/bea55b646e0976ab0ee1a733ee5d5e9ae36a8364))
|
|
12
|
+
|
|
13
|
+
## [0.1.2](https://github.com/OMICRONEnergyOSS/oscd-ui/compare/oscd-ui-v0.1.1...oscd-ui-v0.1.2) (2026-10-16)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **dialog:** add stacked dialog story and update base styles ([ad152db](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/ad152dbc2fad18bb7035a1dc3ddb8008aac2365c))
|
|
19
|
+
* **icon:** size SCL SVGs and remove scl warning icon name conflict ([64689d3](https://github.com/OMICRONEnergyOSS/oscd-ui/commit/64689d3a4bc5a116559ec81b672b8bfcee525fb9))
|
|
20
|
+
|
|
6
21
|
## [0.1.1](https://github.com/OMICRONEnergyOSS/oscd-ui/compare/oscd-ui-v0.1.0...oscd-ui-v0.1.1) (2026-10-02)
|
|
7
22
|
|
|
8
23
|
|
package/README.md
CHANGED
|
@@ -28,6 +28,49 @@ Use the following link in your html to make use Material icons with these compon
|
|
|
28
28
|
The full set of available Material Symbol icons can be found here:
|
|
29
29
|
https://fonts.google.com/icons
|
|
30
30
|
|
|
31
|
+
`<oscd-icon>` accepts Material Symbols names (for example, `warning`) and SCL
|
|
32
|
+
icon names (for example, `gooseIcon`). Set `--md-icon-size` to a CSS length to
|
|
33
|
+
resize either kind, and use CSS `color` for monochrome icons; there is no
|
|
34
|
+
`--md-icon-color` token. The legacy SVG warning is named `scl-warning`, including
|
|
35
|
+
in `<oscd-scl-icon>` and the exported SCL icon helpers. Replace previous SCL
|
|
36
|
+
`warning` lookups with `scl-warning` if you need that SVG rather than the stock
|
|
37
|
+
Material symbol.
|
|
38
|
+
|
|
39
|
+
The **Icons / Icon** Storybook story exposes the size in pixels with a number
|
|
40
|
+
control and foreground/background dropdowns for all public palette color slots.
|
|
41
|
+
The selected slots follow the active Storybook palette.
|
|
42
|
+
|
|
43
|
+
## Text and SCL element editors
|
|
44
|
+
|
|
45
|
+
Use `ace-editor/OscdAceEditor.js` for string `.value` input and live text output.
|
|
46
|
+
Use `scl-editor/OscdSclEditor.js` for `.element` input/output: it preserves the
|
|
47
|
+
element's in-scope namespaces and parses a new element without modifying the
|
|
48
|
+
original document. Its inherited `.value` exposes the editable text.
|
|
49
|
+
`element` returns `null` for empty or malformed text; validation checks exactly
|
|
50
|
+
one well-formed element, **not SCL schema conformance**. Empty input is allowed.
|
|
51
|
+
The obsolete `xml-editor` export paths did not contain shipped modules; use
|
|
52
|
+
`scl-editor` instead.
|
|
53
|
+
|
|
54
|
+
Both components share Ace, persisted settings, an optional `.toolbar`, and native
|
|
55
|
+
form association. Ace accepts an optional `.validator` callback returning `null`
|
|
56
|
+
or an error message; SCL supplies namespace-aware XML validation by default.
|
|
57
|
+
`setCustomValidity()` errors persist until explicitly cleared.
|
|
58
|
+
User edits emit `input` plus a bubbling/composed `CustomEvent<string>('change')`
|
|
59
|
+
whose `detail` is the current text. The existing text-bearing `change` contract
|
|
60
|
+
is retained; it is **not** a blur event. Programmatic writes emit neither.
|
|
61
|
+
Both preserve the cursor on unchanged value echoes and start at the beginning
|
|
62
|
+
on actual text replacements.
|
|
63
|
+
|
|
64
|
+
The **Editors / Ace Editor** stories show a shared publisher-demo document
|
|
65
|
+
with five IEDs, communication and data templates, plus toolbar and custom
|
|
66
|
+
validation examples in **SCL Doc as text**. **Editors / SCL Editor** shows
|
|
67
|
+
**Full SCL Document** using the parsed document's `.documentElement` and
|
|
68
|
+
**SCL Element** using its `PUB_A` IED with inherited SCL namespaces, plus
|
|
69
|
+
toolbar, invalid text and empty-input examples. Both SCL examples pass an
|
|
70
|
+
Element through `.element`, not an XMLDocument object.
|
|
71
|
+
The fixture comes from `OMICRONEnergyOSS/oscd-editor-publisher/demo/sample.scd`;
|
|
72
|
+
it is demonstration data, not a schema-conformance assertion.
|
|
73
|
+
|
|
31
74
|
## Scoped Web Components
|
|
32
75
|
|
|
33
76
|
All OSCD UI components are scoped web components, which means its possible to use plugins can use multiple different versions of @omicronenergy/oscd-ui without risk of conflict. More details on how to use these components in a scoped manor are below. General details on scoping web components can be found [here](https://open-wc.org/docs/development/scoped-elements/)
|