@sme.up/ketchup 4.0.0 → 4.1.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.
- package/dist/cjs/{cell-utils-1f89a299.js → cell-utils-841a7769.js} +2 -2
- package/dist/cjs/{f-chip-2d58c8f7.js → f-chip-b9f489ff.js} +7 -5
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-0c3e6aa7.js} +3 -4
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +1014 -1103
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-dash_2.cjs.entry.js +106 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -30
- package/dist/cjs/{kup-manager-59ad8bdc.js → kup-manager-828bd598.js} +599 -519
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/{kup-objects-59ea949c.js → kup-objects-89f38d6a.js} +7 -29
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-5192ee20.js} +1 -1
- package/dist/collection/assets/data-table.js +1 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +9 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +20 -23
- package/dist/collection/components/kup-badge/kup-badge.js +12 -12
- package/dist/collection/components/kup-box/kup-box.css +30 -30
- package/dist/collection/components/kup-box/kup-box.js +181 -171
- package/dist/collection/components/kup-button/kup-button.css +8 -5
- package/dist/collection/components/kup-button/kup-button.js +26 -26
- package/dist/collection/components/kup-button-list/kup-button-list.css +8 -5
- package/dist/collection/components/kup-button-list/kup-button-list.js +18 -18
- package/dist/collection/components/kup-calendar/kup-calendar.css +8 -6
- package/dist/collection/components/kup-calendar/kup-calendar.js +30 -30
- package/dist/collection/components/kup-card/kup-card-helper.js +2 -1
- package/dist/collection/components/kup-card/kup-card.css +20 -1
- package/dist/collection/components/kup-card/kup-card.js +26 -26
- package/dist/collection/components/kup-chart/kup-chart.js +40 -40
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +18 -18
- package/dist/collection/components/kup-chip/kup-chip.css +0 -1
- package/dist/collection/components/kup-chip/kup-chip.js +14 -14
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +6 -9
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +32 -40
- package/dist/collection/components/kup-combobox/kup-combobox.css +9 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +20 -23
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +25 -46
- package/dist/collection/components/kup-data-table/kup-data-table.css +83 -87
- package/dist/collection/components/kup-data-table/kup-data-table.js +364 -531
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +2373 -5
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +72 -104
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +13 -5
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +38 -43
- package/dist/collection/components/kup-field/kup-field.js +20 -20
- package/dist/collection/components/kup-gauge/kup-gauge.js +16 -16
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +12 -12
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/kup-image.js +24 -24
- package/dist/collection/components/kup-lazy/kup-lazy.js +16 -16
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -0
- package/dist/collection/components/kup-list/kup-list.js +38 -47
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +11 -6
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +27 -36
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +10 -10
- package/dist/collection/components/kup-paginator/kup-paginator.css +8 -5
- package/dist/collection/components/kup-probe/kup-probe.js +8 -8
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +20 -20
- package/dist/collection/components/kup-radio/kup-radio.js +16 -16
- package/dist/collection/components/kup-rating/kup-rating.js +14 -14
- package/dist/collection/components/kup-spinner/kup-spinner.js +22 -22
- package/dist/collection/components/kup-switch/kup-switch.js +16 -16
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +12 -12
- package/dist/collection/components/kup-text-field/kup-text-field.js +48 -48
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +2376 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +50 -83
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +18 -12
- package/dist/collection/components/kup-tree/kup-tree.css +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +96 -66
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-image/f-image.js +1 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +8 -6
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +11 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +25 -27
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +3 -5
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +362 -0
- package/dist/collection/utils/kup-manager/kup-manager.js +18 -6
- package/dist/collection/utils/kup-objects/kup-objects.js +7 -29
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/esm/{cell-utils-cb612463.js → cell-utils-de384721.js} +2 -2
- package/dist/esm/{f-chip-125d5dd6.js → f-chip-d585b63e.js} +7 -5
- package/dist/esm/{f-image-68b34fab.js → f-image-23548d00.js} +3 -4
- package/dist/esm/{index-bf2824a6.js → index-51694018.js} +73 -64
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_29.entry.js +818 -907
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +6 -6
- package/dist/esm/kup-dash_2.entry.js +106 -62
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +21 -30
- package/dist/esm/{kup-manager-e7d7b353.js → kup-manager-583f2815.js} +595 -520
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/{kup-objects-d38d2fa2.js → kup-objects-5968aefd.js} +7 -29
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-a1dd14c3.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-64ea7e37.entry.js → p-0e91c9c9.entry.js} +1 -1
- package/dist/ketchup/{p-0320e24e.entry.js → p-0f2b6a24.entry.js} +1 -1
- package/dist/ketchup/{p-a5424073.js → p-361d9431.js} +1 -1
- package/dist/ketchup/p-565785ce.js +1 -0
- package/dist/ketchup/{p-7896031c.entry.js → p-57eb45ac.entry.js} +1 -1
- package/dist/ketchup/{p-08c7a092.js → p-6f5d8830.js} +1 -1
- package/dist/ketchup/{p-9c858a38.entry.js → p-802d8906.entry.js} +1 -1
- package/dist/ketchup/p-850b9e67.entry.js +1 -0
- package/dist/ketchup/{p-a12a5690.entry.js → p-88a5787a.entry.js} +1 -1
- package/dist/ketchup/p-8ed2b7bf.entry.js +1 -0
- package/dist/ketchup/{p-ee89966f.entry.js → p-90a0c2b7.entry.js} +2 -2
- package/dist/ketchup/{p-876da4c2.entry.js → p-94c0dd8c.entry.js} +1 -1
- package/dist/ketchup/p-9ec3c377.entry.js +45 -0
- package/dist/ketchup/p-b30f34d8.js +1 -0
- package/dist/ketchup/p-b6a47512.entry.js +1 -0
- package/dist/ketchup/p-bfaf8a82.js +1 -0
- package/dist/ketchup/{p-940ab57a.entry.js → p-ca0ebdcc.entry.js} +1 -1
- package/dist/ketchup/p-d5a3a4ed.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-ee7b190c.js} +1 -1
- package/dist/ketchup/{p-b0724035.entry.js → p-f6b54fa1.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +11 -2
- package/dist/types/components/kup-box/kup-box.d.ts +8 -4
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +0 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +12 -4
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +16 -49
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -14
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +0 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +7 -11
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +3 -0
- package/dist/types/components.d.ts +84 -121
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +21 -4
- package/dist/types/utils/kup-manager/kup-manager.d.ts +2 -2
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/package.json +3 -3
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as n,K as t,c as r,a as u}from"./p-
|
|
1
|
+
import{f as n,K as t,c as r,a as u}from"./p-361d9431.js";import{q as e,t as i,v as o,n as l,d as f}from"./p-ee7b190c.js";var c,a=Array.isArray,s="object"==typeof self&&self&&self.Object===Object&&self,h="object"==typeof n&&n&&n.Object===Object&&n||s||Function("return this")(),v=h.Symbol,b=Object.prototype,d=b.hasOwnProperty,p=b.toString,y=v?v.toStringTag:void 0,j=Object.prototype.toString,m=v?v.toStringTag:void 0,g=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":m&&m in Object(n)?function(n){var t=d.call(n,y),r=n[y];try{n[y]=void 0;var u=!0}catch(n){}var e=p.call(n);return u&&(t?n[y]=r:delete n[y]),e}(n):function(n){return j.call(n)}(n)},_=function(n){return"symbol"==typeof n||function(n){return null!=n&&"object"==typeof n}(n)&&"[object Symbol]"==g(n)},O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,$=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},A=h["__core-js_shared__"],x=(c=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",F=Function.prototype.toString,G=/^\[object .+?Constructor\]$/,k=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=function(n){return!(!$(n)||(t=n,x&&x in t))&&(function(n){if(!$(n))return!1;var t=g(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(n)?k:G).test(function(n){if(null!=n){try{return F.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},P=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return E(r)?r:void 0},R=P(Object,"create"),T=Object.prototype.hasOwnProperty,B=Object.prototype.hasOwnProperty;function C(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var u=n[t];this.set(u[0],u[1])}}C.prototype.clear=function(){this.__data__=R?R(null):{},this.size=0},C.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},C.prototype.get=function(n){var t=this.__data__;if(R){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return T.call(t,n)?t[n]:void 0},C.prototype.has=function(n){var t=this.__data__;return R?void 0!==t[n]:B.call(t,n)},C.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=R&&void 0===t?"__lodash_hash_undefined__":t,this};var M=C,N=function(n,t){for(var r=n.length;r--;)if((u=n[r][0])===(e=t)||u!=u&&e!=e)return r;var u,e;return-1},D=Array.prototype.splice;function I(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var u=n[t];this.set(u[0],u[1])}}I.prototype.clear=function(){this.__data__=[],this.size=0},I.prototype.delete=function(n){var t=this.__data__,r=N(t,n);return!(r<0||(r==t.length-1?t.pop():D.call(t,r,1),--this.size,0))},I.prototype.get=function(n){var t=this.__data__,r=N(t,n);return r<0?void 0:t[r][1]},I.prototype.has=function(n){return N(this.__data__,n)>-1},I.prototype.set=function(n,t){var r=this.__data__,u=N(r,n);return u<0?(++this.size,r.push([n,t])):r[u][1]=t,this};var K=I,S=P(h,"Map"),U=function(n,t){var r,u,e=n.__data__;return("string"==(u=typeof(r=t))||"number"==u||"symbol"==u||"boolean"==u?"__proto__"!==r:null===r)?e["string"==typeof t?"string":"hash"]:e.map};function q(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var u=n[t];this.set(u[0],u[1])}}q.prototype.clear=function(){this.size=0,this.__data__={hash:new M,map:new(S||K),string:new M}},q.prototype.delete=function(n){var t=U(this,n).delete(n);return this.size-=t?1:0,t},q.prototype.get=function(n){return U(this,n).get(n)},q.prototype.has=function(n){return U(this,n).has(n)},q.prototype.set=function(n,t){var r=U(this,n),u=r.size;return r.set(n,t),this.size+=r.size==u?0:1,this};var H=q;function L(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var u=arguments,e=t?t.apply(this,u):u[0],i=r.cache;if(i.has(e))return i.get(e);var o=n.apply(this,u);return r.cache=i.set(e,o)||i,o};return r.cache=new(L.Cache||H),r}L.Cache=H;var z,J,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/\\(\\)?/g,W=(z=L((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(Q,(function(n,r,u,e){t.push(u?e.replace(V,"$1"):r||n)})),t}),(function(n){return 500===J.size&&J.clear(),n})),J=z.cache,z),X=v?v.prototype:void 0,Y=X?X.toString:void 0,Z=function n(t){if("string"==typeof t)return t;if(a(t))return function(n,t){for(var r=-1,u=null==n?0:n.length,e=Array(u);++r<u;)e[r]=t(n[r],r,n);return e}(t,n)+"";if(_(t))return Y?Y.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},nn=function(n,t){return a(n)?n:function(n,t){if(a(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!_(n))||w.test(n)||!O.test(n)||null!=t&&n in Object(t)}(n,t)?[n]:W(function(n){return null==n?"":Z(n)}(n))},tn=function(n){if("string"==typeof n||_(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t},rn=function(n,t,r){var u=null==n?void 0:function(n,t){for(var r=0,u=(t=nn(t,n)).length;null!=n&&r<u;)n=n[tn(t[r++])];return r&&r==u?n:void 0}(n,t);return void 0===u?r:u};const un=document.documentElement,en=un.ketchup?un.ketchup.dates:new t,on=un.ketchup?un.ketchup.objects:new r;function ln(n,t){let r=rn(n,"shape",null);return!r&&t&&(r=rn(t,"shape",null)),r?r.toUpperCase():null}function fn(n,t){let r=ln(n,t);return"PGB"===r||!r&&n&&n.obj&&on.isProgressBar(n.obj)}function cn(n,t){let r=ln(n,t);return"IMG"===r||!r&&n&&n.obj&&on.isImage(n.obj)}function an(n,t){return"EDT"===ln(n,t)}function sn(n,t){return"RTG"===ln(n,t)}function hn(n,t){let r=ln(n,t);return"GRA"===r||!r&&n&&n.obj&&on.isChart(n.obj)}function vn(n,t){let r=ln(n,t);return"RAD"===r||!r&&n&&n.obj&&on.isRadio(n.obj)}function bn(n,t){return"GAU"===ln(n,t)}function dn(n,t){return"KNB"===ln(n,t)}function pn(n){let t=n.obj;return function(n){return"BTN"===ln(n)}(n)?"btn":on.isBar(t)?"bar":on.isButton(t)?"button":on.isChart(t)?"chart":on.isCheckbox(t)?"checkbox":function(n){let t=ln(n,null);return"CLP"===t||!t&&n&&n.obj&&on.isColor(n.obj)}(n)?"color-picker":bn(n,null)?"gauge":dn(n,null)?"knob":on.isIcon(t)?"icon":cn(n,null)?"image":on.isLink(t)?"link":fn(n,null)?"progress-bar":vn(n,null)?"radio":sn(n,null)?"rating":function(n){let t=ln(n,null);return"CHI"===t||!t&&n&&n.obj&&on.isKupObjList(n.obj)}(n)?"chips":on.isNumber(t)?"number":on.isDate(t)?"date":on.isTimestamp(t)?"datetime":on.isTime(t)?"time":on.isTextField(t)?"text-field":on.isVoCodver(t)?"icon":"string"}function yn(n,t){if(null!=t&&null!=t.displayedValue)return t.displayedValue;let r=gn(t.value,n,t);return null!=t&&(t.displayedValue=r),r}function jn(n,t){return null==n?"":(null!=n.displayedValue&&""!=n.displayedValue.trim()||(n.displayedValue=gn(n.value,t,null)),n.displayedValue)}function mn(n){return n.obj?l(n.obj.k).value():l(n.value).value()}function gn(n,t,r){let u=null!=t?t.obj:null;return null!=r&&(u=r.obj?r.obj:u),_n(n,u,null!=t?t.decimals:null)}function _n(n,t,r){return null==n||""==n.trim()?n:on.isNumber(t)?e(n,r||-1,t?t.p:""):on.isDate(t)&&en.isValid(n,u.ISO_DATE)?en.format(n):on.isTime(t)?i(n,on.isTimeWithSeconds(t),t.t+t.p):on.isTimestamp(t)?o(n):n}function On(n,t){if(null==n)return null;for(let r of n)if(r.name===t)return r;return null}function wn(n,t,r){return $n(n.obj,n.value,t.obj,t.value,r)}function $n(n,t,r,e,i){const o="A"===i?1:-1;if(null==n||null==r)return o*An(t,e);if(n.t!==r.t||n.p!==r.p){let t=An(n.t,r.t);return 0===t&&(t=An(n.p,r.p)),t*o}let l=t,c=e;if(l==c)return 0;if(""==l)return-1*o;if(""==c)return 1*o;let a=l,s=c;if(on.isNumber(n))a=f(l),s=f(c);else if(on.isDate(n))a=en.toDate(en.format(l,u.ISO_DATE)),s=en.toDate(en.format(c,u.ISO_DATE));else if(on.isTime(n)){let t=on.isTimeWithSeconds(n);a=en.toDate(en.format(l,t?u.ISO_TIME:u.ISO_TIME_WITHOUT_SECONDS)),s=en.toDate(en.format(c,t?u.ISO_TIME:u.ISO_TIME_WITHOUT_SECONDS))}else on.isTimestamp(n)&&(a=en.toDate(en.format(l,u.ISO_DATE_TIME)),s=en.toDate(en.format(c,u.ISO_DATE_TIME)));return a>s?1*o:a<s?-1*o:0}function An(n,t){let r=null==n?0:n.length,u=null==t?0:t.length;const e=Math.min(r,u);let i=0;for(;i<e;){const r=n[i],u=t[i];if(r!==u)return r.charCodeAt(0)-u.charCodeAt(0);i++}return r-u}export{jn as a,yn as b,On as c,$n as d,wn as e,an as f,_n as g,cn as h,hn as i,fn as j,vn as k,bn as l,dn as m,mn as n,sn as o,pn as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,f as s,h as e,H as o,a as h}from"./p-
|
|
1
|
+
import{r as t,c as i,f as s,h as e,H as o,a as h}from"./p-b30f34d8.js";import{k as r,a as n}from"./p-d5a3a4ed.js";import{g as a,s as d}from"./p-ee7b190c.js";import"./p-361d9431.js";var p;!function(t){t.buttonData="Props of the button (when isButton is set to true).",t.isButton="The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.",t.src="The address the iframe should be referencing to."}(p||(p={}));let c=class{constructor(s){t(this,s),this.kupIframeError=i(this,"kup-iframe-error",6),this.kupIframeLoad=i(this,"kup-iframe-load",6),this.buttonData={},this.isButton=!1,this.src=void 0,this.kupManager=r()}onKupIframeError(){this.kupIframeError.emit({comp:this,id:this.rootElement.id})}onKupIframeLoad(){this.kupIframeLoad.emit({comp:this,id:this.rootElement.id})}async getProps(t){return a(this,p,t)}async refresh(){s(this)}async setProps(t){d(this,p,t)}openInNew(){window.open(this.src,"_blank")}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){if(null!=this.src&&""!==this.src)return this.buttonData.icon||(this.buttonData.icon="open_in_new"),this.buttonData.label||(this.buttonData.label="Open in new tab"),this.isButton?e(o,{"is-button":!0},e("kup-button",Object.assign({},this.buttonData,{"onkup-button-click":()=>this.openInNew()}))):e(o,{"is-iframe":!0},e("iframe",{onError:this.onKupIframeError.bind(this),onLoad:this.onKupIframeLoad.bind(this),src:this.src}));this.kupManager.debug.logMessage(this,"Resource undefined, not rendering!",n.WARNING)}get rootElement(){return h(this)}};c.style="iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";export{c as kup_iframe}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,f as i,h as e,H as s,a as o}from"./p-b30f34d8.js";import{k as a,c as r,a as n,B as h,t as c,C as l,g as p,b as d}from"./p-d5a3a4ed.js";import{F as u}from"./p-0fd98ab4.js";import{F as m}from"./p-565785ce.js";import{g,s as b}from"./p-ee7b190c.js";import{c as k}from"./p-ad2e21d2.js";import"./p-361d9431.js";var f,x;!function(t){t.customStyle="Custom style of the component.",t.data="Sets the data that will be used to display different components."}(f||(f={})),function(t){t.BOX="Box",t.CHART="Chart",t.DATATABLE="Datatable",t.JSON="JSON"}(x||(x={}));let v=class{constructor(i){t(this,i),this.display=x.DATATABLE,this.customStyle="",this.data=null,this.kupManager=a(),this.dragHandler=null,this.wrapperRef=null}async getProps(t){return g(this,f,t)}async refresh(){i(this)}async setProps(t){b(this,f,t)}comboboxProps(){const t=[];for(const i in x)Object.prototype.hasOwnProperty.call(x,i)&&t.push({text:x[i],value:x[i],selected:!1});return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:!1,inputType:"text",label:this.kupManager.language.translate(r.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:!0,"onKup-combobox-itemclick":t=>{this.display=t.detail.value}}}setContent(){const t=[];if(this.data&&this.data.columns&&this.data.columns.length>0){const i={};switch(this.display){case x.BOX:i.data=this.data,t.push(e("kup-box",Object.assign({},i)));break;case x.CHART:i.data=this.data,i.series=[];for(let t=0;t<this.data.columns.length;t++){const e=this.data.columns[t];e.obj&&this.kupManager.objects.isNumber(e.obj)?i.series.push({code:e.name,decode:e.title}):i.axis=e.name}0===i.series.length&&this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",n.WARNING),i.axis||this.kupManager.debug.logMessage(this,"No axis for the chart!",n.WARNING),t.push(e("kup-chart",Object.assign({},i)));break;case x.DATATABLE:i.data=this.data,t.push(e("kup-data-table",Object.assign({},i)));break;case x.JSON:i.data=this.data,t.push(e("pre",{class:"json"},JSON.stringify(this.data,null,2)));break;default:return void this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",n.ERROR)}}else t.push(e("div",{class:"empty"},e(m,{sizeY:"100px",resource:"move_to_inbox"}),e("div",{class:"empty-text"},this.kupManager.language.translate(r.DROP_YOUR_DATA))));return t}updateData(t){{const i=Object.assign({},this.data),e=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null,s=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;e&&e.name?i.columns?this.data.columns.find((t=>t.name===e.name))||i.columns.push(e):i.columns=[e]:this.kupManager.debug.logMessage(this,"Invalid column received.",n.WARNING),s&&(i.rows?i.rows.push(s):i.rows=[s]),this.data=i}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(h,(t=>this.updateData(t))),this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle"),this.kupManager.interact.dialogify(this.rootElement,this.dragHandler),this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${c}],[${l}]`},{dispatcher:this.rootElement,type:p.MAGICBOX}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){const t=this.kupManager.theme.setCustomStyle(this.rootElement);return e(s,null,t?e("style",null,t):null,e("div",{id:k},e("div",{class:"magic-box-wrapper"},e("div",{class:"actions",id:"drag-handle"},e("kup-combobox",Object.assign({},this.comboboxProps())),e("kup-button",{styling:u.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),e("kup-button",{id:"close-dialog",customStyle:`:host{${d.PRIMARY}: var(${d.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),e("div",{class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};v.style=".f-image--wrapper{display:block;margin:auto;position:relative;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper.kup-fit img{max-width:max-content;object-fit:contain}.f-image--wrapper img{display:block;margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__css{overflow:hidden;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .f-image__icon{margin:auto;height:var(--kup_image_height, 100%);width:var(--kup_image_width, 100%)}.f-image--wrapper .css-step.bottom-aligned{bottom:0;position:absolute}:host{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;overflow:auto;width:700px}#kup-component,.magic-box-wrapper{height:100%;overflow:auto;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-color);box-sizing:border-box;display:flex;flex-direction:column}.actions{background-color:var(--kup-title-background-color);display:inline-flex;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image--wrapper{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";export{v as kup_magic_box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as o,f as t,h as e,H as a,a as i}from"./p-
|
|
1
|
+
import{r,c as o,f as t,h as e,H as a,a as i}from"./p-b30f34d8.js";import{k as p}from"./p-d5a3a4ed.js";import{g as s,s as n}from"./p-ee7b190c.js";import{c as d}from"./p-ad2e21d2.js";import"./p-361d9431.js";var c;!function(r){r.customStyle="Custom style of the component.",r.opened="Defaults at false. When set to true, the drawer appears."}(c||(c={}));let u=class{constructor(t){r(this,t),this.kupDrawerClose=o(this,"kup-drawer-close",6),this.kupDrawerOpen=o(this,"kup-drawer-open",6),this.kupDrawerReady=o(this,"kup-drawer-ready",6),this.opened=!1,this.customStyle="",this.kupManager=p()}async close(){this.opened=!1,this.kupDrawerClose.emit({comp:this,id:this.rootElement.id})}async getProps(r){return s(this,c,r)}async isOpened(){return this.opened}async open(){this.opened=!0,this.kupDrawerOpen.emit({comp:this,id:this.rootElement.id})}async refresh(){t(this)}async setProps(r){n(this,c,r)}async toggle(){this.opened?this.close():this.open()}content(){const r=[],o=Array.prototype.slice.call(this.rootElement.children,0),t=[];for(let t=0;t<o.length;t++)r.push(e("slot",null));return t.push(e("div",{class:"drawer__content"},r)),t}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupDrawerReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){const r=this.kupManager.theme.setCustomStyle(this.rootElement);return e(a,{"kup-opened":this.opened},r?e("style",null,r):null,e("div",{class:"backdrop",onPointerDown:()=>this.close()}),e("div",{id:d},e("div",{class:"drawer"},this.content())))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};u.style=":host{--kup_drawer_backdrop:var(--kup-drawer-backdrop, rgba(0, 0, 0, 0.32));--kup_drawer_box_shadow:var(\n --kup-drawer-box-shadow,\n 0 8px 10px -5px rgba(0, 0, 0, 0.2),\n 0 16px 24px 2px rgba(0, 0, 0, 0.14),\n 0 6px 30px 5px rgba(0, 0, 0, 0.12)\n );--kup_drawer_permanent_border:var(\n --kup-drawer-permanent-border,\n 1px solid var(--kup-border-color)\n );--kup_drawer_slide_transition:var(--kup-drawer-slide-transition, 750ms);--kup_drawer_transition:var(--kup-drawer-transition, 250ms);box-shadow:var(--kup_drawer_box_shadow);display:block;font-size:var(--kup-font-size);height:100vh;left:calc(var(--kup-drawer-width) * -1);position:fixed;top:0;transition:left var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1), right var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1);width:var(--kup-drawer-width);z-index:var(--kup-drawer-zindex)}#kup-component{height:100%;width:100%}.backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--kup_drawer_backdrop);opacity:0;pointer-events:none;transition:opacity var(--kup_drawer_transition) ease-in;z-index:var(--kup-drawer-zindex)}.drawer{height:100%;position:fixed;width:var(--kup-drawer-width);z-index:calc(var(--kup-drawer-zindex) + 1)}.drawer__content{background-color:var(--kup-drawer-background-color);box-sizing:border-box;height:100%;overflow-y:auto;width:100%}.drawer ::slotted(*){--kup-button-primary-color:var(--kup-drawer-color);--kup-button-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-button-primary-color-h:var(--kup-drawer-color-h);--kup-button-primary-color-s:var(--kup-drawer-color-s);--kup-button-primary-color-l:var(--kup-drawer-color-l);--kup-switch-label-color:var(--kup-drawer-color);--kup-switch-primary-color:var(--kup-drawer-color);--kup-switch-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-color:var(--kup-drawer-color);--kup-textfield-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-primary-color:var(--kup-drawer-color);--kup-textfield-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-color:var(--kup-drawer-color);--kup-tree-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-icon-color:var(--kup-drawer-color);color:var(--kup-drawer-color);fill:var(--kup-drawer-color)}:host([kup-opened]){left:0}:host([kup-opened]) .backdrop{opacity:1;pointer-events:all}:host(.kup-right){left:unset;right:-100%}:host([kup-opened].kup-right){right:0}:host(.kup-permanent){box-shadow:unset;transition:all 250ms}:host(.kup-permanent) .backdrop{display:none}:host(.kup-permanent) .drawer{position:relative}:host(.kup-permanent) .drawer__content{border-right:var(--kup_drawer_permanent_border)}";export{u as kup_drawer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,f as e,h as s,H as i,a as h}from"./p-b30f34d8.js";import{k as o}from"./p-d5a3a4ed.js";import{g as a,s as n}from"./p-ee7b190c.js";import{c as p}from"./p-ad2e21d2.js";import"./p-361d9431.js";var c,l;!function(t){t.componentName="Sets the tag name of the component to be lazy loaded.",t.customStyle="Custom style of the component.",t.data="Sets the data of the component to be lazy loaded.",t.showPlaceholder="Displays an animated SVG placeholder until the component is loaded."}(c||(c={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(l||(l={}));let r=class{constructor(e){t(this,e),this.isInViewport=!1,this.componentName=null,this.customStyle="",this.data=null,this.renderMode=l.BOTH,this.showPlaceholder=!0,this.intObserver=null,this.kupManager=o()}async getProps(t){return a(this,c,t)}async refresh(){e(this)}async setProps(t){n(this,c,t)}setObserver(){this.intObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.kupManager.debug.logMessage(this,"kup-lazy entering the viewport, rendering "+this.componentName+"."),this.isInViewport=!0,this.intObserver.unobserve(this.rootElement))}))}),{threshold:.25})}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.setObserver()}componentDidLoad(){this.intObserver.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){let t,e,h=this.componentName;switch(this.componentName){case"kup-button":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z"}));break;case"kup-card":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}));break;case"kup-checkbox":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z"}));break;case"kup-chart":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},s("path",{d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},s("path",{d:"M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z"}));break;case"kup-image":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z"}));break;case"kup-progress-bar":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z"}));break;case"kup-radio":e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}));break;default:e=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},s("path",{d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}))}this.renderMode===l.VIEWPORT&&this.isInViewport||this.renderMode===l.PROPS&&this.data||this.renderMode===l.BOTH&&this.data&&this.isInViewport?(t=s(this.componentName,Object.assign({},this.data)),h+=" kup-loaded"):this.showPlaceholder&&(t=e,h+=" kup-to-be-loaded");const o=this.kupManager.theme.setCustomStyle(this.rootElement);return s(i,{class:h},o?s("style",null,o):null,s("div",{id:p},t))}disconnectedCallback(){this.kupManager.theme.unregister(this),this.intObserver.unobserve(this.rootElement)}get rootElement(){return h(this)}};r.style=":host{--kup_lazy_animation_time:var(--kup-lazy-animation-time, 2s);--kup_lazy_placeholder_color:var(\n --kup-lazy-placeholder-color,\n var(--kup-icon-color)\n );display:block;height:100%;width:100%;position:relative}#kup-component{display:flex;justify-content:center;align-content:center;align-items:center;height:100%;width:100%}svg{fill:var(--kup_lazy_placeholder_color);animation:shine ease var(--kup_lazy_animation_time) infinite}@keyframes shine{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}:host(.kup-left-aligned) #kup-component{justify-content:left}:host(.kup-right-aligned) #kup-component{justify-content:right}:host(.kup-to-be-loaded) #kup-component{position:absolute}:host(.kup-to-be-loaded) #kup-component>*{margin:auto}:host(.kup-data-table.kup-loaded) #kup-component{display:block}";export{r as kup_lazy}
|