-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add support for template element - add support for slot element - add support for slot attribute - add examples for web components
- Loading branch information
Showing
76 changed files
with
436 additions
and
16 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
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Canvas.package/WAHtmlCanvas.class/instance/slot..st
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,3 @@ | ||
tags-web-components | ||
slot: aBlock | ||
self slot with: aBlock |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WAHtmlCanvas.class/instance/slot.st
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,4 @@ | ||
tags-web-components | ||
slot | ||
|
||
^ self brush: WASlotTag new |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Canvas.package/WAHtmlCanvas.class/instance/template..st
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,3 @@ | ||
tags-web-components | ||
template: aBlock | ||
self template with: aBlock |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WAHtmlCanvas.class/instance/template.st
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,4 @@ | ||
tags-web-components | ||
template | ||
|
||
^ self brush: WATemplateTag new |
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 @@ | ||
The slot HTML element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together. |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WASlotTag.class/instance/name..st
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,4 @@ | ||
attributes | ||
name: aSring | ||
"The slot's name." | ||
self attributeAt: 'name' put: aSring |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Canvas.package/WASlotTag.class/instance/tag.st
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,3 @@ | ||
accessing | ||
tag | ||
^ 'slot' |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Canvas.package/WASlotTag.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 14:52", | ||
"super" : "WATagBrush", | ||
"category" : "Seaside-Canvas-Tags", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WASlotTag", | ||
"type" : "normal" | ||
} |
5 changes: 5 additions & 0 deletions
5
repository/Seaside-Canvas.package/WATagBrush.class/instance/slot..st
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,5 @@ | ||
attributes-webcomponents | ||
slot: aString | ||
"The slot global attribute assigns a slot in a shadow DOM shadow tree to an element: An element with a slot attribute is assigned to the slot created by the <slot> element whose name attribute's value matches that slot attribute's value." | ||
|
||
self attributes at: 'slot' put: aString |
1 change: 1 addition & 0 deletions
1
repository/Seaside-Canvas.package/WATemplateTag.class/README.md
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 @@ | ||
The template HTML element serves as a mechanism for holding HTML fragments, which can either be used later via JavaScript or generated immediately into shadow DOM. |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WATemplateTag.class/instance/shadowRootClonable..st
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,4 @@ | ||
attributes | ||
shadowRootClonable: aBoolean | ||
"Sets the value of the clonable property of a ShadowRoot created using this element to true. If set, a clone of the shadow host (the parent element of this <template>) created with Node.cloneNode() or Document.importNode() will include a shadow root in the copy." | ||
self attributeAt: 'shadowrootclonable' put: aBoolean |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WATemplateTag.class/instance/shadowRootDelegatesFocus..st
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,4 @@ | ||
attributes | ||
shadowRootDelegatesFocus: aBoolean | ||
"Sets the value of the delegatesFocus property of a ShadowRoot created using this element to true. If this is set and a non-focusable element in the shadow tree is selected, then focus is delegated to the first focusable element in the tree. The value defaults to false." | ||
self attributeAt: 'shadowrootdelegatesfocus' put: aBoolean |
10 changes: 10 additions & 0 deletions
10
repository/Seaside-Canvas.package/WATemplateTag.class/instance/shadowRootMode..st
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,10 @@ | ||
attributes | ||
shadowRootMode: aString | ||
"Creates a shadow root for the parent element. It is a declarative version of the Element.attachShadow() method and accepts the same enumerated values. | ||
open | ||
Exposes the internal shadow root DOM for JavaScript (recommended for most use cases). | ||
closed | ||
Hides the internal shadow root DOM from JavaScript." | ||
self attributeAt: 'shadowrootmode' put: aString |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Canvas.package/WATemplateTag.class/instance/shadowRootSerializable..st
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,4 @@ | ||
attributes | ||
shadowRootSerializable: aBoolean | ||
"Sets the value of the serializable property of a ShadowRoot created using this element to true. If set, the shadow root may be serialized by calling the Element.getHTML() or ShadowRoot.getHTML() methods with the options.serializableShadowRoots parameter set true. The value defaults to false." | ||
self attributeAt: 'shadowrootserializable' put: aBoolean |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Canvas.package/WATemplateTag.class/instance/tag.st
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,3 @@ | ||
accessing | ||
tag | ||
^ 'template' |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Canvas.package/WATemplateTag.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 14:40", | ||
"super" : "WATagBrush", | ||
"category" : "Seaside-Canvas-Tags", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WATemplateTag", | ||
"type" : "normal" | ||
} |
5 changes: 1 addition & 4 deletions
5
repository/Seaside-Canvas.package/monticello.meta/categories.st
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Canvas'! | ||
SystemOrganization addCategory: #'Seaside-Canvas-Base'! | ||
SystemOrganization addCategory: #'Seaside-Canvas-Canvas'! | ||
SystemOrganization addCategory: #'Seaside-Canvas-Tags'! | ||
self packageOrganizer ensurePackage: #'Seaside-Canvas' withTags: #(#Base #Canvas #Tags)! |
6 changes: 1 addition & 5 deletions
6
repository/Seaside-Component.package/monticello.meta/categories.st
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 |
---|---|---|
@@ -1,5 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Component'! | ||
SystemOrganization addCategory: #'Seaside-Component-Base'! | ||
SystemOrganization addCategory: #'Seaside-Component-Exceptions'! | ||
SystemOrganization addCategory: #'Seaside-Component-Tasks'! | ||
SystemOrganization addCategory: #'Seaside-Component-Visitors'! | ||
self packageOrganizer ensurePackage: #'Seaside-Component' withTags: #(#Base #Exceptions #Tasks #Visitors)! |
5 changes: 1 addition & 4 deletions
5
repository/Seaside-RenderLoop.package/monticello.meta/categories.st
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-RenderLoop'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Base'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Continuations'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Errors'! | ||
self packageOrganizer ensurePackage: #'Seaside-RenderLoop' withTags: #(#Base #Continuations #Errors)! |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-Tests-Session.package/monticello.meta/categories.st
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 |
---|---|---|
@@ -1 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Tests-Session'! | ||
self packageOrganizer ensurePackage: #'Seaside-Tests-Session' withTags: #()! |
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,5 @@ | ||
{ | ||
"separateMethodMetaAndSource" : false, | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
11 changes: 11 additions & 0 deletions
11
...easide-Tests-WebComponents.package/GRPackage.extension/class/seasideTestsWebComponents.st
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,11 @@ | ||
*Seaside-Tests-WebComponents | ||
seasideTestsWebComponents | ||
^ self new | ||
name: 'Seaside-WebComponents-Examples'; | ||
description: 'Tests for Seaside-WebComponents'; | ||
addDependency: 'Seaside-WebComponents-Core'; | ||
addDependency: 'Seaside-Tests-Core'; | ||
addDependency: 'Seaside-Session'; | ||
addDependency: 'Seaside-Examples'; | ||
url: #seasideUrl; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Tests-WebComponents.package/GRPackage.extension/properties.json
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,3 @@ | ||
{ | ||
"name" : "GRPackage" | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
...Tests-WebComponents.package/WAFragmentRenderingTest.class/class/shouldInheritSelectors.st
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,3 @@ | ||
testing | ||
shouldInheritSelectors | ||
^ false |
10 changes: 10 additions & 0 deletions
10
.../Seaside-Tests-WebComponents.package/WAFragmentRenderingTest.class/instance/newHandler.st
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,10 @@ | ||
private | ||
newHandler | ||
| application | | ||
application := WAApplication new. | ||
application configuration | ||
addParent: WARenderLoopConfiguration instance. | ||
^ application | ||
rootClass: WACounter; | ||
preferenceAt: #renderPhaseContinuationClass put: WAFragmentRenderPhaseContinuation; | ||
yourself |
5 changes: 5 additions & 0 deletions
5
...-Tests-WebComponents.package/WAFragmentRenderingTest.class/instance/requestWithMethod..st
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,5 @@ | ||
running | ||
requestWithMethod: aString | ||
^ WARequest | ||
method: aString | ||
uri: '/app/oneo' |
12 changes: 12 additions & 0 deletions
12
...aside-Tests-WebComponents.package/WAFragmentRenderingTest.class/instance/testRendering.st
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,12 @@ | ||
tests | ||
testRendering | ||
| context request responseContents | | ||
request := self requestWithMethod: 'GET'. | ||
context := WARequestContext request: request response: WABufferedResponse new. | ||
[ handler handle: context ] | ||
on: WAResponseNotification | ||
do: [ :notification | ]. | ||
self assert: context response status = 200. | ||
responseContents := context response contents. | ||
self assert: (responseContents beginsWith: '<h1>'). | ||
self assert: (responseContents endsWith: '</a>') |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Tests-WebComponents.package/WAFragmentRenderingTest.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "WARequestHandlerTest", | ||
"category" : "Seaside-Tests-WebComponents", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAFragmentRenderingTest", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
repository/Seaside-Tests-WebComponents.package/monticello.meta/categories.st
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 @@ | ||
self packageOrganizer ensurePackage: #'Seaside-Tests-WebComponents' withTags: #()! |
Empty file.
1 change: 1 addition & 0 deletions
1
repository/Seaside-Tests-WebComponents.package/monticello.meta/package
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 @@ | ||
(name 'Seaside-Tests-WebComponents') |
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 @@ | ||
{ } |
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,5 @@ | ||
{ | ||
"separateMethodMetaAndSource" : false, | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
11 changes: 11 additions & 0 deletions
11
.../Seaside-WebComponents-Core.package/GRPackage.extension/class/seasideWebComponentsCore.st
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,11 @@ | ||
*Seaside-WebComponents-Core | ||
seasideWebComponentsCore | ||
^ self new | ||
name: 'Seaside-WebComponents-Core'; | ||
description: 'Allows embedding Seaside components as Web Components'; | ||
addDependency: 'Seaside-Core'; | ||
addDependency: 'Seaside-Canvas'; | ||
addDependency: 'Seaside-Component'; | ||
addDependency: 'Seaside-RenderLoop'; | ||
url: #seasideUrl; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-WebComponents-Core.package/GRPackage.extension/properties.json
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,3 @@ | ||
{ | ||
"name" : "GRPackage" | ||
} |
1 change: 1 addition & 0 deletions
1
...de-WebComponents-Core.package/WAFragmentRenderPhaseContinuation.class/README.md
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 @@ | ||
I am a render phase continuation that only renders a fragment of a web page, without a head or body. |
3 changes: 3 additions & 0 deletions
3
...re.package/WAFragmentRenderPhaseContinuation.class/instance/createHtmlRootWithContext..st
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,3 @@ | ||
private | ||
createHtmlRootWithContext: aRenderContext | ||
^ WANilHtmlRoot new |
3 changes: 3 additions & 0 deletions
3
...nts-Core.package/WAFragmentRenderPhaseContinuation.class/instance/toPresenterSendRoot..st
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,3 @@ | ||
updating | ||
toPresenterSendRoot: anHtmlRoot | ||
"intentionally empty" |
3 changes: 3 additions & 0 deletions
3
...ebComponents-Core.package/WAFragmentRenderPhaseContinuation.class/instance/updateRoot..st
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,3 @@ | ||
updating | ||
updateRoot: anHtmlRoot | ||
"intentionally empty" |
11 changes: 11 additions & 0 deletions
11
...easide-WebComponents-Core.package/WAFragmentRenderPhaseContinuation.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 13:05", | ||
"super" : "WARenderPhaseContinuation", | ||
"category" : "Seaside-WebComponents-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAFragmentRenderPhaseContinuation", | ||
"type" : "normal" | ||
} |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-WebComponents-Core.package/WAHeadlessComponent.class/README.md
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,3 @@ | ||
I am a component that is used to render a web page without <html>, <head> or <body> elements. | ||
|
||
I do not add any functionality, I only prevent components from being used in pages that have <html>, <head> or <body> elements. It is therefore not required that components subclass me. |
3 changes: 3 additions & 0 deletions
3
...tory/Seaside-WebComponents-Core.package/WAHeadlessComponent.class/instance/updateRoot..st
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,3 @@ | ||
updating | ||
updateRoot: anHtmlRoot | ||
self shouldNotImplement |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-WebComponents-Core.package/WAHeadlessComponent.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "xxx 7/10/2024 09:34", | ||
"super" : "WAComponent", | ||
"category" : "Seaside-WebComponents-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAHeadlessComponent", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebComponents-Core.package/WANilHtmlRoot.class/README.md
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 @@ | ||
I am a stand in for an HTML root to render a web page without head or body. |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-WebComponents-Core.package/WANilHtmlRoot.class/instance/closeOn..st
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,3 @@ | ||
writing | ||
closeOn: aDocument | ||
"intentionally empty" |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-WebComponents-Core.package/WANilHtmlRoot.class/instance/openOn..st
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,3 @@ | ||
writing | ||
openOn: aDocument | ||
"intentionally empty" |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-WebComponents-Core.package/WANilHtmlRoot.class/properties.json
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,11 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 13:07", | ||
"super" : "WAObject", | ||
"category" : "Seaside-WebComponents-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WANilHtmlRoot", | ||
"type" : "normal" | ||
} |
35 changes: 35 additions & 0 deletions
35
...itory/Seaside-WebComponents-Core.package/WAWebComponentsLibrary.class/README.md
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,35 @@ | ||
I am a WebComponent library that allows users to embed Seaside components into existing web pages. | ||
|
||
Usually I would not be used directly a Seaside application, instead I would be handed off to a different application or web page that wants to embed Seaside components. | ||
|
||
# Usage | ||
|
||
To use this library | ||
|
||
```language=HTML | ||
<html> | ||
<head> | ||
<!-- --> | ||
<script src="seaside-components.js" defer></script> | ||
</head> | ||
<body> | ||
<!-- --> | ||
<wa-component url="/examples/headless-counter">Loading...</wa-component> | ||
<!-- --> | ||
</body> | ||
</html> | ||
``` | ||
|
||
# Page Refreshes | ||
|
||
When an embeded component does a full page refresh a full page refresh of the containing page will result. If this is not wanted then the component needs to use Ajax or opt-in to ajaxification. | ||
|
||
# Ajaxification | ||
|
||
Per default no ajaxification will happen so you have to make sure your component does not perform full page requests. | ||
|
||
You can opt in to ajaxification using | ||
|
||
```language=HTML | ||
<seaside-component url="/examples/headless-counter" ajaxify="true">Loading...</seaside-component> | ||
``` |
Oops, something went wrong.