@things-factory/meta-ui 6.0.121 → 6.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +22 -3
  3. package/client/component/editor/ox-grist-editor-resource-selector.js +9 -0
  4. package/client/component/filter/filter-form-resource-code-select.ts +94 -0
  5. package/client/component/filter/filter-grist-resource-code-select.ts +95 -0
  6. package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -0
  7. package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -0
  8. package/client/component/grist/selector/ox-resource-code-selector-popup.js +40 -0
  9. package/client/component/renderer/ox-grist-renderer-resource-column.js +1 -0
  10. package/client/component/renderer/ox-grist-renderer-resource-selector.js +1 -0
  11. package/client/component/selector/ox-resource-selector-popup.js +40 -0
  12. package/client/mixin/meta-base-mixin.js +1 -1
  13. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  14. package/client/mixin/meta-button-mixin.js +1 -1
  15. package/client/mixin/meta-form-mixin.js +1 -1
  16. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  17. package/client/mixin/meta-master-detail-mixin.js +1 -1
  18. package/client/mixin/meta-service-mixin.js +1 -1
  19. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  20. package/client/mixin/meta-tab-mixin.js +1 -1
  21. package/client/pages/activity/meta-activity-list-page.js +6 -6
  22. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  23. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  24. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  25. package/client/pages/entity/config-entity.js +28 -28
  26. package/client/pages/entity/main-menu-selector.js +8 -8
  27. package/client/pages/history/history-copy-list-popup.js +6 -6
  28. package/client/pages/history/history-json-list-popup.js +6 -6
  29. package/client/pages/loading-page.js +5 -5
  30. package/client/pages/menu/dynamic-menu-template.js +7 -7
  31. package/client/pages/menu/dynamic-menu.js +15 -15
  32. package/client/pages/meta-form-element.js +1 -1
  33. package/client/pages/meta-grist-element.js +1 -1
  34. package/client/pages/meta-grist-page.js +1 -1
  35. package/client/pages/meta-grist-tab-element.js +1 -1
  36. package/client/pages/meta-grist-tab-page.js +1 -1
  37. package/client/pages/meta-master-detail-element.js +1 -1
  38. package/client/pages/meta-master-detail-page.js +1 -1
  39. package/client/pages/meta-tab-detail-element.js +1 -1
  40. package/client/pages/meta-tab-detail-page.js +1 -1
  41. package/client/pages/meta-tab-element.js +1 -1
  42. package/client/pages/personalize/personal-column-selector.js +11 -11
  43. package/client/pages/terms/config-terminology.js +6 -6
  44. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  45. package/client/pages/work-code/work-code-page.js +1 -1
  46. package/client/reducers/main.js +1 -1
  47. package/client/utils/meta-api.js +1 -1
  48. package/client/utils/meta-crypto.js +1 -1
  49. package/client/utils/meta-ui-util.js +96 -96
  50. package/client/utils/service-util.js +13 -13
  51. package/client/utils/terms-util.js +2 -2
  52. package/client/utils/ui-util.js +1 -1
  53. package/client/utils/value-util.js +1 -1
  54. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  55. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  56. package/client/viewparts/dynamic-menu-part.js +11 -11
  57. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  58. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  59. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  60. package/package.json +2 -2
  61. package/server/activity/CommonActivity.js +2 -2
  62. package/server/constants/error-code.js +1 -1
  63. package/server/errors/license-error.js +1 -1
  64. package/server/routes.js +1 -1
  65. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  66. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  67. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  68. package/server/service/grid-personalize/grid-personalize.js +1 -1
  69. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  70. package/server/service/meta-activity/meta-activity-query.js +1 -1
  71. package/server/service/meta-activity/meta-activity-type.js +1 -1
  72. package/server/service/meta-secret/meta-resolver.js +1 -1
  73. package/server/service/set-translations/set-translation-resolver.js +1 -1
  74. package/server/service/work-code/work-code-mutation.js +1 -1
  75. package/server/service/work-code/work-code-query.js +1 -1
  76. package/server/service/work-code/work-code-type.js +1 -1
  77. package/server/service/work-code/work-code.js +1 -1
  78. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  79. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  80. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  81. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,7 +1,7 @@
1
- const a0_0x5dd88f=a0_0x2dc4;(function(_0x50933f,_0x4f3129){const _0x3b54f9=a0_0x2dc4,_0x45b9e3=_0x50933f();while(!![]){try{const _0x2e65c3=parseInt(_0x3b54f9(0x122))/0x1+parseInt(_0x3b54f9(0x135))/0x2+-parseInt(_0x3b54f9(0x131))/0x3*(-parseInt(_0x3b54f9(0x136))/0x4)+parseInt(_0x3b54f9(0x12c))/0x5+parseInt(_0x3b54f9(0x11c))/0x6+parseInt(_0x3b54f9(0x12b))/0x7+-parseInt(_0x3b54f9(0x121))/0x8;if(_0x2e65c3===_0x4f3129)break;else _0x45b9e3['push'](_0x45b9e3['shift']());}catch(_0x9ba640){_0x45b9e3['push'](_0x45b9e3['shift']());}}}(a0_0x1ba6,0x4f5ac));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x558092 from'graphql-tag';function a0_0x1ba6(){const _0x57e684=['483006RYOgoZ','active','landscape','query','NAVBAR','8964600UugFen','204328vIsjNg','querySelector','dispatch','appName','portrait','data','value','rank','dynamic-menu','876512VBRUMa','2790860sLjFLF','content','UPDATE_META_UI','FRONT_END','HEADERBAR','15DKZwYh','hamburger','meta[name=\x22application-name\x22]','items','744858oqFrJu','83972oAteNQ','filter','liteMenus','UPDATE_META_MENU_TEMPLATE','get'];a0_0x1ba6=function(){return _0x57e684;};return a0_0x1ba6();}import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x5dd88f(0x12e);export const UPDATE_META_MENU_TEMPLATE=a0_0x5dd88f(0x11a);var HAMBURGER;function a0_0x2dc4(_0xed2080,_0x557f15){const _0x1ba6fd=a0_0x1ba6();return a0_0x2dc4=function(_0x2dc4d4,_0x1f5348){_0x2dc4d4=_0x2dc4d4-0x118;let _0xcbf47c=_0x1ba6fd[_0x2dc4d4];return _0xcbf47c;},a0_0x2dc4(_0xed2080,_0x557f15);}export async function setupMenuPart(_0x504d66){const _0x241f08=a0_0x5dd88f;var {hovering:_0x93db6a=!!isMobileDevice(),slotTemplate:_0x1b7f94,portraitSlotTemplate:_0x45ebbb,landscapeSlotTemplate:_0xd4671,position:_0x209e7e=VIEWPART_POSITION[_0x241f08(0x120)]}=_0x504d66||{};const {hovering:_0x8cd0f3}=(await clientSettingStore[_0x241f08(0x11b)](_0x241f08(0x12a)))?.[_0x241f08(0x128)]||{};void 0x0!==_0x8cd0f3&&(_0x93db6a=_0x8cd0f3);const _0x5c046=_0x209e7e==VIEWPART_POSITION[_0x241f08(0x130)]?_0x241f08(0x11e):_0x241f08(0x126),_0xcc7b51=(_0x241f08(0x11e)==_0x5c046?_0xd4671:_0x45ebbb)||_0x1b7f94||html``;appendViewpart({'name':'lite-menu-part','viewpart':{'show':!_0x93db6a,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x93db6a,'template':html`<dynamic-menu-part .orientation=${_0x5c046}>${_0xcc7b51}</dynamic-menu-part>`},'position':_0x209e7e}),_0x93db6a&&_0x241f08(0x126)==_0x5c046?HAMBURGER||(HAMBURGER={'name':_0x241f08(0x132),'template':html`
2
- <mwc-icon @click=${_0x5ac6f1=>toggleOverlay('dynamic-menu-part',{'backdrop':!0x0})}
1
+ function a0_0x14ea(){const _0x3f7f04=['landscape','30gvJBli','lite-menu-part','168905xmcyxS','hamburger','1470ygrmZB','filter','items','15DgbxWg','1327953BUOaeD','6732RbMQLo','rank','139886LUdmVI','4804FkaxQt','get','50496YtNtIM','UPDATE_META_UI','FRONT_END','UPDATE_META_MENU_TEMPLATE','appName','portrait','active','6YeOaPK','liteMenus','data','dispatch','dynamic-menu-part','querySelector','162oVIhgh','2737956bISVxe','HEADERBAR'];a0_0x14ea=function(){return _0x3f7f04;};return a0_0x14ea();}const a0_0x1e60c8=a0_0x13ec;(function(_0x33d645,_0x2cbc39){const _0x4f7094=a0_0x13ec,_0x1fb4ae=_0x33d645();while(!![]){try{const _0x2612ae=-parseInt(_0x4f7094(0x132))/0x1+parseInt(_0x4f7094(0x11c))/0x2*(parseInt(_0x4f7094(0x126))/0x3)+-parseInt(_0x4f7094(0x11d))/0x4*(parseInt(_0x4f7094(0x137))/0x5)+-parseInt(_0x4f7094(0x139))/0x6*(-parseInt(_0x4f7094(0x134))/0x7)+-parseInt(_0x4f7094(0x11f))/0x8*(-parseInt(_0x4f7094(0x12c))/0x9)+parseInt(_0x4f7094(0x130))/0xa*(-parseInt(_0x4f7094(0x138))/0xb)+parseInt(_0x4f7094(0x12d))/0xc;if(_0x2612ae===_0x2cbc39)break;else _0x1fb4ae['push'](_0x1fb4ae['shift']());}catch(_0x207661){_0x1fb4ae['push'](_0x1fb4ae['shift']());}}}(a0_0x14ea,0x2c950));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x174d1d from'graphql-tag';function a0_0x13ec(_0x1e95a4,_0x301e45){const _0x14eae2=a0_0x14ea();return a0_0x13ec=function(_0x13ecc9,_0x33214f){_0x13ecc9=_0x13ecc9-0x11c;let _0x41f309=_0x14eae2[_0x13ecc9];return _0x41f309;},a0_0x13ec(_0x1e95a4,_0x301e45);}import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x1e60c8(0x120);export const UPDATE_META_MENU_TEMPLATE=a0_0x1e60c8(0x122);var HAMBURGER;export async function setupMenuPart(_0x467cf6){const _0x10e6ce=a0_0x1e60c8;var {hovering:_0x421200=!!isMobileDevice(),slotTemplate:_0xff5a38,portraitSlotTemplate:_0x430c75,landscapeSlotTemplate:_0x142473,position:_0x1b9445=VIEWPART_POSITION['NAVBAR']}=_0x467cf6||{};const {hovering:_0x8a9364}=(await clientSettingStore[_0x10e6ce(0x11e)]('dynamic-menu'))?.['value']||{};void 0x0!==_0x8a9364&&(_0x421200=_0x8a9364);const _0xb5fae1=_0x1b9445==VIEWPART_POSITION[_0x10e6ce(0x12e)]?'landscape':'portrait',_0x14ba46=(_0x10e6ce(0x12f)==_0xb5fae1?_0x142473:_0x430c75)||_0xff5a38||html``;appendViewpart({'name':_0x10e6ce(0x131),'viewpart':{'show':!_0x421200,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x421200,'template':html`<dynamic-menu-part .orientation=${_0xb5fae1}>${_0x14ba46}</dynamic-menu-part>`},'position':_0x1b9445}),_0x421200&&_0x10e6ce(0x124)==_0xb5fae1?HAMBURGER||(HAMBURGER={'name':_0x10e6ce(0x133),'template':html`
2
+ <mwc-icon @click=${_0x1a4a37=>toggleOverlay(_0x10e6ce(0x12a),{'backdrop':!0x0})}
3
3
  >view_headline</mwc-icon>
4
- `,'position':TOOL_POSITION[_0x241f08(0x12f)]},store[_0x241f08(0x124)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':_0x241f08(0x132)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x226418){const _0x43dca4=a0_0x5dd88f;var _0x359b15=document[_0x43dca4(0x123)](_0x43dca4(0x133))?.[_0x43dca4(0x12d)],_0x44ad43=(await client[_0x43dca4(0x11f)]({'query':a0_0x558092`
4
+ `,'position':TOOL_POSITION[_0x10e6ce(0x121)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x10e6ce(0x129)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x51cbd5){const _0x1664f5=a0_0x1e60c8;var _0x538c64=document[_0x1664f5(0x12b)]('meta[name=\x22application-name\x22]')?.['content'],_0x2b19a6=(await client['query']({'query':a0_0x174d1d`
5
5
  query ($filters: [Filter!], $sortings: [Sorting!]) {
6
6
  liteMenus: liteMenus(filters: $filters
7
7
  sortings: $sortings) {
@@ -20,4 +20,4 @@ const a0_0x5dd88f=a0_0x2dc4;(function(_0x50933f,_0x4f3129){const _0x3b54f9=a0_0x
20
20
  total
21
21
  }
22
22
  }
23
- `,'variables':{'filters':[{'name':_0x43dca4(0x11d),'operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x359b15]}],'sortings':[{'name':_0x43dca4(0x129),'desc':!0x1}]}}))[_0x43dca4(0x127)][_0x43dca4(0x119)][_0x43dca4(0x134)];store[_0x43dca4(0x124)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x44ad43[_0x43dca4(0x118)](_0x120b0a=>!_0x120b0a[_0x43dca4(0x125)]||_0x120b0a[_0x43dca4(0x125)]===_0x359b15),'template':_0x226418});}
23
+ `,'variables':{'filters':[{'name':_0x1664f5(0x125),'operator':'eq','value':!0x0},{'name':_0x1664f5(0x123),'operator':'in','value':['',_0x538c64]}],'sortings':[{'name':_0x1664f5(0x13a),'desc':!0x1}]}}))[_0x1664f5(0x128)][_0x1664f5(0x127)][_0x1664f5(0x136)];store[_0x1664f5(0x129)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2b19a6[_0x1664f5(0x135)](_0x4d4769=>!_0x4d4769[_0x1664f5(0x123)]||_0x4d4769[_0x1664f5(0x123)]===_0x538c64),'template':_0x51cbd5});}
@@ -4,18 +4,37 @@ import { auth } from '@things-factory/auth-base'
4
4
  import { ADD_MORENDA } from '@things-factory/more-base'
