From 42e3e416e02669f8679b58033a4926ff3c55db28 Mon Sep 17 00:00:00 2001 From: btopro Date: Wed, 20 Sep 2023 15:28:58 -0400 Subject: [PATCH] https://github.com/elmsln/issues/issues/1691 --- .../a11y-collapse/lib/a11y-collapse-group.js | 2 +- .../code-editor/lib/code-pen-button.js | 2 +- .../documentation-player.js | 20 +- .../lib/core/HAXCMSThemeWiring.js | 2 +- .../lib/core/haxcms-editor-builder.js | 2 +- .../lib/core/haxcms-site-builder.js | 2 +- .../lib/core/haxcms-site-editor.js | 2 +- .../lib/core/site-list/haxcms-site-listing.js | 2 +- .../active-item/site-active-tags.js | 7 +- .../navigation/site-menu-button.js | 4 +- .../map-menu/lib/map-menu-builder.js | 4 +- .../map-menu/lib/map-menu-header.js | 5 +- .../map-menu/lib/map-menu-item.js | 7 +- .../map-menu/lib/map-menu-submenu.js | 8 +- .../multiple-choice/multiple-choice.js | 10 +- .../lib/page-break.haxProperties.json | 1 - .../page-break/page-break.js | 2 +- .../play-list/lib/SLStyleManager.js | 2 +- .../@lrnwebcomponents/play-list/lib/dark.css | 471 +++++++++++++++++ .../@lrnwebcomponents/play-list/lib/light.css | 472 ++++++++++++++++++ .../lib/simple-fields-array-item.js | 47 +- .../simple-fields/lib/simple-fields-array.js | 4 +- .../simple-fields/lib/simple-fields-lite.js | 2 +- dist/dev.html | 1 - system/boilerplate/site/index.html | 119 +++-- 25 files changed, 1077 insertions(+), 123 deletions(-) create mode 100644 build/es6/node_modules/@lrnwebcomponents/play-list/lib/dark.css create mode 100644 build/es6/node_modules/@lrnwebcomponents/play-list/lib/light.css diff --git a/build/es6/node_modules/@lrnwebcomponents/a11y-collapse/lib/a11y-collapse-group.js b/build/es6/node_modules/@lrnwebcomponents/a11y-collapse/lib/a11y-collapse-group.js index c02bdd1ae12..c6901639ac7 100644 --- a/build/es6/node_modules/@lrnwebcomponents/a11y-collapse/lib/a11y-collapse-group.js +++ b/build/es6/node_modules/@lrnwebcomponents/a11y-collapse/lib/a11y-collapse-group.js @@ -16,4 +16,4 @@ import{LitElement as t,html as e,css as i}from"../../../lit/index.js";import{A11 --a11y-collapse-margin: 0 0; --a11y-collapse-border-between: none; } - `]}render(){return e`
`}constructor(){super(),this.globalOptions={},this.radio=!1,this.__items=[],this.addEventListener("a11y-collapse-attached",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this._attachItem(t.detail)})),this.addEventListener("a11y-collapse-detached",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this._detachItem(t.detail)})),this.addEventListener("a11y-collapse-click",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this.radioToggle(t.detail)})),this.addEventListener("toggle",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this.radioToggle(t.detail)}))}static get tag(){return"a11y-collapse-group"}static get properties(){return{...super.properties,...s.properties,globalOptions:{type:Object,attribute:"global-options",reflect:!0},radio:{type:Boolean,attribute:"radio"},__items:{type:Array}}}static get haxProperties(){return new URL(`./${this.tag}.haxProperties.json`,import.meta.url).href}get items(){return this.__items}_attachItem(t){this.__items.push(t),Object.keys(A11yCollapseGroup.properties||{}).forEach((e=>this._updateItem(t,e)))}updated(t){t.forEach(((t,e)=>{this.__items.forEach((i=>this._updateItem(i,e,t)))}))}_updateItem(t,e,i=void 0){if("globalOptions"===e||"__items"===e){if(this.globalOptions!=={})for(let e in this.globalOptions)this.globalOptions.hasOwnProperty(e)&&(t[e]=this.globalOptions[e])}else"radio"===e&&this.radio?t.expanded=!1:null===this[e]&&void 0===this[e]||(t[e]=this[e])}_detachItem(t){if(this.__items&&t)for(let e=0;e `}constructor(){super(),this.globalOptions={},this.radio=!1,this.__items=[],this.addEventListener("a11y-collapse-attached",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this._attachItem(t.detail)})),this.addEventListener("a11y-collapse-detached",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this._detachItem(t.detail)})),this.addEventListener("a11y-collapse-click",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this.radioToggle(t.detail)})),this.addEventListener("toggle",(t=>{t.stopPropagation(),t.stopImmediatePropagation(),this.radioToggle(t.detail)}))}static get tag(){return"a11y-collapse-group"}static get properties(){return{...super.properties,...s.properties,globalOptions:{type:Object,attribute:"global-options",reflect:!0},radio:{type:Boolean,attribute:"radio"},__items:{type:Array}}}static get haxProperties(){return new URL(`./${this.tag}.haxProperties.json`,import.meta.url).href}get items(){return this.__items}_attachItem(t){this.__items.push(t),Object.keys(A11yCollapseGroup.properties||{}).forEach((e=>this._updateItem(t,e)))}updated(t){t.forEach(((t,e)=>{this.__items.forEach((i=>this._updateItem(i,e,t)))}))}_updateItem(t,e,i=void 0){if("globalOptions"===e||"__items"===e){if(this.globalOptions!={})for(let e in this.globalOptions)this.globalOptions.hasOwnProperty(e)&&(t[e]=this.globalOptions[e])}else"radio"===e&&this.radio?t.expanded=!1:null===this[e]&&void 0===this[e]||(t[e]=this[e])}_detachItem(t){if(this.__items&&t)for(let e=0;e - `}static get tag(){return"code-pen-button"}firstUpdated(){this.setAttribute("title",this.checkItOut)}constructor(){super(),this.checkItOut="Check it out on codepen",this.endPoint="https://codepen.io/pen/define",this.data={}}updated(t){t.forEach(((t,e)=>{"data"==e&&this[e]&&(this.dataString=this._getDataString(this[e]))}))}static get properties(){return{checkItOut:{type:String,attribute:"check-it-out"},endPoint:{type:String,attribute:"end-point"},dataString:{type:String,attribute:"data-string"},data:{type:Object}}}_getDataString(t){return JSON.stringify(t).replace(/"/g,""").replace(/'/g,"'")}}customElements.define(CodePenButton.tag,CodePenButton);export{CodePenButton}; \ No newline at end of file + `}static get tag(){return"code-pen-button"}firstUpdated(){this.setAttribute("title",this.checkItOut)}constructor(){super(),this.checkItOut="Check it out on codepen",this.endPoint="https://codepen.io/pen/define",this.data={},this.dataString=""}updated(t){t.forEach(((t,e)=>{"data"==e&&this[e]&&""==this.dataString&&(this.dataString=this._getDataString(this[e]))}))}static get properties(){return{checkItOut:{type:String,attribute:"check-it-out"},endPoint:{type:String,attribute:"end-point"},dataString:{type:String,attribute:"data-string"},data:{type:Object}}}_getDataString(t){return JSON.stringify(t).replace(/"/g,""").replace(/'/g,"'")}}customElements.define(CodePenButton.tag,CodePenButton);export{CodePenButton}; \ No newline at end of file diff --git a/build/es6/node_modules/@lrnwebcomponents/documentation-player/documentation-player.js b/build/es6/node_modules/@lrnwebcomponents/documentation-player/documentation-player.js index ebea4e7b3b5..edf8eef9107 100644 --- a/build/es6/node_modules/@lrnwebcomponents/documentation-player/documentation-player.js +++ b/build/es6/node_modules/@lrnwebcomponents/documentation-player/documentation-player.js @@ -2,12 +2,20 @@ * Copyright 2023 * @license , see License.md for full text. */ -import{LitElement as t,html as e,css as r}from"../../lit/index.js";class DocumentationPlayer extends t{constructor(){super()}static get styles(){let t=[];return super.styles&&(t=super.styles),[...t,r` +import{LitElement as t,html as e,css as i,render as r,nothing as s}from"../../lit/index.js";import"../simple-img/simple-img.js";import"../simple-icon/lib/simple-icon-button-lite.js";import"../play-list/play-list.js";import"../code-sample/code-sample.js";import"../code-editor/lib/code-pen-button.js";import{nodeToHaxElement as n}from"../utils/utils.js";class DocumentationPlayer extends t{constructor(){super(),this.label="",this.haxSchema=[],this.imageUrl="",this.url="",setTimeout((async()=>{for(let t=0;t - - - `}static get tag(){return"documentation-player"}firstUpdated(t){super.firstUpdated&&super.firstUpdated(t)}updated(t){super.updated&&super.updated(t),t.forEach(((t,e)=>{}))}}customElements.define(DocumentationPlayer.tag,DocumentationPlayer);export{DocumentationPlayer}; \ No newline at end of file + `]}_getDataString(t){return JSON.stringify(t).replace(/"/g,""").replace(/'/g,"'")}codePenData(t){return this._getDataString({title:t,html:this.innerHTML.trim(),head:' - + + + + + + + + + + - - - + + + + - + - - - + + + + + + + - - - - - - - My site + + + + + + + + + +