@aglyn/shared-ui-jsx-forms 1.0.0-beta.246 → 1.0.0-beta.249

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/shared-ui-jsx-forms",
3
- "version": "1.0.0-beta.246",
3
+ "version": "1.0.0-beta.249",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,13 +25,13 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/shared-data-enums": "1.0.0-beta.246",
29
- "@aglyn/shared-data-mdi": "1.0.0-beta.246",
30
- "@aglyn/shared-ui-color-picker": "1.0.0-beta.246",
31
- "@aglyn/shared-ui-jsx": "1.0.0-beta.246",
32
- "@aglyn/shared-ui-theme": "1.0.0-beta.246",
33
- "@aglyn/shared-util-tools": "1.0.0-beta.246",
34
- "@aglyn/shared-util-vendor": "1.0.0-beta.246",
28
+ "@aglyn/shared-data-enums": "1.0.0-beta.249",
29
+ "@aglyn/shared-data-mdi": "1.0.0-beta.249",
30
+ "@aglyn/shared-ui-color-picker": "1.0.0-beta.249",
31
+ "@aglyn/shared-ui-jsx": "1.0.0-beta.249",
32
+ "@aglyn/shared-ui-theme": "1.0.0-beta.249",
33
+ "@aglyn/shared-util-tools": "1.0.0-beta.249",
34
+ "@aglyn/shared-util-vendor": "1.0.0-beta.249",
35
35
  "@data-driven-forms/common": "^4.2.0",
36
36
  "@data-driven-forms/react-form-renderer": "^4.2.0",
37
37
  "@swc/helpers": "0.5.23",
@@ -13,7 +13,7 @@
13
13
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
- */ import { FIELD_MAP_BREAKPOINT_SPAN, FIELD_MAP_CHECKBOX, FIELD_MAP_COLOR_PICKER, FIELD_MAP_CSS_BORDER, FIELD_MAP_CSS_DIMENSION, FIELD_MAP_CSS_GRADIENT, FIELD_MAP_DATA_TABLE, FIELD_MAP_DATE_PICKER, FIELD_MAP_DUAL_LIST_SELECT, FIELD_MAP_FIELD_ARRAY, FIELD_MAP_ICON_PICKER, FIELD_MAP_PLAIN_TEXT, FIELD_MAP_PRESET_CHOICE, FIELD_MAP_RADIO, FIELD_MAP_SELECT, FIELD_MAP_SLIDER, FIELD_MAP_SWITCH, FIELD_MAP_TABS, FIELD_MAP_TEXT_FIELD, FIELD_MAP_TEXTAREA, FIELD_MAP_THEME_SCALE, FIELD_MAP_TIME_PICKER, FIELD_MAP_TOGGLE_BUTTON, FIELD_MAP_WIZARD, FIELD_SUB_FORM } from "./field-configurations.js";
16
+ */ import { FIELD_MAP_BREAKPOINT_SPAN, FIELD_MAP_WEEKLY_HOURS, FIELD_MAP_CHECKBOX, FIELD_MAP_COLOR_PICKER, FIELD_MAP_CSS_BORDER, FIELD_MAP_CSS_DIMENSION, FIELD_MAP_CSS_GRADIENT, FIELD_MAP_DATA_TABLE, FIELD_MAP_DATE_PICKER, FIELD_MAP_DUAL_LIST_SELECT, FIELD_MAP_FIELD_ARRAY, FIELD_MAP_ICON_PICKER, FIELD_MAP_PLAIN_TEXT, FIELD_MAP_PRESET_CHOICE, FIELD_MAP_RADIO, FIELD_MAP_SELECT, FIELD_MAP_SLIDER, FIELD_MAP_SWITCH, FIELD_MAP_TABS, FIELD_MAP_TEXT_FIELD, FIELD_MAP_TEXTAREA, FIELD_MAP_THEME_SCALE, FIELD_MAP_TIME_PICKER, FIELD_MAP_TOGGLE_BUTTON, FIELD_MAP_WIZARD, FIELD_SUB_FORM } from "./field-configurations.js";
17
17
  import { FieldComponentType } from "./flags.js";
