@everymatrix/cashier-method-details 1.28.4 → 1.28.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-method-details",
3
- "version": "1.28.4",
3
+ "version": "1.28.5",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "1bfc13085b6829695a52b1569af671db1c024e41"
38
+ "gitHead": "a79b46ea6029e0c4cfe17ebfabd15cec443fc85f"
39
39
  }
@@ -227,6 +227,7 @@
227
227
  flatpickr(el, {dateFormat: dateformat}).destroy();
228
228
  })
229
229
  }
230
+ showReceiptPage = false;
230
231
  flatpickrEl = [];
231
232
  fields = [];
232
233
  prepareFields = {};
@@ -278,7 +279,7 @@
278
279
  if(!el) {
279
280
  return;
280
281
  }
281
- flatpickr(flatpickrEl, dateOptions[el.dataset.type])
282
+ flatpickr(flatpickrEl, {...dateOptions[el.dataset.type], maxDate: el.dataset.maxvalue, minDate: el.dataset.minvalue})
282
283
  });
283
284
  }
284
285
  const setActiveLanguage = ():void => {
@@ -744,6 +745,8 @@
744
745
  {:else if field.type === FieldTypes.Time || field.type === FieldTypes.Date || field.type === FieldTypes.DateTime}
745
746
  <input type="text" bind:value={ prepareFields[field.name] } pattern={field.format}
746
747
  data-type={field.type}
748
+ data-maxvalue={field.maxValue}
749
+ data-minvalue={field.minValue}
747
750
  placeholder={field.placeholder}
748
751
  on:input={() => { validateField(field) }}
749
752
  on:change={() => { showError[field.name] = true; validateField(field) }}
@@ -933,10 +936,10 @@
933
936
  }
934
937
  .ReceiptPage {
935
938
  background-color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
936
- border-radius: 6px;
937
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
938
- padding: 0 15px 15px;
939
- margin-bottom: 10px;
939
+ border-radius: var(--mmw--border-radius-medium-plus, 6px);
940
+ box-shadow: 0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, .1));
941
+ padding: 0 var(--emw--spacing-small, 12px);
942
+ margin-bottom: var(--emw--spacing-small-minus, 10px);
940
943
  }
941
944
  .MethodsDetails {
942
945
  position: relative;