@stonecrop/aform 0.62.4 → 0.62.5

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.
@@ -370,20 +370,31 @@ p.aform_error[data-v-2d02eab2] {
370
370
  margin: 0.25rem 0 0;
371
371
  }
372
372
 
373
- .adate_time[data-v-3a6e48db] {
373
+ .adate_time[data-v-cc3d4686] {
374
374
  width: auto;
375
375
  padding: 10px;
376
376
  box-sizing: border-box;
377
377
  font-size: 1rem;
378
378
  background: var(--sc-input-field-background);
379
379
  }
380
- .adate_time_fields[data-v-3a6e48db] {
380
+ /* A form field's label straddles its boxes' top border, as every field's label straddles its input's:
381
+ the boxes start at the label's offset, not below the widget's own padding. */
382
+ .adate_time.aform_form-element[data-v-cc3d4686] {
383
+ padding: var(--sc-form-label-offset) 0 0;
384
+ background: none;
385
+ }
386
+ /* Solid form surface behind the label, as on the currency and quantity groups: the shared gradient masks
387
+ only the label's top half, and below it the boxes' side edges and the gaps between them run through the text. */
388
+ .adate_time.aform_form-element > .aform_field-label[data-v-cc3d4686] {
389
+ background: var(--sc-form-background);
390
+ }
391
+ .adate_time_fields[data-v-cc3d4686] {
381
392
  display: flex;
382
393
  align-items: stretch;
383
394
  gap: 5px;
384
395
  justify-content: flex-start;
385
396
  }
386
- .adate_time_fields > input[data-v-3a6e48db] {
397
+ .adate_time_fields > input[data-v-cc3d4686] {
387
398
  width: 2.5rem;
388
399
  min-width: 2.5rem;
389
400
  flex: 0 0 auto;
@@ -394,12 +405,12 @@ p.aform_error[data-v-2d02eab2] {
394
405
  color: var(--sc-cell-text-color);
395
406
  border-radius: var(--sc-border-radius);
396
407
  }
397
- .adate_time_fields > input[data-v-3a6e48db]:focus,
398
- .meridiem-selector[data-v-3a6e48db]:focus {
408
+ .adate_time_fields > input[data-v-cc3d4686]:focus,
409
+ .meridiem-selector[data-v-cc3d4686]:focus {
399
410
  outline: 1px solid var(--sc-input-active-border-color);
400
411
  outline-offset: -1px;
401
412
  }
402
- .meridiem-selector[data-v-3a6e48db] {
413
+ .meridiem-selector[data-v-cc3d4686] {
403
414
  flex: 0 0 auto;
404
415
  width: auto;
405
416
  min-width: 5.5rem;
@@ -413,19 +424,19 @@ p.aform_error[data-v-2d02eab2] {
413
424
  border-radius: var(--sc-border-radius);
414
425
  font-size: 1rem;
415
426
  }
416
- .adate_time_segment[data-v-3a6e48db] {
427
+ .adate_time_segment[data-v-cc3d4686] {
417
428
  display: flex;
418
429
  flex-direction: column;
419
430
  width: 40px;
420
431
  }
421
- .colon[data-v-3a6e48db] {
432
+ .colon[data-v-cc3d4686] {
422
433
  display: flex;
423
434
  align-items: normal;
424
435
  }
425
- .aform_form-btn[data-v-3a6e48db] {
436
+ .aform_form-btn[data-v-cc3d4686] {
426
437
  cursor: pointer;
427
438
  }
428
- .aform-select[data-v-3a6e48db] {
439
+ .aform-select[data-v-cc3d4686] {
429
440
  box-sizing: border-box;
430
441
  min-height: auto;
431
442
  }
@@ -835,7 +846,7 @@ p.aform_error {
835
846
  margin: 0;
836
847
  }
837
848
 
838
- .aform[data-v-2da3939e] {
849
+ .aform[data-v-4db17a4f] {
839
850
  display: flex;
840
851
  flex-wrap: wrap;
841
852
  gap: 1rem;
@@ -847,17 +858,17 @@ p.aform_error {
847
858
  max-width: 100%;
848
859
  }
849
860
  @media screen and (max-width: 400px) {
850
- .aform[data-v-2da3939e] {
861
+ .aform[data-v-4db17a4f] {
851
862
  flex-direction: column;
852
863
  }
853
864
  }
854
865
 
855
866
  /* Nested form section */
856
- .aform-nested-section[data-v-2da3939e] {
867
+ .aform-nested-section[data-v-4db17a4f] {
857
868
  width: 100%;
858
869
  padding: 0.5rem 0;
859
870
  }
860
- .aform-nested-label[data-v-2da3939e] {
871
+ .aform-nested-label[data-v-4db17a4f] {
861
872
  font-size: 0.9rem;
862
873
  font-weight: 600;
863
874
  margin: 0 0 0.5rem 0;
@@ -867,12 +878,12 @@ p.aform_error {
867
878
  /* Only the section's own form is indented: a linked record's form sits directly in the section, a
868
879
  fieldset's form directly in its fieldset. A descendant selector would reach every form nested
869
880
  deeper too (a table's expanded row, say), pushing it out of line with the fields around it. */
870
- .aform-nested-section > .aform[data-v-2da3939e],
871
- .aform-nested-section > fieldset > .aform[data-v-2da3939e] {
881
+ .aform-nested-section > .aform[data-v-4db17a4f],
882
+ .aform-nested-section > fieldset > .aform[data-v-4db17a4f] {
872
883
  border-left-width: 2px;
873
884
  margin-left: 0.5rem;
874
885
  }
875
- .aform-table-expansion[data-v-2da3939e] {
886
+ .aform-table-expansion[data-v-4db17a4f] {
876
887
  margin-bottom: 0;
877
888
  border: none;
878
889
  border-left: none;
@@ -1 +1 @@
1
- {"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AForm.vue"],"names":[],"mappings":"AAwbA,OAAO,KAAK,EAAE,aAAa,EAAiD,MAAM,UAAU,CAAA;AAG5F,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAItE,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACjC,mHAAmH;IACnH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;CACvD,CAAC;AAwMF,KAAK,gBAAgB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAyKxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"AForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AForm.vue"],"names":[],"mappings":"AA+bA,OAAO,KAAK,EAAE,aAAa,EAAiD,MAAM,UAAU,CAAA;AAG5F,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAItE,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACjC,mHAAmH;IACnH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;CACvD,CAAC;AA6MF,KAAK,gBAAgB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA0KxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,15 @@
1
+ import type { FieldOptions } from '@stonecrop/schema';
2
+ type __VLS_Props = {
3
+ /** The field's label */
4
+ label?: string;
5
+ /** The value the record holds */
6
+ modelValue?: unknown;
7
+ /** The field's options; a choice with a badge in them is painted with it */
8
+ options?: FieldOptions;
9
+ /** The field's `format`, read before its options, as ADropdown reads it */
10
+ format?: string;
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ //# sourceMappingURL=ABadgeField.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ABadgeField.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ABadgeField.vue"],"names":[],"mappings":"AAAA,OAyCO,KAAK,EAAmB,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAStE,KAAK,WAAW,GAAG;IAClB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAmEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -5,8 +5,20 @@ type __VLS_Props = {
5
5
  defaultSeconds?: number;
6
6
  defaultMeridiem?: string;
7
7
  useSeconds?: boolean;
8
+ /** The field's label, shown when the widget is a form field */
9
+ label?: string;
10
+ mode?: 'edit' | 'read' | 'display' | string;
11
+ /** Ties the label to the hours input */
12
+ uuid?: string;
13
+ /** The caller's `update:modelValue` listener. With one, the widget holds the caller's time, empty included. */
14
+ 'onUpdate:modelValue'?: (value: string | null) => void;
8
15
  };
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ type __VLS_ModelProps = {
17
+ modelValue?: string | null;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | null | undefined) => any;
10
22
  "get-time": (args_0: {
11
23
  hours: number;
12
24
  minutes: number;
@@ -15,7 +27,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
15
27
  militaryTime: number;
16
28
  source: "init" | "user";
17
29
  }) => any;
18
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
19
32
  "onGet-time"?: ((args_0: {
20
33
  hours: number;
21
34
  minutes: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ADateTimeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ADateTimeInput.vue"],"names":[],"mappings":"AAiTA,KAAK,WAAW,GAAG;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAkUF,QAAA,MAAM,YAAY;;eAhTR,MAAM;iBACJ,MAAM;iBACN,MAAM;kBACL,MAAM;sBACF,MAAM;gBACZ,MAAM,GAAG,MAAM;;;;eALhB,MAAM;iBACJ,MAAM;iBACN,MAAM;kBACL,MAAM;sBACF,MAAM;gBACZ,MAAM,GAAG,MAAM;;kFA8SxB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ADateTimeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ADateTimeInput.vue"],"names":[],"mappings":"AAybA,KAAK,WAAW,GAAG;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;IAC3C,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+GAA+G;IAC/G,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CACtD,CAAC;AAoSF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgLxD,QAAA,MAAM,YAAY;;;eA3bR,MAAM;iBACJ,MAAM;iBACN,MAAM;kBACL,MAAM;sBACF,MAAM;gBACZ,MAAM,GAAG,MAAM;;;;;eALhB,MAAM;iBACJ,MAAM;iBACN,MAAM;kBACL,MAAM;sBACF,MAAM;gBACZ,MAAM,GAAG,MAAM;;kFAybxB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/aform",
3
- "version": "0.62.4",
3
+ "version": "0.62.5",
4
4
  "description": "Schema-driven form components for Stonecrop",
5
5
  "keywords": [
6
6
  "components",
@@ -47,10 +47,10 @@
47
47
  "@vueuse/components": "^14.2.1",
48
48
  "@vueuse/core": "^14.2.1",
49
49
  "temporal-polyfill": "^1.0.5",
50
- "@stonecrop/schema": "0.62.4",
51
- "@stonecrop/atable": "0.62.4",
52
- "@stonecrop/themes": "0.62.4",
53
- "@stonecrop/utilities": "0.62.4"
50
+ "@stonecrop/atable": "0.62.5",
51
+ "@stonecrop/schema": "0.62.5",
52
+ "@stonecrop/utilities": "0.62.5",
53
+ "@stonecrop/themes": "0.62.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@microsoft/api-extractor": "^7.58.7",