18
18
  export const componentMapper = {
19
19
  [FieldComponentType.SELECT]: FIELD_MAP_SELECT,
@@ -40,7 +40,8 @@ export const componentMapper = {
40
40
  [FieldComponentType.DATA_TABLE]: FIELD_MAP_DATA_TABLE,
41
41
  [FieldComponentType.BREAKPOINT_SPAN]: FIELD_MAP_BREAKPOINT_SPAN,
42
42
  [FieldComponentType.PRESET_CHOICE]: FIELD_MAP_PRESET_CHOICE,
43
- [FieldComponentType.THEME_SCALE]: FIELD_MAP_THEME_SCALE
43
+ [FieldComponentType.THEME_SCALE]: FIELD_MAP_THEME_SCALE,
44
+ [FieldComponentType.WEEKLY_HOURS]: FIELD_MAP_WEEKLY_HOURS
44
45
  };
45
46
  export const simpleComponentMapper = {
46
47
  [FieldComponentType.SELECT]: FIELD_MAP_SELECT,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/component-mappers.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ComponentMapper } from '../vendor/data-driven-forms'\nimport {\n FIELD_MAP_BREAKPOINT_SPAN,\n FIELD_MAP_CHECKBOX,\n FIELD_MAP_COLOR_PICKER,\n FIELD_MAP_CSS_BORDER,\n FIELD_MAP_CSS_DIMENSION,\n FIELD_MAP_CSS_GRADIENT,\n FIELD_MAP_DATA_TABLE,\n FIELD_MAP_DATE_PICKER,\n FIELD_MAP_DUAL_LIST_SELECT,\n FIELD_MAP_FIELD_ARRAY,\n FIELD_MAP_ICON_PICKER,\n FIELD_MAP_PLAIN_TEXT,\n FIELD_MAP_PRESET_CHOICE,\n FIELD_MAP_RADIO,\n FIELD_MAP_SELECT,\n FIELD_MAP_SLIDER,\n FIELD_MAP_SWITCH,\n FIELD_MAP_TABS,\n FIELD_MAP_TEXT_FIELD,\n FIELD_MAP_TEXTAREA,\n FIELD_MAP_THEME_SCALE,\n FIELD_MAP_TIME_PICKER,\n FIELD_MAP_TOGGLE_BUTTON,\n FIELD_MAP_WIZARD,\n FIELD_SUB_FORM,\n} from './field-configurations'\nimport { FieldComponentType } from './flags'\n\nexport const componentMapper: ComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SUB_FORM]: FIELD_SUB_FORM,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.TEXT_FIELD]: FIELD_MAP_TEXT_FIELD,\n [FieldComponentType.TEXTAREA]: FIELD_MAP_TEXTAREA,\n [FieldComponentType.PLAIN_TEXT]: FIELD_MAP_PLAIN_TEXT,\n [FieldComponentType.SLIDER]: FIELD_MAP_SLIDER,\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n [FieldComponentType.RADIO]: FIELD_MAP_RADIO,\n [FieldComponentType.CHECKBOX]: FIELD_MAP_CHECKBOX,\n [FieldComponentType.FIELD_ARRAY]: FIELD_MAP_FIELD_ARRAY,\n [FieldComponentType.TABS]: FIELD_MAP_TABS,\n [FieldComponentType.WIZARD]: FIELD_MAP_WIZARD,\n [FieldComponentType.DUAL_LIST_SELECT]: FIELD_MAP_DUAL_LIST_SELECT,\n [FieldComponentType.ICON_PICKER]: FIELD_MAP_ICON_PICKER,\n [FieldComponentType.COLOR_PICKER]: FIELD_MAP_COLOR_PICKER,\n [FieldComponentType.TOGGLE_BUTTON]: FIELD_MAP_TOGGLE_BUTTON,\n [FieldComponentType.CSS_BORDER]: FIELD_MAP_CSS_BORDER,\n [FieldComponentType.CSS_DIMENSION]: FIELD_MAP_CSS_DIMENSION,\n [FieldComponentType.CSS_GRADIENT]: FIELD_MAP_CSS_GRADIENT,\n [FieldComponentType.DATA_TABLE]: FIELD_MAP_DATA_TABLE,\n [FieldComponentType.BREAKPOINT_SPAN]: FIELD_MAP_BREAKPOINT_SPAN,\n [FieldComponentType.PRESET_CHOICE]: FIELD_MAP_PRESET_CHOICE,\n [FieldComponentType.THEME_SCALE]: FIELD_MAP_THEME_SCALE,\n}\n\nexport const simpleComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SUB_FORM]: FIELD_SUB_FORM,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.TEXT_FIELD]: FIELD_MAP_TEXT_FIELD,\n [FieldComponentType.TEXTAREA]: FIELD_MAP_TEXTAREA,\n}\n\nexport const dateTimeComponentMapper = {\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n}\n\nexport const optionComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.RADIO]: FIELD_MAP_RADIO,\n [FieldComponentType.CHECKBOX]: FIELD_MAP_CHECKBOX,\n [FieldComponentType.DUAL_LIST_SELECT]: FIELD_MAP_DUAL_LIST_SELECT,\n}\n\nexport const pickerComponentMapper = {\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n [FieldComponentType.ICON_PICKER]: FIELD_MAP_ICON_PICKER,\n [FieldComponentType.COLOR_PICKER]: FIELD_MAP_COLOR_PICKER,\n}\n"],"names":["FIELD_MAP_BREAKPOINT_SPAN","FIELD_MAP_CHECKBOX","FIELD_MAP_COLOR_PICKER","FIELD_MAP_CSS_BORDER","FIELD_MAP_CSS_DIMENSION","FIELD_MAP_CSS_GRADIENT","FIELD_MAP_DATA_TABLE","FIELD_MAP_DATE_PICKER","FIELD_MAP_DUAL_LIST_SELECT","FIELD_MAP_FIELD_ARRAY","FIELD_MAP_ICON_PICKER","FIELD_MAP_PLAIN_TEXT","FIELD_MAP_PRESET_CHOICE","FIELD_MAP_RADIO","FIELD_MAP_SELECT","FIELD_MAP_SLIDER","FIELD_MAP_SWITCH","FIELD_MAP_TABS","FIELD_MAP_TEXT_FIELD","FIELD_MAP_TEXTAREA","FIELD_MAP_THEME_SCALE","FIELD_MAP_TIME_PICKER","FIELD_MAP_TOGGLE_BUTTON","FIELD_MAP_WIZARD","FIELD_SUB_FORM","FieldComponentType","componentMapper","SELECT","SUB_FORM","SWITCH","TEXT_FIELD","TEXTAREA","PLAIN_TEXT","SLIDER","TIME_PICKER","DATE_PICKER","RADIO","CHECKBOX","FIELD_ARRAY","TABS","WIZARD","DUAL_LIST_SELECT","ICON_PICKER","COLOR_PICKER","TOGGLE_BUTTON","CSS_BORDER","CSS_DIMENSION","CSS_GRADIENT","DATA_TABLE","BREAKPOINT_SPAN","PRESET_CHOICE","THEME_SCALE","simpleComponentMapper","dateTimeComponentMapper","optionComponentMapper","pickerComponentMapper"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAGD,SACEA,yBAAyB,EACzBC,kBAAkB,EAClBC,sBAAsB,EACtBC,oBAAoB,EACpBC,uBAAuB,EACvBC,sBAAsB,EACtBC,oBAAoB,EACpBC,qBAAqB,EACrBC,0BAA0B,EAC1BC,qBAAqB,EACrBC,qBAAqB,EACrBC,oBAAoB,EACpBC,uBAAuB,EACvBC,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAc,EACdC,oBAAoB,EACpBC,kBAAkB,EAClBC,qBAAqB,EACrBC,qBAAqB,EACrBC,uBAAuB,EACvBC,gBAAgB,EAChBC,cAAc,QACT,4BAAwB;AAC/B,SAASC,kBAAkB,QAAQ,aAAS;AAE5C,OAAO,MAAMC,kBAAmC;IAC9C,CAACD,mBAAmBE,MAAM,CAAC,EAAEb;IAC7B,CAACW,mBAAmBG,QAAQ,CAAC,EAAEJ;IAC/B,CAACC,mBAAmBI,MAAM,CAA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C,EAAC;AAED,OAAO,MAAMkC,0BAA0B;IACrC,CAAC5B,mBAAmBS,WAAW,CAAC,EAAEb;IAClC,CAACI,mBAAmBU,WAAW,CAAC,EAAE5B;AACpC,EAAC;AAED,OAAO,MAAM+C,wBAAwB;IACnC,CAAC7B,mBAAmBE,MAAM,CAAC,EAAEb;IAC7B,CAACW,mBAAmBI,MAAM,CAAC,EAAEb;IAC7B,CAACS,mBAAmBW,KAAK,CAAC,EAAEvB;IAC5B,CAACY,mBAAmBY,QAAQ,CAAC,EAAEpC;IAC/B,CAACwB,mBAAmBgB,gBAAgB,CAAC,EAAEjC;AACzC,EAAC;AAED,OAAO,MAAM+C,wBAAwB;IACnC,CAAC9B,mBAAmBS,WAAW,CAAC,EAAEb;IAClC,CAACI,mBAAmBU,WAAW,CAAC,EAAE5B;IAClC,CAACkB,mBAAmBiB,WAAW,CAAC,EAAEhC;IAClC,CAACe,mBAAmBkB,YAAY,CAAC,EAAEzC;AACrC,EAAC"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/component-mappers.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ComponentMapper } from '../vendor/data-driven-forms'\nimport {\n FIELD_MAP_BREAKPOINT_SPAN,\n FIELD_MAP_WEEKLY_HOURS,\n FIELD_MAP_CHECKBOX,\n FIELD_MAP_COLOR_PICKER,\n FIELD_MAP_CSS_BORDER,\n FIELD_MAP_CSS_DIMENSION,\n FIELD_MAP_CSS_GRADIENT,\n FIELD_MAP_DATA_TABLE,\n FIELD_MAP_DATE_PICKER,\n FIELD_MAP_DUAL_LIST_SELECT,\n FIELD_MAP_FIELD_ARRAY,\n FIELD_MAP_ICON_PICKER,\n FIELD_MAP_PLAIN_TEXT,\n FIELD_MAP_PRESET_CHOICE,\n FIELD_MAP_RADIO,\n FIELD_MAP_SELECT,\n FIELD_MAP_SLIDER,\n FIELD_MAP_SWITCH,\n FIELD_MAP_TABS,\n FIELD_MAP_TEXT_FIELD,\n FIELD_MAP_TEXTAREA,\n FIELD_MAP_THEME_SCALE,\n FIELD_MAP_TIME_PICKER,\n FIELD_MAP_TOGGLE_BUTTON,\n FIELD_MAP_WIZARD,\n FIELD_SUB_FORM,\n} from './field-configurations'\nimport { FieldComponentType } from './flags'\n\nexport const componentMapper: ComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SUB_FORM]: FIELD_SUB_FORM,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.TEXT_FIELD]: FIELD_MAP_TEXT_FIELD,\n [FieldComponentType.TEXTAREA]: FIELD_MAP_TEXTAREA,\n [FieldComponentType.PLAIN_TEXT]: FIELD_MAP_PLAIN_TEXT,\n [FieldComponentType.SLIDER]: FIELD_MAP_SLIDER,\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n [FieldComponentType.RADIO]: FIELD_MAP_RADIO,\n [FieldComponentType.CHECKBOX]: FIELD_MAP_CHECKBOX,\n [FieldComponentType.FIELD_ARRAY]: FIELD_MAP_FIELD_ARRAY,\n [FieldComponentType.TABS]: FIELD_MAP_TABS,\n [FieldComponentType.WIZARD]: FIELD_MAP_WIZARD,\n [FieldComponentType.DUAL_LIST_SELECT]: FIELD_MAP_DUAL_LIST_SELECT,\n [FieldComponentType.ICON_PICKER]: FIELD_MAP_ICON_PICKER,\n [FieldComponentType.COLOR_PICKER]: FIELD_MAP_COLOR_PICKER,\n [FieldComponentType.TOGGLE_BUTTON]: FIELD_MAP_TOGGLE_BUTTON,\n [FieldComponentType.CSS_BORDER]: FIELD_MAP_CSS_BORDER,\n [FieldComponentType.CSS_DIMENSION]: FIELD_MAP_CSS_DIMENSION,\n [FieldComponentType.CSS_GRADIENT]: FIELD_MAP_CSS_GRADIENT,\n [FieldComponentType.DATA_TABLE]: FIELD_MAP_DATA_TABLE,\n [FieldComponentType.BREAKPOINT_SPAN]: FIELD_MAP_BREAKPOINT_SPAN,\n [FieldComponentType.PRESET_CHOICE]: FIELD_MAP_PRESET_CHOICE,\n [FieldComponentType.THEME_SCALE]: FIELD_MAP_THEME_SCALE,\n [FieldComponentType.WEEKLY_HOURS]: FIELD_MAP_WEEKLY_HOURS,\n}\n\nexport const simpleComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SUB_FORM]: FIELD_SUB_FORM,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.TEXT_FIELD]: FIELD_MAP_TEXT_FIELD,\n [FieldComponentType.TEXTAREA]: FIELD_MAP_TEXTAREA,\n}\n\nexport const dateTimeComponentMapper = {\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n}\n\nexport const optionComponentMapper = {\n [FieldComponentType.SELECT]: FIELD_MAP_SELECT,\n [FieldComponentType.SWITCH]: FIELD_MAP_SWITCH,\n [FieldComponentType.RADIO]: FIELD_MAP_RADIO,\n [FieldComponentType.CHECKBOX]: FIELD_MAP_CHECKBOX,\n [FieldComponentType.DUAL_LIST_SELECT]: FIELD_MAP_DUAL_LIST_SELECT,\n}\n\nexport const pickerComponentMapper = {\n [FieldComponentType.TIME_PICKER]: FIELD_MAP_TIME_PICKER,\n [FieldComponentType.DATE_PICKER]: FIELD_MAP_DATE_PICKER,\n [FieldComponentType.ICON_PICKER]: FIELD_MAP_ICON_PICKER,\n [FieldComponentType.COLOR_PICKER]: FIELD_MAP_COLOR_PICKER,\n}\n"],"names":["FIELD_MAP_BREAKPOINT_SPAN","FIELD_MAP_WEEKLY_HOURS","FIELD_MAP_CHECKBOX","FIELD_MAP_COLOR_PICKER","FIELD_MAP_CSS_BORDER","FIELD_MAP_CSS_DIMENSION","FIELD_MAP_CSS_GRADIENT","FIELD_MAP_DATA_TABLE","FIELD_MAP_DATE_PICKER","FIELD_MAP_DUAL_LIST_SELECT","FIELD_MAP_FIELD_ARRAY","FIELD_MAP_ICON_PICKER","FIELD_MAP_PLAIN_TEXT","FIELD_MAP_PRESET_CHOICE","FIELD_MAP_RADIO","FIELD_MAP_SELECT","FIELD_MAP_SLIDER","FIELD_MAP_SWITCH","FIELD_MAP_TABS","FIELD_MAP_TEXT_FIELD","FIELD_MAP_TEXTAREA","FIELD_MAP_THEME_SCALE","FIELD_MAP_TIME_PICKER","FIELD_MAP_TOGGLE_BUTTON","FIELD_MAP_WIZARD","FIELD_SUB_FORM","FieldComponentType","componentMapper","SELECT","SUB_FORM","SWITCH","TEXT_FIELD","TEXTAREA","PLAIN_TEXT","SLIDER","TIME_PICKER","DATE_PICKER","RADIO","CHECKBOX","FIELD_ARRAY","TABS","WIZARD","DUAL_LIST_SELECT","ICON_PICKER","COLOR_PICKER","TOGGLE_BUTTON","CSS_BORDER","CSS_DIMENSION","CSS_GRADIENT","DATA_TABLE","BREAKPOINT_SPAN","PRESET_CHOICE","THEME_SCALE","WEEKLY_HOURS","simpleComponentMapper","dateTimeComponentMapper","optionComponentMapper","pickerComponentMapper"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAGD,SACEA,yBAAyB,EACzBC,sBAAsB,EACtBC,kBAAkB,EAClBC,sBAAsB,EACtBC,oBAAoB,EACpBC,uBAAuB,EACvBC,sBAAsB,EACtBC,oBAAoB,EACpBC,qBAAqB,EACrBC,0BAA0B,EAC1BC,qBAAqB,EACrBC,qBAAqB,EACrBC,oBAAoB,EACp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,CAACmB,mBAAmBwB,eAAe,CAAC,EAAElD;IACtC,CAAC0B,mBAAmByB,aAAa,CAAC,EAAEtC;IACpC,CAACa,mBAAmB0B,WAAW,CAAC,EAAE/B;IAClC,CAACK,mBAAmB2B,YAAY,CAAC,EAAEpD;AACrC,EAAC;AAED,OAAO,MAAMqD,wBAAwB;IACnC,CAAC5B,mBAAmBE,MAAM,CAAC,EAAEb;IAC7B,CAACW,mBAAmBG,QAAQ,CAAC,EAAEJ;IAC/B,CAACC,mBAAmBI,MAAM,CAAC,EAAEb;IAC7B,CAACS,mBAAmBK,UAAU,CAAC,EAAEZ;IACjC,CAACO,mBAAmBM,QAAQ,CAAC,EAAEZ;AACjC,EAAC;AAED,OAAO,MAAMmC,0BAA0B;IACrC,CAAC7B,mBAAmBS,WAAW,CAAC,EAAEb;IAClC,CAACI,mBAAmBU,WAAW,CAAC,EAAE5B;AACpC,EAAC;AAED,OAAO,MAAMgD,wBAAwB;IACnC,CAAC9B,mBAAmBE,MAAM,CAAC,EAAEb;IAC7B,CAACW,mBAAmBI,MAAM,CAAC,EAAEb;IAC7B,CAACS,mBAAmBW,KAAK,CAAC,EAAEvB;IAC5B,CAACY,mBAAmBY,QAAQ,CAAC,EAAEpC;IAC/B,CAACwB,mBAAmBgB,gBAAgB,CAAC,EAAEjC;AACzC,EAAC;AAED,OAAO,MAAMgD,wBAAwB;IACnC,CAAC/B,mBAAmBS,WAAW,CAAC,EAAEb;IAClC,CAACI,mBAAmBU,WAAW,CAAC,EAAE5B;IAClC,CAACkB,mBAAmBiB,WAAW,CAAC,EAAEhC;IAClC,CAACe,mBAAmBkB,YAAY,CAAC,EAAEzC;AACrC,EAAC"}
