@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,179 +1,38 @@
1
- const a0_0x2ce54a = a0_0x381e
2
- ;(function (_0x5dc51c, _0xff61c4) {
3
- const _0x3a0c35 = a0_0x381e,
4
- _0x1ca716 = _0x5dc51c()
5
- while (!![]) {
6
- try {
7
- const _0x1cf338 =
8
- parseInt(_0x3a0c35(0x114)) / 0x1 +
9
- parseInt(_0x3a0c35(0x118)) / 0x2 +
10
- (parseInt(_0x3a0c35(0x116)) / 0x3) * (-parseInt(_0x3a0c35(0xf8)) / 0x4) +
11
- -parseInt(_0x3a0c35(0xf2)) / 0x5 +
12
- parseInt(_0x3a0c35(0x103)) / 0x6 +
13
- -parseInt(_0x3a0c35(0x10d)) / 0x7 +
14
- parseInt(_0x3a0c35(0x109)) / 0x8
15
- if (_0x1cf338 === _0xff61c4) break
16
- else _0x1ca716['push'](_0x1ca716['shift']())
17
- } catch (_0x3858aa) {
18
- _0x1ca716['push'](_0x1ca716['shift']())
19
- }
20
- }
21
- })(a0_0x3824, 0x9ad28)
22
- import a0_0x1e119b from 'graphql-tag'
23
- import { store } from '@operato/shell'
24
- function a0_0x3824() {
25
- const _0x41df29 = [
26
- 'notify',
27
- 'confirm',
28
- 'querySelector',
29
- '6401276CGNACX',
30
- 'error.invalid\x20license\x20key',
31
- 'dispatchEvent',
32
- 'tButton',
33
- 'bind',
34
- 'text.there_is_nothing_to_save',
35
- 'properties',
36
- '859570JvwDBG',
37
- 'firstUpdated',
38
- '1809957mwHmmJ',
39
- 'error',
40
- '640836wqYFWM',
41
- 'ox-input-code',
42
- '1437365TJdJzi',
43
- 'styles',
44
- 'back',
45
- 'title',
46
- 'info',
47
- 'text.nothing_changed',
48
- '8zaWluA',
49
- 'getState',
50
- 'orgValue',
51
- 'updateMultipleMenu',
52
- 'metaUI',
53
- 'define',
54
- 'template',
55
- 'codeEditor',
56
- 'showAlertPopup',
57
- 'codeValueNew',
58
- 'menu',
59
- '4949160EqmHhP',
60
- 'save',
61
- 'render',
62
- 'value',
63
- 'query',
64
- 'recordId',
65
- '8303064MLdXsm'
66
- ]
67
- a0_0x3824 = function () {
68
- return _0x41df29
69
- }
70
- return a0_0x3824()
71
- }
72
- import { client } from '@operato/graphql'
73
- import { css, html, LitElement } from 'lit'
74
- import { i18next, localize } from '@operato/i18n'
75
- import { ScrollbarStyles } from '@operato/styles'
76
- import '@operato/input/ox-input-code.js'
77
- function a0_0x381e(_0x236d24, _0x3e2f11) {
78
- const _0x382445 = a0_0x3824()
79
- return (
80
- (a0_0x381e = function (_0x381e40, _0x45177c) {
81
- _0x381e40 = _0x381e40 - 0xf1
82
- let _0xa53e0e = _0x382445[_0x381e40]
83
- return _0xa53e0e
84
- }),
85
- a0_0x381e(_0x236d24, _0x3e2f11)
86
- )
87
- }
88
- import { TermsUtil } from './../../utils/terms-util'
89
- import { MetaApi } from '../../utils/meta-api'
90
- class DynamicMenuTemplate extends localize(i18next)(LitElement) {
91
- static get [a0_0x2ce54a(0x113)]() {
92
- return { title: String, recordId: String }
93
- }
94
- static get [a0_0x2ce54a(0xf3)]() {
95
- return [
96
- ScrollbarStyles,
97
- css`
98
- :host {
99
- display: flex;
100
- flex-direction: column;
101
- overflow-x: overlay;
102
- background-color: var(--main-section-background-color);
103
- }
104
- legend {
105
- margin: 10px;
106
- text-transform: capitalize;
107
- padding: var(--legend-padding);
108
- font: var(--legend-font);
109
- color: var(--legend-text-color);
110
- border-bottom: var(--legend-border-bottom);
111
- }
112
- ox-input-code {
113
- margin: 10px;
114
- overflow-y: auto;
115
- flex: 1;
116
- }
117
- .button-container {
118
- padding: var(--button-container-padding);
119
- margin: var(--button-container-margin);
120
- text-align: var(--button-container-align);
121
- background-color: var(--button-container-background);
122
- height: var(--button-container-height);
123
- text-align: right;
124
- padding-right: 12px;
125
- }
126
- `
127
- ]
128
- }
129
- async [a0_0x2ce54a(0x115)]() {
130
- const _0x514eb6 = a0_0x2ce54a
131
- super[_0x514eb6(0x115)] && (await super[_0x514eb6(0x115)]())
132
- let _0x3819bd = await MetaApi['findOne'](_0x514eb6(0x102), this[_0x514eb6(0x108)], 'template'),
133
- _0x1f4052 = (_0x3819bd && _0x3819bd[_0x514eb6(0xfe)]) || ''
134
- ;(this[_0x514eb6(0xff)][_0x514eb6(0x106)] = _0x1f4052),
135
- (this[_0x514eb6(0xff)][_0x514eb6(0xfa)] = this[_0x514eb6(0xff)]['value'])
136
- }
137
- [a0_0x2ce54a(0x105)]() {
138
- const _0x51d08e = a0_0x2ce54a
139
- return html` <legend>${this[_0x51d08e(0xf5)]}</legend>
140
- <ox-input-code mode="javascript" value=${this[_0x51d08e(0x101)]} tab-size="2" tab-as-space="true"></ox-input-code>
1
+ const a0_0x3b0f87=a0_0x479d;(function(_0x3956bf,_0x4f31a4){const _0x598136=a0_0x479d,_0x322a12=_0x3956bf();while(!![]){try{const _0x1d8115=parseInt(_0x598136(0x1a3))/0x1*(parseInt(_0x598136(0x1a4))/0x2)+parseInt(_0x598136(0x190))/0x3+-parseInt(_0x598136(0x17c))/0x4*(parseInt(_0x598136(0x196))/0x5)+parseInt(_0x598136(0x17e))/0x6*(-parseInt(_0x598136(0x1a0))/0x7)+parseInt(_0x598136(0x18e))/0x8*(-parseInt(_0x598136(0x19e))/0x9)+-parseInt(_0x598136(0x17b))/0xa*(-parseInt(_0x598136(0x18b))/0xb)+parseInt(_0x598136(0x189))/0xc;if(_0x1d8115===_0x4f31a4)break;else _0x322a12['push'](_0x322a12['shift']());}catch(_0x379861){_0x322a12['push'](_0x322a12['shift']());}}}(a0_0x4779,0xaea63));import a0_0x4f22d1 from'graphql-tag';import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';function a0_0x479d(_0x447247,_0x1da280){const _0x4779c2=a0_0x4779();return a0_0x479d=function(_0x479df7,_0x4dddf0){_0x479df7=_0x479df7-0x17a;let _0x226fd8=_0x4779c2[_0x479df7];return _0x226fd8;},a0_0x479d(_0x447247,_0x1da280);}function a0_0x4779(){const _0x463564=['back','codeEditor','codeValueNew','95qAtoEM','dynamic-menu-template','studioPermission','save','orgValue','updateMultiple','confirm','tButton','230193iweqOA','value','1028363oOKxtf','findOne','updateMultipleMenu','4881RMUJPa','2ydYamJ','text.there_is_nothing_to_save','template','200570AKwwsv','51452wFlLMw','query','6Ncmjbe','getState','notify','error','showAlertPopup','menu','recordId','firstUpdated','render','text.nothing_changed','shadowRoot','12888000sDMNIQ','bind','11XKbmtd','styles','title','336XFtDJK','dispatchEvent','3245895DvlVcU','ox-input-code','metaUI'];a0_0x4779=function(){return _0x463564;};return a0_0x4779();}import{i18next,localize}from'@operato/i18n';import{ScrollbarStyles}from'@operato/styles';import'@operato/input/ox-input-code.js';import{TermsUtil}from'./../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get['properties'](){return{'title':String,'recordId':String};}static get[a0_0x3b0f87(0x18c)](){return[ScrollbarStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: overlay;
6
+ background-color: var(--main-section-background-color);
7
+ }
8
+ legend {
9
+ margin:10px;
10
+ text-transform: capitalize;
11
+ padding: var(--legend-padding);
12
+ font: var(--legend-font);
13
+ color: var(--legend-text-color);
14
+ border-bottom: var(--legend-border-bottom);
15
+ }
16
+ ox-input-code {
17
+ margin:10px;
18
+ overflow-y: auto;
19
+ flex: 1;
20
+ }
21
+ .button-container {
22
+ padding: var(--button-container-padding);
23
+ margin: var(--button-container-margin);
24
+ text-align: var(--button-container-align);
25
+ background-color: var(--button-container-background);
26
+ height: var(--button-container-height);
27
+ text-align: right;
28
+ padding-right: 12px;
29
+ }`];}async[a0_0x3b0f87(0x185)](){const _0x2316c8=a0_0x3b0f87;super[_0x2316c8(0x185)]&&await super[_0x2316c8(0x185)]();let _0x4a9f6e=await MetaApi[_0x2316c8(0x1a1)](_0x2316c8(0x183),this[_0x2316c8(0x184)],_0x2316c8(0x17a)),_0x3c0b82=_0x4a9f6e&&_0x4a9f6e['template']||'';this[_0x2316c8(0x194)][_0x2316c8(0x19f)]=_0x3c0b82,this[_0x2316c8(0x194)][_0x2316c8(0x19a)]=this[_0x2316c8(0x194)]['value'];}[a0_0x3b0f87(0x186)](){const _0xe5c3b7=a0_0x3b0f87;return html`
30
+ <legend>${this[_0xe5c3b7(0x18d)]}</legend>
31
+ <ox-input-code mode="javascript" value=${this[_0xe5c3b7(0x195)]} tab-size="2" tab-as-space="true"></ox-input-code>
141
32
  <div id="button-container" class="button-container">
142
- <!-- <mwc-button raised label="${TermsUtil[_0x51d08e(0x110)](_0x51d08e(0x104))}" @click=${this[
143
- _0x51d08e(0x104)
144
- ][_0x51d08e(0x111)](this)}></mwc-button> -->
145
- </div>`
146
- }
147
- get [a0_0x2ce54a(0xff)]() {
148
- const _0x10a2d1 = a0_0x2ce54a
149
- return this['shadowRoot'][_0x10a2d1(0x10c)](_0x10a2d1(0xf1))
150
- }
151
- async [a0_0x2ce54a(0x104)]() {
152
- const _0x2dfcc0 = a0_0x2ce54a
153
- if (this[_0x2dfcc0(0xff)][_0x2dfcc0(0xfa)] == this['codeEditor'][_0x2dfcc0(0x106)])
154
- return void MetaApi[_0x2dfcc0(0x100)](_0x2dfcc0(0xf7), _0x2dfcc0(0x112), _0x2dfcc0(0xf6), _0x2dfcc0(0x10b))
155
- if (0x0 == store[_0x2dfcc0(0xf9)]()[_0x2dfcc0(0xfc)]['studioPermission'])
156
- return void document[_0x2dfcc0(0x10f)](
157
- new CustomEvent(_0x2dfcc0(0x10a), {
158
- detail: { level: _0x2dfcc0(0x117), message: i18next['t'](_0x2dfcc0(0x10e)) }
159
- })
160
- )
161
- if (
162
- (
163
- await client[_0x2dfcc0(0x107)]({
164
- query: a0_0x1e119b`
33
+ <!-- <mwc-button raised label="${TermsUtil[_0xe5c3b7(0x19d)](_0xe5c3b7(0x199))}" @click=${this[_0xe5c3b7(0x199)][_0xe5c3b7(0x18a)](this)}></mwc-button> -->
34
+ </div>`;}get[a0_0x3b0f87(0x194)](){const _0x54e162=a0_0x3b0f87;return this[_0x54e162(0x188)]['querySelector'](_0x54e162(0x191));}async[a0_0x3b0f87(0x199)](){const _0x2f39c8=a0_0x3b0f87;if(this[_0x2f39c8(0x194)][_0x2f39c8(0x19a)]==this[_0x2f39c8(0x194)][_0x2f39c8(0x19f)])return void MetaApi[_0x2f39c8(0x182)](_0x2f39c8(0x187),_0x2f39c8(0x1a5),'info',_0x2f39c8(0x19c));if(0x0==store[_0x2f39c8(0x17f)]()[_0x2f39c8(0x192)][_0x2f39c8(0x198)])return void document[_0x2f39c8(0x18f)](new CustomEvent(_0x2f39c8(0x180),{'detail':{'level':_0x2f39c8(0x181),'message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client[_0x2f39c8(0x17d)]({'query':a0_0x4f22d1`
165
35
  query ($id: String!) {
166
36
  metaUITemplateIsOverLimit(id: $id)
167
37
  }
168
- `,
169
- variables: { id: this[_0x2dfcc0(0x108)] }
170
- })
171
- )['errors']
172
- )
173
- return
174
- let _0x1adac5 = this[_0x2dfcc0(0xff)][_0x2dfcc0(0x106)],
175
- _0x1b5be3 = [{ id: this[_0x2dfcc0(0x108)], template: _0x1adac5, cuFlag: 'M' }]
176
- ;(await MetaApi['updateMultiple'](_0x2dfcc0(0xfb), _0x1b5be3)) && history[_0x2dfcc0(0xf4)]()
177
- }
178
- }
179
- customElements[a0_0x2ce54a(0xfd)]('dynamic-menu-template', DynamicMenuTemplate)
38
+ `,'variables':{'id':this[_0x2f39c8(0x184)]}}))['errors'])return;let _0x187151=this['codeEditor'][_0x2f39c8(0x19f)],_0x2469c6=[{'id':this[_0x2f39c8(0x184)],'template':_0x187151,'cuFlag':'M'}];await MetaApi[_0x2f39c8(0x19b)](_0x2f39c8(0x1a2),_0x2469c6)&&history[_0x2f39c8(0x193)]();}}customElements['define'](a0_0x3b0f87(0x197),DynamicMenuTemplate);