playbook_ui 12.25.0.pre.alpha.railsmultilevelimprovements776 → 12.25.0.pre.alpha.railsmultilevelimprovements780

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaefeb2f6dee2aa2ca4a688e1cfb3d4d98892380b6392085bbc1d568d95ba06e
4
- data.tar.gz: 8aff944c3691bdbf150827da3bb977f161178a0e5175d51d3699966bb31d799a
3
+ metadata.gz: e98f647fc3a00d950c467894321d7e0f6a3c613f8ebf35a13e0c2e610db0227c
4
+ data.tar.gz: 23b7e581115547784b1d76bfa4d2ce4bb4fbd6f95cbb979a24d0395b34702f8a
5
5
  SHA512:
6
- metadata.gz: e83ef28c4e79c7be64c9fe4c1d8f24ef39f7f39facb0de7c578f7774b2b347754f1e17b1b5fd59dfd5946daa4b6d73d0e782cefad19626ce9ef1a4dfe5a27f77
7
- data.tar.gz: 040f3d9438b9689d8b616e48bef5bf07d047662afcd0d5f42272b16c05a79dbb3f0f645e78191a0f8c89865923e7df436f27f2fd0013e5d52ea5dd1314140587
6
+ metadata.gz: 844d0ec90c293783e19b5b906a02383e01ea7396013fee83cf147fef3aade8ddd1961a90ee640b434347e47309bae1ab374901db7a92536cd9ca995571e12572
7
+ data.tar.gz: d2206f56648966107558a8221077e23c85132321a164622b3c98d044eebe7244242fd0260ba9eed3b7ad16a6522dedfb9db900ba37dff78b54e4177c032d735c
@@ -62,7 +62,7 @@ export const filterFormattedDataById = (
62
62
  const matched: { [key: string]: any }[] = [];
63
63
  const recursiveSearch = (data: { [key: string]: any }[], term: string) => {
64
64
  for (const item of data) {
65
- if (item.id.toLowerCase().includes(term.toLowerCase())) {
65
+ if (item.id.toLowerCase() === (term.toLowerCase())) {
66
66
  matched.push(item);
67
67
  }
68
68
 
@@ -206,7 +206,7 @@ export const removeChildrenIfParentChecked = (
206
206
  ) => {
207
207
  const childIds = getChildIds(items, defaultReturn);
208
208
  const filteredDefaultArray = defaultReturn.filter(
209
- (item: { [key: string]: any }) => !childIds.includes(item.id)
209
+ (item: { [key: string]: any }) => childIds !== item.id
210
210
  );
211
211
  setDefaultReturn([...filteredDefaultArray, items]);
212
212
  };
@@ -1,69 +1,636 @@
1
1
  <% treeData = [{
2
- label: "Power Home Remodeling",
3
- value: "Power Home Remodeling",
4
- id: "powerhome1",
5
- expanded: true,
6
-
2
+ checked: false,
7
3
  children: [
8
4
  {
9
- label: "People",
10
- value: "People",
11
- id: "people1",
5
+ checked: false,
12
6
  children: [
13
7
  {
8
+ checked: false,
9
+ children: [
10
+ {
11
+ checked: false,
12
+ children: [],
13
+ id: "401",
14
+ label: "Corporate Recruiting",
15
+ value: "Corporate Recruiting",
16
+ },
17
+ {
18
+ checked: false,
19
+ children: [],
20
+ id: "406",
21
+ label: "Install Partner Recruiting",
22
+ value: "Install Partner Recruiting",
23
+ },
24
+ {
25
+ checked: false,
26
+ children: [],
27
+ id: "411",
28
+ label: "Revenue Recruiting",
29
+ value: "Revenue Recruiting",
30
+ },
31
+ ],
32
+ id: "61",
14
33
  label: "Talent Acquisition",
15
34
  value: "Talent Acquisition",
16
- id: "talent1",
17
35
  },
18
36
  {
37
+ checked: false,
38
+ children: [
39
+ {
40
+ checked: false,
41
+ children: [],
42
+ id: "356",
43
+ label: "Business Affairs",
44
+ value: "Business Affairs",
45
+ },
46
+ {
47
+ checked: false,
48
+ children: [],
49
+ id: "361",
50
+ label: "HR Business Partners",
51
+ value: "HR Business Partners",
52
+ },
53
+ ],
54
+ id: "66",
19
55
  label: "Business Affairs",
20
56
  value: "Business Affairs",
21
- id: "business1",
57
+ },
58
+ {
59
+ checked: false,
22
60
  children: [
23
61
  {
62
+ checked: false,
63
+ children: [],
64
+ id: "366",
65
+ label: "Human Resources",
66
+ value: "Human Resources",
67
+ },
68
+ {
69
+ checked: false,
70
+ children: [],
71
+ id: "371",
24
72
  label: "Initiatives",
25
73
  value: "Initiatives",
26
- id: "initiative1",
27
74
  },
28
75
  {
29
- label: "Learning & Development",
30
- value: "Learning & Development",
31
- id: "development1",
76
+ checked: false,
77
+ children: [],
78
+ id: "376",
79
+ label: "Learning and Development",
80
+ value: "Learning and Development",
81
+ },
82
+ {
83
+ checked: false,
84
+ children: [],
85
+ id: "381",
86
+ label: "People Technology",
87
+ value: "People Technology",
32
88
  },
33
89
  ],
90
+ id: "71",
91
+ label: "People and Development",
92
+ value: "People and Development",
34
93
  },
35
94
  {
95
+ checked: false,
96
+ children: [
97
+ {
98
+ checked: false,
99
+ children: [],
100
+ id: "386",
101
+ label: "Engagement",
102
+ value: "Engagement",
103
+ },
104
+ {
105
+ checked: false,
106
+ children: [],
107
+ id: "391",
108
+ label: "Meeting Planning",
109
+ value: "Meeting Planning",
110
+ },
111
+ {
112
+ checked: false,
113
+ children: [],
114
+ id: "396",
115
+ label: "Special Events",
116
+ value: "Special Events",
117
+ },
118
+ ],
119
+ id: "186",
36
120
  label: "People Experience",
37
121
  value: "People Experience",
38
- id: "experience1",
39
122
  },
40
123
  ],
124
+ id: "6",
125
+ label: "People",
126
+ value: "People",
41
127
  },
42
128
  {
43
- label: "Contact Center",
44
- value: "Contact Center",
45
- id: "contact1",
129
+ checked: false,
46
130
  children: [
47
131
  {
132
+ checked: false,
133
+ children: [
134
+ {
135
+ checked: false,
136
+ children: [],
137
+ id: "301",
138
+ label: "Confirmation",
139
+ value: "Confirmation",
140
+ },
141
+ {
142
+ checked: false,
143
+ children: [],
144
+ id: "306",
145
+ label: "Inside Sales",
146
+ value: "Inside Sales",
147
+ },
148
+ {
149
+ checked: false,
150
+ children: [],
151
+ id: "311",
152
+ label: "Sales Support",
153
+ value: "Sales Support",
154
+ },
155
+ {
156
+ checked: false,
157
+ children: [],
158
+ id: "316",
159
+ label: "Scheduling",
160
+ value: "Scheduling",
161
+ },
162
+ ],
163
+ id: "81",
48
164
  label: "Appointment Management",
49
165
  value: "Appointment Management",
50
- id: "appointment1",
51
- },
52
- {
53
- label: "Customer Service",
54
- value: "Customer Service",
55
- id: "customer1",
56
166
  },
57
167
  {
168
+ checked: false,
169
+ children: [
170
+ {
171
+ checked: false,
172
+ children: [],
173
+ id: "321",
174
+ label: "Design",
175
+ value: "Design",
176
+ },
177
+ {
178
+ checked: false,
179
+ children: [],
180
+ id: "326",
181
+ label: "Policy",
182
+ value: "Policy",
183
+ },
184
+ ],
185
+ id: "191",
58
186
  label: "Energy",
59
187
  value: "Energy",
60
- id: "energy1",
61
188
  },
62
189
  ],
190
+ id: "11",
191
+ label: "Contact Center",
192
+ value: "Contact Center",
193
+ },
194
+ {
195
+ checked: false,
196
+ children: [
197
+ {
198
+ checked: false,
199
+ children: [
200
+ {
201
+ checked: false,
202
+ children: [],
203
+ id: "431",
204
+ label: "Analysts",
205
+ value: "Analysts",
206
+ },
207
+ {
208
+ checked: false,
209
+ children: [],
210
+ id: "441",
211
+ label: "Customer Development",
212
+ value: "Customer Development",
213
+ },
214
+ ],
215
+ id: "91",
216
+ label: "Customer Development",
217
+ value: "Customer Development",
218
+ },
219
+ {
220
+ checked: false,
221
+ children: [
222
+ {
223
+ checked: false,
224
+ children: [],
225
+ id: "446",
226
+ label: "Quality Assurance",
227
+ value: "Quality Assurance",
228
+ },
229
+ {
230
+ checked: false,
231
+ children: [],
232
+ id: "451",
233
+ label: "Sales",
234
+ value: "Sales",
235
+ },
236
+ ],
237
+ id: "96",
238
+ label: "Sales",
239
+ value: "Sales",
240
+ },
241
+ ],
242
+ id: "16",
243
+ label: "Revenue",
244
+ value: "Revenue",
245
+ },
246
+ {
247
+ checked: false,
248
+ children: [
249
+ {
250
+ checked: false,
251
+ children: [
252
+ {
253
+ checked: false,
254
+ children: [],
255
+ id: "416",
256
+ label: "Customer Support",
257
+ value: "Customer Support",
258
+ },
259
+ {
260
+ checked: false,
261
+ children: [],
262
+ id: "421",
263
+ label: "Quality Assurance Scheduling",
264
+ value: "Quality Assurance Scheduling",
265
+ },
266
+ ],
267
+ id: "106",
268
+ label: "Customer Support",
269
+ value: "Customer Support",
270
+ },
271
+ {
272
+ checked: false,
273
+ children: [
274
+ {
275
+ checked: false,
276
+ children: [],
277
+ id: "426",
278
+ label: "Production Management",
279
+ value: "Production Management",
280
+ },
281
+ ],
282
+ id: "211",
283
+ label: "Production Management",
284
+ value: "Production Management",
285
+ },
286
+ ],
287
+ id: "21",
288
+ label: "Project Services",
289
+ value: "Project Services",
290
+ },
291
+ {
292
+ checked: false,
293
+ children: [
294
+ {
295
+ checked: false,
296
+ children: [
297
+ {
298
+ checked: false,
299
+ children: [],
300
+ id: "456",
301
+ label: "Procurement",
302
+ value: "Procurement",
303
+ },
304
+ {
305
+ checked: false,
306
+ children: [],
307
+ id: "461",
308
+ label: "Warehousing",
309
+ value: "Warehousing",
310
+ },
311
+ ],
312
+ id: "206",
313
+ label: "Inventory Management",
314
+ value: "Inventory Management",
315
+ },
316
+ ],
317
+ id: "26",
318
+ label: "Supply Chain",
319
+ value: "Supply Chain",
320
+ },
321
+ {
322
+ checked: false,
323
+ children: [
324
+ {
325
+ checked: false,
326
+ children: [
327
+ {
328
+ checked: false,
329
+ children: [],
330
+ id: "341",
331
+ label: "Craftsman",
332
+ value: "Craftsman",
333
+ },
334
+ {
335
+ checked: false,
336
+ children: [],
337
+ id: "346",
338
+ label: "Installation Management",
339
+ value: "Installation Management",
340
+ },
341
+ ],
342
+ id: "121",
343
+ label: "Installation",
344
+ value: "Installation",
345
+ },
346
+ {
347
+ checked: false,
348
+ children: [
349
+ {
350
+ checked: false,
351
+ children: [],
352
+ id: "351",
353
+ label: "Service Management",
354
+ value: "Service Management",
355
+ },
356
+ ],
357
+ id: "126",
358
+ label: "Warranty",
359
+ value: "Warranty",
360
+ },
361
+ ],
362
+ id: "31",
363
+ label: "Installation Services",
364
+ value: "Installation Services",
365
+ },
366
+ {
367
+ checked: false,
368
+ children: [
369
+ {
370
+ checked: false,
371
+ children: [
372
+ {
373
+ checked: false,
374
+ children: [],
375
+ id: "331",
376
+ label: "Accounting",
377
+ value: "Accounting",
378
+ },
379
+ ],
380
+ id: "131",
381
+ label: "Accounting",
382
+ value: "Accounting",
383
+ },
384
+ {
385
+ checked: false,
386
+ children: [
387
+ {
388
+ checked: false,
389
+ children: [],
390
+ id: "336",
391
+ label: "Payroll",
392
+ value: "Payroll",
393
+ },
394
+ ],
395
+ id: "141",
396
+ label: "Payroll",
397
+ value: "Payroll",
398
+ },
399
+ ],
400
+ id: "36",
401
+ label: "Corporate Finance",
402
+ value: "Corporate Finance",
403
+ },
404
+ {
405
+ checked: false,
406
+ children: [
407
+ {
408
+ checked: false,
409
+ children: [
410
+ {
411
+ checked: false,
412
+ children: [],
413
+ id: "236",
414
+ label: "Legal",
415
+ value: "Legal",
416
+ },
417
+ ],
418
+ id: "146",
419
+ label: "Legal",
420
+ value: "Legal",
421
+ },
422
+ {
423
+ checked: false,
424
+ children: [
425
+ {
426
+ checked: false,
427
+ children: [],
428
+ id: "226",
429
+ label: "Executive",
430
+ value: "Executive",
431
+ },
432
+ {
433
+ checked: false,
434
+ children: [],
435
+ id: "231",
436
+ label: "Administrative",
437
+ value: "Administrative",
438
+ },
439
+ ],
440
+ id: "201",
441
+ label: "Executive",
442
+ value: "Executive",
443
+ },
444
+ ],
445
+ id: "41",
446
+ label: "Advisory",
447
+ value: "Advisory",
448
+ },
449
+ {
450
+ checked: false,
451
+ children: [
452
+ {
453
+ checked: false,
454
+ children: [
455
+ {
456
+ checked: false,
457
+ children: [],
458
+ id: "276",
459
+ label: "Product Management",
460
+ value: "Product Management",
461
+ },
462
+ {
463
+ checked: false,
464
+ children: [],
465
+ id: "281",
466
+ label: "User Experience",
467
+ value: "User Experience",
468
+ },
469
+ ],
470
+ id: "151",
471
+ label: "Product",
472
+ value: "Product",
473
+ },
474
+ {
475
+ checked: false,
476
+ children: [
477
+ {
478
+ checked: false,
479
+ children: [],
480
+ id: "251",
481
+ label: "Agile",
482
+ value: "Agile",
483
+ },
484
+ {
485
+ checked: false,
486
+ children: [],
487
+ id: "256",
488
+ label: "Development",
489
+ value: "Development",
490
+ },
491
+ {
492
+ checked: false,
493
+ children: [],
494
+ id: "261",
495
+ label: "Site Reliability Engineering",
496
+ value: "Site Reliability Engineering",
497
+ },
498
+ ],
499
+ id: "156",
500
+ label: "Delivery",
501
+ value: "Delivery",
502
+ },
503
+ {
504
+ checked: false,
505
+ children: [
506
+ {
507
+ checked: false,
508
+ children: [],
509
+ id: "286",
510
+ label: "Asset Management",
511
+ value: "Asset Management",
512
+ },
513
+ {
514
+ checked: false,
515
+ children: [],
516
+ id: "291",
517
+ label: "Nitro Support",
518
+ value: "Nitro Support",
519
+ },
520
+ {
521
+ checked: false,
522
+ children: [],
523
+ id: "296",
524
+ label: "Technical Support",
525
+ value: "Technical Support",
526
+ },
527
+ ],
528
+ id: "161",
529
+ label: "Support",
530
+ value: "Support",
531
+ },
532
+ {
533
+ checked: false,
534
+ children: [
535
+ {
536
+ checked: false,
537
+ children: [],
538
+ id: "266",
539
+ label: "Facility Management",
540
+ value: "Facility Management",
541
+ },
542
+ {
543
+ checked: false,
544
+ children: [],
545
+ id: "271",
546
+ label: "Real Estate Development",
547
+ value: "Real Estate Development",
548
+ },
549
+ ],
550
+ id: "181",
551
+ label: "Facilities",
552
+ value: "Facilities",
553
+ },
554
+ {
555
+ checked: false,
556
+ children: [
557
+ {
558
+ checked: false,
559
+ children: [],
560
+ id: "246",
561
+ label: "Business Intelligence",
562
+ value: "Business Intelligence",
563
+ },
564
+ ],
565
+ id: "196",
566
+ label: "Analytics",
567
+ value: "Analytics",
568
+ },
569
+ ],
570
+ id: "46",
571
+ label: "Business Technologies",
572
+ value: "Business Technologies",
573
+ },
574
+ {
575
+ checked: false,
576
+ children: [
577
+ {
578
+ checked: false,
579
+ children: [
580
+ {
581
+ checked: false,
582
+ children: [],
583
+ id: "241",
584
+ label: "Communications",
585
+ value: "Communications",
586
+ },
587
+ ],
588
+ id: "171",
589
+ label: "Communications",
590
+ value: "Communications",
591
+ },
592
+ {
593
+ checked: false,
594
+ children: [
595
+ {
596
+ checked: false,
597
+ children: [],
598
+ id: "471",
599
+ label: "Public Relations",
600
+ value: "Public Relations",
601
+ },
602
+ ],
603
+ id: "216",
604
+ label: "Public Relations",
605
+ value: "Public Relations",
606
+ },
607
+ {
608
+ checked: false,
609
+ children: [
610
+ {
611
+ checked: false,
612
+ children: [],
613
+ id: "466",
614
+ label: "Media Arts",
615
+ value: "Media Arts",
616
+ },
617
+ ],
618
+ id: "221",
619
+ label: "Media Arts",
620
+ value: "Media Arts",
621
+ },
622
+ ],
623
+ id: "51",
624
+ label: "Brand and Communications",
625
+ value: "Brand and Communications",
63
626
  },
64
627
  ],
65
- }] %>
66
-
628
+ id: "1",
629
+ label: "Power Home Remodeling",
630
+ value: "Power Home Remodeling",
631
+ },
632
+ ]
633
+ %>
67
634
 
68
635
  <%= pb_rails("multi_level_select", props: {
69
636
  id: "parent-persistence-multi-level-select",