@tonzxz/government-forms 0.1.0 → 0.2.0
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/FORM_CATALOG.md +4 -0
- package/README.md +52 -2
- package/dist/document-preview.d.ts +32 -0
- package/dist/document-preview.js +55 -0
- package/dist/gam/utils/export-preview-pdf.js +54 -43
- package/dist/gam/utils/print-element.js +41 -61
- package/dist/government-form.d.ts +6 -1
- package/dist/government-form.js +4 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/inventory/iar.d.ts +5 -0
- package/dist/inventory/iar.js +5 -0
- package/dist/inventory/ics.d.ts +5 -0
- package/dist/inventory/ics.js +5 -0
- package/dist/inventory/iirup.d.ts +5 -0
- package/dist/inventory/iirup.js +5 -0
- package/dist/inventory/iirusp.d.ts +5 -0
- package/dist/inventory/iirusp.js +5 -0
- package/dist/inventory/item.d.ts +5 -0
- package/dist/inventory/item.js +5 -0
- package/dist/inventory/itr.d.ts +5 -0
- package/dist/inventory/itr.js +5 -0
- package/dist/inventory/par.d.ts +5 -0
- package/dist/inventory/par.js +5 -0
- package/dist/inventory/po.d.ts +5 -0
- package/dist/inventory/po.js +5 -0
- package/dist/inventory/ppelc.d.ts +5 -0
- package/dist/inventory/ppelc.js +5 -0
- package/dist/inventory/pr.d.ts +5 -0
- package/dist/inventory/pr.js +6 -0
- package/dist/inventory/property-card.d.ts +5 -0
- package/dist/inventory/property-card.js +5 -0
- package/dist/inventory/ptr.d.ts +5 -0
- package/dist/inventory/ptr.js +5 -0
- package/dist/inventory/regspi.d.ts +5 -0
- package/dist/inventory/regspi.js +5 -0
- package/dist/inventory/ris.d.ts +5 -0
- package/dist/inventory/ris.js +5 -0
- package/dist/inventory/rlsddp.d.ts +5 -0
- package/dist/inventory/rlsddp.js +5 -0
- package/dist/inventory/rlsddsp.d.ts +5 -0
- package/dist/inventory/rlsddsp.js +5 -0
- package/dist/inventory/rpci.d.ts +5 -0
- package/dist/inventory/rpci.js +5 -0
- package/dist/inventory/rpcppe.d.ts +5 -0
- package/dist/inventory/rpcppe.js +5 -0
- package/dist/inventory/rpcsp.d.ts +5 -0
- package/dist/inventory/rpcsp.js +5 -0
- package/dist/inventory/rrsp.d.ts +5 -0
- package/dist/inventory/rrsp.js +5 -0
- package/dist/inventory/rsmi.d.ts +5 -0
- package/dist/inventory/rsmi.js +5 -0
- package/dist/inventory/rsmp.d.ts +5 -0
- package/dist/inventory/rsmp.js +5 -0
- package/dist/inventory/rspi.d.ts +5 -0
- package/dist/inventory/rspi.js +5 -0
- package/dist/inventory/spc.d.ts +5 -0
- package/dist/inventory/spc.js +5 -0
- package/dist/inventory/splc.d.ts +5 -0
- package/dist/inventory/splc.js +5 -0
- package/dist/inventory/stock-card.d.ts +5 -0
- package/dist/inventory/stock-card.js +5 -0
- package/dist/inventory/wmr.d.ts +5 -0
- package/dist/inventory/wmr.js +5 -0
- package/dist/reports/pr/_components/document-preview.js +5 -2
- package/dist/styles.css +148 -0
- package/package.json +5 -1
package/dist/styles.css
CHANGED
|
@@ -4273,6 +4273,154 @@
|
|
|
4273
4273
|
box-shadow: none;
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
|
+
.qforms-preview-panel, .qforms-preview-dialog {
|
|
4277
|
+
color: #17202a;
|
|
4278
|
+
background: white;
|
|
4279
|
+
font: 400 14px/1.5 system-ui, sans-serif;
|
|
4280
|
+
border: 1px solid #e0e4e9;
|
|
4281
|
+
border-radius: 20px;
|
|
4282
|
+
overflow: hidden;
|
|
4283
|
+
display: flex;
|
|
4284
|
+
flex-direction: column;
|
|
4285
|
+
}
|
|
4286
|
+
.qforms-preview-panel {
|
|
4287
|
+
min-width: 0;
|
|
4288
|
+
}
|
|
4289
|
+
.qforms-preview-backdrop {
|
|
4290
|
+
position: fixed;
|
|
4291
|
+
inset: 0;
|
|
4292
|
+
z-index: 1000;
|
|
4293
|
+
background: rgb(15 23 42 / .22);
|
|
4294
|
+
backdrop-filter: blur(4px);
|
|
4295
|
+
}
|
|
4296
|
+
.qforms-preview-dialog {
|
|
4297
|
+
position: fixed;
|
|
4298
|
+
top: 50%;
|
|
4299
|
+
left: 50%;
|
|
4300
|
+
transform: translate(-50%, -50%);
|
|
4301
|
+
z-index: 1001;
|
|
4302
|
+
width: min(1200px, calc(100vw - 32px));
|
|
4303
|
+
height: min(94dvh, 1200px);
|
|
4304
|
+
box-shadow: 0 24px 80px rgb(15 23 42 / .18);
|
|
4305
|
+
outline: none;
|
|
4306
|
+
}
|
|
4307
|
+
.qforms-preview-header {
|
|
4308
|
+
flex: none;
|
|
4309
|
+
position: relative;
|
|
4310
|
+
padding: 24px 60px 20px 28px;
|
|
4311
|
+
}
|
|
4312
|
+
.qforms-preview-header h2 {
|
|
4313
|
+
margin: 0;
|
|
4314
|
+
font: 600 16px/1.4 system-ui, sans-serif;
|
|
4315
|
+
}
|
|
4316
|
+
.qforms-preview-header p {
|
|
4317
|
+
margin: 6px 0 0;
|
|
4318
|
+
color: #526173;
|
|
4319
|
+
}
|
|
4320
|
+
.qforms-preview-dismiss {
|
|
4321
|
+
position: absolute;
|
|
4322
|
+
right: 20px;
|
|
4323
|
+
top: 16px;
|
|
4324
|
+
width: 36px;
|
|
4325
|
+
height: 36px;
|
|
4326
|
+
border: 0;
|
|
4327
|
+
border-radius: 8px;
|
|
4328
|
+
font-size: 26px;
|
|
4329
|
+
background: transparent;
|
|
4330
|
+
cursor: pointer;
|
|
4331
|
+
}
|
|
4332
|
+
.qforms-preview-viewport {
|
|
4333
|
+
flex: 1;
|
|
4334
|
+
min-height: 0;
|
|
4335
|
+
overflow: auto;
|
|
4336
|
+
padding: 16px 24px 32px;
|
|
4337
|
+
background: #f7f8fa;
|
|
4338
|
+
}
|
|
4339
|
+
.qforms-preview-panel .qforms-preview-viewport {
|
|
4340
|
+
max-height: 75dvh;
|
|
4341
|
+
}
|
|
4342
|
+
.qforms-preview-paper {
|
|
4343
|
+
width: max-content;
|
|
4344
|
+
min-width: 100%;
|
|
4345
|
+
color: black;
|
|
4346
|
+
color-scheme: light;
|
|
4347
|
+
}
|
|
4348
|
+
.qforms-preview-paper > * {
|
|
4349
|
+
margin-inline: auto;
|
|
4350
|
+
}
|
|
4351
|
+
.qforms-preview-actions {
|
|
4352
|
+
flex: none;
|
|
4353
|
+
display: flex;
|
|
4354
|
+
flex-wrap: wrap;
|
|
4355
|
+
align-items: center;
|
|
4356
|
+
justify-content: flex-end;
|
|
4357
|
+
gap: 10px;
|
|
4358
|
+
padding: 16px 24px;
|
|
4359
|
+
border-top: 1px solid #e7eaf0;
|
|
4360
|
+
background: white;
|
|
4361
|
+
}
|
|
4362
|
+
.qforms-preview-actions button {
|
|
4363
|
+
min-height: 40px;
|
|
4364
|
+
padding: 8px 16px;
|
|
4365
|
+
border: 1px solid #dce1e7;
|
|
4366
|
+
border-radius: 999px;
|
|
4367
|
+
background: white;
|
|
4368
|
+
font: 500 13px/1.4 system-ui, sans-serif;
|
|
4369
|
+
color: #17202a;
|
|
4370
|
+
cursor: pointer;
|
|
4371
|
+
}
|
|
4372
|
+
.qforms-preview-actions button:hover, .qforms-preview-dismiss:hover {
|
|
4373
|
+
background: #f0f3f6;
|
|
4374
|
+
}
|
|
4375
|
+
.qforms-preview-actions button:disabled {
|
|
4376
|
+
opacity: .55;
|
|
4377
|
+
cursor: wait;
|
|
4378
|
+
}
|
|
4379
|
+
.qforms-preview-status {
|
|
4380
|
+
margin-right: auto;
|
|
4381
|
+
color: #526173;
|
|
4382
|
+
font-size: 12px;
|
|
4383
|
+
}
|
|
4384
|
+
.qforms-preview-error {
|
|
4385
|
+
flex: none;
|
|
4386
|
+
margin: 0;
|
|
4387
|
+
padding: 12px 24px;
|
|
4388
|
+
background: #fff4f2;
|
|
4389
|
+
color: #b42318;
|
|
4390
|
+
}
|
|
4391
|
+
:is(.qforms-preview-dialog, .qforms-preview-panel) :is(button, [tabindex]):focus-visible {
|
|
4392
|
+
outline: 3px solid #80b8ef;
|
|
4393
|
+
outline-offset: 2px;
|
|
4394
|
+
}
|
|
4395
|
+
.qforms > footer {
|
|
4396
|
+
gap: 12px;
|
|
4397
|
+
flex-wrap: wrap;
|
|
4398
|
+
}
|
|
4399
|
+
.qforms-pr-pages {
|
|
4400
|
+
display: flex;
|
|
4401
|
+
flex-direction: column;
|
|
4402
|
+
gap: 24px;
|
|
4403
|
+
}
|
|
4404
|
+
@media (max-width: 640px) {
|
|
4405
|
+
.qforms-preview-dialog {
|
|
4406
|
+
width: calc(100vw - 16px);
|
|
4407
|
+
height: 96dvh;
|
|
4408
|
+
border-radius: 12px;
|
|
4409
|
+
}
|
|
4410
|
+
.qforms-preview-header {
|
|
4411
|
+
padding: 20px 48px 16px 16px;
|
|
4412
|
+
}
|
|
4413
|
+
.qforms-preview-viewport {
|
|
4414
|
+
padding: 12px;
|
|
4415
|
+
}
|
|
4416
|
+
.qforms-preview-actions {
|
|
4417
|
+
padding: 12px;
|
|
4418
|
+
gap: 8px;
|
|
4419
|
+
}
|
|
4420
|
+
.qforms-preview-status:empty {
|
|
4421
|
+
display: none;
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4276
4424
|
@property --tw-translate-x {
|
|
4277
4425
|
syntax: "*";
|
|
4278
4426
|
inherits: false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonzxz/government-forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Reusable government asset and inventory forms, report definitions, and document previews extracted from BCS IMS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -149,6 +149,10 @@
|
|
|
149
149
|
"./*": {
|
|
150
150
|
"types": "./dist/*.d.ts",
|
|
151
151
|
"import": "./dist/*.js"
|
|
152
|
+
},
|
|
153
|
+
"./inventory/preview": {
|
|
154
|
+
"types": "./dist/document-preview.d.ts",
|
|
155
|
+
"import": "./dist/document-preview.js"
|
|
152
156
|
}
|
|
153
157
|
},
|
|
154
158
|
"publishConfig": {
|