@limetech/lime-elements 39.44.0 → 39.44.2-beta.1

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DYg_7kkT.js');
4
- var files = require('./files-Bt11HLi4.js');
4
+ var files = require('./files-DI4jItxi.js');
5
5
  var getIconProps = require('./get-icon-props-CwpDdQDI.js');
6
6
  var translations = require('./translations-Bnw00bkf.js');
7
7
  var randomString = require('./random-string-BTzDB2ee.js');
@@ -8,7 +8,7 @@ var translations = require('./translations-Bnw00bkf.js');
8
8
  var index = require('./index-ETPz91V5.js');
9
9
  var randomString = require('./random-string-BTzDB2ee.js');
10
10
  var isItem = require('./is-item-DMELyaao.js');
11
- var files = require('./files-Bt11HLi4.js');
11
+ var files = require('./files-DI4jItxi.js');
12
12
  var isEqual = require('./isEqual-Cd9J8a5-.js');
13
13
  var debounce = require('./debounce-DgDnRSlt.js');
14
14
  require('./_commonjsHelpers-CFO10eej.js');
@@ -376,6 +376,21 @@ export const topLevelStringCustomComponentSchema = {
376
376
  },
377
377
  },
378
378
  };
379
+ export const stringWithDefaultCustomComponentSchema = {
380
+ type: 'object',
381
+ properties: {
382
+ icon: {
383
+ type: 'string',
384
+ title: 'Icon',
385
+ default: 'decision',
386
+ lime: { component: { name: 'limel-input-field' } },
387
+ },
388
+ name: {
389
+ type: 'string',
390
+ title: 'Name',
391
+ },
392
+ },
393
+ };
379
394
  export const arrayItemWithDependenciesSchema = {
380
395
  type: 'object',
381
396
  properties: {
@@ -38,8 +38,11 @@ export function isTypeAccepted(file, accept) {
38
38
  return file.contentType.startsWith(`${baseType}/`);
39
39
  }
40
40
  if (acceptedType.startsWith('.')) {
41
- const fileType = acceptedType.split('.')[1];
42
- return file.contentType.endsWith(`/${fileType}`);
41
+ // An extension specifier matches by file name (like the native
42
+ // `accept` attribute), not by MIME type.
43
+ return file.filename
44
+ .toLowerCase()
45
+ .endsWith(acceptedType.toLowerCase());
43
46
  }
44
47
  });
45
48
  }
@@ -39,8 +39,11 @@ function isTypeAccepted(file, accept) {
39
39
  return file.contentType.startsWith(`${baseType}/`);
40
40
  }
41
41
  if (acceptedType.startsWith('.')) {
42
- const fileType = acceptedType.split('.')[1];
43
- return file.contentType.endsWith(`/${fileType}`);
42
+ // An extension specifier matches by file name (like the native
43
+ // `accept` attribute), not by MIME type.
44
+ return file.filename
45
+ .toLowerCase()
46
+ .endsWith(acceptedType.toLowerCase());
44
47
  }
45
48
  });
46
49
  }
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BGxJfR2f.js';
2
- import { c as createFileInfo, i as isTypeAccepted } from './files-CZAZotms.js';
2
+ import { c as createFileInfo, i as isTypeAccepted } from './files-DnkFEKoB.js';
3
3
  import { a as baseEach } from './_baseEach-lvj-g1Zj.js';
4
4
  import { c as baseIteratee } from './_baseIteratee-CEZRuq23.js';
5
5
  import { i as isArray } from './isArray-B8VKuhvH.js';