Skip to content

Releases: Starcounter/starcounter-include

Let server manipulate `Composition`s

Choose a tag to compare

@tomalec tomalec released this 01 Feb 17:43
  • Remove saveLayout function, as now Blending Editor, should be responsible for that.
    Starcounter/Blending#471
  • Drop support for compositionProvider.Composition, only compositionProvider.Composition$ is supported
  • Element observes Polymer notifications for compositionProvider.Composition - to be able to react on server-side changes triggered by any means, not just composition editor custom element.
  • Save updated compositionProvider's custom composition as stored one, even if it's the same as current temporary one, as after closing the editor changes were reverted not to the saved state, but to the state before editing was started Starcounter/Blending#460
  • more verbose partial attribute deprecation warning - now it shows a reference to the problematic instance

Compatibility with new composition editor solution

Choose a tag to compare

@PatrykSzwer PatrykSzwer released this 21 Dec 14:15

Added compatibility with new composition editor with respect for backward compatibility.
Related Blending app changes: https://github.com/Starcounter/Blending/pull/395

Render blocking styles, more radical warning

Choose a tag to compare

@tomalec tomalec released this 19 Sep 13:30
  • element is now hidden until all links in given shadow DOM composition are (successfully or not) loaded #111, see README.md#render-blocking-links for more
  • warning about non-namespaced view-model is now more intrusive and renders red border around partial view #114

Ignore package-lock.json in bower.json

Choose a tag to compare

@alshakero alshakero released this 08 Aug 10:23
5.1.1

Version 5.1.1

Parent (host) compositions

Choose a tag to compare

@tomalec tomalec released this 24 Jul 11:49

Added support for compositions (presentations) provided by the parent (host) view - the view that uses <starcounter-include> to stamp the partial one.

You can now do:

	<starcounter-include slot="timeline/new-events" view-model="{{model.NewEventActions}}">
		<!--
		starcounter-include takes as shadow root:
		merged `template is="declarative-shadow-dom"`s < `<template is="declarative-shadow-dom" TBD-host>` content < .CompositionProvider.Composition$ (`<template is="..." solution>`)
		-->
		<template is="declarative-shadow-dom" presentation="parent">
			<uni-magic-menu><slot></slot><slot-all></slot-all></uni-magic-menu>
		</template>
		<!--
		Content that will be loaded from the merged view:

		<a href='' slot="calendar/new">New event</a>
		<a href='' slot="calendar/newrec">New recurring event</a>
		<template is="declarative-shadow-dom" >
			<paper-menu>
				<slot name="calendar/new"></slot>
				<slot name="calendar/newrec"></slot>
			</paper-menu>
		</template>
		<button onclick=""></button>
		<note-widget slot="notes/new"></note-widget>
		<template is="declarative-shadow-dom" default>
			<ul>
				<li>
					<slot name="notes/new"></slot>
				</li>
			</ul>
		</template>
		-->
	</starcounter-include>

To distribute all named slotables regardless of their slot name, use <slot-all> custom element

See #102 for more details.

Update deps for better security

Choose a tag to compare

@alshakero alshakero released this 21 May 14:39
5.0.1

Version 5.0.1

Remove deprecated starcounter-composition and deprecate `partial` attrib

Choose a tag to compare

@tomalec tomalec released this 05 Mar 14:57
  • Drop starcounter-composition support #91
  • Remove v0 <-> v1 translation features a1731a7
  • Use latest jargon in docs and code #86
  • Deprecate partial attribute in favour of viewModel (prop) and view-model (attribute).

Prepare for working with BlendingProvider

Choose a tag to compare

@tomalec tomalec released this 04 Jan 11:38
  • Unhardcode CompositionProvider namespace, #79, #80
    Now, you can set it either per instance: scInclude.compositionProvider = "CustomNameSpace_7" or change the prototype: customElements.get('starcounter-include').prototype.compositionProvider = "CustomNameSpace_7" to affect all.

Cross-browser support (almost)

Choose a tag to compare

@tomalec tomalec released this 03 Jan 14:28
  • Element works back again in polyfilled browsers. There is still an issue pending that may cause FOUC in some border cases,
  • Race-condintion (#71) is now fixed.

Fix race-condition by setting template.href redundantly

Choose a tag to compare

@alshakero alshakero released this 20 Dec 09:43

More info in #71