@sme.up/ketchup 8.0.0 → 8.0.1
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/{f-button-49b2c37c.js → f-button-c0ede055.js} +2 -2
- package/dist/cjs/{f-cell-9a6bc55c.js → f-cell-1c17dbac.js} +17 -10
- package/dist/cjs/{f-checkbox-593f72c3.js → f-checkbox-1148e791.js} +1 -1
- package/dist/cjs/{f-chip-dee84122.js → f-chip-bace36bb.js} +3 -3
- package/dist/cjs/{f-image-27f965ff.js → f-image-22174590.js} +2 -2
- package/dist/cjs/{f-paginator-utils-4a30189d.js → f-paginator-utils-e21e1f06.js} +3 -3
- package/dist/cjs/{f-text-field-04a663b4.js → f-text-field-503f2bb0.js} +83 -9
- package/dist/cjs/{index-74433248.js → index-1f177abc.js} +0 -3
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +778 -740
- package/dist/cjs/kup-box.cjs.entry.js +10 -10
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +3 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-2ff5d258.js → kup-manager-b994cf71.js} +88 -16
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +12 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +44 -0
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +1 -3
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +27 -0
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +109 -10
- package/dist/collection/f-components/f-cell/f-cell.js +12 -5
- package/dist/collection/f-components/f-text-field/f-text-field.js +80 -6
- package/dist/collection/managers/kup-math/kup-math.js +85 -4
- package/dist/collection/utils/utils.js +1 -10
- package/dist/components/kup-autocomplete2.js +543 -349
- package/dist/components/kup-dash-list.js +2 -3
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-family-tree.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +8 -0
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{f-button-744cf1f6.js → f-button-c377973d.js} +2 -2
- package/dist/esm/{f-cell-b319c869.js → f-cell-e5a98bc8.js} +17 -10
- package/dist/esm/{f-checkbox-ec85b437.js → f-checkbox-9b3f5f5b.js} +1 -1
- package/dist/esm/{f-chip-7e3e4180.js → f-chip-c8a18c48.js} +3 -3
- package/dist/esm/{f-image-098c26ce.js → f-image-5cbdf39d.js} +2 -2
- package/dist/esm/{f-paginator-utils-674cb2ae.js → f-paginator-utils-a1dab059.js} +3 -3
- package/dist/esm/{f-text-field-c38ef113.js → f-text-field-dafb7c8b.js} +83 -9
- package/dist/esm/{index-b326ffc9.js → index-8bd38435.js} +1 -3
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +778 -740
- package/dist/esm/kup-box.entry.js +10 -10
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +3 -4
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-b41eb2a8.js → kup-manager-3594cde8.js} +88 -16
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +12 -4
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-3efe7f43.entry.js → p-017418e7.entry.js} +1 -1
- package/dist/ketchup/{p-395e1960.entry.js → p-22e72f06.entry.js} +1 -1
- package/dist/ketchup/{p-77e3d537.js → p-2d32e3cd.js} +1 -1
- package/dist/ketchup/{p-5ce2b4fc.entry.js → p-31abf4b6.entry.js} +1 -1
- package/dist/ketchup/{p-b244f5ca.entry.js → p-37ada0f0.entry.js} +1 -1
- package/dist/ketchup/{p-a877a87b.entry.js → p-38f16697.entry.js} +2 -2
- package/dist/ketchup/{p-9700eb32.js → p-4638fbff.js} +1 -1
- package/dist/ketchup/{p-af82131e.entry.js → p-473d2bea.entry.js} +1 -1
- package/dist/ketchup/{p-da891093.entry.js → p-4c56e199.entry.js} +1 -1
- package/dist/ketchup/{p-a9b7533b.entry.js → p-5205286a.entry.js} +1 -1
- package/dist/ketchup/p-61319cfa.js +1 -0
- package/dist/ketchup/{p-ef614656.js → p-6762d447.js} +1 -1
- package/dist/ketchup/p-6c726886.entry.js +1 -0
- package/dist/ketchup/{p-0b91f5f8.entry.js → p-7be5ef32.entry.js} +1 -1
- package/dist/ketchup/{p-3b41aca7.entry.js → p-7f4f5f0f.entry.js} +1 -1
- package/dist/ketchup/{p-b032f47d.entry.js → p-80815edf.entry.js} +1 -1
- package/dist/ketchup/p-8b248655.js +1 -0
- package/dist/ketchup/{p-d4ece435.js → p-9dcfbb1e.js} +2 -2
- package/dist/ketchup/{p-c26975bf.js → p-9f9b6656.js} +1 -1
- package/dist/ketchup/{p-4325d965.entry.js → p-9fc6a9a8.entry.js} +1 -1
- package/dist/ketchup/{p-940a5feb.js → p-acaa171f.js} +3 -3
- package/dist/ketchup/{p-4ae2ca6f.entry.js → p-afff7a6e.entry.js} +1 -1
- package/dist/ketchup/{p-bd42562d.entry.js → p-b718af72.entry.js} +1 -1
- package/dist/ketchup/p-bf4a881b.js +1 -0
- package/dist/ketchup/{p-d739710a.entry.js → p-ce5b6ce7.entry.js} +1 -1
- package/dist/ketchup/p-cf322853.entry.js +1 -0
- package/dist/ketchup/{p-bb17c1ba.entry.js → p-d1164680.entry.js} +1 -1
- package/dist/ketchup/p-d4eb9a76.entry.js +1 -0
- package/dist/ketchup/p-d76be079.entry.js +1 -0
- package/dist/ketchup/{p-e02b5141.entry.js → p-ed7e118e.entry.js} +1 -1
- package/dist/ketchup/{p-a7e19620.entry.js → p-ef0b4f19.entry.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +5 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +20 -2
- package/dist/types/components.d.ts +34 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +3 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +26 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ketchup/p-0b0b61cb.entry.js +0 -1
- package/dist/ketchup/p-5d398e42.js +0 -1
- package/dist/ketchup/p-c8b7790a.entry.js +0 -1
- package/dist/ketchup/p-c968e93d.entry.js +0 -1
- package/dist/ketchup/p-d98fdb9b.js +0 -1
- package/dist/ketchup/p-df316daf.entry.js +0 -1
- package/dist/ketchup/p-e714f4dc.js +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate,
|
|
2
|
-
import { k as kupManagerInstance, z as identify, g as getProps, s as setProps, u as getColumnByName, l as KupLanguageGeneric, K as KupThemeIconValues, c as KupDebugCategory, R as KupPointerEventTypes, W as KupDragEffect, X as kupDraggableCellAttr, Y as KupDropEventTypes, I as KupLanguageSearch, a3 as SortMode } from './kup-manager-
|
|
3
|
-
import { f as filterRows, p as paginateRows, s as sortRows, d as pageChange, r as rowsPerPageChange, h as FPaginatorMode, b as FPaginator } from './f-paginator-utils-
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
5
|
-
import { a as FChip } from './f-chip-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, z as identify, g as getProps, s as setProps, u as getColumnByName, l as KupLanguageGeneric, K as KupThemeIconValues, c as KupDebugCategory, R as KupPointerEventTypes, W as KupDragEffect, X as kupDraggableCellAttr, Y as KupDropEventTypes, I as KupLanguageSearch, a3 as SortMode } from './kup-manager-3594cde8.js';
|
|
3
|
+
import { f as filterRows, p as paginateRows, s as sortRows, d as pageChange, r as rowsPerPageChange, h as FPaginatorMode, b as FPaginator } from './f-paginator-utils-a1dab059.js';
|
|
4
|
+
import { F as FImage } from './f-image-5cbdf39d.js';
|
|
5
|
+
import { a as FChip } from './f-chip-c8a18c48.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
7
|
+
import { F as FCell } from './f-cell-e5a98bc8.js';
|
|
8
8
|
import { F as FTextFieldMDC } from './f-text-field-mdc-cee583ea.js';
|
|
9
|
-
import './f-button-
|
|
9
|
+
import './f-button-c377973d.js';
|
|
10
10
|
import './f-button-declarations-b1b4cac4.js';
|
|
11
|
-
import './f-checkbox-
|
|
12
|
-
import './f-text-field-
|
|
11
|
+
import './f-checkbox-9b3f5f5b.js';
|
|
12
|
+
import './f-text-field-dafb7c8b.js';
|
|
13
13
|
import './tslib.es6-8c2af864.js';
|
|
14
14
|
import './component-120651a0.js';
|
|
15
15
|
|
|
@@ -400,7 +400,7 @@ const KupBox = class {
|
|
|
400
400
|
}
|
|
401
401
|
// event listeners
|
|
402
402
|
onBoxClick({ target }, row) {
|
|
403
|
-
if (!(target instanceof
|
|
403
|
+
if (!(target instanceof HTMLElement)) {
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
// searching parent
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getAssetPath, f as forceUpdate, h as h$1, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, f as forceUpdate, h as h$1, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
2
|
import { _ as __extends, a as __assign, c as __spreadArray } from './tslib.es6-8c2af864.js';
|
|
3
|
-
import {
|
|
3
|
+
import { at as createCommonjsModule, au as getDefaultExportFromCjs, k as kupManagerInstance, g as getProps, s as setProps, av as KupDatesLocales, l as KupLanguageGeneric, u as getColumnByName } from './kup-manager-3594cde8.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
5
|
-
import { F as FButton } from './f-button-
|
|
6
|
-
import { a as FChip, F as FChipType } from './f-chip-
|
|
5
|
+
import { F as FButton } from './f-button-c377973d.js';
|
|
6
|
+
import { a as FChip, F as FChipType } from './f-chip-c8a18c48.js';
|
|
7
7
|
import './f-button-declarations-b1b4cac4.js';
|
|
8
|
-
import './f-image-
|
|
8
|
+
import './f-image-5cbdf39d.js';
|
|
9
9
|
|
|
10
10
|
var n,l,u$1,t,o,r$1,f$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y(l,f,t,o,null)}function y(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function p(){return {current:null}}function d(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k(n,l){if(null==l)return n.__?k(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g$1.__r++||r$1!==l.debounceRendering)&&((r$1=l.debounceRendering)||o)(g$1);}function g$1(){for(var n;g$1.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$2(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k(t):o,t.__h),z$1(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y(null,_,null,null,_):Array.isArray(_)?y(d,{children:_},null,null,null):_.__b>0?y(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$2(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P$1(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M$1(g[h],g[++h],g[++h]);}function x$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$1(i,l,u):P$1(u,i,i,t,i.__e,l));return l}function A$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A$1(n,l);}):l.push(n)),l}function P$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I$1,o):n.removeEventListener(l,o?T$1:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I$1(n){this.l[n.type+!1](l.event?l.event(n):n);}function T$1(n){this.l[n.type+!0](l.event?l.event(n):n);}function j$2(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O$1),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(s=l.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i);}}function z$1(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H$1(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H$1(l,"checked",_,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l.__e(n,i);}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function S$1(u,i,t){var o,r,f;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$2(i,u=(!o&&t||i).__k=v$1(d,null,[u]),r||e$1,e$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z$1(f,u);}function D$1(n,l){var u={__c:l="__cC"+f$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(m);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=c$1.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m(this));},_.prototype.render=d,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0,f$1=0;
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, d as FCellPadding, g as getProps, s as setProps, W as KupDragEffect, l as KupLanguageGeneric } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, d as FCellPadding, g as getProps, s as setProps, W as KupDragEffect, l as KupLanguageGeneric } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
|
-
import { F as FCell } from './f-cell-
|
|
5
|
-
import './f-checkbox-
|
|
6
|
-
import './f-text-field-
|
|
7
|
-
import './f-image-
|
|
8
|
-
import './f-chip-
|
|
4
|
+
import { F as FCell } from './f-cell-e5a98bc8.js';
|
|
5
|
+
import './f-checkbox-9b3f5f5b.js';
|
|
6
|
+
import './f-text-field-dafb7c8b.js';
|
|
7
|
+
import './f-image-5cbdf39d.js';
|
|
8
|
+
import './f-chip-c8a18c48.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Props of the kup-cell component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { k as kupManagerInstance,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, an as getCellValueForDisplay } from './kup-manager-3594cde8.js';
|
|
3
3
|
|
|
4
4
|
const kupDashListCss = ".horizontal{display:inline-block;min-width:300px;max-width:100%;overflow:visible;white-space:nowrap;border:solid;border-width:1px;margin:2px}";
|
|
5
5
|
|
|
@@ -87,8 +87,7 @@ const KupDashList = class {
|
|
|
87
87
|
if (this.data.columns[6] &&
|
|
88
88
|
r.cells[this.data.columns[6].name].obj.k) {
|
|
89
89
|
newValue =
|
|
90
|
-
newValue +
|
|
91
|
-
getDecimalSeparator(this.kupManager.dates.getLocale());
|
|
90
|
+
newValue + this.kupManager.math.decimalSeparator();
|
|
92
91
|
}
|
|
93
92
|
valueInt = (h("div", { slot: "value-int", style: valueColor }, newValue));
|
|
94
93
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, f as forceUpdate, H as Host } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupDebugCategory } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, f as forceUpdate, H as Host } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupDebugCategory } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
const kupDashCss = "#dash{color:var(--kup-text-color);font-size:2vw;display:flex;align-items:center;justify-content:center;position:relative;text-align:center;position:relative;word-break:normal}#dash.with-dyn{cursor:pointer}#dash #content .icon{margin:auto;font-size:90%}#dash #content.layout-1,#dash #content.layout-3{text-align:center}#dash #content.layout-1 .descr,#dash #content.layout-3 .descr{font-size:70%;width:100%}#dash #content.layout-1 .value,#dash #content.layout-3 .value{font-size:220%}#dash #content.layout-2>div{display:flex}#dash #content.layout-2>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-2>div .value-int{font-size:250%}#dash #content.layout-2>div .value-dec,#dash #content.layout-2>div .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-2>div .value-dec{margin-left:2%}#dash #content.layout-2>div .unit{margin-left:4%}#dash #content.layout-4>div{display:grid;grid-template-columns:2fr 5fr}#dash #content.layout-4>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-4>div .value-and-unit{display:flex}#dash #content.layout-4>div .value-and-unit .value-int{font-size:250%}#dash #content.layout-4>div .value-and-unit .value-dec,#dash #content.layout-4>div .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-4>div .value-and-unit .value-dec{margin-left:2%}#dash #content.layout-4>div .value-and-unit .unit{margin-left:4%}#dash #content.layout-4>div .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}#dash #content.layout-5>div,#dash #content.layout-7>div{display:flex}#dash #content.layout-5>div .icon,#dash #content.layout-7>div .icon{font-size:150%;margin:auto;margin-left:10%}#dash #content.layout-5>div .value,#dash #content.layout-7>div .value{font-size:200%}#dash #content.layout-5>div .descr,#dash #content.layout-7>div .descr{text-align:right;font-size:65%;width:100%;min-width:max-content}#dash #content.layout-6>div{display:flex;justify-content:space-between}#dash #content.layout-6>div .icon{font-size:150%;margin-right:10%}#dash #content.layout-6>div .value{font-size:220%;text-align:right}#dash #content.layout-6>div .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}#dash #content.layout-8>div{display:flex;align-items:center}#dash #content.layout-8>div .icon{margin-right:4%;font-size:75%}#dash #content.layout-8>div .value{margin:0 10%;font-size:250%}#dash #content.layout-8>div .descr{font-size:60%;text-align:left}";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { F as FButton } from './f-button-
|
|
3
|
-
import { F as FCheckbox } from './f-checkbox-
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { F as FButton } from './f-button-c377973d.js';
|
|
3
|
+
import { F as FCheckbox } from './f-checkbox-9b3f5f5b.js';
|
|
4
|
+
import { F as FTextField } from './f-text-field-dafb7c8b.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-cee583ea.js';
|
|
6
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, aw as KupLanguageDashboard, l as KupLanguageGeneric, W as KupDragEffect, c as KupDebugCategory } from './kup-manager-
|
|
6
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, aw as KupLanguageDashboard, l as KupLanguageGeneric, W as KupDragEffect, c as KupDebugCategory } from './kup-manager-3594cde8.js';
|
|
7
7
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
8
8
|
import './f-button-declarations-b1b4cac4.js';
|
|
9
|
-
import './f-image-
|
|
9
|
+
import './f-image-5cbdf39d.js';
|
|
10
10
|
import './tslib.es6-8c2af864.js';
|
|
11
11
|
import './component-120651a0.js';
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
const drawerClass = 'drawer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupThemeColorValues, c as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupThemeColorValues, c as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { F as FButton } from './f-button-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { F as FButton } from './f-button-c377973d.js';
|
|
3
3
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
5
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, R as KupPointerEventTypes } from './kup-manager-
|
|
4
|
+
import { F as FImage } from './f-image-5cbdf39d.js';
|
|
5
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, R as KupPointerEventTypes } from './kup-manager-3594cde8.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupDebugCategory } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupDebugCategory } from './kup-manager-3594cde8.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Props of the kup-iframe component.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as FCellPadding } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as FCellPadding } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
5
|
-
import { F as FButton } from './f-button-
|
|
4
|
+
import { F as FImage } from './f-image-5cbdf39d.js';
|
|
5
|
+
import { F as FButton } from './f-button-c377973d.js';
|
|
6
6
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
7
|
+
import { F as FCell } from './f-cell-e5a98bc8.js';
|
|
8
8
|
import { M as MDCRipple } from './component-120651a0.js';
|
|
9
|
-
import './f-checkbox-
|
|
10
|
-
import './f-text-field-
|
|
11
|
-
import './f-chip-
|
|
9
|
+
import './f-checkbox-9b3f5f5b.js';
|
|
10
|
+
import './f-text-field-dafb7c8b.js';
|
|
11
|
+
import './f-chip-c8a18c48.js';
|
|
12
12
|
import './tslib.es6-8c2af864.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, c as KupDebugCategory, ax as kupDropEvent, U as kupDraggableColumnAttr, ay as kupDraggableRowAttr, Y as KupDropEventTypes, b as KupThemeColorValues } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, c as KupDebugCategory, ax as kupDropEvent, U as kupDraggableColumnAttr, ay as kupDraggableRowAttr, Y as KupDropEventTypes, b as KupThemeColorValues } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
4
|
+
import { F as FImage } from './f-image-5cbdf39d.js';
|
|
5
5
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getAssetPath, d as setAssetPath } from './index-
|
|
1
|
+
import { a as getAssetPath, d as setAssetPath } from './index-8bd38435.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Props of the kup-card component.
|
|
@@ -6019,12 +6019,6 @@ function identify(array) {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
}
|
|
6021
6021
|
}
|
|
6022
|
-
function getSeparator(locale, separatorType) {
|
|
6023
|
-
const numberWithGroupAndDecimalSeparator = 1000.1;
|
|
6024
|
-
return Intl.NumberFormat(locale)
|
|
6025
|
-
.formatToParts(numberWithGroupAndDecimalSeparator)
|
|
6026
|
-
.find((part) => part.type === separatorType).value;
|
|
6027
|
-
}
|
|
6028
6022
|
function getCurrentTimeFormatFromBrowserLocale(manageSeconds) {
|
|
6029
6023
|
const options = {
|
|
6030
6024
|
hour: '2-digit',
|
|
@@ -6141,7 +6135,7 @@ function unformattedStringToFormattedStringNumber(input, decimals, type) {
|
|
|
6141
6135
|
* @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
|
|
6142
6136
|
**/
|
|
6143
6137
|
function formattedStringToUnformattedStringNumber(input, type) {
|
|
6144
|
-
return numberStringToNumberString(input, type,
|
|
6138
|
+
return numberStringToNumberString(input, type, dom$a.ketchup.math.decimalSeparator());
|
|
6145
6139
|
}
|
|
6146
6140
|
/**
|
|
6147
6141
|
* @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers), with group separator
|
|
@@ -6178,9 +6172,6 @@ function numberStringToNumberString(input, type, decFmt) {
|
|
|
6178
6172
|
let unf = stringToNumber(input);
|
|
6179
6173
|
return _numberToString(unf, -1, 'en-US', false);
|
|
6180
6174
|
}
|
|
6181
|
-
function getDecimalSeparator(locale) {
|
|
6182
|
-
return getSeparator(locale, 'decimal');
|
|
6183
|
-
}
|
|
6184
6175
|
function countDecimals(value) {
|
|
6185
6176
|
if (Math.floor(value) === value)
|
|
6186
6177
|
return 0;
|
|
@@ -9925,10 +9916,11 @@ class KupMath {
|
|
|
9925
9916
|
* Formats the input number with the specified format of the currently set locale.
|
|
9926
9917
|
* @param {string | String | number} input - Input number which will be automatically "numberified".
|
|
9927
9918
|
* @param {string} format - Desired format. Defaults to '0,0.00' (i.e.: 2,000,000.51).
|
|
9919
|
+
* @param {boolean} inputIsLocalized Numberifies assuming the input string is in the current KupMath locale's format.
|
|
9928
9920
|
* @returns {string} Formatted number.
|
|
9929
9921
|
*/
|
|
9930
|
-
format(input, format) {
|
|
9931
|
-
const n = this.numberify(input);
|
|
9922
|
+
format(input, format, inputIsLocalized) {
|
|
9923
|
+
const n = this.numberify(input, inputIsLocalized);
|
|
9932
9924
|
if (!format) {
|
|
9933
9925
|
const positiveN = Math.abs(n);
|
|
9934
9926
|
const decimals = positiveN - Math.floor(positiveN);
|
|
@@ -9939,8 +9931,88 @@ class KupMath {
|
|
|
9939
9931
|
format = '0,0';
|
|
9940
9932
|
}
|
|
9941
9933
|
}
|
|
9942
|
-
|
|
9943
|
-
|
|
9934
|
+
return this.numeral(n).format(format);
|
|
9935
|
+
}
|
|
9936
|
+
/**
|
|
9937
|
+
* Created the string for format a number
|
|
9938
|
+
* @param {boolean} thousandPoint - show thousandPoint
|
|
9939
|
+
* @param {number} decimals - number of decimals
|
|
9940
|
+
*/
|
|
9941
|
+
createFormatPattern(thousandPoint, decimals) {
|
|
9942
|
+
var format = '0';
|
|
9943
|
+
if (thousandPoint) {
|
|
9944
|
+
format += ',000';
|
|
9945
|
+
}
|
|
9946
|
+
if (decimals && decimals > 0) {
|
|
9947
|
+
format += '.';
|
|
9948
|
+
for (let i = 0; i < decimals; i++) {
|
|
9949
|
+
format += '0';
|
|
9950
|
+
}
|
|
9951
|
+
}
|
|
9952
|
+
return format;
|
|
9953
|
+
}
|
|
9954
|
+
/**
|
|
9955
|
+
* Returns the decimal separator of current browser
|
|
9956
|
+
* @returns current decimal separator, by locale
|
|
9957
|
+
*/
|
|
9958
|
+
decimalSeparator() {
|
|
9959
|
+
const numberWithGroupAndDecimalSeparator = 1000.1;
|
|
9960
|
+
return Intl.NumberFormat(this.locale)
|
|
9961
|
+
.formatToParts(numberWithGroupAndDecimalSeparator)
|
|
9962
|
+
.find((part) => part.type === 'decimal').value;
|
|
9963
|
+
}
|
|
9964
|
+
/**
|
|
9965
|
+
* Returns the group separator of current browser
|
|
9966
|
+
* @returns current group separator, by locale
|
|
9967
|
+
*/
|
|
9968
|
+
groupSeparator() {
|
|
9969
|
+
const numberWithGroupAndDecimalSeparator = 1000.1;
|
|
9970
|
+
return Intl.NumberFormat(this.locale)
|
|
9971
|
+
.formatToParts(numberWithGroupAndDecimalSeparator)
|
|
9972
|
+
.find((part) => part.type === 'group').value;
|
|
9973
|
+
}
|
|
9974
|
+
/**
|
|
9975
|
+
* Checks if an input string matches options, for desired formatted decimal number (integer digits, decimal digits)
|
|
9976
|
+
* @param value the input value to check
|
|
9977
|
+
* @param options options for customize the check
|
|
9978
|
+
* @returns an object from applying the regular expression for check
|
|
9979
|
+
*/
|
|
9980
|
+
matchNumericValueWithOptions(value, options) {
|
|
9981
|
+
// see https://github.com/24eme/jquery-input-number-format.git
|
|
9982
|
+
let found = undefined;
|
|
9983
|
+
let integerPartSuffix = '+';
|
|
9984
|
+
if (options.integer && options.integer > 0) {
|
|
9985
|
+
integerPartSuffix = '{0,' + options.integer + '}';
|
|
9986
|
+
}
|
|
9987
|
+
let regexp = '^[0-9]' + integerPartSuffix;
|
|
9988
|
+
if (options.allowNegative) {
|
|
9989
|
+
regexp = '^-{0,1}[0-9]' + integerPartSuffix;
|
|
9990
|
+
}
|
|
9991
|
+
if (options.decimal && options.decimal > 0) {
|
|
9992
|
+
regexp +=
|
|
9993
|
+
'([' +
|
|
9994
|
+
this.decimalSeparator() +
|
|
9995
|
+
'][0-9]{0,' +
|
|
9996
|
+
options.decimal +
|
|
9997
|
+
'})?';
|
|
9998
|
+
let regexpObj = new RegExp(regexp + '$');
|
|
9999
|
+
found = value.match(regexpObj);
|
|
10000
|
+
if (!found) {
|
|
10001
|
+
regexp =
|
|
10002
|
+
'^[' +
|
|
10003
|
+
this.decimalSeparator() +
|
|
10004
|
+
'][0-9]{0,' +
|
|
10005
|
+
options.decimal +
|
|
10006
|
+
'}';
|
|
10007
|
+
regexpObj = new RegExp(regexp + '$');
|
|
10008
|
+
found = value.match(regexpObj);
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
10011
|
+
else {
|
|
10012
|
+
let regexpObj = new RegExp(regexp + '$');
|
|
10013
|
+
found = value.match(regexpObj);
|
|
10014
|
+
}
|
|
10015
|
+
return found;
|
|
9944
10016
|
}
|
|
9945
10017
|
/**
|
|
9946
10018
|
* Returns a number from a non-specified input type between string, number, or String.
|
|
@@ -18319,4 +18391,4 @@ function kupManagerInstance() {
|
|
|
18319
18391
|
return dom.ketchup;
|
|
18320
18392
|
}
|
|
18321
18393
|
|
|
18322
|
-
export { KupLanguageDensity as $, KupLanguageGrouping as A, KupLanguageCheckbox as B, getValueForDisplay2 as C, DateTimeFormatOptionsMonth as D, Filters as E, FCellShapes as F, GroupLabelDisplayMode as G, getValueForDisplay as H, KupLanguageSearch as I, FilterInterval as J, KupThemeIconValues as K, LoadMoreMode as L, ShowGrid as M, TotalMode as N, numberToFormattedStringNumber as O, PaginatorPos as P, kupDynamicPositionAttribute as Q, KupPointerEventTypes as R, SelectionMode as S, TotalLabel as T, kupDraggableColumnAttr as U, kupDragActiveAttr as V, KupDragEffect as W, kupDraggableCellAttr as X, KupDropEventTypes as Y, FixedCellsCSSVarsBase as Z, KupLanguageFontsize as _, KupDynamicPositionPlacement as a, KupLanguageGrid as a0, KupDataTableProps as a1, FixedCellsClasses as a2, SortMode as a3, iconColumn as a4, keyColumn as a5, fieldColumn as a6, FCellTypes as a7, unformattedStringToFormattedStringNumber as a8,
|
|
18394
|
+
export { KupLanguageDensity as $, KupLanguageGrouping as A, KupLanguageCheckbox as B, getValueForDisplay2 as C, DateTimeFormatOptionsMonth as D, Filters as E, FCellShapes as F, GroupLabelDisplayMode as G, getValueForDisplay as H, KupLanguageSearch as I, FilterInterval as J, KupThemeIconValues as K, LoadMoreMode as L, ShowGrid as M, TotalMode as N, numberToFormattedStringNumber as O, PaginatorPos as P, kupDynamicPositionAttribute as Q, KupPointerEventTypes as R, SelectionMode as S, TotalLabel as T, kupDraggableColumnAttr as U, kupDragActiveAttr as V, KupDragEffect as W, kupDraggableCellAttr as X, KupDropEventTypes as Y, FixedCellsCSSVarsBase as Z, KupLanguageFontsize as _, KupDynamicPositionPlacement as a, KupLanguageGrid as a0, KupDataTableProps as a1, FixedCellsClasses as a2, SortMode as a3, iconColumn as a4, keyColumn as a5, fieldColumn as a6, FCellTypes as a7, unformattedStringToFormattedStringNumber as a8, formattedStringToUnformattedStringNumber as a9, formattedStringToCustomUnformattedStringTime as aa, isValidFormattedStringTime as ab, formatTime as ac, unformattedStringToFormattedStringTime as ad, addColumnValueFromRow as ae, KupGlobalFilterMode as af, editableTypes as ag, kupTypes as ah, KupTagNames as ai, fullWidthFieldsComps as aj, stringToNumber as ak, FCellClasses as al, autoCenterComps as am, getCellValueForDisplay as an, FCellEvents as ao, KupData as ap, compareCell as aq, isNumber as ar, KupLanguagePage as as, createCommonjsModule as at, getDefaultExportFromCjs as au, KupDatesLocales as av, KupLanguageDashboard as aw, kupDropEvent as ax, kupDraggableRowAttr as ay, commonjsGlobal as az, KupThemeColorValues as b, KupDebugCategory as c, FCellPadding as d, getMonthsAsStringByLocale as e, KupDatesFormats as f, getProps as g, KupCardBuiltInClockElements as h, KupCardCSSClasses as i, KupLanguageTotals as j, kupManagerInstance as k, KupLanguageGeneric as l, KupLanguageColumn as m, KupDataNewColumnTypes as n, KupCardSubEvents as o, KupCardIds as p, KupLanguageRow as q, KupCardFamily as r, setProps as s, KupCardProps as t, getColumnByName as u, KupDates as v, formatToNumber as w, KupDatesNormalize as x, KupObjects as y, identify as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
const navbarClass = 'nav-bar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, a as KupDynamicPositionPlacement, r as KupCardFamily } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, a as KupDynamicPositionPlacement, r as KupCardFamily } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
4
|
+
import { F as FTextField } from './f-text-field-dafb7c8b.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-cee583ea.js';
|
|
6
6
|
import './tslib.es6-8c2af864.js';
|
|
7
7
|
import './component-120651a0.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-8bd38435.js';
|
|
2
|
+
import { at as createCommonjsModule, az as commonjsGlobal, k as kupManagerInstance, f as KupDatesFormats, an as getCellValueForDisplay, g as getProps, s as setProps, K as KupThemeIconValues, I as KupLanguageSearch } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
4
|
+
import { F as FTextField } from './f-text-field-dafb7c8b.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-cee583ea.js';
|
|
6
6
|
import './tslib.es6-8c2af864.js';
|
|
7
7
|
import './component-120651a0.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
const KupProbe = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance } from './kup-manager-3594cde8.js';
|
|
3
3
|
|
|
4
4
|
const kupQlikCss = ".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8bd38435.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-3594cde8.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
|
-
import { F as FButton } from './f-button-
|
|
4
|
+
import { F as FButton } from './f-button-c377973d.js';
|
|
5
5
|
import './f-button-declarations-b1b4cac4.js';
|
|
6
|
-
import './f-image-
|
|
6
|
+
import './f-image-5cbdf39d.js';
|
|
7
7
|
|
|
8
8
|
const snackbarClass = 'snackbar';
|
|
9
9
|
/**
|
|
@@ -25,6 +25,7 @@ const KupSnackbar = class {
|
|
|
25
25
|
constructor(hostRef) {
|
|
26
26
|
registerInstance(this, hostRef);
|
|
27
27
|
this.kupActionClick = createEvent(this, "kup-snackbar-actionclick", 6);
|
|
28
|
+
this.kupTimeoutComplete = createEvent(this, "kup-snackbar-timeoutcomplete", 6);
|
|
28
29
|
/*-------------------------------------------------*/
|
|
29
30
|
/* I n t e r n a l V a r i a b l e s */
|
|
30
31
|
/*-------------------------------------------------*/
|
|
@@ -46,6 +47,12 @@ const KupSnackbar = class {
|
|
|
46
47
|
id: this.rootElement.id,
|
|
47
48
|
});
|
|
48
49
|
}
|
|
50
|
+
onKupTimeoutComplete() {
|
|
51
|
+
this.kupTimeoutComplete.emit({
|
|
52
|
+
comp: this,
|
|
53
|
+
id: this.rootElement.id,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
49
56
|
/*-------------------------------------------------*/
|
|
50
57
|
/* P u b l i c M e t h o d s */
|
|
51
58
|
/*-------------------------------------------------*/
|
|
@@ -99,6 +106,7 @@ const KupSnackbar = class {
|
|
|
99
106
|
if (this.timeout && this.visible) {
|
|
100
107
|
setTimeout(() => {
|
|
101
108
|
this.hide();
|
|
109
|
+
this.onKupTimeoutComplete();
|
|
102
110
|
}, this.timeout);
|
|
103
111
|
}
|
|
104
112
|
this.kupManager.debug.logRender(this, true);
|