@ldmjs/ui 1.0.0-dev-6 → 1.0.0-dev-7
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/index.d.ts +2 -2
- package/dist/index.js +97 -0
- package/dist/types/options.d.ts +20 -0
- package/package.json +4 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ldmuiOptions } from './types/options'
|
|
2
2
|
|
|
3
3
|
declare const defaults: Record<string, unknown>;
|
|
4
4
|
declare function getAliases(components: Record<string, unknown>): Record<string, unknown>;
|
|
5
5
|
declare function isDefined(value: unknown): boolean;
|
|
6
6
|
|
|
7
7
|
declare const ldmui: {
|
|
8
|
-
install(vue:
|
|
8
|
+
install(vue: any, options?: ldmuiOptions): void;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export default ldmui;
|
package/dist/index.js
CHANGED
|
@@ -2043,6 +2043,101 @@ function ld_splitter_reg(vue, options) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
/* harmony default export */ const src_ld_splitter = (ld_splitter_reg);
|
|
2045
2045
|
|
|
2046
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-toggle-buttons/ld-toggle-buttons.vue?vue&type=template&id=2b80b384&ts=true
|
|
2047
|
+
|
|
2048
|
+
const ld_toggle_buttonsvue_type_template_id_2b80b384_ts_true_hoisted_1 = {
|
|
2049
|
+
class: "d-flex align-center",
|
|
2050
|
+
style: { "grid-template-columns": "repeat(var(--input-height))" }
|
|
2051
|
+
};
|
|
2052
|
+
function ld_toggle_buttonsvue_type_template_id_2b80b384_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2053
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
2054
|
+
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
2055
|
+
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
|
|
2056
|
+
const _directive_active = (0,external_vue_.resolveDirective)("active");
|
|
2057
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_toggle_buttonsvue_type_template_id_2b80b384_ts_true_hoisted_1, [
|
|
2058
|
+
((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(_ctx.items, (item, index) => {
|
|
2059
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, null, {
|
|
2060
|
+
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
2061
|
+
(0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, (0,external_vue_.mergeProps)(props, {
|
|
2062
|
+
id: item.id,
|
|
2063
|
+
color: _ctx.modelValue === index ? 'primary' : 'grey',
|
|
2064
|
+
variant: _ctx.modelValue === index ? 'outlined' : 'text',
|
|
2065
|
+
class: { 'ml-1': index > 0 },
|
|
2066
|
+
onClick: ($event) => (_ctx.emitUpdate(index))
|
|
2067
|
+
}), {
|
|
2068
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2069
|
+
(0,external_vue_.createVNode)(_component_ld_icon, {
|
|
2070
|
+
icon: item.icon,
|
|
2071
|
+
color: _ctx.modelValue === index ? 'primary' : 'grey'
|
|
2072
|
+
}, null, 8 /* PROPS */, ["icon", "color"])
|
|
2073
|
+
]),
|
|
2074
|
+
_: 2 /* DYNAMIC */
|
|
2075
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["id", "color", "variant", "class", "onClick"])), [
|
|
2076
|
+
[_directive_active, _ctx.modelValue === index]
|
|
2077
|
+
])
|
|
2078
|
+
]),
|
|
2079
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
2080
|
+
(0,external_vue_.createTextVNode)(),
|
|
2081
|
+
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(item.tooltip), 1 /* TEXT */)
|
|
2082
|
+
]),
|
|
2083
|
+
_: 2 /* DYNAMIC */
|
|
2084
|
+
}, 1024 /* DYNAMIC_SLOTS */));
|
|
2085
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
2086
|
+
]));
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
;// CONCATENATED MODULE: ./src/ld-toggle-buttons/ld-toggle-buttons.vue?vue&type=template&id=2b80b384&ts=true
|
|
2090
|
+
|
|
2091
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-toggle-buttons/ld-toggle-buttons.ts?vue&type=script&lang=ts&external
|
|
2092
|
+
var ld_toggle_buttonsvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2093
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2094
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2095
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2096
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2097
|
+
};
|
|
2098
|
+
var ld_toggle_buttonsvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
2099
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2100
|
+
};
|
|
2101
|
+
var _a;
|
|
2102
|
+
|
|
2103
|
+
let ToggleButtonsComponent = class ToggleButtonsComponent extends external_vue_property_decorator_.Vue {
|
|
2104
|
+
emitUpdate(value) {
|
|
2105
|
+
this.$emit('update:model-value', value);
|
|
2106
|
+
}
|
|
2107
|
+
};
|
|
2108
|
+
ld_toggle_buttonsvue_type_script_lang_ts_external_decorate([
|
|
2109
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2110
|
+
ld_toggle_buttonsvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
2111
|
+
], ToggleButtonsComponent.prototype, "modelValue", void 0);
|
|
2112
|
+
ld_toggle_buttonsvue_type_script_lang_ts_external_decorate([
|
|
2113
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
2114
|
+
ld_toggle_buttonsvue_type_script_lang_ts_external_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)
|
|
2115
|
+
], ToggleButtonsComponent.prototype, "items", void 0);
|
|
2116
|
+
ToggleButtonsComponent = ld_toggle_buttonsvue_type_script_lang_ts_external_decorate([
|
|
2117
|
+
(0,external_vue_property_decorator_.Options)({
|
|
2118
|
+
emits: ['update:model-value'],
|
|
2119
|
+
})
|
|
2120
|
+
], ToggleButtonsComponent);
|
|
2121
|
+
/* harmony default export */ const ld_toggle_buttonsvue_type_script_lang_ts_external = (ToggleButtonsComponent);
|
|
2122
|
+
|
|
2123
|
+
;// CONCATENATED MODULE: ./src/ld-toggle-buttons/ld-toggle-buttons.ts?vue&type=script&lang=ts&external
|
|
2124
|
+
|
|
2125
|
+
;// CONCATENATED MODULE: ./src/ld-toggle-buttons/ld-toggle-buttons.vue
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
;
|
|
2131
|
+
const ld_toggle_buttons_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_toggle_buttonsvue_type_script_lang_ts_external, [['render',ld_toggle_buttonsvue_type_template_id_2b80b384_ts_true_render]])
|
|
2132
|
+
|
|
2133
|
+
/* harmony default export */ const ld_toggle_buttons = (ld_toggle_buttons_exports_);
|
|
2134
|
+
;// CONCATENATED MODULE: ./src/ld-toggle-buttons/index.ts
|
|
2135
|
+
|
|
2136
|
+
function ld_toggle_buttons_reg(vue, options) {
|
|
2137
|
+
vue.component(options?.aliases?.['ld-toggle-buttons'] ? options.aliases['ld-toggle-buttons'] : 'ld-toggle-buttons', ld_toggle_buttons);
|
|
2138
|
+
}
|
|
2139
|
+
/* harmony default export */ const src_ld_toggle_buttons = (ld_toggle_buttons_reg);
|
|
2140
|
+
|
|
2046
2141
|
;// CONCATENATED MODULE: ./src/vuetify.ts
|
|
2047
2142
|
const aliases = {
|
|
2048
2143
|
SmallButton: 'VBtn',
|
|
@@ -2110,12 +2205,14 @@ const ActiveDirectiveOptions = {
|
|
|
2110
2205
|
|
|
2111
2206
|
|
|
2112
2207
|
|
|
2208
|
+
|
|
2113
2209
|
const ldmuiPlugin = {
|
|
2114
2210
|
install(vue, options) {
|
|
2115
2211
|
src_ld_icon(vue, options);
|
|
2116
2212
|
src_ld_loader(vue, options);
|
|
2117
2213
|
src_ld_button(vue, options);
|
|
2118
2214
|
src_ld_splitter(vue, options);
|
|
2215
|
+
src_ld_toggle_buttons(vue, options);
|
|
2119
2216
|
vue.config.globalProperties.$utils = {
|
|
2120
2217
|
isDefined: isDefined
|
|
2121
2218
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ldmuiOptions {
|
|
2
|
+
aliases?: {
|
|
3
|
+
'ld-button'?: string;
|
|
4
|
+
'ld-icon'?: string;
|
|
5
|
+
'ld-splitter'?: string;
|
|
6
|
+
'ld-loader'?: string;
|
|
7
|
+
'ld-toggle-buttons'?: string;
|
|
8
|
+
},
|
|
9
|
+
LdIcon?: {
|
|
10
|
+
path: string;
|
|
11
|
+
map: {
|
|
12
|
+
icons: Array<[string, string]>;
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
LdBtn?: {
|
|
16
|
+
isMobile: string;
|
|
17
|
+
isTablet: string;
|
|
18
|
+
isDesktop: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "1.0.0-dev-
|
|
3
|
+
"version": "1.0.0-dev-7",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -29,11 +29,6 @@
|
|
|
29
29
|
"files": [
|
|
30
30
|
"dist/"
|
|
31
31
|
],
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"lodash-es": "4.17.21",
|
|
34
|
-
"vue": "3.4.21",
|
|
35
|
-
"vuetify": "3.5.9"
|
|
36
|
-
},
|
|
37
32
|
"devDependencies": {
|
|
38
33
|
"@types/eslint": "^8",
|
|
39
34
|
"@types/lodash-es": "^4",
|
|
@@ -43,6 +38,7 @@
|
|
|
43
38
|
"css-loader": "6.8.1",
|
|
44
39
|
"eslint": "8.56.0",
|
|
45
40
|
"html-webpack-plugin": "5.6.0",
|
|
41
|
+
"lodash-es": "4.17.21",
|
|
46
42
|
"material-design-icons-iconfont": "^6.7.0",
|
|
47
43
|
"node-sass": "9.0.0",
|
|
48
44
|
"postcss-loader": "7.3.3",
|
|
@@ -52,10 +48,12 @@
|
|
|
52
48
|
"terser-webpack-plugin": "5.3.10",
|
|
53
49
|
"ts-loader": "9.5.1",
|
|
54
50
|
"typescript": "4.9.5",
|
|
51
|
+
"vue": "3.4.21",
|
|
55
52
|
"vue-class-component": "8.0.0-rc.1",
|
|
56
53
|
"vue-eslint-parser": "9.4.2",
|
|
57
54
|
"vue-loader": "17.3.1",
|
|
58
55
|
"vue-property-decorator": "10.0.0-rc.3",
|
|
56
|
+
"vuetify": "3.5.9",
|
|
59
57
|
"webpack": "5.90.2",
|
|
60
58
|
"webpack-cli": "5.1.4",
|
|
61
59
|
"webpack-dev-server": "4.15.1",
|