@kubex/zinc 1.1.41 → 1.1.42
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.
|
@@ -40175,7 +40175,7 @@
|
|
|
40175
40175
|
"package": {
|
|
40176
40176
|
"name": "@kubex/zinc",
|
|
40177
40177
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
40178
|
-
"version": "1.1.
|
|
40178
|
+
"version": "1.1.42",
|
|
40179
40179
|
"author": "",
|
|
40180
40180
|
"license": "MIT"
|
|
40181
40181
|
}
|
package/dist/web-types.json
CHANGED
package/dist/zn.min.js
CHANGED
|
@@ -2958,7 +2958,7 @@ ${ua(this.code(r,t))}
|
|
|
2958
2958
|
<div id="action-container" class="ql-toolbar ql-snow">
|
|
2959
2959
|
<slot name="actions"></slot>
|
|
2960
2960
|
</div>
|
|
2961
|
-
`}};At.styles=T(Vw),c([V("#editor")],At.prototype,"editor",2),c([V("#editorHtml")],At.prototype,"editorHtml",2),c([V("#toolbar")],At.prototype,"toolbar",2),c([p({reflect:!0})],At.prototype,"id",2),c([p()],At.prototype,"name",2),c([p()],At.prototype,"value",2),c([p({attribute:"interaction-type",type:String})],At.prototype,"interactionType",2),c([p({attribute:"attachment-url",type:String})],At.prototype,"uploadAttachmentUrl",2),c([p({attribute:"code-blocks",type:Boolean})],At.prototype,"codeBlocksEnabled",2),c([p({attribute:"dividers",type:Boolean})],At.prototype,"dividersEnabled",2),c([p({attribute:"links",type:Boolean})],At.prototype,"linksEnabled",2),c([p({attribute:"attachments",type:Boolean})],At.prototype,"attachmentsEnabled",2),c([p({attribute:"images",type:Boolean})],At.prototype,"imagesEnabled",2),c([p({attribute:"videos",type:Boolean})],At.prototype,"videosEnabled",2),c([p({attribute:"dates",type:Boolean})],At.prototype,"datesEnabled",2),c([p({attribute:"emojis",type:Boolean})],At.prototype,"emojisEnabled",2),c([p({attribute:"code",type:Boolean})],At.prototype,"codeEnabled",2),c([p({attribute:"ai",type:Boolean})],At.prototype,"aiEnabled",2),c([p({attribute:"ai-path"})],At.prototype,"aiPath",2),c([p({attribute:"store-key",reflect:!0})],At.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],At.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],At.prototype,"localStorage",2);var s6=At;At.define("zn-editor");var Uw=A`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;position:absolute;overflow:hidden}::backdrop{background-color:var(--zn-backdrop-color,rgba(128,128,128,0.6))}.editor-dialog{background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);width:100%;max-width:975px;max-height:650px;padding:0}.editor-dialog .loading-wrapper{display:flex;flex-direction:column;height:100%;padding:1rem;gap:10px}.editor-dialog__close{position:absolute;top:0;right:0;margin:var(--zn-spacing-small);z-index:10001}.editor-dialog__content{min-height:min(500px,70vh);overflow:auto;box-sizing:border-box}`;var Wo=class extends C{constructor(){super(...arguments);this.hasFocus=!1;this.open=!1;this.uri=""}set editorId(t){this._editorId=t,this.requestUpdate()}connectedCallback(){super.connectedCallback()}firstUpdated(t){super.firstUpdated(t),this.dialogEl.addEventListener("close",()=>{this.open=!1,this.innerHTML=""})}setContent(t){this.innerHTML=t}handleOpenChange(){this.open?this.addOpenListeners():this.removeOpenListeners()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.dialogEl.close()}_getLoadingState(){return u`
|
|
2961
|
+
`}};At.styles=T(Vw),c([V("#editor")],At.prototype,"editor",2),c([V("#editorHtml")],At.prototype,"editorHtml",2),c([V("#toolbar")],At.prototype,"toolbar",2),c([p({reflect:!0})],At.prototype,"id",2),c([p()],At.prototype,"name",2),c([p()],At.prototype,"value",2),c([p({attribute:"interaction-type",type:String})],At.prototype,"interactionType",2),c([p({attribute:"attachment-url",type:String})],At.prototype,"uploadAttachmentUrl",2),c([p({attribute:"code-blocks",type:Boolean})],At.prototype,"codeBlocksEnabled",2),c([p({attribute:"dividers",type:Boolean})],At.prototype,"dividersEnabled",2),c([p({attribute:"links",type:Boolean})],At.prototype,"linksEnabled",2),c([p({attribute:"attachments",type:Boolean})],At.prototype,"attachmentsEnabled",2),c([p({attribute:"images",type:Boolean})],At.prototype,"imagesEnabled",2),c([p({attribute:"videos",type:Boolean})],At.prototype,"videosEnabled",2),c([p({attribute:"dates",type:Boolean})],At.prototype,"datesEnabled",2),c([p({attribute:"emojis",type:Boolean})],At.prototype,"emojisEnabled",2),c([p({attribute:"code",type:Boolean})],At.prototype,"codeEnabled",2),c([p({attribute:"ai",type:Boolean})],At.prototype,"aiEnabled",2),c([p({attribute:"ai-path"})],At.prototype,"aiPath",2),c([p({attribute:"store-key",reflect:!0})],At.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],At.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],At.prototype,"localStorage",2);var s6=At;At.define("zn-editor");var Uw=A`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;position:absolute;overflow:hidden}::backdrop{background-color:var(--zn-backdrop-color,rgba(128,128,128,0.6))}.editor-dialog{background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);width:100%;max-width:975px;max-height:650px;padding:0}.editor-dialog .loading-wrapper{display:flex;flex-direction:column;height:100%;padding:1rem;gap:10px}.editor-dialog__close{position:absolute;top:0;right:0;margin:var(--zn-spacing-x-small);z-index:10001}.editor-dialog__content{min-height:min(500px,70vh);overflow:auto;box-sizing:border-box}`;var Wo=class extends C{constructor(){super(...arguments);this.hasFocus=!1;this.open=!1;this.uri=""}set editorId(t){this._editorId=t,this.requestUpdate()}connectedCallback(){super.connectedCallback()}firstUpdated(t){super.firstUpdated(t),this.dialogEl.addEventListener("close",()=>{this.open=!1,this.innerHTML=""})}setContent(t){this.innerHTML=t}handleOpenChange(){this.open?this.addOpenListeners():this.removeOpenListeners()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.dialogEl.close()}_getLoadingState(){return u`
|
|
2962
2962
|
<div class="loading-wrapper">
|
|
2963
2963
|
<zn-skeleton height="55px"></zn-skeleton>
|
|
2964
2964
|
<zn-skeleton height="55px"></zn-skeleton>
|
|
@@ -2971,8 +2971,9 @@ ${ua(this.code(r,t))}
|
|
|
2971
2971
|
context-data=${JSON.stringify({"editor-id":this._editorId})}>
|
|
2972
2972
|
<zn-button
|
|
2973
2973
|
class="editor-dialog__close"
|
|
2974
|
-
icon="
|
|
2975
|
-
icon-
|
|
2974
|
+
icon="x@lu"
|
|
2975
|
+
icon-button="small"
|
|
2976
|
+
icon-size="20"
|
|
2976
2977
|
type="button"
|
|
2977
2978
|
color="transparent"
|
|
2978
2979
|
@click="${()=>this.dialogEl.close()}"
|
package/package.json
CHANGED
|
@@ -96,8 +96,9 @@ export default class DialogComponent extends ZincElement {
|
|
|
96
96
|
context-data=${JSON.stringify({'editor-id': this._editorId})}>
|
|
97
97
|
<zn-button
|
|
98
98
|
class="editor-dialog__close"
|
|
99
|
-
icon="
|
|
100
|
-
icon-
|
|
99
|
+
icon="x@lu"
|
|
100
|
+
icon-button="small"
|
|
101
|
+
icon-size="20"
|
|
101
102
|
type="button"
|
|
102
103
|
color="transparent"
|
|
103
104
|
@click="${() => this.dialogEl.close()}"
|