5
5
  import { navigate, store } from '@things-factory/shell'
6
6
  import { navigateWithSilence, UPDATE_MODULES } from '@operato/shell'
7
- import { updateMenuTemplate } from './actions/main'
8
7
 
8
+ import { updateMenuTemplate } from './actions/main'
9
9
  import metaUI from './reducers/main'
10
-
11
10
  import { TermsUtil } from './utils/terms-util'
12
11
  import { MetaApi } from './utils/meta-api'
13
- import { ENV } from '@things-factory/system-base'
12
+
13
+ import { registerEditor as gristColumnRegisterEditor,
14
+ registerRenderer as gristColumnRegisterRenderer,
15
+ registerFilterRenderer as gristRegisterFilterRenderer } from '@operato/data-grist'
16
+ import { registerFilterRenderer as formRegisterFilterRenderer } from '@operato/form'
17
+
18
+ import { OxGristRendererResourceCodeSelector } from './component/grist/renderer/ox-grist-renderer-resource-code-selector'
19
+ import { OxGristEditorResourceCodeSelector } from './component/grist/editor/ox-grist-editor-resource-code-selector'
20
+
21
+ import { FilterGristResourceCodeSelect } from './component/filter/filter-grist-resource-code-select'
22
+ import { FilterFormResourceCodeSelect } from './component/filter/filter-form-resource-code-select'
23
+
14
24
 
