@operato/scene-chartjs 2.0.0-beta.0 → 7.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -0
- package/dist/editors/property-editor-chartjs-abstract.d.ts +3 -3
- package/dist/editors/property-editor-chartjs-abstract.js +0 -8
- package/dist/editors/property-editor-chartjs-abstract.js.map +1 -1
- package/dist/editors/property-editor-chartjs-hbar.d.ts +3 -4
- package/dist/editors/property-editor-chartjs-hbar.js +38 -42
- package/dist/editors/property-editor-chartjs-hbar.js.map +1 -1
- package/dist/editors/property-editor-chartjs-mixed.d.ts +1 -1
- package/dist/editors/property-editor-chartjs-multi-series-abstract.d.ts +6 -8
- package/dist/editors/property-editor-chartjs-multi-series-abstract.js +90 -97
- package/dist/editors/property-editor-chartjs-multi-series-abstract.js.map +1 -1
- package/dist/editors/property-editor-chartjs-pie.d.ts +1 -1
- package/dist/editors/property-editor-chartjs-radar.d.ts +1 -1
- package/dist/editors/property-editor-chartjs-styles.js +35 -29
- package/dist/editors/property-editor-chartjs-styles.js.map +1 -1
- package/dist/editors/property-editor-chartjs.d.ts +1 -1
- package/dist/editors/property-editor-chartjs.js +3 -1
- package/dist/editors/property-editor-chartjs.js.map +1 -1
- package/dist/ox-chart.d.ts +1 -1
- package/package.json +2 -4
- package/schema.graphql +76 -43
- package/src/editors/property-editor-chartjs-abstract.ts +0 -12
- package/src/editors/property-editor-chartjs-hbar.ts +38 -44
- package/src/editors/property-editor-chartjs-multi-series-abstract.ts +111 -120
- package/src/editors/property-editor-chartjs-styles.ts +35 -29
- package/src/editors/property-editor-chartjs.ts +3 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/ox-chart.d.ts
CHANGED
@@ -10,7 +10,7 @@ export declare class OxChart extends LitElement {
|
|
10
10
|
private _chart?;
|
11
11
|
_canvas: HTMLCanvasElement;
|
12
12
|
firstUpdated(): void;
|
13
|
-
render(): import("lit").TemplateResult<1>;
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
14
14
|
updated(changes: PropertyValues<this>): void;
|
15
15
|
initChart(): void;
|
16
16
|
updateChartSize(): void;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@operato/scene-chartjs",
|
3
3
|
"description": "Things Scene ChartJS Component",
|
4
|
-
"version": "
|
4
|
+
"version": "7.0.0-rc.0",
|
5
5
|
"author": "heartyoh",
|
6
6
|
"main": "dist/index.js",
|
7
7
|
"module": "dist/index.js",
|
@@ -30,8 +30,6 @@
|
|
30
30
|
"@ctrl/tinycolor": "^3.1.6",
|
31
31
|
"@hatiolab/things-scene": "^3.2.0",
|
32
32
|
"@material/web": "^1.4.0",
|
33
|
-
"@polymer/iron-pages": "^3.0.1",
|
34
|
-
"@polymer/paper-tabs": "^3.1.0",
|
35
33
|
"@webcomponents/template": "^1.5.0",
|
36
34
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
37
35
|
"chart.js": "^2.9.4",
|
@@ -73,5 +71,5 @@
|
|
73
71
|
"prettier --write"
|
74
72
|
]
|
75
73
|
},
|
76
|
-
"gitHead": "
|
74
|
+
"gitHead": "40c22930ab65ec885f47a53429adc60e7f9c260f"
|
77
75
|
}
|
package/schema.graphql
CHANGED
@@ -29,7 +29,7 @@ type AppBinding {
|
|
29
29
|
email: EmailAddress!
|
30
30
|
id: ID!
|
31
31
|
locale: String
|
32
|
-
name: String
|
32
|
+
name: String
|
33
33
|
owner: Boolean
|
34
34
|
reference: String
|
35
35
|
refreshToken: String
|
@@ -133,7 +133,7 @@ type ApprovalLine {
|
|
133
133
|
createdAt: DateTimeISO
|
134
134
|
creator: User
|
135
135
|
description: String
|
136
|
-
domain: Domain
|
136
|
+
domain: Domain!
|
137
137
|
id: ID!
|
138
138
|
model: [ApprovalLineItem!]
|
139
139
|
name: String
|
@@ -283,11 +283,10 @@ type AuthProvider {
|
|
283
283
|
clientSecret: String
|
284
284
|
createdAt: DateTimeISO
|
285
285
|
creator: User
|
286
|
-
domain: Domain
|
286
|
+
domain: Domain!
|
287
287
|
id: ID!
|
288
288
|
params: Object
|
289
289
|
privateKey: String
|
290
|
-
state: String
|
291
290
|
tenantId: String
|
292
291
|
type: String
|
293
292
|
updatedAt: DateTimeISO
|
@@ -305,6 +304,7 @@ type AuthProviderParameterSpec {
|
|
305
304
|
name: String!
|
306
305
|
placeholder: String
|
307
306
|
property: Object
|
307
|
+
styles: Object
|
308
308
|
type: String!
|
309
309
|
}
|
310
310
|
|
@@ -411,7 +411,7 @@ type BoardTemplate {
|
|
411
411
|
createdAt: DateTimeISO
|
412
412
|
creator: User
|
413
413
|
description: String
|
414
|
-
domain: Domain
|
414
|
+
domain: Domain!
|
415
415
|
id: ID!
|
416
416
|
mine: Boolean!
|
417
417
|
model: String
|
@@ -462,7 +462,7 @@ type CommonCode {
|
|
462
462
|
creator: User
|
463
463
|
description: String
|
464
464
|
details: [CommonCodeDetail!]!
|
465
|
-
domain: Domain
|
465
|
+
domain: Domain!
|
466
466
|
id: ID!
|
467
467
|
name: String!
|
468
468
|
updatedAt: DateTimeISO
|
@@ -475,8 +475,9 @@ type CommonCodeDetail {
|
|
475
475
|
createdAt: DateTimeISO
|
476
476
|
creator: User
|
477
477
|
description: String
|
478
|
-
domain: Domain
|
478
|
+
domain: Domain!
|
479
479
|
id: ID!
|
480
|
+
labels: Object
|
480
481
|
name: String!
|
481
482
|
rank: Float
|
482
483
|
updatedAt: DateTimeISO
|
@@ -493,6 +494,7 @@ input CommonCodeDetailPatch {
|
|
493
494
|
cuFlag: String
|
494
495
|
description: String
|
495
496
|
id: ID
|
497
|
+
labels: Object
|
496
498
|
name: String
|
497
499
|
rank: Float
|
498
500
|
}
|
@@ -516,6 +518,7 @@ type Connection {
|
|
516
518
|
creator: User
|
517
519
|
description: String
|
518
520
|
domain: Domain
|
521
|
+
edge: Appliance
|
519
522
|
endpoint: String
|
520
523
|
id: ID!
|
521
524
|
name: String!
|
@@ -535,6 +538,7 @@ input ConnectionPatch {
|
|
535
538
|
active: Boolean
|
536
539
|
cuFlag: String
|
537
540
|
description: String
|
541
|
+
edge: ObjectRef
|
538
542
|
endpoint: String
|
539
543
|
id: ID
|
540
544
|
name: String
|
@@ -544,7 +548,8 @@ input ConnectionPatch {
|
|
544
548
|
|
545
549
|
type ConnectionState {
|
546
550
|
description: String
|
547
|
-
domain: Domain
|
551
|
+
domain: Domain!
|
552
|
+
edge: Appliance
|
548
553
|
id: String
|
549
554
|
name: String
|
550
555
|
state: String
|
@@ -573,7 +578,7 @@ type Contact {
|
|
573
578
|
creator: User
|
574
579
|
deletedAt: DateTimeISO
|
575
580
|
department: String
|
576
|
-
domain: Domain
|
581
|
+
domain: Domain!
|
577
582
|
email: EmailAddress
|
578
583
|
id: ID!
|
579
584
|
items: [ContactItem!]
|
@@ -644,7 +649,7 @@ type Department {
|
|
644
649
|
creator: User
|
645
650
|
deletedAt: DateTimeISO
|
646
651
|
description: String
|
647
|
-
domain: Domain
|
652
|
+
domain: Domain!
|
648
653
|
extension: String
|
649
654
|
id: ID!
|
650
655
|
manager: Employee
|
@@ -751,7 +756,7 @@ type Employee {
|
|
751
756
|
creator: User
|
752
757
|
deletedAt: DateTimeISO
|
753
758
|
department: Department
|
754
|
-
domain: Domain
|
759
|
+
domain: Domain!
|
755
760
|
email: EmailAddress
|
756
761
|
extension: String
|
757
762
|
hiredOn: String
|
@@ -817,7 +822,7 @@ type Entity {
|
|
817
822
|
dataProp: String
|
818
823
|
delStrategy: String
|
819
824
|
description: String
|
820
|
-
domain: Domain
|
825
|
+
domain: Domain!
|
821
826
|
extEntity: Boolean
|
822
827
|
fixedColumns: Float
|
823
828
|
id: ID!
|
@@ -842,7 +847,7 @@ type EntityColumn {
|
|
842
847
|
creator: User
|
843
848
|
defVal: String
|
844
849
|
description: String
|
845
|
-
domain: Domain
|
850
|
+
domain: Domain!
|
846
851
|
entity: Entity!
|
847
852
|
formEditor: String
|
848
853
|
formFormat: String
|
@@ -1015,7 +1020,7 @@ type Font {
|
|
1015
1020
|
active: Boolean!
|
1016
1021
|
createdAt: DateTimeISO
|
1017
1022
|
creator: User
|
1018
|
-
domain: Domain
|
1023
|
+
domain: Domain!
|
1019
1024
|
files: [Attachment!]
|
1020
1025
|
id: ID!
|
1021
1026
|
name: String!
|
@@ -1138,14 +1143,14 @@ type LoginHistoryList {
|
|
1138
1143
|
type Menu {
|
1139
1144
|
buttons: [MenuButton!]!
|
1140
1145
|
category: String
|
1141
|
-
children: [Menu!]!
|
1146
|
+
children(permittedOnly: Boolean! = false): [Menu!]!
|
1142
1147
|
columns: [MenuColumn!]!
|
1143
1148
|
createdAt: DateTimeISO
|
1144
1149
|
creator: User
|
1145
1150
|
description: String
|
1146
1151
|
detailFormId: String
|
1147
1152
|
detailLayout: String
|
1148
|
-
domain: Domain
|
1153
|
+
domain: Domain!
|
1149
1154
|
fixedColumns: Float
|
1150
1155
|
gridSaveUrl: String
|
1151
1156
|
hiddenFlag: Boolean
|
@@ -1157,6 +1162,7 @@ type Menu {
|
|
1157
1162
|
name: String
|
1158
1163
|
pagination: Boolean
|
1159
1164
|
parent: Menu
|
1165
|
+
privilege: PrivilegeObject
|
1160
1166
|
rank: Float
|
1161
1167
|
resourceId: String
|
1162
1168
|
resourceName: String
|
@@ -1178,7 +1184,7 @@ type MenuButton {
|
|
1178
1184
|
auth: String
|
1179
1185
|
createdAt: DateTimeISO
|
1180
1186
|
creator: User
|
1181
|
-
domain: Domain
|
1187
|
+
domain: Domain!
|
1182
1188
|
icon: String
|
1183
1189
|
id: ID!
|
1184
1190
|
logic: String
|
@@ -1213,7 +1219,7 @@ type MenuColumn {
|
|
1213
1219
|
creator: User
|
1214
1220
|
defVal: String
|
1215
1221
|
description: String
|
1216
|
-
domain: Domain
|
1222
|
+
domain: Domain!
|
1217
1223
|
extField: Boolean
|
1218
1224
|
formEditor: String
|
1219
1225
|
formFormat: String
|
@@ -1302,7 +1308,7 @@ type MenuDetail {
|
|
1302
1308
|
creator: User
|
1303
1309
|
customView: String
|
1304
1310
|
dataProp: String
|
1305
|
-
domain: Domain
|
1311
|
+
domain: Domain!
|
1306
1312
|
entityId: String
|
1307
1313
|
id: ID!
|
1308
1314
|
masterField: String
|
@@ -1319,7 +1325,7 @@ type MenuDetail {
|
|
1319
1325
|
type MenuDetailButton {
|
1320
1326
|
createdAt: DateTimeISO
|
1321
1327
|
creator: User
|
1322
|
-
domain: Domain
|
1328
|
+
domain: Domain!
|
1323
1329
|
icon: String
|
1324
1330
|
id: ID!
|
1325
1331
|
logic: String
|
@@ -1353,7 +1359,7 @@ type MenuDetailColumn {
|
|
1353
1359
|
creator: User
|
1354
1360
|
defVal: String
|
1355
1361
|
description: String
|
1356
|
-
domain: Domain
|
1362
|
+
domain: Domain!
|
1357
1363
|
extField: Boolean
|
1358
1364
|
formEditor: String
|
1359
1365
|
formFormat: String
|
@@ -1478,6 +1484,7 @@ input MenuPatch {
|
|
1478
1484
|
name: String
|
1479
1485
|
pagination: Boolean
|
1480
1486
|
parent: ObjectRef
|
1487
|
+
privilege: PrivilegeInput
|
1481
1488
|
rank: Int
|
1482
1489
|
resourceId: String
|
1483
1490
|
resourceName: String
|
@@ -1499,6 +1506,9 @@ type Mutation {
|
|
1499
1506
|
attachContact(contactId: String!, id: String!): Employee!
|
1500
1507
|
cancelInvitation(email: EmailAddress!, reference: String!, type: String!): Boolean!
|
1501
1508
|
|
1509
|
+
"""To clear translations cache"""
|
1510
|
+
clearTranslationsCache: Boolean!
|
1511
|
+
|
1502
1512
|
"""To clone a Board from existing Board"""
|
1503
1513
|
cloneBoard(id: String!, patch: BoardPatch!, targetGroupId: String, targetSubdomain: String!): Board!
|
1504
1514
|
|
@@ -1985,7 +1995,7 @@ type Mutation {
|
|
1985
1995
|
"""
|
1986
1996
|
To run new scenario instance and will return the result after the scenario stop.
|
1987
1997
|
"""
|
1988
|
-
runScenario(instanceName: String, scenarioName: String!, variables: Object):
|
1998
|
+
runScenario(instanceName: String, scenarioName: String!, variables: Object): ScenarioInstanceRunResult!
|
1989
1999
|
sendInvitation(email: EmailAddress!, reference: String!, type: String!): Invitation!
|
1990
2000
|
singleUpload(file: Upload!): Attachment!
|
1991
2001
|
|
@@ -2303,12 +2313,14 @@ input NewCommonCode {
|
|
2303
2313
|
input NewCommonCodeDetail {
|
2304
2314
|
commonCode: ObjectRef!
|
2305
2315
|
description: String
|
2316
|
+
labels: Object
|
2306
2317
|
name: String!
|
2307
2318
|
rank: Float!
|
2308
2319
|
}
|
2309
2320
|
|
2310
2321
|
input NewConnection {
|
2311
2322
|
description: String
|
2323
|
+
edge: ObjectRef
|
2312
2324
|
endpoint: String
|
2313
2325
|
name: String!
|
2314
2326
|
params: String
|
@@ -2450,6 +2462,7 @@ input NewMenu {
|
|
2450
2462
|
name: String!
|
2451
2463
|
pagination: Boolean
|
2452
2464
|
parent: ObjectRef
|
2465
|
+
privilege: PrivilegeInput
|
2453
2466
|
rank: Int
|
2454
2467
|
resourceId: String
|
2455
2468
|
resourceName: String
|
@@ -2666,6 +2679,7 @@ input NewScenario {
|
|
2666
2679
|
privilege: PrivilegeInput
|
2667
2680
|
schedule: String
|
2668
2681
|
timezone: String
|
2682
|
+
ttl: Float
|
2669
2683
|
type: String
|
2670
2684
|
}
|
2671
2685
|
|
@@ -2724,7 +2738,7 @@ type Notification {
|
|
2724
2738
|
body: String
|
2725
2739
|
createdAt: DateTimeISO
|
2726
2740
|
creator: User
|
2727
|
-
domain: Domain
|
2741
|
+
domain: Domain!
|
2728
2742
|
id: ID!
|
2729
2743
|
image: String
|
2730
2744
|
owner: User
|
@@ -2758,7 +2772,7 @@ type NotificationRule {
|
|
2758
2772
|
creator: User
|
2759
2773
|
deletedAt: DateTimeISO
|
2760
2774
|
description: String
|
2761
|
-
domain: Domain
|
2775
|
+
domain: Domain!
|
2762
2776
|
id: ID!
|
2763
2777
|
name: String
|
2764
2778
|
|
@@ -2815,7 +2829,7 @@ type Oauth2Client {
|
|
2815
2829
|
createdAt: DateTimeISO
|
2816
2830
|
creator: User
|
2817
2831
|
description: String
|
2818
|
-
domain: Domain
|
2832
|
+
domain: Domain!
|
2819
2833
|
expires: DateTimeISO
|
2820
2834
|
grantType: String
|
2821
2835
|
icon: String
|
@@ -2948,12 +2962,12 @@ input Pagination {
|
|
2948
2962
|
}
|
2949
2963
|
|
2950
2964
|
type Partner {
|
2951
|
-
approvedAt: DateTimeISO
|
2965
|
+
approvedAt: DateTimeISO
|
2952
2966
|
approver: User
|
2953
2967
|
domain: Domain!
|
2954
2968
|
id: ID!
|
2955
2969
|
partnerDomain: Domain!
|
2956
|
-
requestedAt: DateTimeISO
|
2970
|
+
requestedAt: DateTimeISO
|
2957
2971
|
requester: User
|
2958
2972
|
}
|
2959
2973
|
|
@@ -2968,7 +2982,7 @@ type PartnerSetting {
|
|
2968
2982
|
createdAt: DateTimeISO
|
2969
2983
|
creator: User
|
2970
2984
|
description: String
|
2971
|
-
domain: Domain
|
2985
|
+
domain: Domain!
|
2972
2986
|
id: ID!
|
2973
2987
|
name: String
|
2974
2988
|
partnerDomain: Domain
|
@@ -2997,7 +3011,7 @@ input PartnerSettingPatch {
|
|
2997
3011
|
type PayloadLog {
|
2998
3012
|
createdAt: DateTimeISO
|
2999
3013
|
creator: User
|
3000
|
-
domain: Domain
|
3014
|
+
domain: Domain!
|
3001
3015
|
endpoint: String!
|
3002
3016
|
id: ID!
|
3003
3017
|
name: String!
|
@@ -3163,6 +3177,7 @@ type PropertySpec {
|
|
3163
3177
|
name: String!
|
3164
3178
|
placeholder: String
|
3165
3179
|
property: Object
|
3180
|
+
styles: Object
|
3166
3181
|
type: String!
|
3167
3182
|
}
|
3168
3183
|
|
@@ -3309,6 +3324,9 @@ type Query {
|
|
3309
3324
|
"""To fetch domains with given privilege for user"""
|
3310
3325
|
domainsWithPrivilege(category: String!, privilege: String!): [Domain!]!
|
3311
3326
|
|
3327
|
+
"""To fetch multiple appliance"""
|
3328
|
+
edges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplianceList!
|
3329
|
+
|
3312
3330
|
"""To fetch a Employee"""
|
3313
3331
|
employee(id: String!): Employee
|
3314
3332
|
|
@@ -3415,12 +3433,12 @@ type Query {
|
|
3415
3433
|
myFavorites: [Favorite!]!
|
3416
3434
|
myLoginHistories(limit: Float!): [LoginHistory!]!
|
3417
3435
|
|
3436
|
+
"""To fetch my own Menus"""
|
3437
|
+
myMenus(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): MenuList!
|
3438
|
+
|
3418
3439
|
"""To fetch my notifications"""
|
3419
3440
|
myNotifications(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): NotificationList!
|
3420
3441
|
|
3421
|
-
"""To fetch current users privileges for current domain"""
|
3422
|
-
myPrivileges: [Privilege!]!
|
3423
|
-
|
3424
3442
|
"""To fetch roles of current user"""
|
3425
3443
|
myRoles: [Role!]!
|
3426
3444
|
|
@@ -3572,7 +3590,7 @@ type Role {
|
|
3572
3590
|
description: String
|
3573
3591
|
domain: Domain!
|
3574
3592
|
id: ID!
|
3575
|
-
name: String
|
3593
|
+
name: String
|
3576
3594
|
privileges: [Privilege!]
|
3577
3595
|
updatedAt: DateTimeISO
|
3578
3596
|
updater: User
|
@@ -3608,7 +3626,7 @@ type Scenario {
|
|
3608
3626
|
createdAt: DateTimeISO
|
3609
3627
|
creator: User
|
3610
3628
|
description: String
|
3611
|
-
domain: Domain
|
3629
|
+
domain: Domain!
|
3612
3630
|
id: ID!
|
3613
3631
|
instances: [ScenarioInstance!]
|
3614
3632
|
name: String!
|
@@ -3622,6 +3640,7 @@ type Scenario {
|
|
3622
3640
|
state: String
|
3623
3641
|
steps: [Step!]
|
3624
3642
|
timezone: String
|
3643
|
+
ttl: Float
|
3625
3644
|
type: String
|
3626
3645
|
updatedAt: DateTimeISO
|
3627
3646
|
updater: User
|
@@ -3654,6 +3673,17 @@ type ScenarioInstanceProgress {
|
|
3654
3673
|
steps: Int!
|
3655
3674
|
}
|
3656
3675
|
|
3676
|
+
type ScenarioInstanceRunResult {
|
3677
|
+
data: Object
|
3678
|
+
instanceName: String
|
3679
|
+
message: String
|
3680
|
+
result: Object
|
3681
|
+
scenarioName: String
|
3682
|
+
state: String
|
3683
|
+
timestamp: DateTimeISO
|
3684
|
+
variables: Object
|
3685
|
+
}
|
3686
|
+
|
3657
3687
|
type ScenarioInstanceState {
|
3658
3688
|
data: Object
|
3659
3689
|
domain: Domain
|
@@ -3690,6 +3720,7 @@ input ScenarioPatch {
|
|
3690
3720
|
schedule: String
|
3691
3721
|
steps: [StepPatch!]
|
3692
3722
|
timezone: String
|
3723
|
+
ttl: Float
|
3693
3724
|
type: String
|
3694
3725
|
}
|
3695
3726
|
|
@@ -3704,7 +3735,7 @@ type Setting {
|
|
3704
3735
|
createdAt: DateTimeISO
|
3705
3736
|
creator: User
|
3706
3737
|
description: String
|
3707
|
-
domain: Domain
|
3738
|
+
domain: Domain!
|
3708
3739
|
id: ID!
|
3709
3740
|
name: String!
|
3710
3741
|
updatedAt: DateTimeISO
|
@@ -3741,7 +3772,7 @@ type StateRegister {
|
|
3741
3772
|
createdAt: DateTimeISO
|
3742
3773
|
creator: User
|
3743
3774
|
description: String
|
3744
|
-
domain: Domain
|
3775
|
+
domain: Domain!
|
3745
3776
|
id: ID!
|
3746
3777
|
name: String
|
3747
3778
|
refBy: String
|
@@ -3841,13 +3872,15 @@ type TaskTypeList {
|
|
3841
3872
|
type Terminology {
|
3842
3873
|
category: String!
|
3843
3874
|
createdAt: DateTimeISO
|
3875
|
+
creator: User
|
3844
3876
|
description: String
|
3845
3877
|
display: String!
|
3846
|
-
domain: Domain
|
3878
|
+
domain: Domain!
|
3847
3879
|
id: ID!
|
3848
3880
|
locale: String!
|
3849
3881
|
name: String!
|
3850
3882
|
updatedAt: DateTimeISO
|
3883
|
+
updater: User
|
3851
3884
|
}
|
3852
3885
|
|
3853
3886
|
type TerminologyList {
|
@@ -3856,12 +3889,12 @@ type TerminologyList {
|
|
3856
3889
|
}
|
3857
3890
|
|
3858
3891
|
input TerminologyPatch {
|
3859
|
-
category: String
|
3892
|
+
category: String
|
3860
3893
|
cuFlag: String
|
3861
3894
|
description: String
|
3862
|
-
display: String
|
3895
|
+
display: String
|
3863
3896
|
id: ID
|
3864
|
-
locale: String
|
3897
|
+
locale: String
|
3865
3898
|
name: String
|
3866
3899
|
}
|
3867
3900
|
|
@@ -3872,7 +3905,7 @@ type Theme {
|
|
3872
3905
|
creator: User
|
3873
3906
|
deletedAt: DateTimeISO
|
3874
3907
|
description: String
|
3875
|
-
domain: Domain
|
3908
|
+
domain: Domain!
|
3876
3909
|
id: ID!
|
3877
3910
|
name: String
|
3878
3911
|
type: String
|
@@ -3912,7 +3945,7 @@ type User {
|
|
3912
3945
|
email: EmailAddress!
|
3913
3946
|
id: ID!
|
3914
3947
|
locale: String
|
3915
|
-
name: String
|
3948
|
+
name: String
|
3916
3949
|
owner: Boolean
|
3917
3950
|
reference: String
|
3918
3951
|
roles: [Role!]!
|
@@ -3953,7 +3986,7 @@ type UserRole {
|
|
3953
3986
|
type UsersAuthProviders {
|
3954
3987
|
authProvider: AuthProvider
|
3955
3988
|
createdAt: DateTimeISO
|
3956
|
-
domain: Domain
|
3989
|
+
domain: Domain!
|
3957
3990
|
id: ID!
|
3958
3991
|
ssoId: String
|
3959
3992
|
updatedAt: DateTimeISO
|
@@ -306,18 +306,6 @@ export default class PropertyEditorChartJSAbstract extends LitElement {
|
|
306
306
|
return String((element as HTMLInputElement).value)
|
307
307
|
}
|
308
308
|
|
309
|
-
case 'PAPER-BUTTON':
|
310
|
-
return (element as any).active
|
311
|
-
|
312
|
-
case 'PAPER-LISTBOX':
|
313
|
-
return (element as any).selected
|
314
|
-
|
315
|
-
case 'THINGS-EDITOR-MULTIPLE-COLOR':
|
316
|
-
return (element as any).values
|
317
|
-
|
318
|
-
case 'THINGS-EDITOR-ANGLE-INPUT':
|
319
|
-
return Number((element as any).radian) || 0
|
320
|
-
|
321
309
|
default:
|
322
310
|
return (element as any).value
|
323
311
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import '@material/web/icon/icon.js'
|
2
2
|
import '@material/web/button/elevated-button.js'
|
3
|
-
import '@
|
4
|
-
import '@polymer/iron-pages/iron-pages'
|
3
|
+
import '@material/web/tabs/tabs.js'
|
5
4
|
|
6
5
|
import '@operato/i18n/ox-i18n.js'
|
7
6
|
|
@@ -91,72 +90,67 @@ export default class PropertyEditorChartJSHBar extends PropertyEditorChartJSMult
|
|
91
90
|
return html`
|
92
91
|
<div id="series-properties-container" fullwidth>
|
93
92
|
<div id="tab-header">
|
94
|
-
<md-
|
93
|
+
<md-icon
|
95
94
|
id="tab-nav-left-button"
|
96
|
-
@
|
95
|
+
@tap=${(e: Event) => {
|
97
96
|
this._onTabScrollNavLeft(e)
|
98
97
|
}}
|
99
98
|
disabled
|
100
|
-
|
99
|
+
>chevron_left</md-icon
|
101
100
|
>
|
102
|
-
<
|
101
|
+
<div
|
103
102
|
id="tabs"
|
104
|
-
@
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
scrollable
|
109
|
-
hide-scroll-buttons
|
103
|
+
@change=${(e: Event) => {
|
104
|
+
this.currentSeriesIndex = (e.target as any).activeTabIndex
|
105
|
+
}}
|
106
|
+
active-tab-index=${this.currentSeriesIndex}
|
110
107
|
fit-container
|
111
108
|
>
|
112
109
|
${this.datasets.map(
|
113
110
|
(dataset: any, index: number) => html`
|
114
|
-
<
|
115
|
-
|
111
|
+
<div
|
112
|
+
data-series=${index + 1}
|
113
|
+
data-tab-index=${index}
|
114
|
+
tab
|
115
|
+
?selected=${index == this.currentSeriesIndex}
|
116
|
+
@click=${(e: Event) => {
|
117
|
+
const target = e.target as HTMLDivElement
|
118
|
+
this.currentSeriesIndex = Number(target.getAttribute('data-tab-index'))
|
119
|
+
}}
|
120
|
+
>
|
121
|
+
${index + 1}
|
116
122
|
${!this.datasets || (this.datasets.length != 1 && this.currentSeriesIndex == index)
|
117
|
-
? html`
|
118
|
-
<md-elevated-button @tap="${(e: Event) => this.onTapRemoveCurrentTab(e)}">
|
119
|
-
<md-icon>close</md-icon>
|
120
|
-
</md-elevated-button>
|
121
|
-
`
|
123
|
+
? html` <md-icon @tap="${(e: Event) => this.onTapRemoveCurrentTab(e)}"> close </md-icon> `
|
122
124
|
: html``}
|
123
|
-
</
|
125
|
+
</div>
|
124
126
|
`
|
125
127
|
)}
|
126
|
-
</
|
127
|
-
<md-
|
128
|
+
</div>
|
129
|
+
<md-icon
|
128
130
|
id="tab-nav-right-button"
|
129
131
|
@click=${(e: Event) => {
|
130
132
|
this._onTabScrollNavRight(e)
|
131
133
|
}}
|
132
134
|
disabled
|
133
|
-
|
135
|
+
>chevron_right</md-icon
|
134
136
|
>
|
135
137
|
</div>
|
136
138
|
<div id="add-series-button-container">
|
137
|
-
<md-
|
138
|
-
><md-icon>add</md-icon></md-elevated-button
|
139
|
-
>
|
139
|
+
<md-icon id="add-series-button" @tap=${(e: Event) => this.onTapAddTab(e)}>add</md-icon>
|
140
140
|
</div>
|
141
141
|
|
142
|
-
<
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
${this.displayValueTemplate()}
|
156
|
-
</div>
|
157
|
-
`
|
158
|
-
)}
|
159
|
-
</iron-pages>
|
142
|
+
<div class="tab-content">
|
143
|
+
<label> <ox-i18n msgid="label.data-key">Data Key</ox-i18n> </label>
|
144
|
+
<input type="text" value-key="dataKey" .value=${this.dataKey} />
|
145
|
+
<label> <ox-i18n msgid="label.label">Label</ox-i18n> </label>
|
146
|
+
<input type="text" value-key="series.label" .value=${this.series.label} />
|
147
|
+
<label> <ox-i18n msgid="label.color">Color</ox-i18n> </label>
|
148
|
+
<ox-input-color value-key="color" .value=${this.color}></ox-input-color>
|
149
|
+
<label> <ox-i18n msgid="label.stack-group">Stack Group</ox-i18n> </label>
|
150
|
+
<input type="text" value-key="series.stack" .value=${this.series.stack || ''} />
|
151
|
+
|
152
|
+
${this.displayValueTemplate()}
|
153
|
+
</div>
|
160
154
|
</div>
|
161
155
|
`
|
162
156
|
}
|