@dasidev/dasi-ui 1.0.2 → 1.0.6
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/bin/dash-cli.cjs +191 -0
- package/bin/{dasi-cli.cjs → dasi-cli-old.cjs} +16 -11
- package/index.html +18 -0
- package/package.json +14 -9
- package/postcss.config.js +0 -0
- package/tailwind.config.js +137 -0
- package/tsconfig.json +14 -0
- package/vite.config.ts +33 -0
- package/dist/date-selector-test-BlukYeWl.js +0 -91
- package/dist/html2canvas.esm-CKxSAI8P.js +0 -4886
- package/dist/index-BQSA2aPs.js +0 -126556
- package/dist/index.es-DQWt-PZn.js +0 -5769
- package/dist/index.es.js +0 -11
- package/dist/index.umd.js +0 -8564
- package/dist/informasi-gudang-BmoEy2RL.js +0 -164
- package/dist/informasi-gudang-DXfS46Nh.js +0 -50
- package/dist/purify.es-C-9oolON.js +0 -546
- package/dist/style.css +0 -1
- package/dist/test-schema-JFghGc0_.js +0 -8
- package/dist/test-schema-uusFsJe4.js +0 -438
- package/dist/types-l0sNRNKZ.js +0 -1
- /package/{dist → public}/favicon.ico +0 -0
- /package/{dist → public}/img/brand/ic_pln.svg +0 -0
- /package/{dist → public}/img/brand/mapp_power_logo.svg +0 -0
- /package/{dist → public}/img/common/pltu_ulumbu_flores_ntt.jpeg +0 -0
- /package/{dist → public}/scripts/pdf.worker.min.js +0 -0
- /package/{dist → public}/scripts/pdf.worker.min.mjs +0 -0
- /package/{dist → public}/scripts/pdf.worker.mjs +0 -0
- /package/{dist → public}/scripts/pdf.worker.mjs.map +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { f as l } from "./index-BQSA2aPs.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
const i = {
|
|
4
|
-
schema: {
|
|
5
|
-
html1: {
|
|
6
|
-
type: "static",
|
|
7
|
-
content: '<div class="vueform-divider"><span>Informasi Gedung</span></div>'
|
|
8
|
-
},
|
|
9
|
-
organizationId: {
|
|
10
|
-
type: "selector",
|
|
11
|
-
endpoint: "/organization",
|
|
12
|
-
label: "Pemasok",
|
|
13
|
-
showAvatar: !0,
|
|
14
|
-
nameField: "name",
|
|
15
|
-
placeholder: "Pilih pemasok...",
|
|
16
|
-
sortKey: "pemasok.name",
|
|
17
|
-
rules: ["required"],
|
|
18
|
-
descriptionFieldFunc(t) {
|
|
19
|
-
var e;
|
|
20
|
-
return (e = t.accessLevel) == null ? void 0 : e.name;
|
|
21
|
-
},
|
|
22
|
-
showInTable: !0,
|
|
23
|
-
autofill: !0,
|
|
24
|
-
condition: {
|
|
25
|
-
levels: "pemasok"
|
|
26
|
-
},
|
|
27
|
-
orderBy: "name",
|
|
28
|
-
sort: "asc"
|
|
29
|
-
},
|
|
30
|
-
tanggal: {
|
|
31
|
-
type: "date_selector",
|
|
32
|
-
label: "Tanggal",
|
|
33
|
-
placeholder: "Pilih Tanggal",
|
|
34
|
-
rules: ["required"],
|
|
35
|
-
pickerType: "datetime",
|
|
36
|
-
range: !0
|
|
37
|
-
},
|
|
38
|
-
masterEpiKapalId: {
|
|
39
|
-
type: "selector",
|
|
40
|
-
endpoint: "/master-data",
|
|
41
|
-
searchColumns: "nama",
|
|
42
|
-
orderBy: "nama",
|
|
43
|
-
sort: "asc",
|
|
44
|
-
nameField: "nama",
|
|
45
|
-
label: "Master Data",
|
|
46
|
-
placeholder: "Pilih master data...",
|
|
47
|
-
rules: ["required"],
|
|
48
|
-
disableAutoLoad: !0,
|
|
49
|
-
showInDetail: !1
|
|
50
|
-
},
|
|
51
|
-
nama: {
|
|
52
|
-
type: "text",
|
|
53
|
-
sortKey: "t_master_epi_kapal.nama",
|
|
54
|
-
label: "Nama Kapal",
|
|
55
|
-
placeholder: "Masukkan nama kapal...",
|
|
56
|
-
messages: {
|
|
57
|
-
regex: "Nama kapal hanya boleh mengandung huruf kapital dan tanda (-)",
|
|
58
|
-
required: "Nama kapal wajib diisi."
|
|
59
|
-
},
|
|
60
|
-
disabled: !0,
|
|
61
|
-
cellRender(t, e) {
|
|
62
|
-
var a;
|
|
63
|
-
return (a = e.masterEpiKapal) == null ? void 0 : a.nama;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
jenisKapalCode: {
|
|
67
|
-
type: "config_data_selector",
|
|
68
|
-
parentCode: "dasi//cd/jenis-kapal",
|
|
69
|
-
label: "Jenis Kapal",
|
|
70
|
-
placeholder: "Pilih jenis kapal...",
|
|
71
|
-
columns: { container: 6 },
|
|
72
|
-
disabled: !0,
|
|
73
|
-
sortKey: "t_master_epi_kapal.t_master_epi_kapal.jenis_kapal_code",
|
|
74
|
-
cellRender(t, e) {
|
|
75
|
-
var a, r;
|
|
76
|
-
return (r = (a = e.masterEpiKapal) == null ? void 0 : a.jenisKapal) == null ? void 0 : r.name;
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
imo: {
|
|
80
|
-
type: "text",
|
|
81
|
-
inputType: "text",
|
|
82
|
-
forceNumbers: !0,
|
|
83
|
-
label: "IMO",
|
|
84
|
-
nullValue: 0,
|
|
85
|
-
placeholder: "Masukan IMO...",
|
|
86
|
-
columns: { container: 6 },
|
|
87
|
-
disabled: !0,
|
|
88
|
-
sortKey: "t_master_epi_kapal.imo",
|
|
89
|
-
cellRender(t, e) {
|
|
90
|
-
var a;
|
|
91
|
-
return (a = e.masterEpiKapal) == null ? void 0 : a.imo;
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
mmsi: {
|
|
95
|
-
type: "text",
|
|
96
|
-
inputType: "text",
|
|
97
|
-
forceNumbers: !0,
|
|
98
|
-
label: "MMSI",
|
|
99
|
-
nullValue: 0,
|
|
100
|
-
placeholder: "Masukan MMSI...",
|
|
101
|
-
columns: { container: 6 },
|
|
102
|
-
disabled: !0,
|
|
103
|
-
sortKey: "t_master_epi_kapal.mmsi",
|
|
104
|
-
cellRender(t, e) {
|
|
105
|
-
var a;
|
|
106
|
-
return (a = e.masterEpiKapal) == null ? void 0 : a.mmsi;
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
kapasitas: {
|
|
110
|
-
type: "text",
|
|
111
|
-
inputType: "text",
|
|
112
|
-
mask: {
|
|
113
|
-
mask: "number",
|
|
114
|
-
thousandsSeparator: ",",
|
|
115
|
-
radix: ".",
|
|
116
|
-
mapToRadix: [".", ","],
|
|
117
|
-
scale: 3
|
|
118
|
-
},
|
|
119
|
-
label: "Kapasitas",
|
|
120
|
-
placeholder: "Masukkan kapasitas...",
|
|
121
|
-
default: "",
|
|
122
|
-
nullValue: "",
|
|
123
|
-
columns: { container: 6 },
|
|
124
|
-
disabled: !0,
|
|
125
|
-
sortKey: "t_master_epi_kapal.kapasitas",
|
|
126
|
-
addons: {
|
|
127
|
-
after: "MT"
|
|
128
|
-
},
|
|
129
|
-
cellRender(t, e) {
|
|
130
|
-
var a;
|
|
131
|
-
return `<b>${l((a = e.masterEpiKapal) == null ? void 0 : a.kapasitas)} </b> MT`;
|
|
132
|
-
},
|
|
133
|
-
textAlign: "right"
|
|
134
|
-
},
|
|
135
|
-
pemilikId: {
|
|
136
|
-
type: "selector",
|
|
137
|
-
endpoint: "/organization",
|
|
138
|
-
condition: {
|
|
139
|
-
levels: "transportir"
|
|
140
|
-
},
|
|
141
|
-
showAvatar: !0,
|
|
142
|
-
placeholder: "Pilih transportir...",
|
|
143
|
-
label: "Transportir",
|
|
144
|
-
rules: ["required"],
|
|
145
|
-
// sortKey: "pemilik.name",
|
|
146
|
-
// disableAutoLoad: true,
|
|
147
|
-
showInTable: !0
|
|
148
|
-
},
|
|
149
|
-
statusGedung: {
|
|
150
|
-
type: "toggle",
|
|
151
|
-
default: !0,
|
|
152
|
-
nullValue: !0,
|
|
153
|
-
text: "Status Gedung",
|
|
154
|
-
sortKey: "status_gedung",
|
|
155
|
-
cellRender(t, e) {
|
|
156
|
-
return e.statusGedung ? '<b class="text-green-500">Aktif</b>' : '<b class="text-red-500">Tidak Aktif</b>';
|
|
157
|
-
},
|
|
158
|
-
showInTable: !0
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
export {
|
|
163
|
-
i as default
|
|
164
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import "moment";
|
|
2
|
-
import "./index-BQSA2aPs.js";
|
|
3
|
-
const p = {
|
|
4
|
-
sortBy: { key: "t_master_epi_kapal.nama", by: "asc" },
|
|
5
|
-
showAddBtn: !0,
|
|
6
|
-
dataName: (l) => {
|
|
7
|
-
var e;
|
|
8
|
-
return ((e = l.masterEpiKapal) == null ? void 0 : e.nama) || l.nama || "Kapal";
|
|
9
|
-
},
|
|
10
|
-
filter: {
|
|
11
|
-
"t_master_epi_kapal.jenis_kapal_code": {
|
|
12
|
-
type: "dasi_v2_config_data_selector",
|
|
13
|
-
parentCode: "dasi//cd/jenis-kapal",
|
|
14
|
-
label: "Jenis Kapal",
|
|
15
|
-
placeholder: "Pilih jenis kapal...",
|
|
16
|
-
sortKey: "t_master_epi_kapal.t_master_epi_kapal.jenis_kapal_code",
|
|
17
|
-
filterType: "eq",
|
|
18
|
-
cellRender(l, e) {
|
|
19
|
-
var a, t;
|
|
20
|
-
return (t = (a = e.masterEpiKapal) == null ? void 0 : a.jenisKapal) == null ? void 0 : t.name;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
t_pemilik_id: {
|
|
24
|
-
type: "dasi_v2_organization",
|
|
25
|
-
accessLevel: "transportir",
|
|
26
|
-
label: "Transportir",
|
|
27
|
-
placeholder: "Pilih transportir...",
|
|
28
|
-
sortKey: "pemilik.name",
|
|
29
|
-
filterType: "eq",
|
|
30
|
-
cellRender(l, e) {
|
|
31
|
-
var a;
|
|
32
|
-
return (a = e.pemilik) == null ? void 0 : a.name;
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
status_kapal: {
|
|
36
|
-
type: "select",
|
|
37
|
-
label: "Status",
|
|
38
|
-
placeholder: "Pilih status...",
|
|
39
|
-
filterType: "eq",
|
|
40
|
-
native: !1,
|
|
41
|
-
items: [
|
|
42
|
-
{ value: "true", label: "Aktif" },
|
|
43
|
-
{ value: "false", label: "Tidak Aktif" }
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
p as default
|
|
50
|
-
};
|