@experium/findy-form 1.2.34 → 1.2.35

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.
@@ -143,7 +143,7 @@ var getFieldComponent = function getFieldComponent(field, components) {
143
143
  dictionary: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
144
144
  phone: _MaskedInput.PhoneInput,
145
145
  "boolean": _Checkbox.Boolean,
146
- choice: _Select["default"],
146
+ choice: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
147
147
  country: _Select.LocationSelect,
148
148
  region: _Select.LocationSelect,
149
149
  city: _Select.LocationSelect,
@@ -258,7 +258,7 @@ var Select = /*#__PURE__*/function (_Component) {
258
258
  }, isError ? {
259
259
  open: false
260
260
  } : {}, {
261
- virtual: true,
261
+ virtual: false,
262
262
  allowClear: true,
263
263
  showArrow: true,
264
264
  getPopupContainer: function getPopupContainer() {
@@ -395,16 +395,16 @@ var TRANSLATIONS = {
395
395
  },
396
396
  lt: {
397
397
  translation: {
398
- 'send': 'Iesniegt',
398
+ 'send': 'Pateikti',
399
399
  'addQuestionBlock': 'Pievienot',
400
- 'remove': 'Noņemt',
400
+ 'remove': 'Pašalinti',
401
401
  'optional': ' (neobligāti)',
402
402
  'cancel': 'Atcelt',
403
403
  'save': 'Saglabāt',
404
404
  'stopRecording': 'Pārtraukt ierakstīšanu',
405
405
  'startRecording': 'Sākt ierakstīšanu',
406
- 'upload': 'Augšupielādēt',
407
- 'download': 'Lejupielādēt',
406
+ 'upload': 'Įkelti',
407
+ 'download': 'Parsisiųsti',
408
408
  'recordAudio': 'Ierakstīt audio',
409
409
  'recordVideo': 'Ierakstīt video',
410
410
  'takePhoto': 'Uzņemt attēlu',
@@ -415,40 +415,40 @@ var TRANSLATIONS = {
415
415
  'opdOffertaLink': 'publiskais piedāvājums',
416
416
  'MONTHS': [{
417
417
  value: 1,
418
- label: 'Janvāris'
418
+ label: 'Sausis'
419
419
  }, {
420
420
  value: 2,
421
- label: 'Februāris'
421
+ label: 'Vasaris'
422
422
  }, {
423
423
  value: 3,
424
- label: 'Martā'
424
+ label: 'Kovas'
425
425
  }, {
426
426
  value: 4,
427
- label: 'Aprīlis'
427
+ label: 'Balandis'
428
428
  }, {
429
429
  value: 5,
430
- label: 'Maijs'
430
+ label: 'Gegužė'
431
431
  }, {
432
432
  value: 6,
433
- label: 'Jūnijs'
433
+ label: 'Birželis'
434
434
  }, {
435
435
  value: 7,
436
- label: 'Jūlijs'
436
+ label: 'Liepa'
437
437
  }, {
438
438
  value: 8,
439
- label: 'Augusts'
439
+ label: 'Rugpjūtis'
440
440
  }, {
441
441
  value: 9,
442
- label: 'Septembris'
442
+ label: 'Rugsėjis'
443
443
  }, {
444
444
  value: 10,
445
- label: 'Oktobris'
445
+ label: 'Spalis'
446
446
  }, {
447
447
  value: 11,
448
- label: 'Novembrī'
448
+ label: 'Lapkritis'
449
449
  }, {
450
450
  value: 12,
451
- label: 'Decembris'
451
+ label: 'Gruodis'
452
452
  }],
453
453
  'loading': 'Notiek ielāde...',
454
454
  'noOptionsMessage': 'Nav datu',
@@ -457,7 +457,7 @@ var TRANSLATIONS = {
457
457
  'datePicker': {
458
458
  'day': 'Diena',
459
459
  'month': 'Mēnesis',
460
- 'year': 'Gads'
460
+ 'year': 'Metai'
461
461
  },
462
462
  'salaryCurrency': 'Atlasiet valūtu...'
463
463
  },
@@ -371,11 +371,6 @@
371
371
  box-sizing: content-box;
372
372
  }
373
373
 
374
- .radio-wrapper .rc-checkbox-inner:after {
375
- margin-top: -1px;
376
- margin-left: -1px;
377
- }
378
-
379
374
  .radio-wrapper .rc-checkbox-inner {
380
375
  border-radius: 50%;
381
376
  }
@@ -420,7 +415,7 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
420
415
  border-color: #3a70ba;
421
416
  }
422
417
 
423
- .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
418
+ .pda-modal .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
424
419
  left: 4px;
425
420
  top: 1px;
426
421
  width: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "main": "./lib/index.js",
5
5
  "homepage": "https://experium.github.io/findy-form",
6
6
  "repository": "https://github.com/experium/findy-form",
@@ -47,7 +47,9 @@ const getFieldComponent = (field, components) => {
47
47
  ) : Select,
48
48
  phone: PhoneInput,
49
49
  boolean: Boolean,
50
- choice: Select,
50
+ choice: prop('checkboxes', settings) ? (
51
+ prop('multiple', settings) ? Checkbox : Radio
52
+ ) : Select,
51
53
  country: LocationSelect,
52
54
  region: LocationSelect,
53
55
  city: LocationSelect,
@@ -166,7 +166,7 @@ class Select extends Component {
166
166
  options={options}
167
167
  mode={multiple ? 'multiple' : 'single'}
168
168
  {...(isError ? { open: false } : {})}
169
- virtual
169
+ virtual={false}
170
170
  allowClear
171
171
  showArrow
172
172
  getPopupContainer={() => this.selectContainer.current}
@@ -296,16 +296,16 @@ export const TRANSLATIONS = {
296
296
  },
297
297
  lt: {
298
298
  translation: {
299
- 'send': 'Iesniegt',
299
+ 'send': 'Pateikti',
300
300
  'addQuestionBlock': 'Pievienot',
301
- 'remove': 'Noņemt',
301
+ 'remove': 'Pašalinti',
302
302
  'optional': ' (neobligāti)',
303
303
  'cancel': 'Atcelt',
304
304
  'save': 'Saglabāt',
305
305
  'stopRecording': 'Pārtraukt ierakstīšanu',
306
306
  'startRecording': 'Sākt ierakstīšanu',
307
- 'upload': 'Augšupielādēt',
308
- 'download': 'Lejupielādēt',
307
+ 'upload': 'Įkelti',
308
+ 'download': 'Parsisiųsti',
309
309
  'recordAudio': 'Ierakstīt audio',
310
310
  'recordVideo': 'Ierakstīt video',
311
311
  'takePhoto': 'Uzņemt attēlu',
@@ -315,18 +315,18 @@ export const TRANSLATIONS = {
315
315
  'opdOffertaLabel': 'Es piekrītu noteikumiem',
316
316
  'opdOffertaLink': 'publiskais piedāvājums',
317
317
  'MONTHS': [
318
- { value: 1, label: 'Janvāris' },
319
- { value: 2, label: 'Februāris' },
320
- { value: 3, label: 'Martā' },
321
- { value: 4, label: 'Aprīlis' },
322
- { value: 5, label: 'Maijs' },
323
- { value: 6, label: 'Jūnijs' },
324
- { value: 7, label: 'Jūlijs' },
325
- { value: 8, label: 'Augusts' },
326
- { value: 9, label: 'Septembris' },
327
- { value: 10, label: 'Oktobris' },
328
- { value: 11, label: 'Novembrī' },
329
- { value: 12, label: 'Decembris' }
318
+ { value: 1, label: 'Sausis' },
319
+ { value: 2, label: 'Vasaris' },
320
+ { value: 3, label: 'Kovas' },
321
+ { value: 4, label: 'Balandis' },
322
+ { value: 5, label: 'Gegužė' },
323
+ { value: 6, label: 'Birželis' },
324
+ { value: 7, label: 'Liepa' },
325
+ { value: 8, label: 'Rugpjūtis' },
326
+ { value: 9, label: 'Rugsėjis' },
327
+ { value: 10, label: 'Spalis' },
328
+ { value: 11, label: 'Lapkritis' },
329
+ { value: 12, label: 'Gruodis' }
330
330
  ],
331
331
  'loading': 'Notiek ielāde...',
332
332
  'noOptionsMessage': 'Nav datu',
@@ -335,7 +335,7 @@ export const TRANSLATIONS = {
335
335
  'datePicker': {
336
336
  'day': 'Diena',
337
337
  'month': 'Mēnesis',
338
- 'year': 'Gads',
338
+ 'year': 'Metai',
339
339
  },
340
340
  'salaryCurrency': 'Atlasiet valūtu...',
341
341
  },
@@ -40,11 +40,6 @@
40
40
  box-sizing: content-box;
41
41
  }
42
42
 
43
- .radio-wrapper .rc-checkbox-inner:after {
44
- margin-top: -1px;
45
- margin-left: -1px;
46
- }
47
-
48
43
  .radio-wrapper .rc-checkbox-inner {
49
44
  border-radius: 50%;
50
45
  }
@@ -89,7 +84,7 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
89
84
  border-color: #3a70ba;
90
85
  }
91
86
 
92
- .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
87
+ .pda-modal .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
93
88
  left: 4px;
94
89
  top: 1px;
95
90
  width: 4px;