not-bulma 1.0.65 → 1.0.67
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
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
export let value = new Date();
|
|
11
11
|
export let placeholder = "Date and time of event";
|
|
12
12
|
export let fieldname = "datetime";
|
|
13
|
+
export let pattern = "d{4}-d{2}-d{2}";
|
|
13
14
|
export let icon = false;
|
|
14
15
|
export let required = true;
|
|
15
16
|
export let readonly = false;
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
{required}
|
|
70
71
|
{placeholder}
|
|
71
72
|
bind:value
|
|
73
|
+
{pattern}
|
|
72
74
|
{readonly}
|
|
73
75
|
autocomplete={fieldname}
|
|
74
76
|
aria-controls="input-field-helper-{fieldname}"
|
|
@@ -84,36 +84,33 @@ class notTable extends EventEmitter {
|
|
|
84
84
|
//pagination, items information
|
|
85
85
|
this.stores.state.subscribe(this.onStateUpdate.bind(this));
|
|
86
86
|
|
|
87
|
-
if (
|
|
88
|
-
Object.prototype.hasOwnProperty.call(input, "data") &&
|
|
89
|
-
Array.isArray(input.data)
|
|
90
|
-
) {
|
|
87
|
+
if (Object.hasOwn(input, "data") && Array.isArray(input.data)) {
|
|
91
88
|
this.stores.raw.update((val) => {
|
|
92
89
|
val = input.data;
|
|
93
90
|
return val;
|
|
94
91
|
});
|
|
95
92
|
}
|
|
96
|
-
if (Object.
|
|
93
|
+
if (Object.hasOwn(this.options, "filter")) {
|
|
97
94
|
this.setFilter(this.options.filter, true);
|
|
98
95
|
} else {
|
|
99
96
|
this.resetFilter();
|
|
100
97
|
}
|
|
101
|
-
if (Object.
|
|
98
|
+
if (Object.hasOwn(this.options, "pager")) {
|
|
102
99
|
this.setPager(this.options.pager, true);
|
|
103
100
|
} else {
|
|
104
101
|
this.resetPager();
|
|
105
102
|
}
|
|
106
|
-
if (Object.
|
|
103
|
+
if (Object.hasOwn(this.options, "sorter")) {
|
|
107
104
|
this.setSorter(this.options.sorter, true);
|
|
108
105
|
} else {
|
|
109
106
|
this.resetSorter(true);
|
|
110
107
|
}
|
|
111
|
-
if (Object.
|
|
108
|
+
if (Object.hasOwn(this.options, "return")) {
|
|
112
109
|
this.setReturn(this.options.return);
|
|
113
110
|
} else {
|
|
114
111
|
this.setReturn();
|
|
115
112
|
}
|
|
116
|
-
if (Object.
|
|
113
|
+
if (Object.hasOwn(this.options, "search")) {
|
|
117
114
|
this.setSearch(this.options.search, true);
|
|
118
115
|
} else {
|
|
119
116
|
this.setSearch();
|
|
@@ -618,14 +615,8 @@ class notTable extends EventEmitter {
|
|
|
618
615
|
this.loadData()
|
|
619
616
|
.then((data) => {
|
|
620
617
|
let full =
|
|
621
|
-
Object.
|
|
622
|
-
|
|
623
|
-
"status"
|
|
624
|
-
) &&
|
|
625
|
-
Object.prototype.hasOwnProperty.call(
|
|
626
|
-
data,
|
|
627
|
-
"result"
|
|
628
|
-
);
|
|
618
|
+
Object.hasOwn(data, "status") &&
|
|
619
|
+
Object.hasOwn(data, "result");
|
|
629
620
|
this.stores.filtered.update((val) => {
|
|
630
621
|
if (!this.getOptions("endless", false)) {
|
|
631
622
|
this.clearFilteredData();
|
|
@@ -634,10 +625,7 @@ class notTable extends EventEmitter {
|
|
|
634
625
|
val.push(...data.result.list);
|
|
635
626
|
} else {
|
|
636
627
|
if (
|
|
637
|
-
Object.
|
|
638
|
-
data,
|
|
639
|
-
"list"
|
|
640
|
-
) &&
|
|
628
|
+
Object.hasOwn(data, "list") &&
|
|
641
629
|
Array.isArray(data.list)
|
|
642
630
|
) {
|
|
643
631
|
val.push(...data.list);
|
|
@@ -783,12 +771,7 @@ class notTable extends EventEmitter {
|
|
|
783
771
|
item,
|
|
784
772
|
this.getOptions("helpers")
|
|
785
773
|
);
|
|
786
|
-
if (
|
|
787
|
-
Object.prototype.hasOwnProperty.call(
|
|
788
|
-
field,
|
|
789
|
-
OPT_FIELD_NAME_PRE_PROC
|
|
790
|
-
)
|
|
791
|
-
) {
|
|
774
|
+
if (Object.hasOwn(field, OPT_FIELD_NAME_PRE_PROC)) {
|
|
792
775
|
try {
|
|
793
776
|
preprocessed = field[OPT_FIELD_NAME_PRE_PROC](
|
|
794
777
|
val,
|