@things-factory/meta-ui 6.0.27 → 6.0.32

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 (53) hide show
  1. package/client/actions/main.js +3 -3
  2. package/client/mixin/meta-base-mixin.js +1 -1
  3. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  4. package/client/mixin/meta-button-mixin.js +1 -1
  5. package/client/mixin/meta-form-mixin.js +1 -1
  6. package/client/mixin/meta-grist-tab-mixin.js +9 -9
  7. package/client/mixin/meta-master-detail-mixin.js +23 -0
  8. package/client/mixin/meta-service-mixin.js +1 -1
  9. package/client/mixin/meta-tab-mixin.js +1 -1
  10. package/client/pages/entity/config-entity.js +40 -1015
  11. package/client/pages/entity/main-menu-selector.js +69 -257
  12. package/client/pages/history/history-copy-list-popup.js +18 -0
  13. package/client/pages/history/history-json-list-popup.js +18 -0
  14. package/client/pages/loading-page.js +8 -84
  15. package/client/pages/menu/dynamic-menu-template.js +34 -175
  16. package/client/pages/menu/dynamic-menu.js +23 -472
  17. package/client/pages/meta-form-element.js +1 -1
  18. package/client/pages/meta-grist-element.js +1 -1
  19. package/client/pages/meta-grist-page.js +1 -1
  20. package/client/pages/meta-grist-tab-page.js +1 -1
  21. package/client/pages/meta-master-detail-element.js +1 -0
  22. package/client/pages/meta-master-detail-page.js +1 -0
  23. package/client/pages/meta-tab-element.js +1 -1
  24. package/client/pages/personalize/personal-column-selector.js +72 -274
  25. package/client/pages/terms/config-terminology.js +5 -5
  26. package/client/reducers/main.js +1 -1
  27. package/client/utils/meta-api.js +1 -1
  28. package/client/utils/meta-crypto.js +1 -1
  29. package/client/utils/meta-ui-util.js +108 -61
  30. package/client/utils/service-util.js +12 -12
  31. package/client/utils/terms-util.js +2 -2
  32. package/client/utils/ui-util.js +1 -1
  33. package/client/utils/value-util.js +1 -1
  34. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  35. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  36. package/client/viewparts/dynamic-menu-part.js +6 -6
  37. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  38. package/client/viewparts/dynamic-menu-portrait.js +10 -10
  39. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  40. package/package.json +5 -5
  41. package/server/constants/error-code.js +1 -1
  42. package/server/errors/license-error.js +1 -1
  43. package/server/routes.js +1 -1
  44. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  45. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  46. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  47. package/server/service/grid-personalize/grid-personalize.js +1 -1
  48. package/server/service/meta-secret/meta-resolver.js +1 -1
  49. package/server/service/set-translations/set-translation-resolver.js +1 -1
  50. package/translations/en.json +5 -1
  51. package/translations/ko.json +5 -1
  52. package/translations/ms.json +5 -1
  53. package/translations/zh.json +5 -1
