Skip to content

Commit 2c11065

Browse files
committed
build: shoelace 2.15
1 parent f87e0bd commit 2c11065

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+410
-167
lines changed

.changeset/hot-students-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hydrofoil/shaperone-wc-shoelace": minor
3+
---
4+
5+
Updated shoelace to v2.15

demos/examples/ErrorSummary/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { decorate, FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates'
1+
import { decorate, FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates.js'
22
import { html } from '@hydrofoil/shaperone-wc'
33
import type { ValidationResult } from '@rdfine/shacl'
44
import { shrink } from '@zazuko/prefixes/shrink'

demos/examples/NestedShapesIndividually/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { decorate, FormTemplate } from '@hydrofoil/shaperone-wc/templates'
1+
import { decorate, FormTemplate } from '@hydrofoil/shaperone-wc/templates.js'
22
import { html, css } from '@hydrofoil/shaperone-wc'
33

44
export const topmostFocusNodeFormRenderer = decorate((form: FormTemplate): FormTemplate => {

demos/examples/StarRating/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { UpdateComponentState } from '@hydrofoil/shaperone-core/models/comp
55
import { schema, xsd } from '@tpluscode/rdf-ns-builders'
66
import { dash } from '@tpluscode/rdf-ns-builders/loose'
77
import type { PropertyShape } from '@rdfine/shacl'
8-
import { ShaperoneEnvironment } from '@hydrofoil/shaperone-core/env'
8+
import { ShaperoneEnvironment } from '@hydrofoil/shaperone-core/env.js'
99
import rdf from '@zazuko/env/web.js'
1010

1111
export interface StarRating {
@@ -65,7 +65,7 @@ export const component: Lazy<StarRatingComponent> = {
6565
return false
6666
},
6767
async lazyRender() {
68-
await import('./star-rating')
68+
await import('./star-rating.js')
6969

7070
return function ({ env, value }, { update }) {
7171
const rating = value.object ? Number.parseFloat(value.object.value) : 0

demos/examples/XoneRenderer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { decorate, FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates'
1+
import { decorate, FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates.js'
22
import { html } from '@hydrofoil/shaperone-wc'
33
import { LogicalConstraint } from '@hydrofoil/shaperone-core/models/forms'
44
import type { Shape } from '@rdfine/shacl'

demos/lit-html/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"@hydrofoil/shaperone-hydra": "0.3.16",
2424
"@hydrofoil/shaperone-rdf-validate-shacl": "1.0.4",
2525
"@material/mwc-icon": "^0.25",
26-
"@rdfine/env": "^1.1.0",
26+
"@rdfine/env": "^1.1.2",
2727
"@rdfine/shacl": "^0.10.5",
2828
"@rdfjs/fetch-lite": "^3.2.2",
2929
"@rdfjs-elements/lit-helpers": "^0.3.7",
3030
"@rdfjs-elements/rdf-editor": "^0.5.7",
3131
"@tpluscode/rdf-ns-builders": "^4.3.0",
3232
"@tpluscode/rdf-string": "^1.2.0",
3333
"@types/rdfjs__fetch-lite": "^3.0.10",
34-
"@shoelace-style/shoelace": "^2.0.0-beta.78",
34+
"@shoelace-style/shoelace": "^2.15.0",
3535
"@vaadin/vaadin-app-layout": "^22",
3636
"@vaadin/vaadin-button": "^22",
3737
"@vaadin/vaadin-checkbox": "^22",

demos/lit-html/src/configure.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ export const configureRenderer = (() => {
122122
const {
123123
AccordionGroupingRenderer,
124124
AccordionFocusNodeRenderer,
125-
} = await import('@hydrofoil/shaperone-wc-vaadin/renderer/accordion')
125+
} = await import('@hydrofoil/shaperone-wc-vaadin/renderer/accordion.js')
126126

127127
strategy.group = AccordionGroupingRenderer
128128
focusNodeTemplate = AccordionFocusNodeRenderer
129129
} else if (grouping === 'material tabs') {
130130
const {
131131
TabsGroupRenderer,
132132
TabsFocusNodeRenderer,
133-
} = await import('@hydrofoil/shaperone-wc-material/renderer/tabs')
133+
} = await import('@hydrofoil/shaperone-wc-material/renderer/tabs.js')
134134

135135
strategy.group = TabsGroupRenderer
136136
focusNodeTemplate = TabsFocusNodeRenderer

demos/lit-html/src/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Environment from '@zazuko/env/Environment'
2-
import alcaeus from 'alcaeus/Factory'
1+
import Environment from '@zazuko/env/Environment.js'
2+
import alcaeus from 'alcaeus/Factory.js'
33
import $rdf from '@rdfine/env'
44
import FetchFactory from '@rdfjs/fetch-lite/Factory.js'
55

File renamed without changes.

dist/core.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Any editor annotated this way will automatically get a score equal `100` without
2828
At the minimum, a `render` function is required to complete a component. For example, here's a simple `dash:BooleanSelectEditor`, rendered as HTML native elements with lit-html:
2929

3030
```typescript
31-
import { booleanSelect, BooleanSelectEditor } from '@hydrofoil/shaperone-core/components'
31+
import { booleanSelect, BooleanSelectEditor } from '@hydrofoil/shaperone-core/components.js'
3232
import { html } from 'lit-html'
3333
import { xsd } from '@tpluscode/rdf-ns-builders'
3434
import { literal } from '@rdf-esm/data-model'
@@ -56,13 +56,13 @@ All DASH components export an interface for their shared and instance state. By
5656
The snippets below propose an extension to the `nativeBooleanSelect` which adds an optional label to display on the "empty option"
5757

5858
```typescript
59-
import { booleanSelect, BooleanSelectEditor } from '@hydrofoil/shaperone-core/components'
59+
import { booleanSelect, BooleanSelectEditor } from '@hydrofoil/shaperone-core/components.js'
6060
import { html } from 'lit-html'
6161
import { xsd } from '@tpluscode/rdf-ns-builders'
6262
import { literal } from '@rdf-esm/data-model'
6363

6464
// extend the component interface using module augmentation
65-
declare module '@hydrofoil/shaperone-core/components' {
65+
declare module '@hydrofoil/shaperone-core/components.js' {
6666
interface BooleanSelectEditor {
6767
emptyOptionLabel: string
6868
}
@@ -106,7 +106,7 @@ The core Enum Select Editor is implemented to initialize the choices to display
106106
Implementors wishing to create a custom component only need to provide the actual `render` function.
107107

108108
```typescript
109-
import { enumSelect, EnumSelectEditor } from '@hydrofoil/shaperone-core/components'
109+
import { enumSelect, EnumSelectEditor } from '@hydrofoil/shaperone-core/components.js'
110110
import { html } from '@hydrofoil/shaperone-wc'
111111

112112
export const enumSelectEditor: EnumSelectEditor = {

0 commit comments

Comments
 (0)