@@ -17,7 +17,7 @@
17
17
  import type { ColorPickerProps } from '../components/color-picker.component';
18
18
  import type { IconSelectProps } from '../components/icon-select.component';
19
19
  import type { ToggleButtonProps } from '../components/toggle-button.component';
20
- import type { BreakpointSpanProps, CheckboxProps, CssBorderProps, CssDimensionProps, CssGradientProps, DataTableFieldProps, DatePickerProps, DualListSelectProps, FieldArrayProps, PlainTextProps, PresetChoiceProps, RadioProps, SelectProps, SliderProps, SubFormProps, SwitchProps, TextFieldProps, TextareaProps, ThemeScaleProps, TimePickerProps, WizardProps } from '../mapper';
20
+ import type { BreakpointSpanProps, CheckboxProps, CssBorderProps, CssDimensionProps, CssGradientProps, DataTableFieldProps, DatePickerProps, DualListSelectProps, FieldArrayProps, PlainTextProps, PresetChoiceProps, RadioProps, SelectProps, SliderProps, SubFormProps, SwitchProps, TextFieldProps, TextareaProps, ThemeScaleProps, TimePickerProps, WeeklyHoursProps, WizardProps } from '../mapper';
21
21
  export declare const FieldIconSelect: import("react").ComponentType<IconSelectProps>;
22
22
  export declare const FieldColorPicker: import("react").ComponentType<ColorPickerProps>;
23
23
  export declare const FieldToggleButton: import("react").ComponentType<ToggleButtonProps>;
@@ -27,6 +27,7 @@ export declare const FieldTextField: import("react").ComponentType<TextFieldProp
27
27
  export declare const FieldCssDimension: import("react").ComponentType<CssDimensionProps>;
28
28
  export declare const FieldCssBorder: import("react").ComponentType<CssBorderProps>;
29
29
  export declare const FieldPresetChoice: import("react").ComponentType<PresetChoiceProps>;
30
+ export declare const FieldWeeklyHours: import("react").ComponentType<WeeklyHoursProps>;
30
31
  export declare const FieldBreakpointSpan: import("react").ComponentType<BreakpointSpanProps>;
31
32
  export declare const FieldDataTable: import("react").ComponentType<DataTableFieldProps>;
32
33
  export declare const FieldCssGradient: import("react").ComponentType<CssGradientProps>;