@@ -1,263 +1,75 @@
1
- const a0_0xa07f05 = a0_0x129a
2
- ;(function (_0x9585f, _0x25d9b8) {
3
- const _0xa51234 = a0_0x129a,
4
- _0x4c5911 = _0x9585f()
5
- while (!![]) {
6
- try {
7
- const _0x4fff4e =
8
- (parseInt(_0xa51234(0x88)) / 0x1) * (-parseInt(_0xa51234(0x98)) / 0x2) +
9
- (parseInt(_0xa51234(0x87)) / 0x3) * (parseInt(_0xa51234(0xa0)) / 0x4) +
10
- (parseInt(_0xa51234(0x7b)) / 0x5) * (parseInt(_0xa51234(0x9f)) / 0x6) +
11
- parseInt(_0xa51234(0x79)) / 0x7 +
12
- parseInt(_0xa51234(0x9d)) / 0x8 +
13
- (parseInt(_0xa51234(0x89)) / 0x9) * (-parseInt(_0xa51234(0x86)) / 0xa) +
14
- (-parseInt(_0xa51234(0xa1)) / 0xb) * (parseInt(_0xa51234(0x73)) / 0xc)
15
- if (_0x4fff4e === _0x25d9b8) break
16
- else _0x4c5911['push'](_0x4c5911['shift']())
17
- } catch (_0x3e5c70) {
18
- _0x4c5911['push'](_0x4c5911['shift']())
19
- }
20
- }
21
- })(a0_0x18bf, 0x8f184)
22
- import { css, html, LitElement } from 'lit'
23
- import { i18next, localize } from '@things-factory/i18n-base'
24
- function a0_0x129a(_0x55a607, _0x25e8be) {
25
- const _0x18bfd8 = a0_0x18bf()
26
- return (
27
- (a0_0x129a = function (_0x129ace, _0x433fed) {
28
- _0x129ace = _0x129ace - 0x70
29
- let _0x2f451c = _0x18bfd8[_0x129ace]
30
- return _0x2f451c
31
- }),
32
- a0_0x129a(_0x55a607, _0x25e8be)
33
- )
34
- }
35
- import { ScrollbarStyles, CommonGristStyles } from '@operato/styles'
36
- import { TermsUtil } from './../../utils/terms-util'
37
- import { UiUtil } from '../../utils/ui-util'
38
- import { MetaApi } from '../../utils/meta-api'
39
- export class MainMenuSelector extends localize(i18next)(LitElement) {
40
- static get [a0_0xa07f05(0x94)]() {
41
- return [
42
- ScrollbarStyles,
43
- CommonGristStyles,
44
- css`
45
- :host {
46
- display: flex;
47
- flex-direction: column;
48
- overflow-x: auto;
49
- }
50
- .container {
51
- flex: 1;
52
- display: grid;
53
- overflow: hidden;
54
- }
55
- .container_detail {
56
- background-color: var(--main-section-background-color);
57
- display: flex;
58
- flex-direction: column;
59
- flex: 1;
60
- overflow-y: auto;
61
- }
1
+ const a0_0x37a58f=a0_0x2797;(function(_0x57aa76,_0x260079){const _0x15297a=a0_0x2797,_0x4b0aa2=_0x57aa76();while(!![]){try{const _0x5d81ad=parseInt(_0x15297a(0x1df))/0x1+-parseInt(_0x15297a(0x1bc))/0x2*(-parseInt(_0x15297a(0x1cd))/0x3)+parseInt(_0x15297a(0x1e1))/0x4+parseInt(_0x15297a(0x1ce))/0x5*(parseInt(_0x15297a(0x1e9))/0x6)+-parseInt(_0x15297a(0x1d2))/0x7*(parseInt(_0x15297a(0x1d6))/0x8)+parseInt(_0x15297a(0x1d8))/0x9*(parseInt(_0x15297a(0x1e7))/0xa)+-parseInt(_0x15297a(0x1d1))/0xb;if(_0x5d81ad===_0x260079)break;else _0x4b0aa2['push'](_0x4b0aa2['shift']());}catch(_0x402b73){_0x4b0aa2['push'](_0x4b0aa2['shift']());}}}(a0_0xbe17,0x21b88));function a0_0x2797(_0x5d93f3,_0x5d0861){const _0xbe175c=a0_0xbe17();return a0_0x2797=function(_0x27972d,_0x58b980){_0x27972d=_0x27972d-0x1b9;let _0x31f848=_0xbe175c[_0x27972d];return _0x31f848;},a0_0x2797(_0x5d93f3,_0x5d0861);}import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0xbe17(){const _0x43d6c8=['bind','getGristColumnConfig','10GTvQoS','fetchMainMenus','666012oWaRdy','selected','tMenu','#ox-grist','main-menu-selector','getGristSelectableConfig','tLabel','524668nsoGkm','render','records','menus','menuType','gridConfig','getGristCodeSelectorColumnConfig','GRID','rank','define','shadowRoot','selectMainMenu','name','info','items','styles','integer','3igJnSs','5QukCdU','selectCallback','length','7981358Odtevl','28AycQYw','create-menu','connectedCallback','center','121560zoXaXP','string','1032093RBcZqf','left','text.NOTHING_SELECTED','button.confirm','searchByPagination','showCustomAlert','title','255503TgIiRN','tButton','723848ZxwsbL','grist','menu_type','total'];a0_0xbe17=function(){return _0x43d6c8;};return a0_0xbe17();}import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get[a0_0x37a58f(0x1cb)](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ .container {
8
+ flex: 1;
9
+ display: grid;
10
+ overflow: hidden;
11
+ }
12
+ .container_detail {
13
+ background-color: var(--main-section-background-color);
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex: 1;
17
+ overflow-y: auto;
18
+ }
62
19
 
63
- h2 {
64
- padding: var(--subtitle-padding);
65
- font: var(--subtitle-font);
66
- color: var(--subtitle-text-color);
67
- border-bottom: var(--subtitle-border-bottom);
68
- }
20
+ h2 {
21
+ padding: var(--subtitle-padding);
22
+ font: var(--subtitle-font);
23
+ color: var(--subtitle-text-color);
24
+ border-bottom: var(--subtitle-border-bottom);
25
+ }
69
26
 
70
- .container_detail h2 {
71
- margin: var(--grist-title-margin);
72
- border: var(--grist-title-border);
73
- font: var(--grist-title-font);
74
- color: var(--secondary-color);
75
- }
27
+ .container_detail h2 {
28
+ margin: var(--grist-title-margin);
29
+ border: var(--grist-title-border);
30
+ font: var(--grist-title-font);
31
+ color: var(--secondary-color);
32
+ }
76
33
 
77
- .container_detail h2 mwc-icon {
78
- vertical-align: middle;
79
- margin: var(--grist-title-icon-margin);
80
- font-size: var(--grist-title-icon-size);
81
- color: var(--grist-title-icon-color);
82
- }
34
+ .container_detail h2 mwc-icon {
35
+ vertical-align: middle;
36
+ margin: var(--grist-title-icon-margin);
37
+ font-size: var(--grist-title-icon-size);
38
+ color: var(--grist-title-icon-color);
39
+ }
83
40
 
84
- h2 {
85
- padding-bottom: var(--grist-title-with-grid-padding);
86
- }
87
- ox-grist {
88
- overflow-y: auto;
89
- flex: 1;
90
- }
91
- search-form {
92
- overflow: visible;
93
- }
41
+ h2 {
42
+ padding-bottom: var(--grist-title-with-grid-padding);
43
+ }
44
+ ox-grist {
45
+ overflow-y: auto;
46
+ flex: 1;
47
+ }
48
+ search-form {
49
+ overflow: visible;
50
+ }
94
51
 
95
- .button-container {
96
- padding: var(--button-container-padding);
97
- margin: var(--button-container-margin);
98
- text-align: var(--button-container-align);
99
- background-color: var(--button-container-background);
100
- height: var(--button-container-height);
101
- text-align: right;
102
- padding-right: 12px;
103
- }
104
- `
105
- ]
106
- }
107
- static get ['properties']() {
108
- return { items: { type: Array }, total: { type: Number }, selectCallback: { type: Function } }
109
- }
110
- async [a0_0xa07f05(0x81)]() {
111
- const _0x51d3ba = a0_0xa07f05
112
- ;(this['gridConfig'] = {
113
- rows: MetaApi[_0x51d3ba(0x9c)](!0x1),
114
- pagination: { pages: [0x3e8] },
115
- appendable: !0x0,
116
- columns: [
117
- ...MetaApi[_0x51d3ba(0x72)](!0x0, !0x1),
118
- MetaApi[_0x51d3ba(0x90)](_0x51d3ba(0x9a), _0x51d3ba(0x8d), 'center', !0x0, !0x1, 0x3c),
119
- MetaApi['getGristColumnConfig']('string', _0x51d3ba(0x9b), _0x51d3ba(0x8e), !0x0, !0x1, 0xb9),
120
- {
121
- type: _0x51d3ba(0xa2),
122
- name: _0x51d3ba(0x8a),
123
- header: TermsUtil[_0x51d3ba(0x7e)](_0x51d3ba(0x8a)),
124
- record: {
125
- editable: !0x1,
126
- align: _0x51d3ba(0x8e),
127
- renderer: (_0x44e8b0, _0x48d028, _0xf740f, _0x51f5e6, _0x5a0667) =>
128
- _0xf740f[_0x51d3ba(0x9b)] ? TermsUtil[_0x51d3ba(0x84)](_0xf740f[_0x51d3ba(0x9b)]) : ''
129
- },
130
- sortable: !0x1,
131
- width: 0x113
132
- },
133
- await MetaApi[_0x51d3ba(0x93)](
134
- _0x51d3ba(0x7f),
135
- _0x51d3ba(0x8f),
136
- _0x51d3ba(0x8e),
137
- !0x1,
138
- 0x64,
139
- !0x0,
140
- _0x51d3ba(0xa4)
141
- )
142
- ]
143
- }),
144
- super['connectedCallback'] && (await super[_0x51d3ba(0x81)]())
145
- }
146
- [a0_0xa07f05(0x97)]() {
147
- const _0x4e488a = a0_0xa07f05
148
- return html` <div id="container" class="container">
149
- <div class="container_detail">
150
- <ox-grist
151
- id="ox-grist"
152
- .config=${this[_0x4e488a(0x70)]}
153
- .mode=${_0x4e488a(0x75)}
154
- auto-fetch
155
- .fetchHandler=${this[_0x4e488a(0x82)][_0x4e488a(0x74)](this)}
156
- >
157
- </ox-grist>
158
- <div id="button-container" class="button-container">
159
- <mwc-button
160
- raised
161
- hidden
162
- id="receive"
163
- label="${TermsUtil[_0x4e488a(0x83)](_0x4e488a(0x91))}"
164
- style="margin-left:7px;margin-top:7px;"
165
- @click=${this[_0x4e488a(0x80)][_0x4e488a(0x74)](this)}
166
- >
167
- </mwc-button>
52
+ .button-container {
53
+ padding: var(--button-container-padding);
54
+ margin: var(--button-container-margin);
55
+ text-align: var(--button-container-align);
56
+ background-color: var(--button-container-background);
57
+ height: var(--button-container-height);
58
+ text-align: right;
59
+ padding-right: 12px;
60
+ }`];}static get['properties'](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0x37a58f(0x1d4)](){const _0x5ce0b8=a0_0x37a58f;this[_0x5ce0b8(0x1c1)]={'rows':MetaApi[_0x5ce0b8(0x1ba)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x1),MetaApi[_0x5ce0b8(0x1e6)](_0x5ce0b8(0x1cc),_0x5ce0b8(0x1c4),_0x5ce0b8(0x1d5),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig']('string',_0x5ce0b8(0x1c8),_0x5ce0b8(0x1d9),!0x0,!0x1,0xb9),{'type':_0x5ce0b8(0x1d7),'name':_0x5ce0b8(0x1de),'header':TermsUtil[_0x5ce0b8(0x1bb)]('title'),'record':{'editable':!0x1,'align':_0x5ce0b8(0x1d9),'renderer':(_0x162e11,_0x233ebe,_0x2875c4,_0x1d510a,_0x1556db)=>_0x2875c4['name']?TermsUtil[_0x5ce0b8(0x1eb)](_0x2875c4[_0x5ce0b8(0x1c8)]):''},'sortable':!0x1,'width':0x113},await MetaApi[_0x5ce0b8(0x1c2)](_0x5ce0b8(0x1c0),_0x5ce0b8(0x1e3),_0x5ce0b8(0x1d9),!0x1,0x64,!0x0,'MENU_TYPE')]},super[_0x5ce0b8(0x1d4)]&&await super[_0x5ce0b8(0x1d4)]();}[a0_0x37a58f(0x1bd)](){const _0x548a29=a0_0x37a58f;return html`
61
+ <div id="container" class="container">
62
+ <div class="container_detail">
63
+ <ox-grist
64
+ id="ox-grist"
65
+ .config=${this['gridConfig']}
66
+ .mode=${_0x548a29(0x1c3)} auto-fetch
67
+ .fetchHandler=${this['fetchMainMenus'][_0x548a29(0x1e5)](this)}>
68
+ </ox-grist>
69
+ <div id="button-container" class="button-container">
70
+ <mwc-button raised hidden id="receive" label="${TermsUtil[_0x548a29(0x1e0)](_0x548a29(0x1d3))}"
71
+ style="margin-left:7px;margin-top:7px;" @click=${this[_0x548a29(0x1c7)][_0x548a29(0x1e5)](this)}>
72
+ </mwc-button>
73
+ </div>
168
74
  </div>
169
- </div>
170
- </div>`
171
- }
172
- get [a0_0xa07f05(0x7d)]() {
173
- const _0x4e562b = a0_0xa07f05
174
- return this[_0x4e562b(0xa3)][_0x4e562b(0x7a)](_0x4e562b(0x71))
175
- }
176
- async ['fetchMainMenus']() {
177
- const _0x22ce01 = a0_0xa07f05
178
- let _0x4ca074 = await MetaApi[_0x22ce01(0x99)](
179
- _0x22ce01(0x96),
180
- [{ name: _0x22ce01(0x77), operator: 'is_null', value: '' }],
181
- [{ name: _0x22ce01(0x8d) }],
182
- 0x0,
183
- 0x0,
184
- _0x22ce01(0x78)
185
- )
186
- return (
187
- (this['items'] = _0x4ca074[_0x22ce01(0x76)]),
188
- (this[_0x22ce01(0x95)] = _0x4ca074['total']),
189
- { total: this[_0x22ce01(0x95)], records: this['items'] }
190
- )
191
- }
192
- async [a0_0xa07f05(0x80)](_0x1beb07) {
193
- const _0x58057d = a0_0xa07f05,
194
- _0x314789 = this[_0x58057d(0x7d)][_0x58057d(0x8c)]
195
- if (_0x314789 && 0x0 != _0x314789['length'])
196
- this[_0x58057d(0x85)] &&
197
- (await this[_0x58057d(0x85)](_0x314789[0x0]['id']))['success'] &&
198
- history[_0x58057d(0x9e)]()
199
- else UiUtil[_0x58057d(0x92)]('title.info', _0x58057d(0x7c), 'info', _0x58057d(0x8b))
200
- }
201
- }
202
- function a0_0x18bf() {
203
- const _0x4e83fd = [
204
- 'shadowRoot',
205
- 'MENU_TYPE',
206
- 'gridConfig',
207
- '#ox-grist',
208
- 'getGristGuttersConfig',
209
- '36NOUnvV',
210
- 'bind',
211
- 'GRID',
212
- 'records',
213
- 'parentId',
214
- '\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20',
215
- '7905891QzODfp',
216
- 'querySelector',
217
- '55qOOGYG',
218
- 'text.NOTHING_SELECTED',
219
- 'grist',
220
- 'tLabel',
221
- 'menuType',
222
- 'selectMainMenu',
223
- 'connectedCallback',
224
- 'fetchMainMenus',
225
- 'tButton',
226
- 'tMenu',
227
- 'selectCallback',
228
- '90qmWuwH',
229
- '14484BNTXnB',
230
- '2JpkoBj',
231
- '519012mRfLSI',
232
- 'title',
233
- 'button.confirm',
234
- 'selected',
235
- 'rank',
236
- 'left',
237
- 'menu_type',
238
- 'getGristColumnConfig',
239
- 'create-menu',
240
- 'showCustomAlert',
241
- 'getGristCodeSelectorColumnConfig',
242
- 'styles',
243
- 'total',
244
- 'menus',
245
- 'render',
246
- '689086zlFlTN',
247
- 'searchByPagination',
248
- 'integer',
249
- 'name',
250
- 'getGristSelectableConfig',
251
- '1389096CykOSi',
252
- 'back',
253
- '441132ZPhjOk',
254
- '524lTIbBA',
255
- '3483502KIQtfS',
256
- 'string'
257
- ]
258
- a0_0x18bf = function () {
259
- return _0x4e83fd
260
- }
261
- return a0_0x18bf()
262
- }
263
- customElements['define']('main-menu-selector', MainMenuSelector)
75
+ </div>`;}get[a0_0x37a58f(0x1e2)](){const _0x515bdf=a0_0x37a58f;return this[_0x515bdf(0x1c6)]['querySelector'](_0x515bdf(0x1ec));}async[a0_0x37a58f(0x1e8)](){const _0x57bdc5=a0_0x37a58f;let _0x13c88f=await MetaApi[_0x57bdc5(0x1dc)](_0x57bdc5(0x1bf),[{'name':'parentId','operator':'is_null','value':''}],[{'name':'rank'}],0x0,0x0,'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20');return this[_0x57bdc5(0x1ca)]=_0x13c88f[_0x57bdc5(0x1be)],this['total']=_0x13c88f[_0x57bdc5(0x1e4)],{'total':this[_0x57bdc5(0x1e4)],'records':this[_0x57bdc5(0x1ca)]};}async[a0_0x37a58f(0x1c7)](_0xfe2334){const _0x388438=a0_0x37a58f,_0x117612=this[_0x388438(0x1e2)][_0x388438(0x1ea)];if(_0x117612&&0x0!=_0x117612[_0x388438(0x1d0)])this[_0x388438(0x1cf)]&&((await this[_0x388438(0x1cf)](_0x117612[0x0]['id']))['success']&&history['back']());else UiUtil[_0x388438(0x1dd)]('title.info',_0x388438(0x1da),_0x388438(0x1c9),_0x388438(0x1db));}}customElements[a0_0x37a58f(0x1c5)](a0_0x37a58f(0x1b9),MainMenuSelector);
@@ -0,0 +1,18 @@
1
+ function a0_0x55a9(){const _0x362415=['integer','rows','2061440EIdGwW','5236CyKZPv','1336QAunkM','gristConfig','bind','sortable','9bustRQ','gridConfig','connectedCallback','gutter','originalId','styles','1409524EBpdLU','#ox-grist','dataRevisionNo','history-copy-list-popup','center','sorters','46404hMZaZi','forEach','editable','8127KuGYVi','shadowRoot','3046865plGrrR','string','GRID','type','1110vpwNCl','record','data_revision_action','gqlFunc','data_revision_no','searchByPagination','938784XjxqdK','grist','filter','open_param','Histories','columns'];a0_0x55a9=function(){return _0x362415;};return a0_0x55a9();}const a0_0x8e61a0=a0_0x4e17;(function(_0x50b74d,_0x302c7f){const _0xdc2d06=a0_0x4e17,_0x29a57c=_0x50b74d();while(!![]){try{const _0xa7c8cf=parseInt(_0xdc2d06(0x1bf))/0x1+parseInt(_0xdc2d06(0x1b9))/0x2+-parseInt(_0xdc2d06(0x1c8))/0x3*(-parseInt(_0xdc2d06(0x1ae))/0x4)+-parseInt(_0xdc2d06(0x1c4))/0x5+parseInt(_0xdc2d06(0x1ce))/0x6+parseInt(_0xdc2d06(0x1c2))/0x7*(-parseInt(_0xdc2d06(0x1af))/0x8)+parseInt(_0xdc2d06(0x1b3))/0x9*(-parseInt(_0xdc2d06(0x1ad))/0xa);if(_0xa7c8cf===_0x302c7f)break;else _0x29a57c['push'](_0x29a57c['shift']());}catch(_0x340943){_0x29a57c['push'](_0x29a57c['shift']());}}}(a0_0x55a9,0x5d65c));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';function a0_0x4e17(_0x2ede37,_0x49f1d3){const _0x55a9e4=a0_0x55a9();return a0_0x4e17=function(_0x4e1798,_0x3a4219){_0x4e1798=_0x4e1798-0x1ad;let _0x436677=_0x55a9e4[_0x4e1798];return _0x436677;},a0_0x4e17(_0x2ede37,_0x49f1d3);}import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get[a0_0x8e61a0(0x1b8)](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ ox-grist {
8
+ overflow-y: auto;
9
+ flex: 1;
10
+ }
11
+ `];}static get['properties'](){return{'parent_id':String};}async['connectedCallback'](){const _0x3ed720=a0_0x8e61a0;let _0x36ad7c=this[_0x3ed720(0x1d1)][_0x3ed720(0x1b0)];this[_0x3ed720(0x1cb)]=this['open_param'][_0x3ed720(0x1cb)],delete _0x36ad7c['list'],delete _0x36ad7c['rows'],_0x36ad7c[_0x3ed720(0x1d5)]={'appendable':!0x1,'selectable':!0x1},_0x36ad7c[_0x3ed720(0x1be)]=[{'name':'dataRevisionNo','desc':!0x0}];let _0xe0bd6f=_0x36ad7c[_0x3ed720(0x1d3)]['filter'](_0x234b74=>_0x3ed720(0x1b6)!=_0x234b74[_0x3ed720(0x1c7)]);_0xe0bd6f[_0x3ed720(0x1c0)](_0x510e0f=>{const _0x1da4e6=_0x3ed720;_0x510e0f[_0x1da4e6(0x1d0)]&&delete _0x510e0f[_0x1da4e6(0x1d0)],_0x510e0f[_0x1da4e6(0x1c9)]||(_0x510e0f[_0x1da4e6(0x1c9)]={}),_0x510e0f[_0x1da4e6(0x1b2)]=!0x1,_0x510e0f[_0x1da4e6(0x1c9)][_0x1da4e6(0x1c1)]=!0x1;}),_0x36ad7c[_0x3ed720(0x1d3)]=[{'type':_0x3ed720(0x1b6),'gutterName':'dirty'},MetaApi['getGristColumnConfig2'](_0x3ed720(0x1d4),_0x3ed720(0x1bb),_0x3ed720(0x1cc),'center',!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x3ed720(0x1c5),'dataRevisionAction',_0x3ed720(0x1ca),_0x3ed720(0x1bd),!0x1,!0x1,0x5a),..._0xe0bd6f],this[_0x3ed720(0x1b4)]=_0x36ad7c,super[_0x3ed720(0x1b5)]&&await super[_0x3ed720(0x1b5)]();}['render'](){const _0x16f8fe=a0_0x8e61a0;return html`
12
+ <ox-grist
13
+ id="ox-grist"
14
+ .config=${this['gridConfig']}
15
+ .mode=${_0x16f8fe(0x1c6)} auto-fetch
16
+ .fetchHandler=${this['fetchHandler'][_0x16f8fe(0x1b1)](this)}>
17
+ </ox-grist>
18
+ `;}get[a0_0x8e61a0(0x1cf)](){const _0x3a9a8a=a0_0x8e61a0;return this[_0x3a9a8a(0x1c3)]['querySelector'](_0x3a9a8a(0x1ba));}async['fetchHandler']({page:_0x57f4e5=0x0,limit:_0x398090=0x0,sortings:_0x4ad78f=[],filters:_0x127012=[]}){const _0x251cb7=a0_0x8e61a0;let _0x44288a=[{'name':_0x251cb7(0x1b7),'operator':'eq','value':this['parent_id']},..._0x127012],_0x4bf998=MetaApi['getSelectColumns'](this['gridConfig'][_0x251cb7(0x1d3)]);return await MetaApi[_0x251cb7(0x1cd)](this[_0x251cb7(0x1cb)]+_0x251cb7(0x1d2),_0x44288a,_0x4ad78f,_0x57f4e5,_0x398090,_0x4bf998);}}customElements['define'](a0_0x8e61a0(0x1bc),HistoryCopyListPopup);
@@ -0,0 +1,18 @@
1
+ const a0_0xf9b421=a0_0x3567;(function(_0x2b03e1,_0x1b90f2){const _0x2feb98=a0_0x3567,_0x1feb46=_0x2b03e1();while(!![]){try{const _0x2af062=parseInt(_0x2feb98(0x1de))/0x1+-parseInt(_0x2feb98(0x1f0))/0x2*(-parseInt(_0x2feb98(0x1d2))/0x3)+parseInt(_0x2feb98(0x1e9))/0x4*(-parseInt(_0x2feb98(0x1e1))/0x5)+-parseInt(_0x2feb98(0x1d0))/0x6+parseInt(_0x2feb98(0x1d4))/0x7*(-parseInt(_0x2feb98(0x1cc))/0x8)+-parseInt(_0x2feb98(0x1db))/0x9*(-parseInt(_0x2feb98(0x1d1))/0xa)+-parseInt(_0x2feb98(0x1cb))/0xb;if(_0x2af062===_0x1b90f2)break;else _0x1feb46['push'](_0x1feb46['shift']());}catch(_0x328054){_0x1feb46['push'](_0x1feb46['shift']());}}}(a0_0xcf2a,0xaeed2));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';function a0_0x3567(_0x286624,_0x1f1c5f){const _0xcf2aeb=a0_0xcf2a();return a0_0x3567=function(_0x35677f,_0x539c20){_0x35677f=_0x35677f-0x1cb;let _0x234bdf=_0xcf2aeb[_0x35677f];return _0x234bdf;},a0_0x3567(_0x286624,_0x1f1c5f);}export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0xf9b421(0x1da)](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ ox-grist {
8
+ overflow-y: auto;
9
+ flex: 1;
10
+ }
11
+ `];}static get['properties'](){return{'parent_id':String};}async[a0_0xf9b421(0x1f4)](){const _0x5c3233=a0_0xf9b421;let _0x215599=this[_0x5c3233(0x1d6)][_0x5c3233(0x1d3)];this[_0x5c3233(0x1dd)]=this[_0x5c3233(0x1d6)][_0x5c3233(0x1dd)],delete _0x215599['list'],delete _0x215599[_0x5c3233(0x1d7)],_0x215599['rows']={'appendable':!0x1,'selectable':!0x1},_0x215599[_0x5c3233(0x1d5)]=[{'name':_0x5c3233(0x1d9),'desc':!0x0}];let _0x14efa5=_0x215599['columns'][_0x5c3233(0x1f9)](_0xd43d3=>_0x5c3233(0x1d8)!=_0xd43d3[_0x5c3233(0x1f7)]);_0x14efa5['forEach'](_0x1bcc60=>{const _0x101955=_0x5c3233;_0x1bcc60[_0x101955(0x1f9)]&&delete _0x1bcc60[_0x101955(0x1f9)],_0x1bcc60['record']||(_0x1bcc60[_0x101955(0x1ee)]={}),_0x1bcc60[_0x101955(0x1cd)]=!0x1,_0x1bcc60[_0x101955(0x1ee)][_0x101955(0x1e5)]=!0x1;}),_0x215599['columns']=[{'type':'gutter','gutterName':_0x5c3233(0x1f1)},MetaApi[_0x5c3233(0x1ed)](_0x5c3233(0x1ef),_0x5c3233(0x1d9),'data_revision_no',_0x5c3233(0x1f2),!0x1,!0x0,0x5a),MetaApi[_0x5c3233(0x1ed)](_0x5c3233(0x1e6),'dataRevisionAction',_0x5c3233(0x1e3),_0x5c3233(0x1f2),!0x1,!0x1,0x5a),..._0x14efa5],this[_0x5c3233(0x1f6)]=_0x215599,super['connectedCallback']&&await super[_0x5c3233(0x1f4)]();}[a0_0xf9b421(0x1eb)](){const _0x1fdb1c=a0_0xf9b421;return html`
12
+ <ox-grist
13
+ id="ox-grist"
14
+ .config=${this[_0x1fdb1c(0x1f6)]}
15
+ .mode=${_0x1fdb1c(0x1e8)} auto-fetch
16
+ .fetchHandler=${this[_0x1fdb1c(0x1ec)]['bind'](this)}>
17
+ </ox-grist>
18
+ `;}get[a0_0xf9b421(0x1e0)](){const _0x3919ee=a0_0xf9b421;return this[_0x3919ee(0x1cf)][_0x3919ee(0x1ce)](_0x3919ee(0x1ea));}async[a0_0xf9b421(0x1ec)]({page:_0x5a93ca=0x0,limit:_0x4d4f74=0x0,sortings:_0x592833=[],filters:_0x438ad4=[]}){const _0x52e266=a0_0xf9b421;let _0x469a18=[{'name':_0x52e266(0x1dc),'operator':'eq','value':this[_0x52e266(0x1e4)]},..._0x438ad4],_0x35a2fb=await MetaApi[_0x52e266(0x1df)](this['gqlFunc']+'Histories',_0x469a18,_0x592833,_0x5a93ca,_0x4d4f74,_0x52e266(0x1f5));return _0x35a2fb[_0x52e266(0x1f8)]=_0x35a2fb[_0x52e266(0x1f8)]['map'](_0x2b937c=>({...JSON['parse'](_0x2b937c[_0x52e266(0x1e2)]),..._0x2b937c})),_0x35a2fb;}}function a0_0xcf2a(){const _0x431280=['9BqLigM','originalId','gqlFunc','238628LkLmEU','searchByPagination','grist','155VcqFER','historyJson','data_revision_action','parent_id','editable','string','history-json-list-popup','GRID','16588qiuWbw','#ox-grist','render','fetchHandler','getGristColumnConfig2','record','integer','1487894UjeDTI','dirty','center','define','connectedCallback','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20originalId\x0a\x20\x20\x20\x20\x20\x20dataRevisionNo\x0a\x20\x20\x20\x20\x20\x20dataRevisionAction\x0a\x20\x20\x20\x20\x20\x20historyJson\x0a\x20\x20\x20\x20','gridConfig','type','records','filter','634656bFBbRU','352160BVMZqY','sortable','querySelector','shadowRoot','5571852EMpygb','12449980hMHlrh','3IAWkNA','gristConfig','63MZybya','sorters','open_param','rows','gutter','dataRevisionNo','styles'];a0_0xcf2a=function(){return _0x431280;};return a0_0xcf2a();}customElements[a0_0xf9b421(0x1f3)](a0_0xf9b421(0x1e7),HistoryJsonListPopup);
@@ -1,71 +1,4 @@
1
- var a0_0x49b637 = a0_0x17ab
2
- ;(function (_0x3e2bbc, _0x2bc18b) {
3
- var _0x4b5384 = a0_0x17ab,
4
- _0x770013 = _0x3e2bbc()
5
- while (!![]) {
6
- try {
7
- var _0xe7f177 =
8
- (parseInt(_0x4b5384(0x184)) / 0x1) * (parseInt(_0x4b5384(0x17f)) / 0x2) +
9
- -parseInt(_0x4b5384(0x17a)) / 0x3 +
10
- (-parseInt(_0x4b5384(0x176)) / 0x4) * (parseInt(_0x4b5384(0x172)) / 0x5) +
11
- (-parseInt(_0x4b5384(0x174)) / 0x6) * (-parseInt(_0x4b5384(0x181)) / 0x7) +
12
- (parseInt(_0x4b5384(0x178)) / 0x8) * (parseInt(_0x4b5384(0x17d)) / 0x9) +
13
- -parseInt(_0x4b5384(0x171)) / 0xa +
14
- parseInt(_0x4b5384(0x175)) / 0xb
15
- if (_0xe7f177 === _0x2bc18b) break
16
- else _0x770013['push'](_0x770013['shift']())
17
- } catch (_0x4a916f) {
18
- _0x770013['push'](_0x770013['shift']())
19
- }
20
- }
21
- })(a0_0x2c7f, 0xd0426)
22
- import { css, html } from 'lit'
23
- import { i18next, localize } from '@things-factory/i18n-base'
24
- function a0_0x2c7f() {
25
- var _0x289c08 = [
26
- '16800200cEHuYq',
27
- '5rbfrOE',
28
- 'loading-page',
29
- '66qkJyKV',
30
- '10862984bZzKgr',
31
- '1480804SJBhVe',
32
- 'tText',
33
- '103192XJGYpn',
34
- 'context',
35
- '3303837DyyXfq',
36
- 'customElements',
37
- 'render',
38
- '954dGQbMT',
39
- 'loading\x20page',
40
- '2welqzC',
41
- 'styles',
42
- '523747WIyxwb',
43
- 'please\x20wait',
44
- 'define',
45
- '826661hJpNBu'
46
- ]
47
- a0_0x2c7f = function () {
48
- return _0x289c08
49
- }
50
- return a0_0x2c7f()
51
- }
52
- import { PageView } from '@things-factory/shell'
53
- function a0_0x17ab(_0x4f3599, _0x38d297) {
54
- var _0x2c7f28 = a0_0x2c7f()
55
- return (
56
- (a0_0x17ab = function (_0x17abb4, _0x729050) {
57
- _0x17abb4 = _0x17abb4 - 0x171
58
- var _0x9b99ad = _0x2c7f28[_0x17abb4]
59
- return _0x9b99ad
60
- }),
61
- a0_0x17ab(_0x4f3599, _0x38d297)
62
- )
63
- }
64
- import { TermsUtil } from '../utils/terms-util'
65
- class LoadingPage extends localize(i18next)(PageView) {
66
- static get [a0_0x49b637(0x180)]() {
67
- return [
68
- css`
1
+ var a0_0x30058f=a0_0x463f;(function(_0x29cb04,_0x58723e){var _0x854a26=a0_0x463f,_0x559cfe=_0x29cb04();while(!![]){try{var _0x431b39=-parseInt(_0x854a26(0xc7))/0x1+parseInt(_0x854a26(0xbd))/0x2*(-parseInt(_0x854a26(0xb6))/0x3)+parseInt(_0x854a26(0xbe))/0x4+-parseInt(_0x854a26(0xbf))/0x5+parseInt(_0x854a26(0xc2))/0x6*(parseInt(_0x854a26(0xc3))/0x7)+-parseInt(_0x854a26(0xc5))/0x8*(-parseInt(_0x854a26(0xb9))/0x9)+-parseInt(_0x854a26(0xbc))/0xa*(parseInt(_0x854a26(0xba))/0xb);if(_0x431b39===_0x58723e)break;else _0x559cfe['push'](_0x559cfe['shift']());}catch(_0x11e104){_0x559cfe['push'](_0x559cfe['shift']());}}}(a0_0x2712,0x22ff0));import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x2712(){var _0x3a62a5=['tText','93432TGBgWw','3zlVErr','render','context','3474Bdvlyb','1133npAMmW','styles','16670Lqxwcv','1630AlRUoa','1068152kaAMoa','629760lvKtmn','loading-page','customElements','165498qwUihA','28CUbZWw','loading\x20page','3272qppLPN'];a0_0x2712=function(){return _0x3a62a5;};return a0_0x2712();}import{PageView}from'@things-factory/shell';import{TermsUtil}from'../utils/terms-util';function a0_0x463f(_0x1574e0,_0x3c0cb0){var _0x271207=a0_0x2712();return a0_0x463f=function(_0x463f43,_0x15bfa1){_0x463f43=_0x463f43-0xb6;var _0x5e926c=_0x271207[_0x463f43];return _0x5e926c;},a0_0x463f(_0x1574e0,_0x3c0cb0);}class LoadingPage extends localize(i18next)(PageView){static get[a0_0x30058f(0xbb)](){return[css`
69
2
  :host {
70
3
  display: block;
71
4
  background-color: var(--main-section-background-color);
@@ -108,20 +41,11 @@ class LoadingPage extends localize(i18next)(PageView) {
108
41
  display: none;
109
42
  }
110
43
  }
111
- `
112
- ]
113
- }
114
- get [a0_0x49b637(0x179)]() {
115
- return { title: 'Loading\x20...', actions: [] }
116
- }
117
- [a0_0x49b637(0x17c)]() {
118
- var _0x5629a2 = a0_0x49b637
119
- return html`
120
- <h2>${TermsUtil[_0x5629a2(0x177)](_0x5629a2(0x17e))}</h2>
121
- <p page-description>${TermsUtil['tText'](_0x5629a2(0x182))}</p>
122
-
44
+ `];}get[a0_0x30058f(0xb8)](){return{'title':'Loading\x20...','actions':[]};}[a0_0x30058f(0xb7)](){var _0x404ead=a0_0x30058f;return html`
45
+ <h2>${TermsUtil[_0x404ead(0xc6)](_0x404ead(0xc4))}</h2>
46
+ <p page-description>
47
+ ${TermsUtil[_0x404ead(0xc6)]('please\x20wait')}
48
+ </p>
49
+
123
50
  <img src="/assets/images/loading-page.png" />
124
- `
125
- }
126
- }
127
- window[a0_0x49b637(0x17b)][a0_0x49b637(0x183)](a0_0x49b637(0x173), LoadingPage)
51
+ `;}}window[a0_0x30058f(0xc1)]['define'](a0_0x30058f(0xc0),LoadingPage);