@itfin/components 1.2.9 → 1.2.12
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.
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<input
|
|
9
9
|
ref="input"
|
|
10
10
|
readonly
|
|
11
|
+
:disabled="disabled"
|
|
11
12
|
class="form-control"
|
|
12
13
|
:class="{ 'is-invalid': isInvalid(), 'is-valid': isSuccess() }"
|
|
13
14
|
@focus="onFocus"
|
|
@@ -82,6 +83,7 @@ class itfMonthPicker extends Vue {
|
|
|
82
83
|
@Inject({ default: null }) itemLabel;
|
|
83
84
|
|
|
84
85
|
@Prop({ type: String }) value;
|
|
86
|
+
@Prop({ type: Boolean }) disabled;
|
|
85
87
|
@Prop({ type: String, default: 'ISO' }) valueFormat;
|
|
86
88
|
@Prop({ type: String, default: 'MMMM, yyyy' }) displayFormat;
|
|
87
89
|
@Prop({ type: String, default: '' }) placeholder;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
<div class="itf-modal modal fade" ref="modal" tabindex="-1" :aria-labelledby="modalId" aria-hidden="true">
|
|
4
4
|
<div
|
|
5
|
-
class="modal-dialog
|
|
6
|
-
:class="{[`modal-${size}`]: size}"
|
|
5
|
+
class="modal-dialog"
|
|
6
|
+
:class="{[`modal-${size}`]: size, 'modal-fullscreen': fullscreen, 'modal-fullscreen-sm-down': !fullscreen}"
|
|
7
7
|
>
|
|
8
8
|
<div class="modal-content itf-append-context" ref="content">
|
|
9
9
|
<div class="modal-header">
|
|
@@ -58,7 +58,8 @@ class itfModal extends Vue {
|
|
|
58
58
|
@Prop({ type: String, default: '', validator: (value) => ['', 'sm', 'lg', 'xl'].includes(value) }) size;
|
|
59
59
|
|
|
60
60
|
@Prop({ type: Number, default: 500 }) animationDuration
|
|
61
|
-
@Prop({ type: Boolean, default: false })
|
|
61
|
+
@Prop({ type: Boolean, default: false }) fullscreen;
|
|
62
|
+
@Prop({ type: Boolean, default: false }) basic;
|
|
62
63
|
@Prop({ type: Boolean, default: false }) image;
|
|
63
64
|
@Prop({ type: Boolean, default: false }) closable
|
|
64
65
|
@Prop({ type: Boolean, default: false }) closeIcon
|
|
@@ -8,7 +8,7 @@ const LINKED_IN_REGEXP = /(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profi
|
|
|
8
8
|
const SPECIAL_CHARS_REGEXP = /^[\w_\-+~,/\\:'"().&*|[\]?# ]+$/i;
|
|
9
9
|
const GREETINGS_REGEXP = /\b(dr|mr|mister|mrs|ms|miss|sir|hello|hi)\b/i;
|
|
10
10
|
const PHONE_REGEXP = /(\+?\(?\+?[0-9]{1,3}\)?[-. ]+([0-9]{2,4})[-. ]?([0-9]{3,5}))|\+?[0-9]{7,}/gi;
|
|
11
|
-
const DOUBLE_REGEXP = /^-?\d{0,11}(\.\d{0,
|
|
11
|
+
const DOUBLE_REGEXP = /^-?\d{0,11}(\.\d{0,4}){0,1}$/;
|
|
12
12
|
const EMAIL_REGEXP = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/g;
|
|
13
13
|
const EMAIL_LIST_REGEXP = /^(\w+((-\w+)|(\.\w+))*@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]{2,4}\s*?,?\s*?)+$/g;
|
|
14
14
|
const HEX_REGEXP = /[0-9A-Fa-f]{6}/;
|