@@ -37,6 +37,9 @@ export const FieldPresetChoice = dynamic(()=>import("../mapper/preset-choice.js"
37
37
  // Per-breakpoint span/offset editor for MUI Grid cells (AGL-2486). Not
38
38
  // `ssr: false`: it is a row of plain Selects with no popper anchor of its
39
39
  // own, so it renders on the server like the other structured fields.
40
+ // A week of opening hours: switches and time menus, no popper anchor of its
41
+ // own, so it renders on the server like the other structured fields.
42
+ export const FieldWeeklyHours = dynamic(()=>import("../mapper/weekly-hours.js").then((mod)=>mod.default));
40
43
  export const FieldBreakpointSpan = dynamic(()=>import("../mapper/breakpoint-span.js").then((mod)=>mod.default));
41
44
  // Background fill editor (AGL-1331). `ssr: false` like the other pickers:
42
45
  // it mounts a Popper on an anchor element and the react-color picker.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/dynamic-fields.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport dynamic from 'next/dynamic'\n\nimport type { ColorPickerProps } from '../components/color-picker.component'\nimport type { IconSelectProps } from '../components/icon-select.component'\nimport type { ToggleButtonProps } from '../components/toggle-button.component'\nimport type {\n BreakpointSpanProps,\n CheckboxProps,\n CssBorderProps,\n CssDimensionProps,\n CssGradientProps,\n DataTableFieldProps,\n DatePickerProps,\n DualListSelectProps,\n FieldArrayProps,\n PlainTextProps,\n PresetChoiceProps,\n RadioProps,\n SelectProps,\n SliderProps,\n SubFormProps,\n SwitchProps,\n TextFieldProps,\n TextareaProps,\n ThemeScaleProps,\n TimePickerProps,\n WizardProps,\n} from '../mapper'\n\nexport const FieldIconSelect = dynamic<IconSelectProps>(\n () =>\n import('../components/icon-select.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldColorPicker = dynamic<ColorPickerProps>(\n () =>\n import('../components/color-picker.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldToggleButton = dynamic<ToggleButtonProps>(\n () =>\n import('../components/toggle-button.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldSelect = dynamic<SelectProps>(() =>\n import('../mapper/select').then((mod) => mod.default),\n)\nexport const FieldSwitch = dynamic<SwitchProps>(() =>\n import('../mapper/switch').then((mod) => mod.default),\n)\nexport const FieldTextField = dynamic<TextFieldProps>(() =>\n import('../mapper/text-field').then((mod) => mod.default),\n)\nexport const FieldCssDimension = dynamic<CssDimensionProps>(() =>\n import('../mapper/css-dimension').then((mod) => mod.default),\n)\n// Border thickness + line style (AGL-2486). Not `ssr: false`: a number box\n// and a Select with no popper anchor of its own, like the other structured\n// fields.\nexport const FieldCssBorder = dynamic<CssBorderProps>(() =>\n import('../mapper/css-border').then((mod) => mod.default),\n)\n// Named presets + raw escape hatch for radius, shadow and font family\n// (AGL-2486). Plain Selects and a text box — server-renderable.\nexport const FieldPresetChoice = dynamic<PresetChoiceProps>(() =>\n import('../mapper/preset-choice').then((mod) => mod.default),\n)\n// Per-breakpoint span/offset editor for MUI Grid cells (AGL-2486). Not\n// `ssr: false`: it is a row of plain Selects with no popper anchor of its\n// own, so it renders on the server like the other structured fields.\nexport const FieldBreakpointSpan = dynamic<BreakpointSpanProps>(() =>\n import('../mapper/breakpoint-span').then((mod) => mod.default),\n)\n// Background fill editor (AGL-1331). `ssr: false` like the other pickers:\n// it mounts a Popper on an anchor element and the react-color picker.\n// Row-and-column grid for the Table element (AGL-2543). Not `ssr: false`:\n// text boxes and toggle buttons, no popper anchor of its own.\nexport const FieldDataTable = dynamic<DataTableFieldProps>(() =>\n import('../mapper/data-table').then((mod) => mod.default),\n)\nexport const FieldCssGradient = dynamic<CssGradientProps>(\n () => import('../mapper/css-gradient').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldTextarea = dynamic<TextareaProps>(() =>\n import('../mapper/textarea').then((mod) => mod.default),\n)\n// Theme scale + free text for font size / weight / z-index (AGL-2486). Not\n// `ssr: false`: it is one combo box with no popper anchor of its own.\nexport const FieldThemeScale = dynamic<ThemeScaleProps>(() =>\n import('../mapper/theme-scale').then((mod) => mod.default),\n)\nexport const FieldPlainText = dynamic<PlainTextProps>(() =>\n import('../mapper/plain-text').then((mod) => mod.default),\n)\nexport const FieldSlider = dynamic<SliderProps>(() =>\n import('../mapper/slider').then((mod) => mod.default),\n)\nexport const FieldTimePicker = dynamic<TimePickerProps>(() =>\n import('../mapper/time-picker').then((mod) => mod.default),\n)\nexport const FieldDatePicker = dynamic<DatePickerProps>(() =>\n import('../mapper/date-picker').then((mod) => mod.default),\n)\nexport const FieldRadio = dynamic<RadioProps>(() =>\n import('../mapper/radio').then((mod) => mod.default),\n)\nexport const FieldCheckbox = dynamic<CheckboxProps>(() =>\n import('../mapper/checkbox').then((mod) => mod.default),\n)\nexport const FieldFieldArray = dynamic<FieldArrayProps>(() =>\n import('../mapper/field-array').then((mod) => mod.default),\n)\nexport const FieldTabs = dynamic(() =>\n import('../mapper/tabs').then((mod) => mod.default),\n)\nexport const FieldWizard = dynamic<WizardProps>(() =>\n import('../mapper/wizard').then((mod) => mod.default),\n)\nexport const FieldDualListSelect = dynamic<DualListSelectProps>(() =>\n import('../mapper/dual-list-select').then((mod) => mod.default),\n)\nexport const FieldSubForm = dynamic<SubFormProps>(() =>\n import('../mapper/sub-form').then((mod) => mod.default),\n)\n"],"names":["dynamic","FieldIconSelect","then","mod","default","ssr","FieldColorPicker","FieldToggleButton","FieldSelect","FieldSwitch","FieldTextField","FieldCssDimension","FieldCssBorder","FieldPresetChoice","FieldBreakpointSpan","FieldDataTable","FieldCssGradient","FieldTextarea","FieldThemeScale","FieldPlainText","FieldSlider","FieldTimePicker","FieldDatePicker","FieldRadio","FieldCheckbox","FieldFieldArray","FieldTabs","FieldWizard","FieldDualListSelect","FieldSubForm"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,OAAOA,aAAa,eAAc;AA6BlC,OAAO,MAAMC,kBAAkBD,QAC7B,IACE,MAAM,CAAC,0CAAuCE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACzE;IAAEC,KAAK;AAAM,GACd;AACD,OAAO,MAAMC,mBAAmBN,QAC9B,IACE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BAAkBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACnD;AACD,OAAO,MAAMuB,cAAc3B,QAAqB,IAC9C,MAAM,CAAC,uBAAoBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACrD;AACD,OAAO,MAAMwB,sBAAsB5B,QAA6B,IAC9D,MAAM,CAAC,iCAA8BE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC/D;AACD,OAAO,MAAMyB,eAAe7B,QAAsB,IAChD,MAAM,CAAC,yBAAsBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACvD"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/dynamic-fields.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport dynamic from 'next/dynamic'\n\nimport type { ColorPickerProps } from '../components/color-picker.component'\nimport type { IconSelectProps } from '../components/icon-select.component'\nimport type { ToggleButtonProps } from '../components/toggle-button.component'\nimport type {\n BreakpointSpanProps,\n CheckboxProps,\n CssBorderProps,\n CssDimensionProps,\n CssGradientProps,\n DataTableFieldProps,\n DatePickerProps,\n DualListSelectProps,\n FieldArrayProps,\n PlainTextProps,\n PresetChoiceProps,\n RadioProps,\n SelectProps,\n SliderProps,\n SubFormProps,\n SwitchProps,\n TextFieldProps,\n TextareaProps,\n ThemeScaleProps,\n TimePickerProps,\n WeeklyHoursProps,\n WizardProps,\n} from '../mapper'\n\nexport const FieldIconSelect = dynamic<IconSelectProps>(\n () =>\n import('../components/icon-select.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldColorPicker = dynamic<ColorPickerProps>(\n () =>\n import('../components/color-picker.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldToggleButton = dynamic<ToggleButtonProps>(\n () =>\n import('../components/toggle-button.component').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldSelect = dynamic<SelectProps>(() =>\n import('../mapper/select').then((mod) => mod.default),\n)\nexport const FieldSwitch = dynamic<SwitchProps>(() =>\n import('../mapper/switch').then((mod) => mod.default),\n)\nexport const FieldTextField = dynamic<TextFieldProps>(() =>\n import('../mapper/text-field').then((mod) => mod.default),\n)\nexport const FieldCssDimension = dynamic<CssDimensionProps>(() =>\n import('../mapper/css-dimension').then((mod) => mod.default),\n)\n// Border thickness + line style (AGL-2486). Not `ssr: false`: a number box\n// and a Select with no popper anchor of its own, like the other structured\n// fields.\nexport const FieldCssBorder = dynamic<CssBorderProps>(() =>\n import('../mapper/css-border').then((mod) => mod.default),\n)\n// Named presets + raw escape hatch for radius, shadow and font family\n// (AGL-2486). Plain Selects and a text box — server-renderable.\nexport const FieldPresetChoice = dynamic<PresetChoiceProps>(() =>\n import('../mapper/preset-choice').then((mod) => mod.default),\n)\n// Per-breakpoint span/offset editor for MUI Grid cells (AGL-2486). Not\n// `ssr: false`: it is a row of plain Selects with no popper anchor of its\n// own, so it renders on the server like the other structured fields.\n// A week of opening hours: switches and time menus, no popper anchor of its\n// own, so it renders on the server like the other structured fields.\nexport const FieldWeeklyHours = dynamic<WeeklyHoursProps>(() =>\n import('../mapper/weekly-hours').then((mod) => mod.default),\n)\nexport const FieldBreakpointSpan = dynamic<BreakpointSpanProps>(() =>\n import('../mapper/breakpoint-span').then((mod) => mod.default),\n)\n// Background fill editor (AGL-1331). `ssr: false` like the other pickers:\n// it mounts a Popper on an anchor element and the react-color picker.\n// Row-and-column grid for the Table element (AGL-2543). Not `ssr: false`:\n// text boxes and toggle buttons, no popper anchor of its own.\nexport const FieldDataTable = dynamic<DataTableFieldProps>(() =>\n import('../mapper/data-table').then((mod) => mod.default),\n)\nexport const FieldCssGradient = dynamic<CssGradientProps>(\n () => import('../mapper/css-gradient').then((mod) => mod.default),\n { ssr: false },\n)\nexport const FieldTextarea = dynamic<TextareaProps>(() =>\n import('../mapper/textarea').then((mod) => mod.default),\n)\n// Theme scale + free text for font size / weight / z-index (AGL-2486). Not\n// `ssr: false`: it is one combo box with no popper anchor of its own.\nexport const FieldThemeScale = dynamic<ThemeScaleProps>(() =>\n import('../mapper/theme-scale').then((mod) => mod.default),\n)\nexport const FieldPlainText = dynamic<PlainTextProps>(() =>\n import('../mapper/plain-text').then((mod) => mod.default),\n)\nexport const FieldSlider = dynamic<SliderProps>(() =>\n import('../mapper/slider').then((mod) => mod.default),\n)\nexport const FieldTimePicker = dynamic<TimePickerProps>(() =>\n import('../mapper/time-picker').then((mod) => mod.default),\n)\nexport const FieldDatePicker = dynamic<DatePickerProps>(() =>\n import('../mapper/date-picker').then((mod) => mod.default),\n)\nexport const FieldRadio = dynamic<RadioProps>(() =>\n import('../mapper/radio').then((mod) => mod.default),\n)\nexport const FieldCheckbox = dynamic<CheckboxProps>(() =>\n import('../mapper/checkbox').then((mod) => mod.default),\n)\nexport const FieldFieldArray = dynamic<FieldArrayProps>(() =>\n import('../mapper/field-array').then((mod) => mod.default),\n)\nexport const FieldTabs = dynamic(() =>\n import('../mapper/tabs').then((mod) => mod.default),\n)\nexport const FieldWizard = dynamic<WizardProps>(() =>\n import('../mapper/wizard').then((mod) => mod.default),\n)\nexport const FieldDualListSelect = dynamic<DualListSelectProps>(() =>\n import('../mapper/dual-list-select').then((mod) => mod.default),\n)\nexport const FieldSubForm = dynamic<SubFormProps>(() =>\n import('../mapper/sub-form').then((mod) => mod.default),\n)\n"],"names":["dynamic","FieldIconSelect","then","mod","default","ssr","FieldColorPicker","FieldToggleButton","FieldSelect","FieldSwitch","FieldTextField","FieldCssDimension","FieldCssBorder","FieldPresetChoice","FieldWeeklyHours","FieldBreakpointSpan","FieldDataTable","FieldCssGradient","FieldTextarea","FieldThemeScale","FieldPlainText","FieldSlider","FieldTimePicker","FieldDatePicker","FieldRadio","FieldCheckbox","FieldFieldArray","FieldTabs","FieldWizard","FieldDualListSelect","FieldSubForm"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,OAAOA,aAAa,eAAc;AA8BlC,OAAO,MAAMC,kBAAkBD,QAC7B,IACE,MAAM,CAAC,0CAAuCE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACzE;IAAEC,KAAK;AAAM,GACd;AACD,OAAO,MAAMC,mBAAmBN,QAC9B,IACE,MAAM,CAAC,2CAAwCE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC1E;IAAEC,KAAK;AAAM,GACd;AACD,OAAO,MAAME,oBAAoBP,QAC/B,IACE,MAAM,CAAC,4CAAyCE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC3E;IAAEC,KAAK;AAAM,GACd;AACD,OAAO,MAAMG,cAAcR,QAAqB,IAC9C,MAAM,CAAC,uBAAoBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACrD;AACD,OAAO,MAAMK,cAAcT,QAAqB,IAC9C,MAAM,CAAC,uBAAoBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACrD;AACD,OAAO,MAAMM,iBAAiBV,QAAwB,IACpD,MAAM,CAAC,2BAAwBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACzD;AACD,OAAO,MAAMO,oBAAoBX,QAA2B,IAC1D,MAAM,CAAC,8BAA2BE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC5D;AACD,2EAA2E;AAC3E,2EAA2E;AAC3E,UAAU;AACV,OAAO,MAAMQ,iBAAiBZ,QAAwB,IACpD,MAAM,CAAC,2BAAwBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACzD;AACD,sEAAsE;AACtE,gEAAgE;AAChE,OAAO,MA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,CAACC,MAAQA,IAAIC,OAAO,GAC1D;AACD,OAAO,MAAMmB,kBAAkBvB,QAAyB,IACtD,MAAM,CAAC,4BAAyBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC1D;AACD,OAAO,MAAMoB,aAAaxB,QAAoB,IAC5C,MAAM,CAAC,sBAAmBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACpD;AACD,OAAO,MAAMqB,gBAAgBzB,QAAuB,IAClD,MAAM,CAAC,yBAAsBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACvD;AACD,OAAO,MAAMsB,kBAAkB1B,QAAyB,IACtD,MAAM,CAAC,4BAAyBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC1D;AACD,OAAO,MAAMuB,YAAY3B,QAAQ,IAC/B,MAAM,CAAC,qBAAkBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACnD;AACD,OAAO,MAAMwB,cAAc5B,QAAqB,IAC9C,MAAM,CAAC,uBAAoBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACrD;AACD,OAAO,MAAMyB,sBAAsB7B,QAA6B,IAC9D,MAAM,CAAC,iCAA8BE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GAC/D;AACD,OAAO,MAAM0B,eAAe9B,QAAsB,IAChD,MAAM,CAAC,yBAAsBE,IAAI,CAAC,CAACC,MAAQA,IAAIC,OAAO,GACvD"}
@@ -28,6 +28,8 @@ export declare const FIELD_MAP_CSS_DIMENSION: ExtendedMapperComponent;
28
28
  export declare const FIELD_MAP_CSS_BORDER: ExtendedMapperComponent;
29
29
  /** Named presets + raw escape hatch for radius/shadow/font (AGL-2486). */
30
30
  export declare const FIELD_MAP_PRESET_CHOICE: ExtendedMapperComponent;
31
+ /** Opening hours by day, persisted as the hours text. */
32
+ export declare const FIELD_MAP_WEEKLY_HOURS: ExtendedMapperComponent;
31
33
  /** Per-breakpoint span/offset row, persisted as one string (AGL-2486). */
32
34
  export declare const FIELD_MAP_BREAKPOINT_SPAN: ExtendedMapperComponent;
33
35
  /** Fill type + angle + colour stops, persisted as one string (AGL-1331). */
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */ import { _ as _extends } from "@swc/helpers/_/_extends";
17
17
  import optionIsEqualToValue from "../utils/option-is-equal-to-value.js";
18
- import { FieldBreakpointSpan, FieldCheckbox, FieldColorPicker, FieldCssBorder, FieldCssDimension, FieldCssGradient, FieldDataTable, FieldDatePicker, FieldDualListSelect, FieldFieldArray, FieldIconSelect, FieldPlainText, FieldPresetChoice, FieldRadio, FieldSelect, FieldSlider, FieldSubForm, FieldSwitch, FieldTabs, FieldTextarea, FieldTextField, FieldThemeScale, FieldTimePicker, FieldToggleButton, FieldWizard } from "./dynamic-fields.js";
18
+ import { FieldBreakpointSpan, FieldWeeklyHours, FieldCheckbox, FieldColorPicker, FieldCssBorder, FieldCssDimension, FieldCssGradient, FieldDataTable, FieldDatePicker, FieldDualListSelect, FieldFieldArray, FieldIconSelect, FieldPlainText, FieldPresetChoice, FieldRadio, FieldSelect, FieldSlider, FieldSubForm, FieldSwitch, FieldTabs, FieldTextarea, FieldTextField, FieldThemeScale, FieldTimePicker, FieldToggleButton, FieldWizard } from "./dynamic-fields.js";
19
19
  export const fieldSharedOptions = {
20
20
  size: 'small',
21
21
  color: 'primary'
@@ -54,6 +54,9 @@ export const FIELD_MAP_TEXT_FIELD = _extends({}, fieldSharedOptions, {
54
54
  /** Named presets + raw escape hatch for radius/shadow/font (AGL-2486). */ export const FIELD_MAP_PRESET_CHOICE = _extends({}, fieldSharedOptions, {
55
55
  component: FieldPresetChoice
56
56
  });
57
+ /** Opening hours by day, persisted as the hours text. */ export const FIELD_MAP_WEEKLY_HOURS = _extends({}, fieldSharedOptions, {
58
+ component: FieldWeeklyHours
59
+ });
57
60
  /** Per-breakpoint span/offset row, persisted as one string (AGL-2486). */ export const FIELD_MAP_BREAKPOINT_SPAN = _extends({}, fieldSharedOptions, {
58
61
  component: FieldBreakpointSpan
59
62
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/field-configurations.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ExtendedMapperComponent } from '../vendor/data-driven-forms'\nimport optionIsEqualToValue from '../utils/option-is-equal-to-value'\nimport {\n FieldBreakpointSpan,\n FieldCheckbox,\n FieldColorPicker,\n FieldCssBorder,\n FieldCssDimension,\n FieldCssGradient,\n FieldDataTable,\n FieldDatePicker,\n FieldDualListSelect,\n FieldFieldArray,\n FieldIconSelect,\n FieldPlainText,\n FieldPresetChoice,\n FieldRadio,\n FieldSelect,\n FieldSlider,\n FieldSubForm,\n FieldSwitch,\n FieldTabs,\n FieldTextarea,\n FieldTextField,\n FieldThemeScale,\n FieldTimePicker,\n FieldToggleButton,\n FieldWizard,\n} from './dynamic-fields'\n\nexport const fieldSharedOptions = {\n size: 'small',\n color: 'primary',\n}\n\n/*\n * Each of these is `ExtendedMapperComponent` — `{ component, ...defaultProps }`\n * — and not the wider `FieldComponentMap`. That alias is the mapper's VALUE\n * type, so it also admits a bare `React.ElementType`, i.e. a string like\n * `'div'`; a spread of one is then TS2698 and no test could extend a preset\n * with `{ ...FIELD_MAP_SELECT, component: Select }` (AGL-1323).\n */\n\nexport const FIELD_MAP_SELECT: ExtendedMapperComponent = {\n size: fieldSharedOptions.size,\n component: FieldSelect,\n isClearable: true,\n variant: 'outlined',\n TextFieldProps: {\n color: fieldSharedOptions.color,\n },\n isOptionEqualToValue: optionIsEqualToValue,\n}\nexport const FIELD_MAP_SWITCH: ExtendedMapperComponent = {\n color: fieldSharedOptions.color,\n // size: 'medium',\n component: FieldSwitch,\n}\nexport const FIELD_MAP_TEXT_FIELD: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n // size: 'small',\n component: FieldTextField,\n}\n/** Number box + unit picker for CSS length attributes (AGL-1219). */\nexport const FIELD_MAP_CSS_DIMENSION: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssDimension,\n}\n/** Thickness + line style for a border shorthand (AGL-2486). */\nexport const FIELD_MAP_CSS_BORDER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssBorder,\n}\n/** Named presets + raw escape hatch for radius/shadow/font (AGL-2486). */\nexport const FIELD_MAP_PRESET_CHOICE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldPresetChoice,\n}\n/** Per-breakpoint span/offset row, persisted as one string (AGL-2486). */\nexport const FIELD_MAP_BREAKPOINT_SPAN: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldBreakpointSpan,\n}\n/** Fill type + angle + colour stops, persisted as one string (AGL-1331). */\nexport const FIELD_MAP_CSS_GRADIENT: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssGradient,\n}\n/** Row-and-column grid for the Table element (AGL-2543). */\nexport const FIELD_MAP_DATA_TABLE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldDataTable,\n}\n/** Theme scale + raw value for font size / weight / z-index (AGL-2486). */\nexport const FIELD_MAP_THEME_SCALE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldThemeScale,\n}\nexport const FIELD_MAP_TEXTAREA: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldTextarea,\n}\nexport const FIELD_MAP_PLAIN_TEXT: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldPlainText,\n}\nexport const FIELD_MAP_SLIDER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldSlider,\n}\nexport const FIELD_MAP_TIME_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldTimePicker,\n}\nexport const FIELD_MAP_DATE_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldDatePicker,\n}\nexport const FIELD_MAP_RADIO: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldRadio,\n}\nexport const FIELD_MAP_CHECKBOX: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCheckbox,\n}\nexport const FIELD_MAP_FIELD_ARRAY: ExtendedMapperComponent = {\n component: FieldFieldArray,\n}\nexport const FIELD_MAP_TABS: ExtendedMapperComponent = {\n color: fieldSharedOptions.color,\n component: FieldTabs,\n}\nexport const FIELD_MAP_WIZARD: ExtendedMapperComponent = {\n component: FieldWizard,\n}\nexport const FIELD_MAP_DUAL_LIST_SELECT: ExtendedMapperComponent = {\n component: FieldDualListSelect,\n}\nexport const FIELD_MAP_ICON_PICKER: ExtendedMapperComponent = {\n size: fieldSharedOptions.size,\n component: FieldIconSelect,\n isClearable: true,\n isOptionEqualToValue: optionIsEqualToValue,\n}\nexport const FIELD_MAP_COLOR_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldColorPicker,\n FormControlProps: {\n ...fieldSharedOptions,\n },\n}\nexport const FIELD_MAP_TOGGLE_BUTTON: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldToggleButton,\n FormControlProps: {\n ...fieldSharedOptions,\n },\n}\nexport const FIELD_SUB_FORM: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldSubForm,\n}\n"],"names":["optionIsEqualToValue","FieldBreakpointSpan","FieldCheckbox","FieldColorPicker","FieldCssBorder","FieldCssDimension","FieldCssGradient","FieldDataTable","FieldDatePicker","FieldDualListSelect","FieldFieldArray","FieldIconSelect","FieldPlainText","FieldPresetChoice","FieldRadio","FieldSelect","FieldSlider","FieldSubForm","FieldSwitch","FieldTabs","FieldTextarea","FieldTextField","FieldThemeScale","FieldTimePicker","FieldToggleButton","FieldWizard","fieldSharedOptions","size","color","FIELD_MAP_SELECT","component","isClearable","variant","TextFieldProps","isOptionEqualToValue","FIELD_MAP_SWITCH","FIELD_MAP_TEXT_FIELD","FIELD_MAP_CSS_DIMENSION","FIELD_MAP_CSS_BORDER","FIELD_MAP_PRESET_CHOICE","FIELD_MAP_BREAKPOINT_SPAN","FIELD_MAP_CSS_GRADIENT","FIELD_MAP_DATA_TABLE","FIELD_MAP_THEME_SCALE","FIELD_MAP_TEXTAREA","FIELD_MAP_PLAIN_TEXT","FIELD_MAP_SLIDER","FIELD_MAP_TIME_PICKER","FIELD_MAP_DATE_PICKER","FIELD_MAP_RADIO","FIELD_MAP_CHECKBOX","FIELD_MAP_FIELD_ARRAY","FIELD_MAP_TABS","FIELD_MAP_WIZARD","FIELD_MAP_DUAL_LIST_SELECT","FIELD_MAP_ICON_PICKER","FIELD_MAP_COLOR_PICKER","FormControlProps","FIELD_MAP_TOGGLE_BUTTON","FIELD_SUB_FORM"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC;AAGD,OAAOA,0BAA0B,uCAAmC;AACpE,SACEC,mBAAmB,EACnBC,aAAa,EACbC,gBAAgB,EAChBC,cAAc,EACdC,iBAAiB,EACjBC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC,mBAAmB,EACnBC,eAAe,EACfC,eAAe,EACfC,cAAc,EACdC,iBAAiB,EACjBC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,YAAY,EACZC,WAAW,EACXC,SAAS,EACTC,aAAa,EACbC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,iBAAiB,EACjBC,WAAW,QACN,sBAAkB;AAEzB,OAAO,MAAMC,qBAAqB;IAChCC,MAAM;IACNC,OAAO;AACT,EAAC;AAED;;;;;;CAMC,GAED,OAAO,MAAMC,mBAA4C;IACvDF,MAAMD,mBAAmBC,IA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b,EAAC;AACD,OAAO,MAAM0C,iBAA0C;IACrDxB,OAAOF,mBAAmBE,KAAK;IAC/BE,WAAWX;AACb,EAAC;AACD,OAAO,MAAMkC,mBAA4C;IACvDvB,WAAWL;AACb,EAAC;AACD,OAAO,MAAM6B,6BAAsD;IACjExB,WAAWrB;AACb,EAAC;AACD,OAAO,MAAM8C,wBAAiD;IAC5D5B,MAAMD,mBAAmBC,IAAI;IAC7BG,WAAWnB;IACXoB,aAAa;IACbG,sBAAsBlC;AACxB,EAAC;AACD,OAAO,MAAMwD,yBAAkD,aAC1D9B;IACHI,WAAW3B;IACXsD,kBAAkB,aACb/B;GAEN;AACD,OAAO,MAAMgC,0BAAmD,aAC3DhC;IACHI,WAAWN;IACXiC,kBAAkB,aACb/B;GAEN;AACD,OAAO,MAAMiC,iBAA0C,aAClDjC;IACHI,WAAWb;GACZ"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/field-configurations.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ExtendedMapperComponent } from '../vendor/data-driven-forms'\nimport optionIsEqualToValue from '../utils/option-is-equal-to-value'\nimport {\n FieldBreakpointSpan,\n FieldWeeklyHours,\n FieldCheckbox,\n FieldColorPicker,\n FieldCssBorder,\n FieldCssDimension,\n FieldCssGradient,\n FieldDataTable,\n FieldDatePicker,\n FieldDualListSelect,\n FieldFieldArray,\n FieldIconSelect,\n FieldPlainText,\n FieldPresetChoice,\n FieldRadio,\n FieldSelect,\n FieldSlider,\n FieldSubForm,\n FieldSwitch,\n FieldTabs,\n FieldTextarea,\n FieldTextField,\n FieldThemeScale,\n FieldTimePicker,\n FieldToggleButton,\n FieldWizard,\n} from './dynamic-fields'\n\nexport const fieldSharedOptions = {\n size: 'small',\n color: 'primary',\n}\n\n/*\n * Each of these is `ExtendedMapperComponent` — `{ component, ...defaultProps }`\n * — and not the wider `FieldComponentMap`. That alias is the mapper's VALUE\n * type, so it also admits a bare `React.ElementType`, i.e. a string like\n * `'div'`; a spread of one is then TS2698 and no test could extend a preset\n * with `{ ...FIELD_MAP_SELECT, component: Select }` (AGL-1323).\n */\n\nexport const FIELD_MAP_SELECT: ExtendedMapperComponent = {\n size: fieldSharedOptions.size,\n component: FieldSelect,\n isClearable: true,\n variant: 'outlined',\n TextFieldProps: {\n color: fieldSharedOptions.color,\n },\n isOptionEqualToValue: optionIsEqualToValue,\n}\nexport const FIELD_MAP_SWITCH: ExtendedMapperComponent = {\n color: fieldSharedOptions.color,\n // size: 'medium',\n component: FieldSwitch,\n}\nexport const FIELD_MAP_TEXT_FIELD: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n // size: 'small',\n component: FieldTextField,\n}\n/** Number box + unit picker for CSS length attributes (AGL-1219). */\nexport const FIELD_MAP_CSS_DIMENSION: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssDimension,\n}\n/** Thickness + line style for a border shorthand (AGL-2486). */\nexport const FIELD_MAP_CSS_BORDER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssBorder,\n}\n/** Named presets + raw escape hatch for radius/shadow/font (AGL-2486). */\nexport const FIELD_MAP_PRESET_CHOICE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldPresetChoice,\n}\n/** Opening hours by day, persisted as the hours text. */\nexport const FIELD_MAP_WEEKLY_HOURS: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldWeeklyHours,\n}\n/** Per-breakpoint span/offset row, persisted as one string (AGL-2486). */\nexport const FIELD_MAP_BREAKPOINT_SPAN: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldBreakpointSpan,\n}\n/** Fill type + angle + colour stops, persisted as one string (AGL-1331). */\nexport const FIELD_MAP_CSS_GRADIENT: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCssGradient,\n}\n/** Row-and-column grid for the Table element (AGL-2543). */\nexport const FIELD_MAP_DATA_TABLE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldDataTable,\n}\n/** Theme scale + raw value for font size / weight / z-index (AGL-2486). */\nexport const FIELD_MAP_THEME_SCALE: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldThemeScale,\n}\nexport const FIELD_MAP_TEXTAREA: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldTextarea,\n}\nexport const FIELD_MAP_PLAIN_TEXT: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldPlainText,\n}\nexport const FIELD_MAP_SLIDER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldSlider,\n}\nexport const FIELD_MAP_TIME_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldTimePicker,\n}\nexport const FIELD_MAP_DATE_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldDatePicker,\n}\nexport const FIELD_MAP_RADIO: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldRadio,\n}\nexport const FIELD_MAP_CHECKBOX: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldCheckbox,\n}\nexport const FIELD_MAP_FIELD_ARRAY: ExtendedMapperComponent = {\n component: FieldFieldArray,\n}\nexport const FIELD_MAP_TABS: ExtendedMapperComponent = {\n color: fieldSharedOptions.color,\n component: FieldTabs,\n}\nexport const FIELD_MAP_WIZARD: ExtendedMapperComponent = {\n component: FieldWizard,\n}\nexport const FIELD_MAP_DUAL_LIST_SELECT: ExtendedMapperComponent = {\n component: FieldDualListSelect,\n}\nexport const FIELD_MAP_ICON_PICKER: ExtendedMapperComponent = {\n size: fieldSharedOptions.size,\n component: FieldIconSelect,\n isClearable: true,\n isOptionEqualToValue: optionIsEqualToValue,\n}\nexport const FIELD_MAP_COLOR_PICKER: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldColorPicker,\n FormControlProps: {\n ...fieldSharedOptions,\n },\n}\nexport const FIELD_MAP_TOGGLE_BUTTON: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldToggleButton,\n FormControlProps: {\n ...fieldSharedOptions,\n },\n}\nexport const FIELD_SUB_FORM: ExtendedMapperComponent = {\n ...fieldSharedOptions,\n component: FieldSubForm,\n}\n"],"names":["optionIsEqualToValue","FieldBreakpointSpan","FieldWeeklyHours","FieldCheckbox","FieldColorPicker","FieldCssBorder","FieldCssDimension","FieldCssGradient","FieldDataTable","FieldDatePicker","FieldDualListSelect","FieldFieldArray","FieldIconSelect","FieldPlainText","FieldPresetChoice","FieldRadio","FieldSelect","FieldSlider","FieldSubForm","FieldSwitch","FieldTabs","FieldTextarea","FieldTextField","FieldThemeScale","FieldTimePicker","FieldToggleButton","FieldWizard","fieldSharedOptions","size","color","FIELD_MAP_SELECT","component","isClearable","variant","TextFieldProps","isOptionEqualToValue","FIELD_MAP_SWITCH","FIELD_MAP_TEXT_FIELD","FIELD_MAP_CSS_DIMENSION","FIELD_MAP_CSS_BORDER","FIELD_MAP_PRESET_CHOICE","FIELD_MAP_WEEKLY_HOURS","FIELD_MAP_BREAKPOINT_SPAN","FIELD_MAP_CSS_GRADIENT","FIELD_MAP_DATA_TABLE","FIELD_MAP_THEME_SCALE","FIELD_MAP_TEXTAREA","FIELD_MAP_PLAIN_TEXT","FIELD_MAP_SLIDER","FIELD_MAP_TIME_PICKER","FIELD_MAP_DATE_PICKER","FIELD_MAP_RADIO","FIELD_MAP_CHECKBOX","FIELD_MAP_FIELD_ARRAY","FIELD_MAP_TABS","FIELD_MAP_WIZARD","FIELD_MAP_DUAL_LIST_SELEC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C,iBAA0C,aAClDlC;IACHI,WAAWb;GACZ"}
@@ -50,6 +50,8 @@ export declare enum FieldComponentType {
50
50
  THEME_SCALE = "theme-scale",
51
51
  TIME_PICKER = "time-picker",
52
52
  TOGGLE_BUTTON = "toggle-button",
53
+ /** Open/closed switch and from/to times per weekday; one hours string. */
54
+ WEEKLY_HOURS = "weekly-hours",
53
55
  WIZARD = "wizard"
54
56
  }
55
57
  export declare enum FieldValidatorType {
@@ -42,6 +42,7 @@
42
42
  /** Theme-scale combo box that still accepts a raw value (AGL-2486). */ FieldComponentType["THEME_SCALE"] = "theme-scale";
43
43
  FieldComponentType["TIME_PICKER"] = "time-picker";
44
44
  FieldComponentType["TOGGLE_BUTTON"] = "toggle-button";
45
+ /** Open/closed switch and from/to times per weekday; one hours string. */ FieldComponentType["WEEKLY_HOURS"] = "weekly-hours";
45
46
  FieldComponentType["WIZARD"] = "wizard";
46
47
  return FieldComponentType;
47
48
  }({});
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/flags.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum FieldComponentType {\n /** Per-breakpoint span/offset row; persists one string (AGL-2486). */\n BREAKPOINT_SPAN = 'breakpoint-span',\n BUTTON = 'button',\n CHECKBOX = 'checkbox',\n COLOR_PICKER = 'color-picker',\n /** Thickness + line style for a border shorthand; one string (AGL-2486). */\n CSS_BORDER = 'css-border',\n /** Number + unit editor for a CSS length; persists one string (AGL-1219). */\n CSS_DIMENSION = 'css-dimension',\n /** Fill type + angle + colour stops; persists one CSS string (AGL-1331). */\n CSS_GRADIENT = 'css-gradient',\n /** Row-and-column grid for the Table element (AGL-2543). */\n DATA_TABLE = 'data-table',\n DATE_PICKER = 'date-picker',\n DUAL_LIST_SELECT = 'dual-list-select',\n FIELD_ARRAY = 'field-array',\n ICON_PICKER = 'icon-picker',\n INPUT_ADDON_BUTTON_GROUP = 'input-addon-button-group',\n INPUT_ADDON_GROUP = 'input-addon-group',\n PLAIN_TEXT = 'plain-text',\n /** Named presets with a raw escape hatch (AGL-2486). */\n PRESET_CHOICE = 'preset-choice',\n RADIO = 'radio',\n SELECT = 'select',\n SLIDER = 'slider',\n SUB_FORM = 'sub-form',\n SWITCH = 'switch',\n TAB_ITEM = 'tab-item',\n TABS = 'tabs',\n TEXT_FIELD = 'text-field',\n TEXTAREA = 'textarea',\n /** Theme-scale combo box that still accepts a raw value (AGL-2486). */\n THEME_SCALE = 'theme-scale',\n TIME_PICKER = 'time-picker',\n TOGGLE_BUTTON = 'toggle-button',\n WIZARD = 'wizard',\n}\n\nexport enum FieldValidatorType {\n EXACT_LENGTH = 'exact-length',\n MAX_LENGTH = 'max-length',\n MAX_NUMBER_VALUE = 'max-number-value',\n MIN_ITEMS = 'min-items',\n MIN_LENGTH = 'min-length',\n MIN_NUMBER_VALUE = 'min-number-value',\n PATTERN = 'pattern',\n REQUIRED = 'required',\n URL = 'url',\n}\n\nexport enum FieldDataType {\n BOOLEAN = 'boolean',\n FLOAT = 'float',\n INTEGER = 'integer',\n NUMBER = 'number',\n STRING = 'string',\n}\n"],"names":["FieldComponentType","FieldValidatorType","FieldDataType"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,OAAO,IAAA,AAAKA,4CAAAA;IACV,oEAAoE;;;;IAKpE,0EAA0E;IAE1E,2EAA2E;IAE3E,0EAA0E;IAE1E,0DAA0D;;;;;;;;IAS1D,sDAAsD;;;;;;;;;;IAWtD,qEAAqE;;;;WAhC3DA;MAqCX;AAED,OAAO,IAAA,AAAKC,4CAAAA;;;;;;;;;;WAAAA;MAUX;AAED,OAAO,IAAA,AAAKC,uCAAAA;;;;;;WAAAA;MAMX"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/constants/flags.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum FieldComponentType {\n /** Per-breakpoint span/offset row; persists one string (AGL-2486). */\n BREAKPOINT_SPAN = 'breakpoint-span',\n BUTTON = 'button',\n CHECKBOX = 'checkbox',\n COLOR_PICKER = 'color-picker',\n /** Thickness + line style for a border shorthand; one string (AGL-2486). */\n CSS_BORDER = 'css-border',\n /** Number + unit editor for a CSS length; persists one string (AGL-1219). */\n CSS_DIMENSION = 'css-dimension',\n /** Fill type + angle + colour stops; persists one CSS string (AGL-1331). */\n CSS_GRADIENT = 'css-gradient',\n /** Row-and-column grid for the Table element (AGL-2543). */\n DATA_TABLE = 'data-table',\n DATE_PICKER = 'date-picker',\n DUAL_LIST_SELECT = 'dual-list-select',\n FIELD_ARRAY = 'field-array',\n ICON_PICKER = 'icon-picker',\n INPUT_ADDON_BUTTON_GROUP = 'input-addon-button-group',\n INPUT_ADDON_GROUP = 'input-addon-group',\n PLAIN_TEXT = 'plain-text',\n /** Named presets with a raw escape hatch (AGL-2486). */\n PRESET_CHOICE = 'preset-choice',\n RADIO = 'radio',\n SELECT = 'select',\n SLIDER = 'slider',\n SUB_FORM = 'sub-form',\n SWITCH = 'switch',\n TAB_ITEM = 'tab-item',\n TABS = 'tabs',\n TEXT_FIELD = 'text-field',\n TEXTAREA = 'textarea',\n /** Theme-scale combo box that still accepts a raw value (AGL-2486). */\n THEME_SCALE = 'theme-scale',\n TIME_PICKER = 'time-picker',\n TOGGLE_BUTTON = 'toggle-button',\n /** Open/closed switch and from/to times per weekday; one hours string. */\n WEEKLY_HOURS = 'weekly-hours',\n WIZARD = 'wizard',\n}\n\nexport enum FieldValidatorType {\n EXACT_LENGTH = 'exact-length',\n MAX_LENGTH = 'max-length',\n MAX_NUMBER_VALUE = 'max-number-value',\n MIN_ITEMS = 'min-items',\n MIN_LENGTH = 'min-length',\n MIN_NUMBER_VALUE = 'min-number-value',\n PATTERN = 'pattern',\n REQUIRED = 'required',\n URL = 'url',\n}\n\nexport enum FieldDataType {\n BOOLEAN = 'boolean',\n FLOAT = 'float',\n INTEGER = 'integer',\n NUMBER = 'number',\n STRING = 'string',\n}\n"],"names":["FieldComponentType","FieldValidatorType","FieldDataType"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,OAAO,IAAA,AAAKA,4CAAAA;IACV,oEAAoE;;;;IAKpE,0EAA0E;IAE1E,2EAA2E;IAE3E,0EAA0E;IAE1E,0DAA0D;;;;;;;;IAS1D,sDAAsD;;;;;;;;;;IAWtD,qEAAqE;;;IAIrE,wEAAwE;;WApC9DA;MAuCX;AAED,OAAO,IAAA,AAAKC,4CAAAA;;;;;;;;;;WAAAA;MAUX;AAED,OAAO,IAAA,AAAKC,uCAAAA;;;;;;WAAAA;MAMX"}
@@ -48,3 +48,4 @@ export { default as TimePicker, type TimePickerProps } from './time-picker';
48
48
  export { default as Wizard, type WizardProps } from './wizard';
49
49
  export type { BaseFieldProps, OptionValue, SelectOption, SelectValue, } from './types';
50
50
  export { default as validationError, type ExtendedFieldMeta, } from './validation-error';
51
+ export type { WeeklyHoursProps } from './weekly-hours';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/mapper/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Aglyn's MUI component mapper for data-driven-forms.\n *\n * Ported from `@data-driven-forms/mui-component-mapper` (Apache-2.0), which\n * still targets MUI v5, and rewritten against the current MUI APIs (Grid\n * `size`, `slotProps`, `ListItemButton`, x-date-pickers slots) so the\n * patch-package override of the upstream mapper is no longer needed (AGL-226).\n */\n\nexport {\n default as Checkbox,\n SingleCheckbox,\n type CheckboxProps,\n type SingleCheckboxProps,\n} from './checkbox'\nexport {\n default as BreakpointSpan,\n BreakpointSpanField,\n seedSpanDraft,\n serializeSpanDraft,\n type BreakpointSpanProps,\n type SpanDraft,\n} from './breakpoint-span'\nexport {\n default as CssBorder,\n CssBorderField,\n seedBorderDraft,\n serializeBorderDraft,\n CSS_BORDER_STYLES,\n CSS_BORDER_STYLE_LABELS,\n type BorderDraft,\n type CssBorderProps,\n type CssBorderStyle,\n} from './css-border'\nexport {\n default as CssDimension,\n CssDimensionField,\n seedDimensionDraft,\n serializeDimensionDraft,\n type CssDimensionProps,\n} from './css-dimension'\nexport {\n default as CssGradient,\n CssGradientField,\n seedGradientDraft,\n serializeGradientDraft,\n type CssGradientProps,\n} from './css-gradient'\nexport {\n default as DataTableField,\n type DataTableFieldProps,\n} from './data-table'\nexport { default as DatePicker, type DatePickerProps } from './date-picker'\nexport {\n default as DualListSelect,\n type DualListSelectProps,\n} from './dual-list-select'\nexport {\n default as FieldArray,\n DynamicArray,\n type FieldArrayProps,\n} from './field-array'\nexport {\n FIELD_MUTED_CLASS,\n FIELD_MUTED_STYLES,\n FieldMuteButton,\n type FieldBindAction,\n type FieldMuteAction,\n default as FormFieldGrid,\n type FormFieldGridProps,\n} from './form-field-grid'\nexport {\n default as MultipleChoiceList,\n type MultipleChoiceListProps,\n} from './multiple-choice-list'\nexport { default as PlainText, type PlainTextProps } from './plain-text'\nexport {\n default as PresetChoice,\n PresetChoiceField,\n findPresetChoice,\n presetChoiceValueToText,\n PRESET_CHOICE_CUSTOM,\n type PresetChoiceOption,\n type PresetChoicePreview,\n type PresetChoiceProps,\n} from './preset-choice'\nexport { default as Radio, type RadioProps } from './radio'\nexport { default as Select, type SelectProps } from './select'\nexport { default as Slider, type SliderProps } from './slider'\nexport { default as SubForm, type SubFormProps } from './sub-form'\nexport { default as Switch, type SwitchProps } from './switch'\nexport { default as Tabs, FormTabs, type FormTabsProps } from './tabs'\nexport { default as TextField, type TextFieldProps } from './text-field'\nexport { default as Textarea, type TextareaProps } from './textarea'\nexport {\n default as ThemeScale,\n ThemeScaleField,\n filterThemeScaleOptions,\n themeScaleValueToText,\n type ThemeScaleOption,\n type ThemeScaleProps,\n} from './theme-scale'\nexport { default as TimePicker, type TimePickerProps } from './time-picker'\nexport { default as Wizard, type WizardProps } from './wizard'\nexport type {\n BaseFieldProps,\n OptionValue,\n SelectOption,\n SelectValue,\n} from './types'\nexport {\n default as validationError,\n type ExtendedFieldMeta,\n} from './validation-error'\n"],"names":["default","Checkbox","SingleCheckbox","BreakpointSpan","BreakpointSpanField","seedSpanDraft","serializeSpanDraft","CssBorder","CssBorderField","seedBorderDraft","serializeBorderDraft","CSS_BORDER_STYLES","CSS_BORDER_STYLE_LABELS","CssDimension","CssDimensionField","seedDimensionDraft","serializeDimensionDraft","CssGradient","CssGradientField","seedGradientDraft","serializeGradientDraft","DataTableField","DatePicker","DualListSelect","FieldArray","DynamicArray","FIELD_MUTED_CLASS","FIELD_MUTED_STYLES","FieldMuteButton","FormFieldGrid","MultipleChoiceList","PlainText","PresetChoice","PresetChoiceField","findPresetChoice","presetChoiceValueToText","PRESET_CHOICE_CUSTOM","Radio","Select","Slider","SubForm","Switch","Tabs","FormTabs","TextField","Textarea","ThemeScale","ThemeScaleField","filterThemeScaleOptions","themeScaleValueToText","TimePicker","Wizard","validationError"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;CAOC,GAED,SACEA,WAAWC,QAAQ,EACnBC,cAAc,QAGT,gBAAY;AACnB,SACEF,WAAWG,cAAc,EACzBC,mBAAmB,EACnBC,aAAa,EACbC,kBAAkB,QAGb,uBAAmB;AAC1B,SACEN,WAAWO,SAAS,EACpBC,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,iBAAiB,EACjBC,uBAAuB,QAIlB,kBAAc;AACrB,SACEZ,WAAWa,YAAY,EACvBC,iBAAiB,EACjBC,kBAAkB,EAClBC,uBAAuB,QAElB,qBAAiB;AACxB,SACEhB,WAAWiB,WAAW,EACtBC,gBAAgB,EAChBC,iBAAiB,EACjBC,sBAAsB,QAEjB,oBAAgB;AACvB,SACEpB,WAAWqB,cAAc,QAEpB,kBAAc;AACrB,SAASrB,WAAWsB,UAAU,QAA8B,mBAAe;AAC3E,SACEtB,WAAWuB,cAAc,QAEpB,wBAAoB;AAC3B,SACEvB,WAAWwB,UAAU,EACrBC,YAAY,QAEP,mBAAe;AACtB,SACEC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EAGf5B,WAAW6B,aAAa,QAEnB,uBAAmB;AAC1B,SACE7B,WAAW8B,kBAAkB,QAExB,4BAAwB;AAC/B,SAAS9B,WAAW+B,SAAS,QAA6B,kBAAc;AACxE,SACE/B,WAAWgC,YAAY,EACvBC,iBAAiB,EACjBC,gBAAgB,EAChBC,uBAAuB,EACvBC,oBAAoB,QAIf,qBAAiB;AACxB,SAASpC,WAAWqC,KAAK,QAAyB,aAAS;AAC3D,SAASrC,WAAWsC,MAAM,QAA0B,cAAU;AAC9D,SAAStC,WAAWuC,MAAM,QAA0B,cAAU;AAC9D,SAASvC,WAAWwC,OAAO,QAA2B,gBAAY;AAClE,SAASxC,WAAWyC,MAAM,QAA0B,cAAU;AAC9D,SAASzC,WAAW0C,IAAI,EAAEC,QAAQ,QAA4B,YAAQ;AACtE,SAAS3C,WAAW4C,SAAS,QAA6B,kBAAc;AACxE,SAAS5C,WAAW6C,QAAQ,QAA4B,gBAAY;AACpE,SACE7C,WAAW8C,UAAU,EACrBC,eAAe,EACfC,uBAAuB,EACvBC,qBAAqB,QAGhB,mBAAe;AACtB,SAASjD,WAAWkD,UAAU,QAA8B,mBAAe;AAC3E,SAASlD,WAAWmD,MAAM,QAA0B,cAAU;AAO9D,SACEnD,WAAWoD,eAAe,QAErB,wBAAoB"}
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/mapper/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Aglyn's MUI component mapper for data-driven-forms.\n *\n * Ported from `@data-driven-forms/mui-component-mapper` (Apache-2.0), which\n * still targets MUI v5, and rewritten against the current MUI APIs (Grid\n * `size`, `slotProps`, `ListItemButton`, x-date-pickers slots) so the\n * patch-package override of the upstream mapper is no longer needed (AGL-226).\n */\n\nexport {\n default as Checkbox,\n SingleCheckbox,\n type CheckboxProps,\n type SingleCheckboxProps,\n} from './checkbox'\nexport {\n default as BreakpointSpan,\n BreakpointSpanField,\n seedSpanDraft,\n serializeSpanDraft,\n type BreakpointSpanProps,\n type SpanDraft,\n} from './breakpoint-span'\nexport {\n default as CssBorder,\n CssBorderField,\n seedBorderDraft,\n serializeBorderDraft,\n CSS_BORDER_STYLES,\n CSS_BORDER_STYLE_LABELS,\n type BorderDraft,\n type CssBorderProps,\n type CssBorderStyle,\n} from './css-border'\nexport {\n default as CssDimension,\n CssDimensionField,\n seedDimensionDraft,\n serializeDimensionDraft,\n type CssDimensionProps,\n} from './css-dimension'\nexport {\n default as CssGradient,\n CssGradientField,\n seedGradientDraft,\n serializeGradientDraft,\n type CssGradientProps,\n} from './css-gradient'\nexport {\n default as DataTableField,\n type DataTableFieldProps,\n} from './data-table'\nexport { default as DatePicker, type DatePickerProps } from './date-picker'\nexport {\n default as DualListSelect,\n type DualListSelectProps,\n} from './dual-list-select'\nexport {\n default as FieldArray,\n DynamicArray,\n type FieldArrayProps,\n} from './field-array'\nexport {\n FIELD_MUTED_CLASS,\n FIELD_MUTED_STYLES,\n FieldMuteButton,\n type FieldBindAction,\n type FieldMuteAction,\n default as FormFieldGrid,\n type FormFieldGridProps,\n} from './form-field-grid'\nexport {\n default as MultipleChoiceList,\n type MultipleChoiceListProps,\n} from './multiple-choice-list'\nexport { default as PlainText, type PlainTextProps } from './plain-text'\nexport {\n default as PresetChoice,\n PresetChoiceField,\n findPresetChoice,\n presetChoiceValueToText,\n PRESET_CHOICE_CUSTOM,\n type PresetChoiceOption,\n type PresetChoicePreview,\n type PresetChoiceProps,\n} from './preset-choice'\nexport { default as Radio, type RadioProps } from './radio'\nexport { default as Select, type SelectProps } from './select'\nexport { default as Slider, type SliderProps } from './slider'\nexport { default as SubForm, type SubFormProps } from './sub-form'\nexport { default as Switch, type SwitchProps } from './switch'\nexport { default as Tabs, FormTabs, type FormTabsProps } from './tabs'\nexport { default as TextField, type TextFieldProps } from './text-field'\nexport { default as Textarea, type TextareaProps } from './textarea'\nexport {\n default as ThemeScale,\n ThemeScaleField,\n filterThemeScaleOptions,\n themeScaleValueToText,\n type ThemeScaleOption,\n type ThemeScaleProps,\n} from './theme-scale'\nexport { default as TimePicker, type TimePickerProps } from './time-picker'\nexport { default as Wizard, type WizardProps } from './wizard'\nexport type {\n BaseFieldProps,\n OptionValue,\n SelectOption,\n SelectValue,\n} from './types'\nexport {\n default as validationError,\n type ExtendedFieldMeta,\n} from './validation-error'\n// Type only: the field itself loads through `dynamic-fields`, so the picker\n// is not pulled into every import of this barrel.\nexport type { WeeklyHoursProps } from './weekly-hours'\n"],"names":["default","Checkbox","SingleCheckbox","BreakpointSpan","BreakpointSpanField","seedSpanDraft","serializeSpanDraft","CssBorder","CssBorderField","seedBorderDraft","serializeBorderDraft","CSS_BORDER_STYLES","CSS_BORDER_STYLE_LABELS","CssDimension","CssDimensionField","seedDimensionDraft","serializeDimensionDraft","CssGradient","CssGradientField","seedGradientDraft","serializeGradientDraft","DataTableField","DatePicker","DualListSelect","FieldArray","DynamicArray","FIELD_MUTED_CLASS","FIELD_MUTED_STYLES","FieldMuteButton","FormFieldGrid","MultipleChoiceList","PlainText","PresetChoice","PresetChoiceField","findPresetChoice","presetChoiceValueToText","PRESET_CHOICE_CUSTOM","Radio","Select","Slider","SubForm","Switch","Tabs","FormTabs","TextField","Textarea","ThemeScale","ThemeScaleField","filterThemeScaleOptions","themeScaleValueToText","TimePicker","Wizard","validationError"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;CAOC,GAED,SACEA,WAAWC,QAAQ,EACnBC,cAAc,QAGT,gBAAY;AACnB,SACEF,WAAWG,cAAc,EACzBC,mBAAmB,EACnBC,aAAa,EACbC,kBAAkB,QAGb,uBAAmB;AAC1B,SACEN,WAAWO,SAAS,EACpBC,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,iBAAiB,EACjBC,uBAAuB,QAIlB,kBAAc;AACrB,SACEZ,WAAWa,YAAY,EACvBC,iBAAiB,EACjBC,kBAAkB,EAClBC,uBAAuB,QAElB,qBAAiB;AACxB,SACEhB,WAAWiB,WAAW,EACtBC,gBAAgB,EAChBC,iBAAiB,EACjBC,sBAAsB,QAEjB,oBAAgB;AACvB,SACEpB,WAAWqB,cAAc,QAEpB,kBAAc;AACrB,SAASrB,WAAWsB,UAAU,QAA8B,mBAAe;AAC3E,SACEtB,WAAWuB,cAAc,QAEpB,wBAAoB;AAC3B,SACEvB,WAAWwB,UAAU,EACrBC,YAAY,QAEP,mBAAe;AACtB,SACEC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EAGf5B,WAAW6B,aAAa,QAEnB,uBAAmB;AAC1B,SACE7B,WAAW8B,kBAAkB,QAExB,4BAAwB;AAC/B,SAAS9B,WAAW+B,SAAS,QAA6B,kBAAc;AACxE,SACE/B,WAAWgC,YAAY,EACvBC,iBAAiB,EACjBC,gBAAgB,EAChBC,uBAAuB,EACvBC,oBAAoB,QAIf,qBAAiB;AACxB,SAASpC,WAAWqC,KAAK,QAAyB,aAAS;AAC3D,SAASrC,WAAWsC,MAAM,QAA0B,cAAU;AAC9D,SAAStC,WAAWuC,MAAM,QAA0B,cAAU;AAC9D,SAASvC,WAAWwC,OAAO,QAA2B,gBAAY;AAClE,SAASxC,WAAWyC,MAAM,QAA0B,cAAU;AAC9D,SAASzC,WAAW0C,IAAI,EAAEC,QAAQ,QAA4B,YAAQ;AACtE,SAAS3C,WAAW4C,SAAS,QAA6B,kBAAc;AACxE,SAAS5C,WAAW6C,QAAQ,QAA4B,gBAAY;AACpE,SACE7C,WAAW8C,UAAU,EACrBC,eAAe,EACfC,uBAAuB,EACvBC,qBAAqB,QAGhB,mBAAe;AACtB,SAASjD,WAAWkD,UAAU,QAA8B,mBAAe;AAC3E,SAASlD,WAAWmD,MAAM,QAA0B,cAAU;AAO9D,SACEnD,WAAWoD,eAAe,QAErB,wBAAoB"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { type FormFieldGridProps } from './form-field-grid';
18
+ import type { BaseFieldProps } from './types';
19
+ export interface WeeklyHoursProps extends BaseFieldProps {
20
+ FormFieldGridProps?: FormFieldGridProps;
21
+ /** Word for an interval on the add button: "hours" or "window". */
22
+ intervalNoun?: string;
23
+ }
24
+ /**
25
+ * A week of opening hours picked by clicking. The persisted value is still
26
+ * the hours text, one `Mo-Fr 09:00-17:00` line per set of days, so whatever
27
+ * reads it is untouched; the author never types that syntax.
28
+ */
29
+ export declare const WeeklyHoursField: (props: WeeklyHoursProps) => import("react").JSX.Element;
30
+ export default WeeklyHoursField;
@@ -0,0 +1,42 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ /**
4
+ * @license
5
+ * Copyright 2026 Aglyn LLC
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */ import { OpeningHoursPicker } from "@aglyn/shared-ui-jsx/components/weekly-hours-picker.component";
19
+ import { useFieldApi } from "../vendor/data-driven-forms.js";
20
+ import FormFieldGrid from "./form-field-grid.js";
21
+ /**
22
+ * A week of opening hours picked by clicking. The persisted value is still
23
+ * the hours text, one `Mo-Fr 09:00-17:00` line per set of days, so whatever
24
+ * reads it is untouched; the author never types that syntax.
25
+ */ export const WeeklyHoursField = (props)=>{
26
+ const { input, label, helperText, isDisabled, isReadOnly, help, intervalNoun, FormFieldGridProps = {} } = useFieldApi(props);
27
+ return /*#__PURE__*/ _jsx(FormFieldGrid, _extends({
28
+ help: help
29
+ }, FormFieldGridProps, {
30
+ children: /*#__PURE__*/ _jsx(OpeningHoursPicker, {
31
+ label: label,
32
+ value: typeof input.value === 'string' ? input.value : '',
33
+ onChange: (text)=>input.onChange(text),
34
+ helperText: helperText,
35
+ disabled: isDisabled || isReadOnly,
36
+ intervalNoun: intervalNoun
37
+ })
38
+ }));
39
+ };
40
+ export default WeeklyHoursField;
41
+
42
+ //# sourceMappingURL=weekly-hours.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/jsx-forms/src/lib/mapper/weekly-hours.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OpeningHoursPicker } from '@aglyn/shared-ui-jsx/components/weekly-hours-picker.component'\n\nimport { useFieldApi } from '../vendor/data-driven-forms'\nimport FormFieldGrid, { type FormFieldGridProps } from './form-field-grid'\nimport type { BaseFieldProps } from './types'\n\nexport interface WeeklyHoursProps extends BaseFieldProps {\n FormFieldGridProps?: FormFieldGridProps\n /** Word for an interval on the add button: \"hours\" or \"window\". */\n intervalNoun?: string\n}\n\n/**\n * A week of opening hours picked by clicking. The persisted value is still\n * the hours text, one `Mo-Fr 09:00-17:00` line per set of days, so whatever\n * reads it is untouched; the author never types that syntax.\n */\nexport const WeeklyHoursField = (props: WeeklyHoursProps) => {\n const { input, label, helperText, isDisabled, isReadOnly, help, intervalNoun, FormFieldGridProps = {} } =\n useFieldApi(props)\n return (\n <FormFieldGrid help={help} {...FormFieldGridProps}>\n <OpeningHoursPicker\n label={label}\n value={typeof input.value === 'string' ? input.value : ''}\n onChange={(text) => input.onChange(text)}\n helperText={helperText}\n disabled={isDisabled || isReadOnly}\n intervalNoun={intervalNoun}\n />\n </FormFieldGrid>\n )\n}\n\nexport default WeeklyHoursField\n"],"names":["OpeningHoursPicker","useFieldApi","FormFieldGrid","WeeklyHoursField","props","input","label","helperText","isDisabled","isReadOnly","help","intervalNoun","FormFieldGridProps","value","onChange","text","disabled"],"mappings":";;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,kBAAkB,QAAQ,gEAA+D;AAElG,SAASC,WAAW,QAAQ,iCAA6B;AACzD,OAAOC,mBAAgD,uBAAmB;AAS1E;;;;CAIC,GACD,OAAO,MAAMC,mBAAmB,CAACC;IAC/B,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,UAAU,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,YAAY,EAAEC,qBAAqB,CAAC,CAAC,EAAE,GACrGX,YAAYG;IACd,qBACE,KAACF;QAAcQ,MAAMA;OAAUE;kBAC7B,cAAA,KAACZ;YACCM,OAAOA;YACPO,OAAO,OAAOR,MAAMQ,KAAK,KAAK,WAAWR,MAAMQ,KAAK,GAAG;YACvDC,UAAU,CAACC,OAASV,MAAMS,QAAQ,CAACC;YACnCR,YAAYA;YACZS,UAAUR,cAAcC;YACxBE,cAAcA;;;AAItB,EAAC;AAED,eAAeR,iBAAgB"}