15
25
  export default function bootstrap() {
16
26
  import(`./pages/activity/meta-activity-writer-element`)
17
27
  import(`./pages/activity/meta-activity-viewer-element`)
18
28
 
29
+ // resource-selector 타입
30
+ gristColumnRegisterRenderer('resource-code-selector',OxGristRendererResourceCodeSelector);
31
+ gristColumnRegisterEditor('resource-code-selector', OxGristEditorResourceCodeSelector);
32
+
33
+ gristRegisterFilterRenderer('resource-code-selector',[FilterGristResourceCodeSelect]);
34
+ formRegisterFilterRenderer('resource-code-selector',[FilterFormResourceCodeSelect]);
35
+
36
+
37
+
19
38
  store.addReducers({
20
39
  metaUI
21
40
  })
@@ -0,0 +1,9 @@
1
+ var a0_0x2987b0=a0_0x22e7;(function(_0xb1f9ec,_0xa72e37){var _0x1aa083=a0_0x22e7,_0x17bb64=_0xb1f9ec();while(!![]){try{var _0xb9721f=parseInt(_0x1aa083(0x1b7))/0x1+parseInt(_0x1aa083(0x1b9))/0x2+-parseInt(_0x1aa083(0x1bd))/0x3+parseInt(_0x1aa083(0x1bc))/0x4*(-parseInt(_0x1aa083(0x1c0))/0x5)+-parseInt(_0x1aa083(0x1a8))/0x6*(-parseInt(_0x1aa083(0x1b3))/0x7)+-parseInt(_0x1aa083(0x1ac))/0x8*(parseInt(_0x1aa083(0x1b5))/0x9)+parseInt(_0x1aa083(0x1b6))/0xa;if(_0xb9721f===_0xa72e37)break;else _0x17bb64['push'](_0x17bb64['shift']());}catch(_0x9a6477){_0x17bb64['push'](_0x17bb64['shift']());}}}(a0_0x3cbc,0xd2cfd));function a0_0x22e7(_0xbb45e5,_0x3d812f){var _0x3cbce1=a0_0x3cbc();return a0_0x22e7=function(_0x22e723,_0x457f5c){_0x22e723=_0x22e723-0x1a7;var _0x2ab9ce=_0x3cbce1[_0x22e723];return _0x2ab9ce;},a0_0x22e7(_0xbb45e5,_0x3d812f);}import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../utils/terms-util';function a0_0x3cbc(){var _0x5ce7c0=['2816358JMoHoZ','bind','row','value','368dInzRw','name','openSelector','record','__origin__','firstUpdated','options','7SGNqKR','dispatchEvent','33471borxrF','8821300NgIlbz','867391gdKfDl','_onkeydown','2933922EccQdf','popup','column','4948dcFLal','4087086pnmVzq','meta','editorTemplate','5210tBcLKg','define','stopPropagation','Enter'];a0_0x3cbc=function(){return _0x5ce7c0;};return a0_0x3cbc();}import'../selector/ox-resource-selector-popup';export class OxGristEditorResourceSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x2987b0(0x1bf)](){var _0x2489dd=a0_0x2987b0;let _0x873137,_0x4bf6a1=this[_0x2489dd(0x1bb)][_0x2489dd(0x1af)][_0x2489dd(0x1b2)]['meta'],{id_field:_0x2b9b5c='id',title_field:_0x8bcc8d=_0x2489dd(0x1ad),desc_field:_0x15e550='description'}=_0x4bf6a1;return this['value']&&(_0x873137=null==this['value'][_0x15e550]?'':this[_0x2489dd(0x1ab)][_0x15e550]),html`
2
+ ${_0x873137?html` <span tabindex="0" style="flex:1">${_0x873137}</span> `:html`<span tabindex="0"></span>`}
3
+ `;}async[a0_0x2987b0(0x1b1)](){var _0x2b7810=a0_0x2987b0;super[_0x2b7810(0x1b1)]();}['_onclick'](_0x44636e){var _0x4932b9=a0_0x2987b0;_0x44636e[_0x4932b9(0x1c2)](),this[_0x4932b9(0x1ae)]();}[a0_0x2987b0(0x1b8)](_0x171280){var _0x5bb9b2=a0_0x2987b0;_0x5bb9b2(0x1a7)==_0x171280['key']&&(_0x171280[_0x5bb9b2(0x1c2)](),this[_0x5bb9b2(0x1ae)]());}['openSelector'](){var _0x3b5242=a0_0x2987b0;this[_0x3b5242(0x1ba)]&&delete this[_0x3b5242(0x1ba)];var {name:_0x14b096=''}=this[_0x3b5242(0x1bb)]['record'][_0x3b5242(0x1b2)][_0x3b5242(0x1be)]||{},_0x424d96=this['value']||{},_0x841da=html`
4
+ <ox-resource-selector-popup
5
+ .value=${_0x424d96}
6
+ .entity_meta=${this['column']['record'][_0x3b5242(0x1b2)][_0x3b5242(0x1be)]}
7
+ .confirmCallback=${(_0x2b350c=>{var _0x1e57f8=_0x3b5242;this[_0x1e57f8(0x1b4)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x1e57f8(0x1ab)],'after':_0x2b350c?_0x2b350c['id']==((this[_0x1e57f8(0x1af)][_0x1e57f8(0x1b0)]?this[_0x1e57f8(0x1af)][_0x1e57f8(0x1b0)]:{})[this['column'][_0x1e57f8(0x1ad)]]||{})['id']?this[_0x1e57f8(0x1af)]['__origin__'][this[_0x1e57f8(0x1bb)][_0x1e57f8(0x1ad)]]:_0x2b350c:null,'record':this[_0x1e57f8(0x1af)],'column':this[_0x1e57f8(0x1bb)],'row':this[_0x1e57f8(0x1aa)]}}));})[_0x3b5242(0x1a9)](this)}
8
+ ></ox-resource-selector-popup>
9
+ `;this['popup']=openPopup(_0x841da,{'backdrop':!0x0,'size':'large','title':TermsUtil['tMenu'](_0x14b096)});}}customElements[a0_0x2987b0(0x1c1)]('ox-grist-editor-resource-selector',OxGristEditorResourceSelector);
@@ -0,0 +1,94 @@
1
+ import '@operato/input/ox-checkbox.js'
2
+ import '../grist/selector/ox-resource-code-selector-popup'
3
+
4
+ import { html } from 'lit-html'
5
+
6
+ import { FilterConfig, FilterSelectRenderer } from '@operato/form'
7
+ import { i18next } from '@operato/i18n'
8
+ import { openPopup } from '@operato/layout'
9
+
10
+ type SelectedCallback = (value: { id: string; name: string; description: string }) => void
11
+
12
+ function openResourceCodeSelector(filter: FilterConfig, value: any, confirmCallback: SelectedCallback) {
13
+ const { queryName, select, list, basicArgs, valueField = 'id' } = filter.options || {}
14
+
15
+ var actualValue
16
+ if (typeof valueField === 'function') {
17
+ actualValue = valueField(value)
18
+ } else {
19
+ actualValue = value?.[valueField]
20
+ }
21
+
22
+ var template = html`
23
+ <ox-resource-code-selector-popup
24
+ .value=${actualValue}
25
+ .confirmCallback=${confirmCallback}
26
+ .queryName=${queryName}
27
+ .select=${select}
28
+ .list=${list}
29
+ .basicArgs=${basicArgs}
30
+ .valueField=${valueField}
31
+ ></ox-resource-code-selector-popup>
32
+ `
33
+
34
+ const popup = openPopup(template, {
35
+ backdrop: true,
36
+ size: 'large',
37
+ title: i18next.t('title.select_item')
38
+ })
39
+ }
40
+
41
+ export const FilterFormResourceCodeSelect: FilterSelectRenderer = (filter, value, owner) => {
42
+ const { name, operator = 'like' } = filter
43
+
44
+ return operator === 'like'
45
+ ? html` <input
46
+ type="text"
47
+ name=${name}
48
+ .value=${value}
49
+ @change=${(e: CustomEvent) => {
50
+ const input = e.target as HTMLInputElement
51
+ input.dispatchEvent(
52
+ new CustomEvent('filter-change', {
53
+ bubbles: true,
54
+ composed: true,
55
+ detail: {
56
+ name,
57
+ operator,
58
+ value: input.value
59
+ }
60
+ })
61
+ )
62
+ }}
63
+ />`
64
+ : operator == 'in'
65
+ ? html``
66
+ : operator === 'eq'
67
+ ? html`
68
+ <input
69
+ style="min-width: 100px; min-height: 24px"
70
+ type="text"
71
+ name=${name}
72
+ .value=${value}
73
+ readonly
74
+ @click=${(e: Event) => {
75
+ e.stopPropagation()
76
+
77
+ const confirmCallback = (selected?: { [field: string]: any }) => {
78
+ var { idField = 'id', nameField = 'name', descriptionField = 'description' } = filter.options || {}
79
+
80
+ owner.dispatchEvent(
81
+ new CustomEvent('filter-change', {
82
+ bubbles: true,
83
+ composed: true,
84
+ detail: selected ? selected[idField] : ''
85
+ })
86
+ )
87
+ }
88
+
89
+ openResourceCodeSelector(filter, value, confirmCallback)
90
+ }}
91
+ />
92
+ `
93
+ : html``
94
+ }
@@ -0,0 +1,95 @@
1
+ import '@operato/input/ox-checkbox.js'
2
+ import '../grist/selector/ox-resource-code-selector-popup'
3
+
4
+ import { html } from 'lit-html'
5
+
6
+ import { ColumnConfig, FilterConfigObject, FilterSelectRenderer } from '@operato/data-grist'
7
+ import { i18next } from '@operato/i18n'
8
+ import { openPopup } from '@operato/layout'
9
+
10
+ type SelectedCallback = (value: { id: string; name: string; description: string }) => void
11
+
12
+ function openResourceCodeSelector(column: ColumnConfig, value: any, confirmCallback: SelectedCallback) {
13
+ const { queryName, select, list, basicArgs, valueField = 'id' } = column.record.options
14
+
15
+ var actualValue
16
+ if (typeof valueField === 'function') {
17
+ actualValue = valueField(value)
18
+ } else {
19
+ actualValue = value?.[valueField]
20
+ }
21
+
22
+ var template = html`
23
+ <ox-resource-code-selector-popup
24
+ .value=${actualValue}
25
+ .confirmCallback=${confirmCallback}
26
+ .queryName=${queryName}
27
+ .select=${select}
28
+ .list=${list}
29
+ .basicArgs=${basicArgs}
30
+ .valueField=${valueField}
31
+ ></ox-resource-code-selector-popup>
32
+ `
33
+
34
+ const popup = openPopup(template, {
35
+ backdrop: true,
36
+ size: 'large',
37
+ title: i18next.t('title.select_item')
38
+ })
39
+ }
40
+
41
+ export const FilterGristResourceCodeSelect: FilterSelectRenderer = (column, value, owner) => {
42
+ const filter = column.filter as FilterConfigObject
43
+ const { operator = 'like' } = filter
44
+
45
+ return operator === 'like'
46
+ ? html` <input
47
+ type="text"
48
+ name=${column.name}
49
+ .value=${value}
50
+ @change=${(e: CustomEvent) => {
51
+ const input = e.target as HTMLInputElement
52
+ input.dispatchEvent(
53
+ new CustomEvent('filter-change', {
54
+ bubbles: true,
55
+ composed: true,
56
+ detail: {
57
+ name: column.name,
58
+ operator,
59
+ value: input.value
60
+ }
61
+ })
62
+ )
63
+ }}
64
+ />`
65
+ : operator == 'in'
66
+ ? html``
67
+ : operator === 'eq'
68
+ ? html`
69
+ <input
70
+ style="min-width: 100px; min-height: 24px"
71
+ type="text"
72
+ name=${column.name}
73
+ .value=${value}
74
+ readonly
75
+ @click=${(e: Event) => {
76
+ e.stopPropagation()
77
+
78
+ const confirmCallback = (selected?: { [field: string]: any }) => {
79
+ var { idField = 'id', nameField = 'name', descriptionField = 'description' } = column.record.options || {}
80
+
81
+ owner.dispatchEvent(
82
+ new CustomEvent('filter-change', {
83
+ bubbles: true,
84
+ composed: true,
85
+ detail: selected ? selected[idField] : ''
86
+ })
87
+ )
88
+ }
89
+
90
+ openResourceCodeSelector(column, value, confirmCallback)
91
+ }}
92
+ />
93
+ `
94
+ : html``
95
+ }
@@ -0,0 +1,9 @@
1
+ const a0_0x26edef=a0_0x5477;(function(_0x242780,_0x3f72f3){const _0x55f505=a0_0x5477,_0x33522b=_0x242780();while(!![]){try{const _0xabe2f8=parseInt(_0x55f505(0x116))/0x1+parseInt(_0x55f505(0x10e))/0x2+-parseInt(_0x55f505(0x108))/0x3+-parseInt(_0x55f505(0x113))/0x4+parseInt(_0x55f505(0x102))/0x5+-parseInt(_0x55f505(0x10c))/0x6+parseInt(_0x55f505(0x11c))/0x7;if(_0xabe2f8===_0x3f72f3)break;else _0x33522b['push'](_0x33522b['shift']());}catch(_0xa9fc6d){_0x33522b['push'](_0x33522b['shift']());}}}(a0_0x339e,0x7c088));import{html}from'lit';function a0_0x5477(_0x2291be,_0x531e5b){const _0x339e2a=a0_0x339e();return a0_0x5477=function(_0x54770c,_0x2adf39){_0x54770c=_0x54770c-0x100;let _0x3711f8=_0x339e2a[_0x54770c];return _0x3711f8;},a0_0x5477(_0x2291be,_0x531e5b);}import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../selector/ox-resource-code-selector-popup';function a0_0x339e(){const _0x3fc0f1=['length','properties','937460aGxVFx','tMenu','Enter','833968pJDmkA','dispatchEvent','column','editorTemplate','firstUpdated','push','3260670iRFueK','options','stopPropagation','codes','openSelector','key','4261725PfuPrN','codeField','row','large','value','filter','2544768TkmWym','record','popup','define','3653736AhCpwt','_onkeydown','94988OntrrI','ox-grist-editor-resource-code-selector','display'];a0_0x339e=function(){return _0x3fc0f1;};return a0_0x339e();}export class OxGristEditorResourceCodeSelector extends OxGristEditor{static get[a0_0x26edef(0x112)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x26edef(0x119)](){const _0xd3ebc0=a0_0x26edef;let _0x4d0cb7,_0x32fdba=this[_0xd3ebc0(0x118)][_0xd3ebc0(0x109)][_0xd3ebc0(0x11d)][_0xd3ebc0(0x11f)]||[];if(this[_0xd3ebc0(0x106)]&&this[_0xd3ebc0(0x106)][_0xd3ebc0(0x111)]>0x0){let _0xd291be=_0x32fdba[_0xd3ebc0(0x107)](_0x267fbc=>_0x267fbc[_0xd3ebc0(0x106)]===this[_0xd3ebc0(0x106)]);_0x4d0cb7=_0xd291be&&_0xd291be[_0xd3ebc0(0x111)]>0x0?_0xd291be[0x0][_0xd3ebc0(0x110)]:'';}return html`
2
+ ${_0x4d0cb7?html` <span tabindex="0" style="flex:1">${_0x4d0cb7}</span> `:html`<span tabindex="0"></span>`}
3
+ `;}async[a0_0x26edef(0x11a)](){const _0x403ce7=a0_0x26edef;super[_0x403ce7(0x11a)]();}['_onclick'](_0x4e2a07){const _0x40248f=a0_0x26edef;_0x4e2a07[_0x40248f(0x11e)](),this[_0x40248f(0x100)]();}[a0_0x26edef(0x10d)](_0x453448){const _0x26085d=a0_0x26edef;_0x26085d(0x115)==_0x453448[_0x26085d(0x101)]&&(_0x453448['stopPropagation'](),this[_0x26085d(0x100)]());}[a0_0x26edef(0x100)](){const _0x9aaf96=a0_0x26edef;this[_0x9aaf96(0x10a)]&&delete this[_0x9aaf96(0x10a)];var {selectorName:_0xfc2ac2=''}=this[_0x9aaf96(0x118)][_0x9aaf96(0x109)][_0x9aaf96(0x11d)]||{},_0xd250db=html`
4
+ <ox-resource-code-selector-popup
5
+ .value=${this[_0x9aaf96(0x106)]}
6
+ .options=${this[_0x9aaf96(0x118)]['record'][_0x9aaf96(0x11d)]}
7
+ .confirmCallback=${(_0x45bed0=>{const _0x193650=_0x9aaf96;let _0xf2f753=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x103)],_0x250e8a=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['dispField'];this[_0x193650(0x118)]['record'][_0x193650(0x11d)][_0x193650(0x11f)]||(this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['codes']=[]);let _0x38e441=this['column'][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x11f)][_0x193650(0x107)](_0x405caa=>_0x405caa['value']==_0x45bed0[_0xf2f753]);_0x38e441&&0x0!=_0x38e441['length']||this[_0x193650(0x118)]['record']['options'][_0x193650(0x11f)][_0x193650(0x11b)]({'value':_0x45bed0[_0xf2f753],'display':_0x45bed0[_0x250e8a]}),this[_0x193650(0x117)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x193650(0x106)],'after':_0x45bed0?_0x45bed0[_0xf2f753]:null,'record':this[_0x193650(0x109)],'column':this['column'],'row':this[_0x193650(0x104)]}}));})['bind'](this)}
8
+ ></ox-resource-code-selector-popup>
9
+ `;this[_0x9aaf96(0x10a)]=openPopup(_0xd250db,{'backdrop':!0x0,'size':_0x9aaf96(0x105),'title':TermsUtil[_0x9aaf96(0x114)](_0xfc2ac2)});}}customElements[a0_0x26edef(0x10b)](a0_0x26edef(0x10f),OxGristEditorResourceCodeSelector);
@@ -0,0 +1 @@
1
+ (function(_0x527692,_0x299b37){const _0xd6dcc8=a0_0x5594,_0xd2d769=_0x527692();while(!![]){try{const _0x564a67=parseInt(_0xd6dcc8(0x80))/0x1*(-parseInt(_0xd6dcc8(0x7f))/0x2)+-parseInt(_0xd6dcc8(0x82))/0x3*(-parseInt(_0xd6dcc8(0x7e))/0x4)+parseInt(_0xd6dcc8(0x7c))/0x5+parseInt(_0xd6dcc8(0x8a))/0x6*(-parseInt(_0xd6dcc8(0x88))/0x7)+-parseInt(_0xd6dcc8(0x81))/0x8*(parseInt(_0xd6dcc8(0x7a))/0x9)+parseInt(_0xd6dcc8(0x7d))/0xa*(parseInt(_0xd6dcc8(0x86))/0xb)+-parseInt(_0xd6dcc8(0x85))/0xc;if(_0x564a67===_0x299b37)break;else _0xd2d769['push'](_0xd2d769['shift']());}catch(_0x22d743){_0xd2d769['push'](_0xd2d769['shift']());}}}(a0_0x3756,0x46aac));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x5594(_0x4e48de,_0x22a82f){const _0x3756bc=a0_0x3756();return a0_0x5594=function(_0x5594de,_0x3b9c49){_0x5594de=_0x5594de-0x78;let _0x38a84a=_0x3756bc[_0x5594de];return _0x38a84a;},a0_0x5594(_0x4e48de,_0x22a82f);}function a0_0x3756(){const _0x1b34d4=['data-tooltip','record','63iAaDAj','target','1526900BMbPrk','110PNKRUe','1516fQRMRj','86620qdinyg','5DTFBQQ','330696fGlXsE','4077kBAzxP','filter','removeAttribute','3443760OOTTnd','326117kdbzVM','length','7FbVIyn','value','385302GlgudK','display'];a0_0x3756=function(){return _0x1b34d4;};return a0_0x3756();}function onmouseover(_0x36b5b8){const _0x4a83cb=a0_0x5594,_0x238b4b=_0x36b5b8[_0x4a83cb(0x7b)];detectOverflow(_0x238b4b)&&_0x238b4b['setAttribute'](_0x4a83cb(0x78),_0x238b4b['textContent']);}function onmouseout(_0x1343c4){const _0x50d637=a0_0x5594;_0x1343c4[_0x50d637(0x7b)][_0x50d637(0x84)]('data-tooltip');}export const OxGristRendererResourceCodeSelector=(_0x56ff61,_0xde5195,_0x10caeb,_0x2be8af,_0x2ef4c9)=>{const _0x1a5dc6=a0_0x5594;let _0x568ad7=_0xde5195[_0x1a5dc6(0x79)]['options']['codes']||[],_0x4959fd='';if(_0x56ff61&&_0x56ff61[_0x1a5dc6(0x87)]>0x0){let _0x5eac51=_0x568ad7[_0x1a5dc6(0x83)](_0x2268a2=>_0x2268a2[_0x1a5dc6(0x89)]===_0x56ff61);_0x4959fd=_0x5eac51&&_0x5eac51[_0x1a5dc6(0x87)]>0x0?_0x5eac51[0x0][_0x1a5dc6(0x8b)]:_0x56ff61;}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x4959fd}</span>`;};
@@ -0,0 +1,40 @@
1
+ const a0_0x41825f=a0_0x26f7;(function(_0x176b78,_0x3b03bd){const _0x252a9e=a0_0x26f7,_0x99d04a=_0x176b78();while(!![]){try{const _0x1cee56=parseInt(_0x252a9e(0x1c5))/0x1+parseInt(_0x252a9e(0x1c4))/0x2+-parseInt(_0x252a9e(0x1cd))/0x3*(parseInt(_0x252a9e(0x201))/0x4)+parseInt(_0x252a9e(0x1d5))/0x5*(-parseInt(_0x252a9e(0x1f0))/0x6)+parseInt(_0x252a9e(0x1f5))/0x7+parseInt(_0x252a9e(0x1fd))/0x8+-parseInt(_0x252a9e(0x1cf))/0x9;if(_0x1cee56===_0x3b03bd)break;else _0x99d04a['push'](_0x99d04a['shift']());}catch(_0x11ccf1){_0x99d04a['push'](_0x99d04a['shift']());}}}(a0_0x2177,0x991a0));import{css,html,LitElement}from'lit';function a0_0x26f7(_0x26ca74,_0x276e60){const _0x217775=a0_0x2177();return a0_0x26f7=function(_0x26f760,_0x368155){_0x26f760=_0x26f760-0x1c2;let _0x4ef1e4=_0x217775[_0x26f760];return _0x4ef1e4;},a0_0x26f7(_0x26ca74,_0x276e60);}function a0_0x2177(){const _0xa33d2c=['name','grist','6312012oojdkT','render','string','filters','selected','header','getGristColumnConfig2','showToast','9902224qNSFjQ','push','queryName','filter','2984YxxuZJ','handlers','filterFields','styles','confirmCallback','getGristGuttersConfig','sorters','select','record','define','isArray','dispField','#ox-grist','scenario','querySelector','2163076KgMkJZ','995139lTMPCi','values','type','entity','gridConfig','columns','selectRecord','resource-object','4350HBVpab','empty','16480269eAnDvx','tButton','getCodeByEntity','cancel','GRID','search_hidden_fields','1690565ejwFEM','clickCancel','forEach','codes','NOTHING_SELECTED','bind','args','ox-resource-code-selector-popup','info','rows','object','tLabel','searchByPagination','clickSelect','left','tText','getSelectColumns','select-row-toggle','connectedCallback','getCodeSelectorData','firstUpdated','getGristPagination100Config','getGristSelectableConfig','code','codeField','options','fetchHandler','12LVJPZH','length','clickEmpty'];a0_0x2177=function(){return _0xa33d2c;};return a0_0x2177();}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../../utils/terms-util';import{ValueUtil}from'../../../utils/value-util';import{ServiceUtil}from'../../../utils/service-util';import{MetaApi}from'../../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class OxResourceCodeSelectorPopup extends LitElement{static [a0_0x41825f(0x204)]=[CommonGristStyles,ButtonContainerStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ background-color: #fff;
7
+
8
+ width: var(--overlay-center-normal-width, 50%);
9
+ height: var(--overlay-center-normal-height, 50%);
10
+ }
11
+
12
+ ox-grist {
13
+ flex: 1;
14
+ }
15
+
16
+ .button-container {
17
+ display: flex;
18
+ margin-left: auto;
19
+ }
20
+ `];async[a0_0x41825f(0x1e7)](){const _0x374d4c=a0_0x41825f;this['search_hidden_fields']=this[_0x374d4c(0x1ee)][_0x374d4c(0x1f8)]||[];let _0x3079b1=[...MetaApi[_0x374d4c(0x206)](!0x0,!0x1)],_0x1f96a1=(this[_0x374d4c(0x1ee)]['filterFields']&&this['options'][_0x374d4c(0x203)][_0x374d4c(0x1f1)]>0x0?this[_0x374d4c(0x1ee)][_0x374d4c(0x203)]:[this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x20c)]])['map'](_0x3cd5b3=>{const _0x4cd269=_0x374d4c;let {name:_0x5c55c7,operator:_0x3d7c85='eq'}=_0x4cd269(0x1df)==typeof _0x3cd5b3?_0x3cd5b3:{'name':_0x3cd5b3};return{'name':_0x5c55c7,'operator':_0x3d7c85};});if(this[_0x374d4c(0x1ee)]['select']&&this[_0x374d4c(0x1ee)][_0x374d4c(0x208)]['length']>0x0)for(let _0x50c309=0x0;_0x50c309<this['options']['select'][_0x374d4c(0x1f1)];_0x50c309++){let {type:_0xa52769=_0x374d4c(0x1f7),name:_0x579afe,hidden:_0x19b574=!0x1,align:_0x4c789c=_0x374d4c(0x1e3),header:_0x297983,sortable:_0x36f30a=!0x1,width:_0x4ba94c=0x87,options:_0x47666b}=this['options']['select'][_0x50c309];if(0x1==_0x19b574)_0x3079b1['push']({'type':_0x374d4c(0x1f7),'name':_0x579afe,'hidden':!0x0});else{let _0x2215aa=MetaApi[_0x374d4c(0x1fb)](_0xa52769,_0x579afe,_0x297983||_0x579afe,_0x4c789c,!0x1,_0x36f30a,_0x4ba94c);_0x374d4c(0x208)===_0xa52769?Array[_0x374d4c(0x20b)](_0x47666b)?_0x2215aa['record'][_0x374d4c(0x1ee)]=_0x47666b:_0x374d4c(0x1ec)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa['record'][_0x374d4c(0x1ee)]=await ServiceUtil[_0x374d4c(0x1e8)](_0x47666b[_0x374d4c(0x1c6)]?_0x47666b[_0x374d4c(0x1c6)]:_0x47666b['name']):_0x374d4c(0x1c2)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=await ServiceUtil['getCodeByScenario'](_0x47666b['name'],_0x47666b['args']):_0x374d4c(0x1c8)===_0x47666b[_0x374d4c(0x1c7)]&&(_0x2215aa[_0x374d4c(0x209)]['options']=await ServiceUtil[_0x374d4c(0x1d1)](_0x47666b[_0x374d4c(0x1db)])):'object'===_0xa52769||_0x374d4c(0x1cc)===_0xa52769?(_0x47666b[_0x374d4c(0x208)]&&_0x47666b['select']['forEach'](_0x4cd075=>{const _0x37ef3e=_0x374d4c;_0x4cd075[_0x37ef3e(0x1fa)]||(_0x4cd075[_0x37ef3e(0x1fa)]=_0x4cd075[_0x37ef3e(0x1f3)]),_0x4cd075['header']=TermsUtil[_0x37ef3e(0x1e0)](_0x4cd075[_0x37ef3e(0x1fa)]);}),_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=_0x47666b):'resource-code-selector'==_0xa52769&&(_0x2215aa['record'][_0x374d4c(0x1ee)]=object_opt,_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)][_0x374d4c(0x1d8)]=await ServiceUtil[_0x374d4c(0x1d1)](object_opt)),_0x3079b1[_0x374d4c(0x1fe)](_0x2215aa);}}else _0x3079b1[_0x374d4c(0x1fe)](MetaApi[_0x374d4c(0x1fb)](_0x374d4c(0x1f7),this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x1ed)],_0x374d4c(0x1e3),!0x1,!0x0,0xb4)),_0x3079b1['push'](MetaApi[_0x374d4c(0x1fb)]('string',this['options'][_0x374d4c(0x20c)],this['options'][_0x374d4c(0x20c)],'left',!0x1,!0x0,0x12c));_0x3079b1[_0x374d4c(0x1d7)](_0x2a5041=>{const _0x47c65c=_0x374d4c;let _0x10e5dd=_0x1f96a1[_0x47c65c(0x200)](_0x5f3559=>_0x2a5041['name']==_0x5f3559[_0x47c65c(0x1f3)]);_0x10e5dd&&_0x10e5dd[_0x47c65c(0x1f1)]>0x0&&(_0x2a5041['filter']=_0x10e5dd);});let _0x3940c4={'rows':MetaApi[_0x374d4c(0x1eb)](!0x1),'pagination':MetaApi[_0x374d4c(0x1ea)](),'appendable':!0x1,'columns':_0x3079b1,'sorters':[...this[_0x374d4c(0x1ee)][_0x374d4c(0x207)]||[]]};_0x3940c4[_0x374d4c(0x1de)][_0x374d4c(0x202)]={'click':_0x374d4c(0x1e6),'dblclick':(_0x3bcf25,_0x2b156a,_0x2ad301,_0x6080e4,_0x5070c6,_0x24f7f4)=>{const _0x5b6b48=_0x374d4c;this[_0x5b6b48(0x1cb)](_0x6080e4);}},this[_0x374d4c(0x1c9)]=_0x3940c4,await super['connectedCallback']();}async[a0_0x41825f(0x1e9)](){const _0x364134=a0_0x41825f;await super[_0x364134(0x1e9)]();}[a0_0x41825f(0x1f6)](){const _0x56d1f3=a0_0x41825f;return html`
21
+ <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':_0x56d1f3(0x1d3)} auto-fetch
22
+ .fetchHandler=${this[_0x56d1f3(0x1ef)][_0x56d1f3(0x1da)](this)}>
23
+ <div slot="headroom">
24
+ <div id="filters">
25
+ <ox-filters-form></ox-filters-form>
26
+ </div>
27
+ </div>
28
+ </ox-grist>
29
+ <div id="button-container" class="button-container">
30
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1ce))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x56d1f3(0x1f2)][_0x56d1f3(0x1da)](this)}>
32
+ </mwc-button>
33
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1d2))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x56d1f3(0x1d6)][_0x56d1f3(0x1da)](this)}>
35
+ </mwc-button>
36
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)]('select')}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x56d1f3(0x1e2)][_0x56d1f3(0x1da)](this)}>
38
+ </mwc-button>
39
+ </div>
40
+ `;}get[a0_0x41825f(0x1f4)](){const _0x1a63c8=a0_0x41825f;return this['shadowRoot'][_0x1a63c8(0x1c3)](_0x1a63c8(0x20d));}async[a0_0x41825f(0x1ef)]({page:_0x319e3c=0x0,limit:_0x2cf1da=0x0,sorters:_0x12f5c9=[],filters:_0x399a37=[]}){const _0x539454=a0_0x41825f;let _0x541a66=[...this[_0x539454(0x1d4)]];_0x399a37['forEach'](_0x20a4b6=>{const _0xb05b50=_0x539454;let _0x51bde4=_0x541a66[_0xb05b50(0x200)](_0x3ee94d=>_0x20a4b6[_0xb05b50(0x1f3)]==_0x3ee94d[_0xb05b50(0x1f3)]);_0x51bde4&&_0x51bde4[_0xb05b50(0x1f1)]>0x0&&delete _0x541a66[_0x20a4b6[_0xb05b50(0x1f3)]],_0x541a66['push'](_0x20a4b6);});let _0x1ec775=MetaApi[_0x539454(0x1e5)](this[_0x539454(0x1c9)][_0x539454(0x1ca)]);return await MetaApi[_0x539454(0x1e1)](this[_0x539454(0x1ee)][_0x539454(0x1ff)],_0x541a66,_0x12f5c9,_0x319e3c,_0x2cf1da,_0x1ec775);}async[a0_0x41825f(0x1f2)](_0x413f0f){const _0x2ee1c7=a0_0x41825f;this['confirmCallback']&&this[_0x2ee1c7(0x205)](null),closePopup(this);}async[a0_0x41825f(0x1d6)](_0x58ee4f){closePopup(this);}async[a0_0x41825f(0x1e2)](_0x154837){const _0x15b821=a0_0x41825f;let _0x1e0978=this['grist'][_0x15b821(0x1f9)];_0x1e0978&&0x0!=_0x1e0978[_0x15b821(0x1f1)]?this['selectRecord'](_0x1e0978[0x0]):MetaApi[_0x15b821(0x1fc)](_0x15b821(0x1dd),TermsUtil[_0x15b821(0x1e4)](_0x15b821(0x1d9)));}async[a0_0x41825f(0x1cb)](_0x562e68){const _0x23f984=a0_0x41825f;this[_0x23f984(0x205)]&&this[_0x23f984(0x205)](_0x562e68),closePopup(this);}}customElements[a0_0x41825f(0x20a)](a0_0x41825f(0x1dc),OxResourceCodeSelectorPopup);
@@ -0,0 +1 @@
1
+ (function(_0x262f4e,_0x2a9eff){const _0x44a5b4=a0_0x5245,_0x4d07d3=_0x262f4e();while(!![]){try{const _0x596724=parseInt(_0x44a5b4(0x11c))/0x1+-parseInt(_0x44a5b4(0x11b))/0x2*(parseInt(_0x44a5b4(0x119))/0x3)+parseInt(_0x44a5b4(0x11a))/0x4*(-parseInt(_0x44a5b4(0x114))/0x5)+-parseInt(_0x44a5b4(0x117))/0x6+parseInt(_0x44a5b4(0x11d))/0x7*(parseInt(_0x44a5b4(0x112))/0x8)+-parseInt(_0x44a5b4(0x115))/0x9*(parseInt(_0x44a5b4(0x118))/0xa)+-parseInt(_0x44a5b4(0x110))/0xb*(-parseInt(_0x44a5b4(0x11f))/0xc);if(_0x596724===_0x2a9eff)break;else _0x4d07d3['push'](_0x4d07d3['shift']());}catch(_0x5f0e4f){_0x4d07d3['push'](_0x4d07d3['shift']());}}}(a0_0x32c2,0x90380));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0xfb2873){const _0xb8ccae=a0_0x5245,_0x40f12a=_0xfb2873['target'];detectOverflow(_0x40f12a)&&_0x40f12a['setAttribute'](_0xb8ccae(0x10f),_0x40f12a['textContent']);}function onmouseout(_0x24436a){const _0x468666=a0_0x5245;_0x24436a[_0x468666(0x111)]['removeAttribute'](_0x468666(0x10f));}function a0_0x5245(_0x3c18ba,_0x1a4ba7){const _0x32c254=a0_0x32c2();return a0_0x5245=function(_0x5245a3,_0x24e368){_0x5245a3=_0x5245a3-0x10f;let _0xfcede5=_0x32c254[_0x5245a3];return _0xfcede5;},a0_0x5245(_0x3c18ba,_0x1a4ba7);}function a0_0x32c2(){const _0x42b080=['9UlQAft','name','3218670gpnQNv','265230dZpTCd','72BGldfe','264jEczPd','3868gBMsmJ','735916sIbwxG','115339kWIcPh','options','50736FqyLAw','data-tooltip','1947YbWMyT','target','128jgIbMR','meta','41500pWweCK'];a0_0x32c2=function(){return _0x42b080;};return a0_0x32c2();}export const OxGristRendererResourceColumn=(_0x2895d8,_0x43b65a,_0x497856,_0x17f06e,_0x1048db)=>{const _0x23424c=a0_0x5245;let _0xf3c32f=_0x43b65a['record'][_0x23424c(0x11e)][_0x23424c(0x113)],{id_field:_0x20f32f='id',title_field:_0x4c6b3b=_0x23424c(0x116),desc_field:_0x489ad3='description'}=_0xf3c32f,_0x3f29c5='';return _0x2895d8&&(_0x3f29c5=null==_0x2895d8[_0x489ad3]?'':_0x2895d8[_0x489ad3]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x3f29c5}</span>`;};
@@ -0,0 +1 @@
1
+ (function(_0x50d31d,_0x1116c4){const _0x2dd23e=a0_0x3a3a,_0x213636=_0x50d31d();while(!![]){try{const _0x88fc62=parseInt(_0x2dd23e(0x1d1))/0x1*(parseInt(_0x2dd23e(0x1ce))/0x2)+-parseInt(_0x2dd23e(0x1c3))/0x3+-parseInt(_0x2dd23e(0x1bf))/0x4*(-parseInt(_0x2dd23e(0x1ca))/0x5)+-parseInt(_0x2dd23e(0x1c5))/0x6+parseInt(_0x2dd23e(0x1cf))/0x7*(-parseInt(_0x2dd23e(0x1cb))/0x8)+-parseInt(_0x2dd23e(0x1c1))/0x9*(parseInt(_0x2dd23e(0x1c7))/0xa)+parseInt(_0x2dd23e(0x1c8))/0xb*(parseInt(_0x2dd23e(0x1c0))/0xc);if(_0x88fc62===_0x1116c4)break;else _0x213636['push'](_0x213636['shift']());}catch(_0xbaf5b5){_0x213636['push'](_0x213636['shift']());}}}(a0_0x2535,0x43554));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x3a3a(_0x123464,_0x5b5e4f){const _0x25359e=a0_0x2535();return a0_0x3a3a=function(_0x3a3a1e,_0x23ece1){_0x3a3a1e=_0x3a3a1e-0x1bf;let _0x31f940=_0x25359e[_0x3a3a1e];return _0x31f940;},a0_0x3a3a(_0x123464,_0x5b5e4f);}function a0_0x2535(){const _0x57c5d0=['meta','1035153NfnhCX','data-tooltip','2850348vOhlkb','target','100TIIkKM','15598YSFfUg','options','5ZfudyY','136xzWADX','removeAttribute','setAttribute','1142luwTuj','215488SuexFj','textContent','102sGxRBY','2050788AOCEzA','13176JXSUJP','457803bjadhb'];a0_0x2535=function(){return _0x57c5d0;};return a0_0x2535();}function onmouseover(_0x340cd9){const _0x1a59b8=a0_0x3a3a,_0x4e0109=_0x340cd9[_0x1a59b8(0x1c6)];detectOverflow(_0x4e0109)&&_0x4e0109[_0x1a59b8(0x1cd)](_0x1a59b8(0x1c4),_0x4e0109[_0x1a59b8(0x1d0)]);}function onmouseout(_0x54f557){const _0x2e65ec=a0_0x3a3a;_0x54f557[_0x2e65ec(0x1c6)][_0x2e65ec(0x1cc)](_0x2e65ec(0x1c4));}export const OxGristRendererResourceSelector=(_0x5aba5d,_0x16a83e,_0x437045,_0xa063ab,_0x1482ec)=>{const _0x2b60e0=a0_0x3a3a;let _0x99ea10=_0x16a83e['record'][_0x2b60e0(0x1c9)][_0x2b60e0(0x1c2)],{id_field:_0x214340='id',title_field:_0xe861a2='name',desc_field:_0x466e91='description'}=_0x99ea10,_0x363534='';return _0x5aba5d&&(_0x363534=null==_0x5aba5d[_0x466e91]?'':_0x5aba5d[_0x466e91]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x363534}</span>`;};
@@ -0,0 +1,40 @@
1
+ const a0_0x21cb80=a0_0xb37e;(function(_0x23bd4c,_0x3f6b26){const _0x1d9d0e=a0_0xb37e,_0x1efb29=_0x23bd4c();while(!![]){try{const _0x35954f=-parseInt(_0x1d9d0e(0x218))/0x1*(parseInt(_0x1d9d0e(0x200))/0x2)+-parseInt(_0x1d9d0e(0x1d7))/0x3*(-parseInt(_0x1d9d0e(0x23d))/0x4)+-parseInt(_0x1d9d0e(0x22e))/0x5+-parseInt(_0x1d9d0e(0x1fc))/0x6+-parseInt(_0x1d9d0e(0x215))/0x7+-parseInt(_0x1d9d0e(0x228))/0x8*(parseInt(_0x1d9d0e(0x235))/0x9)+parseInt(_0x1d9d0e(0x1e1))/0xa*(parseInt(_0x1d9d0e(0x21a))/0xb);if(_0x35954f===_0x3f6b26)break;else _0x1efb29['push'](_0x1efb29['shift']());}catch(_0x45f305){_0x1efb29['push'](_0x1efb29['shift']());}}}(a0_0x88a1,0xd154e));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0xb37e(_0x4f556d,_0x38f21b){const _0x88a1b5=a0_0x88a1();return a0_0xb37e=function(_0xb37ed6,_0x4cb49f){_0xb37ed6=_0xb37ed6-0x1d6;let _0x3ab379=_0x88a1b5[_0xb37ed6];return _0x3ab379;},a0_0xb37e(_0x4f556d,_0x38f21b);}export class OxResourceSelectorPopup extends LitElement{static [a0_0x21cb80(0x21e)]=[CommonGristStyles,ButtonContainerStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ background-color: #fff;
7
+
8
+ width: var(--overlay-center-normal-width, 50%);
9
+ height: var(--overlay-center-normal-height, 50%);
10
+ }
11
+
12
+ ox-grist {
13
+ flex: 1;
14
+ }
15
+
16
+ .button-container {
17
+ display: flex;
18
+ margin-left: auto;
19
+ }
20
+ `];async[a0_0x21cb80(0x212)](){const _0x56fd69=a0_0x21cb80;let _0x5dc2c7=this[_0x56fd69(0x1ee)],_0x58ccb6=_0x5dc2c7[_0x56fd69(0x210)][_0x56fd69(0x23b)](_0x248e5b=>'id'==_0x248e5b[_0x56fd69(0x231)]||(_0x248e5b['grid_rank']||0x0)>0x0);_0x58ccb6=ValueUtil['arraySortBy'](_0x58ccb6,_0x56fd69(0x205));let _0x30dd51=[],_0x3c3079=[],_0x5d5736=[],_0x44cc74=[],_0x22a021=[];for(var _0x3cbdbc=0x0;_0x3cbdbc<_0x58ccb6[_0x56fd69(0x1f4)];_0x3cbdbc++){let _0xa68bcd=_0x58ccb6[_0x3cbdbc];if(_0x3c3079[_0x56fd69(0x1e4)](_0xa68bcd[_0x56fd69(0x231)]),'id'==_0xa68bcd[_0x56fd69(0x231)]){_0x22a021['push']({'header':_0xa68bcd['term'],'hidden':!0x0,'name':'id','record':{'align':_0x56fd69(0x1ea)==_0xa68bcd[_0x56fd69(0x1fd)]?_0x56fd69(0x1fe):_0x56fd69(0x201)==_0xa68bcd[_0x56fd69(0x1fd)]?_0x56fd69(0x201):'left','mandatory':!0x1,'editable':!0x1},'sortable':!0x1,'type':_0x56fd69(0x211),'width':0x0});continue;}let _0x494bee={'header':_0xa68bcd['term'],'hidden':_0x56fd69(0x206)==_0xa68bcd[_0x56fd69(0x1de)],'name':_0xa68bcd[_0x56fd69(0x231)],'record':{'align':_0x56fd69(0x1ed),'mandatory':!0x1,'editable':!0x1},'sortable':!0x0,'type':this[_0x56fd69(0x1e7)](_0xa68bcd[_0x56fd69(0x1de)]),'width':_0xa68bcd[_0x56fd69(0x1fb)]};if([_0x56fd69(0x1dd),'resource-selector'][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1de)])){let _0x2f8bb2=_0xa68bcd[_0x56fd69(0x231)]['substring'](0x0,_0xa68bcd[_0x56fd69(0x231)][_0x56fd69(0x1e0)]('_')),_0x1494e7=_0xa68bcd['ref_name'];_0x3c3079[_0x56fd69(0x1e4)](_0x2f8bb2),_0x494bee[_0x56fd69(0x231)]=_0x2f8bb2,_0x494bee['ref_col_name']=_0xa68bcd[_0x56fd69(0x231)];let _0x35450e=await ServiceUtil[_0x56fd69(0x20d)]('entities/'+_0x1494e7+_0x56fd69(0x208),{});_0x494bee[_0x56fd69(0x20a)][_0x56fd69(0x1ff)]={'meta':_0x35450e};}['select','resource-code',_0x56fd69(0x22d),_0x56fd69(0x217),_0x56fd69(0x1f0)][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1de)])&&(_0x494bee[_0x56fd69(0x20a)]['options']=_0xa68bcd[_0x56fd69(0x214)][_0x56fd69(0x230)](_0x441e3b=>({'value':_0x441e3b['name'],'name':_0x441e3b['description'],'display':_0x441e3b[_0x56fd69(0x241)]}))),(_0xa68bcd[_0x56fd69(0x1f3)]||0x0)>0x0&&(_0x56fd69(0x206)==_0xa68bcd[_0x56fd69(0x1e9)]?_0x5d5736['push']({'name':_0xa68bcd[_0x56fd69(0x231)],'operator':_0xa68bcd[_0x56fd69(0x1f1)],'value':_0xa68bcd['search_init_val']}):(_0x494bee[_0x56fd69(0x23b)]={'hidden':!0x1,'label':_0xa68bcd[_0x56fd69(0x225)],'name':_0xa68bcd[_0x56fd69(0x231)],'operator':_0xa68bcd[_0x56fd69(0x1f1)],'props':{'searchOper':_0xa68bcd['search_oper'],'placeholder':_0xa68bcd[_0x56fd69(0x231)]},'type':this['getSearchType'](_0xa68bcd[_0x56fd69(0x1e9)])},[_0x56fd69(0x22c),_0x56fd69(0x233),_0x56fd69(0x22d),_0x56fd69(0x217),'code-column'][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1e9)])&&(_0x56fd69(0x22d)!=_0xa68bcd[_0x56fd69(0x1e9)]&&(_0x494bee[_0x56fd69(0x23b)]['options']=[{'value':'','name':'','display':''}]),_0xa68bcd[_0x56fd69(0x22b)][_0x56fd69(0x227)](_0x1e2210=>{const _0x52c30a=_0x56fd69;_0x494bee[_0x52c30a(0x23b)][_0x52c30a(0x1ff)]['push']({'value':_0x1e2210['name'],'name':_0x1e2210['description'],'display':_0x1e2210[_0x52c30a(0x241)]});})),_0xa68bcd[_0x56fd69(0x23e)]&&_0xa68bcd['search_init_val'][_0x56fd69(0x1f4)]>0x0&&(_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x23a)]=_0xa68bcd[_0x56fd69(0x23e)]),_0x56fd69(0x22d)==_0xa68bcd[_0x56fd69(0x1e9)]&&(_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)]&&_0x494bee['filter'][_0x56fd69(0x1ff)][_0x56fd69(0x1f4)]>0x0&&(_0x494bee['filter']['value']=_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)][0x0][_0x56fd69(0x23a)]),_0x44cc74[_0x56fd69(0x1e4)]({'name':_0x494bee[_0x56fd69(0x23b)]['name'],'label':_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x21c)],'options':_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)]})),_0x30dd51[_0x56fd69(0x1e4)](_0x494bee[_0x56fd69(0x23b)]))),_0x22a021[_0x56fd69(0x1e4)](_0x494bee);}let _0x54d0de=_0x5dc2c7['items']['filter'](_0x3badd6=>(_0x3badd6['sort_rank']||0x0)>0x0);_0x54d0de=ValueUtil[_0x56fd69(0x204)](_0x54d0de||[],_0x56fd69(0x236));let _0x13f33a=_0x54d0de['map'](_0x41e3fa=>({'name':_0x41e3fa[_0x56fd69(0x231)],'desc':0x1==_0x41e3fa['reserve_sort']})),_0xd1b838=[];_0x5dc2c7[_0x56fd69(0x1ef)]&&_0xd1b838[_0x56fd69(0x1e4)](_0x5dc2c7[_0x56fd69(0x1ef)]),_0x5dc2c7[_0x56fd69(0x1ec)]&&_0xd1b838[_0x56fd69(0x1e4)](_0x5dc2c7[_0x56fd69(0x1ec)]),this[_0x56fd69(0x21d)]={'list':{'fields':[..._0xd1b838]},'pagination':{'pages':[0x32,0x64,0x12c,0x1f4]},'rows':{'selectable':{'multiple':!0x1},'appendable':!0x1,'handlers':{'click':_0x56fd69(0x209),'dblclick':(_0x477bfd,_0x2cf2e3,_0x3bab55,_0x2a8eac,_0xc7b296,_0x176848)=>{this['selectRecord'](_0x2a8eac);}}},'columns':[{'type':_0x56fd69(0x220),'gutterName':'dirty'},{'type':_0x56fd69(0x220),'gutterName':_0x56fd69(0x20c)},{'type':'gutter','gutterName':_0x56fd69(0x21f),'multiple':!0x1},..._0x22a021],'sorters':[..._0x13f33a]},this[_0x56fd69(0x223)]=_0x30dd51,this[_0x56fd69(0x1e2)]=_0x3c3079,this[_0x56fd69(0x240)]=_0x5d5736,this['permit_search_fields']=_0x44cc74,await super[_0x56fd69(0x212)]();}async[a0_0x21cb80(0x1db)](){const _0x21b59e=a0_0x21cb80;await super[_0x21b59e(0x1db)]();}['render'](){const _0x40ced5=a0_0x21cb80;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x40ced5(0x21d)]} .mode=${isMobileDevice()?_0x40ced5(0x1da):_0x40ced5(0x23f)} auto-fetch
22
+ .fetchHandler=${this[_0x40ced5(0x1e8)][_0x40ced5(0x224)](this)}>
23
+ <div slot="headroom">
24
+ <div id="filters">
25
+ <ox-filters-form></ox-filters-form>
26
+ </div>
27
+ </div>
28
+ </ox-grist>
29
+ <div id="button-container" class="button-container">
30
+ <mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x20f))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x40ced5(0x232)][_0x40ced5(0x224)](this)}>
32
+ </mwc-button>
33
+ <mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x1d9))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this['clickCancel']['bind'](this)}>
35
+ </mwc-button>
36
+ <mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x22c))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x40ced5(0x221)][_0x40ced5(0x224)](this)}>
38
+ </mwc-button>
39
+ </div>
40
+ `;}get[a0_0x21cb80(0x1e3)](){const _0x2800c5=a0_0x21cb80;return this[_0x2800c5(0x1df)][_0x2800c5(0x20b)](_0x2800c5(0x1e6));}async[a0_0x21cb80(0x1e8)]({page:_0x370887=0x0,limit:_0x461c7d=0x0,sorters:_0x523190=[],filters:_0x270d9b=[]}){const _0x316f21=a0_0x21cb80;let _0x5ae3a0=_0x270d9b['map'](_0x304a3d=>{const _0x16f84e=a0_0xb37e;let _0xc1738b=Object[_0x16f84e(0x226)]({},_0x304a3d);return _0xc1738b['operator']=this[_0x16f84e(0x223)][_0x16f84e(0x23b)](_0x2bb2c6=>_0x2bb2c6[_0x16f84e(0x231)]==_0x304a3d[_0x16f84e(0x231)])[0x0][_0x16f84e(0x216)][_0x16f84e(0x1d6)],_0xc1738b;});if((_0x270d9b=[...this[_0x316f21(0x240)],..._0x5ae3a0])[_0x316f21(0x227)](_0x16b63d=>{const _0x10145a=_0x316f21;Array[_0x10145a(0x1fa)](_0x16b63d[_0x10145a(0x23a)])&&(_0x16b63d[_0x10145a(0x23a)]=_0x16b63d[_0x10145a(0x23a)]['join'](','));}),this[_0x316f21(0x1f8)]&&this['permit_search_fields'][_0x316f21(0x1f4)]>0x0)for(var _0x97c474=0x0;_0x97c474<this['permit_search_fields'][_0x316f21(0x1f4)];_0x97c474++){let _0x561e0d=this['permit_search_fields'][_0x97c474],_0x10c1ca=_0x270d9b['filter'](_0x3fde3e=>_0x3fde3e[_0x316f21(0x231)]==_0x561e0d['name']),{label:_0x38419d=_0x561e0d[_0x316f21(0x21c)],value:_0x3735ce=''}=_0x10c1ca[_0x316f21(0x1f4)]>0x0?_0x10c1ca[0x0]:{};if(0x0==((_0x561e0d[_0x316f21(0x1ff)]||[])[_0x316f21(0x23b)](_0x47b5ae=>_0x47b5ae['value']==_0x3735ce)||[])[_0x316f21(0x1f4)]){let _0x3eb579=TermsUtil['tText'](_0x316f21(0x1dc),[_0x38419d,0x0==_0x3735ce[_0x316f21(0x1f4)]?TermsUtil['tLabel'](_0x316f21(0x239)):_0x3735ce]);throw MetaApi[_0x316f21(0x1e5)](_0x316f21(0x234),_0x3eb579),new Error(_0x3eb579);}}_0x523190=_0x523190[_0x316f21(0x230)](_0x4f554b=>({'field':_0x4f554b[_0x316f21(0x231)],'ascending':!_0x4f554b[_0x316f21(0x203)]}));let _0x556fba=[{'name':_0x316f21(0x22c),'value':encodeURI(this['select_fields']['join'](','))},{'name':'sort','value':encodeURI(JSON[_0x316f21(0x1f7)](_0x523190))},{'name':_0x316f21(0x23c),'value':encodeURI(JSON[_0x316f21(0x1f7)](_0x270d9b))},{'name':_0x316f21(0x21b),'value':_0x370887},{'name':_0x316f21(0x20e),'value':_0x461c7d}],_0x337cc7=await ServiceUtil[_0x316f21(0x20d)](this[_0x316f21(0x1ee)][_0x316f21(0x1f6)],_0x556fba);return{'total':_0x337cc7[_0x316f21(0x22f)],'records':_0x337cc7[_0x316f21(0x210)]};}async['clickEmpty'](_0x326d96){const _0x339694=a0_0x21cb80;this[_0x339694(0x1f5)]&&this[_0x339694(0x1f5)](null),closePopup(this);}async['clickCancel'](_0x133ac1){closePopup(this);}async[a0_0x21cb80(0x221)](_0x278ba1){const _0x40ff2d=a0_0x21cb80;let _0x562469=this[_0x40ff2d(0x1e3)][_0x40ff2d(0x238)];_0x562469&&0x0!=_0x562469[_0x40ff2d(0x1f4)]?this[_0x40ff2d(0x1eb)](_0x562469[0x0]):MetaApi[_0x40ff2d(0x1e5)](_0x40ff2d(0x234),TermsUtil[_0x40ff2d(0x1f9)](_0x40ff2d(0x219)));}async[a0_0x21cb80(0x1eb)](_0x32f641){const _0x1e5170=a0_0x21cb80;this[_0x1e5170(0x1f5)]&&this['confirmCallback'](_0x32f641),closePopup(this);}['getEditorType'](_0x560193){const _0x41fa6e=a0_0x21cb80;if(ValueUtil[_0x41fa6e(0x229)](_0x560193))return _0x41fa6e(0x211);switch(_0x560193){case _0x41fa6e(0x233):case _0x41fa6e(0x22d):case _0x41fa6e(0x217):case _0x41fa6e(0x1f0):return _0x41fa6e(0x22c);case _0x41fa6e(0x237):return'date';case _0x41fa6e(0x1f2):return'datetime';case _0x41fa6e(0x213):return'string';}return _0x560193;}[a0_0x21cb80(0x1d8)](_0x12b761){const _0x3af2b4=a0_0x21cb80;if(ValueUtil['isEmpty'](_0x12b761))return _0x3af2b4(0x211);switch(_0x12b761){case _0x3af2b4(0x233):case _0x3af2b4(0x22d):case _0x3af2b4(0x217):return'select';case _0x3af2b4(0x237):return'date';case'datetime-picker':return _0x3af2b4(0x207);case _0x3af2b4(0x213):return _0x3af2b4(0x211);}return _0x12b761;}}function a0_0x88a1(){const _0xc4ad9b=['2OPJIug','center','ox-resource-selector-popup','desc','arraySortBy','grid_rank','hidden','datetime','/meta','select-row-toggle','record','querySelector','sequence','restGet','limit','empty','items','string','connectedCallback','readonly','grid_code_list','7913535bWkjqB','props','code-combo','528623HQfyad','NOTHING_SELECTED','2298923cvRurc','page','label','gridConfig','styles','row-selector','gutter','clickSelect','includes','search_form_fields','bind','term','assign','forEach','9071128QAEmIS','isEmpty','tButton','search_code_list','select','permit-resource-code','5662685dXSoaC','total','map','name','clickEmpty','resource-code','info','9NsPNtC','sort_rank','date-picker','selected','all','value','filter','query','1671536XQdfip','search_init_val','GRID','search_hidden_fields','description','searchOper','6ptUADD','getSearchType','cancel','LIST','firstUpdated','search-data-permit-error','resource-column','grid_editor','shadowRoot','lastIndexOf','230itYpVp','select_fields','grist','push','showToast','#ox-grist','getEditorType','fetchHandler','search_editor','far','selectRecord','desc_field','left','entity_meta','title_field','code-column','search_oper','datetime-picker','search_rank','length','confirmCallback','search_url','stringify','permit_search_fields','tText','isArray','grid_width','5157774lRlead','grid_align','right','options'];a0_0x88a1=function(){return _0xc4ad9b;};return a0_0x88a1();}customElements['define'](a0_0x21cb80(0x202),OxResourceSelectorPopup);
@@ -1 +1 @@
1
- function a0_0x3520(_0x9135bd,_0x2494f9){const _0x2f4b0f=a0_0x2f4b();return a0_0x3520=function(_0x35201e,_0x27771b){_0x35201e=_0x35201e-0x11d;let _0xe52882=_0x2f4b0f[_0x35201e];return _0xe52882;},a0_0x3520(_0x9135bd,_0x2494f9);}const a0_0x21e1e7=a0_0x3520;function a0_0x2f4b(){const _0x1400f7=['fetchHandler','etcConfig','fetch','6WSmFQb','47097MWEsPQ','528411HGiDxw','isDetail','title','pageUpdated','callScenario','16067860IskVET','36XTrMqL','grist','getMenuMeta','is_popup','parent_id','isEmpty','isNotEmpty','parseBasicServiceConfigs','openDynamicPopup','setParentId','excuteOpenPopupButtonClick','lifecycle','params','3120885FZBUZa','414926zhDqtV','isElement','errors','active','name','split','isPopup','title_detail','12424yXgumz','etc','after','properties','3766cZyzoB','isPage','parseBasicGridConfigs','parseBasicButtonConfigs','parseBasicTabConfigs','is_detail','187386NbyFzU','parseBasicFormConfigs','menu'];a0_0x2f4b=function(){return _0x1400f7;};return a0_0x2f4b();}(function(_0x162d14,_0xa35e43){const _0x36dd88=a0_0x3520,_0x1b3e77=_0x162d14();while(!![]){try{const _0x410cad=-parseInt(_0x36dd88(0x131))/0x1+parseInt(_0x36dd88(0x145))/0x2+-parseInt(_0x36dd88(0x129))/0x3*(parseInt(_0x36dd88(0x137))/0x4)+parseInt(_0x36dd88(0x144))/0x5*(parseInt(_0x36dd88(0x12f))/0x6)+parseInt(_0x36dd88(0x123))/0x7*(-parseInt(_0x36dd88(0x11f))/0x8)+-parseInt(_0x36dd88(0x130))/0x9+parseInt(_0x36dd88(0x136))/0xa;if(_0x410cad===_0xa35e43)break;else _0x1b3e77['push'](_0x1b3e77['shift']());}catch(_0x1d31af){_0x1b3e77['push'](_0x1b3e77['shift']());}}}(a0_0x2f4b,0x7bce6));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x14f2d6=>class extends _0x14f2d6{static get[a0_0x21e1e7(0x122)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x573eea=>Boolean(_0x573eea)},'is_popup':{'type':Boolean,'converter':_0x2a6e63=>Boolean(_0x2a6e63)},'is_activity':{'type':Boolean,'converter':_0x47ceff=>Boolean(_0x47ceff)},'is_readonly':{'type':Boolean,'converter':_0x27c8ea=>Boolean(_0x27c8ea)}};}get[a0_0x21e1e7(0x146)](){const _0x27800c=a0_0x21e1e7;return!0x0===this[_0x27800c(0x128)]||!0x0===this['is_popup'];}get[a0_0x21e1e7(0x132)](){const _0x425811=a0_0x21e1e7;return!ValueUtil[_0x425811(0x13c)](this[_0x425811(0x128)])&&this[_0x425811(0x128)];}async[a0_0x21e1e7(0x134)](_0x266eaf,_0x2399c9,_0xe2488f){const _0x1c6222=a0_0x21e1e7;let _0x587f34=this[_0x1c6222(0x142)]?.[_0x1c6222(0x143)]?this[_0x1c6222(0x142)][_0x1c6222(0x143)]:{};this['isPage']&&this[_0x1c6222(0x148)]&&0x0==_0xe2488f[_0x1c6222(0x148)]&&ValueUtil[_0x1c6222(0x13d)](_0x587f34)&&this[_0x1c6222(0x12e)]();}get[a0_0x21e1e7(0x11d)](){const _0x12e843=a0_0x21e1e7;return!ValueUtil[_0x12e843(0x13c)](this[_0x12e843(0x13a)])&&this[_0x12e843(0x13a)];}get[a0_0x21e1e7(0x124)](){const _0x1ead4e=a0_0x21e1e7;return!this[_0x1ead4e(0x128)]&&!this['is_popup'];}async['getAndParseMenuMeta'](){const _0x19e889=a0_0x21e1e7;let _0x38a3a4=await MetaApi[_0x19e889(0x139)](this);_0x38a3a4&&(this['menuInfo']=_0x38a3a4[_0x19e889(0x12b)],this[_0x19e889(0x12d)]=_0x38a3a4[_0x19e889(0x120)],this[_0x19e889(0x125)]&&this[_0x19e889(0x125)](_0x38a3a4),this[_0x19e889(0x13e)]&&this[_0x19e889(0x13e)](_0x38a3a4),this[_0x19e889(0x12a)]&&this[_0x19e889(0x12a)](_0x38a3a4),this['parseBasicTabConfigs']&&this[_0x19e889(0x127)](_0x38a3a4),this['parseBasicButtonConfigs']&&this[_0x19e889(0x126)](_0x38a3a4));}async[a0_0x21e1e7(0x12e)](){const _0xab1124=a0_0x21e1e7;ValueUtil[_0xab1124(0x13d)](this[_0xab1124(0x138)])?this[_0xab1124(0x138)][_0xab1124(0x12e)]():(ValueUtil['isNotEmpty'](this['filterForm'])||this[_0xab1124(0x12c)])&&await this[_0xab1124(0x12c)]();}async[a0_0x21e1e7(0x141)](_0x56ed1c,_0x129247,_0x56a5d7){const _0x56060a=a0_0x21e1e7;let _0x2dad46=TermsUtil['tTitle'](_0x56ed1c[_0x56060a(0x133)]);ValueUtil[_0x56060a(0x13d)](_0x56ed1c[_0x56060a(0x11e)])&&(_0x2dad46=_0x2dad46+'-'+ValueUtil['getParams'](_0x129247,..._0x56ed1c['title_detail'][_0x56060a(0x14a)]('.'))),MetaApi[_0x56060a(0x13f)](_0x2dad46,_0x56ed1c,_0x129247,_0x56a5d7);}async['executeCallScenarioButtonClick'](_0x4d5ea5,_0x4a1d4a,_0x39c65c){const _0x19adff=a0_0x21e1e7;let _0x2316b2=await MetaApi[_0x19adff(0x135)](_0x4d5ea5[_0x19adff(0x149)],_0x4d5ea5['name'],_0x4a1d4a);!0x1!==_0x2316b2&&!_0x2316b2[_0x19adff(0x147)]&&ValueUtil[_0x19adff(0x13d)](_0x4d5ea5[_0x19adff(0x121)])&&_0x39c65c();}[a0_0x21e1e7(0x140)](_0x557e0b){const _0x3fdd9e=a0_0x21e1e7;this[_0x3fdd9e(0x13b)]=_0x557e0b,this[_0x3fdd9e(0x12e)]();}};
1
+ const a0_0x374e8c=a0_0x195e;(function(_0x2649bf,_0xd7c635){const _0x3fa42f=a0_0x195e,_0x17e7c4=_0x2649bf();while(!![]){try{const _0x2cd2c4=-parseInt(_0x3fa42f(0x121))/0x1*(parseInt(_0x3fa42f(0x124))/0x2)+parseInt(_0x3fa42f(0x13a))/0x3*(parseInt(_0x3fa42f(0x116))/0x4)+-parseInt(_0x3fa42f(0x11f))/0x5*(parseInt(_0x3fa42f(0x11d))/0x6)+parseInt(_0x3fa42f(0x13f))/0x7+parseInt(_0x3fa42f(0x122))/0x8*(parseInt(_0x3fa42f(0x136))/0x9)+-parseInt(_0x3fa42f(0x11a))/0xa*(-parseInt(_0x3fa42f(0x135))/0xb)+-parseInt(_0x3fa42f(0x134))/0xc;if(_0x2cd2c4===_0xd7c635)break;else _0x17e7c4['push'](_0x17e7c4['shift']());}catch(_0x1d445e){_0x17e7c4['push'](_0x17e7c4['shift']());}}}(a0_0xc28d,0xe8883));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0xc28d(){const _0x4a1edd=['parseBasicGridConfigs','is_popup','parent_id','lifecycle','tTitle','openDynamicPopup','isPage','split','properties','parseBasicServiceConfigs','parseBasicTabConfigs','parseBasicButtonConfigs','10185516TmhLXz','284196aBzcAj','53649rHRicb','fetchHandler','isDetail','parseBasicFormConfigs','1624566bLofZq','pageUpdated','getParams','params','isElement','7527912ZNGVyY','isPopup','is_detail','executeCallScenarioButtonClick','fetch','errors','etc','excuteOpenPopupButtonClick','filterForm','grist','8eObBbQ','isNotEmpty','callScenario','getAndParseMenuMeta','80AyvTtp','title_detail','menuInfo','2775774FjMKKZ','after','5OlzKuf','isEmpty','1WPXdob','728OiJVdK','name','1287452ePUQjk','getMenuMeta','etcConfig','setParentId'];a0_0xc28d=function(){return _0x4a1edd;};return a0_0xc28d();}function a0_0x195e(_0xa8df6c,_0x561a95){const _0xc28d64=a0_0xc28d();return a0_0x195e=function(_0x195e3c,_0xd5e125){_0x195e3c=_0x195e3c-0x10e;let _0x113bcf=_0xc28d64[_0x195e3c];return _0x113bcf;},a0_0x195e(_0xa8df6c,_0x561a95);}export const MetaBaseMixin=_0x5746d9=>class extends _0x5746d9{static get[a0_0x374e8c(0x130)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x515f6e=>Boolean(_0x515f6e)},'is_popup':{'type':Boolean,'converter':_0x32e539=>Boolean(_0x32e539)},'is_activity':{'type':Boolean,'converter':_0x31ced7=>Boolean(_0x31ced7)},'is_readonly':{'type':Boolean,'converter':_0x548195=>Boolean(_0x548195)}};}get[a0_0x374e8c(0x13e)](){const _0x50f264=a0_0x374e8c;return!0x0===this[_0x50f264(0x10e)]||!0x0===this[_0x50f264(0x129)];}get[a0_0x374e8c(0x138)](){const _0x1c7da7=a0_0x374e8c;return!ValueUtil[_0x1c7da7(0x120)](this[_0x1c7da7(0x10e)])&&this[_0x1c7da7(0x10e)];}async[a0_0x374e8c(0x13b)](_0x190185,_0x3f52cc,_0x93d787){const _0x1ca130=a0_0x374e8c;let _0x5ad5b6=this['lifecycle']?.['params']?this[_0x1ca130(0x12b)][_0x1ca130(0x13d)]:{};this[_0x1ca130(0x12e)]&&this['active']&&0x0==_0x93d787['active']&&ValueUtil[_0x1ca130(0x117)](_0x5ad5b6)&&this[_0x1ca130(0x110)]();}get[a0_0x374e8c(0x140)](){const _0x17c1da=a0_0x374e8c;return!ValueUtil[_0x17c1da(0x120)](this[_0x17c1da(0x129)])&&this[_0x17c1da(0x129)];}get[a0_0x374e8c(0x12e)](){const _0x2b44b2=a0_0x374e8c;return!this[_0x2b44b2(0x10e)]&&!this[_0x2b44b2(0x129)];}async[a0_0x374e8c(0x119)](){const _0x5e5092=a0_0x374e8c;let _0x2bb103=await MetaApi[_0x5e5092(0x125)](this);_0x2bb103&&(this[_0x5e5092(0x11c)]=_0x2bb103['menu'],this[_0x5e5092(0x126)]=_0x2bb103[_0x5e5092(0x112)],this[_0x5e5092(0x128)]&&this[_0x5e5092(0x128)](_0x2bb103),this['parseBasicServiceConfigs']&&this[_0x5e5092(0x131)](_0x2bb103),this[_0x5e5092(0x139)]&&this[_0x5e5092(0x139)](_0x2bb103),this[_0x5e5092(0x132)]&&this[_0x5e5092(0x132)](_0x2bb103),this[_0x5e5092(0x133)]&&this[_0x5e5092(0x133)](_0x2bb103));}async[a0_0x374e8c(0x110)](){const _0x17fae8=a0_0x374e8c;ValueUtil['isNotEmpty'](this[_0x17fae8(0x115)])?this[_0x17fae8(0x115)][_0x17fae8(0x110)]():(ValueUtil[_0x17fae8(0x117)](this[_0x17fae8(0x114)])||this['fetchHandler'])&&await this[_0x17fae8(0x137)]();}async[a0_0x374e8c(0x113)](_0x16621b,_0x362a58,_0x85c6e8){const _0x1690d8=a0_0x374e8c;let _0x253a5c=TermsUtil[_0x1690d8(0x12c)](_0x16621b['title']);ValueUtil[_0x1690d8(0x117)](_0x16621b[_0x1690d8(0x11b)])&&(_0x253a5c=_0x253a5c+'-'+ValueUtil[_0x1690d8(0x13c)](_0x362a58,..._0x16621b[_0x1690d8(0x11b)][_0x1690d8(0x12f)]('.'))),MetaApi[_0x1690d8(0x12d)](_0x253a5c,_0x16621b,_0x362a58,_0x85c6e8);}async[a0_0x374e8c(0x10f)](_0x3b5c73,_0x310a67,_0x1ab56e){const _0x1d7180=a0_0x374e8c;let _0x48b8b0=await MetaApi[_0x1d7180(0x118)](_0x3b5c73[_0x1d7180(0x123)],_0x3b5c73[_0x1d7180(0x123)],_0x310a67);!0x1!==_0x48b8b0&&!_0x48b8b0[_0x1d7180(0x111)]&&ValueUtil[_0x1d7180(0x117)](_0x3b5c73[_0x1d7180(0x11e)])&&_0x1ab56e();}[a0_0x374e8c(0x127)](_0x299616){const _0x18a4c6=a0_0x374e8c;this[_0x18a4c6(0x12a)]=_0x299616,this['fetch']();}};
@@ -1,4 +1,4 @@
1
- const a0_0x9e0075=a0_0x1925;function a0_0x809c(){const _0x4b42a0=['import','querySelector','ox-filters-form','gridConfig','8164ekaWUM','968IAjxOZ','updateMultiple','tTitle','1027449YUxgHw','getParams','find','filterForm','pageInitialized','962185Imwtah','getSelectedIdList','filterFormId','isElement','menuInfo','firstUpdated','4437480cwdGoR','connectedCallback','642QdWNlp','parseBasicGridConfigs','grist','2806480IgQUmP','___data','activityDataSet','data','ox-grist','35ztVzdy','20713lFuPoF','getButtonContainer','clear','getData','context','render','forEach','deleteByIds','getContextObject','shadowRoot','gristId','findOne','search','isPage','records','4dQyaSL','delete','parse','styles','gristConfigSet','stringify','save','isNotEmpty','parseGridConfigSet','getAndParseMenuMeta','dataSet','22LoMaLi','getBasicGristHtml','patchesForUpdateMultiple','exportableData','4194GKyCms','export','fetch'];a0_0x809c=function(){return _0x4b42a0;};return a0_0x809c();}(function(_0x378048,_0x3002a7){const _0x12094f=a0_0x1925,_0x1600e3=_0x378048();while(!![]){try{const _0x7a4991=parseInt(_0x12094f(0xb9))/0x1+-parseInt(_0x12094f(0xd9))/0x2*(parseInt(_0x12094f(0xb4))/0x3)+parseInt(_0x12094f(0xb0))/0x4*(parseInt(_0x12094f(0xc9))/0x5)+parseInt(_0x12094f(0xc1))/0x6*(parseInt(_0x12094f(0xca))/0x7)+-parseInt(_0x12094f(0xb1))/0x8*(parseInt(_0x12094f(0xe8))/0x9)+parseInt(_0x12094f(0xc4))/0xa*(parseInt(_0x12094f(0xe4))/0xb)+-parseInt(_0x12094f(0xbf))/0xc;if(_0x7a4991===_0x3002a7)break;else _0x1600e3['push'](_0x1600e3['shift']());}catch(_0x14c663){_0x1600e3['push'](_0x1600e3['shift']());}}}(a0_0x809c,0xb5747));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x1925(_0x43f1d5,_0x5ee957){const _0x809c97=a0_0x809c();return a0_0x1925=function(_0x192541,_0x22e246){_0x192541=_0x192541-0xaa;let _0x43c4d9=_0x809c97[_0x192541];return _0x43c4d9;},a0_0x1925(_0x43f1d5,_0x5ee957);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x31b94e=>class extends MetaButtonMixin(_0x31b94e){static get[a0_0x9e0075(0xdc)](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x9e0075(0xc3)](){const _0x3a1238=a0_0x9e0075;return this['renderRoot']?.[_0x3a1238(0xad)](this['gristId']);}get[a0_0x9e0075(0xb7)](){const _0x258115=a0_0x9e0075;return this[_0x258115(0xd3)]?.[_0x258115(0xad)](this[_0x258115(0xbb)]);}get[a0_0x9e0075(0xce)](){const _0x175a94=a0_0x9e0075;return MetaUiUtil[_0x175a94(0xd2)](this);}async[a0_0x9e0075(0xc0)](){const _0x5467b8=a0_0x9e0075;this[_0x5467b8(0xd4)]=_0x5467b8(0xc8),this[_0x5467b8(0xbb)]=_0x5467b8(0xae),await this[_0x5467b8(0xe2)](),this[_0x5467b8(0xbc)]&&await this['parseGristConfigs'](),this[_0x5467b8(0xc6)]&&(this[_0x5467b8(0xe3)]=this[_0x5467b8(0xc6)]),super['connectedCallback']&&await super[_0x5467b8(0xc0)]();}async[a0_0x9e0075(0xbe)](){const _0x3b0f62=a0_0x9e0075;super[_0x3b0f62(0xbe)]&&await super[_0x3b0f62(0xbe)]();}async[a0_0x9e0075(0xb8)](){const _0x30d589=a0_0x9e0075;this[_0x30d589(0xd7)]&&await this['parseGristConfigs'](),super[_0x30d589(0xb8)]&&await super['pageInitialized']();}[a0_0x9e0075(0xcf)](){const _0x18bc80=a0_0x9e0075;return html`
2
- ${MetaApi[_0x18bc80(0xe5)](this)}
3
- ${this[_0x18bc80(0xd7)]?html``:MetaUiUtil[_0x18bc80(0xcb)](this)}
4
- `;}[a0_0x9e0075(0xc2)](_0x254c1f){const _0x33fbb8=a0_0x9e0075;this[_0x33fbb8(0xaf)]=_0x254c1f['grid'],this['gridColumnConfig']=_0x254c1f['grid_column'],this['searchConfig']=_0x254c1f[_0x33fbb8(0xd6)];}async['parseGristConfigs'](){const _0x3218d3=a0_0x9e0075;this[_0x3218d3(0xdd)]=await MetaApi[_0x3218d3(0xe1)](this);}async[a0_0x9e0075(0xab)](){const _0xf1d632=a0_0x9e0075;await this[_0xf1d632(0xc3)][_0xf1d632(0xab)]();}async[a0_0x9e0075(0xdf)](){const _0xac58e5=a0_0x9e0075;let _0x203e62=MetaApi[_0xac58e5(0xe6)](this['grist']);!!ValueUtil[_0xac58e5(0xe0)](_0x203e62)&&await this[_0xac58e5(0xb2)](_0x203e62)&&this[_0xac58e5(0xab)]();}async[a0_0x9e0075(0xb6)](){const _0x5ddfe6=a0_0x9e0075;let _0x1fcdb9=MetaApi[_0x5ddfe6(0xba)](this[_0x5ddfe6(0xc3)],!0x0);return ValueUtil[_0x5ddfe6(0xe0)](_0x1fcdb9)?await this[_0x5ddfe6(0xd5)](_0x1fcdb9[0x0]):{};}async[a0_0x9e0075(0xda)](){const _0x63978c=a0_0x9e0075;let _0x2072ec=MetaApi[_0x63978c(0xba)](this['grist'],!0x0);!!ValueUtil[_0x63978c(0xe0)](_0x2072ec)&&await this[_0x63978c(0xd1)](_0x2072ec)&&this[_0x63978c(0xab)]();}async[a0_0x9e0075(0xaa)](){const _0x3fea62=a0_0x9e0075;let _0x501b82=TermsUtil[_0x3fea62(0xb3)](ValueUtil[_0x3fea62(0xb5)](this[_0x3fea62(0xbd)],'title'));return await MetaApi[_0x3fea62(0xe7)](this['isElement'],_0x501b82,this[_0x3fea62(0xc3)]);}async[a0_0x9e0075(0xac)](){}async[a0_0x9e0075(0xcc)](){const _0x17fe74=a0_0x9e0075;this[_0x17fe74(0xc3)]&&(this['grist'][_0x17fe74(0xc7)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x9e0075(0xcd)](){const _0x4fe096=a0_0x9e0075;let _0x5de62b=this[_0x4fe096(0xc3)][_0x4fe096(0xc5)][_0x4fe096(0xd8)];return _0x5de62b=JSON[_0x4fe096(0xdb)](JSON[_0x4fe096(0xde)](_0x5de62b)),_0x5de62b[_0x4fe096(0xd0)](_0x4b71bd=>{Object['keys'](_0x4b71bd)['forEach'](_0x4782b6=>{_0x4782b6['startsWith']('__')&&delete _0x4b71bd[_0x4782b6];});}),_0x5de62b;}};
1
+ const a0_0x2d4858=a0_0x20a9;(function(_0x6877d1,_0x13e659){const _0x1e05fd=a0_0x20a9,_0x112127=_0x6877d1();while(!![]){try{const _0x51e9b0=-parseInt(_0x1e05fd(0xe5))/0x1+parseInt(_0x1e05fd(0xf5))/0x2*(parseInt(_0x1e05fd(0xd7))/0x3)+parseInt(_0x1e05fd(0xcc))/0x4*(parseInt(_0x1e05fd(0xe4))/0x5)+parseInt(_0x1e05fd(0xd1))/0x6*(parseInt(_0x1e05fd(0xfb))/0x7)+-parseInt(_0x1e05fd(0xf1))/0x8+-parseInt(_0x1e05fd(0xd2))/0x9*(-parseInt(_0x1e05fd(0xcb))/0xa)+-parseInt(_0x1e05fd(0xe0))/0xb*(parseInt(_0x1e05fd(0xdd))/0xc);if(_0x51e9b0===_0x13e659)break;else _0x112127['push'](_0x112127['shift']());}catch(_0xee9f20){_0x112127['push'](_0x112127['shift']());}}}(a0_0x2b2a,0x5e6d1));function a0_0x20a9(_0x3be348,_0x4472b4){const _0x2b2a15=a0_0x2b2a();return a0_0x20a9=function(_0x20a9a5,_0x5c6ec0){_0x20a9a5=_0x20a9a5-0xc4;let _0xe3f49b=_0x2b2a15[_0x20a9a5];return _0xe3f49b;},a0_0x20a9(_0x3be348,_0x4472b4);}function a0_0x2b2a(){const _0x471cd0=['getBasicGristStyles','startsWith','getBasicGristHtml','___data','exportableData','ox-filters-form','1350784frMedk','findOne','getContextObject','connectedCallback','100318ThwKco','grid_column','save','render','export','keys','1494297iseOAd','find','stringify','updateMultiple','firstUpdated','context','filterForm','deleteByIds','fetch','patchesForUpdateMultiple','getButtonContainer','forEach','10qvEJIz','483376EBbLZu','getSelectedIdList','activityDataSet','title','parseGridConfigSet','6xiFUUY','6521301JnhyYa','ox-grist','pageInitialized','data','querySelector','9oamanp','isElement','searchConfig','shadowRoot','grist','dataSet','103308XhPVUo','parseGristConfigs','gristId','121mwElnK','gridColumnConfig','gristConfigSet','filterFormId','5XOsUUF','559065HzrfpT','isNotEmpty','delete','styles','renderRoot','getAndParseMenuMeta'];a0_0x2b2a=function(){return _0x471cd0;};return a0_0x2b2a();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x4e7ff3=>class extends MetaButtonMixin(_0x4e7ff3){static get[a0_0x2d4858(0xe8)](){const _0x30354c=a0_0x2d4858;return MetaApi[_0x30354c(0xeb)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x2d4858(0xdb)](){const _0x12ecb7=a0_0x2d4858;return this[_0x12ecb7(0xe9)]?.[_0x12ecb7(0xd6)](this[_0x12ecb7(0xdf)]);}get[a0_0x2d4858(0xc5)](){const _0xa5377b=a0_0x2d4858;return this[_0xa5377b(0xda)]?.[_0xa5377b(0xd6)](this[_0xa5377b(0xe3)]);}get[a0_0x2d4858(0xc4)](){const _0xc7e9f3=a0_0x2d4858;return MetaUiUtil[_0xc7e9f3(0xf3)](this);}async['connectedCallback'](){const _0x5be39b=a0_0x2d4858;this[_0x5be39b(0xdf)]=_0x5be39b(0xd3),this[_0x5be39b(0xe3)]=_0x5be39b(0xf0),await this[_0x5be39b(0xea)](),this['isElement']&&await this[_0x5be39b(0xde)](),this[_0x5be39b(0xce)]&&(this[_0x5be39b(0xdc)]=this[_0x5be39b(0xce)]),super['connectedCallback']&&await super[_0x5be39b(0xf4)]();}async[a0_0x2d4858(0xff)](){const _0x1456d1=a0_0x2d4858;super['firstUpdated']&&await super[_0x1456d1(0xff)]();}async[a0_0x2d4858(0xd4)](){const _0xa3afb2=a0_0x2d4858;this['isPage']&&await this[_0xa3afb2(0xde)](),super['pageInitialized']&&await super[_0xa3afb2(0xd4)]();}[a0_0x2d4858(0xf8)](){const _0x5d57df=a0_0x2d4858;return html`
2
+ ${MetaApi[_0x5d57df(0xed)](this)}
3
+ ${this['isPage']?html``:MetaUiUtil[_0x5d57df(0xc9)](this)}
4
+ `;}['parseBasicGridConfigs'](_0x4c1b3d){const _0x5acb1b=a0_0x2d4858;this['gridConfig']=_0x4c1b3d['grid'],this[_0x5acb1b(0xe1)]=_0x4c1b3d[_0x5acb1b(0xf6)],this[_0x5acb1b(0xd9)]=_0x4c1b3d['search'];}async[a0_0x2d4858(0xde)](){const _0x3afef5=a0_0x2d4858;this[_0x3afef5(0xe2)]=await MetaApi[_0x3afef5(0xd0)](this);}async[a0_0x2d4858(0xc7)](){const _0x532cbe=a0_0x2d4858;await this['grist'][_0x532cbe(0xc7)]();}async[a0_0x2d4858(0xf7)](){const _0x598b13=a0_0x2d4858;let _0x1844a9=MetaApi[_0x598b13(0xc8)](this[_0x598b13(0xdb)]);!!ValueUtil['isNotEmpty'](_0x1844a9)&&await this[_0x598b13(0xfe)](_0x1844a9)&&this[_0x598b13(0xc7)]();}async[a0_0x2d4858(0xfc)](){const _0x499a2e=a0_0x2d4858;let _0x594e20=MetaApi[_0x499a2e(0xcd)](this[_0x499a2e(0xdb)],!0x0);return ValueUtil[_0x499a2e(0xe6)](_0x594e20)?await this[_0x499a2e(0xf2)](_0x594e20[0x0]):{};}async[a0_0x2d4858(0xe7)](){const _0x278bff=a0_0x2d4858;let _0x1e597e=MetaApi[_0x278bff(0xcd)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x1e597e)&&await this[_0x278bff(0xc6)](_0x1e597e)&&this[_0x278bff(0xc7)]();}async[a0_0x2d4858(0xf9)](){const _0x5150e9=a0_0x2d4858;let _0x56dc88=TermsUtil['tTitle'](ValueUtil['getParams'](this['menuInfo'],_0x5150e9(0xcf)));return await MetaApi[_0x5150e9(0xef)](this[_0x5150e9(0xd8)],_0x56dc88,this['grist']);}async['import'](){}async['clear'](){const _0x4f5924=a0_0x2d4858;this['grist']&&(this[_0x4f5924(0xdb)][_0x4f5924(0xd5)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x552993=a0_0x2d4858;let _0x1bb672=this['grist'][_0x552993(0xee)]['records'];return _0x1bb672=JSON['parse'](JSON[_0x552993(0xfd)](_0x1bb672)),_0x1bb672[_0x552993(0xca)](_0x58f7b8=>{const _0x13dd31=_0x552993;Object[_0x13dd31(0xfa)](_0x58f7b8)['forEach'](_0x148df5=>{const _0x5335dd=_0x13dd31;_0x148df5[_0x5335dd(0xec)]('__')&&delete _0x58f7b8[_0x148df5];});}),_0x1bb672;}};
@@ -1 +1 @@
1
- const a0_0x4405e5=a0_0x3d27;function a0_0x1845(){const _0x479bf7=['isButtonExist','buttonConfig','properties','gristButtonHandler','4628216dcESNy','489422AcBbpZ','getButtonActionHandler','9180200stDxiO','17996oVjRQj','555XfQCBw','useButtonAdd','add','useButtonExport','getButtonContainer','export','getContextButtons','import','parseBasicButtonConfigs','getCustomButtonContainerStyle','929304rToFku','3QkqwwO','customButtonHandler','getCustomButtonContainerStyles','7zyeMsu','2013336elGFGV','isPage','351786nsFluf'];a0_0x1845=function(){return _0x479bf7;};return a0_0x1845();}(function(_0xbf1282,_0x358948){const _0x1e721f=a0_0x3d27,_0x21a9d0=_0xbf1282();while(!![]){try{const _0x5b7b0f=-parseInt(_0x1e721f(0x1d3))/0x1*(parseInt(_0x1e721f(0x1df))/0x2)+-parseInt(_0x1e721f(0x1d9))/0x3+-parseInt(_0x1e721f(0x1e2))/0x4*(parseInt(_0x1e721f(0x1e3))/0x5)+parseInt(_0x1e721f(0x1d7))/0x6+parseInt(_0x1e721f(0x1d6))/0x7*(parseInt(_0x1e721f(0x1de))/0x8)+-parseInt(_0x1e721f(0x1d2))/0x9+parseInt(_0x1e721f(0x1e1))/0xa;if(_0x5b7b0f===_0x358948)break;else _0x21a9d0['push'](_0x21a9d0['shift']());}catch(_0x21ab3a){_0x21a9d0['push'](_0x21a9d0['shift']());}}}(a0_0x1845,0x5c4cf));function a0_0x3d27(_0x45be8e,_0xb470e7){const _0x184521=a0_0x1845();return a0_0x3d27=function(_0x3d273b,_0x1309ef){_0x3d273b=_0x3d273b-0x1c9;let _0x532277=_0x184521[_0x3d273b];return _0x532277;},a0_0x3d27(_0x45be8e,_0xb470e7);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x47b48a=>class extends MetaServiceMixin(_0x47b48a){static get[a0_0x4405e5(0x1dc)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x4405e5(0x1d1)](){const _0x285ba6=a0_0x4405e5;return MetaUiUtil[_0x285ba6(0x1d5)]();}[a0_0x4405e5(0x1ce)](){const _0x57f32d=a0_0x4405e5;return MetaUiUtil[_0x57f32d(0x1ce)](this);}[a0_0x4405e5(0x1cc)](){const _0x2759be=a0_0x4405e5;return this[_0x2759be(0x1d8)]?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0x53bcab,_0x4a5644,_0x10eb6d){const _0x1e862c=a0_0x4405e5;return await MetaUiUtil[_0x1e862c(0x1e0)](this,_0x53bcab,_0x4a5644,_0x10eb6d);}async[a0_0x4405e5(0x1d4)](_0x264c1e){await MetaUiUtil['customButtonHandler'](this,_0x264c1e);}async[a0_0x4405e5(0x1dd)](_0x224924,_0x584ce9){const _0x4d9f77=a0_0x4405e5;await MetaUiUtil[_0x4d9f77(0x1dd)](this,_0x224924,_0x584ce9);}[a0_0x4405e5(0x1d0)](_0x4e8d7e){const _0x46e650=a0_0x4405e5;this[_0x46e650(0x1db)]=_0x4e8d7e['button'],this['useButtonImport']=MetaUiUtil[_0x46e650(0x1da)](this['buttonConfig'],_0x46e650(0x1cf)),this[_0x46e650(0x1cb)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x46e650(0x1cd)),this[_0x46e650(0x1c9)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x46e650(0x1ca));}};
1
+ const a0_0x582315=a0_0x5791;function a0_0x5791(_0x3c8531,_0x2fee97){const _0xf52831=a0_0xf528();return a0_0x5791=function(_0x57919f,_0x13bd64){_0x57919f=_0x57919f-0x82;let _0x4c43d4=_0xf52831[_0x57919f];return _0x4c43d4;},a0_0x5791(_0x3c8531,_0x2fee97);}(function(_0x5c2784,_0x5da5e8){const _0x49aa1f=a0_0x5791,_0x566a0c=_0x5c2784();while(!![]){try{const _0x38a01e=-parseInt(_0x49aa1f(0x89))/0x1+-parseInt(_0x49aa1f(0x91))/0x2+-parseInt(_0x49aa1f(0x94))/0x3+-parseInt(_0x49aa1f(0x8f))/0x4*(parseInt(_0x49aa1f(0x95))/0x5)+-parseInt(_0x49aa1f(0x85))/0x6+-parseInt(_0x49aa1f(0x82))/0x7+parseInt(_0x49aa1f(0x83))/0x8;if(_0x38a01e===_0x5da5e8)break;else _0x566a0c['push'](_0x566a0c['shift']());}catch(_0x1fb645){_0x566a0c['push'](_0x566a0c['shift']());}}}(a0_0xf528,0x338a7));function a0_0xf528(){const _0x33a305=['13933536TcuJDi','gristButtonHandler','2090646HgothS','button','buttonConfig','add','63544DXrisU','getButtonActionHandler','getCustomButtonContainerStyles','getButtonContainer','useButtonImport','getBasicButtonHandler','12BIpCIB','isPage','687466jbLdMp','getCustomButtonContainerStyle','import','1036104muqcnk','528070PqqleJ','parseBasicButtonConfigs','properties','getContextButtons','customButtonHandler','useButtonAdd','788571vPhiSd'];a0_0xf528=function(){return _0x33a305;};return a0_0xf528();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x234478=>class extends MetaServiceMixin(_0x234478){static get[a0_0x582315(0x97)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x582315(0x92)](){const _0x2f3510=a0_0x582315;return MetaUiUtil[_0x2f3510(0x8b)]();}[a0_0x582315(0x98)](){const _0x51d198=a0_0x582315;return MetaUiUtil[_0x51d198(0x98)](this);}[a0_0x582315(0x8c)](){const _0x1ab539=a0_0x582315;return this[_0x1ab539(0x90)]?html``:MetaUiUtil[_0x1ab539(0x8c)](this);}async[a0_0x582315(0x8e)](_0x3b6792,_0x413df4,_0x68c1ba){const _0x3069a8=a0_0x582315;return await MetaUiUtil[_0x3069a8(0x8a)](this,_0x3b6792,_0x413df4,_0x68c1ba);}async[a0_0x582315(0x99)](_0x25506c){const _0x112423=a0_0x582315;await MetaUiUtil[_0x112423(0x99)](this,_0x25506c);}async[a0_0x582315(0x84)](_0x2cfee6,_0x3cf814){await MetaUiUtil['gristButtonHandler'](this,_0x2cfee6,_0x3cf814);}[a0_0x582315(0x96)](_0x4ec498){const _0x242585=a0_0x582315;this[_0x242585(0x87)]=_0x4ec498[_0x242585(0x86)],this[_0x242585(0x8d)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x93)),this['useButtonExport']=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],'export'),this[_0x242585(0x9a)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x88));}};