@progress/kendo-themes-html 6.2.1-dev.154 → 6.2.1-dev.170
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/dist/context-menu/tests/context-menu-in-window.js +1 -4
- package/dist/context-menu/tests/context-menu-in-window.js.map +2 -2
- package/dist/datetime-selector/datetime-selector.spec.js +2 -2
- package/dist/datetime-selector/datetime-selector.spec.js.map +2 -2
- package/dist/datetime-selector/tests/datetime-selector.js +2 -2
- package/dist/datetime-selector/tests/datetime-selector.js.map +2 -2
- package/dist/datetimepicker/datetimepicker.spec.js +2 -2
- package/dist/datetimepicker/datetimepicker.spec.js.map +2 -2
- package/dist/datetimepicker/tests/datetimepicker-opened.js +2 -2
- package/dist/datetimepicker/tests/datetimepicker-opened.js.map +2 -2
- package/dist/datetimepicker/tests/datetimepicker.js +2 -2
- package/dist/datetimepicker/tests/datetimepicker.js.map +2 -2
- package/dist/dialog/dialog.spec.js +1 -4
- package/dist/dialog/dialog.spec.js.map +2 -2
- package/dist/dialog/tests/dialog-action-buttons.js +82 -73
- package/dist/dialog/tests/dialog-action-buttons.js.map +3 -3
- package/dist/dialog/tests/dialog-in-window.js +2 -8
- package/dist/dialog/tests/dialog-in-window.js.map +2 -2
- package/dist/dialog/tests/dialog-modal.js +70 -70
- package/dist/dialog/tests/dialog-modal.js.map +3 -3
- package/dist/dialog/tests/dialog-theme-colors.js +82 -73
- package/dist/dialog/tests/dialog-theme-colors.js.map +3 -3
- package/dist/dialog/tests/dialog.js +86 -74
- package/dist/dialog/tests/dialog.js.map +3 -3
- package/dist/editor/tests/editor-find-replace.js +1 -4
- package/dist/editor/tests/editor-find-replace.js.map +2 -2
- package/dist/editor/tests/editor-image-editor.js +276 -276
- package/dist/editor/tests/editor-image-editor.js.map +4 -4
- package/dist/editor/tests/editor-table-wizard-accessibility.js +5 -5
- package/dist/editor/tests/editor-table-wizard-accessibility.js.map +2 -2
- package/dist/editor/tests/editor-view-source.js +5 -5
- package/dist/editor/tests/editor-view-source.js.map +2 -2
- package/dist/filemanager/tests/filemanager-dialogs.js +79 -73
- package/dist/filemanager/tests/filemanager-dialogs.js.map +3 -3
- package/dist/form/tests/form-field-dateinputs.js +4 -4
- package/dist/form/tests/form-field-dateinputs.js.map +2 -2
- package/dist/gantt/tests/gantt-editing-popup-general.js +2300 -0
- package/dist/gantt/tests/gantt-editing-popup-general.js.map +7 -0
- package/dist/gantt/tests/gantt-editing-popup-other.js +2035 -0
- package/dist/gantt/tests/gantt-editing-popup-other.js.map +7 -0
- package/dist/gantt/tests/gantt-editing-popup-predecessors.js +1895 -0
- package/dist/gantt/tests/gantt-editing-popup-predecessors.js.map +7 -0
- package/dist/gantt/tests/gantt-editing-popup-resources.js +2195 -0
- package/dist/gantt/tests/gantt-editing-popup-resources.js.map +7 -0
- package/dist/gantt/tests/gantt-editing-popup-successors.js +1895 -0
- package/dist/gantt/tests/gantt-editing-popup-successors.js.map +7 -0
- package/dist/grid/tests/grid-column-menu-rtl.js +8 -8
- package/dist/grid/tests/grid-column-menu-rtl.js.map +2 -2
- package/dist/grid/tests/grid-column-menu-tabbed.js +1331 -0
- package/dist/grid/tests/grid-column-menu-tabbed.js.map +7 -0
- package/dist/grid/tests/grid-column-menu.js +8 -8
- package/dist/grid/tests/grid-column-menu.js.map +2 -2
- package/dist/grid/tests/grid-editing-custom-editor.js +4 -4
- package/dist/grid/tests/grid-editing-custom-editor.js.map +2 -2
- package/dist/grid/tests/grid-editing-popup.js +724 -338
- package/dist/grid/tests/grid-editing-popup.js.map +4 -4
- package/dist/grid/tests/grid-filter-menu-multi-checkbox.js +8 -8
- package/dist/grid/tests/grid-filter-menu-multi-checkbox.js.map +2 -2
- package/dist/grid/tests/grid-filter-menu.js +2 -2
- package/dist/grid/tests/grid-filter-menu.js.map +2 -2
- package/dist/grid/tests/grid-filter-row.js +4 -4
- package/dist/grid/tests/grid-filter-row.js.map +2 -2
- package/dist/grid/tests/grid-rows-resizing.js +2 -2
- package/dist/grid/tests/grid-rows-resizing.js.map +2 -2
- package/dist/grid/tests/grid-selection-aggregates.js +1348 -0
- package/dist/grid/tests/grid-selection-aggregates.js.map +7 -0
- package/dist/imageeditor/tests/imageeditor-crop-pane.js +48 -32
- package/dist/imageeditor/tests/imageeditor-crop-pane.js.map +2 -2
- package/dist/imageeditor/tests/imageeditor-resize-pane.js +45 -22
- package/dist/imageeditor/tests/imageeditor-resize-pane.js.map +2 -2
- package/dist/index.js +6 -12
- package/dist/index.js.map +2 -2
- package/dist/scheduler/tests/scheduler-edit-dialog.js +1394 -882
- package/dist/scheduler/tests/scheduler-edit-dialog.js.map +4 -4
- package/dist/scheduler/tests/scheduler-editing-weekly.js +2964 -0
- package/dist/scheduler/tests/scheduler-editing-weekly.js.map +7 -0
- package/dist/spreadsheet/tests/spreadsheet-dialog.js +10 -7
- package/dist/spreadsheet/tests/spreadsheet-dialog.js.map +2 -2
- package/dist/timepicker/tests/timepicker-flat.js +2 -2
- package/dist/timepicker/tests/timepicker-flat.js.map +2 -2
- package/dist/timepicker/tests/timepicker-opened.js +2 -2
- package/dist/timepicker/tests/timepicker-opened.js.map +2 -2
- package/dist/timepicker/tests/timepicker-outline.js +2 -2
- package/dist/timepicker/tests/timepicker-outline.js.map +2 -2
- package/dist/timepicker/tests/timepicker.js +2 -2
- package/dist/timepicker/tests/timepicker.js.map +2 -2
- package/dist/timepicker/timepicker.spec.js +2 -2
- package/dist/timepicker/timepicker.spec.js.map +2 -2
- package/dist/treelist/tests/treelist-editing-popup.js +1939 -0
- package/dist/treelist/tests/treelist-editing-popup.js.map +7 -0
- package/dist/window/tests/window-action-buttons.js +82 -73
- package/dist/window/tests/window-action-buttons.js.map +3 -3
- package/dist/window/tests/window-rtl.js +1 -4
- package/dist/window/tests/window-rtl.js.map +2 -2
- package/dist/window/tests/window-theme-colors.js +1 -4
- package/dist/window/tests/window-theme-colors.js.map +2 -2
- package/dist/window/tests/window.js +1 -4
- package/dist/window/tests/window.js.map +2 -2
- package/dist/window/window.spec.js +1 -4
- package/dist/window/window.spec.js.map +2 -2
- package/package.json +2 -2
- package/src/datetime-selector/datetime-selector.spec.tsx +1 -1
- package/src/dialog/dialog.spec.tsx +2 -3
- package/src/dialog/tests/dialog-action-buttons.tsx +25 -4
- package/src/dialog/tests/dialog-modal.tsx +7 -1
- package/src/dialog/tests/dialog-theme-colors.tsx +25 -4
- package/src/dialog/tests/dialog.tsx +31 -5
- package/src/editor/tests/editor-image-editor.tsx +8 -2
- package/src/editor/tests/editor-table-wizard-accessibility.tsx +7 -1
- package/src/editor/tests/editor-view-source.tsx +7 -1
- package/src/filemanager/tests/filemanager-dialogs.tsx +19 -3
- package/src/gantt/tests/gantt-editing-popup-general.tsx +97 -0
- package/src/gantt/tests/gantt-editing-popup-other.tsx +92 -0
- package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +113 -0
- package/src/gantt/tests/gantt-editing-popup-resources.tsx +180 -0
- package/src/gantt/tests/gantt-editing-popup-successors.tsx +113 -0
- package/src/grid/tests/grid-column-menu-rtl.tsx +4 -4
- package/src/grid/tests/grid-column-menu-tabbed.tsx +337 -0
- package/src/grid/tests/grid-column-menu.tsx +4 -4
- package/src/grid/tests/grid-editing-popup.tsx +18 -30
- package/src/grid/tests/grid-filter-menu-multi-checkbox.tsx +4 -4
- package/src/grid/tests/grid-filter-menu.tsx +1 -1
- package/src/grid/tests/grid-rows-resizing.tsx +6 -3
- package/src/grid/tests/grid-selection-aggregates.tsx +192 -0
- package/src/imageeditor/tests/imageeditor-crop-pane.tsx +35 -20
- package/src/imageeditor/tests/imageeditor-resize-pane.tsx +31 -16
- package/src/scheduler/tests/scheduler-edit-dialog.tsx +32 -34
- package/src/scheduler/tests/scheduler-editing-weekly.tsx +137 -0
- package/src/spreadsheet/tests/spreadsheet-dialog.tsx +15 -4
- package/src/timepicker/timepicker.spec.tsx +1 -1
- package/src/treelist/tests/treelist-editing-popup.tsx +66 -0
- package/src/window/tests/window-action-buttons.tsx +25 -4
- package/src/window/window.spec.tsx +2 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils/class-names.ts", "../../src/utils/component-class-names.ts", "../../src/utils/theme.ts", "../../src/action-buttons/action-buttons.spec.tsx", "../../src/icon/icon.spec.tsx", "../../src/button/button.spec.tsx", "../../src/window/window.spec.tsx"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable arrow-body-style */\nexport const classNames = (...args: any[]): string => {\n return args\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) => {\n // eslint-disable-next-line no-nested-ternary\n return Array.isArray(arg)\n ? classNames(...arg)\n : typeof arg === 'object'\n ? Object.keys(arg)\n .map((key, idx) => arg[idx] || (arg[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ')\n : arg;\n })\n .filter((arg) => Boolean(arg))\n .join(' ');\n};\n", "/* eslint-disable arrow-body-style */\nimport { classNames } from './class-names';\n\nexport const optionClassNames = (componentClassName: string, props: any) => {\n return classNames(\n {\n [`${componentClassName}-xs`]: props.size === \"xsmall\",\n [`${componentClassName}-sm`]: props.size === \"small\",\n [`${componentClassName}-md`]: props.size === \"medium\",\n [`${componentClassName}-lg`]: props.size === \"large\",\n [`${componentClassName}-xl`]: props.size === \"xlarge\",\n [`${componentClassName}-xxl`]: props.size === \"xxlarge\",\n [`${componentClassName}-xxxl`]: props.size === \"xxxlarge\"\n },\n {\n [`${componentClassName}-${props.fillMode}`]: props.fillMode,\n },\n {\n [`${componentClassName}-${props.fillMode}-${props.themeColor}`]:\n props.fillMode && props.themeColor,\n },\n {\n [`${componentClassName}-${props.themeColor}`]:\n props.themeColor && props.fillMode === undefined,\n },\n {\n 'k-rounded-sm': props.rounded === \"small\",\n 'k-rounded-md': props.rounded === \"medium\",\n 'k-rounded-lg': props.rounded === \"large\",\n 'k-rounded-full': props.rounded === \"full\",\n }\n );\n};\n\nexport const stateClassNames = (_componentClassName: string | undefined, props: any) => {\n return classNames({\n 'k-valid': props.valid,\n 'k-invalid': props.invalid,\n 'k-hover': props.hover,\n 'k-focus': props.focus,\n 'k-checked': props.checked,\n 'k-active': props.active,\n 'k-selected': props.selected,\n 'k-disabled': props.disabled,\n 'k-indeterminate': props.indeterminate && !props.checked,\n 'k-loading': props.loading,\n 'k-empty': props.empty,\n 'k-readonly': props.readonly,\n });\n};\n", "export const Size = {\n 'xsmall': 'xsmall',\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'xlarge': 'xlarge',\n 'xxlarge': 'xxlarge',\n 'xxxlarge': 'xxxlarge',\n} as const;\n\nexport const Roundness = {\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'full': 'full',\n} as const;\n\nexport const FillMode = {\n 'solid': 'solid',\n 'flat': 'flat',\n 'outline': 'outline',\n 'clear': 'clear',\n 'link': 'link',\n} as const;\n\nexport const ThemeColor = {\n 'inherit': 'inherit',\n 'base': 'base',\n 'primary': 'primary',\n 'secondary': 'secondary',\n 'tertiary': 'tertiary',\n 'info': 'info',\n 'success': 'success',\n 'warning': 'warning',\n 'error': 'error',\n 'dark': 'dark',\n 'light': 'light',\n 'inverse': 'inverse',\n} as const;\n\nexport const States = {\n 'open': 'open',\n 'hover': 'hover',\n 'focus': 'focus',\n 'active': 'active',\n 'selected': 'selected',\n 'disabled': 'disabled',\n 'valid': 'valid',\n 'invalid': 'invalid',\n 'loading': 'loading',\n 'required': 'required',\n 'empty': 'empty',\n 'indeterminate': 'indeterminate',\n 'checked': 'checked',\n 'readonly': 'readonly',\n} as const;\n\nexport const kendoThemeMaps = {\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n} as const;\n", "import { classNames } from '../utils';\n\nexport const ACTIONBUTTONS_CLASSNAME = `k-actions`;\n\nconst states = [];\n\nconst options = {};\n\nexport type KendoActionButtonsProps = {\n alignment?: 'start' | 'center' | 'end' | 'stretched';\n orientation?: 'horizontal' | 'vertical';\n};\n\nconst defaultProps = {\n alignment: 'start',\n orientation: 'horizontal'\n};\n\nexport const ActionButtons = (\n props: KendoActionButtonsProps &\n React.HTMLAttributes<HTMLDivElement>\n) => {\n const {\n alignment = defaultProps.alignment,\n orientation = defaultProps.orientation,\n ...other\n } = props;\n\n return (\n <div\n {...other}\n className={classNames(\n ACTIONBUTTONS_CLASSNAME,\n {\n [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,\n [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation\n },\n props.className\n )}>\n {props.children}\n </div>\n );\n};\n\nActionButtons.states = states;\nActionButtons.options = options;\nActionButtons.className = ACTIONBUTTONS_CLASSNAME;\nActionButtons.defaultProps = defaultProps;\n\nexport default ActionButtons;\n", "import { classNames, optionClassNames, Size, ThemeColor } from '../utils';\n\nexport const ICON_CLASSNAME = `k-icon`;\n\nconst states = [];\n\nconst options = {\n size: [ Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type IconState = { [K in (typeof states)[number]]?: boolean };\n\nexport type IconOptions = {\n size?: (typeof options.size)[number];\n themeColor?: (typeof options.themeColor)[number];\n};\n\nexport type IconProps = IconOptions & {\n name?: string;\n rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n flip?: null | 'v' | 'h';\n}\n\nexport const Icon = (\n props: IconProps & React.HTMLAttributes<HTMLSpanElement>\n) => {\n const {\n size,\n themeColor,\n name,\n rotate,\n flip,\n ...other\n } = props;\n\n if (!name) {\n return <></>;\n }\n\n return (\n <span\n {...other}\n className={classNames(\n props.className,\n ICON_CLASSNAME,\n optionClassNames(ICON_CLASSNAME, {\n size,\n themeColor,\n }),\n {\n [`k-i-${name}`]: name,\n [`k-rotate-${rotate}`]: rotate,\n [`k-flip-${flip}`]: flip,\n }\n )}\n />\n );\n};\n\nIcon.states = states;\nIcon.options = options;\nIcon.className = ICON_CLASSNAME;\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n", "import { Icon } from '../icon';\nimport { classNames, optionClassNames, stateClassNames, States, Size, Roundness, FillMode, ThemeColor } from '../utils';\n\nexport const BUTTON_CLASSNAME = `k-button`;\n\nconst states = [\n States.hover,\n States.focus,\n States.active,\n States.selected,\n States.disabled\n];\n\nconst options = {\n size: [ Size.small, Size.medium, Size.large ],\n rounded: [ Roundness.small, Roundness.medium, Roundness.large, Roundness.full ],\n fillMode: [ FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ThemeColor.inverse\n ],\n};\n\nexport type KendoButtonOptions = {\n size?: (typeof options.size)[number] | null;\n rounded?: (typeof options.rounded)[number] | null;\n fillMode?: (typeof options.fillMode)[number] | null;\n themeColor?: (typeof options.themeColor)[number] | null;\n};\n\nexport type KendoButtonProps = KendoButtonOptions & {\n icon?: string;\n text?: string;\n iconClassName?: string;\n showArrow?: boolean;\n arrowIconName?: string;\n};\n\nexport type KendoButtonState = { [K in (typeof states)[number]]?: boolean };\n\nconst defaultProps = {\n size: Size.medium,\n rounded: Roundness.medium,\n fillMode: FillMode.solid,\n themeColor: ThemeColor.base,\n showArrow: false,\n arrowIconName: \"arrow-s\"\n};\n\nexport const Button = (\n props: KendoButtonProps &\n KendoButtonState &\n React.HTMLAttributes<HTMLButtonElement>\n) => {\n const {\n size = defaultProps.size,\n rounded = defaultProps.rounded,\n fillMode = defaultProps.fillMode,\n themeColor = defaultProps.themeColor,\n hover,\n focus,\n active,\n selected,\n disabled,\n icon,\n text,\n iconClassName,\n showArrow = defaultProps.showArrow,\n arrowIconName = defaultProps.arrowIconName,\n ...other\n } = props;\n\n const hasIcon = (icon !== undefined);\n const hasChildren = props.children !== undefined;\n\n return (\n <button\n {...other}\n className={classNames(\n props.className,\n BUTTON_CLASSNAME,\n optionClassNames(BUTTON_CLASSNAME, {\n size,\n rounded,\n fillMode,\n themeColor,\n }),\n stateClassNames(BUTTON_CLASSNAME, {\n hover,\n focus,\n active,\n disabled,\n selected,\n }),\n {\n ['k-icon-button']: !text && !hasChildren && hasIcon,\n }\n )}\n >\n {icon && (\n <Icon\n className={classNames(iconClassName, 'k-button-icon')}\n name= {icon}\n />\n )}\n\n {text\n ?\n <>\n {text && <span className=\"k-button-text\">{text}</span>}\n {props.children}\n </>\n : props.children && <span className=\"k-button-text\">{props.children}</span>\n }\n\n {showArrow && (<span className=\"k-menu-button-arrow k-button-arrow\"><Icon name= {arrowIconName} /></span>)}\n\n </button>\n );\n};\n\nButton.states = states;\nButton.options = options;\nButton.className = BUTTON_CLASSNAME;\nButton.defaultProps = defaultProps;\n\nexport default Button;\n", "import { ActionButtons } from '../action-buttons';\nimport { Button } from '../button';\nimport { classNames, optionClassNames, ThemeColor } from '../utils';\n\nexport const WINDOW_CLASSNAME = `k-window`;\n\nconst states = [];\n\nconst options = {\n themeColor: [\n ThemeColor.primary,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type KendoWindowOptions = {\n themeColor?: (typeof options.themeColor)[number] | null;\n};\n\nexport type KendoWindowProps = KendoWindowOptions & {\n title?: string;\n actions?: string[];\n minimized?: boolean;\n actionButtons?: boolean;\n actionButtonsAlign?: \"start\" | \"end\" | \"center\" | \"stretched\"\n};\n\nexport const Window = (\n props: KendoWindowProps &\n React.HTMLAttributes<HTMLDivElement>\n) => {\n const {\n title,\n actions,\n minimized,\n themeColor,\n actionButtons,\n actionButtonsAlign,\n ...other\n } = props;\n\n return (\n <div\n {...other}\n className={classNames(\n props.className,\n WINDOW_CLASSNAME,\n optionClassNames(WINDOW_CLASSNAME, { themeColor }),\n {\n [`${WINDOW_CLASSNAME}-minimized`]: minimized,\n }\n )}>\n\n {(title !== undefined || actions) &&\n <div className=\"k-window-titlebar\">\n {title !== undefined && <span className=\"k-window-title\">{title}</span>}\n {actions && <>\n <div className=\"k-window-titlebar-actions\">\n {actions.map(actionName =>\n <Button key={actionName} icon={actionName} fillMode=\"flat\" className=\"k-window-titlebar-action\"></Button>\n )}\n </div>\n </>}\n </div>\n }\n <div className={classNames(\n \"k-window-content\",\n {\n \"k-hidden\": minimized\n }\n )}>\n {props.children}\n </div>\n {actionButtons &&\n <ActionButtons alignment={actionButtonsAlign} className=\"k-window-actions\">\n <Button>Cancel</Button>\n <Button themeColor=\"primary\">Update</Button>\n </ActionButtons>\n }\n </div>\n );\n};\n\nWindow.states = states;\nWindow.options = options;\nWindow.className = WINDOW_CLASSNAME;\nWindow.defaultProps = defaultProps;\n\nexport default Window;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACO,MAAM,aAAa,IAAI,SAAwB;AAClD,WAAO,KACF,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C,IAAI,CAAC,QAAa;AAEf,aAAO,MAAM,QAAQ,GAAG,IAClB,WAAW,GAAG,GAAG,IACjB,OAAO,QAAQ,WACX,OAAO,KAAK,GAAG,EACZ,IAAI,CAAC,KAAK,QAAQ,IAAI,GAAG,KAAM,IAAI,GAAG,KAAK,OAAQ,IAAI,EACvD,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG,IACX;AAAA,IACd,CAAC,EACA,OAAO,CAAC,QAAQ,QAAQ,GAAG,CAAC,EAC5B,KAAK,GAAG;AAAA,EACjB;;;ACdO,MAAM,mBAAmB,CAAC,o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AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,IACf;AAAA,EACJ;AAEA,MAAMC,gBAAe,CAAC;AAcf,MAAM,SAAS,CAClB,UAEC;AACD,UAQI,YAPA;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAxCR,IA0CQ,IADG,kBACH,IADG;AAAA,MANH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAIJ,WACI;AAAA,MAAC;AAAA,uCACO,QADP;AAAA,QAEG,WAAW;AAAA,UACP,MAAM;AAAA,UACN;AAAA,UACA,iBAAiB,kBAAkB,EAAE,WAAW,CAAC;AAAA,UACjD;AAAA,YACI,CAAC,GAAG,4BAA4B,GAAG;AAAA,UACvC;AAAA,QACJ;AAAA,QAEE;AAAA,qBAAU,UAAa,YACrB,8CAAC,SAAI,WAAU,qBACV;AAAA,sBAAU,UAAa,6CAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,YAC/D,WAAW,6EACR,uDAAC,SAAI,WAAU,6BACV,kBAAQ;AAAA,cAAI,gBACT,6CAAC,UAAwB,MAAM,YAAY,UAAS,QAAO,WAAU,8BAAxD,UAAmF;AAAA,YACpG,GACJ,GACJ;AAAA,aACJ;AAAA,UAEJ,6CAAC,SAAI,WAAW;AAAA,YACZ;AAAA,YACA;AAAA,cACI,YAAY;AAAA,YAChB;AAAA,UACJ,GACK,gBAAM,UACX;AAAA,UACC,iBACG,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable arrow-body-style */\nexport const classNames = (...args: any[]): string => {\n return args\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) => {\n // eslint-disable-next-line no-nested-ternary\n return Array.isArray(arg)\n ? classNames(...arg)\n : typeof arg === 'object'\n ? Object.keys(arg)\n .map((key, idx) => arg[idx] || (arg[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ')\n : arg;\n })\n .filter((arg) => Boolean(arg))\n .join(' ');\n};\n", "/* eslint-disable arrow-body-style */\nimport { classNames } from './class-names';\n\nexport const optionClassNames = (componentClassName: string, props: any) => {\n return classNames(\n {\n [`${componentClassName}-xs`]: props.size === \"xsmall\",\n [`${componentClassName}-sm`]: props.size === \"small\",\n [`${componentClassName}-md`]: props.size === \"medium\",\n [`${componentClassName}-lg`]: props.size === \"large\",\n [`${componentClassName}-xl`]: props.size === \"xlarge\",\n [`${componentClassName}-xxl`]: props.size === \"xxlarge\",\n [`${componentClassName}-xxxl`]: props.size === \"xxxlarge\"\n },\n {\n [`${componentClassName}-${props.fillMode}`]: props.fillMode,\n },\n {\n [`${componentClassName}-${props.fillMode}-${props.themeColor}`]:\n props.fillMode && props.themeColor,\n },\n {\n [`${componentClassName}-${props.themeColor}`]:\n props.themeColor && props.fillMode === undefined,\n },\n {\n 'k-rounded-sm': props.rounded === \"small\",\n 'k-rounded-md': props.rounded === \"medium\",\n 'k-rounded-lg': props.rounded === \"large\",\n 'k-rounded-full': props.rounded === \"full\",\n }\n );\n};\n\nexport const stateClassNames = (_componentClassName: string | undefined, props: any) => {\n return classNames({\n 'k-valid': props.valid,\n 'k-invalid': props.invalid,\n 'k-hover': props.hover,\n 'k-focus': props.focus,\n 'k-checked': props.checked,\n 'k-active': props.active,\n 'k-selected': props.selected,\n 'k-disabled': props.disabled,\n 'k-indeterminate': props.indeterminate && !props.checked,\n 'k-loading': props.loading,\n 'k-empty': props.empty,\n 'k-readonly': props.readonly,\n });\n};\n", "export const Size = {\n 'xsmall': 'xsmall',\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'xlarge': 'xlarge',\n 'xxlarge': 'xxlarge',\n 'xxxlarge': 'xxxlarge',\n} as const;\n\nexport const Roundness = {\n 'small': 'small',\n 'medium': 'medium',\n 'large': 'large',\n 'full': 'full',\n} as const;\n\nexport const FillMode = {\n 'solid': 'solid',\n 'flat': 'flat',\n 'outline': 'outline',\n 'clear': 'clear',\n 'link': 'link',\n} as const;\n\nexport const ThemeColor = {\n 'inherit': 'inherit',\n 'base': 'base',\n 'primary': 'primary',\n 'secondary': 'secondary',\n 'tertiary': 'tertiary',\n 'info': 'info',\n 'success': 'success',\n 'warning': 'warning',\n 'error': 'error',\n 'dark': 'dark',\n 'light': 'light',\n 'inverse': 'inverse',\n} as const;\n\nexport const States = {\n 'open': 'open',\n 'hover': 'hover',\n 'focus': 'focus',\n 'active': 'active',\n 'selected': 'selected',\n 'disabled': 'disabled',\n 'valid': 'valid',\n 'invalid': 'invalid',\n 'loading': 'loading',\n 'required': 'required',\n 'empty': 'empty',\n 'indeterminate': 'indeterminate',\n 'checked': 'checked',\n 'readonly': 'readonly',\n} as const;\n\nexport const kendoThemeMaps = {\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n} as const;\n", "import { classNames } from '../utils';\n\nexport const ACTIONBUTTONS_CLASSNAME = `k-actions`;\n\nconst states = [];\n\nconst options = {};\n\nexport type KendoActionButtonsProps = {\n alignment?: 'start' | 'center' | 'end' | 'stretched';\n orientation?: 'horizontal' | 'vertical';\n};\n\nconst defaultProps = {\n alignment: 'start',\n orientation: 'horizontal'\n};\n\nexport const ActionButtons = (\n props: KendoActionButtonsProps &\n React.HTMLAttributes<HTMLDivElement>\n) => {\n const {\n alignment = defaultProps.alignment,\n orientation = defaultProps.orientation,\n ...other\n } = props;\n\n return (\n <div\n {...other}\n className={classNames(\n ACTIONBUTTONS_CLASSNAME,\n {\n [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,\n [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation\n },\n props.className\n )}>\n {props.children}\n </div>\n );\n};\n\nActionButtons.states = states;\nActionButtons.options = options;\nActionButtons.className = ACTIONBUTTONS_CLASSNAME;\nActionButtons.defaultProps = defaultProps;\n\nexport default ActionButtons;\n", "import { classNames, optionClassNames, Size, ThemeColor } from '../utils';\n\nexport const ICON_CLASSNAME = `k-icon`;\n\nconst states = [];\n\nconst options = {\n size: [ Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type IconState = { [K in (typeof states)[number]]?: boolean };\n\nexport type IconOptions = {\n size?: (typeof options.size)[number];\n themeColor?: (typeof options.themeColor)[number];\n};\n\nexport type IconProps = IconOptions & {\n name?: string;\n rotate?: null | '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n flip?: null | 'v' | 'h';\n}\n\nexport const Icon = (\n props: IconProps & React.HTMLAttributes<HTMLSpanElement>\n) => {\n const {\n size,\n themeColor,\n name,\n rotate,\n flip,\n ...other\n } = props;\n\n if (!name) {\n return <></>;\n }\n\n return (\n <span\n {...other}\n className={classNames(\n props.className,\n ICON_CLASSNAME,\n optionClassNames(ICON_CLASSNAME, {\n size,\n themeColor,\n }),\n {\n [`k-i-${name}`]: name,\n [`k-rotate-${rotate}`]: rotate,\n [`k-flip-${flip}`]: flip,\n }\n )}\n />\n );\n};\n\nIcon.states = states;\nIcon.options = options;\nIcon.className = ICON_CLASSNAME;\nIcon.defaultProps = defaultProps;\n\nexport default Icon;\n", "import { Icon } from '../icon';\nimport { classNames, optionClassNames, stateClassNames, States, Size, Roundness, FillMode, ThemeColor } from '../utils';\n\nexport const BUTTON_CLASSNAME = `k-button`;\n\nconst states = [\n States.hover,\n States.focus,\n States.active,\n States.selected,\n States.disabled\n];\n\nconst options = {\n size: [ Size.small, Size.medium, Size.large ],\n rounded: [ Roundness.small, Roundness.medium, Roundness.large, Roundness.full ],\n fillMode: [ FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link ],\n themeColor: [\n ThemeColor.base,\n ThemeColor.primary,\n ThemeColor.secondary,\n ThemeColor.tertiary,\n ThemeColor.success,\n ThemeColor.warning,\n ThemeColor.error,\n ThemeColor.info,\n ThemeColor.light,\n ThemeColor.dark,\n ThemeColor.inverse\n ],\n};\n\nexport type KendoButtonOptions = {\n size?: (typeof options.size)[number] | null;\n rounded?: (typeof options.rounded)[number] | null;\n fillMode?: (typeof options.fillMode)[number] | null;\n themeColor?: (typeof options.themeColor)[number] | null;\n};\n\nexport type KendoButtonProps = KendoButtonOptions & {\n icon?: string;\n text?: string;\n iconClassName?: string;\n showArrow?: boolean;\n arrowIconName?: string;\n};\n\nexport type KendoButtonState = { [K in (typeof states)[number]]?: boolean };\n\nconst defaultProps = {\n size: Size.medium,\n rounded: Roundness.medium,\n fillMode: FillMode.solid,\n themeColor: ThemeColor.base,\n showArrow: false,\n arrowIconName: \"arrow-s\"\n};\n\nexport const Button = (\n props: KendoButtonProps &\n KendoButtonState &\n React.HTMLAttributes<HTMLButtonElement>\n) => {\n const {\n size = defaultProps.size,\n rounded = defaultProps.rounded,\n fillMode = defaultProps.fillMode,\n themeColor = defaultProps.themeColor,\n hover,\n focus,\n active,\n selected,\n disabled,\n icon,\n text,\n iconClassName,\n showArrow = defaultProps.showArrow,\n arrowIconName = defaultProps.arrowIconName,\n ...other\n } = props;\n\n const hasIcon = (icon !== undefined);\n const hasChildren = props.children !== undefined;\n\n return (\n <button\n {...other}\n className={classNames(\n props.className,\n BUTTON_CLASSNAME,\n optionClassNames(BUTTON_CLASSNAME, {\n size,\n rounded,\n fillMode,\n themeColor,\n }),\n stateClassNames(BUTTON_CLASSNAME, {\n hover,\n focus,\n active,\n disabled,\n selected,\n }),\n {\n ['k-icon-button']: !text && !hasChildren && hasIcon,\n }\n )}\n >\n {icon && (\n <Icon\n className={classNames(iconClassName, 'k-button-icon')}\n name= {icon}\n />\n )}\n\n {text\n ?\n <>\n {text && <span className=\"k-button-text\">{text}</span>}\n {props.children}\n </>\n : props.children && <span className=\"k-button-text\">{props.children}</span>\n }\n\n {showArrow && (<span className=\"k-menu-button-arrow k-button-arrow\"><Icon name= {arrowIconName} /></span>)}\n\n </button>\n );\n};\n\nButton.states = states;\nButton.options = options;\nButton.className = BUTTON_CLASSNAME;\nButton.defaultProps = defaultProps;\n\nexport default Button;\n", "import { ActionButtons } from '../action-buttons';\nimport { Button } from '../button';\nimport { classNames, optionClassNames, ThemeColor } from '../utils';\n\nexport const WINDOW_CLASSNAME = `k-window`;\n\nconst states = [];\n\nconst options = {\n themeColor: [\n ThemeColor.primary,\n ThemeColor.light,\n ThemeColor.dark,\n ],\n};\n\nconst defaultProps = {};\n\nexport type KendoWindowOptions = {\n themeColor?: (typeof options.themeColor)[number] | null;\n};\n\nexport type KendoWindowProps = KendoWindowOptions & {\n title?: string;\n actions?: string[];\n minimized?: boolean;\n actionButtons?: JSX.Element;\n actionButtonsAlign?: \"start\" | \"end\" | \"center\" | \"stretched\"\n};\n\nexport const Window = (\n props: KendoWindowProps &\n React.HTMLAttributes<HTMLDivElement>\n) => {\n const {\n title,\n actions,\n minimized,\n themeColor,\n actionButtons,\n actionButtonsAlign,\n ...other\n } = props;\n\n return (\n <div\n {...other}\n className={classNames(\n props.className,\n WINDOW_CLASSNAME,\n optionClassNames(WINDOW_CLASSNAME, { themeColor }),\n {\n [`${WINDOW_CLASSNAME}-minimized`]: minimized,\n }\n )}>\n\n {(title !== undefined || actions) &&\n <div className=\"k-window-titlebar\">\n {title !== undefined && <span className=\"k-window-title\">{title}</span>}\n {actions && <>\n <div className=\"k-window-titlebar-actions\">\n {actions.map(actionName =>\n <Button key={actionName} icon={actionName} fillMode=\"flat\" className=\"k-window-titlebar-action\"></Button>\n )}\n </div>\n </>}\n </div>\n }\n <div className={classNames(\n \"k-window-content\",\n {\n \"k-hidden\": minimized\n }\n )}>\n {props.children}\n </div>\n {actionButtons &&\n <ActionButtons alignment={actionButtonsAlign} className=\"k-window-actions\">\n {actionButtons}\n </ActionButtons>\n }\n </div>\n );\n};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6CAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,YAC/D,WAAW,6EACR,uDAAC,SAAI,WAAU,6BACV,kBAAQ;AAAA,cAAI,gBACT,6CAAC,UAAwB,MAAM,YAAY,UAAS,QAAO,WAAU,8BAAxD,UAAmF;AAAA,YACpG,GACJ,GACJ;AAAA,aACJ;AAAA,UAEJ,6CAAC,SAAI,WAAW;AAAA,YACZ;AAAA,YACA;AAAA,cACI,YAAY;AAAA,YAChB;AAAA,UACJ,GACK,gBAAM,UACX;AAAA,UACC,iBACG,6CAAC,iBAAc,WAAW,oBAAoB,WAAU,oBACnD,yBACL;AAAA;AAAA;AAAA,IAER;AAAA,EAER;AAEA,SAAO,SAASF;AAChB,SAAO,UAAUC;AACjB,SAAO,YAAY;AACnB,SAAO,eAAeC;AAEtB,MAAO,sBAAQ;",
|
|
6
6
|
"names": ["import_jsx_runtime", "states", "options", "defaultProps", "import_jsx_runtime", "states", "options", "defaultProps", "import_jsx_runtime", "states", "options", "defaultProps"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-themes-html",
|
|
3
3
|
"description": "A collection of HTML helpers used for developing Kendo UI themes",
|
|
4
|
-
"version": "6.2.1-dev.
|
|
4
|
+
"version": "6.2.1-dev.170+8a13808d8",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/react": "^18.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "8a13808d819533aac7618d8548361f9c8d476de2"
|
|
46
46
|
}
|
|
@@ -68,8 +68,8 @@ export const DateTimeSelector = (
|
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<ActionButtons className="k-datetime-footer" alignment="stretched">
|
|
71
|
-
<Button className="k-time-cancel">Cancel</Button>
|
|
72
71
|
<Button themeColor="primary" className="k-time-accept">Set</Button>
|
|
72
|
+
<Button className="k-time-cancel">Cancel</Button>
|
|
73
73
|
</ActionButtons>
|
|
74
74
|
</div>
|
|
75
75
|
);
|
|
@@ -23,7 +23,7 @@ export type KendoDialogOptions = {
|
|
|
23
23
|
export type KendoDialogProps = KendoDialogOptions & {
|
|
24
24
|
title?: string;
|
|
25
25
|
actions?: string[];
|
|
26
|
-
actionButtons?:
|
|
26
|
+
actionButtons?: JSX.Element;
|
|
27
27
|
actionButtonsAlign?: "start" | "end" | "center" | "stretched"
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -67,8 +67,7 @@ export const Dialog = (
|
|
|
67
67
|
</div>
|
|
68
68
|
{actionButtons &&
|
|
69
69
|
<ActionButtons alignment={actionButtonsAlign} className="k-window-actions k-dialog-actions">
|
|
70
|
-
|
|
71
|
-
<Button themeColor="primary">Primary</Button>
|
|
70
|
+
{actionButtons}
|
|
72
71
|
</ActionButtons>
|
|
73
72
|
}
|
|
74
73
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Dialog } from '../../dialog';
|
|
3
4
|
|
|
4
5
|
const root = ReactDOM.createRoot(
|
|
@@ -17,19 +18,39 @@ root.render(
|
|
|
17
18
|
<style>{styles}</style>
|
|
18
19
|
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
19
20
|
|
|
20
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
21
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
22
|
+
<>
|
|
23
|
+
<Button>Action</Button>
|
|
24
|
+
<Button themeColor="primary">Primary</Button>
|
|
25
|
+
</>
|
|
26
|
+
}>
|
|
21
27
|
Action Buttons at start position
|
|
22
28
|
</Dialog>
|
|
23
29
|
|
|
24
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
30
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="center" actionButtons={
|
|
31
|
+
<>
|
|
32
|
+
<Button>Action</Button>
|
|
33
|
+
<Button themeColor="primary">Primary</Button>
|
|
34
|
+
</>
|
|
35
|
+
}>
|
|
25
36
|
Action Buttons at center position
|
|
26
37
|
</Dialog>
|
|
27
38
|
|
|
28
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
39
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
40
|
+
<>
|
|
41
|
+
<Button>Action</Button>
|
|
42
|
+
<Button themeColor="primary">Primary</Button>
|
|
43
|
+
</>
|
|
44
|
+
}>
|
|
29
45
|
Action Buttons at end position
|
|
30
46
|
</Dialog>
|
|
31
47
|
|
|
32
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
48
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="stretched" actionButtons={
|
|
49
|
+
<>
|
|
50
|
+
<Button>Action</Button>
|
|
51
|
+
<Button themeColor="primary">Primary</Button>
|
|
52
|
+
</>
|
|
53
|
+
}>
|
|
33
54
|
Action Buttons with stretched position
|
|
34
55
|
</Dialog>
|
|
35
56
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Dialog } from '../../dialog';
|
|
3
4
|
|
|
4
5
|
const root = ReactDOM.createRoot(
|
|
@@ -23,7 +24,12 @@ root.render(
|
|
|
23
24
|
<div id="test-area" className="k-grid-cols-1">
|
|
24
25
|
<div className="k-dialog-wrapper">
|
|
25
26
|
<div className="k-overlay"></div>
|
|
26
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
27
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
28
|
+
<>
|
|
29
|
+
<Button>Action</Button>
|
|
30
|
+
<Button themeColor="primary">Primary</Button>
|
|
31
|
+
</>
|
|
32
|
+
}>
|
|
27
33
|
Dialog content template
|
|
28
34
|
</Dialog>
|
|
29
35
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Dialog } from '..';
|
|
3
4
|
|
|
4
5
|
|
|
@@ -17,19 +18,39 @@ root.render(
|
|
|
17
18
|
<style>{styles}</style>
|
|
18
19
|
<div id="test-area" className="k-d-grid k-grid-cols-3">
|
|
19
20
|
|
|
20
|
-
<Dialog title="Title" actions={[ 'close' ]}
|
|
21
|
+
<Dialog title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
22
|
+
<>
|
|
23
|
+
<Button>Action</Button>
|
|
24
|
+
<Button themeColor="primary">Primary</Button>
|
|
25
|
+
</>
|
|
26
|
+
}>
|
|
21
27
|
Dialog with default theme color
|
|
22
28
|
</Dialog>
|
|
23
29
|
|
|
24
|
-
<Dialog themeColor="primary" title="Title" actions={[ 'close' ]}
|
|
30
|
+
<Dialog themeColor="primary" title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
31
|
+
<>
|
|
32
|
+
<Button>Action</Button>
|
|
33
|
+
<Button themeColor="primary">Primary</Button>
|
|
34
|
+
</>
|
|
35
|
+
}>
|
|
25
36
|
Dialog with primary theme color
|
|
26
37
|
</Dialog>
|
|
27
38
|
|
|
28
|
-
<Dialog themeColor="dark" title="Title" actions={[ 'close' ]}
|
|
39
|
+
<Dialog themeColor="dark" title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
40
|
+
<>
|
|
41
|
+
<Button>Action</Button>
|
|
42
|
+
<Button themeColor="primary">Primary</Button>
|
|
43
|
+
</>
|
|
44
|
+
}>
|
|
29
45
|
Dialog with dark theme color
|
|
30
46
|
</Dialog>
|
|
31
47
|
|
|
32
|
-
<Dialog themeColor="light" title="Title" actions={[ 'close' ]}
|
|
48
|
+
<Dialog themeColor="light" title="Title" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
49
|
+
<>
|
|
50
|
+
<Button>Action</Button>
|
|
51
|
+
<Button themeColor="primary">Primary</Button>
|
|
52
|
+
</>
|
|
53
|
+
}>
|
|
33
54
|
Dialog with light theme color
|
|
34
55
|
</Dialog>
|
|
35
56
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Dialog } from '../../dialog';
|
|
3
4
|
|
|
4
5
|
|
|
@@ -19,17 +20,32 @@ root.render(
|
|
|
19
20
|
|
|
20
21
|
<Dialog title="Title
|
|
21
22
|
g y p
|
|
22
|
-
t d l" actions={[ 'close' ]}
|
|
23
|
+
t d l" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
24
|
+
<>
|
|
25
|
+
<Button>Action</Button>
|
|
26
|
+
<Button themeColor="primary">Primary</Button>
|
|
27
|
+
</>
|
|
28
|
+
}>
|
|
23
29
|
Dialog content template
|
|
24
30
|
</Dialog>
|
|
25
31
|
|
|
26
32
|
<Dialog title="Cursive
|
|
27
33
|
g y p
|
|
28
|
-
t d l"
|
|
34
|
+
t d l" actionButtonsAlign="end" actionButtons={
|
|
35
|
+
<>
|
|
36
|
+
<Button>Action</Button>
|
|
37
|
+
<Button themeColor="primary">Primary</Button>
|
|
38
|
+
</>
|
|
39
|
+
}>
|
|
29
40
|
Dialog without titlebar actions
|
|
30
41
|
</Dialog>
|
|
31
42
|
|
|
32
|
-
<Dialog title="" actions={[ 'close' ]}
|
|
43
|
+
<Dialog title="" actions={[ 'close' ]} actionButtonsAlign="end" actionButtons={
|
|
44
|
+
<>
|
|
45
|
+
<Button>Action</Button>
|
|
46
|
+
<Button themeColor="primary">Primary</Button>
|
|
47
|
+
</>
|
|
48
|
+
}>
|
|
33
49
|
Dialog with empty title and actions
|
|
34
50
|
</Dialog>
|
|
35
51
|
|
|
@@ -37,11 +53,21 @@ root.render(
|
|
|
37
53
|
Dialog with empty title and no actions
|
|
38
54
|
</Dialog>
|
|
39
55
|
|
|
40
|
-
<Dialog
|
|
56
|
+
<Dialog actionButtonsAlign="end" actionButtons={
|
|
57
|
+
<>
|
|
58
|
+
<Button>Action</Button>
|
|
59
|
+
<Button themeColor="primary">Primary</Button>
|
|
60
|
+
</>
|
|
61
|
+
}>
|
|
41
62
|
Dialog without title
|
|
42
63
|
</Dialog>
|
|
43
64
|
|
|
44
|
-
<Dialog title="Scrolling" actions={[ 'close' ]}
|
|
65
|
+
<Dialog title="Scrolling" actions={[ 'close' ]} actionButtonsAlign="end" style={{ height: "170px" }} actionButtons={
|
|
66
|
+
<>
|
|
67
|
+
<Button>Action</Button>
|
|
68
|
+
<Button themeColor="primary">Primary</Button>
|
|
69
|
+
</>
|
|
70
|
+
}>
|
|
45
71
|
<p>Dialog content template with long text and vertical scrolling.</p>
|
|
46
72
|
<p>Dialog content template with long text and vertical scrolling.</p>
|
|
47
73
|
<p>Dialog content template with long text and vertical scrolling.</p>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Textbox } from '../../textbox';
|
|
3
4
|
import { Window } from '../../window';
|
|
4
5
|
import { Form, FormField } from '../../form';
|
|
@@ -23,8 +24,13 @@ root.render(
|
|
|
23
24
|
<span></span>
|
|
24
25
|
|
|
25
26
|
<section>
|
|
26
|
-
<Window title="Insert Image" actions={[ 'close' ]}
|
|
27
|
-
|
|
27
|
+
<Window title="Insert Image" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
28
|
+
<>
|
|
29
|
+
<Button themeColor="primary">Insert</Button>
|
|
30
|
+
<Button>Cancel</Button>
|
|
31
|
+
</>
|
|
32
|
+
}>
|
|
33
|
+
<Form tag="div" orientation="vertical">
|
|
28
34
|
<FormField label="Web address:" editor={ <Textbox showClearButton={false} /> } />
|
|
29
35
|
<FormField label="Alternate text:" editor={ <Textbox showClearButton={false} /> } />
|
|
30
36
|
<FormField label="Width:" editor={ <Textbox showClearButton={false} /> } />
|
|
@@ -5,6 +5,7 @@ import { NumericTextbox } from '../../numerictextbox';
|
|
|
5
5
|
import { Textarea } from '../../textarea';
|
|
6
6
|
import { Textbox } from '../../textbox';
|
|
7
7
|
import { Form, FormField } from '../../form';
|
|
8
|
+
import { Button } from '../../button';
|
|
8
9
|
|
|
9
10
|
const root = ReactDOM.createRoot(
|
|
10
11
|
document.getElementById('app') as HTMLElement
|
|
@@ -25,7 +26,12 @@ root.render(
|
|
|
25
26
|
<style>{styles}</style>
|
|
26
27
|
<div id="test-area" className="k-d-grid">
|
|
27
28
|
<section>
|
|
28
|
-
<Window className="k-editor-window k-editor-table-wizard-window" title="Table Wizard" actions={[ 'close' ]}
|
|
29
|
+
<Window className="k-editor-window k-editor-table-wizard-window" title="Table Wizard" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
30
|
+
<>
|
|
31
|
+
<Button themeColor="primary">Update</Button>
|
|
32
|
+
<Button>Cancel</Button>
|
|
33
|
+
</>
|
|
34
|
+
}>
|
|
29
35
|
<div className="k-tabstrip k-tabstrip-top">
|
|
30
36
|
<div className="k-tabstrip-items-wrapper k-hstack">
|
|
31
37
|
<ul className="k-tabstrip-items k-reset">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
2
|
import { Window } from '../../window';
|
|
3
3
|
import { Textarea } from '../../textarea';
|
|
4
|
+
import { Button } from '../../button';
|
|
4
5
|
|
|
5
6
|
const root = ReactDOM.createRoot(
|
|
6
7
|
document.getElementById('app') as HTMLElement
|
|
@@ -23,7 +24,12 @@ root.render(
|
|
|
23
24
|
<style>{styles}</style>
|
|
24
25
|
<div id="test-area" className="k-d-grid k-grid-cols-1">
|
|
25
26
|
<section>
|
|
26
|
-
<Window className="k-editor-window" title="View HTML" actions={[ 'close' ]}
|
|
27
|
+
<Window className="k-editor-window" title="View HTML" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
28
|
+
<>
|
|
29
|
+
<Button themeColor="primary">Update</Button>
|
|
30
|
+
<Button>Cancel</Button>
|
|
31
|
+
</>
|
|
32
|
+
}>
|
|
27
33
|
<Textarea className="k-editor-textarea"></Textarea>
|
|
28
34
|
</Window>
|
|
29
35
|
</section>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
2
3
|
import { Dialog } from '../../dialog';
|
|
3
4
|
import { Upload } from '../../upload';
|
|
4
5
|
|
|
@@ -20,7 +21,12 @@ root.render(
|
|
|
20
21
|
|
|
21
22
|
{/* Upload Dialog */}
|
|
22
23
|
<section>
|
|
23
|
-
<Dialog title="Upload Files" actions={[ 'close' ]}
|
|
24
|
+
<Dialog title="Upload Files" actions={[ 'close' ]} actionButtonsAlign="start" className="k-filemanager-upload-dialog" actionButtons={
|
|
25
|
+
<>
|
|
26
|
+
<Button themeColor="primary">Upload</Button>
|
|
27
|
+
<Button>Cancel</Button>
|
|
28
|
+
</>
|
|
29
|
+
}>
|
|
24
30
|
<Upload async empty status="upload"></Upload>
|
|
25
31
|
</Dialog>
|
|
26
32
|
|
|
@@ -30,7 +36,12 @@ root.render(
|
|
|
30
36
|
{/* Move/Copy Dialog */}
|
|
31
37
|
<section>
|
|
32
38
|
|
|
33
|
-
<Dialog title="Confirm" actions={[ 'close' ]}
|
|
39
|
+
<Dialog title="Confirm" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
40
|
+
<>
|
|
41
|
+
<Button themeColor="primary">Confirm</Button>
|
|
42
|
+
<Button>Cancel</Button>
|
|
43
|
+
</>
|
|
44
|
+
}>
|
|
34
45
|
<p>Do you want to move or copy?</p>
|
|
35
46
|
</Dialog>
|
|
36
47
|
|
|
@@ -39,7 +50,12 @@ root.render(
|
|
|
39
50
|
{/* Delete Dialog */}
|
|
40
51
|
<section>
|
|
41
52
|
|
|
42
|
-
<Dialog title="Confirm" actions={[ 'close' ]}
|
|
53
|
+
<Dialog title="Confirm" actions={[ 'close' ]} actionButtonsAlign="start" actionButtons={
|
|
54
|
+
<>
|
|
55
|
+
<Button themeColor="primary">Confirm</Button>
|
|
56
|
+
<Button>Cancel</Button>
|
|
57
|
+
</>
|
|
58
|
+
}>
|
|
43
59
|
<p>Are you sure you want to delete this file?</p>
|
|
44
60
|
<p>You can't undo this action.</p>
|
|
45
61
|
</Dialog>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import ReactDOM from 'react-dom/client';
|
|
2
|
+
import { Button } from '../../button';
|
|
3
|
+
import { Window } from '../../window';
|
|
4
|
+
import { Textbox } from '../../textbox';
|
|
5
|
+
import { DateTimePicker } from '../../datetimepicker';
|
|
6
|
+
import { NumericTextbox } from '../../numerictextbox';
|
|
7
|
+
import { DropdownList } from '../../dropdownlist';
|
|
8
|
+
import { Form, FormField } from '../../form';
|
|
9
|
+
|
|
10
|
+
const root = ReactDOM.createRoot(
|
|
11
|
+
document.getElementById('app') as HTMLElement
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const styles = `
|
|
15
|
+
.k-window {
|
|
16
|
+
min-width: 580px;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
root.render(
|
|
22
|
+
<>
|
|
23
|
+
<style>{styles}</style>
|
|
24
|
+
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
25
|
+
|
|
26
|
+
<section>
|
|
27
|
+
<Window title="Edit task" actions={[ 'window-minimize', 'window-maximize', 'close' ]} actionButtons={
|
|
28
|
+
<>
|
|
29
|
+
<Button icon="save" themeColor="primary">Save</Button>
|
|
30
|
+
<Button icon="cancel">Cancel</Button>
|
|
31
|
+
<span className="k-spacer"></span>
|
|
32
|
+
<Button icon="delete" fillMode="flat" themeColor="primary">Delete</Button>
|
|
33
|
+
</>
|
|
34
|
+
}>
|
|
35
|
+
<div className="k-tabstrip k-tabstrip-top">
|
|
36
|
+
<div className="k-tabstrip-items-wrapper k-hstack">
|
|
37
|
+
<ul className="k-reset k-tabstrip-items">
|
|
38
|
+
<li className="k-item k-first k-active">
|
|
39
|
+
<span className="k-link">General</span>
|
|
40
|
+
</li>
|
|
41
|
+
<li className="k-item">
|
|
42
|
+
<span className="k-link">Resources</span>
|
|
43
|
+
</li>
|
|
44
|
+
<li className="k-item">
|
|
45
|
+
<span className="k-link">Predecessors</span>
|
|
46
|
+
</li>
|
|
47
|
+
<li className="k-item k-last">
|
|
48
|
+
<span className="k-link">Successors</span>
|
|
49
|
+
</li>
|
|
50
|
+
</ul>
|
|
51
|
+
</div>
|
|
52
|
+
<div className="k-tabstrip-content k-active">
|
|
53
|
+
<Form layout="grid" cols={4} gapX={2}>
|
|
54
|
+
<FormField
|
|
55
|
+
className="k-form-field-error k-col-span-full"
|
|
56
|
+
label="Title" error="Error"
|
|
57
|
+
editor={ <Textbox invalid value="Invalid" /> }
|
|
58
|
+
/>
|
|
59
|
+
<FormField
|
|
60
|
+
className="k-col-span-2"
|
|
61
|
+
label="Planned Start Date"
|
|
62
|
+
editor={ <DateTimePicker placeholder="dd/MM/yyyy hh:mm AM" /> }
|
|
63
|
+
/>
|
|
64
|
+
<FormField
|
|
65
|
+
className="k-col-span-2"
|
|
66
|
+
label="Planned End Date"
|
|
67
|
+
editor={ <DateTimePicker placeholder="dd/MM/yyyy hh:mm AM" /> }
|
|
68
|
+
/>
|
|
69
|
+
<FormField
|
|
70
|
+
className="k-col-span-2"
|
|
71
|
+
label="Actual Start Date"
|
|
72
|
+
editor={ <DateTimePicker placeholder="dd/MM/yyyy hh:mm AM" /> }
|
|
73
|
+
/>
|
|
74
|
+
<FormField
|
|
75
|
+
className="k-col-span-2"
|
|
76
|
+
label="Actual End Date"
|
|
77
|
+
editor={ <DateTimePicker placeholder="dd/MM/yyyy hh:mm AM" /> }
|
|
78
|
+
/>
|
|
79
|
+
<FormField
|
|
80
|
+
className="k-col-span-1"
|
|
81
|
+
label="Complete"
|
|
82
|
+
editor={ <NumericTextbox /> }
|
|
83
|
+
hint="value from 0 to 1"
|
|
84
|
+
/>
|
|
85
|
+
<FormField
|
|
86
|
+
className="k-col-span-full"
|
|
87
|
+
label="Parent"
|
|
88
|
+
editor={ <DropdownList placeholder="-None-"/> }
|
|
89
|
+
/>
|
|
90
|
+
</Form>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</Window>
|
|
94
|
+
</section>
|
|
95
|
+
</div>
|
|
96
|
+
</>
|
|
97
|
+
);
|