@kong-ui-public/entities-shared 3.72.1 → 3.72.2-pr.3999.7a488ec91.0

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.
Files changed (37) hide show
  1. package/README.md +2 -0
  2. package/dist/_plugin-vue_export-helper-B2ERpA_4.cjs +1 -0
  3. package/dist/{_plugin-vue_export-helper-CH7HFDMi.js → _plugin-vue_export-helper-CnEmxi1C.js} +216 -213
  4. package/dist/deck-editor.cjs.js +1 -1
  5. package/dist/deck-editor.es.js +1 -1
  6. package/dist/entities-shared.cjs.js +75 -75
  7. package/dist/entities-shared.es.js +2326 -2154
  8. package/dist/style.css +1 -1
  9. package/dist/types/components/common/DeckCallout.vue.d.ts +2 -2
  10. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +16 -14
  11. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -1
  12. package/dist/types/components/entity-base-config-card/ConfigCardRowSchemaScope.vue.d.ts +26 -0
  13. package/dist/types/components/entity-base-config-card/ConfigCardRowSchemaScope.vue.d.ts.map +1 -0
  14. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +25 -13
  15. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
  16. package/dist/types/components/entity-base-config-card/EntityConfigCardView.vue.d.ts +247 -0
  17. package/dist/types/components/entity-base-config-card/EntityConfigCardView.vue.d.ts.map +1 -0
  18. package/dist/types/components/entity-base-config-card/reader-config-card.d.ts +34 -0
  19. package/dist/types/components/entity-base-config-card/reader-config-card.d.ts.map +1 -0
  20. package/dist/types/components/entity-base-config-card/record.d.ts +6 -0
  21. package/dist/types/components/entity-base-config-card/record.d.ts.map +1 -0
  22. package/dist/types/components/entity-base-config-card/row-schema.d.ts +11 -0
  23. package/dist/types/components/entity-base-config-card/row-schema.d.ts.map +1 -0
  24. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +1 -1
  25. package/dist/types/composables/index.d.ts +3 -3
  26. package/dist/types/composables/useDeckOptions.d.ts +3 -2
  27. package/dist/types/composables/useDeckOptions.d.ts.map +1 -1
  28. package/dist/types/composables/useSchema.d.ts +3 -3
  29. package/dist/types/composables/useSchema.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +4 -3
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/types/entity-base-config-card.d.ts +14 -0
  33. package/dist/types/types/entity-base-config-card.d.ts.map +1 -1
  34. package/dist/types/utils/config-card.d.ts +9 -0
  35. package/dist/types/utils/config-card.d.ts.map +1 -0
  36. package/package.json +2 -2
  37. package/dist/_plugin-vue_export-helper-CaP0B8XI.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./_plugin-vue_export-helper-CaP0B8XI.cjs"),p=require("@kong-ui-public/monaco-editor"),k=require("@kong/icons"),y=require("@kong/kongponents");require("@kong-ui-public/monaco-editor/dist/runtime/style.css");const _={class:"deck-command-editor-wrapper"},f={class:"deck-command-copy-button"},C=e.defineComponent({__name:"DeckCommandEditor",props:e.mergeModels({language:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const d=e.inject("app:konnectColorMode",e.computed(()=>"light")),n=e.useModel(r,"modelValue"),{i18n:{t:c}}=a.composables.useI18n(),s={scrollbar:{alwaysConsumeMouseWheel:!1},autoIndent:"keep",editContext:!1};async function u(){await m(n.value)}async function m(l){if(navigator.clipboard)try{return await navigator.clipboard.writeText(l),!0}catch{}const o=document?.createElement("textarea");o&&(o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="32px",o.style.height="32px",o.style.padding="0",o.style.border="none",o.style.outline="none",o.style.boxShadow="none",o.style.background="transparent",o.value=l,document?.body?.appendChild(o),o.focus(),o.select());let t;try{t=document?.execCommand("copy")}catch{t=!1}finally{document?.body?.removeChild(o)}return t}return(l,o)=>(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(),e.createBlock(e.unref(p.MonacoEditor),{key:e.unref(d),modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=t=>n.value=t),appearance:"standalone",class:"deck-command-editor",language:r.language,options:s,theme:e.unref(d)},null,8,["modelValue","language","theme"])),e.createElementVNode("div",f,[e.createVNode(e.unref(y.KCodeBlockIconButton),{"aria-label":e.unref(c)("deckCodeBlock.copy_tooltip"),"copy-tooltip":e.unref(c)("deckCodeBlock.copy_tooltip"),theme:"light",onClick:o[1]||(o[1]=t=>u())},{default:e.withCtx(()=>[e.createVNode(e.unref(k.CopyIcon),{decorative:""})]),_:1},8,["aria-label","copy-tooltip"])])]))}}),i=a._export_sfc(C,[["__scopeId","data-v-2da602e1"]]),g={},v={class:"editor-skeleton"};function b(r,d){const n=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,c=>e.createVNode(n,{key:c})),64))])}const E=a._export_sfc(g,[["render",b],["__scopeId","data-v-ec59bbd1"]]);function h(){e.provide(a.DECK_COMMAND_EDITOR_KEY,i)}exports.DeckCommandEditor=i;exports.DeckCommandEditorLoading=E;exports.provideDeckCommandEditor=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./_plugin-vue_export-helper-B2ERpA_4.cjs"),p=require("@kong-ui-public/monaco-editor"),k=require("@kong/icons"),y=require("@kong/kongponents");require("@kong-ui-public/monaco-editor/dist/runtime/style.css");const _={class:"deck-command-editor-wrapper"},f={class:"deck-command-copy-button"},C=e.defineComponent({__name:"DeckCommandEditor",props:e.mergeModels({language:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const d=e.inject("app:konnectColorMode",e.computed(()=>"light")),n=e.useModel(r,"modelValue"),{i18n:{t:c}}=a.composables.useI18n(),s={scrollbar:{alwaysConsumeMouseWheel:!1},autoIndent:"keep",editContext:!1};async function u(){await m(n.value)}async function m(l){if(navigator.clipboard)try{return await navigator.clipboard.writeText(l),!0}catch{}const o=document?.createElement("textarea");o&&(o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="32px",o.style.height="32px",o.style.padding="0",o.style.border="none",o.style.outline="none",o.style.boxShadow="none",o.style.background="transparent",o.value=l,document?.body?.appendChild(o),o.focus(),o.select());let t;try{t=document?.execCommand("copy")}catch{t=!1}finally{document?.body?.removeChild(o)}return t}return(l,o)=>(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(),e.createBlock(e.unref(p.MonacoEditor),{key:e.unref(d),modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=t=>n.value=t),appearance:"standalone",class:"deck-command-editor",language:r.language,options:s,theme:e.unref(d)},null,8,["modelValue","language","theme"])),e.createElementVNode("div",f,[e.createVNode(e.unref(y.KCodeBlockIconButton),{"aria-label":e.unref(c)("deckCodeBlock.copy_tooltip"),"copy-tooltip":e.unref(c)("deckCodeBlock.copy_tooltip"),theme:"light",onClick:o[1]||(o[1]=t=>u())},{default:e.withCtx(()=>[e.createVNode(e.unref(k.CopyIcon),{decorative:""})]),_:1},8,["aria-label","copy-tooltip"])])]))}}),i=a._export_sfc(C,[["__scopeId","data-v-2da602e1"]]),g={},v={class:"editor-skeleton"};function b(r,d){const n=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,c=>e.createVNode(n,{key:c})),64))])}const E=a._export_sfc(g,[["render",b],["__scopeId","data-v-ec59bbd1"]]);function h(){e.provide(a.DECK_COMMAND_EDITOR_KEY,i)}exports.DeckCommandEditor=i;exports.DeckCommandEditorLoading=E;exports.provideDeckCommandEditor=h;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, inject as f, computed as k, useModel as C, openBlock as c, createElementBlock as i, createBlock as g, unref as o, createElementVNode as v, createVNode as s, withCtx as h, mergeModels as b, resolveComponent as x, Fragment as E, renderList as D, provide as M } from "vue";
2
- import { c as w, _ as m, D as V } from "./_plugin-vue_export-helper-CH7HFDMi.js";
2
+ import { c as w, _ as m, D as V } from "./_plugin-vue_export-helper-CnEmxi1C.js";
3
3
  import { MonacoEditor as B } from "@kong-ui-public/monaco-editor";
4
4
  import { CopyIcon as I } from "@kong/icons";
5
5
  import { KCodeBlockIconButton as K } from "@kong/kongponents";