@mcurros2/microm 1.1.261-0 → 1.1.264-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/index.js CHANGED
@@ -8868,15 +8868,15 @@ class $2020029f8d0ed580$export$b4cb041b06327cfa extends (0, $eBOHd.w2grid) {
8868
8868
  parcelRegister("eBOHd", function(module, exports) {
8869
8869
 
8870
8870
  $parcel$export(module.exports, "w2grid", function () { return $aa2bd8933167d9cb$export$b4cb041b06327cfa; });
8871
- /* w2ui 2.0.x (nightly) (8/29/2023, 6:36:15 PM) (c) http://w2ui.com, vitmalina@gmail.com */ /**
8872
- * Part of w2ui 2.0 library
8873
- * - Dependencies: w2utils
8874
- * - on/off/trigger methods id not showing in help
8875
- * - refactored with event object
8876
- *
8877
- * Chanes in 2.0.+
8878
- * - added unmount that cleans up the box
8879
- *
8871
+ /* w2ui 2.0.x (nightly) (8/29/2023, 6:36:15 PM) (c) http://w2ui.com, vitmalina@gmail.com */ /**
8872
+ * Part of w2ui 2.0 library
8873
+ * - Dependencies: w2utils
8874
+ * - on/off/trigger methods id not showing in help
8875
+ * - refactored with event object
8876
+ *
8877
+ * Chanes in 2.0.+
8878
+ * - added unmount that cleans up the box
8879
+ *
8880
8880
  */ class $aa2bd8933167d9cb$export$cf99df5e00c5b470 {
8881
8881
  constructor(owner, edata){
8882
8882
  Object.assign(this, {
@@ -8919,11 +8919,11 @@ $parcel$export(module.exports, "w2grid", function () { return $aa2bd8933167d9cb$
8919
8919
  }
8920
8920
  }
8921
8921
  class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
8922
- /**
8923
- * Initializes base object for w2ui, registers it with w2ui object
8924
- *
8925
- * @param {string} name - name of the object
8926
- * @returns
8922
+ /**
8923
+ * Initializes base object for w2ui, registers it with w2ui object
8924
+ *
8925
+ * @param {string} name - name of the object
8926
+ * @returns
8927
8927
  */ constructor(name){
8928
8928
  this.activeEvents = [] // events that are currently processing
8929
8929
  ;
@@ -8937,12 +8937,12 @@ class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
8937
8937
  this.debug = false // if true, will trigger all events
8938
8938
  ;
8939
8939
  }
8940
- /**
8941
- * Adds event listener, supports event phase and event scoping
8942
- *
8943
- * @param {*} edata - an object or string, if string "eventName:phase.scope"
8944
- * @param {*} handler
8945
- * @returns itself
8940
+ /**
8941
+ * Adds event listener, supports event phase and event scoping
8942
+ *
8943
+ * @param {*} edata - an object or string, if string "eventName:phase.scope"
8944
+ * @param {*} handler
8945
+ * @returns itself
8946
8946
  */ on(events, handler) {
8947
8947
  if (typeof events == 'string') events = events.split(/[,\s]+/) // separate by comma or space
8948
8948
  ;
@@ -8988,12 +8988,12 @@ class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
8988
8988
  });
8989
8989
  return this;
8990
8990
  }
8991
- /**
8992
- * Removes event listener, supports event phase and event scoping
8993
- *
8994
- * @param {*} edata - an object or string, if string "eventName:phase.scope"
8995
- * @param {*} handler
8996
- * @returns itself
8991
+ /**
8992
+ * Removes event listener, supports event phase and event scoping
8993
+ *
8994
+ * @param {*} edata - an object or string, if string "eventName:phase.scope"
8995
+ * @param {*} handler
8996
+ * @returns itself
8997
8997
  */ off(events, handler) {
8998
8998
  if (typeof events == 'string') events = events.split(/[,\s]+/) // separate by comma or space
8999
8999
  ;
@@ -9040,11 +9040,11 @@ class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
9040
9040
  return this // needed for chaining
9041
9041
  ;
9042
9042
  }
9043
- /**
9044
- * Triggers even listeners for a specific event, loops through this.listeners
9045
- *
9046
- * @param {Object} edata - Object
9047
- * @returns modified edata
9043
+ /**
9044
+ * Triggers even listeners for a specific event, loops through this.listeners
9045
+ *
9046
+ * @param {Object} edata - Object
9047
+ * @returns modified edata
9048
9048
  */ trigger(eventName, edata) {
9049
9049
  if (arguments.length == 1) edata = eventName;
9050
9050
  else {
@@ -9147,15 +9147,15 @@ class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
9147
9147
  }
9148
9148
  return edata;
9149
9149
  }
9150
- /**
9151
- * This method renders component into the box. It is overwritten in descendents and in this base
9152
- * component it is empty.
9150
+ /**
9151
+ * This method renders component into the box. It is overwritten in descendents and in this base
9152
+ * component it is empty.
9153
9153
  */ render(box) {
9154
9154
  // intentionally left blank
9155
9155
  }
9156
- /**
9157
- * Removes all classes that start with w2ui-* and sets box to null. It is needed so that control will
9158
- * release the box to be used for other widgets
9156
+ /**
9157
+ * Removes all classes that start with w2ui-* and sets box to null. It is needed so that control will
9158
+ * release the box to be used for other widgets
9159
9159
  */ unmount() {
9160
9160
  let edata = this.trigger('unmount', {
9161
9161
  target: this.name
@@ -9173,15 +9173,15 @@ class $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
9173
9173
  edata.finish();
9174
9174
  }
9175
9175
  }
9176
- /**
9177
- * Part of w2ui 2.0 library
9178
- * - Dependencies: none
9179
- *
9180
- * These are the master locale settings that will be used by w2utils
9181
- *
9182
- * "locale" should be the IETF language tag in the form xx-YY,
9183
- * where xx is the ISO 639-1 language code ( see https://en.wikipedia.org/wiki/ISO_639-1 ) and
9184
- * YY is the ISO 3166-1 alpha-2 country code ( see https://en.wikipedia.org/wiki/ISO_3166-2 )
9176
+ /**
9177
+ * Part of w2ui 2.0 library
9178
+ * - Dependencies: none
9179
+ *
9180
+ * These are the master locale settings that will be used by w2utils
9181
+ *
9182
+ * "locale" should be the IETF language tag in the form xx-YY,
9183
+ * where xx is the ISO 639-1 language code ( see https://en.wikipedia.org/wiki/ISO_639-1 ) and
9184
+ * YY is the ISO 3166-1 alpha-2 country code ( see https://en.wikipedia.org/wiki/ISO_3166-2 )
9185
9185
  */ const $aa2bd8933167d9cb$export$b4da1e96fca83d89 = {
9186
9186
  'locale': 'en-US',
9187
9187
  'dateFormat': 'm/d/yyyy',
@@ -9891,27 +9891,27 @@ $aa2bd8933167d9cb$export$2fa187e846a241c4.html = (str)=>{
9891
9891
  return $aa2bd8933167d9cb$export$2fa187e846a241c4(frag.children, frag);
9892
9892
  };
9893
9893
  $aa2bd8933167d9cb$export$2fa187e846a241c4.version = $aa2bd8933167d9cb$var$Query.version;
9894
- /**
9895
- * Part of w2ui 2.0 library
9896
- * - Dependencies: mQuery, w2utils, w2base, w2locale
9897
- *
9898
- * == TODO ==
9899
- * - add w2utils.lang wrap for all captions in all buttons.
9900
- * - check transition (also with layout)
9901
- * - deprecate w2utils.tooltip
9902
- *
9903
- * == 2.0 changes
9904
- * - CSP - fixed inline events (w2utils.tooltip still has it)
9905
- * - transition returns a promise
9906
- * - removed jQuery
9907
- * - refactores w2utils.message()
9908
- * - added w2utils.confirm()
9909
- * - added isPlainObject
9910
- * - added stripSpaces
9911
- * - implemented marker
9912
- * - cssPrefix - deprecated
9913
- * - w2utils.debounce
9914
- * - w2utils.prepareParams
9894
+ /**
9895
+ * Part of w2ui 2.0 library
9896
+ * - Dependencies: mQuery, w2utils, w2base, w2locale
9897
+ *
9898
+ * == TODO ==
9899
+ * - add w2utils.lang wrap for all captions in all buttons.
9900
+ * - check transition (also with layout)
9901
+ * - deprecate w2utils.tooltip
9902
+ *
9903
+ * == 2.0 changes
9904
+ * - CSP - fixed inline events (w2utils.tooltip still has it)
9905
+ * - transition returns a promise
9906
+ * - removed jQuery
9907
+ * - refactores w2utils.message()
9908
+ * - added w2utils.confirm()
9909
+ * - added isPlainObject
9910
+ * - added stripSpaces
9911
+ * - implemented marker
9912
+ * - cssPrefix - deprecated
9913
+ * - w2utils.debounce
9914
+ * - w2utils.prepareParams
9915
9915
  */ // variable that holds all w2ui objects
9916
9916
  let $aa2bd8933167d9cb$export$dca4c93ccda43b77 = {};
9917
9917
  class $aa2bd8933167d9cb$var$Utils {
@@ -10816,36 +10816,36 @@ class $aa2bd8933167d9cb$var$Utils {
10816
10816
  $aa2bd8933167d9cb$export$2fa187e846a241c4(box).find('.w2ui-lock-msg').remove();
10817
10817
  }
10818
10818
  }
10819
- /**
10820
- * Opens a context message, similar in parameters as w2popup.open()
10821
- *
10822
- * Sample Calls
10823
- * w2utils.message({ box: '#div' }, 'message').ok(() => {})
10824
- * w2utils.message({ box: '#div' }, { text: 'message', width: 300 }).ok(() => {})
10825
- * w2utils.message({ box: '#div' }, { text: 'message', actions: ['Save'] }).Save(() => {})
10826
- *
10827
- * Used in w2grid, w2form, w2layout (should be in w2popup too)
10828
- * should be called with .call(...) method
10829
- *
10830
- * @param where = {
10831
- * box, // where to open
10832
- * after, // enableAccess if any, adds enableAccess heights
10833
- * param // additional parameters, used in layouts for panel
10834
- * }
10835
- * @param options {
10836
- * width, // (int), width in px, if negative, then it is maxWidth - width
10837
- * height, // (int), height in px, if negative, then it is maxHeight - height
10838
- * text, // centered text
10839
- * body, // body of the message
10840
- * buttons, // buttons of the message
10841
- * html, // if body & buttons are not defined, then html is the entire message
10842
- * focus, // int or id with a selector, default is 0
10843
- * hideOn, // ['esc', 'click'], default is ['esc']
10844
- * actions, // array of actions (only if buttons is not defined)
10845
- * onOpen, // event when opened
10846
- * onClose, // event when closed
10847
- * onAction, // event on action
10848
- * }
10819
+ /**
10820
+ * Opens a context message, similar in parameters as w2popup.open()
10821
+ *
10822
+ * Sample Calls
10823
+ * w2utils.message({ box: '#div' }, 'message').ok(() => {})
10824
+ * w2utils.message({ box: '#div' }, { text: 'message', width: 300 }).ok(() => {})
10825
+ * w2utils.message({ box: '#div' }, { text: 'message', actions: ['Save'] }).Save(() => {})
10826
+ *
10827
+ * Used in w2grid, w2form, w2layout (should be in w2popup too)
10828
+ * should be called with .call(...) method
10829
+ *
10830
+ * @param where = {
10831
+ * box, // where to open
10832
+ * after, // enableAccess if any, adds enableAccess heights
10833
+ * param // additional parameters, used in layouts for panel
10834
+ * }
10835
+ * @param options {
10836
+ * width, // (int), width in px, if negative, then it is maxWidth - width
10837
+ * height, // (int), height in px, if negative, then it is maxHeight - height
10838
+ * text, // centered text
10839
+ * body, // body of the message
10840
+ * buttons, // buttons of the message
10841
+ * html, // if body & buttons are not defined, then html is the entire message
10842
+ * focus, // int or id with a selector, default is 0
10843
+ * hideOn, // ['esc', 'click'], default is ['esc']
10844
+ * actions, // array of actions (only if buttons is not defined)
10845
+ * onOpen, // event when opened
10846
+ * onClose, // event when closed
10847
+ * onAction, // event on action
10848
+ * }
10849
10849
  */ message(where, options) {
10850
10850
  let closeTimer, openTimer, edata;
10851
10851
  let removeLast = ()=>{
@@ -11123,22 +11123,22 @@ class $aa2bd8933167d9cb$var$Utils {
11123
11123
  };
11124
11124
  return prom;
11125
11125
  }
11126
- /**
11127
- * Shows small notification message at the bottom of the page, or containter that you specify
11128
- * in options.where (could be element or a selector)
11129
- *
11130
- * w2utils.notify('Document saved')
11131
- * w2utils.notify('Mesage sent ${udon}', { actions: { undo: function () {...} }})
11132
- *
11133
- * @param {String/Object} options can be {
11134
- * text: string, // message, can be html
11135
- * where: el/selector, // element or selector where to show, default is document.body
11136
- * timeout: int, // timeout when to hide, if 0 - indefinite
11137
- * error: boolean, // add error clases
11138
- * class: string, // additional class strings
11139
- * actions: object // object with action functions, it should correspot to templated text: '... ${action} ...'
11140
- * }
11141
- * @returns promise
11126
+ /**
11127
+ * Shows small notification message at the bottom of the page, or containter that you specify
11128
+ * in options.where (could be element or a selector)
11129
+ *
11130
+ * w2utils.notify('Document saved')
11131
+ * w2utils.notify('Mesage sent ${udon}', { actions: { undo: function () {...} }})
11132
+ *
11133
+ * @param {String/Object} options can be {
11134
+ * text: string, // message, can be html
11135
+ * where: el/selector, // element or selector where to show, default is document.body
11136
+ * timeout: int, // timeout when to hide, if 0 - indefinite
11137
+ * error: boolean, // add error clases
11138
+ * class: string, // additional class strings
11139
+ * actions: object // object with action functions, it should correspot to templated text: '... ${action} ...'
11140
+ * }
11141
+ * @returns promise
11142
11142
  */ notify(text, options) {
11143
11143
  return new Promise((resolve)=>{
11144
11144
  if (typeof text == 'object') {
@@ -11203,11 +11203,11 @@ class $aa2bd8933167d9cb$var$Utils {
11203
11203
  });
11204
11204
  return prom;
11205
11205
  }
11206
- /**
11207
- * Normalizes yes, no buttons for confirmation dialog
11208
- *
11209
- * @param {*} options
11210
- * @returns options
11206
+ /**
11207
+ * Normalizes yes, no buttons for confirmation dialog
11208
+ *
11209
+ * @param {*} options
11210
+ * @returns options
11211
11211
  */ normButtons(options, btn) {
11212
11212
  options.actions = options.actions ?? {};
11213
11213
  let btns = Object.keys(btn);
@@ -11435,11 +11435,11 @@ class $aa2bd8933167d9cb$var$Utils {
11435
11435
  });
11436
11436
  return isUnique;
11437
11437
  }
11438
- /**
11439
- * Takes an object and encodes it into params string to be passed as a url
11440
- * { a: 1, b: 'str'} => "a=1&b=str"
11441
- * { a: 1, b: { c: 2 }} => "a=1&b[c]=2"
11442
- * { a: 1, b: {c: { k: 'dfdf' } } } => "a=1&b[c][k]=dfdf"
11438
+ /**
11439
+ * Takes an object and encodes it into params string to be passed as a url
11440
+ * { a: 1, b: 'str'} => "a=1&b=str"
11441
+ * { a: 1, b: { c: 2 }} => "a=1&b[c]=2"
11442
+ * { a: 1, b: {c: { k: 'dfdf' } } } => "a=1&b[c][k]=dfdf"
11443
11443
  */ encodeParams(obj, prefix = '') {
11444
11444
  let str = '';
11445
11445
  Object.keys(obj).forEach((key)=>{
@@ -11694,10 +11694,10 @@ class $aa2bd8933167d9cb$var$Utils {
11694
11694
  let proto = Object.getPrototypeOf(value);
11695
11695
  return proto === null || proto === Object.prototype;
11696
11696
  }
11697
- /**
11698
- * Deep copy of an object or an array. Function, events and HTML elements will not be cloned,
11699
- * you can choose to include them or not, by default they are included.
11700
- * You can also exclude certain elements from final object if used with options: { exclude }
11697
+ /**
11698
+ * Deep copy of an object or an array. Function, events and HTML elements will not be cloned,
11699
+ * you can choose to include them or not, by default they are included.
11700
+ * You can also exclude certain elements from final object if used with options: { exclude }
11701
11701
  */ clone(obj, options) {
11702
11702
  let ret;
11703
11703
  options = Object.assign({
@@ -11730,9 +11730,9 @@ class $aa2bd8933167d9cb$var$Utils {
11730
11730
  }
11731
11731
  return ret;
11732
11732
  }
11733
- /**
11734
- * Deep extend an object, if an array, it overwrrites it, cloning objects in the process
11735
- * target, source1, source2, ...
11733
+ /**
11734
+ * Deep extend an object, if an array, it overwrrites it, cloning objects in the process
11735
+ * target, source1, source2, ...
11736
11736
  */ extend(target, source) {
11737
11737
  if (Array.isArray(target)) {
11738
11738
  if (Array.isArray(source)) {
@@ -11762,9 +11762,9 @@ class $aa2bd8933167d9cb$var$Utils {
11762
11762
  if (arguments.length > 2) for(let i = 2; i < arguments.length; i++)this.extend(target, arguments[i]);
11763
11763
  return target;
11764
11764
  }
11765
- /*
11766
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
11767
- * @license MIT License
11765
+ /*
11766
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
11767
+ * @license MIT License
11768
11768
  */ naturalCompare(a, b) {
11769
11769
  let i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
11770
11770
  function getCode(str, pos, code) {
@@ -11818,9 +11818,9 @@ class $aa2bd8933167d9cb$var$Utils {
11818
11818
  };
11819
11819
  });
11820
11820
  }
11821
- /**
11822
- * Takes Url object and fetchOptions and changes it in place applying selected user dataType. Since
11823
- * dataType is in w2utils. This method is used in grid, form and tooltip to prepare fetch parameters
11821
+ /**
11822
+ * Takes Url object and fetchOptions and changes it in place applying selected user dataType. Since
11823
+ * dataType is in w2utils. This method is used in grid, form and tooltip to prepare fetch parameters
11824
11824
  */ prepareParams(url, fetchOptions, defDataType) {
11825
11825
  let dataType = defDataType ?? $aa2bd8933167d9cb$export$fe3767bc112f7a2a.settings.dataType;
11826
11826
  let postParams = fetchOptions.body;
@@ -11968,25 +11968,25 @@ class $aa2bd8933167d9cb$var$Utils {
11968
11968
  }
11969
11969
  var $aa2bd8933167d9cb$export$fe3767bc112f7a2a = new $aa2bd8933167d9cb$var$Utils() // eslint-disable-line -- needs to be functional/module scope variable
11970
11970
  ;
11971
- /**
11972
- * Part of w2ui 2.0 library
11973
- * - Dependencies: mQuery, w2utils, w2base
11974
- *
11975
- * == 2.0 changes
11976
- * - CSP - fixed inline events
11977
- * - removed jQuery dependency
11978
- * - popup.open - returns promise like object
11979
- * - popup.confirm - refactored
11980
- * - popup.message - refactored
11981
- * - removed popup.options.mutliple
11982
- * - refactores w2alert, w2confirm, w2prompt
11983
- * - add w2popup.open().on('')
11984
- * - removed w2popup.restoreTemplate
11985
- * - deprecated onMsgOpen and onMsgClose
11986
- * - deprecated options.bgColor
11987
- * - rename focus -> setFocus
11988
- * - added center() // will auto center on window resize
11989
- * - close(immediate), also refactored if popup is closed when opening
11971
+ /**
11972
+ * Part of w2ui 2.0 library
11973
+ * - Dependencies: mQuery, w2utils, w2base
11974
+ *
11975
+ * == 2.0 changes
11976
+ * - CSP - fixed inline events
11977
+ * - removed jQuery dependency
11978
+ * - popup.open - returns promise like object
11979
+ * - popup.confirm - refactored
11980
+ * - popup.message - refactored
11981
+ * - removed popup.options.mutliple
11982
+ * - refactores w2alert, w2confirm, w2prompt
11983
+ * - add w2popup.open().on('')
11984
+ * - removed w2popup.restoreTemplate
11985
+ * - deprecated onMsgOpen and onMsgClose
11986
+ * - deprecated options.bgColor
11987
+ * - rename focus -> setFocus
11988
+ * - added center() // will auto center on window resize
11989
+ * - close(immediate), also refactored if popup is closed when opening
11990
11990
  */ class $aa2bd8933167d9cb$export$3ddf2d174ce01153 extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
11991
11991
  constructor(){
11992
11992
  super();
@@ -12028,12 +12028,12 @@ var $aa2bd8933167d9cb$export$fe3767bc112f7a2a = new $aa2bd8933167d9cb$var$Utils(
12028
12028
  if (!this.options.moved) this.center(undefined, undefined, true);
12029
12029
  };
12030
12030
  }
12031
- /**
12032
- * Sample calls
12033
- * - w2popup.open('ddd').ok(() => { w2popup.close() })
12034
- * - w2popup.open('ddd', { height: 120 }).ok(() => { w2popup.close() })
12035
- * - w2popup.open({ body: 'text', enableAccess: 'caption', actions: ["Close"] }).close(() => { w2popup.close() })
12036
- * - w2popup.open({ body: 'text', enableAccess: 'caption', actions: { Close() { w2popup.close() }} })
12031
+ /**
12032
+ * Sample calls
12033
+ * - w2popup.open('ddd').ok(() => { w2popup.close() })
12034
+ * - w2popup.open('ddd', { height: 120 }).ok(() => { w2popup.close() })
12035
+ * - w2popup.open({ body: 'text', enableAccess: 'caption', actions: ["Close"] }).close(() => { w2popup.close() })
12036
+ * - w2popup.open({ body: 'text', enableAccess: 'caption', actions: { Close() { w2popup.close() }} })
12037
12037
  */ open(options) {
12038
12038
  let self = this;
12039
12039
  if (this.status == 'closing' || $aa2bd8933167d9cb$export$2fa187e846a241c4('#w2ui-popup').hasClass('animating')) // if called when previous is closing
@@ -12758,18 +12758,18 @@ function $aa2bd8933167d9cb$export$c1ade7615ef1f637(label, title, callBack) {
12758
12758
  return prom;
12759
12759
  }
12760
12760
  let $aa2bd8933167d9cb$export$232ed90add9c10b = new $aa2bd8933167d9cb$export$3ddf2d174ce01153();
12761
- /**
12762
- * Part of w2ui 2.0 library
12763
- * - Dependencies: mQuery, w2utils, w2base
12764
- *
12765
- * TODO:
12766
- * - need help pages
12767
- *
12768
- * 2.0 Changes
12769
- * - multiple tooltips to the same anchor
12770
- * - options.contextMenu
12771
- * - options.prefilter - if true, it will show prefiltered items for w2menu, otherwise all
12772
- * - menu.item.help, menu.item.hotkey
12761
+ /**
12762
+ * Part of w2ui 2.0 library
12763
+ * - Dependencies: mQuery, w2utils, w2base
12764
+ *
12765
+ * TODO:
12766
+ * - need help pages
12767
+ *
12768
+ * 2.0 Changes
12769
+ * - multiple tooltips to the same anchor
12770
+ * - options.contextMenu
12771
+ * - options.prefilter - if true, it will show prefiltered items for w2menu, otherwise all
12772
+ * - menu.item.help, menu.item.hotkey
12773
12773
  */ class $aa2bd8933167d9cb$export$28c660c63b792dea {
12774
12774
  // no need to extend w2base, as each individual tooltip extends it
12775
12775
  static active = {} // all defined tooltips
@@ -12990,10 +12990,10 @@ let $aa2bd8933167d9cb$export$232ed90add9c10b = new $aa2bd8933167d9cb$export$3ddf
12990
12990
  let ret = this.attach(options);
12991
12991
  ret.overlay.tmp.hidden = false;
12992
12992
  $aa2bd8933167d9cb$export$2fa187e846a241c4(ret.overlay.anchor).off('.autoShow-' + ret.overlay.name).off('.autoHide-' + ret.overlay.name);
12993
- /**
12994
- * Need a timer, so that events in the 'return ret` would be preperty set as it is using chaning mechanism
12995
- * to set listeners: w2tooltip.show({}).then(...).show(...). Since it could be hidden before timer kick in
12996
- * to show it, need the check in the timeout.
12993
+ /**
12994
+ * Need a timer, so that events in the 'return ret` would be preperty set as it is using chaning mechanism
12995
+ * to set listeners: w2tooltip.show({}).then(...).show(...). Since it could be hidden before timer kick in
12996
+ * to show it, need the check in the timeout.
12997
12997
  */ setTimeout(()=>{
12998
12998
  if (!ret.overlay.tmp.hidden) {
12999
12999
  this.show(ret.overlay.name);
@@ -13096,9 +13096,9 @@ let $aa2bd8933167d9cb$export$232ed90add9c10b = new $aa2bd8933167d9cb$export$3ddf
13096
13096
  });
13097
13097
  // then insert html and it will adjust
13098
13098
  $aa2bd8933167d9cb$export$2fa187e846a241c4(overlay.box).css('opacity', 1).find('.w2ui-overlay-body').html(options.html);
13099
- /**
13100
- * pointer-events: none is needed to avoid cases when popup is shown right under the cursor
13101
- * or it will trigger onmouseout, onmouseleave and other events.
13099
+ /**
13100
+ * pointer-events: none is needed to avoid cases when popup is shown right under the cursor
13101
+ * or it will trigger onmouseout, onmouseleave and other events.
13102
13102
  */ setTimeout(()=>{
13103
13103
  $aa2bd8933167d9cb$export$2fa187e846a241c4(overlay.box).css({
13104
13104
  'pointer-events': 'auto'
@@ -14484,9 +14484,9 @@ class $aa2bd8933167d9cb$var$MenuTooltip extends $aa2bd8933167d9cb$export$28c660c
14484
14484
  $aa2bd8933167d9cb$export$2fa187e846a241c4(overlay.box).find('.w2ui-no-items').show();
14485
14485
  }
14486
14486
  }
14487
- /**
14488
- * Loops through the items and markes item.hidden = true for those that need to be hidden, and item.hidden = false
14489
- * for those that are visible. Return a promise (since items can be on the server) with the number of visible items.
14487
+ /**
14488
+ * Loops through the items and markes item.hidden = true for those that need to be hidden, and item.hidden = false
14489
+ * for those that are visible. Return a promise (since items can be on the server) with the number of visible items.
14490
14490
  */ applyFilter(name, items, search, debounce) {
14491
14491
  let count = 0;
14492
14492
  let overlay = $aa2bd8933167d9cb$export$28c660c63b792dea.active[name.replace(/[\s\.#]/g, '_')];
@@ -14755,9 +14755,9 @@ class $aa2bd8933167d9cb$var$MenuTooltip extends $aa2bd8933167d9cb$export$28c660c
14755
14755
  reject = rej;
14756
14756
  });
14757
14757
  }
14758
- /**
14759
- * Builds an array of item ids that sequencial in navigation with up/down keys.
14760
- * Skips hidden and denied items and goes into nested structures.
14758
+ /**
14759
+ * Builds an array of item ids that sequencial in navigation with up/down keys.
14760
+ * Skips hidden and denied items and goes into nested structures.
14761
14761
  */ getActiveChain(name, items, parents = [], res = [], noSave) {
14762
14762
  let overlay = $aa2bd8933167d9cb$export$28c660c63b792dea.active[name.replace(/[\s\.#]/g, '_')];
14763
14763
  if (overlay.tmp.activeChain != null) return overlay.tmp.activeChain;
@@ -15312,9 +15312,9 @@ class $aa2bd8933167d9cb$var$DateTooltip extends $aa2bd8933167d9cb$export$28c660c
15312
15312
  `;
15313
15313
  let DT = new Date(`${year}/${month}/1`) // first of month
15314
15314
  ;
15315
- /**
15316
- * Move to noon, instead of midnight. If not, then the date when time saving happens
15317
- * will be duplicated in the calendar
15315
+ /**
15316
+ * Move to noon, instead of midnight. If not, then the date when time saving happens
15317
+ * will be duplicated in the calendar
15318
15318
  */ DT = new Date(DT.getTime() + dayLengthMil * 0.5);
15319
15319
  let weekday = DT.getDay();
15320
15320
  if ($aa2bd8933167d9cb$export$fe3767bc112f7a2a.settings.weekStarts == 'M') weekDay--;
@@ -15522,32 +15522,32 @@ let $aa2bd8933167d9cb$export$b876f801a4afd38f = new $aa2bd8933167d9cb$export$28c
15522
15522
  let $aa2bd8933167d9cb$export$3842f79f22e98342 = new $aa2bd8933167d9cb$var$MenuTooltip();
15523
15523
  let $aa2bd8933167d9cb$export$550f94414263c7a1 = new $aa2bd8933167d9cb$var$ColorTooltip();
15524
15524
  let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTooltip();
15525
- /**
15526
- * Part of w2ui 2.0 library
15527
- * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2color, w2menu
15528
- *
15529
- * == TODO ==
15530
- * - tab navigation (index state)
15531
- * - vertical toolbar
15532
- * - w2menu on second click of tb button should hide
15533
- * - button display groups for each show/hide, possibly add state: { single: t/f, multiple: t/f, type: 'font' }
15534
- * - item.count - should just support html, so a custom block can be created, such as a colored line
15535
- *
15536
- * == 2.0 changes
15537
- * - CSP - fixed inline events
15538
- * - removed jQuery dependency
15539
- * - item.icon - can be class or <custom-icon-component> or <svg>
15540
- * - new w2tooltips and w2menu
15541
- * - scroll returns promise
15542
- * - added onMouseEntter, onMouseLeave, onMouseDown, onMouseUp events
15543
- * - add(..., skipRefresh), insert(..., skipRefresh)
15544
- * - item.items can be a function
15545
- * - item.icon_style - style for the icon
15546
- * - item.icon - can be a function
15547
- * - item.type = 'label', item.type = 'input'
15548
- * - item.placeholder
15549
- * - item.spinner: { style, min, max, step, precision, suffix }
15550
- * - item.backColor
15525
+ /**
15526
+ * Part of w2ui 2.0 library
15527
+ * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2color, w2menu
15528
+ *
15529
+ * == TODO ==
15530
+ * - tab navigation (index state)
15531
+ * - vertical toolbar
15532
+ * - w2menu on second click of tb button should hide
15533
+ * - button display groups for each show/hide, possibly add state: { single: t/f, multiple: t/f, type: 'font' }
15534
+ * - item.count - should just support html, so a custom block can be created, such as a colored line
15535
+ *
15536
+ * == 2.0 changes
15537
+ * - CSP - fixed inline events
15538
+ * - removed jQuery dependency
15539
+ * - item.icon - can be class or <custom-icon-component> or <svg>
15540
+ * - new w2tooltips and w2menu
15541
+ * - scroll returns promise
15542
+ * - added onMouseEntter, onMouseLeave, onMouseDown, onMouseUp events
15543
+ * - add(..., skipRefresh), insert(..., skipRefresh)
15544
+ * - item.items can be a function
15545
+ * - item.icon_style - style for the icon
15546
+ * - item.icon - can be a function
15547
+ * - item.type = 'label', item.type = 'input'
15548
+ * - item.placeholder
15549
+ * - item.spinner: { style, min, max, step, precision, suffix }
15550
+ * - item.backColor
15551
15551
  */ class $aa2bd8933167d9cb$export$d1962123e55f7d10 extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
15552
15552
  constructor(options){
15553
15553
  super(options.name);
@@ -15602,10 +15602,10 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
15602
15602
  badge: {},
15603
15603
  pendingRefresh: {} // what should be refreshed with a debounce
15604
15604
  };
15605
- /**
15606
- * This _refresh function is needed for speed. It will store what should be refreshed in this.last.refesh
15607
- * obect and then call _refreshDebounced(), which will do it withing 15 ms. However, if new items are added
15608
- * they will not cause multiple unnecessary refreshes
15605
+ /**
15606
+ * This _refresh function is needed for speed. It will store what should be refreshed in this.last.refesh
15607
+ * obect and then call _refreshDebounced(), which will do it withing 15 ms. However, if new items are added
15608
+ * they will not cause multiple unnecessary refreshes
15609
15609
  */ this._refresh = ({ effected: effected, resize: resize, refreshTooltip: refreshTooltip })=>{
15610
15610
  let options = this.last.pendingRefresh;
15611
15611
  options.ids ??= [];
@@ -16138,9 +16138,9 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
16138
16138
  });
16139
16139
  break;
16140
16140
  }
16141
- /**
16142
- * Timeout is needed because browser animates scroll. Also, I found that 500ms is not enough
16143
- * as it could take longer then that, but animation seems to be around 500ms
16141
+ /**
16142
+ * Timeout is needed because browser animates scroll. Also, I found that 500ms is not enough
16143
+ * as it could take longer then that, but animation seems to be around 500ms
16144
16144
  */ setTimeout(()=>{
16145
16145
  this.resize();
16146
16146
  resolve();
@@ -16694,30 +16694,30 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
16694
16694
  edata.finish();
16695
16695
  }
16696
16696
  }
16697
- /**
16698
- * Part of w2ui 2.0 library
16699
- * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2menu
16700
- *
16701
- * == TODO ==
16702
- * - dbl click should be like it is in grid (with timer not HTML dbl click event)
16703
- * - node.style is misleading - should be there to apply color for example
16704
- * - node.plus - is not working
16705
- *
16706
- * == 2.0 changes
16707
- * - remove jQuery dependency
16708
- * - deprecarted obj.img, node.img
16709
- * - CSP - fixed inline events
16710
- * - observeResize for the box
16711
- * - search(..., compare) - comparison function
16712
- * - editable = true
16713
- * - edit(id) - new method
16714
- * - onEdit, onRename - new events
16715
- * - reorder = true - to allow reorder
16716
- * - mouseDown - for reorder
16717
- * - onReorder, onDragStart, onDragOver - events
16718
- * - this.mutlti - for multi select
16719
- * - onSelect, onUnselect - new events
16720
- * - prev(), next()
16697
+ /**
16698
+ * Part of w2ui 2.0 library
16699
+ * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2menu
16700
+ *
16701
+ * == TODO ==
16702
+ * - dbl click should be like it is in grid (with timer not HTML dbl click event)
16703
+ * - node.style is misleading - should be there to apply color for example
16704
+ * - node.plus - is not working
16705
+ *
16706
+ * == 2.0 changes
16707
+ * - remove jQuery dependency
16708
+ * - deprecarted obj.img, node.img
16709
+ * - CSP - fixed inline events
16710
+ * - observeResize for the box
16711
+ * - search(..., compare) - comparison function
16712
+ * - editable = true
16713
+ * - edit(id) - new method
16714
+ * - onEdit, onRename - new events
16715
+ * - reorder = true - to allow reorder
16716
+ * - mouseDown - for reorder
16717
+ * - onReorder, onDragStart, onDragOver - events
16718
+ * - this.mutlti - for multi select
16719
+ * - onSelect, onUnselect - new events
16720
+ * - prev(), next()
16721
16721
  */ class $aa2bd8933167d9cb$export$1d3b0f2412473663 extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
16722
16722
  constructor(options){
16723
16723
  super(options.name);
@@ -17509,8 +17509,8 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
17509
17509
  // event after
17510
17510
  edata.finish();
17511
17511
  }
17512
- /**
17513
- * This is needed for not reorder
17512
+ /**
17513
+ * This is needed for not reorder
17514
17514
  */ mouseDown(id, event1) {
17515
17515
  let self = this;
17516
17516
  if (this.reorder) {
@@ -17841,9 +17841,9 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
17841
17841
  }
17842
17842
  }, 1);
17843
17843
  });
17844
- /**
17845
- * FlatHTML is always present and in .refresh() it is just refreshed. However topHTML and buttomHTML should be here
17846
- * because it should never be refreshed, as it could create recursive refresh loop
17844
+ /**
17845
+ * FlatHTML is always present and in .refresh() it is just refreshed. However topHTML and buttomHTML should be here
17846
+ * because it should never be refreshed, as it could create recursive refresh loop
17847
17847
  */ let flatHTML = `<div class="w2ui-flat w2ui-flat-${this.flat ? 'right' : 'left'}" ${this.flatButton == false ? 'style="display: none"' : ''}></div>`;
17848
17848
  if (this.topHTML !== '' || flatHTML !== '') {
17849
17849
  $aa2bd8933167d9cb$export$2fa187e846a241c4(this.box).find('.w2ui-sidebar-top').html(this.topHTML + flatHTML);
@@ -18264,20 +18264,20 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
18264
18264
  $aa2bd8933167d9cb$export$fe3767bc112f7a2a.unlock(this.box, speed);
18265
18265
  }
18266
18266
  }
18267
- /**
18268
- * Part of w2ui 2.0 library
18269
- * - Dependencies: mQuery, w2utils, w2base, w2tooltip
18270
- *
18271
- * == 2.0 changes
18272
- * - CSP - fixed inline events
18273
- * - removed jQuery dependency
18274
- * - observeResize for the box
18275
- * - refactored w2events
18276
- * - scrollIntoView - removed callback
18277
- * - scroll, scrollIntoView return promise
18278
- * - animateInsert, animateClose - returns a promise
18279
- * - add, insert return a promise
18280
- * - onMouseEnter, onMouseLeave, onMouseDown, onMouseUp
18267
+ /**
18268
+ * Part of w2ui 2.0 library
18269
+ * - Dependencies: mQuery, w2utils, w2base, w2tooltip
18270
+ *
18271
+ * == 2.0 changes
18272
+ * - CSP - fixed inline events
18273
+ * - removed jQuery dependency
18274
+ * - observeResize for the box
18275
+ * - refactored w2events
18276
+ * - scrollIntoView - removed callback
18277
+ * - scroll, scrollIntoView return promise
18278
+ * - animateInsert, animateClose - returns a promise
18279
+ * - add, insert return a promise
18280
+ * - onMouseEnter, onMouseLeave, onMouseDown, onMouseUp
18281
18281
  */ class $aa2bd8933167d9cb$export$7d72bb041567afb5 extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
18282
18282
  constructor(options){
18283
18283
  super(options.name);
@@ -18942,16 +18942,16 @@ let $aa2bd8933167d9cb$export$888613f6d1a8fc97 = new $aa2bd8933167d9cb$var$DateTo
18942
18942
  });
18943
18943
  }
18944
18944
  }
18945
- /**
18946
- * Part of w2ui 2.0 library
18947
- * - Dependencies: mQuery, w2utils, w2base, w2tabs, w2toolbar
18948
- *
18949
- * == 2.0 changes
18950
- * - CSP - fixed inline events
18951
- * - remove jQuery dependency
18952
- * - layout.confirm - refactored
18953
- * - layout.message - refactored
18954
- * - panel.removed
18945
+ /**
18946
+ * Part of w2ui 2.0 library
18947
+ * - Dependencies: mQuery, w2utils, w2base, w2tabs, w2toolbar
18948
+ *
18949
+ * == 2.0 changes
18950
+ * - CSP - fixed inline events
18951
+ * - remove jQuery dependency
18952
+ * - layout.confirm - refactored
18953
+ * - layout.message - refactored
18954
+ * - panel.removed
18955
18955
  */ let $aa2bd8933167d9cb$var$w2panels = [
18956
18956
  'top',
18957
18957
  'left',
@@ -20012,56 +20012,56 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
20012
20012
  $aa2bd8933167d9cb$export$fe3767bc112f7a2a.unlock(nm, speed);
20013
20013
  }
20014
20014
  }
20015
- /**
20016
- * Part of w2ui 2.0 library
20017
- * - Dependencies: jQuery, w2utils, w2base, w2toolbar, w2field
20018
- *
20019
- * == TODO ==
20020
- * - problem with .set() and arrays, array get extended too, but should be replaced
20021
- * - allow functions in routeData (also add routeData to list/enum)
20022
- * - send parsed URL to the event if there is routeData
20023
- * - add selectType: 'none' so that no selection can be make but with mouse
20024
- * - focus/blur for selectType = cell not display grayed out selection
20025
- * - allow enum in inline edit (see https://github.com/vitmalina/w2ui/issues/911#issuecomment-107341193)
20026
- * - remote source, but localSort/localSearch
20027
- * - promise for request, load, save, etc.
20028
- * - onloadmore event (so it will be easy to implement remote data source with local sort)
20029
- * - queryStatus() - clears on next select, etc. Should not if it is off
20030
- *
20031
- * == DEMOS To create ==
20032
- * - batch for denied buttons
20033
- * - natural sort
20034
- *
20035
- * == 2.0 changes
20036
- * - toolbarInput - deprecated, toolbarSearch stays
20037
- * - searchSuggest
20038
- * - searchSave, searchSelected, savedSearches, defaultSearches, useLocalStorage, searchFieldTooltip
20039
- * - cache, cacheSave
20040
- * - onSearchSave, onSearchRemove, onSearchSelect
20041
- * - show.searchLogic
20042
- * - show.searchSave
20043
- * - refreshSearch
20044
- * - initAllFields -> searchInitInput
20045
- * - textSearch - deprecated in favor of defaultOperator
20046
- * - grid.confirm - refactored
20047
- * - grid.message - refactored
20048
- * - search.type == 'text' can have 'in' and 'not in' operators, then it will switch to enum
20049
- * - grid.find(..., displayedOnly)
20050
- * - column.render(..., this) - added
20051
- * - observeResize for the box
20052
- * - remove edit.type == 'select'
20053
- * - editDone(...)
20054
- * - liveSearch
20055
- * - deprecated onUnselect event
20056
- * - requestComplete(data, action, callBack, resolve, reject) - new argument list
20057
- * - msgAJAXError -> msgHTTPError
20058
- * - aded msgServerError
20059
- * - deleted grid.method
20060
- * - added mouseEnter/mouseLeave
20061
- * - grid.show.columnReorder -> grid.reorderRows
20062
- * - updagte docs search.label (not search.text)
20063
- * - added columnAutoSize - which resizes column based on text in it
20064
- * - added grid.replace()
20015
+ /**
20016
+ * Part of w2ui 2.0 library
20017
+ * - Dependencies: jQuery, w2utils, w2base, w2toolbar, w2field
20018
+ *
20019
+ * == TODO ==
20020
+ * - problem with .set() and arrays, array get extended too, but should be replaced
20021
+ * - allow functions in routeData (also add routeData to list/enum)
20022
+ * - send parsed URL to the event if there is routeData
20023
+ * - add selectType: 'none' so that no selection can be make but with mouse
20024
+ * - focus/blur for selectType = cell not display grayed out selection
20025
+ * - allow enum in inline edit (see https://github.com/vitmalina/w2ui/issues/911#issuecomment-107341193)
20026
+ * - remote source, but localSort/localSearch
20027
+ * - promise for request, load, save, etc.
20028
+ * - onloadmore event (so it will be easy to implement remote data source with local sort)
20029
+ * - queryStatus() - clears on next select, etc. Should not if it is off
20030
+ *
20031
+ * == DEMOS To create ==
20032
+ * - batch for denied buttons
20033
+ * - natural sort
20034
+ *
20035
+ * == 2.0 changes
20036
+ * - toolbarInput - deprecated, toolbarSearch stays
20037
+ * - searchSuggest
20038
+ * - searchSave, searchSelected, savedSearches, defaultSearches, useLocalStorage, searchFieldTooltip
20039
+ * - cache, cacheSave
20040
+ * - onSearchSave, onSearchRemove, onSearchSelect
20041
+ * - show.searchLogic
20042
+ * - show.searchSave
20043
+ * - refreshSearch
20044
+ * - initAllFields -> searchInitInput
20045
+ * - textSearch - deprecated in favor of defaultOperator
20046
+ * - grid.confirm - refactored
20047
+ * - grid.message - refactored
20048
+ * - search.type == 'text' can have 'in' and 'not in' operators, then it will switch to enum
20049
+ * - grid.find(..., displayedOnly)
20050
+ * - column.render(..., this) - added
20051
+ * - observeResize for the box
20052
+ * - remove edit.type == 'select'
20053
+ * - editDone(...)
20054
+ * - liveSearch
20055
+ * - deprecated onUnselect event
20056
+ * - requestComplete(data, action, callBack, resolve, reject) - new argument list
20057
+ * - msgAJAXError -> msgHTTPError
20058
+ * - aded msgServerError
20059
+ * - deleted grid.method
20060
+ * - added mouseEnter/mouseLeave
20061
+ * - grid.show.columnReorder -> grid.reorderRows
20062
+ * - updagte docs search.label (not search.text)
20063
+ * - added columnAutoSize - which resizes column based on text in it
20064
+ * - added grid.replace()
20065
20065
  */ class $aa2bd8933167d9cb$export$b4cb041b06327cfa extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
20066
20066
  constructor(options){
20067
20067
  super(options.name);
@@ -22185,9 +22185,9 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
22185
22185
  };
22186
22186
  searchData.push(tmp);
22187
22187
  }
22188
- /**
22189
- * If user searched ALL field and there was no matching searches then add a bogus field, so that no result will be
22190
- * shown. Otherwise search string is not empty, but no fields is actually applied and all fields are shown
22188
+ /**
22189
+ * If user searched ALL field and there was no matching searches then add a bogus field, so that no result will be
22190
+ * shown. Otherwise search string is not empty, but no fields is actually applied and all fields are shown
22191
22191
  */ if (searchData.length == 0) {
22192
22192
  let tmp = {
22193
22193
  field: 'All',
@@ -24855,11 +24855,11 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
24855
24855
  return edata;
24856
24856
  }
24857
24857
  }
24858
- /**
24859
- * Gets value to be copied to the clipboard
24860
- * @param ind index of the record
24861
- * @param col_ind index of the column
24862
- * @returns the displayed value of the field's record associated with the cell
24858
+ /**
24859
+ * Gets value to be copied to the clipboard
24860
+ * @param ind index of the record
24861
+ * @param col_ind index of the column
24862
+ * @returns the displayed value of the field's record associated with the cell
24863
24863
  */ getCellCopy(ind, col_ind) {
24864
24864
  return $aa2bd8933167d9cb$export$fe3767bc112f7a2a.stripTags(this.getCellHTML(ind, col_ind));
24865
24865
  }
@@ -26799,9 +26799,9 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
26799
26799
  frecords.css('width', fwidth + 'px');
26800
26800
  fsummary.css('width', fwidth + 'px');
26801
26801
  scroll1.css('width', fwidth + 'px');
26802
- /**
26803
- * 0.5 is needed due to imperfection of table layout. There was a very small shift between right border of the column headers
26804
- * and records. I checked it had exact same offset, but still felt like 1px off. This adjustment fixes it.
26802
+ /**
26803
+ * 0.5 is needed due to imperfection of table layout. There was a very small shift between right border of the column headers
26804
+ * and records. I checked it had exact same offset, but still felt like 1px off. This adjustment fixes it.
26805
26805
  */ columns.css('left', fwidth + 0.5 + 'px');
26806
26806
  records.css('left', fwidth + 'px');
26807
26807
  summary.css('left', fwidth + 'px');
@@ -28466,35 +28466,35 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
28466
28466
  }, options);
28467
28467
  }
28468
28468
  }
28469
- /**
28470
- * Part of w2ui 2.0 library
28471
- * - Dependencies: mQuery, w2utils, w2base, w2tabs, w2toolbar, w2tooltip, w2field
28472
- *
28473
- * == TODO ==
28474
- * - include delta on save
28475
- * - tabs below some fields (could already be implemented)
28476
- * - form with toolbar & tabs
28477
- * - promise for load, save, etc.
28478
- *
28479
- * == 2.0 changes
28480
- * - CSP - fixed inline events
28481
- * - removed jQuery dependency
28482
- * - better groups support tabs now
28483
- * - form.confirm - refactored
28484
- * - form.message - refactored
28485
- * - observeResize for the box
28486
- * - removed msgNotJSON, msgAJAXerror
28487
- * - applyFocus -> setFocus
28488
- * - getFieldValue(fieldName) = returns { curent, previous, original }
28489
- * - setFieldVallue(fieldName, value)
28490
- * - getValue(..., original) -- return original if any
28491
- * - added .hideErrors()
28492
- * - reuqest, save, submit - return promises
28493
- * - this.recid = null if no record needs to be pulled
28494
- * - remove form.multiplart
28495
- * - this.method - for saving only
28496
- * - added field.html.class
28497
- * - setValue(..., noRefresh)
28469
+ /**
28470
+ * Part of w2ui 2.0 library
28471
+ * - Dependencies: mQuery, w2utils, w2base, w2tabs, w2toolbar, w2tooltip, w2field
28472
+ *
28473
+ * == TODO ==
28474
+ * - include delta on save
28475
+ * - tabs below some fields (could already be implemented)
28476
+ * - form with toolbar & tabs
28477
+ * - promise for load, save, etc.
28478
+ *
28479
+ * == 2.0 changes
28480
+ * - CSP - fixed inline events
28481
+ * - removed jQuery dependency
28482
+ * - better groups support tabs now
28483
+ * - form.confirm - refactored
28484
+ * - form.message - refactored
28485
+ * - observeResize for the box
28486
+ * - removed msgNotJSON, msgAJAXerror
28487
+ * - applyFocus -> setFocus
28488
+ * - getFieldValue(fieldName) = returns { curent, previous, original }
28489
+ * - setFieldVallue(fieldName, value)
28490
+ * - getValue(..., original) -- return original if any
28491
+ * - added .hideErrors()
28492
+ * - reuqest, save, submit - return promises
28493
+ * - this.recid = null if no record needs to be pulled
28494
+ * - remove form.multiplart
28495
+ * - this.method - for saving only
28496
+ * - added field.html.class
28497
+ * - setValue(..., noRefresh)
28498
28498
  */ class $aa2bd8933167d9cb$export$40a7047ac34ef882 extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
28499
28499
  constructor(options){
28500
28500
  super(options.name);
@@ -30446,35 +30446,35 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
30446
30446
  return $input;
30447
30447
  }
30448
30448
  }
30449
- /**
30450
- * Part of w2ui 2.0 library
30451
- * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2color, w2menu, w2date
30452
- *
30453
- * == TODO ==
30454
- * - upload (regular files)
30455
- * - BUG with prefix/postfix and arrows (test in different contexts)
30456
- * - multiple date selection
30457
- * - month selection, year selections
30458
- * - MultiSelect - Allow Copy/Paste for single and multi values
30459
- * - add routeData to list/enum
30460
- * - ENUM, LIST: should have same as grid (limit, offset, search, sort)
30461
- * - ENUM, LIST: should support wild chars
30462
- * - add selection of predefined times (used for appointments)
30463
- * - options.items - can be an array
30464
- * - options.msgNoItems - can be a function
30465
- * - REMOTE fields
30466
- *
30467
- * == 2.0 changes
30468
- * - removed jQuery dependency
30469
- * - enum options.autoAdd
30470
- * - [numeric, date] - options.autoCorrect to enforce range and validity
30471
- * - silent only left for files, removed form the rest
30472
- * - remote source response items => records or just an array
30473
- * - deprecated "success" field for remote source response
30474
- * - CSP - fixed inline events
30475
- * - remove clear, use reset instead
30476
- * - options.msgSearch
30477
- * - options.msgNoItems
30449
+ /**
30450
+ * Part of w2ui 2.0 library
30451
+ * - Dependencies: mQuery, w2utils, w2base, w2tooltip, w2color, w2menu, w2date
30452
+ *
30453
+ * == TODO ==
30454
+ * - upload (regular files)
30455
+ * - BUG with prefix/postfix and arrows (test in different contexts)
30456
+ * - multiple date selection
30457
+ * - month selection, year selections
30458
+ * - MultiSelect - Allow Copy/Paste for single and multi values
30459
+ * - add routeData to list/enum
30460
+ * - ENUM, LIST: should have same as grid (limit, offset, search, sort)
30461
+ * - ENUM, LIST: should support wild chars
30462
+ * - add selection of predefined times (used for appointments)
30463
+ * - options.items - can be an array
30464
+ * - options.msgNoItems - can be a function
30465
+ * - REMOTE fields
30466
+ *
30467
+ * == 2.0 changes
30468
+ * - removed jQuery dependency
30469
+ * - enum options.autoAdd
30470
+ * - [numeric, date] - options.autoCorrect to enforce range and validity
30471
+ * - silent only left for files, removed form the rest
30472
+ * - remote source response items => records or just an array
30473
+ * - deprecated "success" field for remote source response
30474
+ * - CSP - fixed inline events
30475
+ * - remove clear, use reset instead
30476
+ * - options.msgSearch
30477
+ * - options.msgNoItems
30478
30478
  */ class $aa2bd8933167d9cb$export$b011ec2f2c6bab8b extends $aa2bd8933167d9cb$export$3bc12ae4e0bb7487 {
30479
30479
  constructor(type, options){
30480
30480
  super();
@@ -31793,8 +31793,8 @@ class $aa2bd8933167d9cb$export$dac8796a64ad454e extends $aa2bd8933167d9cb$export
31793
31793
  });
31794
31794
  }
31795
31795
  }
31796
- /*
31797
- * INTERNAL FUNCTIONS
31796
+ /*
31797
+ * INTERNAL FUNCTIONS
31798
31798
  */ isStrValid(ch, loose) {
31799
31799
  let isValid = true;
31800
31800
  switch(this.type){
@@ -34335,6 +34335,7 @@ const $900fa559ce35569a$export$c02cdf743c1f7188 = {
34335
34335
  const $900fa559ce35569a$export$4003d000af5d7585 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function LookupSelect(props, ref) {
34336
34336
  const { parentKeys: parentKeys, column: column, formStatus: formStatus, entityForm: entityForm, entity: entity, lookupDefName: lookupDefName, enableEdit: enableEdit, editIcon: editIcon, editIconVariant: editIconVariant, selectProps: selectProps, maxItems: maxItems, requiredLabel: requiredLabel, editLabel: editLabel, includeKeyInDescription: includeKeyInDescription, withinPortal: withinPortal, zIndex: zIndex, breadCrumbs: breadCrumbs, maxWidth: maxWidth, minWidth: minWidth } = (0, $b4te3$mantinecore.useComponentDefaultProps)('LookupSelect', $900fa559ce35569a$export$c02cdf743c1f7188, props);
34337
34337
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
34338
+ const { formMode: formMode, form: form } = entityForm;
34338
34339
  const triggerRefreshState = (0, $b4te3$react.useState)(true);
34339
34340
  const selectDataState = (0, $b4te3$react.useState)([]);
34340
34341
  const [selectData] = selectDataState;
@@ -34377,6 +34378,21 @@ const $900fa559ce35569a$export$4003d000af5d7585 = /*#__PURE__*/ (0, $b4te3$react
34377
34378
  entityForm.form.values,
34378
34379
  selectData
34379
34380
  ]);
34381
+ // MMC: Effect for setting the key column value to the case of the selectData
34382
+ (0, $b4te3$react.useEffect)(()=>{
34383
+ if (formMode === 'add') return;
34384
+ const bindingColumnValue = form.values[column.name];
34385
+ const originalItem = selectData.find((item)=>item.value.localeCompare(bindingColumnValue, undefined, {
34386
+ sensitivity: 'base'
34387
+ }) === 0)?.value ?? null;
34388
+ if (originalItem !== null) form.setFieldValue(column.name, originalItem);
34389
+ }, [
34390
+ column,
34391
+ entityForm.form.values,
34392
+ form,
34393
+ formMode,
34394
+ selectData
34395
+ ]);
34380
34396
  const readoOnlyResult = resolvedSelectProps?.readOnly || entityForm.formMode === 'view' || lookupSelectAPI.status.loading || formStatus?.loading || column.hasFlag((0, $4H7ea.EntityColumnFlags).pk) && entityForm.formMode !== 'add' ? true : false;
34381
34397
  return /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Select), {
34382
34398
  ...resolvedSelectProps,